solid-ui 3.1.3-12 → 3.1.3-14

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 (507) hide show
  1. package/README.md +9 -14
  2. package/dist/_virtual/_rolldown/runtime.cjs.js +1 -1
  3. package/dist/acl/access-controller.cjs.js.map +1 -1
  4. package/dist/acl/access-groups.cjs.js +1 -1
  5. package/dist/acl/access-groups.cjs.js.map +1 -1
  6. package/dist/acl/access-groups.esm.js +2 -1
  7. package/dist/acl/access-groups.esm.js.map +1 -1
  8. package/dist/acl/acl.cjs.js.map +1 -1
  9. package/dist/acl/acl.esm.js.map +1 -1
  10. package/dist/chat/bookmarks.esm.js +2 -1
  11. package/dist/chat/bookmarks.esm.js.map +1 -1
  12. package/dist/chat/chatLogic.cjs.js +1 -1
  13. package/dist/chat/chatLogic.cjs.js.map +1 -1
  14. package/dist/chat/chatLogic.esm.js +2 -2
  15. package/dist/chat/chatLogic.esm.js.map +1 -1
  16. package/dist/chat/keys.cjs.js +1 -1
  17. package/dist/chat/keys.cjs.js.map +1 -1
  18. package/dist/chat/keys.d.ts +1 -1
  19. package/dist/chat/keys.d.ts.map +1 -1
  20. package/dist/chat/keys.esm.js +5 -2
  21. package/dist/chat/keys.esm.js.map +1 -1
  22. package/dist/chat/signature.cjs.js +1 -1
  23. package/dist/chat/signature.cjs.js.map +1 -1
  24. package/dist/chat/signature.esm.js +2 -1
  25. package/dist/chat/signature.esm.js.map +1 -1
  26. package/dist/chunks/{DialogProvider-ge2aA77F.js → DialogProvider-0HIHjONx.js} +7 -9
  27. package/dist/chunks/{DialogProvider-ge2aA77F.js.map → DialogProvider-0HIHjONx.js.map} +1 -1
  28. package/dist/chunks/{account-Bb818bGF.js → account-Ch8h_zTv.js} +22 -25
  29. package/dist/chunks/{account-Bb818bGF.js.map → account-Ch8h_zTv.js.map} +1 -1
  30. package/dist/chunks/{auth-ClVI18ss.js → auth-D4NUMSzc.js} +111 -113
  31. package/dist/chunks/auth-D4NUMSzc.js.map +1 -0
  32. package/dist/chunks/{avatar-DGu_PX5y.js → avatar-BWtz4RlU.js} +9 -11
  33. package/dist/chunks/{avatar-DGu_PX5y.js.map → avatar-BWtz4RlU.js.map} +1 -1
  34. package/dist/chunks/{button-B9-nlEpz.js → button-BJyFKOKO.js} +12 -16
  35. package/dist/chunks/{button-B9-nlEpz.js.map → button-BJyFKOKO.js.map} +1 -1
  36. package/dist/chunks/{chunk.7MPIABXH-CEYdxYyt.js → chunk.64OG2H45-BADxAtEI.js} +104 -57
  37. package/dist/chunks/chunk.64OG2H45-BADxAtEI.js.map +1 -0
  38. package/dist/chunks/{combobox-DrT0Nb-A.js → combobox-0NWv9K3D.js} +120 -178
  39. package/dist/chunks/combobox-0NWv9K3D.js.map +1 -0
  40. package/dist/chunks/{combobox-option-DxJvAZ_Q.js → combobox-option-B-twy1Zn.js} +6 -8
  41. package/dist/chunks/{combobox-option-DxJvAZ_Q.js.map → combobox-option-B-twy1Zn.js.map} +1 -1
  42. package/dist/chunks/components-DrP7BOrs.js +1281 -0
  43. package/dist/chunks/components-DrP7BOrs.js.map +1 -0
  44. package/dist/chunks/{dialog-kyHgc-uy.js → dialog-CcMVH-Ut.js} +58 -115
  45. package/dist/chunks/dialog-CcMVH-Ut.js.map +1 -0
  46. package/dist/chunks/{dialog-content-CEITrC59.js → dialog-content-DcD_s3hK.js} +4 -5
  47. package/dist/chunks/{dialog-content-CEITrC59.js.map → dialog-content-DcD_s3hK.js.map} +1 -1
  48. package/dist/chunks/{dialog-footer-DVLEK5bU.js → dialog-footer-CHgSH7G5.js} +4 -5
  49. package/dist/chunks/{dialog-footer-DVLEK5bU.js.map → dialog-footer-CHgSH7G5.js.map} +1 -1
  50. package/dist/chunks/{dialog-header-kEWl21oD.js → dialog-header-BjellR7_.js} +4 -5
  51. package/dist/chunks/{dialog-header-kEWl21oD.js.map → dialog-header-BjellR7_.js.map} +1 -1
  52. package/dist/chunks/dialogs-CeHuLUo5.js +26 -0
  53. package/dist/chunks/dialogs-CeHuLUo5.js.map +1 -0
  54. package/dist/chunks/{dialogs-root-dPGfuzSZ.js → dialogs-root-CvsON-m8.js} +12 -18
  55. package/dist/chunks/dialogs-root-CvsON-m8.js.map +1 -0
  56. package/dist/chunks/{guard-DEqOFEs4.js → guard-BIesxo_f.js} +9 -11
  57. package/dist/chunks/{guard-DEqOFEs4.js.map → guard-BIesxo_f.js.map} +1 -1
  58. package/dist/chunks/{solid-logic.esm-BrMdCG2_.js → index.esm-CyyOkz04.js} +2663 -2745
  59. package/dist/chunks/index.esm-CyyOkz04.js.map +1 -0
  60. package/dist/chunks/{input-BjCX2bFe.js → input-CFDN76Y5.js} +68 -97
  61. package/dist/chunks/input-CFDN76Y5.js.map +1 -0
  62. package/dist/chunks/{jsonld-B61R4iOL.js → jsonld-52q5nY_t.js} +22 -27
  63. package/dist/chunks/{jsonld-B61R4iOL.js.map → jsonld-52q5nY_t.js.map} +1 -1
  64. package/dist/chunks/{login-button-Czm-E9Na.js → login-button-BhdKFJ-F.js} +10 -12
  65. package/dist/chunks/{login-button-Czm-E9Na.js.map → login-button-BhdKFJ-F.js.map} +1 -1
  66. package/dist/chunks/{logout-button-BrR_jOhK.js → logout-button-ClbKS9ss.js} +10 -12
  67. package/dist/chunks/{logout-button-BrR_jOhK.js.map → logout-button-ClbKS9ss.js.map} +1 -1
  68. package/dist/chunks/{menu-1PG19fCC.js → menu-DVgG-el5.js} +58 -55
  69. package/dist/chunks/menu-DVgG-el5.js.map +1 -0
  70. package/dist/chunks/{menu-item-C9uErV38.js → menu-item-Bj3NgLzB.js} +10 -12
  71. package/dist/chunks/{menu-item-C9uErV38.js.map → menu-item-Bj3NgLzB.js.map} +1 -1
  72. package/dist/chunks/photo-capture-CVKE0SKx.js +402 -0
  73. package/dist/chunks/photo-capture-CVKE0SKx.js.map +1 -0
  74. package/dist/chunks/photo-capture-modal-DARmhHUH.js +560 -0
  75. package/dist/chunks/photo-capture-modal-DARmhHUH.js.map +1 -0
  76. package/dist/chunks/{provider-qd_4VaKB.js → provider-CBSBzOfP.js} +11 -13
  77. package/dist/chunks/{provider-qd_4VaKB.js.map → provider-CBSBzOfP.js.map} +1 -1
  78. package/dist/chunks/rdf-form-BeuzVBOP.js +339 -0
  79. package/dist/chunks/rdf-form-BeuzVBOP.js.map +1 -0
  80. package/dist/chunks/rdf-input-n73oeSkf.js +440 -0
  81. package/dist/chunks/rdf-input-n73oeSkf.js.map +1 -0
  82. package/dist/chunks/{rolldown-runtime-B1bRi_D7.js → rolldown-runtime-Cb76FRpK.js} +2 -2
  83. package/dist/chunks/{select-OM-SgY4K.js → select-BuIxSm1A.js} +53 -111
  84. package/dist/chunks/select-BuIxSm1A.js.map +1 -0
  85. package/dist/chunks/{select-option-pVhYlXrt.js → select-option-Z8qZsCQo.js} +6 -8
  86. package/dist/chunks/{select-option-pVhYlXrt.js.map → select-option-Z8qZsCQo.js.map} +1 -1
  87. package/dist/chunks/{signup-button-BnA5p-uJ.js → signup-button-B-AgjjAK.js} +10 -12
  88. package/dist/chunks/{signup-button-BnA5p-uJ.js.map → signup-button-B-AgjjAK.js.map} +1 -1
  89. package/dist/chunks/{solid-emblem-D2clBuKZ.js → solid-emblem-D4ItOckU.js} +5 -6
  90. package/dist/chunks/{solid-emblem-D2clBuKZ.js.map → solid-emblem-D4ItOckU.js.map} +1 -1
  91. package/dist/chunks/{src-DJOb1wMf.js → src-CMpy92si.js} +2741 -3206
  92. package/dist/chunks/src-CMpy92si.js.map +1 -0
  93. package/dist/chunks/style-CjYxsW7j.js +536 -0
  94. package/dist/chunks/style-CjYxsW7j.js.map +1 -0
  95. package/dist/components/account/Account.cjs.js.map +1 -1
  96. package/dist/components/account/Account.stories.d.ts +3 -13
  97. package/dist/components/account/Account.stories.d.ts.map +1 -1
  98. package/dist/components/account.js +1 -1
  99. package/dist/components/all.cjs.js +1 -1
  100. package/dist/components/all.esm.js +3 -1
  101. package/dist/components/avatar/Avatar.cjs.js.map +1 -1
  102. package/dist/components/avatar/Avatar.stories.d.ts +3 -21
  103. package/dist/components/avatar/Avatar.stories.d.ts.map +1 -1
  104. package/dist/components/avatar.js +1 -1
  105. package/dist/components/button/Button.cjs.js +1 -1
  106. package/dist/components/button/Button.cjs.js.map +1 -1
  107. package/dist/components/button/Button.esm.js +1 -3
  108. package/dist/components/button/Button.esm.js.map +1 -1
  109. package/dist/components/button/Button.stories.d.ts +15 -154
  110. package/dist/components/button/Button.stories.d.ts.map +1 -1
  111. package/dist/components/button.js +1 -1
  112. package/dist/components/combobox/Combobox.cjs.js +11 -11
  113. package/dist/components/combobox/Combobox.cjs.js.map +1 -1
  114. package/dist/components/combobox/Combobox.d.ts +5 -11
  115. package/dist/components/combobox/Combobox.d.ts.map +1 -1
  116. package/dist/components/combobox/Combobox.esm.js +115 -172
  117. package/dist/components/combobox/Combobox.esm.js.map +1 -1
  118. package/dist/components/combobox/Combobox.stories.d.ts +9 -46
  119. package/dist/components/combobox/Combobox.stories.d.ts.map +1 -1
  120. package/dist/components/combobox-option/ComboboxOption.cjs.js.map +1 -1
  121. package/dist/components/combobox-option.js +1 -1
  122. package/dist/components/combobox.js +1 -1
  123. package/dist/components/dialog/Dialog.cjs.js +6 -6
  124. package/dist/components/dialog/Dialog.cjs.js.map +1 -1
  125. package/dist/components/dialog/Dialog.esm.js +11 -10
  126. package/dist/components/dialog/Dialog.esm.js.map +1 -1
  127. package/dist/components/dialog/Dialog.stories.d.ts +22 -0
  128. package/dist/components/dialog/Dialog.stories.d.ts.map +1 -0
  129. package/dist/components/dialog/docs/sample-modal/SampleModal.d.ts +6 -0
  130. package/dist/components/dialog/docs/sample-modal/SampleModal.d.ts.map +1 -0
  131. package/dist/components/dialog/docs/sample-modal/index.d.ts +4 -0
  132. package/dist/components/dialog/docs/sample-modal/index.d.ts.map +1 -0
  133. package/dist/components/dialog-content.js +1 -1
  134. package/dist/components/dialog-footer.js +1 -1
  135. package/dist/components/dialog-header.js +1 -1
  136. package/dist/components/dialog-provider/DialogProvider.cjs.js.map +1 -1
  137. package/dist/components/dialog-provider.js +1 -1
  138. package/dist/components/dialog.js +1 -1
  139. package/dist/components/dialogs-root/DialogsRoot.cjs.js +4 -7
  140. package/dist/components/dialogs-root/DialogsRoot.cjs.js.map +1 -1
  141. package/dist/components/dialogs-root/DialogsRoot.d.ts.map +1 -1
  142. package/dist/components/dialogs-root/DialogsRoot.esm.js +7 -10
  143. package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
  144. package/dist/components/dialogs-root.js +1 -1
  145. package/dist/components/guard/Guard.cjs.js.map +1 -1
  146. package/dist/components/guard/Guard.stories.d.ts +3 -21
  147. package/dist/components/guard/Guard.stories.d.ts.map +1 -1
  148. package/dist/components/guard.js +1 -1
  149. package/dist/components/input/Input.cjs.js +3 -2
  150. package/dist/components/input/Input.cjs.js.map +1 -1
  151. package/dist/components/input/Input.d.ts +4 -9
  152. package/dist/components/input/Input.d.ts.map +1 -1
  153. package/dist/components/input/Input.esm.js +69 -97
  154. package/dist/components/input/Input.esm.js.map +1 -1
  155. package/dist/components/input/Input.stories.d.ts +13 -22
  156. package/dist/components/input/Input.stories.d.ts.map +1 -1
  157. package/dist/components/input/Input.styles.cjs.js +1 -1
  158. package/dist/components/input/Input.styles.cjs.js.map +1 -1
  159. package/dist/components/input/Input.styles.esm.js +1 -1
  160. package/dist/components/input/Input.styles.esm.js.map +1 -1
  161. package/dist/components/input.js +1 -1
  162. package/dist/components/login-button/LoginButton.cjs.js.map +1 -1
  163. package/dist/components/login-button/LoginButton.stories.d.ts +4 -4
  164. package/dist/components/login-button/LoginButton.stories.d.ts.map +1 -1
  165. package/dist/components/login-button.js +1 -1
  166. package/dist/components/login-modal/LoginModal.cjs.js +1 -1
  167. package/dist/components/login-modal/LoginModal.cjs.js.map +1 -1
  168. package/dist/components/login-modal/LoginModal.esm.js +1 -1
  169. package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
  170. package/dist/components/login-modal/LoginModal.stories.d.ts +13 -5
  171. package/dist/components/login-modal/LoginModal.stories.d.ts.map +1 -1
  172. package/dist/components/login-modal.js +1 -1
  173. package/dist/components/logout-button/LogoutButton.cjs.js.map +1 -1
  174. package/dist/components/logout-button/LogoutButton.stories.d.ts +4 -4
  175. package/dist/components/logout-button/LogoutButton.stories.d.ts.map +1 -1
  176. package/dist/components/logout-button.js +1 -1
  177. package/dist/components/menu/Menu.cjs.js +1 -1
  178. package/dist/components/menu/Menu.cjs.js.map +1 -1
  179. package/dist/components/menu/Menu.d.ts.map +1 -1
  180. package/dist/components/menu/Menu.esm.js +1 -1
  181. package/dist/components/menu/Menu.esm.js.map +1 -1
  182. package/dist/components/menu/Menu.stories.d.ts +3 -4
  183. package/dist/components/menu/Menu.stories.d.ts.map +1 -1
  184. package/dist/components/menu/Menu.test.d.ts +1 -0
  185. package/dist/components/menu/Menu.test.d.ts.map +1 -0
  186. package/dist/components/menu-item/MenuItem.cjs.js.map +1 -1
  187. package/dist/components/menu-item.js +1 -1
  188. package/dist/components/menu.js +1 -1
  189. package/dist/components/photo-capture/PhotoCapture.cjs.js +6 -0
  190. package/dist/components/photo-capture/PhotoCapture.cjs.js.map +1 -0
  191. package/dist/components/photo-capture/PhotoCapture.d.ts +20 -0
  192. package/dist/components/photo-capture/PhotoCapture.d.ts.map +1 -0
  193. package/dist/components/photo-capture/PhotoCapture.esm.js +404 -0
  194. package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -0
  195. package/dist/components/photo-capture/PhotoCapture.stories.d.ts +16 -0
  196. package/dist/components/photo-capture/PhotoCapture.stories.d.ts.map +1 -0
  197. package/dist/components/photo-capture/docs/photo-capture-sandbox/PhotoCaptureSandbox.d.ts +9 -0
  198. package/dist/components/photo-capture/docs/photo-capture-sandbox/PhotoCaptureSandbox.d.ts.map +1 -0
  199. package/dist/components/photo-capture/docs/photo-capture-sandbox/index.d.ts +4 -0
  200. package/dist/components/photo-capture/docs/photo-capture-sandbox/index.d.ts.map +1 -0
  201. package/dist/components/photo-capture/index.cjs.js +2 -1
  202. package/dist/components/photo-capture/index.cjs.js.map +1 -0
  203. package/dist/components/photo-capture/index.d.ts +4 -1
  204. package/dist/components/photo-capture/index.d.ts.map +1 -1
  205. package/dist/components/photo-capture/index.esm.js +7 -3
  206. package/dist/components/photo-capture/index.esm.js.map +1 -0
  207. package/dist/components/photo-capture-modal/PhotoCaptureModal.cjs.js +24 -0
  208. package/dist/components/photo-capture-modal/PhotoCaptureModal.cjs.js.map +1 -0
  209. package/dist/components/photo-capture-modal/PhotoCaptureModal.d.ts +42 -0
  210. package/dist/components/photo-capture-modal/PhotoCaptureModal.d.ts.map +1 -0
  211. package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js +562 -0
  212. package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -0
  213. package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.cjs.js +2 -0
  214. package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.cjs.js.map +1 -0
  215. package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.esm.js +7 -0
  216. package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.esm.js.map +1 -0
  217. package/dist/components/photo-capture-modal/index.cjs.js +2 -0
  218. package/dist/components/photo-capture-modal/index.cjs.js.map +1 -0
  219. package/dist/components/photo-capture-modal/index.d.ts +4 -0
  220. package/dist/components/photo-capture-modal/index.d.ts.map +1 -0
  221. package/dist/components/photo-capture-modal/index.esm.js +7 -0
  222. package/dist/components/photo-capture-modal/index.esm.js.map +1 -0
  223. package/dist/components/photo-capture-modal.js +2 -0
  224. package/dist/components/photo-capture.js +2 -2
  225. package/dist/components/provider/Provider.cjs.js.map +1 -1
  226. package/dist/components/provider.js +1 -1
  227. package/dist/components/rdf-form/RDFForm.cjs.js +12 -0
  228. package/dist/components/rdf-form/RDFForm.cjs.js.map +1 -0
  229. package/dist/components/rdf-form/RDFForm.d.ts +17 -0
  230. package/dist/components/rdf-form/RDFForm.d.ts.map +1 -0
  231. package/dist/components/rdf-form/RDFForm.esm.js +344 -0
  232. package/dist/components/rdf-form/RDFForm.esm.js.map +1 -0
  233. package/dist/components/rdf-form/RDForm.stories.d.ts +20 -0
  234. package/dist/components/rdf-form/RDForm.stories.d.ts.map +1 -0
  235. package/dist/components/rdf-form/index.cjs.js +2 -0
  236. package/dist/components/rdf-form/index.cjs.js.map +1 -0
  237. package/dist/components/rdf-form/index.d.ts +4 -0
  238. package/dist/components/rdf-form/index.d.ts.map +1 -0
  239. package/dist/components/rdf-form/index.esm.js +7 -0
  240. package/dist/components/rdf-form/index.esm.js.map +1 -0
  241. package/dist/components/rdf-form.js +2 -0
  242. package/dist/components/rdf-input/RDFInput.cjs.js +11 -0
  243. package/dist/components/rdf-input/RDFInput.cjs.js.map +1 -0
  244. package/dist/components/rdf-input/RDFInput.d.ts +24 -0
  245. package/dist/components/rdf-input/RDFInput.d.ts.map +1 -0
  246. package/dist/components/rdf-input/RDFInput.esm.js +349 -0
  247. package/dist/components/rdf-input/RDFInput.esm.js.map +1 -0
  248. package/dist/components/rdf-input/index.cjs.js +2 -0
  249. package/dist/components/rdf-input/index.cjs.js.map +1 -0
  250. package/dist/components/rdf-input/index.d.ts +4 -0
  251. package/dist/components/rdf-input/index.d.ts.map +1 -0
  252. package/dist/components/rdf-input/index.esm.js +7 -0
  253. package/dist/components/rdf-input/index.esm.js.map +1 -0
  254. package/dist/components/rdf-input.js +2 -0
  255. package/dist/components/select/Select.cjs.js +3 -3
  256. package/dist/components/select/Select.cjs.js.map +1 -1
  257. package/dist/components/select/Select.d.ts +3 -10
  258. package/dist/components/select/Select.d.ts.map +1 -1
  259. package/dist/components/select/Select.esm.js +52 -109
  260. package/dist/components/select/Select.esm.js.map +1 -1
  261. package/dist/components/select/Select.stories.d.ts +9 -13
  262. package/dist/components/select/Select.stories.d.ts.map +1 -1
  263. package/dist/components/select-option/SelectOption.cjs.js.map +1 -1
  264. package/dist/components/select-option.js +1 -1
  265. package/dist/components/select.js +1 -1
  266. package/dist/components/signup-button/SignupButton.cjs.js.map +1 -1
  267. package/dist/components/signup-button/SignupButton.stories.d.ts +4 -4
  268. package/dist/components/signup-button/SignupButton.stories.d.ts.map +1 -1
  269. package/dist/components/signup-button.js +1 -1
  270. package/dist/components/solid-emblem.js +1 -1
  271. package/dist/components.js +26 -24
  272. package/dist/index.cjs.js +1 -1
  273. package/dist/index.cjs.js.map +1 -1
  274. package/dist/index.esm.js +12 -10
  275. package/dist/index.esm.js.map +1 -1
  276. package/dist/index.js +8 -9
  277. package/dist/lib/auth/SolidAuth.cjs.js +1 -1
  278. package/dist/lib/auth/SolidAuth.cjs.js.map +1 -1
  279. package/dist/lib/auth/SolidAuth.d.ts.map +1 -1
  280. package/dist/lib/auth/SolidAuth.esm.js +17 -16
  281. package/dist/lib/auth/SolidAuth.esm.js.map +1 -1
  282. package/dist/lib/auth/context.cjs.js.map +1 -1
  283. package/dist/lib/components/decorators.cjs.js.map +1 -1
  284. package/dist/lib/components/decorators.esm.js.map +1 -1
  285. package/dist/lib/components/dialog-component/DialogComponent.cjs.js +2 -0
  286. package/dist/lib/components/dialog-component/DialogComponent.cjs.js.map +1 -0
  287. package/dist/lib/components/dialog-component/DialogComponent.d.ts +10 -0
  288. package/dist/lib/components/dialog-component/DialogComponent.d.ts.map +1 -0
  289. package/dist/lib/components/dialog-component/DialogComponent.esm.js +203 -0
  290. package/dist/lib/components/dialog-component/DialogComponent.esm.js.map +1 -0
  291. package/dist/lib/components/dialog-component/index.cjs.js +1 -0
  292. package/dist/lib/components/dialog-component/index.d.ts +4 -0
  293. package/dist/lib/components/dialog-component/index.d.ts.map +1 -0
  294. package/dist/lib/components/dialog-component/index.esm.js +2 -0
  295. package/dist/lib/components/form-control-component/FormControlComponent.cjs.js +2 -0
  296. package/dist/lib/components/form-control-component/FormControlComponent.cjs.js.map +1 -0
  297. package/dist/lib/components/form-control-component/FormControlComponent.d.ts +15 -0
  298. package/dist/lib/components/form-control-component/FormControlComponent.d.ts.map +1 -0
  299. package/dist/lib/components/form-control-component/FormControlComponent.esm.js +271 -0
  300. package/dist/lib/components/form-control-component/FormControlComponent.esm.js.map +1 -0
  301. package/dist/lib/components/form-control-component/index.cjs.js +1 -0
  302. package/dist/lib/components/form-control-component/index.d.ts +4 -0
  303. package/dist/lib/components/form-control-component/index.d.ts.map +1 -0
  304. package/dist/lib/components/form-control-component/index.esm.js +2 -0
  305. package/dist/lib/components/ids.cjs.js.map +1 -1
  306. package/dist/lib/components/ids.esm.js.map +1 -1
  307. package/dist/lib/components/index.cjs.js +1 -1
  308. package/dist/lib/components/index.d.ts +3 -1
  309. package/dist/lib/components/index.d.ts.map +1 -1
  310. package/dist/lib/components/index.esm.js +8 -4
  311. package/dist/lib/components/traits/DialogTrait.cjs.js +1 -1
  312. package/dist/lib/components/traits/DialogTrait.cjs.js.map +1 -1
  313. package/dist/lib/components/traits/DialogTrait.d.ts +2 -1
  314. package/dist/lib/components/traits/DialogTrait.d.ts.map +1 -1
  315. package/dist/lib/components/traits/DialogTrait.esm.js +26 -6
  316. package/dist/lib/components/traits/DialogTrait.esm.js.map +1 -1
  317. package/dist/lib/components/traits/FormControlTrait.cjs.js +1 -1
  318. package/dist/lib/components/traits/FormControlTrait.cjs.js.map +1 -1
  319. package/dist/lib/components/traits/FormControlTrait.d.ts +4 -2
  320. package/dist/lib/components/traits/FormControlTrait.d.ts.map +1 -1
  321. package/dist/lib/components/traits/FormControlTrait.esm.js +28 -10
  322. package/dist/lib/components/traits/FormControlTrait.esm.js.map +1 -1
  323. package/dist/lib/components/web-component/WebComponent.cjs.js +1 -1
  324. package/dist/lib/components/web-component/WebComponent.cjs.js.map +1 -1
  325. package/dist/lib/components/web-component/WebComponent.d.ts +12 -1
  326. package/dist/lib/components/web-component/WebComponent.d.ts.map +1 -1
  327. package/dist/lib/components/web-component/WebComponent.esm.js +30 -7
  328. package/dist/lib/components/web-component/WebComponent.esm.js.map +1 -1
  329. package/dist/lib/components/web-component/WebComponent.styles.cjs.js +1 -1
  330. package/dist/lib/components/web-component/WebComponent.styles.esm.js +1 -1
  331. package/dist/lib/dialogs/Dialog.cjs.js +1 -1
  332. package/dist/lib/dialogs/Dialog.cjs.js.map +1 -1
  333. package/dist/lib/dialogs/Dialog.d.ts +4 -8
  334. package/dist/lib/dialogs/Dialog.d.ts.map +1 -1
  335. package/dist/lib/dialogs/Dialog.esm.js +1 -8
  336. package/dist/lib/dialogs/Dialog.esm.js.map +1 -1
  337. package/dist/lib/dialogs/context.cjs.js.map +1 -1
  338. package/dist/lib/dialogs/helpers.cjs.js +1 -1
  339. package/dist/lib/dialogs/helpers.cjs.js.map +1 -1
  340. package/dist/lib/dialogs/helpers.d.ts +7 -2
  341. package/dist/lib/dialogs/helpers.d.ts.map +1 -1
  342. package/dist/lib/dialogs/helpers.esm.js +5 -3
  343. package/dist/lib/dialogs/helpers.esm.js.map +1 -1
  344. package/dist/lib/forms/fieldParams.cjs.js +2 -0
  345. package/dist/lib/forms/fieldParams.cjs.js.map +1 -0
  346. package/dist/lib/forms/fieldParams.d.ts +21 -0
  347. package/dist/lib/forms/fieldParams.d.ts.map +1 -0
  348. package/dist/lib/forms/fieldParams.esm.js +74 -0
  349. package/dist/lib/forms/fieldParams.esm.js.map +1 -0
  350. package/dist/lib/forms/rdfFormsHelper.cjs.js +2 -0
  351. package/dist/lib/forms/rdfFormsHelper.cjs.js.map +1 -0
  352. package/dist/lib/forms/rdfFormsHelper.d.ts +16 -0
  353. package/dist/lib/forms/rdfFormsHelper.d.ts.map +1 -0
  354. package/dist/lib/forms/rdfFormsHelper.esm.js +34 -0
  355. package/dist/lib/forms/rdfFormsHelper.esm.js.map +1 -0
  356. package/dist/lib/forms/store/NoopStore.cjs.js +2 -0
  357. package/dist/lib/forms/store/NoopStore.cjs.js.map +1 -0
  358. package/dist/lib/forms/store/NoopStore.d.ts +6 -0
  359. package/dist/lib/forms/store/NoopStore.d.ts.map +1 -0
  360. package/dist/lib/forms/store/NoopStore.esm.js +10 -0
  361. package/dist/lib/forms/store/NoopStore.esm.js.map +1 -0
  362. package/dist/lib/forms/store/StoreContext.cjs.js +2 -0
  363. package/dist/lib/forms/store/StoreContext.cjs.js.map +1 -0
  364. package/dist/lib/forms/store/StoreContext.d.ts +10 -0
  365. package/dist/lib/forms/store/StoreContext.d.ts.map +1 -0
  366. package/dist/lib/forms/store/StoreContext.esm.js +8 -0
  367. package/dist/lib/forms/store/StoreContext.esm.js.map +1 -0
  368. package/dist/lib/ns.cjs.js.map +1 -1
  369. package/dist/lib/pad.cjs.js +1 -1
  370. package/dist/lib/pad.cjs.js.map +1 -1
  371. package/dist/lib/pad.esm.js +6 -5
  372. package/dist/lib/pad.esm.js.map +1 -1
  373. package/dist/lib/participation.cjs.js +1 -1
  374. package/dist/lib/participation.cjs.js.map +1 -1
  375. package/dist/lib/participation.esm.js +4 -2
  376. package/dist/lib/participation.esm.js.map +1 -1
  377. package/dist/lib/preferences.cjs.js +1 -1
  378. package/dist/lib/preferences.cjs.js.map +1 -1
  379. package/dist/lib/preferences.esm.js +9 -7
  380. package/dist/lib/preferences.esm.js.map +1 -1
  381. package/dist/lib/table.cjs.js +2 -2
  382. package/dist/lib/table.cjs.js.map +1 -1
  383. package/dist/lib/table.esm.js +2 -2
  384. package/dist/lib/table.esm.js.map +1 -1
  385. package/dist/loader.js +8 -9
  386. package/dist/login/login.cjs.js.map +1 -1
  387. package/dist/media/media-capture.esm.js +2 -1
  388. package/dist/media/media-capture.esm.js.map +1 -1
  389. package/dist/solid-ui.js +162 -467
  390. package/dist/solid-ui.min.js +162 -467
  391. package/dist/solid-ui.min.js.map +1 -1
  392. package/dist/storybook/components/StorybookProvider.d.ts +1 -0
  393. package/dist/storybook/components/StorybookProvider.d.ts.map +1 -1
  394. package/dist/storybook/helpers.d.ts +2 -6
  395. package/dist/storybook/helpers.d.ts.map +1 -1
  396. package/dist/storybook/store/StorybookStore.d.ts +6 -0
  397. package/dist/storybook/store/StorybookStore.d.ts.map +1 -0
  398. package/dist/utils/headerFooterHelpers.cjs.js +1 -1
  399. package/dist/utils/headerFooterHelpers.cjs.js.map +1 -1
  400. package/dist/utils/headerFooterHelpers.esm.js +2 -1
  401. package/dist/utils/headerFooterHelpers.esm.js.map +1 -1
  402. package/dist/utils/index.cjs.js +1 -1
  403. package/dist/utils/index.cjs.js.map +1 -1
  404. package/dist/utils/index.esm.js +1 -1
  405. package/dist/utils/index.esm.js.map +1 -1
  406. package/dist/utils/keyHelpers/accessData.cjs.js +1 -1
  407. package/dist/utils/keyHelpers/accessData.cjs.js.map +1 -1
  408. package/dist/utils/keyHelpers/accessData.d.ts +3 -3
  409. package/dist/utils/keyHelpers/accessData.d.ts.map +1 -1
  410. package/dist/utils/keyHelpers/accessData.esm.js +2 -1
  411. package/dist/utils/keyHelpers/accessData.esm.js.map +1 -1
  412. package/dist/utils/keyHelpers/otherHelpers.d.ts +1 -1
  413. package/dist/utils/keyHelpers/otherHelpers.d.ts.map +1 -1
  414. package/dist/widgets/buttons.cjs.js +2 -2
  415. package/dist/widgets/buttons.cjs.js.map +1 -1
  416. package/dist/widgets/buttons.esm.js +10 -5
  417. package/dist/widgets/buttons.esm.js.map +1 -1
  418. package/dist/widgets/dragAndDrop.cjs.js +1 -1
  419. package/dist/widgets/dragAndDrop.cjs.js.map +1 -1
  420. package/dist/widgets/dragAndDrop.esm.js +1 -1
  421. package/dist/widgets/dragAndDrop.esm.js.map +1 -1
  422. package/dist/widgets/forms/autocomplete/autocompleteBar.esm.js +25 -18
  423. package/dist/widgets/forms/autocomplete/autocompleteBar.esm.js.map +1 -1
  424. package/dist/widgets/forms/autocomplete/autocompleteField.cjs.js.map +1 -1
  425. package/dist/widgets/forms/autocomplete/publicData.cjs.js +1 -1
  426. package/dist/widgets/forms/autocomplete/publicData.cjs.js.map +1 -1
  427. package/dist/widgets/forms/autocomplete/publicData.d.ts +3 -3
  428. package/dist/widgets/forms/autocomplete/publicData.d.ts.map +1 -1
  429. package/dist/widgets/forms/autocomplete/publicData.esm.js +6 -4
  430. package/dist/widgets/forms/autocomplete/publicData.esm.js.map +1 -1
  431. package/dist/widgets/forms/basic.cjs.js +1 -1
  432. package/dist/widgets/forms/basic.cjs.js.map +1 -1
  433. package/dist/widgets/forms/basic.esm.js +27 -25
  434. package/dist/widgets/forms/basic.esm.js.map +1 -1
  435. package/dist/widgets/forms/formStyle.cjs.js +1 -1
  436. package/dist/widgets/forms/formStyle.cjs.js.map +1 -1
  437. package/dist/widgets/forms/formStyle.esm.js +4 -4
  438. package/dist/widgets/forms/formStyle.esm.js.map +1 -1
  439. package/dist/widgets/forms.cjs.js +2 -2
  440. package/dist/widgets/forms.cjs.js.map +1 -1
  441. package/dist/widgets/forms.esm.js +10 -8
  442. package/dist/widgets/forms.esm.js.map +1 -1
  443. package/dist/widgets/multiSelect.cjs.js +1 -1
  444. package/dist/widgets/multiSelect.cjs.js.map +1 -1
  445. package/dist/widgets/multiSelect.esm.js +2 -1
  446. package/dist/widgets/multiSelect.esm.js.map +1 -1
  447. package/dist/widgets/peoplePicker.cjs.js.map +1 -1
  448. package/package.json +4 -4
  449. package/dist/chunks/auth-ClVI18ss.js.map +0 -1
  450. package/dist/chunks/chunk.7MPIABXH-CEYdxYyt.js.map +0 -1
  451. package/dist/chunks/close-dialog-DfAh83bX.js +0 -14
  452. package/dist/chunks/close-dialog-DfAh83bX.js.map +0 -1
  453. package/dist/chunks/combobox-DrT0Nb-A.js.map +0 -1
  454. package/dist/chunks/components-PQfnwrHI.js +0 -107
  455. package/dist/chunks/components-PQfnwrHI.js.map +0 -1
  456. package/dist/chunks/context-B_xwK-Y_.js +0 -22
  457. package/dist/chunks/context-B_xwK-Y_.js.map +0 -1
  458. package/dist/chunks/decorators-BqWyWiL9.js +0 -50
  459. package/dist/chunks/decorators-BqWyWiL9.js.map +0 -1
  460. package/dist/chunks/dialog-kyHgc-uy.js.map +0 -1
  461. package/dist/chunks/dialogs-root-dPGfuzSZ.js.map +0 -1
  462. package/dist/chunks/footer-BLSjn5ur.js +0 -144
  463. package/dist/chunks/footer-BLSjn5ur.js.map +0 -1
  464. package/dist/chunks/headerFooterHelpers-CPd5d20q.js +0 -52
  465. package/dist/chunks/headerFooterHelpers-CPd5d20q.js.map +0 -1
  466. package/dist/chunks/input-BjCX2bFe.js.map +0 -1
  467. package/dist/chunks/lit-C4H1jI4q.js +0 -527
  468. package/dist/chunks/lit-C4H1jI4q.js.map +0 -1
  469. package/dist/chunks/menu-1PG19fCC.js.map +0 -1
  470. package/dist/chunks/photo-capture-DzK6wZF4.js +0 -624
  471. package/dist/chunks/photo-capture-DzK6wZF4.js.map +0 -1
  472. package/dist/chunks/select-OM-SgY4K.js.map +0 -1
  473. package/dist/chunks/solid-logic.esm-BrMdCG2_.js.map +0 -1
  474. package/dist/chunks/src-DJOb1wMf.js.map +0 -1
  475. package/dist/components/footer/index.cjs.js +0 -1
  476. package/dist/components/footer/index.d.ts +0 -2
  477. package/dist/components/footer/index.d.ts.map +0 -1
  478. package/dist/components/footer/index.esm.js +0 -3
  479. package/dist/components/footer.js +0 -2
  480. package/dist/v2/components/layout/footer/Footer.cjs.js +0 -73
  481. package/dist/v2/components/layout/footer/Footer.cjs.js.map +0 -1
  482. package/dist/v2/components/layout/footer/Footer.d.ts +0 -60
  483. package/dist/v2/components/layout/footer/Footer.d.ts.map +0 -1
  484. package/dist/v2/components/layout/footer/Footer.esm.js +0 -143
  485. package/dist/v2/components/layout/footer/Footer.esm.js.map +0 -1
  486. package/dist/v2/components/layout/footer/Footer.test.d.ts +0 -1
  487. package/dist/v2/components/layout/footer/Footer.test.d.ts.map +0 -1
  488. package/dist/v2/components/layout/footer/index.cjs.js +0 -2
  489. package/dist/v2/components/layout/footer/index.cjs.js.map +0 -1
  490. package/dist/v2/components/layout/footer/index.d.ts +0 -3
  491. package/dist/v2/components/layout/footer/index.d.ts.map +0 -1
  492. package/dist/v2/components/layout/footer/index.esm.js +0 -8
  493. package/dist/v2/components/layout/footer/index.esm.js.map +0 -1
  494. package/dist/v2/components/media/photoCapture/PhotoCapture.cjs.js +0 -281
  495. package/dist/v2/components/media/photoCapture/PhotoCapture.cjs.js.map +0 -1
  496. package/dist/v2/components/media/photoCapture/PhotoCapture.d.ts +0 -200
  497. package/dist/v2/components/media/photoCapture/PhotoCapture.d.ts.map +0 -1
  498. package/dist/v2/components/media/photoCapture/PhotoCapture.esm.js +0 -623
  499. package/dist/v2/components/media/photoCapture/PhotoCapture.esm.js.map +0 -1
  500. package/dist/v2/components/media/photoCapture/PhotoCapture.test.d.ts +0 -1
  501. package/dist/v2/components/media/photoCapture/PhotoCapture.test.d.ts.map +0 -1
  502. package/dist/v2/components/media/photoCapture/index.cjs.js +0 -2
  503. package/dist/v2/components/media/photoCapture/index.cjs.js.map +0 -1
  504. package/dist/v2/components/media/photoCapture/index.d.ts +0 -3
  505. package/dist/v2/components/media/photoCapture/index.d.ts.map +0 -1
  506. package/dist/v2/components/media/photoCapture/index.esm.js +0 -8
  507. package/dist/v2/components/media/photoCapture/index.esm.js.map +0 -1
@@ -1,28 +1,28 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("rdflib"),require("solid-logic")):typeof define==`function`&&define.amd?define([`exports`,`rdflib`,`solid-logic`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UI={},e.$rdf,e.SolidLogic))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},u=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),d=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},p=(e,t,n)=>(n=e==null?{}:r(s(e)),f(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)),m=e=>c.call(e,`module.exports`)?e[`module.exports`]:f(i({},`__esModule`,{value:!0}),e);t=p(t);function h(e,t){customElements.get(e)||customElements.define(e,t)}function g(e){return(t,n)=>{if(n){n.addInitializer(()=>h(e,t));return}h(e,t)}}function _(){return Math.random().toString(36).substring(2,15)}var v=globalThis,y=v.ShadowRoot&&(v.ShadyCSS===void 0||v.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,b=Symbol(),x=new WeakMap,S=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==b)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(y&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=x.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&x.set(t,e))}return e}toString(){return this.cssText}},C=e=>new S(typeof e==`string`?e:e+``,void 0,b),w=(e,...t)=>new S(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,b),T=(e,t)=>{if(y)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=v.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},E=y?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return C(t)})(e):e,{is:D,defineProperty:O,getOwnPropertyDescriptor:k,getOwnPropertyNames:A,getOwnPropertySymbols:j,getPrototypeOf:ee}=Object,te=globalThis,ne=te.trustedTypes,re=ne?ne.emptyScript:``,ie=te.reactiveElementPolyfillSupport,ae=(e,t)=>e,oe={toAttribute(e,t){switch(t){case Boolean:e=e?re:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},se=(e,t)=>!D(e,t),ce={attribute:!0,type:String,converter:oe,reflect:!1,useDefault:!1,hasChanged:se};Symbol.metadata??=Symbol(`metadata`),te.litPropertyMetadata??=new WeakMap;var le=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ce){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&O(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=k(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ce}static _$Ei(){if(this.hasOwnProperty(ae(`elementProperties`)))return;let e=ee(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ae(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ae(`properties`))){let e=this.properties,t=[...A(e),...j(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(E(e))}else e!==void 0&&t.push(E(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return T(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?oe:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?oe:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??se)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};le.elementStyles=[],le.shadowRootOptions={mode:`open`},le[ae(`elementProperties`)]=new Map,le[ae(`finalized`)]=new Map,ie?.({ReactiveElement:le}),(te.reactiveElementVersions??=[]).push(`2.1.2`);var ue=globalThis,de=e=>e,fe=ue.trustedTypes,pe=fe?fe.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,me=`$lit$`,he=`lit$${Math.random().toFixed(9).slice(2)}$`,ge=`?`+he,_e=`<${ge}>`,ve=document,ye=()=>ve.createComment(``),be=e=>e===null||typeof e!=`object`&&typeof e!=`function`,xe=Array.isArray,Se=e=>xe(e)||typeof e?.[Symbol.iterator]==`function`,Ce=`[
2
- \f\r]`,we=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Te=/-->/g,Ee=/>/g,De=RegExp(`>|${Ce}(?:([^\\s"'>=/]+)(${Ce}*=${Ce}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Oe=/'/g,ke=/"/g,Ae=/^(?:script|style|textarea|title)$/i,M=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),je=Symbol.for(`lit-noChange`),N=Symbol.for(`lit-nothing`),Me=new WeakMap,Ne=ve.createTreeWalker(ve,129);function Pe(e,t){if(!xe(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return pe===void 0?t:pe.createHTML(t)}var Fe=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=we;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===we?c[1]===`!--`?o=Te:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=De):(Ae.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=De):o=Ee:o===De?c[0]===`>`?(o=i??we,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?De:c[3]===`"`?ke:Oe):o===ke||o===Oe?o=De:o===Te||o===Ee?o=we:(o=De,i=void 0);let d=o===De&&e[t+1].startsWith(`/>`)?` `:``;a+=o===we?n+_e:l>=0?(r.push(s),n.slice(0,l)+me+n.slice(l)+he+d):n+he+(l===-2?t:d)}return[Pe(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},Ie=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Fe(t,n);if(this.el=e.createElement(l,r),Ne.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=Ne.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(me)){let t=u[o++],n=i.getAttribute(e).split(he),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Ve:r[1]===`?`?He:r[1]===`@`?Ue:Be}),i.removeAttribute(e)}else e.startsWith(he)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(Ae.test(i.tagName)){let e=i.textContent.split(he),t=e.length-1;if(t>0){i.textContent=fe?fe.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],ye()),Ne.nextNode(),c.push({type:2,index:++a});i.append(e[t],ye())}}}else if(i.nodeType===8)if(i.data===ge)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(he,e+1))!==-1;)c.push({type:7,index:a}),e+=he.length-1}a++}}static createElement(e,t){let n=ve.createElement(`template`);return n.innerHTML=e,n}};function Le(e,t,n=e,r){if(t===je)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=be(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=Le(e,i._$AS(e,t.values),i,r)),t}var Re=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??ve).importNode(t,!0);Ne.currentNode=r;let i=Ne.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new ze(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new We(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=Ne.nextNode(),a++)}return Ne.currentNode=ve,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},ze=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Le(this,e,t),be(e)?e===N||e==null||e===``?(this._$AH!==N&&this._$AR(),this._$AH=N):e!==this._$AH&&e!==je&&this._(e):e._$litType$===void 0?e.nodeType===void 0?Se(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==N&&be(this._$AH)?this._$AA.nextSibling.data=e:this.T(ve.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=Ie.createElement(Pe(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Re(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Me.get(e.strings);return t===void 0&&Me.set(e.strings,t=new Ie(e)),t}k(t){xe(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(ye()),this.O(ye()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=de(e).nextSibling;de(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Be=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=N,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=N}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=Le(this,e,t,0),a=!be(e)||e!==this._$AH&&e!==je,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=Le(this,r[n+o],t,o),s===je&&(s=this._$AH[o]),a||=!be(s)||s!==this._$AH[o],s===N?e=N:e!==N&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Ve=class extends Be{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===N?void 0:e}},He=class extends Be{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==N)}},Ue=class extends Be{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=Le(this,e,t,0)??N)===je)return;let n=this._$AH,r=e===N&&n!==N||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==N&&(n===N||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},We=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Le(this,e)}},Ge={M:me,P:he,A:ge,C:1,L:Fe,R:Re,D:Se,V:Le,I:ze,H:Be,N:He,U:Ue,B:Ve,F:We},Ke=ue.litHtmlPolyfillSupport;Ke?.(Ie,ze),(ue.litHtmlVersions??=[]).push(`3.3.3`);var qe=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new ze(t.insertBefore(ye(),e),e,void 0,n??{})}return i._$AI(e),i},Je=globalThis,Ye=class extends le{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=qe(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return je}};Ye._$litElement$=!0,Ye.finalized=!0,Je.litElementHydrateSupport?.({LitElement:Ye});var Xe=Je.litElementPolyfillSupport;Xe?.({LitElement:Ye}),(Je.litElementVersions??=[]).push(`4.2.2`);var Ze=w`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid}::file-selector-button{box-sizing:border-box;border:0 solid}a,abbr,address,area,article,aside,audio,b,base,bdi,bdo,blockquote,body,br,button,canvas,caption,cite,code,col,colgroup,data,datalist,dd,del,details,dfn,dialog,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,img,input,ins,kbd,label,legend,li,link,main,map,mark,menu,meta,meter,nav,noscript,object,ol,optgroup,option,output,p,picture,pre,progress,q,rp,rt,ruby,s,samp,script,search,section,select,slot,small,source,span,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,u,ul,var,video,wbr,:after,:before,::backdrop{margin:0;padding:0}::file-selector-button{margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`,P=class extends Ye{static states;static finalizeStyles(e){return[Ze,...super.finalizeStyles(e)]}internals;globalListeners=[];traits=[];disconnectedCallback(){super.disconnectedCallback();for(let[e,t]of this.globalListeners)window.removeEventListener(e,t);this.globalListeners=[]}addTrait(e){return this.traits.push(e),e}firstUpdated(){this.forwardMethodCall(`firstUpdated`)}updated(e){this.forwardMethodCall(`updated`,e)}formResetCallback(){this.forwardMethodCall(`formResetCallback`)}willUpdate(e){super.willUpdate(e);let t=this.static().states;if(t)for(let[e,n]of Object.entries(t))this.toggleAttribute(`data-state-${e}`,!!n(this))}addGlobalEventListener(e,t){this.globalListeners.push([e,t]),window.addEventListener(e,t)}render(){return M`<slot></slot>`}getInternals(){return this.internals??=this.attachInternals(),this.internals}static(){return this.constructor}forwardMethodCall(e,...t){for(let n of this.traits)n[e]?.(...t)}},Qe=`solid-ui:close-dialog`,$e=class e extends Event{static eventName=Qe;constructor(t,n){super(e.eventName,{bubbles:!0,composed:!0}),this.id=t,this.data=n}},et=class{target;config;constructor(e,t){this.target=e,this.config=t}close(e){window.dispatchEvent(new $e(this.config.getContext().id,e))}},tt=class{controlId;labelId;target;config;constructor(e,t){this.config=t,this.controlId=`control-${_()}`,this.labelId=`label-${this.controlId}`,this.target=e}firstUpdated(){this.config.getInternals().setFormValue(String(this.target.value??``)),this.updateValidity()}updated(e){(e.has(`value`)||e.has(`required`))&&this.updateValidity()}formResetCallback(){this.target.value=``,this.config.getInternals().setFormValue(``),this.updateValidity()}renderLabel(){return this.target.label?M`<label id="${this.labelId}" for="${this.controlId}">${this.target.label}</label>`:N}onInput(){this.setValue(this.config.getControlElement()?.value)}onSubmit(){this.config.getInternals().form?.requestSubmit()}setValue(e){this.target.value=e,this.config.getInternals().setFormValue(String(this.target.value??``)),this.target.dispatchEvent(new InputEvent(`input`,{bubbles:!0,composed:!0}))}updateValidity(){let e=this.config.getInternals();this.target.required&&(this.target.value??``)===``?e.setValidity({valueMissing:!0},`Please fill out this field.`,this.config.getControlElement()??void 0):e.setValidity({})}},nt=class extends Event{constructor(e,t,n,r){super(`context-request`,{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=n,this.subscribe=r??!1}};function rt(e){return e}var it=class{constructor(e,t,n,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(e,t)=>{this.unsubscribe&&(this.unsubscribe!==t&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=e,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(e,t)),this.unsubscribe=t},this.host=e,t.context!==void 0){let e=t;this.context=e.context,this.callback=e.callback,this.subscribe=e.subscribe??!1}else this.context=t,this.callback=n,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&=(this.unsubscribe(),void 0)}dispatchRequest(){this.host.dispatchEvent(new nt(this.context,this.host,this.t,this.subscribe))}},at=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let n=t||!Object.is(e,this.o);this.o=e,n&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:t}]of this.subscriptions)e(this.o,t)},e!==void 0&&(this.value=e)}addCallback(e,t,n){if(!n)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:r}=this.subscriptions.get(e);e(this.value,r)}clearCallbacks(){this.subscriptions.clear()}},ot=class extends Event{constructor(e,t){super(`context-provider`,{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t}},st=class extends at{constructor(e,t,n){super(t.context===void 0?n:t.initialValue),this.onContextRequest=e=>{if(e.context!==this.context)return;let t=e.contextTarget??e.composedPath()[0];t!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,t,e.subscribe))},this.onProviderRequest=e=>{if(e.context!==this.context||(e.contextTarget??e.composedPath()[0])===this.host)return;let t=new Set;for(let[e,{consumerHost:n}]of this.subscriptions)t.has(e)||(t.add(e),n.dispatchEvent(new nt(this.context,n,e,!0)));e.stopPropagation()},this.host=e,t.context===void 0?this.context=t:this.context=t.context,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener(`context-request`,this.onContextRequest),this.host.addEventListener(`context-provider`,this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new ot(this.context,this.host))}};function ct({context:e}){return(t,n)=>{let r=new WeakMap;if(typeof n==`object`)return{get(){return t.get.call(this)},set(e){return r.get(this).setValue(e),t.set.call(this,e)},init(t){return r.set(this,new st(this,{context:e,initialValue:t})),t}};{t.constructor.addInitializer((t=>{r.set(t,new st(t,{context:e}))}));let i=Object.getOwnPropertyDescriptor(t,n),a;if(i===void 0){let e=new WeakMap;a={get(){return e.get(this)},set(t){r.get(this).setValue(t),e.set(this,t)},configurable:!0,enumerable:!0}}else{let e=i.set;a={...i,set(t){r.get(this).setValue(t),e?.call(this,t)}}}Object.defineProperty(t,n,a);return}}}function lt({context:e,subscribe:t}){return(n,r)=>{typeof r==`object`?r.addInitializer((function(){new it(this,{context:e,callback:e=>{n.set.call(this,e)},subscribe:t})})):n.constructor.addInitializer((n=>{new it(n,{context:e,callback:e=>{n[r]=e},subscribe:t})}))}}var ut=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},dt={attribute:!0,type:String,converter:oe,reflect:!1,hasChanged:se},ft=(e=dt,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function F(e){return(t,n)=>typeof n==`object`?ft(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function pt(e){return F({...e,state:!0,attribute:!1})}var mt=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function ht(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return mt(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return mt(n,r,{get(){return a(this)}})}}var gt=class{webId;avatarUrl;constructor(e,t){this.webId=e,this.avatarUrl=t}},_t=class{initialized=!1;account=null;async login(){throw Error(`Can't use auth, missing context provider`)}async signup(){throw Error(`Can't use auth, missing context provider`)}async logout(){throw Error(`Can't use auth, missing context provider`)}onSessionUpdated(){return()=>void 0}},vt=new _t,yt=rt(Symbol(`auth`)),I=(0,p(u(((e,t)=>{var n={acl:`http://www.w3.org/ns/auth/acl#`,arg:`http://www.w3.org/ns/pim/arg#`,as:`https://www.w3.org/ns/activitystreams#`,bookmark:`http://www.w3.org/2002/01/bookmark#`,cal:`http://www.w3.org/2002/12/cal/ical#`,cco:`http://www.ontologyrepository.com/CommonCoreOntologies/`,cert:`http://www.w3.org/ns/auth/cert#`,contact:`http://www.w3.org/2000/10/swap/pim/contact#`,dc:`http://purl.org/dc/elements/1.1/`,dct:`http://purl.org/dc/terms/`,doap:`http://usefulinc.com/ns/doap#`,foaf:`http://xmlns.com/foaf/0.1/`,geo:`http://www.w3.org/2003/01/geo/wgs84_pos#`,gpx:`http://www.w3.org/ns/pim/gpx#`,gr:`http://purl.org/goodrelations/v1#`,http:`http://www.w3.org/2007/ont/http#`,httph:`http://www.w3.org/2007/ont/httph#`,icalTZ:`http://www.w3.org/2002/12/cal/icaltzd#`,ldp:`http://www.w3.org/ns/ldp#`,link:`http://www.w3.org/2007/ont/link#`,log:`http://www.w3.org/2000/10/swap/log#`,meeting:`http://www.w3.org/ns/pim/meeting#`,mo:`http://purl.org/ontology/mo/`,org:`http://www.w3.org/ns/org#`,owl:`http://www.w3.org/2002/07/owl#`,pad:`http://www.w3.org/ns/pim/pad#`,patch:`http://www.w3.org/ns/pim/patch#`,prov:`http://www.w3.org/ns/prov#`,pto:`http://www.productontology.org/id/`,qu:`http://www.w3.org/2000/10/swap/pim/qif#`,trip:`http://www.w3.org/ns/pim/trip#`,rdf:`http://www.w3.org/1999/02/22-rdf-syntax-ns#`,rdfs:`http://www.w3.org/2000/01/rdf-schema#`,rss:`http://purl.org/rss/1.0/`,sched:`http://www.w3.org/ns/pim/schedule#`,schema:`http://schema.org/`,sioc:`http://rdfs.org/sioc/ns#`,skos:`http://www.w3.org/2004/02/skos/core#`,solid:`http://www.w3.org/ns/solid/terms#`,space:`http://www.w3.org/ns/pim/space#`,stat:`http://www.w3.org/ns/posix/stat#`,tab:`http://www.w3.org/2007/ont/link#`,tabont:`http://www.w3.org/2007/ont/link#`,ui:`http://www.w3.org/ns/ui#`,vann:`http://purl.org/vocab/vann/`,vcard:`http://www.w3.org/2006/vcard/ns#`,wf:`http://www.w3.org/2005/01/wf/flow#`,xsd:`http://www.w3.org/2001/XMLSchema#`};function r(e={namedNode:e=>e}){let t={};for(let r in n){let i=n[r];t[r]=function(t=``){return e.namedNode(i+t)}}return t}t.exports=r}))()).default)(t),bt={id:`noop-${_()}`},xt=rt(Symbol(`dialog`)),St=class{id;template;element;config;_resolveElement;constructor(e,t={}){this.id=_(),this.template=e,this.config=t,this.element=new Promise(e=>{this._resolveElement=e})}setElement(e){this._resolveElement(e)}closed(e){this.config.onClose?.(e)}},Ct=`solid-ui:show-dialog`,wt=class e extends Event{static eventName=Ct;constructor(t){super(e.eventName,{bubbles:!0,composed:!0}),this.dialog=t}};function Tt(e,t={}){let n=new St(e,t);return document.dispatchEvent(new wt(n)),n.element}var Et=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/></svg>`}};customElements.get(`icon-lucide-chevron-down`)||customElements.define(`icon-lucide-chevron-down`,Et);var Dt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/></svg>`}};customElements.get(`icon-lucide-x`)||customElements.define(`icon-lucide-x`,Dt);var Ot=w`:host{background:var(--solid-ui-color-slate-50);border-bottom:1px solid var(--solid-ui-color-slate-200);font-size:var(--solid-ui-font-size-lg);justify-content:space-between;align-items:center;gap:15px;padding:15px;font-weight:500;display:flex}`,kt,At,jt,Mt,Nt;function Pt(e,t,n){return(t=It(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ft(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Rt(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Rt(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return zt(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:It(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function It(e){var t=Lt(e,`string`);return typeof t==`symbol`?t:t+``}function Lt(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Rt(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function zt(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Bt(e){return e}Mt=[g(`solid-ui-dialog-header`)];var Vt;new(Nt=(At=class extends P{},[Vt,jt]=Ft(At,[],Mt,0,void 0,P).c,At),kt=class extends Bt{constructor(){super(Vt),Pt(this,`styles`,Ot),jt()}},Pt(kt,Nt,void 0),kt);var Ht=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="currentColor" 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"><animateTransform attributeName="transform" dur="0.75s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/></path></svg>`}};customElements.get(`icon-svg-spinners-180-ring`)||customElements.define(`icon-svg-spinners-180-ring`,Ht);var Ut=w`:host{--text-color:var(--solid-ui-color-white);--border-color:var(--solid-ui-color-primary);--background-color:var(--solid-ui-color-primary);--hover-text-color:var(--text-color);--hover-border-color:var(--solid-ui-color-tertiary);--hover-background-color:var(--solid-ui-color-tertiary);display:inline-flex;& button{font-size:var(--solid-ui-font-size-md);color:var(--text-color);background:var(--background-color);border:1px solid var(--border-color);border-radius:5px;flex:1;justify-content:center;align-items:center;gap:5px;padding:7px 12px;font-weight:600;display:flex;position:relative;&:disabled{opacity:.5;cursor:not-allowed}&:hover:not(:disabled){color:var(--hover-text-color);background:var(--hover-background-color);border-color:var(--hover-border-color)}& icon-svg-spinners-180-ring,& ::slotted([slot=left-icon]),& ::slotted([slot=right-icon]){width:var(--solid-ui-font-size-md);height:var(--solid-ui-font-size-md)}&:after{content:\"\";width:var(--solid-ui-clickable-area);height:var(--solid-ui-clickable-area);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}}}:host([data-has-icon-slot]) button{padding:4px;& ::slotted([slot=icon]){width:var(--solid-ui-font-size-2xl);height:var(--solid-ui-font-size-2xl)}}:host([variant=secondary]) button{--text-color:var(--solid-ui-color-gray-800);--border-color:var(--solid-ui-color-slate-400);--background-color:var(--solid-ui-color-white);--hover-text-color:var(--solid-ui-color-white);--hover-background-color:var(--solid-ui-color-tertiary);--hover-border-color:var(--solid-ui-color-tertiary)}:host([variant=tertiary]) button{--text-color:var(--solid-ui-color-primary);--border-color:transparent;--background-color:transparent;--hover-text-color:var(--solid-ui-color-tertiary);--hover-border-color:var(--solid-ui-color-tertiary);--hover-background-color:transparent;border-width:0 0 1px;border-radius:0;padding:0}:host([variant=outline]) button{--text-color:currentColor;--border-color:currentColor;--background-color:transparent;--hover-text-color:currentColor;--hover-border-color:currentColor;--hover-background-color:color-mix(in srgb, currentColor 25%, transparent)}:host([variant=ghost]) button{--text-color:currentColor;--border-color:transparent;--background-color:transparent;--hover-text-color:currentColor;--hover-border-color:transparent;--hover-background-color:var(--solid-ui-color-primary-hover)}`,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln;function un(e,t,n){dn(e,t),t.set(e,n)}function dn(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function fn(e,t,n){return e.set(mn(e,t),n),n}function pn(e,t){return e.get(mn(e,t))}function mn(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function hn(e,t,n){return(t=_n(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:yn(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||yn(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return bn(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:_n(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function _n(e){var t=vn(e,`string`);return typeof t==`symbol`?t:t+``}function vn(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function yn(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function bn(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function xn(e){return e}Qt=[g(`solid-ui-button`)];var Sn;new(cn=(Kt=new WeakMap,qt=new WeakMap,Jt=new WeakMap,Yt=new WeakMap,ln=($t=F({type:String,reflect:!0}),tn=F({type:String,reflect:!0}),rn=F({type:Boolean}),on=F({type:Boolean}),`variant`),Gt=class extends P{constructor(...e){super(...e),un(this,Kt,(Xt(this),en(this,`primary`))),un(this,qt,nn(this,`button`)),un(this,Jt,an(this,void 0)),un(this,Yt,sn(this,!1))}get[ln](){return pn(Kt,this)}set variant(e){fn(Kt,this,e)}get type(){return pn(qt,this)}set type(e){fn(qt,this,e)}get disabled(){return pn(Jt,this)}set disabled(e){fn(Jt,this,e)}get loading(){return pn(Yt,this)}set loading(e){fn(Yt,this,e)}render(){let e=this.disabled??this.loading;return M`
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("rdflib"),require("solid-logic")):typeof define==`function`&&define.amd?define([`exports`,`rdflib`,`solid-logic`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UI={},e.$rdf,e.SolidLogic))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},u=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),d=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},p=(e,t,n)=>(n=e==null?{}:r(s(e)),f(t||!e||!e.__esModule||!c.call(e,`default`)?i(n,`default`,{value:e,enumerable:!0}):n,e)),m=e=>c.call(e,`module.exports`)?e[`module.exports`]:f(i({},`__esModule`,{value:!0}),e);t=p(t);function h(e,t){customElements.get(e)||customElements.define(e,t)}function g(e){return(t,n)=>{if(n){n.addInitializer(()=>h(e,t));return}h(e,t)}}var _=`solid-ui:close-dialog`,v=class e extends Event{static eventName=_;constructor(t,n){super(e.eventName,{bubbles:!0,composed:!0}),this.id=t,this.data=n}};function y(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=x(e,`string`);return typeof t==`symbol`?t:t+``}function x(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var S=class{constructor(e,t){y(this,`target`,void 0),y(this,`config`,void 0),this.target=e,this.config=t}close(e){window.dispatchEvent(new v(this.config.getContext().id,e))}},C=class extends Event{constructor(e,t,n,r){super(`context-request`,{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=n,this.subscribe=r??!1}};function w(e){return e}var T=class{constructor(e,t,n,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(e,t)=>{this.unsubscribe&&(this.unsubscribe!==t&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=e,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(e,t)),this.unsubscribe=t},this.host=e,t.context!==void 0){let e=t;this.context=e.context,this.callback=e.callback,this.subscribe=e.subscribe??!1}else this.context=t,this.callback=n,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&=(this.unsubscribe(),void 0)}dispatchRequest(){this.host.dispatchEvent(new C(this.context,this.host,this.t,this.subscribe))}},E=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let n=t||!Object.is(e,this.o);this.o=e,n&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:t}]of this.subscriptions)e(this.o,t)},e!==void 0&&(this.value=e)}addCallback(e,t,n){if(!n)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:r}=this.subscriptions.get(e);e(this.value,r)}clearCallbacks(){this.subscriptions.clear()}},D=class extends Event{constructor(e,t){super(`context-provider`,{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t}},O=class extends E{constructor(e,t,n){super(t.context===void 0?n:t.initialValue),this.onContextRequest=e=>{if(e.context!==this.context)return;let t=e.contextTarget??e.composedPath()[0];t!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,t,e.subscribe))},this.onProviderRequest=e=>{if(e.context!==this.context||(e.contextTarget??e.composedPath()[0])===this.host)return;let t=new Set;for(let[e,{consumerHost:n}]of this.subscriptions)t.has(e)||(t.add(e),n.dispatchEvent(new C(this.context,n,e,!0)));e.stopPropagation()},this.host=e,this.context=t.context===void 0?t:t.context,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener(`context-request`,this.onContextRequest),this.host.addEventListener(`context-provider`,this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new D(this.context,this.host))}};function k({context:e}){return(t,n)=>{let r=new WeakMap;if(typeof n==`object`)return{get(){return t.get.call(this)},set(e){return r.get(this).setValue(e),t.set.call(this,e)},init(t){return r.set(this,new O(this,{context:e,initialValue:t})),t}};{t.constructor.addInitializer((t=>{r.set(t,new O(t,{context:e}))}));let i=Object.getOwnPropertyDescriptor(t,n),a;if(i===void 0){let e=new WeakMap;a={get(){return e.get(this)},set(t){r.get(this).setValue(t),e.set(this,t)},configurable:!0,enumerable:!0}}else{let e=i.set;a={...i,set(t){r.get(this).setValue(t),e?.call(this,t)}}}Object.defineProperty(t,n,a);return}}}function A({context:e,subscribe:t}){return(n,r)=>{typeof r==`object`?r.addInitializer((function(){new T(this,{context:e,callback:e=>{n.set.call(this,e)},subscribe:t})})):n.constructor.addInitializer((n=>{new T(n,{context:e,callback:e=>{n[r]=e},subscribe:t})}))}}function j(){return Math.random().toString(36).substring(2,15)}var ee={id:`noop-${j()}`},te=w(Symbol(`dialog`)),ne=globalThis,re=ne.ShadowRoot&&(ne.ShadyCSS===void 0||ne.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,ie=Symbol(),ae=new WeakMap,oe=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==ie)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(re&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=ae.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ae.set(t,e))}return e}toString(){return this.cssText}},se=e=>new oe(typeof e==`string`?e:e+``,void 0,ie),M=(e,...t)=>new oe(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,ie),ce=(e,t)=>{if(re)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=ne.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},le=re?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return se(t)})(e):e,{is:ue,defineProperty:de,getOwnPropertyDescriptor:fe,getOwnPropertyNames:pe,getOwnPropertySymbols:me,getPrototypeOf:he}=Object,ge=globalThis,_e=ge.trustedTypes,ve=_e?_e.emptyScript:``,ye=ge.reactiveElementPolyfillSupport,be=(e,t)=>e,xe={toAttribute(e,t){switch(t){case Boolean:e=e?ve:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Se=(e,t)=>!ue(e,t),Ce={attribute:!0,type:String,converter:xe,reflect:!1,useDefault:!1,hasChanged:Se};Symbol.metadata??=Symbol(`metadata`),ge.litPropertyMetadata??=new WeakMap;var we=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ce){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&de(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=fe(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ce}static _$Ei(){if(this.hasOwnProperty(be(`elementProperties`)))return;let e=he(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(be(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(be(`properties`))){let e=this.properties,t=[...pe(e),...me(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(le(e))}else e!==void 0&&t.push(le(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ce(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?xe:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?xe:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??Se)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};we.elementStyles=[],we.shadowRootOptions={mode:`open`},we[be(`elementProperties`)]=new Map,we[be(`finalized`)]=new Map,ye?.({ReactiveElement:we}),(ge.reactiveElementVersions??=[]).push(`2.1.2`);var Te=globalThis,Ee=e=>e,De=Te.trustedTypes,Oe=De?De.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,ke=`$lit$`,Ae=`lit$${Math.random().toFixed(9).slice(2)}$`,je=`?`+Ae,Me=`<${je}>`,Ne=document,Pe=()=>Ne.createComment(``),Fe=e=>e===null||typeof e!=`object`&&typeof e!=`function`,Ie=Array.isArray,Le=e=>Ie(e)||typeof e?.[Symbol.iterator]==`function`,Re=`[
2
+ \f\r]`,ze=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Be=/-->/g,Ve=/>/g,He=RegExp(`>|${Re}(?:([^\\s"'>=/]+)(${Re}*=${Re}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Ue=/'/g,We=/"/g,Ge=/^(?:script|style|textarea|title)$/i,N=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),Ke=Symbol.for(`lit-noChange`),P=Symbol.for(`lit-nothing`),qe=new WeakMap,Je=Ne.createTreeWalker(Ne,129);function Ye(e,t){if(!Ie(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return Oe===void 0?t:Oe.createHTML(t)}var Xe=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=ze;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===ze?c[1]===`!--`?o=Be:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=He):(Ge.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=He):o=Ve:o===He?c[0]===`>`?(o=i??ze,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?He:c[3]===`"`?We:Ue):o===We||o===Ue?o=He:o===Be||o===Ve?o=ze:(o=He,i=void 0);let d=o===He&&e[t+1].startsWith(`/>`)?` `:``;a+=o===ze?n+Me:l>=0?(r.push(s),n.slice(0,l)+ke+n.slice(l)+Ae+d):n+Ae+(l===-2?t:d)}return[Ye(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},Ze=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Xe(t,n);if(this.el=e.createElement(l,r),Je.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=Je.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(ke)){let t=u[o++],n=i.getAttribute(e).split(Ae),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?nt:r[1]===`?`?rt:r[1]===`@`?it:tt}),i.removeAttribute(e)}else e.startsWith(Ae)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(Ge.test(i.tagName)){let e=i.textContent.split(Ae),t=e.length-1;if(t>0){i.textContent=De?De.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],Pe()),Je.nextNode(),c.push({type:2,index:++a});i.append(e[t],Pe())}}}else if(i.nodeType===8)if(i.data===je)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(Ae,e+1))!==-1;)c.push({type:7,index:a}),e+=Ae.length-1}a++}}static createElement(e,t){let n=Ne.createElement(`template`);return n.innerHTML=e,n}};function Qe(e,t,n=e,r){if(t===Ke)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=Fe(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=Qe(e,i._$AS(e,t.values),i,r)),t}var $e=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??Ne).importNode(t,!0);Je.currentNode=r;let i=Je.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new et(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new at(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=Je.nextNode(),a++)}return Je.currentNode=Ne,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},et=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Qe(this,e,t),Fe(e)?e===P||e==null||e===``?(this._$AH!==P&&this._$AR(),this._$AH=P):e!==this._$AH&&e!==Ke&&this._(e):e._$litType$===void 0?e.nodeType===void 0?Le(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==P&&Fe(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ne.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=Ze.createElement(Ye(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new $e(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=qe.get(e.strings);return t===void 0&&qe.set(e.strings,t=new Ze(e)),t}k(t){Ie(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(Pe()),this.O(Pe()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=Ee(e).nextSibling;Ee(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=P,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=P}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=Qe(this,e,t,0),a=!Fe(e)||e!==this._$AH&&e!==Ke,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=Qe(this,r[n+o],t,o),s===Ke&&(s=this._$AH[o]),a||=!Fe(s)||s!==this._$AH[o],s===P?e=P:e!==P&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},nt=class extends tt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===P?void 0:e}},rt=class extends tt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==P)}},it=class extends tt{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=Qe(this,e,t,0)??P)===Ke)return;let n=this._$AH,r=e===P&&n!==P||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==P&&(n===P||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},at=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Qe(this,e)}},ot={M:ke,P:Ae,A:je,C:1,L:Xe,R:$e,D:Le,V:Qe,I:et,H:tt,N:rt,U:it,B:nt,F:at},st=Te.litHtmlPolyfillSupport;st?.(Ze,et),(Te.litHtmlVersions??=[]).push(`3.3.3`);var ct=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new et(t.insertBefore(Pe(),e),e,void 0,n??{})}return i._$AI(e),i},lt=globalThis,ut=class extends we{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ct(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ke}};ut._$litElement$=!0,ut.finalized=!0,lt.litElementHydrateSupport?.({LitElement:ut});var dt=lt.litElementPolyfillSupport;dt?.({LitElement:ut}),(lt.litElementVersions??=[]).push(`4.2.2`);var ft=M`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid}::file-selector-button{box-sizing:border-box;border:0 solid}a,abbr,address,area,article,aside,audio,b,base,bdi,bdo,blockquote,body,br,button,canvas,caption,cite,code,col,colgroup,data,datalist,dd,del,details,dfn,dialog,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,img,input,ins,kbd,label,legend,li,link,main,map,mark,menu,meta,meter,nav,noscript,object,ol,optgroup,option,output,p,picture,pre,progress,q,rp,rt,ruby,s,samp,script,search,section,select,slot,small,source,span,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,u,ul,var,video,wbr,:after,:before,::backdrop{margin:0;padding:0}::file-selector-button{margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`;function pt(e,t,n){return(t=mt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e){var t=ht(e,`string`);return typeof t==`symbol`?t:t+``}function ht(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var gt=Symbol(`WebComponentMetadata`),F=class extends ut{constructor(...e){super(...e),pt(this,gt,void 0),pt(this,`internals`,void 0),pt(this,`globalListeners`,[]),pt(this,`traits`,[])}static finalizeStyles(e){return[ft,...super.finalizeStyles(e)]}disconnectedCallback(){super.disconnectedCallback();for(let[e,t]of this.globalListeners)window.removeEventListener(e,t);this.globalListeners=[]}addTrait(e){return this.traits.push(e),e}firstUpdated(){this.forwardMethodCall(`firstUpdated`)}updated(e){this.forwardMethodCall(`updated`,e)}formResetCallback(){this.forwardMethodCall(`formResetCallback`)}willUpdate(e){super.willUpdate(e);let t=this.static().states;if(t)for(let[e,n]of Object.entries(t))this.toggleAttribute(`data-state-${e}`,!!n(this))}addGlobalEventListener(e,t){this.globalListeners.push([e,t]),window.addEventListener(e,t)}render(){return N`<slot></slot>`}getInternals(){return this.internals??=this.attachInternals(),this.internals}static(){return this.constructor}forwardMethodCall(e,...t){for(let n of this.traits)n[e]?.(...t)}};pt(F,`states`,void 0);var _t,vt,yt,bt,xt;function St(e,t,n){Ct(e,t),t.set(e,n)}function Ct(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function wt(e,t,n){return(t=kt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tt(e,t,n){return e.set(Dt(e,t),n),n}function Et(e,t){return e.get(Dt(e,t))}function Dt(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Ot(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:jt(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||jt(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Mt(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:kt(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function kt(e){var t=At(e,`string`);return typeof t==`symbol`?t:t+``}function At(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function jt(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Mt(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}var Nt=new WeakMap;xt=(yt=A({context:te,subscribe:!0}),`dialogTrait`);var Pt=class extends F{get context(){return Et(Nt,this)}set context(e){Tt(Nt,this,e)}constructor(){super(),wt(this,xt,void vt(this)),St(this,Nt,bt(this,ee)),this.dialogTrait=this.addTrait(new S(this,{getContext:()=>this.context}))}close(e){this.dialogTrait.close(e)}};_t=Pt,[bt,vt]=Ot(_t,[[yt,1,`context`]],[],0,void 0,F).e;var Ft=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},It={attribute:!0,type:String,converter:xe,reflect:!1,hasChanged:Se},Lt=(e=It,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function I(e){return(t,n)=>typeof n==`object`?Lt(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function L(e){return I({...e,state:!0,attribute:!1})}var Rt=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function zt(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return Rt(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return Rt(n,r,{get(){return a(this)}})}}function Bt(e,t,n){return(t=Vt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e){var t=Ht(e,`string`);return typeof t==`symbol`?t:t+``}function Ht(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ut=class{constructor(e,t){Bt(this,`controlId`,void 0),Bt(this,`labelId`,void 0),Bt(this,`target`,void 0),Bt(this,`config`,void 0),this.config=t,this.controlId=`control-${j()}`,this.labelId=`label-${this.controlId}`,this.target=e}firstUpdated(){this.config.getInternals().setFormValue(this.target.value??``),this.updateValidity()}updated(e){(e.has(`value`)||e.has(`required`))&&this.updateValidity()}formResetCallback(){this.target.value=``,this.config.getInternals().setFormValue(``),this.updateValidity()}renderLabel(){return this.target.label?N`<label id="${this.labelId}" for="${this.controlId}">${this.target.label}</label>`:P}onInput(){this.setValue(this.config.getControlElement()?.value??null)}onSubmit(){this.config.getInternals().form?.requestSubmit()}setValue(e){this.target.value=e,this.config.getInternals().setFormValue(this.target.value??``),this.target.dispatchEvent(new InputEvent(`input`,{bubbles:!0,composed:!0}))}updateValidity(){let e=this.config.getInternals();this.target.required&&(this.target.value??``)===``?e.setValidity({valueMissing:!0},`Please fill out this field.`,this.config.getControlElement()??void 0):e.setValidity({})}},Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an;function on(e,t,n){sn(e,t),t.set(e,n)}function sn(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function cn(e,t,n){return(t=pn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e,t,n){return e.set(dn(e,t),n),n}function un(e,t){return e.get(dn(e,t))}function dn(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function fn(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:hn(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||hn(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return gn(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:pn(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function pn(e){var t=mn(e,`string`);return typeof t==`symbol`?t:t+``}function mn(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function hn(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function gn(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}var _n=new WeakMap,vn=new WeakMap,yn=new WeakMap,bn=new WeakMap,xn=new WeakMap,Sn=new WeakMap;an=(Kt=I({type:String,reflect:!0}),Jt=I({type:String,reflect:!0}),Xt=I(),Qt=I({type:String,reflect:!0}),en=I({type:Boolean,reflect:!0}),nn=I({type:Boolean,reflect:!0}),`formAssociated`);var Cn=class extends F{get label(){return un(_n,this)}set label(e){ln(_n,this,e)}get name(){return un(vn,this)}set name(e){ln(vn,this,e)}get value(){return un(yn,this)}set value(e){ln(yn,this,e)}get placeholder(){return un(bn,this)}set placeholder(e){ln(bn,this,e)}get required(){return un(xn,this)}set required(e){ln(xn,this,e)}get disabled(){return un(Sn,this)}set disabled(e){ln(Sn,this,e)}constructor(){super(),on(this,_n,(Gt(this),qt(this,``))),on(this,vn,Yt(this,``)),on(this,yn,Zt(this,null)),on(this,bn,$t(this,``)),on(this,xn,tn(this,!1)),on(this,Sn,rn(this,!1)),cn(this,`controlTrait`,void 0),this.controlTrait=this.addTrait(new Ut(this,{getControlElement:()=>this.controlElement,getInternals:()=>this.getInternals()}))}};Wt=Cn,[qt,Yt,Zt,$t,tn,rn,Gt]=fn(Wt,[[Kt,1,`label`],[Jt,1,`name`],[Xt,1,`value`],[Qt,1,`placeholder`],[en,1,`required`],[nn,1,`disabled`]],[],0,void 0,F).e,cn(Cn,an,!0);var wn=class{webId;avatarUrl;constructor(e,t){this.webId=e,this.avatarUrl=t}},Tn=class{initialized=!1;account=null;async login(){throw Error(`Can't use auth, missing context provider`)}async signup(){throw Error(`Can't use auth, missing context provider`)}async logout(){throw Error(`Can't use auth, missing context provider`)}onSessionUpdated(){return()=>void 0}},En=new Tn,Dn=w(Symbol(`auth`)),R=(0,p(u(((e,t)=>{var n={acl:`http://www.w3.org/ns/auth/acl#`,arg:`http://www.w3.org/ns/pim/arg#`,as:`https://www.w3.org/ns/activitystreams#`,bookmark:`http://www.w3.org/2002/01/bookmark#`,cal:`http://www.w3.org/2002/12/cal/ical#`,cco:`http://www.ontologyrepository.com/CommonCoreOntologies/`,cert:`http://www.w3.org/ns/auth/cert#`,contact:`http://www.w3.org/2000/10/swap/pim/contact#`,dc:`http://purl.org/dc/elements/1.1/`,dct:`http://purl.org/dc/terms/`,doap:`http://usefulinc.com/ns/doap#`,foaf:`http://xmlns.com/foaf/0.1/`,geo:`http://www.w3.org/2003/01/geo/wgs84_pos#`,gpx:`http://www.w3.org/ns/pim/gpx#`,gr:`http://purl.org/goodrelations/v1#`,http:`http://www.w3.org/2007/ont/http#`,httph:`http://www.w3.org/2007/ont/httph#`,icalTZ:`http://www.w3.org/2002/12/cal/icaltzd#`,ldp:`http://www.w3.org/ns/ldp#`,link:`http://www.w3.org/2007/ont/link#`,log:`http://www.w3.org/2000/10/swap/log#`,meeting:`http://www.w3.org/ns/pim/meeting#`,mo:`http://purl.org/ontology/mo/`,org:`http://www.w3.org/ns/org#`,owl:`http://www.w3.org/2002/07/owl#`,pad:`http://www.w3.org/ns/pim/pad#`,patch:`http://www.w3.org/ns/pim/patch#`,prov:`http://www.w3.org/ns/prov#`,pto:`http://www.productontology.org/id/`,qu:`http://www.w3.org/2000/10/swap/pim/qif#`,trip:`http://www.w3.org/ns/pim/trip#`,rdf:`http://www.w3.org/1999/02/22-rdf-syntax-ns#`,rdfs:`http://www.w3.org/2000/01/rdf-schema#`,rss:`http://purl.org/rss/1.0/`,sched:`http://www.w3.org/ns/pim/schedule#`,schema:`http://schema.org/`,sioc:`http://rdfs.org/sioc/ns#`,skos:`http://www.w3.org/2004/02/skos/core#`,solid:`http://www.w3.org/ns/solid/terms#`,space:`http://www.w3.org/ns/pim/space#`,stat:`http://www.w3.org/ns/posix/stat#`,tab:`http://www.w3.org/2007/ont/link#`,tabont:`http://www.w3.org/2007/ont/link#`,ui:`http://www.w3.org/ns/ui#`,vann:`http://purl.org/vocab/vann/`,vcard:`http://www.w3.org/2006/vcard/ns#`,wf:`http://www.w3.org/2005/01/wf/flow#`,xsd:`http://www.w3.org/2001/XMLSchema#`};function r(e={namedNode:e=>e}){let t={};for(let r in n){let i=n[r];t[r]=function(t=``){return e.namedNode(i+t)}}return t}t.exports=r}))()).default)(t),On=class{id;element;config;constructor(e,t={}){this.id=j(),this.config=t,this.element=e}closed(e){this.config.onClose?.(e)}},kn=`solid-ui:show-dialog`,An=class e extends Event{static eventName=kn;constructor(t){super(e.eventName,{bubbles:!0,composed:!0}),this.dialog=t}};function jn(e,t){let n=new e;Object.assign(n,t?.props);let r=new On(n,t);return document.dispatchEvent(new An(r)),r.element}var Mn=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/></svg>`}};customElements.get(`icon-lucide-chevron-down`)||customElements.define(`icon-lucide-chevron-down`,Mn);var Nn=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/></svg>`}};customElements.get(`icon-lucide-x`)||customElements.define(`icon-lucide-x`,Nn);var Pn=M`:host{background:var(--solid-ui-color-slate-50);border-bottom:1px solid var(--solid-ui-color-slate-200);font-size:var(--solid-ui-font-size-lg);justify-content:space-between;align-items:center;gap:15px;padding:15px;font-weight:500;display:flex}`,Fn,In,Ln,Rn,zn;function Bn(e,t,n){return(t=Hn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vn(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Wn(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Wn(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Gn(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Hn(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Hn(e){var t=Un(e,`string`);return typeof t==`symbol`?t:t+``}function Un(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Wn(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Gn(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Kn(e){return e}Rn=[g(`solid-ui-dialog-header`)];var qn;new(zn=(In=class extends F{},[qn,Ln]=Vn(In,[],Rn,0,void 0,F).c,In),Fn=class extends Kn{constructor(){super(qn),Bn(this,`styles`,Pn),Ln()}},Bn(Fn,zn,void 0),Fn);var Jn=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="currentColor" 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"><animateTransform attributeName="transform" dur="0.75s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/></path></svg>`}};customElements.get(`icon-svg-spinners-180-ring`)||customElements.define(`icon-svg-spinners-180-ring`,Jn);var Yn=M`:host{--text-color:var(--solid-ui-color-white);--border-color:var(--solid-ui-color-primary);--background-color:var(--solid-ui-color-primary);--hover-text-color:var(--text-color);--hover-border-color:var(--solid-ui-color-tertiary);--hover-background-color:var(--solid-ui-color-tertiary);display:inline-flex;& button{font-size:var(--solid-ui-font-size-md);color:var(--text-color);background:var(--background-color);border:1px solid var(--border-color);border-radius:5px;flex:1;justify-content:center;align-items:center;gap:5px;padding:7px 12px;font-weight:600;display:flex;position:relative;&:disabled{opacity:.5;cursor:not-allowed}&:hover:not(:disabled){color:var(--hover-text-color);background:var(--hover-background-color);border-color:var(--hover-border-color)}& icon-svg-spinners-180-ring,& ::slotted([slot=left-icon]),& ::slotted([slot=right-icon]){width:var(--solid-ui-font-size-md);height:var(--solid-ui-font-size-md)}&:after{content:\"\";width:var(--solid-ui-clickable-area);height:var(--solid-ui-clickable-area);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}}}:host([data-has-icon-slot]) button{padding:4px;& ::slotted([slot=icon]){width:var(--solid-ui-font-size-2xl);height:var(--solid-ui-font-size-2xl)}}:host([variant=secondary]) button{--text-color:var(--solid-ui-color-gray-800);--border-color:var(--solid-ui-color-slate-400);--background-color:var(--solid-ui-color-white);--hover-text-color:var(--solid-ui-color-white);--hover-background-color:var(--solid-ui-color-tertiary);--hover-border-color:var(--solid-ui-color-tertiary)}:host([variant=tertiary]) button{--text-color:var(--solid-ui-color-primary);--border-color:transparent;--background-color:transparent;--hover-text-color:var(--solid-ui-color-tertiary);--hover-border-color:var(--solid-ui-color-tertiary);--hover-background-color:transparent;border-width:0 0 1px;border-radius:0;padding:0}:host([variant=outline]) button{--text-color:currentColor;--border-color:currentColor;--background-color:transparent;--hover-text-color:currentColor;--hover-border-color:currentColor;--hover-background-color:color-mix(in srgb, currentColor 25%, transparent)}:host([variant=ghost]) button{--text-color:currentColor;--border-color:transparent;--background-color:transparent;--hover-text-color:currentColor;--hover-border-color:transparent;--hover-background-color:var(--solid-ui-color-primary-hover)}`,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr;function hr(e,t,n){gr(e,t),t.set(e,n)}function gr(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function _r(e,t,n){return e.set(yr(e,t),n),n}function vr(e,t){return e.get(yr(e,t))}function yr(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function br(e,t,n){return(t=Sr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:wr(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||wr(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Tr(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Sr(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Sr(e){var t=Cr(e,`string`);return typeof t==`symbol`?t:t+``}function Cr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wr(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Tr(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Er(e){return e}ir=[g(`solid-ui-button`)];var Dr;new(pr=(Qn=new WeakMap,$n=new WeakMap,er=new WeakMap,tr=new WeakMap,mr=(ar=I({type:String,reflect:!0}),sr=I({type:String,reflect:!0}),lr=I({type:Boolean}),dr=I({type:Boolean}),`variant`),Zn=class extends F{constructor(...e){super(...e),hr(this,Qn,(nr(this),or(this,`primary`))),hr(this,$n,cr(this,`button`)),hr(this,er,ur(this,void 0)),hr(this,tr,fr(this,!1))}get[mr](){return vr(Qn,this)}set variant(e){_r(Qn,this,e)}get type(){return vr($n,this)}set type(e){_r($n,this,e)}get disabled(){return vr(er,this)}set disabled(e){_r(er,this,e)}get loading(){return vr(tr,this)}set loading(e){_r(tr,this,e)}render(){let e=this.disabled??this.loading;return N`
3
3
  <button type=${this.type} ?disabled=${e} @click=${this.onClick}>
4
- ${this.loading?M`<icon-svg-spinners-180-ring></icon-svg-spinners-180-ring>`:N}
4
+ ${this.loading?N`<icon-svg-spinners-180-ring></icon-svg-spinners-180-ring>`:P}
5
5
  <slot name="left-icon"></slot>
6
6
  <slot @slotchange=${this.onIconSlotChange} name="icon"></slot>
7
7
  <slot></slot>
8
8
  <slot name="right-icon"></slot>
9
9
  </button>
10
- `}onIconSlotChange(e){let t=e.target;this.toggleAttribute(`data-has-icon-slot`,t.assignedElements().length>0)}onClick(){switch(this.type){case`submit`:this.getInternals().form?.requestSubmit();break;case`reset`:this.getInternals().form?.reset();break}}},{e:[en,nn,an,sn,Xt],c:[Sn,Zt]}=gn(Gt,[[$t,1,`variant`],[tn,1,`type`],[rn,1,`disabled`],[on,1,`loading`]],Qt,0,void 0,P),Gt),Wt=class extends xn{constructor(){super(Sn),hn(this,`styles`,Ut),hn(this,`formAssociated`,!0),Zt()}},hn(Wt,cn,void 0),Wt);var Cn=w`dialog{border-radius:5px;min-width:343px;margin:auto;box-shadow:0 4px 16px #00000059;& solid-ui-dialog-header solid-ui-button{color:var(--solid-ui-color-gray-600)}}dialog:not([open]){display:none}`,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn;function Bn(e,t,n){Vn(e,t),t.set(e,n)}function Vn(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Hn(e,t,n){return e.set(Wn(e,t),n),n}function Un(e,t){return e.get(Wn(e,t))}function Wn(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Gn(e,t,n){return(t=qn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kn(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Yn(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Yn(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Xn(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:qn(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function qn(e){var t=Jn(e,`string`);return typeof t==`symbol`?t:t+``}function Jn(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Yn(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Xn(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Zn(e){return e}jn=[g(`solid-ui-dialog`)];var Qn;new(Rn=(En=new WeakMap,Dn=new WeakMap,On=new WeakMap,zn=(Mn=F({type:String,reflect:!0}),Pn=ht(`dialog`),In=lt({context:xt,subscribe:!0}),`title`),Tn=class extends P{get[zn](){return Un(En,this)}set title(e){Hn(En,this,e)}get nativeDialog(){return Un(Dn,this)}set nativeDialog(e){Hn(Dn,this,e)}get context(){return Un(On,this)}set context(e){Hn(On,this,e)}constructor(){super(),Bn(this,En,(kn(this),Nn(this,``))),Bn(this,Dn,Fn(this,null)),Bn(this,On,Ln(this,bt)),Gn(this,`dialogTrait`,void 0),this.dialogTrait=this.addTrait(new et(this,{getContext:()=>this.context}))}close(e){this.dialogTrait.close(e)}firstUpdated(){this.nativeDialog&&(typeof this.nativeDialog.showModal==`function`?this.nativeDialog.showModal():typeof this.nativeDialog.show==`function`?this.nativeDialog.show():this.nativeDialog.setAttribute(`open`,``),this.nativeDialog.addEventListener(`close`,()=>this.close()))}render(){return M`
10
+ `}onIconSlotChange(e){let t=e.target;this.toggleAttribute(`data-has-icon-slot`,t.assignedElements().length>0)}onClick(){switch(this.type){case`submit`:this.getInternals().form?.requestSubmit();break;case`reset`:this.getInternals().form?.reset()}}},{e:[or,cr,ur,fr,nr],c:[Dr,rr]}=xr(Zn,[[ar,1,`variant`],[sr,1,`type`],[lr,1,`disabled`],[dr,1,`loading`]],ir,0,void 0,F),Zn),Xn=class extends Er{constructor(){super(Dr),br(this,`styles`,Yn),br(this,`formAssociated`,!0),rr()}},br(Xn,pr,void 0),Xn);var Or=M`dialog{border-radius:5px;min-width:343px;margin:auto;box-shadow:0 4px 16px #00000059;& solid-ui-dialog-header solid-ui-button{color:var(--solid-ui-color-gray-600)}}dialog:not([open]){display:none}`,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr;function Gr(e,t,n){Kr(e,t),t.set(e,n)}function Kr(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function qr(e,t,n){return e.set(Yr(e,t),n),n}function Jr(e,t){return e.get(Yr(e,t))}function Yr(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Xr(e,t,n){return(t=Qr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zr(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:ei(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||ei(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return ti(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Qr(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Qr(e){var t=$r(e,`string`);return typeof t==`symbol`?t:t+``}function $r(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ei(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function ti(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function ni(e){return e}Ir=[g(`solid-ui-dialog`)];var ri;new(Ur=(jr=new WeakMap,Mr=new WeakMap,Nr=new WeakMap,Wr=(Lr=I({type:String,reflect:!0}),zr=zt(`dialog`),Vr=A({context:te,subscribe:!0}),`title`),Ar=class extends F{get[Wr](){return Jr(jr,this)}set title(e){qr(jr,this,e)}get nativeDialog(){return Jr(Mr,this)}set nativeDialog(e){qr(Mr,this,e)}get context(){return Jr(Nr,this)}set context(e){qr(Nr,this,e)}constructor(){super(),Gr(this,jr,(Pr(this),Rr(this,``))),Gr(this,Mr,Br(this,null)),Gr(this,Nr,Hr(this,ee)),Xr(this,`dialogTrait`,void 0),this.dialogTrait=this.addTrait(new S(this,{getContext:()=>this.context}))}close(e){this.dialogTrait.close(e)}firstUpdated(){this.nativeDialog&&(typeof this.nativeDialog.showModal==`function`?this.nativeDialog.showModal():typeof this.nativeDialog.show==`function`?this.nativeDialog.show():this.nativeDialog.setAttribute(`open`,``),this.nativeDialog.addEventListener(`close`,()=>this.close()))}render(){return N`
11
11
  <dialog>
12
- <slot name="header">${this.title?M`
12
+ <slot name="header">${this.title?N`
13
13
  <solid-ui-dialog-header>
14
14
  <h1>${this.title}</h1>
15
15
 
16
- <solid-ui-button variant="ghost" @click=${this.close}>
16
+ <solid-ui-button variant="ghost" @click=${()=>this.close()}>
17
17
  <span class="sr-only">Close</span>
18
18
  <icon-lucide-x slot="icon"></icon-lucide-x>
19
19
  </solid-ui-button>
20
20
  </solid-ui-dialog-header>
21
- `:N}</slot>
21
+ `:P}</slot>
22
22
  <slot></slot>
23
23
  <slot name="footer"></slot>
24
24
  </dialog>
25
- `}},{e:[Nn,Fn,Ln,kn],c:[Qn,An]}=Kn(Tn,[[Mn,1,`title`],[Pn,1,`nativeDialog`],[In,1,`context`]],jn,0,void 0,P),Tn),wn=class extends Zn{constructor(){super(Qn),Gn(this,`styles`,Cn),An()}},Gn(wn,Rn,void 0),wn);var $n=w`:host{flex-direction:column;gap:15px;padding:15px;display:flex}`,er,tr,nr,rr,ir;function ar(e,t,n){return(t=sr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:lr(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||lr(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return ur(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:sr(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function sr(e){var t=cr(e,`string`);return typeof t==`symbol`?t:t+``}function cr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lr(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function ur(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function dr(e){return e}rr=[g(`solid-ui-dialog-content`)];var fr;new(ir=(tr=class extends P{},[fr,nr]=or(tr,[],rr,0,void 0,P).c,tr),er=class extends dr{constructor(){super(fr),ar(this,`styles`,$n),nr()}},ar(er,ir,void 0),er);var pr=w`:host{border-top:1px solid var(--solid-ui-color-slate-200);justify-content:space-between;align-items:center;gap:15px;padding:15px;display:flex}`,mr,hr,gr,_r,vr;function yr(e,t,n){return(t=xr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function br(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Cr(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Cr(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return wr(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:xr(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function xr(e){var t=Sr(e,`string`);return typeof t==`symbol`?t:t+``}function Sr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Cr(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function wr(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Tr(e){return e}_r=[g(`solid-ui-dialog-footer`)];var Er;new(vr=(hr=class extends P{},[Er,gr]=br(hr,[],_r,0,void 0,P).c,hr),mr=class extends Tr{constructor(){super(Er),yr(this,`styles`,pr),gr()}},yr(mr,vr,void 0),mr);var Dr=Symbol(),Or=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((e,t)=>{this.o=e,this.h=t})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(e,t,n){this.p=0,this.i=0,(this._=e).addController(this);let r=typeof t==`object`?t:{task:t,args:n};this.v=r.task,this.j=r.args,this.m=r.argsEqual??kr,this.k=r.onComplete,this.A=r.onError,this.autoRun=r.autoRun??!0,`initialValue`in r&&(this.u=r.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){!0===this.autoRun&&this.S()}hostUpdated(){this.autoRun===`afterUpdate`&&this.S()}T(){if(this.j===void 0)return;let e=this.j();if(!Array.isArray(e))throw Error(`The args function must return an array`);return e}async S(){let e=this.T(),t=this.O;this.O=e,e===t||e===void 0||t!==void 0&&this.m(t,e)||await this.run(e)}async run(e){let t,n;e??=this.T(),this.O=e,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun===`afterUpdate`?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let r=++this.p;this.q=new AbortController;let i=!1;try{t=await this.v(e,{signal:this.q.signal})}catch(e){i=!0,n=e}if(this.p===r){if(t===Dr)this.i=0;else{if(!1===i){try{this.k?.(t)}catch{}this.i=2,this.o?.(t)}else{try{this.A?.(n)}catch{}this.i=3,this.h?.(n)}this.u=t,this.l=n}this._.requestUpdate()}}abort(e){this.i===1&&this.q?.abort(e)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(e){switch(this.i){case 0:return e.initial?.();case 1:return e.pending?.();case 2:return e.complete?.(this.value);case 3:return e.error?.(this.error);default:throw Error(`Unexpected status: `+this.i)}}},kr=(e,t)=>e===t||e.length===t.length&&e.every(((e,n)=>!se(e,t[n])));function Ar(e,t){let n=null,r=(...i)=>{r.cancel(),n=setTimeout(()=>t(...i),e)};return r.cancel=()=>{n!==null&&(clearTimeout(n),n=null)},r}var jr=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><circle cx="4" cy="12" r="3" fill="currentColor"><animate id="SVG7x14Dcom" fill="freeze" attributeName="opacity" begin="0;SVGqSjG0dUp.end-0.25s" dur="0.75s" values="1;.2"/></circle><circle cx="12" cy="12" r="3" fill="currentColor" opacity=".4"><animate fill="freeze" attributeName="opacity" begin="SVG7x14Dcom.begin+0.15s" dur="0.75s" values="1;.2"/></circle><circle cx="20" cy="12" r="3" fill="currentColor" opacity=".3"><animate id="SVGqSjG0dUp" fill="freeze" attributeName="opacity" begin="SVG7x14Dcom.begin+0.3s" dur="0.75s" values="1;.2"/></circle></svg>`}};customElements.get(`icon-svg-spinners-3-dots-fade`)||customElements.define(`icon-svg-spinners-3-dots-fade`,jr);var Mr=class extends Event{constructor(){super(`wa-reposition`,{bubbles:!0,cancelable:!1,composed:!0})}},Nr=w`
25
+ `}},{e:[Rr,Br,Hr,Pr],c:[ri,Fr]}=Zr(Ar,[[Lr,1,`title`],[zr,1,`nativeDialog`],[Vr,1,`context`]],Ir,0,void 0,F),Ar),kr=class extends ni{constructor(){super(ri),Xr(this,`styles`,Or),Fr()}},Xr(kr,Ur,void 0),kr);var ii=M`:host{flex-direction:column;gap:15px;padding:15px;display:flex}`,ai,oi,si,ci,li;function ui(e,t,n){return(t=fi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function di(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:mi(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||mi(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return hi(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:fi(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function fi(e){var t=pi(e,`string`);return typeof t==`symbol`?t:t+``}function pi(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mi(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function hi(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function gi(e){return e}ci=[g(`solid-ui-dialog-content`)];var _i;new(li=(oi=class extends F{},[_i,si]=di(oi,[],ci,0,void 0,F).c,oi),ai=class extends gi{constructor(){super(_i),ui(this,`styles`,ii),si()}},ui(ai,li,void 0),ai);var vi=M`:host{border-top:1px solid var(--solid-ui-color-slate-200);justify-content:space-between;align-items:center;gap:15px;padding:15px;display:flex}`,yi,bi,xi,Si,Ci;function wi(e,t,n){return(t=Ei(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ti(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Oi(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Oi(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return ki(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Ei(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Ei(e){var t=Di(e,`string`);return typeof t==`symbol`?t:t+``}function Di(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Oi(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function ki(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Ai(e){return e}Si=[g(`solid-ui-dialog-footer`)];var ji;new(Ci=(bi=class extends F{},[ji,xi]=Ti(bi,[],Si,0,void 0,F).c,bi),yi=class extends Ai{constructor(){super(ji),wi(this,`styles`,vi),xi()}},wi(yi,Ci,void 0),yi);var Mi=Symbol(),Ni=class{get taskComplete(){return this.t||=this.i===1?new Promise(((e,t)=>{this.o=e,this.h=t})):this.i===3?Promise.reject(this.l):Promise.resolve(this.u),this.t}constructor(e,t,n){this.p=0,this.i=0,(this._=e).addController(this);let r=typeof t==`object`?t:{task:t,args:n};this.v=r.task,this.j=r.args,this.m=r.argsEqual??Pi,this.k=r.onComplete,this.A=r.onError,this.autoRun=r.autoRun??!0,`initialValue`in r&&(this.u=r.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){!0===this.autoRun&&this.S()}hostUpdated(){this.autoRun===`afterUpdate`&&this.S()}T(){if(this.j===void 0)return;let e=this.j();if(!Array.isArray(e))throw Error(`The args function must return an array`);return e}async S(){let e=this.T(),t=this.O;this.O=e,e===t||e===void 0||t!==void 0&&this.m(t,e)||await this.run(e)}async run(e){let t,n;e??=this.T(),this.O=e,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun===`afterUpdate`?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let r=++this.p;this.q=new AbortController;let i=!1;try{t=await this.v(e,{signal:this.q.signal})}catch(e){i=!0,n=e}if(this.p===r){if(t===Mi)this.i=0;else{if(!1===i){try{this.k?.(t)}catch{}this.i=2,this.o?.(t)}else{try{this.A?.(n)}catch{}this.i=3,this.h?.(n)}this.u=t,this.l=n}this._.requestUpdate()}}abort(e){this.i===1&&this.q?.abort(e)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(e){switch(this.i){case 0:return e.initial?.();case 1:return e.pending?.();case 2:return e.complete?.(this.value);case 3:return e.error?.(this.error);default:throw Error(`Unexpected status: `+this.i)}}},Pi=(e,t)=>e===t||e.length===t.length&&e.every(((e,n)=>!Se(e,t[n])));function Fi(e,t){let n=null,r=(...i)=>{r.cancel(),n=setTimeout(()=>t(...i),e)};return r.cancel=()=>{n!==null&&(clearTimeout(n),n=null)},r}var Ii=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><circle cx="4" cy="12" r="3" fill="currentColor"><animate id="SVG7x14Dcom" fill="freeze" attributeName="opacity" begin="0;SVGqSjG0dUp.end-0.25s" dur="0.75s" values="1;.2"/></circle><circle cx="12" cy="12" r="3" fill="currentColor" opacity=".4"><animate fill="freeze" attributeName="opacity" begin="SVG7x14Dcom.begin+0.15s" dur="0.75s" values="1;.2"/></circle><circle cx="20" cy="12" r="3" fill="currentColor" opacity=".3"><animate id="SVGqSjG0dUp" fill="freeze" attributeName="opacity" begin="SVG7x14Dcom.begin+0.3s" dur="0.75s" values="1;.2"/></circle></svg>`}};customElements.get(`icon-svg-spinners-3-dots-fade`)||customElements.define(`icon-svg-spinners-3-dots-fade`,Ii);var Li=class extends Event{constructor(){super(`wa-reposition`,{bubbles:!0,cancelable:!1,composed:!0})}},Ri=M`
26
26
  :host {
27
27
  --arrow-color: black;
28
28
  --arrow-size: var(--wa-tooltip-arrow-size);
@@ -166,7 +166,7 @@
166
166
  scale: 1;
167
167
  }
168
168
  }
169
- `,Pr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,Ir=e=>{throw TypeError(e)},L=(e,t,n,r)=>{for(var i=r>1?void 0:r?Fr(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Pr(t,n,i),i},Lr=(e,t,n)=>t.has(e)||Ir(`Cannot `+n),Rr=(e,t,n)=>(Lr(e,t,`read from private field`),n?n.call(e):t.get(e)),zr=(e,t,n)=>t.has(e)?Ir(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Br=(e,t,n,r)=>(Lr(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Vr=w`
169
+ `,zi=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,Vi=e=>{throw TypeError(e)},z=(e,t,n,r)=>{for(var i=r>1?void 0:r?Bi(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&zi(t,n,i),i},Hi=(e,t,n)=>t.has(e)||Vi(`Cannot `+n),Ui=(e,t,n)=>(Hi(e,t,`read from private field`),n?n.call(e):t.get(e)),Wi=(e,t,n)=>t.has(e)?Vi(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Gi=(e,t,n,r)=>(Hi(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Ki=M`
170
170
  :host {
171
171
  box-sizing: border-box;
172
172
  }
@@ -181,23 +181,23 @@
181
181
  :host([hidden]) {
182
182
  display: none !important;
183
183
  }
184
- `,Hr=/;\s+$/;function Ur(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function Wr(e){let{property:t,value:n,element:r}=e;if(n){let e=r.getAttribute(`style`)||``;e&&(e.match(Hr)||(e+=`;`),e+=` `);let i=`${t}: ${n}`;return e.includes(i)?void 0:`${e}${i};`}return null}var Gr,Kr=class extends Ye{constructor(){super(),zr(this,Gr,!1),this.initialReflectedProperties=new Map,this.didSSR=!!this.shadowRoot,this.customStates={set:(e,t)=>{if(this.internals?.states)try{t?this.internals.states.add(e):this.internals.states.delete(e)}catch(e){if(String(e).includes(`must start with '--'`))console.error(`Your browser implements an outdated version of CustomStateSet. Consider using a polyfill`);else throw e}},has:e=>{if(!this.internals?.states)return!1;try{return this.internals.states.has(e)}catch{return!1}}};try{this.internals=this.attachInternals()}catch{console.error(`Element internals are not supported in your browser. Consider using a polyfill`)}this.customStates.set(`wa-defined`,!0);let e=this.constructor;for(let[t,n]of e.elementProperties)n.default===`inherit`&&n.initial!==void 0&&typeof t==`string`&&this.customStates.set(`initial-${t}-${n.initial}`,!0)}static get styles(){return[Vr,...Array.isArray(this.css)?this.css:this.css?[this.css]:[]]}connectedCallback(){super.connectedCallback(),this.didSSR||this.shadowRoot?.prepend(document.createComment(` Web Awesome: https://webawesome.com/docs/components/${this.localName.replace(`wa-`,``)} `)),this.didSSR&&this.updateComplete.then(()=>{this.shadowRoot?.prepend(document.createComment(` Web Awesome: https://webawesome.com/docs/components/${this.localName.replace(`wa-`,``)} `))})}attributeChangedCallback(e,t,n){Rr(this,Gr)||(this.constructor.elementProperties.forEach((e,t)=>{e.reflect&&this[t]!=null&&this.initialReflectedProperties.set(t,this[t])}),Br(this,Gr,!0)),super.attributeChangedCallback(e,t,n)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach((t,n)=>{e.has(n)&&this[n]==null&&(this[n]=t)})}firstUpdated(e){super.firstUpdated(e),this.didSSR&&this.shadowRoot?.querySelectorAll(`slot`).forEach(e=>{e.dispatchEvent(new Event(`slotchange`,{bubbles:!0,composed:!1,cancelable:!1}))})}update(e){try{super.update(e)}catch(e){if(this.didSSR&&!this.hasUpdated){let t=new Event(`lit-hydration-error`,{bubbles:!0,composed:!0,cancelable:!1});t.error=e,this.dispatchEvent(t)}throw e}}setStyle(e,t){if(!this.style){let n=Wr({property:Ur(e),value:t,element:this});n&&this.setAttribute(`style`,n);return}this.style[e]=t}setStyleProperty(e,t){if(!this.style){let n=Wr({property:e,value:t,element:this});n&&this.setAttribute(`style`,n);return}this.style.setProperty(e,t)}relayNativeEvent(e,t){e.stopImmediatePropagation(),this.dispatchEvent(new e.constructor(e.type,{...e,...t}))}};Gr=new WeakMap,L([F()],Kr.prototype,`dir`,2),L([F()],Kr.prototype,`lang`,2),L([F({type:Boolean,reflect:!0,attribute:`did-ssr`})],Kr.prototype,`didSSR`,2);var qr=new Set,Jr=new Map,Yr,Xr=`ltr`,Zr=`en`,Qr=typeof MutationObserver<`u`&&typeof document<`u`&&document.documentElement!==void 0;if(Qr){let e=new MutationObserver(ei);Xr=document.documentElement.dir||`ltr`,Zr=document.documentElement.lang||navigator.language,e.observe(document.documentElement,{attributes:!0,attributeFilter:[`dir`,`lang`]})}function $r(...e){e.map(e=>{let t=e.$code.toLowerCase();Jr.has(t)?Jr.set(t,Object.assign(Object.assign({},Jr.get(t)),e)):Jr.set(t,e),Yr||=e}),ei()}function ei(){Qr&&(Xr=document.documentElement.dir||`ltr`,Zr=document.documentElement.lang||navigator.language),[...qr.keys()].map(e=>{typeof e.requestUpdate==`function`&&e.requestUpdate()})}var ti=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){qr.add(this.host)}hostDisconnected(){qr.delete(this.host)}dir(){return`${this.host.dir||Xr}`.toLowerCase()}lang(){return`${this.host.lang||Zr}`.toLowerCase()}getTranslationData(e){let t;try{t=new Intl.Locale(e.replace(/_/g,`-`))}catch{return{locale:void 0,language:``,region:``,primary:void 0,secondary:void 0}}let n=t.language.toLowerCase(),r=t.region?.toLowerCase()??``,i=Jr.get(`${n}-${r}`),a=Jr.get(n);return{locale:t,language:n,region:r,primary:i,secondary:a}}exists(e,t){let{primary:n,secondary:r}=this.getTranslationData(t.lang??this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[e]||r&&r[e]||t.includeFallback&&Yr&&Yr[e])}term(e,...t){let{primary:n,secondary:r}=this.getTranslationData(this.lang()),i;if(n&&n[e])i=n[e];else if(r&&r[e])i=r[e];else if(Yr&&Yr[e])i=Yr[e];else return console.error(`No translation found for: ${String(e)}`),String(e);return typeof i==`function`?i(...t):i}date(e,t){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),t).format(e)}number(e,t){return e=Number(e),isNaN(e)?``:new Intl.NumberFormat(this.lang(),t).format(e)}relativeTime(e,t,n){return new Intl.RelativeTimeFormat(this.lang(),n).format(e,t)}},ni={$code:`en`,$name:`English`,$dir:`ltr`,carousel:`Carousel`,captions:`Captions`,chooseDate:`Choose date`,chooseDecade:`Choose decade`,chooseMonth:`Choose month`,chooseYear:`Choose year`,clearEntry:`Clear entry`,close:`Close`,closeCalendar:`Close calendar`,createOption:e=>`Create "${e}"`,copied:`Copied`,copy:`Copy`,currentValue:`Current value`,date:`Date`,datePickerKeyboardHelp:`Use arrow keys to change values; press Alt+Down Arrow to open the calendar.`,day:`Day`,incompleteDate:`Enter a valid date.`,dropFileHere:`Drop file here or click to browse`,decrement:`Decrement`,dropFilesHere:`Drop files here or click to browse`,empty:`Empty`,endDate:`End date`,error:`Error`,enterFullscreen:`Enter fullscreen`,exitFullscreen:`Exit fullscreen`,goToSlide:(e,t)=>`Go to slide ${e} of ${t}`,hidePassword:`Hide password`,increment:`Increment`,loading:`Loading`,month:`Month`,moreOptions:`More Options`,mute:`Mute`,nextDecade:`Next decade`,nextMonth:`Next month`,nextSlide:`Next slide`,nextVideo:`Next Video`,nextYear:`Next year`,numCharacters:e=>e===1?`1 character`:`${e} characters`,numCharactersRemaining:e=>e===1?`1 character remaining`:`${e} characters remaining`,numOptionsSelected:e=>e===0?`No options selected`:e===1?`1 option selected`:`${e} options selected`,pause:`Pause`,pauseAnimation:`Pause animation`,pictureInPicture:`Picture in picture`,play:`Play`,playbackSpeed:`Playback speed`,playlist:`Playlist`,playAnimation:`Play animation`,previousDecade:`Previous decade`,previousMonth:`Previous month`,previousSlide:`Previous slide`,previousVideo:`Previous video`,previousYear:`Previous year`,progress:`Progress`,rangeTooLong:e=>e===1?`Select a range no longer than 1 day`:`Select a range no longer than ${e} days`,rangeTooShort:e=>e===1?`Select a range at least 1 day long`:`Select a range at least ${e} days long`,readonly:`Read-only`,selected:`Selected`,selectedDateLabel:e=>`Selected: ${e}`,selectedRangeLabel:e=>`Selected range: ${e}`,selectionCleared:`Selection cleared`,remove:`Remove`,resize:`Resize`,scrollableRegion:`Scrollable region`,scrollToEnd:`Scroll to end`,scrollToStart:`Scroll to start`,selectAColorFromTheScreen:`Select a color from the screen`,showPassword:`Show password`,slideNum:e=>`Slide ${e}`,startDate:`Start date`,today:`Today`,toggleColorFormat:`Toggle color format`,seek:`Seek`,seekProgress:(e,t)=>`${e} of ${t}`,currentlyPlaying:`currently playing`,unmute:`Unmute`,videoPlayer:`Video player`,volume:`Volume`,year:`Year`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,am:`AM`,chooseTime:`Choose time`,closeTimeInput:`Close time picker`,dayPeriod:`AM/PM`,hour:`Hour`,minute:`Minute`,now:`Now`,pm:`PM`,second:`Second`,time:`Time`,timeInputKeyboardHelp:`Use arrow keys to change values; press Alt+Down Arrow to open the time picker.`};$r(ni);var ri=ni,ii=class extends ti{lang(){return this.host.didSSR&&!this.host.hasUpdated?this.host.lang||`en`:super.lang()}};$r(ri);var ai=Math.min,oi=Math.max,si=Math.round,ci=Math.floor,li=e=>({x:e,y:e}),ui={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function di(e,t,n){return oi(e,ai(t,n))}function fi(e,t){return typeof e==`function`?e(t):e}function pi(e){return e.split(`-`)[0]}function mi(e){return e.split(`-`)[1]}function hi(e){return e===`x`?`y`:`x`}function gi(e){return e===`y`?`height`:`width`}function _i(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function vi(e){return hi(_i(e))}function yi(e,t,n){n===void 0&&(n=!1);let r=mi(e),i=vi(e),a=gi(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Oi(o)),[o,Oi(o)]}function bi(e){let t=Oi(e);return[xi(e),t,xi(t)]}function xi(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Si=[`left`,`right`],Ci=[`right`,`left`],wi=[`top`,`bottom`],Ti=[`bottom`,`top`];function Ei(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ci:Si:t?Si:Ci;case`left`:case`right`:return t?wi:Ti;default:return[]}}function Di(e,t,n,r){let i=mi(e),a=Ei(pi(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(xi)))),a}function Oi(e){let t=pi(e);return ui[t]+e.slice(t.length)}function ki(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ai(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ki(e)}function ji(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Mi(e,t,n){let{reference:r,floating:i}=e,a=_i(t),o=vi(t),s=gi(o),c=pi(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=mi(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Ni(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=fi(t,e),p=Ai(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ji(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ji(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Pi=50,Fi=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ni},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Mi(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Pi&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Mi(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ii=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=fi(e,t)||{};if(l==null)return{};let d=Ai(u),f={x:n,y:r},p=vi(i),m=gi(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=ai(d[_],T),D=ai(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=di(E,k,O),j=!c.arrow&&mi(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,ee=j?k<E?k-E:k-O:0;return{[p]:f[p]+ee,data:{[p]:A,centerOffset:k-A-ee,...j&&{alignmentOffset:ee}},reset:j}}}),Li=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=fi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=pi(r),_=_i(o),v=pi(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Oi(o)]:bi(o)),x=p!==`none`;!d&&x&&b.push(...Di(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=yi(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==_i(t))||T.every(e=>_i(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=_i(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},Ri=new Set([`left`,`top`]);async function zi(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=pi(n),s=mi(n),c=_i(n)===`y`,l=Ri.has(o)?-1:1,u=a&&c?-1:1,d=fi(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Bi=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await zi(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Vi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=fi(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=_i(i),p=hi(f),m=u[p],h=u[f],g=(e,t)=>di(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Hi=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=fi(e,t),c=await i.detectOverflow(t,s),l=pi(n),u=mi(n),d=_i(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=ai(p-c[m],g),y=ai(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*oi(c.left,c.right):S=p-2*oi(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ui(){return typeof window<`u`}function Wi(e){return qi(e)?(e.nodeName||``).toLowerCase():`#document`}function Gi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ki(e){return((qi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function qi(e){return Ui()?e instanceof Node||e instanceof Gi(e).Node:!1}function Ji(e){return Ui()?e instanceof Element||e instanceof Gi(e).Element:!1}function Yi(e){return Ui()?e instanceof HTMLElement||e instanceof Gi(e).HTMLElement:!1}function Xi(e){return!Ui()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Gi(e).ShadowRoot}function Zi(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ca(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Qi(e){return/^(table|td|th)$/.test(Wi(e))}function $i(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ea=/transform|translate|scale|rotate|perspective|filter/,ta=/paint|layout|strict|content/,na=e=>!!e&&e!==`none`,ra;function ia(e){let t=Ji(e)?ca(e):e;return na(t.transform)||na(t.translate)||na(t.scale)||na(t.rotate)||na(t.perspective)||!oa()&&(na(t.backdropFilter)||na(t.filter))||ea.test(t.willChange||``)||ta.test(t.contain||``)}function aa(e){let t=ua(e);for(;Yi(t)&&!sa(t);){if(ia(t))return t;if($i(t))return null;t=ua(t)}return null}function oa(){return ra??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ra}function sa(e){return/^(html|body|#document)$/.test(Wi(e))}function ca(e){return Gi(e).getComputedStyle(e)}function la(e){return Ji(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ua(e){if(Wi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Xi(e)&&e.host||Ki(e);return Xi(t)?t.host:t}function da(e){let t=ua(e);return sa(t)?(e.ownerDocument||e).body:Yi(t)&&Zi(t)?t:da(t)}function fa(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=da(e),i=r===e.ownerDocument?.body,a=Gi(r);if(i){let e=pa(a);return t.concat(a,a.visualViewport||[],Zi(r)?r:[],e&&n?fa(e):[])}else return t.concat(r,fa(r,[],n))}function pa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ma(e){let t=ca(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Yi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=si(n)!==a||si(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ha(e){return Ji(e)?e:e.contextElement}function ga(e){let t=ha(e);if(!Yi(t))return li(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ma(t),o=(a?si(n.width):n.width)/r,s=(a?si(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var _a=li(0);function va(e){let t=Gi(e);return!oa()||!t.visualViewport?_a:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ya(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Gi(e)}function ba(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ha(e),o=li(1);t&&(r?Ji(r)&&(o=ga(r)):o=ga(e));let s=ya(a,n,r)?va(a):li(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Gi(a),t=Ji(r)?Gi(r):r,n=e,i=pa(n);for(;i&&t!==n;){let e=ga(i),t=i.getBoundingClientRect(),r=ca(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Gi(i),i=pa(n)}}return ji({width:u,height:d,x:c,y:l})}function xa(e,t){let n=la(e).scrollLeft;return t?t.left+n:ba(Ki(e)).left+n}function Sa(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-xa(e,n),y:n.top+t.scrollTop}}function Ca(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ki(r),s=t?$i(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=li(1),u=li(0),d=Yi(r);if((d||!a)&&((Wi(r)!==`body`||Zi(o))&&(c=la(r)),d)){let e=ba(r);l=ga(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Sa(o,c):li(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function wa(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ta(e){let t=la(e),n=e.ownerDocument.body,r=oi(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=oi(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+xa(e),o=-t.scrollTop;return ca(n).direction===`rtl`&&(a+=oi(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Ea=25;function Da(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Gi(e),a=Ki(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!oa()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(xa(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ea&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Oa(e,t){let n=ba(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ga(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ka(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Da(e,n,t);else if(t===`document`)r=Ta(Ki(e));else if(Ji(t))r=Oa(t,n);else{let n=va(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ji(r)}function Aa(e,t){let n=t.get(e);if(n)return n;let r=fa(e,[],!1).filter(e=>Ji(e)&&Wi(e)!==`body`),i=null,a=ca(e).position===`fixed`,o=a?ua(e):e;for(;Ji(o)&&!sa(o);){let e=ca(o),t=ia(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=ua(o)}return t.set(e,r),r}function ja(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?$i(t)?[]:Aa(t,this._c):[].concat(n),r],o=ka(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ka(t,a[e],i);s=oi(n.top,s),c=ai(n.right,c),l=ai(n.bottom,l),u=oi(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ma(e){let{width:t,height:n}=ma(e);return{width:t,height:n}}function Na(e,t,n){let r=Yi(t),i=Ki(t),a=n===`fixed`,o=ba(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=li(0);if((r||!a)&&((Wi(t)!==`body`||Zi(i))&&(s=la(t)),r)){let e=ba(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=xa(i));let l=i&&!r&&!a?Sa(i,s):li(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Pa(e){return ca(e).position===`static`}function Fa(e,t){if(!Yi(e)||ca(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ki(e)===n&&(n=n.ownerDocument.body),n}function Ia(e,t){let n=Gi(e);if($i(e))return n;if(!Yi(e)){let t=ua(e);for(;t&&!sa(t);){if(Ji(t)&&!Pa(t))return t;t=ua(t)}return n}let r=Fa(e,t);for(;r&&Qi(r)&&Pa(r);)r=Fa(r,t);return r&&sa(r)&&Pa(r)&&!ia(r)?n:r||aa(e)||n}var La=async function(e){let t=this.getOffsetParent||Ia,n=this.getDimensions,r=await n(e.floating);return{reference:Na(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ra(e){return ca(e).direction===`rtl`}var za={convertOffsetParentRelativeRectToViewportRelativeRect:Ca,getDocumentElement:Ki,getClippingRect:ja,getOffsetParent:Ia,getElementRects:La,getClientRects:wa,getDimensions:Ma,getScale:ga,isElement:Ji,isRTL:Ra};function Ba(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Va(e,t,n){let r=null,i,a=Ki(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=ci(d),h=ci(a.clientWidth-(u+f)),g=ci(a.clientHeight-(d+p)),_=ci(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:oi(0,ai(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ba(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Gi(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Ha(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ha(e),u=i||a?[...l?fa(l):[],...t?fa(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Va(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?ba(e):null;c&&g();function g(){let t=ba(e);h&&!Ba(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ua=Bi,Wa=Vi,Ga=Li,Ka=Hi,qa=Ii,Ja=(e,t,n)=>{let r=new Map,i=n??{},a={...za,...i.platform,_c:r};return Fi(e,t,{...i,platform:a})};function Ya(e){return Za(e)}function Xa(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Za(e){for(let t=e;t;t=Xa(t))if(t instanceof Element&&getComputedStyle(t).display===`none`)return null;for(let t=Xa(e);t;t=Xa(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!==`contents`&&(e.position!==`static`||ia(e)||t.tagName===`BODY`))return t}return null}var Qa={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$a=e=>(...t)=>({_$litDirective$:e,values:t}),eo=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},to=$a(class extends eo{constructor(e){if(super(e),e.type!==Qa.ATTRIBUTE||e.name!==`class`||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return` `+Object.keys(e).filter(t=>e[t]).join(` `)+` `}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(` `).split(/\s/).filter(e=>e!==``)));for(let e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return je}});function no(e){return typeof e==`object`&&!!e&&`getBoundingClientRect`in e&&(`contextElement`in e?e instanceof Element:!0)}var ro=!!globalThis?.HTMLElement?.prototype.hasOwnProperty(`popover`),R=class extends Kr{constructor(){super(...arguments),this.localize=new ii(this),this.SUPPORTS_POPOVER=!1,this.active=!1,this.placement=`top`,this.boundary=`viewport`,this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement=`anchor`,this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements=``,this.flipFallbackStrategy=`best-fit`,this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl&&this.popup){let e=this.anchorEl.getBoundingClientRect(),t=this.popup.getBoundingClientRect(),n=this.placement.includes(`top`)||this.placement.includes(`bottom`),r=0,i=0,a=0,o=0,s=0,c=0,l=0,u=0;n?e.top<t.top?(r=e.left,i=e.bottom,a=e.right,o=e.bottom,s=t.left,c=t.top,l=t.right,u=t.top):(r=t.left,i=t.bottom,a=t.right,o=t.bottom,s=e.left,c=e.top,l=e.right,u=e.top):e.left<t.left?(r=e.right,i=e.top,a=t.left,o=t.top,s=e.right,c=e.bottom,l=t.left,u=t.bottom):(r=t.right,i=t.top,a=e.left,o=e.top,s=t.right,c=t.bottom,l=e.left,u=e.bottom),this.style.setProperty(`--hover-bridge-top-left-x`,`${r}px`),this.style.setProperty(`--hover-bridge-top-left-y`,`${i}px`),this.style.setProperty(`--hover-bridge-top-right-x`,`${a}px`),this.style.setProperty(`--hover-bridge-top-right-y`,`${o}px`),this.style.setProperty(`--hover-bridge-bottom-left-x`,`${s}px`),this.style.setProperty(`--hover-bridge-bottom-left-y`,`${c}px`),this.style.setProperty(`--hover-bridge-bottom-right-x`,`${l}px`),this.style.setProperty(`--hover-bridge-bottom-right-y`,`${u}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.SUPPORTS_POPOVER=ro,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(e){super.updated(e),e.has(`active`)&&(this.active?this.start():this.stop()),e.has(`anchor`)&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor==`string`){let e=this.getRootNode();this.anchorEl=e.getElementById(this.anchor)}else this.anchor instanceof Element||no(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector(`[slot="anchor"]`);this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){!this.anchorEl||!this.active||!this.isConnected||(this.popup?.showPopover?.(),this.cleanup=Ha(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(e=>{this.popup?.hidePopover?.(),this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute(`data-current-placement`),this.style.removeProperty(`--auto-size-available-width`),this.style.removeProperty(`--auto-size-available-height`),requestAnimationFrame(()=>e())):e()})}reposition(){if(!this.active||!this.anchorEl||!this.popup)return;let e=[Ua({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?e.push(Ka({apply:({rects:e})=>{let t=this.sync===`width`||this.sync===`both`,n=this.sync===`height`||this.sync===`both`;this.popup.style.width=t?`${e.reference.width}px`:``,this.popup.style.height=n?`${e.reference.height}px`:``}})):(this.popup.style.width=``,this.popup.style.height=``);let t;this.SUPPORTS_POPOVER&&!no(this.anchor)&&this.boundary===`scroll`&&(t=fa(this.anchorEl).filter(e=>e instanceof Element)),this.flip&&e.push(Ga({boundary:this.flipBoundary||t,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy===`best-fit`?`bestFit`:`initialPlacement`,padding:this.flipPadding})),this.shift&&e.push(Wa({boundary:this.shiftBoundary||t,padding:this.shiftPadding})),this.autoSize?e.push(Ka({boundary:this.autoSizeBoundary||t,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:t})=>{this.autoSize===`vertical`||this.autoSize===`both`?this.style.setProperty(`--auto-size-available-height`,`${t}px`):this.style.removeProperty(`--auto-size-available-height`),this.autoSize===`horizontal`||this.autoSize===`both`?this.style.setProperty(`--auto-size-available-width`,`${e}px`):this.style.removeProperty(`--auto-size-available-width`)}})):(this.style.removeProperty(`--auto-size-available-width`),this.style.removeProperty(`--auto-size-available-height`)),this.arrow&&e.push(qa({element:this.arrowEl,padding:this.arrowPadding}));let n=this.SUPPORTS_POPOVER?e=>za.getOffsetParent(e,Ya):za.getOffsetParent;Ja(this.anchorEl,this.popup,{placement:this.placement,middleware:e,strategy:this.SUPPORTS_POPOVER?`absolute`:`fixed`,platform:{...za,getOffsetParent:n}}).then(({x:e,y:t,middlewareData:n,placement:r})=>{let i=this.localize.dir()===`rtl`,a={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[r.split(`-`)[0]];if(this.setAttribute(`data-current-placement`,r),Object.assign(this.popup.style,{left:`${e}px`,top:`${t}px`}),this.arrow){let e=n.arrow.x,t=n.arrow.y,r=``,o=``,s=``,c=``;if(this.arrowPlacement===`start`){let n=typeof e==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``;r=typeof t==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``,o=i?n:``,c=i?``:n}else if(this.arrowPlacement===`end`){let n=typeof e==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``;o=i?``:n,c=i?n:``,s=typeof t==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``}else this.arrowPlacement===`center`?(c=typeof e==`number`?`calc(50% - var(--arrow-size-diagonal))`:``,r=typeof t==`number`?`calc(50% - var(--arrow-size-diagonal))`:``):(c=typeof e==`number`?`${e}px`:``,r=typeof t==`number`?`${t}px`:``);Object.assign(this.arrowEl.style,{top:r,right:o,bottom:s,left:c,[a]:`calc(var(--arrow-base-offset) - var(--arrow-size-diagonal))`})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.dispatchEvent(new Mr)}render(){return M`
184
+ `,qi=/;\s+$/;function Ji(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function Yi(e){let{property:t,value:n,element:r}=e;if(n){let e=r.getAttribute(`style`)||``;e&&(e.match(qi)||(e+=`;`),e+=` `);let i=`${t}: ${n}`;return e.includes(i)?void 0:`${e}${i};`}return null}var Xi,Zi=class extends ut{constructor(){super(),Wi(this,Xi,!1),this.initialReflectedProperties=new Map,this.didSSR=!!this.shadowRoot,this.customStates={set:(e,t)=>{if(this.internals?.states)try{t?this.internals.states.add(e):this.internals.states.delete(e)}catch(e){if(String(e).includes(`must start with '--'`))console.error(`Your browser implements an outdated version of CustomStateSet. Consider using a polyfill`);else throw e}},has:e=>{if(!this.internals?.states)return!1;try{return this.internals.states.has(e)}catch{return!1}}};try{this.internals=this.attachInternals()}catch{console.error(`Element internals are not supported in your browser. Consider using a polyfill`)}this.customStates.set(`wa-defined`,!0);let e=this.constructor;for(let[t,n]of e.elementProperties)n.default===`inherit`&&n.initial!==void 0&&typeof t==`string`&&this.customStates.set(`initial-${t}-${n.initial}`,!0)}static get styles(){return[Ki,...Array.isArray(this.css)?this.css:this.css?[this.css]:[]]}connectedCallback(){super.connectedCallback(),this.didSSR||this.shadowRoot?.prepend(document.createComment(` Web Awesome: https://webawesome.com/docs/components/${this.localName.replace(`wa-`,``)} `)),this.didSSR&&this.updateComplete.then(()=>{this.shadowRoot?.prepend(document.createComment(` Web Awesome: https://webawesome.com/docs/components/${this.localName.replace(`wa-`,``)} `))})}attributeChangedCallback(e,t,n){Ui(this,Xi)||(this.constructor.elementProperties.forEach((e,t)=>{e.reflect&&this[t]!=null&&this.initialReflectedProperties.set(t,this[t])}),Gi(this,Xi,!0)),super.attributeChangedCallback(e,t,n)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach((t,n)=>{e.has(n)&&this[n]==null&&(this[n]=t)})}firstUpdated(e){super.firstUpdated(e),this.didSSR&&this.shadowRoot?.querySelectorAll(`slot`).forEach(e=>{e.dispatchEvent(new Event(`slotchange`,{bubbles:!0,composed:!1,cancelable:!1}))})}update(e){try{super.update(e)}catch(e){if(this.didSSR&&!this.hasUpdated){let t=new Event(`lit-hydration-error`,{bubbles:!0,composed:!0,cancelable:!1});t.error=e,this.dispatchEvent(t)}throw e}}setStyle(e,t){if(!this.style){let n=Yi({property:Ji(e),value:t,element:this});n&&this.setAttribute(`style`,n);return}this.style[e]=t}setStyleProperty(e,t){if(!this.style){let n=Yi({property:e,value:t,element:this});n&&this.setAttribute(`style`,n);return}this.style.setProperty(e,t)}relayNativeEvent(e,t){e.stopImmediatePropagation(),this.dispatchEvent(new e.constructor(e.type,{...e,...t}))}};Xi=new WeakMap,z([I()],Zi.prototype,`dir`,2),z([I()],Zi.prototype,`lang`,2),z([I({type:Boolean,reflect:!0,attribute:`did-ssr`})],Zi.prototype,`didSSR`,2);var Qi=new Set,$i=new Map,ea,ta=`ltr`,na=`en`,ra=typeof MutationObserver<`u`&&typeof document<`u`&&document.documentElement!==void 0;if(ra){let e=new MutationObserver(aa);ta=document.documentElement.dir||`ltr`,na=document.documentElement.lang||navigator.language,e.observe(document.documentElement,{attributes:!0,attributeFilter:[`dir`,`lang`]})}function ia(...e){e.map(e=>{let t=e.$code.toLowerCase();$i.has(t)?$i.set(t,Object.assign(Object.assign({},$i.get(t)),e)):$i.set(t,e),ea||=e}),aa()}function aa(){ra&&(ta=document.documentElement.dir||`ltr`,na=document.documentElement.lang||navigator.language),[...Qi.keys()].map(e=>{typeof e.requestUpdate==`function`&&e.requestUpdate()})}var oa=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Qi.add(this.host)}hostDisconnected(){Qi.delete(this.host)}dir(){return`${this.host.dir||ta}`.toLowerCase()}lang(){let e=`${this.host.lang||na}`.toLowerCase().replace(/_/g,`-`);try{return new Intl.Locale(e),e}catch{return ea?ea.$code.toLowerCase():`en`}}getTranslationData(e){let t;try{t=new Intl.Locale(e.replace(/_/g,`-`))}catch{return{locale:void 0,language:``,region:``,primary:void 0,secondary:void 0}}let n=t.language.toLowerCase(),r=t.region?.toLowerCase()??``,i=$i.get(`${n}-${r}`),a=$i.get(n);return{locale:t,language:n,region:r,primary:i,secondary:a}}exists(e,t){let{primary:n,secondary:r}=this.getTranslationData(t.lang??this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[e]||r&&r[e]||t.includeFallback&&ea&&ea[e])}term(e,...t){let{primary:n,secondary:r}=this.getTranslationData(this.lang()),i;if(n&&n[e])i=n[e];else if(r&&r[e])i=r[e];else if(ea&&ea[e])i=ea[e];else return console.error(`No translation found for: ${String(e)}`),String(e);return typeof i==`function`?i(...t):i}date(e,t){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),t).format(e)}number(e,t){return e=Number(e),isNaN(e)?``:new Intl.NumberFormat(this.lang(),t).format(e)}relativeTime(e,t,n){return new Intl.RelativeTimeFormat(this.lang(),n).format(e,t)}},sa={$code:`en`,$name:`English`,$dir:`ltr`,am:`AM`,autosizeColumn:`Autosize column`,captions:`Captions`,carousel:`Carousel`,chooseDate:`Choose date`,chooseDecade:`Choose decade`,chooseMonth:`Choose month`,chooseTime:`Choose time`,chooseYear:`Choose year`,clearEntry:`Clear entry`,clearFilter:`Clear filter`,clearSort:`Clear sort`,close:`Close`,closeCalendar:`Close calendar`,closeTimeInput:`Close time picker`,collapseRow:`Collapse row`,columnMenu:`Column options`,columnMovedToPosition:(e,t,n)=>`${e} moved to position ${t} of ${n}`,columns:`Columns`,compactPageXOfY:(e,t)=>`${e} of ${t}`,copied:`Copied`,copy:`Copy`,createOption:e=>`Create "${e}"`,currentlyPlaying:`currently playing`,currentValue:`Current value`,date:`Date`,datePickerKeyboardHelp:`Use arrow keys to change values; press Alt+Down Arrow to open the calendar.`,day:`Day`,dayPeriod:`AM/PM`,decrement:`Decrement`,deselectAllRows:`Deselect all rows`,dropFileHere:`Drop file here or click to browse`,dropFilesHere:`Drop files here or click to browse`,empty:`Empty`,endDate:`End date`,enterFullscreen:`Enter fullscreen`,error:`Error`,exitFullscreen:`Exit fullscreen`,expandRow:`Expand row`,filterByColumn:e=>`Filter by ${e}`,filterFrom:`From`,filterMax:`Max`,filterMin:`Min`,filterTo:`To`,firstPage:`First page`,goToSlide:(e,t)=>`Go to slide ${e} of ${t}`,hideColumn:`Hide column`,hidePassword:`Hide password`,hour:`Hour`,incompleteDate:`Enter a valid date.`,increment:`Increment`,jumpBackwardX:e=>`Jump back ${e} pages`,jumpForwardX:e=>`Jump forward ${e} pages`,lastPage:`Last page`,loading:`Loading`,minute:`Minute`,month:`Month`,moreOptions:`More Options`,mute:`Mute`,nextDecade:`Next decade`,nextMonth:`Next month`,nextPage:`Next page`,nextSlide:`Next slide`,nextVideo:`Next Video`,nextYear:`Next year`,noData:`No data`,noResults:`No matching results`,now:`Now`,numCharacters:e=>e===1?`1 character`:`${e} characters`,numCharactersRemaining:e=>e===1?`1 character remaining`:`${e} characters remaining`,numOptionsSelected:e=>e===0?`No options selected`:e===1?`1 option selected`:`${e} options selected`,numRowsCopied:e=>e===1?`1 row copied`:`${e} rows copied`,numRowsSelected:e=>e===1?`1 row selected`:`${e} rows selected`,pageXOfY:(e,t)=>`Page ${e} of ${t}`,pagination:`Pagination`,pause:`Pause`,pauseAnimation:`Pause animation`,pictureInPicture:`Picture in picture`,pinLeft:`Pin left`,pinRight:`Pin right`,play:`Play`,playAnimation:`Play animation`,playbackSpeed:`Playback speed`,playlist:`Playlist`,pm:`PM`,previousDecade:`Previous decade`,previousMonth:`Previous month`,previousPage:`Previous page`,previousSlide:`Previous slide`,previousVideo:`Previous video`,previousYear:`Previous year`,progress:`Progress`,rangeTooLong:e=>e===1?`Select a range no longer than 1 day`:`Select a range no longer than ${e} days`,rangeTooShort:e=>e===1?`Select a range at least 1 day long`:`Select a range at least ${e} days long`,readonly:`Read-only`,remove:`Remove`,resetColumns:`Reset columns`,resize:`Resize`,resizeColumn:`Resize column`,rowsPerPage:`Rows per page`,scrollableRegion:`Scrollable region`,scrollToEnd:`Scroll to end`,scrollToStart:`Scroll to start`,search:`Search`,second:`Second`,seek:`Seek`,seekProgress:(e,t)=>`${e} of ${t}`,selectAColorFromTheScreen:`Select a color from the screen`,selectAllRows:`Select all rows`,selected:`Selected`,selectedDateLabel:e=>`Selected: ${e}`,selectedRangeLabel:e=>`Selected range: ${e}`,selectGroup:`Select group`,selectionCleared:`Selection cleared`,selectRow:`Select row`,showingNofMRows:(e,t)=>`Showing ${e} of ${t} rows`,showingXtoYofZ:(e,t,n)=>`${e}\u2013${t} of ${n}`,showPassword:`Show password`,slideNum:e=>`Slide ${e}`,sortAscending:`Sort ascending`,sortColumn:`Sort column`,sortDescending:`Sort descending`,startDate:`Start date`,time:`Time`,timeInputKeyboardHelp:`Use arrow keys to change values; press Alt+Down Arrow to open the time picker.`,today:`Today`,toggleColorFormat:`Toggle color format`,unmute:`Unmute`,unpin:`Unpin`,unpinColumn:`Unpin column`,videoPlayer:`Video player`,volume:`Volume`,year:`Year`,zoomIn:`Zoom in`,zoomOut:`Zoom out`};ia(sa);var ca=sa,la=class extends oa{lang(){return this.host.didSSR&&!this.host.hasUpdated?this.host.lang||`en`:super.lang()}};ia(ca);var ua=Math.min,da=Math.max,fa=Math.round,pa=Math.floor,ma=e=>({x:e,y:e}),ha={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ga(e,t,n){return da(e,ua(t,n))}function _a(e,t){return typeof e==`function`?e(t):e}function va(e){return e.split(`-`)[0]}function ya(e){return e.split(`-`)[1]}function ba(e){return e===`x`?`y`:`x`}function xa(e){return e===`y`?`height`:`width`}function Sa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ca(e){return ba(Sa(e))}function wa(e,t,n){n===void 0&&(n=!1);let r=ya(e),i=Ca(e),a=xa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Na(o)),[o,Na(o)]}function Ta(e){let t=Na(e);return[Ea(e),t,Ea(t)]}function Ea(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Da=[`left`,`right`],Oa=[`right`,`left`],ka=[`top`,`bottom`],Aa=[`bottom`,`top`];function ja(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Oa:Da:t?Da:Oa;case`left`:case`right`:return t?ka:Aa;default:return[]}}function Ma(e,t,n,r){let i=ya(e),a=ja(va(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ea)))),a}function Na(e){let t=va(e);return ha[t]+e.slice(t.length)}function Pa(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Fa(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Pa(e)}function Ia(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function La(e,t,n){let{reference:r,floating:i}=e,a=Sa(t),o=Ca(t),s=xa(o),c=va(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ya(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Ra(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=_a(t,e),p=Fa(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ia(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var za=50,Ba=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ra},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=La(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<za&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=La(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Va=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=_a(e,t)||{};if(l==null)return{};let d=Fa(u),f={x:n,y:r},p=Ca(i),m=xa(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=ua(d[_],T),D=ua(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=ga(E,k,O),j=!c.arrow&&ya(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,ee=j?k<E?k-E:k-O:0;return{[p]:f[p]+ee,data:{[p]:A,centerOffset:k-A-ee,...j&&{alignmentOffset:ee}},reset:j}}}),Ha=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=_a(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=va(r),_=Sa(o),v=va(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Na(o)]:Ta(o)),x=p!==`none`;!d&&x&&b.push(...Ma(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=wa(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Sa(t)||T.every(e=>Sa(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Sa(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Ua=new Set([`left`,`top`]);async function Wa(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=va(n),s=ya(n),c=Sa(n)===`y`,l=Ua.has(o)?-1:1,u=a&&c?-1:1,d=_a(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ga=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Wa(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ka=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_a(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Sa(i),p=ba(f),m=u[p],h=u[f],g=(e,t)=>ga(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},qa=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=_a(e,t),c=await i.detectOverflow(t,s),l=va(n),u=ya(n),d=Sa(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=ua(p-c[m],g),y=ua(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*da(c.left,c.right):S=p-2*da(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ja(){return typeof window<`u`}function Ya(e){return Qa(e)?(e.nodeName||``).toLowerCase():`#document`}function Xa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Za(e){return((Qa(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Qa(e){return Ja()?e instanceof Node||e instanceof Xa(e).Node:!1}function $a(e){return Ja()?e instanceof Element||e instanceof Xa(e).Element:!1}function eo(e){return Ja()?e instanceof HTMLElement||e instanceof Xa(e).HTMLElement:!1}function to(e){return!Ja()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Xa(e).ShadowRoot}function no(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=mo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ro(e){return/^(table|td|th)$/.test(Ya(e))}function io(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ao=/transform|translate|scale|rotate|perspective|filter/,oo=/paint|layout|strict|content/,so=e=>!!e&&e!==`none`,co;function lo(e){let t=$a(e)?mo(e):e;return so(t.transform)||so(t.translate)||so(t.scale)||so(t.rotate)||so(t.perspective)||!fo()&&(so(t.backdropFilter)||so(t.filter))||ao.test(t.willChange||``)||oo.test(t.contain||``)}function uo(e){let t=go(e);for(;eo(t)&&!po(t);){if(lo(t))return t;if(io(t))return null;t=go(t)}return null}function fo(){return co??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),co}function po(e){return/^(html|body|#document)$/.test(Ya(e))}function mo(e){return Xa(e).getComputedStyle(e)}function ho(e){return $a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function go(e){if(Ya(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||to(e)&&e.host||Za(e);return to(t)?t.host:t}function _o(e){let t=go(e);return po(t)?(e.ownerDocument||e).body:eo(t)&&no(t)?t:_o(t)}function vo(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=_o(e),i=r===e.ownerDocument?.body,a=Xa(r);if(i){let e=yo(a);return t.concat(a,a.visualViewport||[],no(r)?r:[],e&&n?vo(e):[])}return t.concat(r,vo(r,[],n))}function yo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bo(e){let t=mo(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=eo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=fa(n)!==a||fa(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function xo(e){return $a(e)?e:e.contextElement}function So(e){let t=xo(e);if(!eo(t))return ma(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=bo(t),o=(a?fa(n.width):n.width)/r,s=(a?fa(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Co=ma(0);function wo(e){let t=Xa(e);return!fo()||!t.visualViewport?Co:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function To(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Xa(e)}function Eo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=xo(e),o=ma(1);t&&(r?$a(r)&&(o=So(r)):o=So(e));let s=To(a,n,r)?wo(a):ma(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Xa(a),t=$a(r)?Xa(r):r,n=e,i=yo(n);for(;i&&t!==n;){let e=So(i),t=i.getBoundingClientRect(),r=mo(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Xa(i),i=yo(n)}}return Ia({width:u,height:d,x:c,y:l})}function Do(e,t){let n=ho(e).scrollLeft;return t?t.left+n:Eo(Za(e)).left+n}function Oo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Do(e,n),y:n.top+t.scrollTop}}function ko(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Za(r),s=t?io(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ma(1),u=ma(0),d=eo(r);if((d||!a)&&((Ya(r)!==`body`||no(o))&&(c=ho(r)),d)){let e=Eo(r);l=So(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Oo(o,c):ma(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ao(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function jo(e){let t=ho(e),n=e.ownerDocument.body,r=da(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=da(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Do(e),o=-t.scrollTop;return mo(n).direction===`rtl`&&(a+=da(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Mo=25;function No(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Xa(e),a=Za(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!fo()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Do(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Mo&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Po(e,t){let n=Eo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=So(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Fo(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=No(e,n,t);else if(t===`document`)r=jo(Za(e));else if($a(t))r=Po(t,n);else{let n=wo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ia(r)}function Io(e,t){let n=t.get(e);if(n)return n;let r=vo(e,[],!1).filter(e=>$a(e)&&Ya(e)!==`body`),i=null,a=mo(e).position===`fixed`,o=a?go(e):e;for(;$a(o)&&!po(o);){let e=mo(o),t=lo(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=go(o)}return t.set(e,r),r}function Lo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?io(t)?[]:Io(t,this._c):[].concat(n),r],o=Fo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Fo(t,a[e],i);s=da(n.top,s),c=ua(n.right,c),l=ua(n.bottom,l),u=da(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ro(e){let{width:t,height:n}=bo(e);return{width:t,height:n}}function zo(e,t,n){let r=eo(t),i=Za(t),a=n===`fixed`,o=Eo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ma(0);if((r||!a)&&((Ya(t)!==`body`||no(i))&&(s=ho(t)),r)){let e=Eo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Do(i));let l=i&&!r&&!a?Oo(i,s):ma(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Bo(e){return mo(e).position===`static`}function Vo(e,t){if(!eo(e)||mo(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Za(e)===n&&(n=n.ownerDocument.body),n}function Ho(e,t){let n=Xa(e);if(io(e))return n;if(!eo(e)){let t=go(e);for(;t&&!po(t);){if($a(t)&&!Bo(t))return t;t=go(t)}return n}let r=Vo(e,t);for(;r&&ro(r)&&Bo(r);)r=Vo(r,t);return r&&po(r)&&Bo(r)&&!lo(r)?n:r||uo(e)||n}var Uo=async function(e){let t=this.getOffsetParent||Ho,n=this.getDimensions,r=await n(e.floating);return{reference:zo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Wo(e){return mo(e).direction===`rtl`}var Go={convertOffsetParentRelativeRectToViewportRelativeRect:ko,getDocumentElement:Za,getClippingRect:Lo,getOffsetParent:Ho,getElementRects:Uo,getClientRects:Ao,getDimensions:Ro,getScale:So,isElement:$a,isRTL:Wo};function Ko(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qo(e,t,n){let r=null,i,a=Za(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=pa(d),h=pa(a.clientWidth-(u+f)),g=pa(a.clientHeight-(d+p)),_=pa(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:da(0,ua(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ko(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Xa(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Jo(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=xo(e),u=i||a?[...l?vo(l):[],...t?vo(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?qo(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Eo(e):null;c&&g();function g(){let t=Eo(e);h&&!Ko(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Yo=Ga,Xo=Ka,Zo=Ha,Qo=qa,$o=Va,es=(e,t,n)=>{let r=new Map,i=n??{},a={...Go,...i.platform,_c:r};return Ba(e,t,{...i,platform:a})};function ts(e){return rs(e)}function ns(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function rs(e){for(let t=e;t;t=ns(t))if(t instanceof Element&&getComputedStyle(t).display===`none`)return null;for(let t=ns(e);t;t=ns(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!==`contents`&&(e.position!==`static`||lo(e)||t.tagName===`BODY`))return t}return null}var is={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},as=e=>(...t)=>({_$litDirective$:e,values:t}),os=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},ss=as(class extends os{constructor(e){if(super(e),e.type!==is.ATTRIBUTE||e.name!==`class`||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return` `+Object.keys(e).filter(t=>e[t]).join(` `)+` `}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(` `).split(/\s/).filter(e=>e!==``)));for(let e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return Ke}});function cs(e){return typeof e==`object`&&!!e&&`getBoundingClientRect`in e&&(`contextElement`in e?e instanceof Element:!0)}var ls=!!globalThis?.HTMLElement?.prototype.hasOwnProperty(`popover`),B=class extends Zi{constructor(){super(...arguments),this.localize=new la(this),this.SUPPORTS_POPOVER=!1,this.active=!1,this.placement=`top`,this.boundary=`viewport`,this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement=`anchor`,this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements=``,this.flipFallbackStrategy=`best-fit`,this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl&&this.popup){let e=this.anchorEl.getBoundingClientRect(),t=this.popup.getBoundingClientRect(),n=this.placement.includes(`top`)||this.placement.includes(`bottom`),r=0,i=0,a=0,o=0,s=0,c=0,l=0,u=0;n?e.top<t.top?(r=e.left,i=e.bottom,a=e.right,o=e.bottom,s=t.left,c=t.top,l=t.right,u=t.top):(r=t.left,i=t.bottom,a=t.right,o=t.bottom,s=e.left,c=e.top,l=e.right,u=e.top):e.left<t.left?(r=e.right,i=e.top,a=t.left,o=t.top,s=e.right,c=e.bottom,l=t.left,u=t.bottom):(r=t.right,i=t.top,a=e.left,o=e.top,s=t.right,c=t.bottom,l=e.left,u=e.bottom),this.style.setProperty(`--hover-bridge-top-left-x`,`${r}px`),this.style.setProperty(`--hover-bridge-top-left-y`,`${i}px`),this.style.setProperty(`--hover-bridge-top-right-x`,`${a}px`),this.style.setProperty(`--hover-bridge-top-right-y`,`${o}px`),this.style.setProperty(`--hover-bridge-bottom-left-x`,`${s}px`),this.style.setProperty(`--hover-bridge-bottom-left-y`,`${c}px`),this.style.setProperty(`--hover-bridge-bottom-right-x`,`${l}px`),this.style.setProperty(`--hover-bridge-bottom-right-y`,`${u}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.SUPPORTS_POPOVER=ls,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(e){super.updated(e),e.has(`active`)&&(this.active?this.start():this.stop()),e.has(`anchor`)&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor==`string`){let e=this.getRootNode();this.anchorEl=e.getElementById(this.anchor)}else this.anchorEl=this.anchor instanceof Element||cs(this.anchor)?this.anchor:this.querySelector(`[slot="anchor"]`);this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){!this.anchorEl||!this.active||!this.isConnected||(this.popup?.showPopover?.(),this.cleanup=Jo(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(e=>{this.popup?.hidePopover?.(),this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute(`data-current-placement`),this.style.removeProperty(`--auto-size-available-width`),this.style.removeProperty(`--auto-size-available-height`),requestAnimationFrame(()=>e())):e()})}reposition(){if(!this.active||!this.anchorEl||!this.popup)return;let e=[Yo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?e.push(Qo({apply:({rects:e})=>{let t=this.sync===`width`||this.sync===`both`,n=this.sync===`height`||this.sync===`both`;this.popup.style.width=t?`${e.reference.width}px`:``,this.popup.style.height=n?`${e.reference.height}px`:``}})):(this.popup.style.width=``,this.popup.style.height=``);let t;this.SUPPORTS_POPOVER&&!cs(this.anchor)&&this.boundary===`scroll`&&(t=vo(this.anchorEl).filter(e=>e instanceof Element)),this.flip&&e.push(Zo({boundary:this.flipBoundary||t,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy===`best-fit`?`bestFit`:`initialPlacement`,padding:this.flipPadding})),this.shift&&e.push(Xo({boundary:this.shiftBoundary||t,padding:this.shiftPadding})),this.autoSize?e.push(Qo({boundary:this.autoSizeBoundary||t,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:t})=>{this.autoSize===`vertical`||this.autoSize===`both`?this.style.setProperty(`--auto-size-available-height`,`${t}px`):this.style.removeProperty(`--auto-size-available-height`),this.autoSize===`horizontal`||this.autoSize===`both`?this.style.setProperty(`--auto-size-available-width`,`${e}px`):this.style.removeProperty(`--auto-size-available-width`)}})):(this.style.removeProperty(`--auto-size-available-width`),this.style.removeProperty(`--auto-size-available-height`)),this.arrow&&e.push($o({element:this.arrowEl,padding:this.arrowPadding}));let n=this.SUPPORTS_POPOVER?e=>Go.getOffsetParent(e,ts):Go.getOffsetParent;es(this.anchorEl,this.popup,{placement:this.placement,middleware:e,strategy:this.SUPPORTS_POPOVER?`absolute`:`fixed`,platform:{...Go,getOffsetParent:n}}).then(({x:e,y:t,middlewareData:n,placement:r})=>{let i=this.localize.dir()===`rtl`,a={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[r.split(`-`)[0]];if(this.setAttribute(`data-current-placement`,r),Object.assign(this.popup.style,{left:`${e}px`,top:`${t}px`}),this.arrow){let e=n.arrow.x,t=n.arrow.y,r=``,o=``,s=``,c=``;if(this.arrowPlacement===`start`){let n=typeof e==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``;r=typeof t==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``,o=i?n:``,c=i?``:n}else if(this.arrowPlacement===`end`){let n=typeof e==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``;o=i?``:n,c=i?n:``,s=typeof t==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``}else this.arrowPlacement===`center`?(c=typeof e==`number`?`calc(50% - var(--arrow-size-diagonal))`:``,r=typeof t==`number`?`calc(50% - var(--arrow-size-diagonal))`:``):(c=typeof e==`number`?`${e}px`:``,r=typeof t==`number`?`${t}px`:``);Object.assign(this.arrowEl.style,{top:r,right:o,bottom:s,left:c,[a]:`calc(var(--arrow-base-offset) - var(--arrow-size-diagonal))`})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.dispatchEvent(new Li)}render(){return N`
185
185
  <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
186
186
 
187
187
  <span
188
188
  part="hover-bridge"
189
- class=${to({"popup-hover-bridge":!0,"popup-hover-bridge-visible":this.hoverBridge&&this.active})}
189
+ class=${ss({"popup-hover-bridge":!0,"popup-hover-bridge-visible":this.hoverBridge&&this.active})}
190
190
  ></span>
191
191
 
192
192
  <div
193
193
  popover="manual"
194
194
  part="popup"
195
- class=${to({popup:!0,"popup-active":this.active,"popup-fixed":!this.SUPPORTS_POPOVER,"popup-has-arrow":this.arrow})}
195
+ class=${ss({popup:!0,"popup-active":this.active,"popup-fixed":!this.SUPPORTS_POPOVER,"popup-has-arrow":this.arrow})}
196
196
  >
197
197
  <slot></slot>
198
- ${this.arrow?M`<div part="arrow" class="arrow" role="presentation"></div>`:``}
198
+ ${this.arrow?N`<div part="arrow" class="arrow" role="presentation"></div>`:``}
199
199
  </div>
200
- `}};R.css=Nr,L([ht(`.popup`)],R.prototype,`popup`,2),L([ht(`.arrow`)],R.prototype,`arrowEl`,2),L([F({attribute:!1,type:Boolean})],R.prototype,`SUPPORTS_POPOVER`,2),L([F()],R.prototype,`anchor`,2),L([F({type:Boolean,reflect:!0})],R.prototype,`active`,2),L([F({reflect:!0})],R.prototype,`placement`,2),L([F()],R.prototype,`boundary`,2),L([F({type:Number})],R.prototype,`distance`,2),L([F({type:Number})],R.prototype,`skidding`,2),L([F({type:Boolean})],R.prototype,`arrow`,2),L([F({attribute:`arrow-placement`})],R.prototype,`arrowPlacement`,2),L([F({attribute:`arrow-padding`,type:Number})],R.prototype,`arrowPadding`,2),L([F({type:Boolean})],R.prototype,`flip`,2),L([F({attribute:`flip-fallback-placements`,converter:{fromAttribute:e=>e.split(` `).map(e=>e.trim()).filter(e=>e!==``),toAttribute:e=>e.join(` `)}})],R.prototype,`flipFallbackPlacements`,2),L([F({attribute:`flip-fallback-strategy`})],R.prototype,`flipFallbackStrategy`,2),L([F({type:Object})],R.prototype,`flipBoundary`,2),L([F({attribute:`flip-padding`,type:Number})],R.prototype,`flipPadding`,2),L([F({type:Boolean})],R.prototype,`shift`,2),L([F({type:Object})],R.prototype,`shiftBoundary`,2),L([F({attribute:`shift-padding`,type:Number})],R.prototype,`shiftPadding`,2),L([F({attribute:`auto-size`})],R.prototype,`autoSize`,2),L([F()],R.prototype,`sync`,2),L([F({type:Object})],R.prototype,`autoSizeBoundary`,2),L([F({attribute:`auto-size-padding`,type:Number})],R.prototype,`autoSizePadding`,2),L([F({attribute:`hover-bridge`,type:Boolean})],R.prototype,`hoverBridge`,2),R=L([ut(`wa-popup`)],R);var io=w`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& wa-popup{width:100%;display:block}& wa-popup::part(popup){border:1px solid var(--solid-ui-color-gray-100);background:#fff;border-radius:5px;padding:4px;overflow:hidden;box-shadow:0 4px 16px #00000059}& .input-wrapper{width:100%;position:relative;& input{border:1px solid var(--solid-ui-color-gray-400);border-radius:5px;width:100%;padding:10px 40px 10px 10px}& icon-lucide-chevron-down{color:var(--solid-ui-color-gray-500);width:var(--solid-ui-font-size-lg);height:var(--solid-ui-font-size-lg);pointer-events:none;position:absolute;top:50%;right:15px;transform:translateY(-50%)}}& .listbox{max-height:inherit;flex-direction:column;gap:2px;display:flex;overflow:auto;& [role=option],& .non-selectable-option{color:var(--solid-ui-color-gray-700);border-radius:5px;padding:12px 8px}& [role=option]{cursor:pointer;&:hover,&[data-active]{background:var(--solid-ui-color-primary-hover)}&[aria-selected=true]{background:var(--solid-ui-color-primary-selected)}}& .non-selectable-option{justify-content:center;align-items:center;display:flex;& icon-svg-spinners-3-dots-fade{width:2rem}& .message--error{color:var(--solid-ui-color-error)}}}}`,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,ls;function us(e,t,n){ds(e,t),t.set(e,n)}function ds(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function fs(e,t,n){return e.set(ms(e,t),n),n}function ps(e,t){return e.get(ms(e,t))}function ms(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function hs(e,t,n){return(t=_s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gs(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:ys(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||ys(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return bs(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:_s(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function _s(e){var t=vs(e,`string`);return typeof t==`symbol`?t:t+``}function vs(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ys(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function bs(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function xs(e){return e}var Ss=class extends Error{};Do=[g(`solid-ui-combobox`)];var Cs;new(cs=(so=new WeakMap,co=new WeakMap,lo=new WeakMap,uo=new WeakMap,fo=new WeakMap,po=new WeakMap,mo=new WeakMap,ho=new WeakMap,go=new WeakMap,_o=new WeakMap,vo=new WeakMap,yo=new WeakMap,bo=new WeakMap,xo=new WeakMap,So=new WeakMap,Co=new WeakMap,wo=new WeakMap,ls=(Oo=F({type:String,reflect:!0}),Ao=F({type:String,reflect:!0}),Mo=F(),Po=F({type:String,reflect:!0}),Io=F({type:Boolean,reflect:!0}),Ro=F({type:Boolean,reflect:!0,attribute:`select-only`}),Bo=F({type:String,attribute:`async-options-url`}),Ho=F({type:String,attribute:`async-options-results-field`}),Wo=F({type:String,attribute:`async-options-label-field`}),Ko=F({type:String,attribute:`async-options-value-field`}),Jo=F({type:Function}),Xo=F({type:Array}),Qo=ht(`input`),es=pt(),ns=pt(),is=pt(),os=pt(),`label`),oo=class extends P{get[ls](){return ps(so,this)}set label(e){fs(so,this,e)}get name(){return ps(co,this)}set name(e){fs(co,this,e)}get value(){return ps(lo,this)}set value(e){fs(lo,this,e)}get placeholder(){return ps(uo,this)}set placeholder(e){fs(uo,this,e)}get required(){return ps(fo,this)}set required(e){fs(fo,this,e)}get selectOnly(){return ps(po,this)}set selectOnly(e){fs(po,this,e)}get asyncOptionsUrl(){return ps(mo,this)}set asyncOptionsUrl(e){fs(mo,this,e)}get asyncOptionsResultsField(){return ps(ho,this)}set asyncOptionsResultsField(e){fs(ho,this,e)}get asyncOptionsLabelField(){return ps(go,this)}set asyncOptionsLabelField(e){fs(go,this,e)}get asyncOptionsValueField(){return ps(_o,this)}set asyncOptionsValueField(e){fs(_o,this,e)}get asyncOptionsProvider(){return ps(vo,this)}set asyncOptionsProvider(e){fs(vo,this,e)}get optionsFallback(){return ps(yo,this)}set optionsFallback(e){fs(yo,this,e)}get inputElement(){return ps(bo,this)}set inputElement(e){fs(bo,this,e)}get filter(){return ps(xo,this)}set filter(e){fs(xo,this,e)}get displayValue(){return ps(So,this)}set displayValue(e){fs(So,this,e)}get open(){return ps(Co,this)}set open(e){fs(Co,this,e)}get activeIndex(){return ps(wo,this)}set activeIndex(e){fs(wo,this,e)}constructor(){super(),us(this,so,(To(this),ko(this,``))),us(this,co,jo(this,``)),us(this,lo,No(this,``)),us(this,uo,Fo(this,``)),us(this,fo,Lo(this,!1)),us(this,po,zo(this,!1)),us(this,mo,Vo(this,``)),us(this,ho,Uo(this,``)),us(this,go,Go(this,``)),us(this,_o,qo(this,``)),us(this,vo,Yo(this,null)),us(this,yo,Zo(this,null)),us(this,bo,$o(this,null)),us(this,xo,ts(this,``)),us(this,So,rs(this,``)),us(this,Co,as(this,!1)),us(this,wo,ss(this,-1)),hs(this,`controlTrait`,void 0),hs(this,`openListenersAttached`,!1),hs(this,`updateDebouncedFilter`,Ar(300,e=>this.filter=e)),hs(this,`asyncOptionsTask`,void 0),hs(this,`_selectedOption`,void 0),hs(this,`listboxId`,void 0),hs(this,`handleDocumentFocusIn`,e=>{e.composedPath().includes(this)||this.hide()}),hs(this,`handleDocumentMouseDown`,e=>{e.composedPath().includes(this)||this.hide()}),this.controlTrait=this.addTrait(new tt(this,{getControlElement:()=>this.inputElement,getInternals:()=>this.getInternals()})),this.listboxId=`listbox-${this.controlTrait.controlId}`}get selectedOption(){return this._selectedOption}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners()}willUpdate(e){if(super.willUpdate(e),(e.has(`asyncOptionsUrl`)||e.has(`asyncOptionsProvider`))&&this.updateAsyncOptionsTask(),e.has(`value`)){let e=this.getFilteredOptions(),t=e.find(e=>e.selectable!==!1&&e.value===this.value)??this.optionsFallback?.find(e=>e.value===this.value),n=t?.selectable!==!1&&t?.label;this.updateDisplayValue(n||this.value),this.open&&(this.activeIndex=this.getInitialActiveIndex(e)),this._selectedOption&&this._selectedOption.value!==this.value&&(this._selectedOption=void 0)}}render(){let e=this.getFilteredOptions(),t=(this.open&&this.activeIndex>=0?e[this.activeIndex]:void 0)===void 0?void 0:this.getOptionId(this.activeIndex),n=this.placeholder||`Combobox`;return M`
200
+ `}};B.css=Ri,z([zt(`.popup`)],B.prototype,`popup`,2),z([zt(`.arrow`)],B.prototype,`arrowEl`,2),z([I({attribute:!1,type:Boolean})],B.prototype,`SUPPORTS_POPOVER`,2),z([I()],B.prototype,`anchor`,2),z([I({type:Boolean,reflect:!0})],B.prototype,`active`,2),z([I({reflect:!0})],B.prototype,`placement`,2),z([I()],B.prototype,`boundary`,2),z([I({type:Number})],B.prototype,`distance`,2),z([I({type:Number})],B.prototype,`skidding`,2),z([I({type:Boolean})],B.prototype,`arrow`,2),z([I({attribute:`arrow-placement`})],B.prototype,`arrowPlacement`,2),z([I({attribute:`arrow-padding`,type:Number})],B.prototype,`arrowPadding`,2),z([I({type:Boolean})],B.prototype,`flip`,2),z([I({attribute:`flip-fallback-placements`,converter:{fromAttribute:e=>e.split(` `).map(e=>e.trim()).filter(e=>e!==``),toAttribute:e=>e.join(` `)}})],B.prototype,`flipFallbackPlacements`,2),z([I({attribute:`flip-fallback-strategy`})],B.prototype,`flipFallbackStrategy`,2),z([I({type:Object})],B.prototype,`flipBoundary`,2),z([I({attribute:`flip-padding`,type:Number})],B.prototype,`flipPadding`,2),z([I({type:Boolean})],B.prototype,`shift`,2),z([I({type:Object})],B.prototype,`shiftBoundary`,2),z([I({attribute:`shift-padding`,type:Number})],B.prototype,`shiftPadding`,2),z([I({attribute:`auto-size`})],B.prototype,`autoSize`,2),z([I()],B.prototype,`sync`,2),z([I({type:Object})],B.prototype,`autoSizeBoundary`,2),z([I({attribute:`auto-size-padding`,type:Number})],B.prototype,`autoSizePadding`,2),z([I({attribute:`hover-bridge`,type:Boolean})],B.prototype,`hoverBridge`,2),B=z([Ft(`wa-popup`)],B);var us=M`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& wa-popup{width:100%;display:block}& wa-popup::part(popup){border:1px solid var(--solid-ui-color-gray-100);background:#fff;border-radius:5px;padding:4px;overflow:hidden;box-shadow:0 4px 16px #00000059}& .input-wrapper{width:100%;position:relative;& input{border:1px solid var(--solid-ui-color-gray-400);border-radius:5px;width:100%;padding:10px 40px 10px 10px}& icon-lucide-chevron-down{color:var(--solid-ui-color-gray-500);width:var(--solid-ui-font-size-lg);height:var(--solid-ui-font-size-lg);pointer-events:none;position:absolute;top:50%;right:15px;transform:translateY(-50%)}}& .listbox{max-height:inherit;flex-direction:column;gap:2px;display:flex;overflow:auto;& [role=option],& .non-selectable-option{color:var(--solid-ui-color-gray-700);border-radius:5px;padding:12px 8px}& [role=option]{cursor:pointer;&:hover,&[data-active]{background:var(--solid-ui-color-primary-hover)}&[aria-selected=true]{background:var(--solid-ui-color-primary-selected)}}& .non-selectable-option{justify-content:center;align-items:center;display:flex;& icon-svg-spinners-3-dots-fade{width:2rem}& .message--error{color:var(--solid-ui-color-error)}}}}`,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc;function rc(e,t,n){ic(e,t),t.set(e,n)}function ic(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function ac(e,t,n){return e.set(sc(e,t),n),n}function oc(e,t){return e.get(sc(e,t))}function sc(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function cc(e,t,n){return(t=uc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lc(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:fc(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||fc(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return pc(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:uc(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function uc(e){var t=dc(e,`string`);return typeof t==`symbol`?t:t+``}function dc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function fc(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function pc(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function mc(e){return e}var hc=class extends Error{};Os=[g(`solid-ui-combobox`)];var gc;new(tc=(ps=new WeakMap,ms=new WeakMap,hs=new WeakMap,gs=new WeakMap,_s=new WeakMap,vs=new WeakMap,ys=new WeakMap,bs=new WeakMap,xs=new WeakMap,Ss=new WeakMap,Cs=new WeakMap,ws=new WeakMap,Ts=new WeakMap,nc=(ks=I({type:Boolean,reflect:!0,attribute:`select-only`}),js=I({type:String,attribute:`async-options-url`}),Ns=I({type:String,attribute:`async-options-results-field`}),Fs=I({type:String,attribute:`async-options-label-field`}),Ls=I({type:String,attribute:`async-options-value-field`}),zs=I({type:Function}),Vs=I({type:Array}),Us=zt(`input`),Gs=I({type:Boolean,reflect:!0}),qs=L(),Ys=L(),Zs=L(),$s=L(),`selectOnly`),fs=class extends Cn{get[nc](){return oc(ps,this)}set selectOnly(e){ac(ps,this,e)}get asyncOptionsUrl(){return oc(ms,this)}set asyncOptionsUrl(e){ac(ms,this,e)}get asyncOptionsResultsField(){return oc(hs,this)}set asyncOptionsResultsField(e){ac(hs,this,e)}get asyncOptionsLabelField(){return oc(gs,this)}set asyncOptionsLabelField(e){ac(gs,this,e)}get asyncOptionsValueField(){return oc(_s,this)}set asyncOptionsValueField(e){ac(_s,this,e)}get asyncOptionsProvider(){return oc(vs,this)}set asyncOptionsProvider(e){ac(vs,this,e)}get optionsFallback(){return oc(ys,this)}set optionsFallback(e){ac(ys,this,e)}get controlElement(){return oc(bs,this)}set controlElement(e){ac(bs,this,e)}get readonly(){return oc(xs,this)}set readonly(e){ac(xs,this,e)}get filter(){return oc(Ss,this)}set filter(e){ac(Ss,this,e)}get displayValue(){return oc(Cs,this)}set displayValue(e){ac(Cs,this,e)}get open(){return oc(ws,this)}set open(e){ac(ws,this,e)}get activeIndex(){return oc(Ts,this)}set activeIndex(e){ac(Ts,this,e)}constructor(){super(),rc(this,ps,(Es(this),As(this,!1))),rc(this,ms,Ms(this,``)),rc(this,hs,Ps(this,``)),rc(this,gs,Is(this,``)),rc(this,_s,Rs(this,``)),rc(this,vs,Bs(this,null)),rc(this,ys,Hs(this,null)),rc(this,bs,Ws(this,null)),rc(this,xs,Ks(this,!1)),rc(this,Ss,Js(this,``)),rc(this,Cs,Xs(this,``)),rc(this,ws,Qs(this,!1)),rc(this,Ts,ec(this,-1)),cc(this,`openListenersAttached`,!1),cc(this,`updateDebouncedFilter`,Fi(300,e=>this.filter=e)),cc(this,`asyncOptionsTask`,void 0),cc(this,`_selectedOption`,void 0),cc(this,`listboxId`,void 0),cc(this,`handleDocumentFocusIn`,e=>{e.composedPath().includes(this)||this.hide()}),cc(this,`handleDocumentMouseDown`,e=>{e.composedPath().includes(this)||this.hide()}),this.listboxId=`listbox-${this.controlTrait.controlId}`}get selectedOption(){return this._selectedOption}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners()}willUpdate(e){if(super.willUpdate(e),(e.has(`asyncOptionsUrl`)||e.has(`asyncOptionsProvider`))&&this.updateAsyncOptionsTask(),e.has(`value`)){let e=this.getFilteredOptions(),t=e.find(e=>e.selectable!==!1&&e.value===this.value)??this.optionsFallback?.find(e=>e.value===this.value),n=t?.selectable!==!1&&t?.label;this.updateDisplayValue(n||this.value),this.open&&(this.activeIndex=this.getInitialActiveIndex(e)),this._selectedOption&&this._selectedOption.value!==this.value&&(this._selectedOption=void 0)}}render(){let e=this.getFilteredOptions(),t=(this.open&&this.activeIndex>=0?e[this.activeIndex]:void 0)===void 0?void 0:this.getOptionId(this.activeIndex),n=this.placeholder||`Combobox`;return N`
201
201
  ${this.controlTrait.renderLabel()}
202
202
  <wa-popup
203
203
  placement="bottom"
@@ -219,17 +219,17 @@
219
219
  aria-haspopup="listbox"
220
220
  aria-expanded=${this.open?`true`:`false`}
221
221
  aria-controls=${this.listboxId}
222
- aria-activedescendant=${t??N}
223
- aria-labelledby=${this.label?this.controlTrait.labelId:N}
224
- aria-label=${this.label?N:n}
225
- aria-required=${this.required?`true`:N}
222
+ aria-activedescendant=${t??P}
223
+ aria-labelledby=${this.label?this.controlTrait.labelId:P}
224
+ aria-label=${this.label?P:n}
225
+ aria-required=${this.required?`true`:P}
226
226
  autocomplete="off"
227
227
  spellcheck="false"
228
228
  ?required=${this.required}
229
229
  .value=${this.displayValue}
230
230
  @keydown=${this.onInputKeyDown}
231
231
  @focus=${this.onInputFocus}
232
- @input=${()=>this.selectOnly?this.updateDisplayValue(this.inputElement?.value??``):this.controlTrait.onInput()}
232
+ @input=${()=>this.selectOnly?this.updateDisplayValue(this.controlElement?.value??``):this.controlTrait.onInput()}
233
233
  />
234
234
  <icon-lucide-chevron-down></icon-lucide-chevron-down>
235
235
  </div>
@@ -238,31 +238,31 @@
238
238
  class="listbox"
239
239
  role="listbox"
240
240
  aria-orientation="vertical"
241
- aria-labelledby=${this.label?this.controlTrait.labelId:N}
242
- aria-label=${this.label?N:n}
241
+ aria-labelledby=${this.label?this.controlTrait.labelId:P}
242
+ aria-label=${this.label?P:n}
243
243
  ?hidden=${!this.open}
244
244
  @mousedown=${this.onListboxMouseDown}
245
245
  >
246
- ${e.map((e,t)=>e.selectable===!1?M`<div class="non-selectable-option">${e.template??e.label}</div>`:M`<div
246
+ ${e.map((e,t)=>e.selectable===!1?N`<div class="non-selectable-option">${e.template??e.label}</div>`:N`<div
247
247
  id=${this.getOptionId(t)}
248
248
  role="option"
249
249
  aria-selected=${e.value===this.value?`true`:`false`}
250
- data-active=${t===this.activeIndex||N}
250
+ data-active=${t===this.activeIndex||P}
251
251
  @mousemove=${()=>this.setActiveIndex(t)}
252
252
  >
253
253
  ${e.template??e.label}
254
254
  </div>`)}
255
255
  </div>
256
256
  </wa-popup>
257
- `}getFilteredOptions(){return this.asyncOptionsTask?this.asyncOptionsTask.render({initial:()=>this.optionsFallback??[],complete:e=>e,pending:()=>[{value:``,label:`Loading...`,template:M`<icon-svg-spinners-3-dots-fade></icon-svg-spinners-3-dots-fade>`,selectable:!1}],error:e=>{let t=!(e instanceof Ss),n=Object(e).message??`Something went wrong`;return[{value:``,label:n,template:M`<span class="message message--${t?`error`:`info`}">${n}</span>`,selectable:!1}]}}):this.getOptionsFromDOM().filter(e=>String(e.label).toLowerCase().includes(this.filter))}getOptionsFromDOM(){let e=this.querySelectorAll(`solid-ui-combobox-option`);return Array.from(e).map(e=>({value:e.value,label:e.textContent??``}))}getOptionId(e){return`${this.listboxId}-option-${e}`}getInitialActiveIndex(e){let t=e.findIndex(e=>e.value===this.value);return t>=0?t:e.length>0?0:-1}getNextIndex(e,t,n){return t.length===0?-1:(e+n+t.length)%t.length}setActiveIndex(e){this.activeIndex=e}updateDisplayValue(e){if(this.displayValue=String(e),this.open){let e=this.displayValue.toLowerCase();this.asyncOptionsTask?this.updateDebouncedFilter(e):this.filter=e}}updateAsyncOptionsTask(){if(!this.asyncOptionsUrl&&!this.asyncOptionsProvider){this.asyncOptionsTask=void 0;return}this.asyncOptionsTask??=new Or(this,async([e])=>{if(this.asyncOptionsProvider){let t=await this.asyncOptionsProvider(e);if(t.length===0)throw new Ss(`No results found`);return t}let t=await(await fetch(this.asyncOptionsUrl.replace(`%search%`,encodeURIComponent(e)))).json(),n=Array.from(this.asyncOptionsResultsField?t[this.asyncOptionsResultsField]:t);if(n.length===0)throw new Ss(`No results found`);let r=this.asyncOptionsLabelField||`label`,i=this.asyncOptionsValueField||`value`;return n.map(e=>({label:String(Object(e)[r]),value:Object(e)[i]}))},()=>[this.filter])}show(e){if(this.open)return;let t=this.getFilteredOptions();t.length!==0&&(this.open=!0,this.activeIndex=e?.focusLast?t.length-1:this.getInitialActiveIndex(t),this.addOpenListeners(),requestAnimationFrame(()=>this.scrollActiveOptionIntoView()))}hide(){this.open&&(this.filter=``,this.open=!1,this.activeIndex=-1,this.removeOpenListeners(),this.updateDebouncedFilter.cancel())}selectOption(e){let t=this.value;this._selectedOption=e,this.hide(),this.controlTrait.setValue(e.value),this.inputElement?.focus({preventScroll:!0}),this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,composed:!0,detail:{option:e}})),t===this.value&&this.updateDisplayValue(e.label)}scrollActiveOptionIntoView(){this.activeIndex<0||this.shadowRoot?.querySelector(`#${this.getOptionId(this.activeIndex)}`)?.scrollIntoView({block:`nearest`})}addOpenListeners(){if(this.openListenersAttached)return;document.addEventListener(`focusin`,this.handleDocumentFocusIn),document.addEventListener(`mousedown`,this.handleDocumentMouseDown);let e=this.getRootNode();e!==document&&e.addEventListener(`focusin`,this.handleDocumentFocusIn),this.openListenersAttached=!0}removeOpenListeners(){if(!this.openListenersAttached)return;document.removeEventListener(`focusin`,this.handleDocumentFocusIn),document.removeEventListener(`mousedown`,this.handleDocumentMouseDown);let e=this.getRootNode();e!==document&&e.removeEventListener(`focusin`,this.handleDocumentFocusIn),this.openListenersAttached=!1}onAnchorMouseDown(e){e.target!==this.inputElement&&(e.preventDefault(),this.inputElement?.focus({preventScroll:!0}))}onInputFocus(){this.show()}openPopupFromKey(e){this.open||this.show({focusLast:e})}onInputKeyDown(e){let t=this.getFilteredOptions();switch(e.key){case`ArrowDown`:e.preventDefault(),this.open?(this.activeIndex=this.getNextIndex(this.activeIndex,t,1),this.scrollActiveOptionIntoView()):this.openPopupFromKey(!1);break;case`ArrowUp`:e.preventDefault(),this.open?(this.activeIndex=this.getNextIndex(this.activeIndex,t,-1),this.scrollActiveOptionIntoView()):this.openPopupFromKey(!0);break;case`Enter`:this.open&&this.activeIndex>=0&&t[this.activeIndex]?(e.preventDefault(),this.selectOption(t[this.activeIndex])):this.open||(e.preventDefault(),this.controlTrait.onSubmit());break;case`Escape`:this.open&&(e.preventDefault(),e.stopPropagation(),this.hide(),this.inputElement?.focus({preventScroll:!0}));break;case`Tab`:this.hide();break;default:this.open||this.show()}}onListboxMouseDown(e){if(e.preventDefault(),!(e.target instanceof HTMLElement))return;let t=e.target.closest(`[role="option"]`);if(!t)return;let n=t.id,r=Number.parseInt(n.replace(`${this.listboxId}-option-`,``),10),i=this.getFilteredOptions()[r];i&&this.selectOption(i)}},{e:[ko,jo,No,Fo,Lo,zo,Vo,Uo,Go,qo,Yo,Zo,$o,ts,rs,as,ss,To],c:[Cs,Eo]}=gs(oo,[[Oo,1,`label`],[Ao,1,`name`],[Mo,1,`value`],[Po,1,`placeholder`],[Io,1,`required`],[Ro,1,`selectOnly`],[Bo,1,`asyncOptionsUrl`],[Ho,1,`asyncOptionsResultsField`],[Wo,1,`asyncOptionsLabelField`],[Ko,1,`asyncOptionsValueField`],[Jo,1,`asyncOptionsProvider`],[Xo,1,`optionsFallback`],[Qo,1,`inputElement`],[es,1,`filter`],[ns,1,`displayValue`],[is,1,`open`],[os,1,`activeIndex`]],Do,0,void 0,P),oo),ao=class extends xs{constructor(){super(Cs),hs(this,`styles`,io),hs(this,`formAssociated`,!0),Eo()}},hs(ao,cs,void 0),ao);var ws,Ts,Es,Ds,Os,ks,As;function js(e,t,n){Ms(e,t),t.set(e,n)}function Ms(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Ns(e,t,n){return e.set(Fs(e,t),n),n}function Ps(e,t){return e.get(Fs(e,t))}function Fs(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Is(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:zs(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||zs(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Bs(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Ls(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Ls(e){var t=Rs(e,`string`);return typeof t==`symbol`?t:t+``}function Rs(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zs(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Bs(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}Ds=[g(`solid-ui-combobox-option`)];var Vs,Hs=new WeakMap;As=(Os=F({type:String,reflect:!0}),`value`),ws=class extends P{constructor(...e){super(...e),js(this,Hs,(Ts(this),ks(this,``)))}get[As](){return Ps(Hs,this)}set value(e){Ns(Hs,this,e)}render(){return M`${N}`}},{e:[ks,Ts],c:[Vs,Es]}=Is(ws,[[Os,1,`value`]],Ds,0,void 0,P),Es();var Us=w`.error-message{color:var(--solid-ui-color-error);font-size:var(--solid-ui-font-size-sm);text-align:center;width:100%;font-weight:500}solid-ui-combobox{width:100%}solid-ui-button{flex:1}`,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc;function hc(e,t,n){gc(e,t),t.set(e,n)}function gc(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function _c(e,t,n){return e.set(yc(e,t),n),n}function vc(e,t){return e.get(yc(e,t))}function yc(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function bc(e,t,n){return(t=Sc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xc(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:wc(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||wc(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Tc(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Sc(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Sc(e){var t=Cc(e,`string`);return typeof t==`symbol`?t:t+``}function Cc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wc(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Tc(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Ec(e){return e}ec=[g(`solid-ui-login-modal`)];var Dc;new(pc=(Ks=new WeakMap,qs=new WeakMap,Js=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,Zs=new WeakMap,mc=(tc=F({type:String,reflect:!0}),rc=pt(),ac=pt(),sc=pt(),lc=lt({context:yt,subscribe:!0}),dc=ht(`solid-ui-dialog`),`issuerUrl`),Gs=class extends P{constructor(...e){super(...e),hc(this,Ks,(Qs(this),nc(this,``))),hc(this,qs,ic(this,``)),hc(this,Js,oc(this,!1)),hc(this,Ys,cc(this,!1)),hc(this,Xs,uc(this,vt)),hc(this,Zs,fc(this,null))}get[mc](){return vc(Ks,this)}set issuerUrl(e){_c(Ks,this,e)}get issuerInputValue(){return vc(qs,this)}set issuerInputValue(e){_c(qs,this,e)}get failed(){return vc(Js,this)}set failed(e){_c(Js,this,e)}get submitting(){return vc(Ys,this)}set submitting(e){_c(Ys,this,e)}get auth(){return vc(Xs,this)}set auth(e){_c(Xs,this,e)}get dialog(){return vc(Zs,this)}set dialog(e){_c(Zs,this,e)}connectedCallback(){super.connectedCallback(),this.issuerInputValue=typeof localStorage<`u`&&localStorage.getItem(`loginIssuer`)||this.issuerUrl||``}render(){let e=(0,n.getSuggestedIssuers)();return M`
257
+ `}getFilteredOptions(){return this.asyncOptionsTask?this.asyncOptionsTask.render({initial:()=>this.optionsFallback??[],complete:e=>e,pending:()=>[{value:``,label:`Loading...`,template:N`<icon-svg-spinners-3-dots-fade></icon-svg-spinners-3-dots-fade>`,selectable:!1}],error:e=>{let t=!(e instanceof hc),n=Object(e).message??`Something went wrong`;return[{value:``,label:n,template:N`<span class="message message--${t?`error`:`info`}">${n}</span>`,selectable:!1}]}}):this.getOptionsFromDOM().filter(e=>String(e.label).toLowerCase().includes(this.filter))}getOptionsFromDOM(){let e=this.querySelectorAll(`solid-ui-combobox-option`);return Array.from(e).map(e=>({value:e.value,label:e.textContent??``}))}getOptionId(e){return`${this.listboxId}-option-${e}`}getInitialActiveIndex(e){let t=e.findIndex(e=>e.value===this.value);return t>=0?t:e.length>0?0:-1}getNextIndex(e,t,n){return t.length===0?-1:(e+n+t.length)%t.length}setActiveIndex(e){this.activeIndex=e}updateDisplayValue(e){if(this.displayValue=e?String(e):``,this.open){let e=this.displayValue.toLowerCase();this.asyncOptionsTask?this.updateDebouncedFilter(e):this.filter=e}}updateAsyncOptionsTask(){if(!this.asyncOptionsUrl&&!this.asyncOptionsProvider){this.asyncOptionsTask=void 0;return}this.asyncOptionsTask??=new Ni(this,async([e])=>{if(this.asyncOptionsProvider){let t=await this.asyncOptionsProvider(e);if(t.length===0)throw new hc(`No results found`);return t}let t=await(await fetch(this.asyncOptionsUrl.replace(`%search%`,encodeURIComponent(e)))).json(),n=Array.from(this.asyncOptionsResultsField?t[this.asyncOptionsResultsField]:t);if(n.length===0)throw new hc(`No results found`);let r=this.asyncOptionsLabelField||`label`,i=this.asyncOptionsValueField||`value`;return n.map(e=>({label:String(Object(e)[r]),value:Object(e)[i]}))},()=>[this.filter])}show(e){if(this.open)return;let t=this.getFilteredOptions();t.length!==0&&(this.open=!0,this.activeIndex=e?.focusLast?t.length-1:this.getInitialActiveIndex(t),this.addOpenListeners(),requestAnimationFrame(()=>this.scrollActiveOptionIntoView()))}hide(){this.open&&(this.filter=``,this.open=!1,this.activeIndex=-1,this.removeOpenListeners(),this.updateDebouncedFilter.cancel())}selectOption(e){let t=this.value;this._selectedOption=e,this.hide(),this.controlTrait.setValue(e.value),this.controlElement?.focus({preventScroll:!0}),this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,composed:!0,detail:{option:e}})),t===this.value&&this.updateDisplayValue(e.label)}scrollActiveOptionIntoView(){this.activeIndex<0||this.shadowRoot?.querySelector(`#${this.getOptionId(this.activeIndex)}`)?.scrollIntoView({block:`nearest`})}addOpenListeners(){if(this.openListenersAttached)return;document.addEventListener(`focusin`,this.handleDocumentFocusIn),document.addEventListener(`mousedown`,this.handleDocumentMouseDown);let e=this.getRootNode();e!==document&&e.addEventListener(`focusin`,this.handleDocumentFocusIn),this.openListenersAttached=!0}removeOpenListeners(){if(!this.openListenersAttached)return;document.removeEventListener(`focusin`,this.handleDocumentFocusIn),document.removeEventListener(`mousedown`,this.handleDocumentMouseDown);let e=this.getRootNode();e!==document&&e.removeEventListener(`focusin`,this.handleDocumentFocusIn),this.openListenersAttached=!1}onAnchorMouseDown(e){e.target!==this.controlElement&&(e.preventDefault(),this.controlElement?.focus({preventScroll:!0}))}onInputFocus(){this.show()}openPopupFromKey(e){this.open||this.show({focusLast:e})}onInputKeyDown(e){let t=this.getFilteredOptions();switch(e.key){case`ArrowDown`:e.preventDefault(),this.open?(this.activeIndex=this.getNextIndex(this.activeIndex,t,1),this.scrollActiveOptionIntoView()):this.openPopupFromKey(!1);break;case`ArrowUp`:e.preventDefault(),this.open?(this.activeIndex=this.getNextIndex(this.activeIndex,t,-1),this.scrollActiveOptionIntoView()):this.openPopupFromKey(!0);break;case`Enter`:this.open&&this.activeIndex>=0&&t[this.activeIndex]?(e.preventDefault(),this.selectOption(t[this.activeIndex])):this.open||(e.preventDefault(),this.controlTrait.onSubmit());break;case`Escape`:this.open&&(e.preventDefault(),e.stopPropagation(),this.hide(),this.controlElement?.focus({preventScroll:!0}));break;case`Tab`:this.hide();break;default:this.open||this.show()}}onListboxMouseDown(e){if(e.preventDefault(),!(e.target instanceof HTMLElement))return;let t=e.target.closest(`[role="option"]`);if(!t)return;let n=t.id,r=Number.parseInt(n.replace(`${this.listboxId}-option-`,``),10),i=this.getFilteredOptions()[r];i&&this.selectOption(i)}},{e:[As,Ms,Ps,Is,Rs,Bs,Hs,Ws,Ks,Js,Xs,Qs,ec,Es],c:[gc,Ds]}=lc(fs,[[ks,1,`selectOnly`],[js,1,`asyncOptionsUrl`],[Ns,1,`asyncOptionsResultsField`],[Fs,1,`asyncOptionsLabelField`],[Ls,1,`asyncOptionsValueField`],[zs,1,`asyncOptionsProvider`],[Vs,1,`optionsFallback`],[Us,1,`controlElement`],[Gs,1,`readonly`],[qs,1,`filter`],[Ys,1,`displayValue`],[Zs,1,`open`],[$s,1,`activeIndex`]],Os,0,void 0,Cn),fs),ds=class extends mc{constructor(){super(gc),cc(this,`styles`,us),Ds()}},cc(ds,tc,void 0),ds);var _c,vc,yc,bc,xc,Sc,Cc;function wc(e,t,n){Tc(e,t),t.set(e,n)}function Tc(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Ec(e,t,n){return e.set(Oc(e,t),n),n}function Dc(e,t){return e.get(Oc(e,t))}function Oc(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function kc(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Mc(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Mc(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Nc(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Ac(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Ac(e){var t=jc(e,`string`);return typeof t==`symbol`?t:t+``}function jc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Mc(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Nc(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}bc=[g(`solid-ui-combobox-option`)];var Pc,Fc=new WeakMap;Cc=(xc=I({type:String,reflect:!0}),`value`),_c=class extends F{constructor(...e){super(...e),wc(this,Fc,(vc(this),Sc(this,``)))}get[Cc](){return Dc(Fc,this)}set value(e){Ec(Fc,this,e)}render(){return N`${P}`}},{e:[Sc,vc],c:[Pc,yc]}=kc(_c,[[xc,1,`value`]],bc,0,void 0,F),yc();var Ic=M`.error-message{color:var(--solid-ui-color-error);font-size:var(--solid-ui-font-size-sm);text-align:center;width:100%;font-weight:500}solid-ui-combobox{width:100%}solid-ui-button{flex:1}`,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl;function cl(e,t,n){ll(e,t),t.set(e,n)}function ll(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function ul(e,t,n){return e.set(fl(e,t),n),n}function dl(e,t){return e.get(fl(e,t))}function fl(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function pl(e,t,n){return(t=hl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ml(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:_l(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||_l(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return vl(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:hl(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function hl(e){var t=gl(e,`string`);return typeof t==`symbol`?t:t+``}function gl(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _l(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function vl(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function yl(e){return e}qc=[g(`solid-ui-login-modal`)];var bl;new(ol=(zc=new WeakMap,Bc=new WeakMap,Vc=new WeakMap,Hc=new WeakMap,Uc=new WeakMap,Wc=new WeakMap,sl=(Jc=I({type:String,reflect:!0}),Xc=L(),Qc=L(),el=L(),nl=A({context:Dn,subscribe:!0}),il=zt(`solid-ui-dialog`),`issuerUrl`),Rc=class extends F{constructor(...e){super(...e),cl(this,zc,(Gc(this),Yc(this,``))),cl(this,Bc,Zc(this,``)),cl(this,Vc,$c(this,!1)),cl(this,Hc,tl(this,!1)),cl(this,Uc,rl(this,En)),cl(this,Wc,al(this,null))}get[sl](){return dl(zc,this)}set issuerUrl(e){ul(zc,this,e)}get issuerInputValue(){return dl(Bc,this)}set issuerInputValue(e){ul(Bc,this,e)}get failed(){return dl(Vc,this)}set failed(e){ul(Vc,this,e)}get submitting(){return dl(Hc,this)}set submitting(e){ul(Hc,this,e)}get auth(){return dl(Uc,this)}set auth(e){ul(Uc,this,e)}get dialog(){return dl(Wc,this)}set dialog(e){ul(Wc,this,e)}connectedCallback(){super.connectedCallback(),this.issuerInputValue=typeof localStorage<`u`&&localStorage.getItem(`loginIssuer`)||this.issuerUrl||``}render(){let e=(0,n.getSuggestedIssuers)();return N`
258
258
  <solid-ui-dialog title="Select an identity provider">
259
259
  <form @submit=${this.onSubmit}>
260
260
  <solid-ui-dialog-content>
261
261
  <solid-ui-combobox label="Solid Identity Provider" .value=${this.issuerInputValue} @input=${this.onIssuerInputChange}>
262
- ${e.map(e=>M`<solid-ui-combobox-option value="${e.uri}">${e.name}</solid-ui-combobox-option>`)}
262
+ ${e.map(e=>N`<solid-ui-combobox-option value="${e.uri}">${e.name}</solid-ui-combobox-option>`)}
263
263
  </solid-ui-combobox>
264
264
 
265
- ${this.failed?M`<p class="error-message">Something went wrong</p>`:N}
265
+ ${this.failed?N`<p class="error-message">Something went wrong</p>`:P}
266
266
  </solid-ui-dialog-content>
267
267
 
268
268
  <solid-ui-dialog-footer>
@@ -282,21 +282,18 @@
282
282
  </solid-ui-dialog-footer>
283
283
  </form>
284
284
  </solid-ui-dialog>
285
- `}onIssuerInputChange(e){this.issuerInputValue=e.target.value}async onSubmit(e){if(e.preventDefault(),this.failed=!1,this.issuerInputValue){this.submitting=!0;try{await this.auth.login(this.issuerInputValue)}catch(e){console.error(e),this.failed=!0}finally{this.submitting=!1}}}},{e:[nc,ic,oc,cc,uc,fc,Qs],c:[Dc,$s]}=xc(Gs,[[tc,1,`issuerUrl`],[rc,1,`issuerInputValue`],[ac,1,`failed`],[sc,1,`submitting`],[lc,1,`auth`],[dc,1,`dialog`]],ec,0,void 0,P),Gs),Ws=class extends Ec{constructor(){super(Dc),bc(this,`styles`,Us),$s()}},bc(Ws,pc,void 0),Ws);var Oc=`https://solidproject.org/get_a_pod`;function kc(e){let t=n.solidLogicSingleton.store,r=t.sym(e),i=t.any(r,I.sioc(`avatar`))||t.any(r,I.foaf(`img`))||t.any(r,I.vcard(`logo`))||t.any(r,I.vcard(`hasPhoto`))||t.any(r,I.vcard(`photo`))||t.any(r,I.foaf(`depiction`));return i?i.value:void 0}var Ac=class{_initialized=!1;profileLoaded=!1;listeners=[];constructor(e=Oc){this.signupUrl=e}async initialize(){await n.authn.checkUser(),this._initialized=!0,this.listeners.forEach(e=>e())}async loadProfile(){this.profileLoaded||!this.account||(this.profileLoaded=!0,await n.solidLogicSingleton.profile.loadMe(),this.listeners.forEach(e=>e()))}get initialized(){return this._initialized}get account(){let e=n.authSession.webId??n.authSession.info?.webId;return!(n.authSession.isActive??n.authSession.info?.isLoggedIn??!!e)||!e?null:new gt(e,kc(e))}async login(e){if(!e){Tt(M`<solid-ui-login-modal></solid-ui-login-modal>`);return}n.solidLogicSingleton.store.updater.flagAuthorizationMetadata();let t=new URL(window.location.href).hash;t&&window.localStorage.setItem(`preLoginRedirectHash`,t),window.localStorage.setItem(`loginIssuer`,e);let r=new URL(window.location.href);r.hash=``,await n.authSession.login(e,r.href)}async signup(){window.open(this.signupUrl,`_blank`,`noopener,noreferrer`)}async logout(){await n.authSession.logout()}onSessionUpdated(e){let t=n.authSession,r=()=>{e()};return this.listeners.push(r),typeof t.addEventListener==`function`?t.addEventListener(`sessionStateChange`,r):(n.authSession.events.on(`login`,r),n.authSession.events.on(`logout`,r),n.authSession.events.on(`sessionRestore`,r)),()=>{this.listeners=this.listeners.filter(e=>e!==r),typeof t.removeEventListener==`function`?t.removeEventListener(`sessionStateChange`,r):(n.authSession.events.off(`login`,r),n.authSession.events.off(`logout`,r),n.authSession.events.off(`sessionRestore`,r))}}},jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc;function Bc(e,t,n){Vc(e,t),t.set(e,n)}function Vc(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Hc(e,t,n){return e.set(Wc(e,t),n),n}function Uc(e,t){return e.get(Wc(e,t))}function Wc(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Gc(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Jc(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Jc(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Yc(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Kc(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Kc(e){var t=qc(e,`string`);return typeof t==`symbol`?t:t+``}function qc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Jc(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Yc(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}Pc=[g(`solid-ui-dialog-provider`)];var Xc,Zc=new WeakMap,Qc=new WeakMap;zc=(Fc=F({type:String,reflect:!0}),Lc=ct({context:xt}),`dialogId`),jc=class extends P{constructor(...e){super(...e),Bc(this,Zc,(Mc(this),Ic(this))),Bc(this,Qc,Rc(this,{id:``}))}get[zc](){return Uc(Zc,this)}set dialogId(e){Hc(Zc,this,e)}get dialog(){return Uc(Qc,this)}set dialog(e){Hc(Qc,this,e)}willUpdate(e){super.willUpdate(e),e.has(`dialogId`)&&this.dialogId&&(this.dialog={id:this.dialogId})}firstUpdated(){let e=this.shadowRoot?.querySelector(`slot`);this.dispatchEvent(new CustomEvent(`mounted`,{bubbles:!0,composed:!0,detail:e?.assignedElements()[0]}))}},{e:[Ic,Rc,Mc],c:[Xc,Nc]}=Gc(jc,[[Fc,1,`dialogId`],[Lc,1,`dialog`]],Pc,0,void 0,P),Nc();var $c,el,tl,nl,rl,il,al;function ol(e,t,n){sl(e,t),t.set(e,n)}function sl(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function cl(e,t,n){return e.set(ul(e,t),n),n}function ll(e,t){return e.get(ul(e,t))}function ul(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function dl(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:ml(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||ml(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return hl(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:fl(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function fl(e){var t=pl(e,`string`);return typeof t==`symbol`?t:t+``}function pl(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ml(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function hl(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}nl=[g(`solid-ui-dialogs-root`)];var gl,_l=new WeakMap;al=(rl=pt(),`dialogs`),$c=class extends P{constructor(...e){super(...e),ol(this,_l,(el(this),il(this,[])))}get[al](){return ll(_l,this)}set dialogs(e){cl(_l,this,e)}connectedCallback(){super.connectedCallback(),this.addGlobalEventListener(wt.eventName,e=>{e.stopImmediatePropagation(),this.dialogs=[...this.dialogs,e.dialog]}),this.addGlobalEventListener($e.eventName,e=>{e.stopImmediatePropagation();let t=this.dialogs.find(t=>t.id===e.id);this.dialogs=this.dialogs.filter(t=>t.id!==e.id),t?.closed(e.data)})}render(){return M`${this.dialogs.map(e=>M`
286
- <solid-ui-dialog-provider
287
- dialogId="${e.id}"
288
- @mounted=${t=>e.setElement(t.detail)}
289
- >
290
- ${e.template}
285
+ `}onIssuerInputChange(e){this.issuerInputValue=String(e.target.value)}async onSubmit(e){if(e.preventDefault(),this.failed=!1,this.issuerInputValue){this.submitting=!0;try{await this.auth.login(this.issuerInputValue)}catch(e){console.error(e),this.failed=!0}finally{this.submitting=!1}}}},{e:[Yc,Zc,$c,tl,rl,al,Gc],c:[bl,Kc]}=ml(Rc,[[Jc,1,`issuerUrl`],[Xc,1,`issuerInputValue`],[Qc,1,`failed`],[el,1,`submitting`],[nl,1,`auth`],[il,1,`dialog`]],qc,0,void 0,F),Rc),Lc=class extends yl{constructor(){super(bl),pl(this,`styles`,Ic),Kc()}},pl(Lc,ol,void 0),Lc);var xl=bl,Sl=`https://solidproject.org/get_a_pod`;function Cl(e){let t=n.solidLogicSingleton.store,r=t.sym(e),i=t.any(r,R.sioc(`avatar`))||t.any(r,R.foaf(`img`))||t.any(r,R.vcard(`logo`))||t.any(r,R.vcard(`hasPhoto`))||t.any(r,R.vcard(`photo`))||t.any(r,R.foaf(`depiction`));return i?i.value:void 0}var wl=class{_initialized=!1;profileLoaded=!1;listeners=[];constructor(e=Sl){this.signupUrl=e}async initialize(){await n.authn.checkUser(),this._initialized=!0,this.listeners.forEach(e=>e())}async loadProfile(){this.profileLoaded||!this.account||(this.profileLoaded=!0,await n.solidLogicSingleton.profile.loadMe(),this.listeners.forEach(e=>e()))}get initialized(){return this._initialized}get account(){let e=n.authSession.webId??n.authSession.info?.webId;return!(n.authSession.isActive??n.authSession.info?.isLoggedIn??!!e)||!e?null:new wn(e,Cl(e))}async login(e){if(!e){jn(xl);return}n.solidLogicSingleton.store.updater.flagAuthorizationMetadata();let t=new URL(window.location.href).hash;t&&window.localStorage.setItem(`preLoginRedirectHash`,t),window.localStorage.setItem(`loginIssuer`,e);let r=new URL(window.location.href);r.hash=``,await n.authSession.login(e,r.href)}async signup(){window.open(this.signupUrl,`_blank`,`noopener,noreferrer`)}async logout(){await n.authSession.logout()}onSessionUpdated(e){let t=n.authSession,r=()=>{e()};return this.listeners.push(r),typeof t.addEventListener==`function`?t.addEventListener(`sessionStateChange`,r):(n.authSession.events.on(`login`,r),n.authSession.events.on(`logout`,r),n.authSession.events.on(`sessionRestore`,r)),()=>{this.listeners=this.listeners.filter(e=>e!==r),typeof t.removeEventListener==`function`?t.removeEventListener(`sessionStateChange`,r):(n.authSession.events.off(`login`,r),n.authSession.events.off(`logout`,r),n.authSession.events.off(`sessionRestore`,r))}}},Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl;function Pl(e,t,n){Fl(e,t),t.set(e,n)}function Fl(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Il(e,t,n){return e.set(Rl(e,t),n),n}function Ll(e,t){return e.get(Rl(e,t))}function Rl(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function zl(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Hl(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Hl(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Ul(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Bl(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Bl(e){var t=Vl(e,`string`);return typeof t==`symbol`?t:t+``}function Vl(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hl(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Ul(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}Ol=[g(`solid-ui-dialog-provider`)];var Wl,Gl=new WeakMap,Kl=new WeakMap;Nl=(kl=I({type:String,reflect:!0}),jl=k({context:te}),`dialogId`),Tl=class extends F{constructor(...e){super(...e),Pl(this,Gl,(El(this),Al(this))),Pl(this,Kl,Ml(this,{id:``}))}get[Nl](){return Ll(Gl,this)}set dialogId(e){Il(Gl,this,e)}get dialog(){return Ll(Kl,this)}set dialog(e){Il(Kl,this,e)}willUpdate(e){super.willUpdate(e),e.has(`dialogId`)&&this.dialogId&&(this.dialog={id:this.dialogId})}firstUpdated(){let e=this.shadowRoot?.querySelector(`slot`);this.dispatchEvent(new CustomEvent(`mounted`,{bubbles:!0,composed:!0,detail:e?.assignedElements()[0]}))}},{e:[Al,Ml,El],c:[Wl,Dl]}=zl(Tl,[[kl,1,`dialogId`],[jl,1,`dialog`]],Ol,0,void 0,F),Dl();var ql,Jl,Yl,Xl,Zl,Ql,$l;function eu(e,t,n){tu(e,t),t.set(e,n)}function tu(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function nu(e,t,n){return e.set(iu(e,t),n),n}function ru(e,t){return e.get(iu(e,t))}function iu(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function au(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:cu(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||cu(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return lu(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:ou(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function ou(e){var t=su(e,`string`);return typeof t==`symbol`?t:t+``}function su(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function cu(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function lu(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}Xl=[g(`solid-ui-dialogs-root`)];var uu,du=new WeakMap;$l=(Zl=L(),`dialogs`),ql=class extends F{constructor(...e){super(...e),eu(this,du,(Jl(this),Ql(this,[])))}get[$l](){return ru(du,this)}set dialogs(e){nu(du,this,e)}connectedCallback(){super.connectedCallback(),this.addGlobalEventListener(An.eventName,e=>{e.stopImmediatePropagation(),this.dialogs=[...this.dialogs,e.dialog]}),this.addGlobalEventListener(v.eventName,e=>{e.stopImmediatePropagation();let t=this.dialogs.find(t=>t.id===e.id);this.dialogs=this.dialogs.filter(t=>t.id!==e.id),t?.closed(e.data)})}render(){return N`${this.dialogs.map(e=>N`
286
+ <solid-ui-dialog-provider dialogId="${e.id}">
287
+ ${e.element}
291
288
  </solid-ui-dialog-provider>
292
- `)}`}},{e:[il,el],c:[gl,tl]}=dl($c,[[rl,1,`dialogs`]],nl,0,void 0,P),tl();var vl,yl,bl,xl,Sl,Cl,wl,Tl,El;function Dl(e,t,n){Ol(e,t),t.set(e,n)}function Ol(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function kl(e,t,n){return e.set(jl(e,t),n),n}function Al(e,t){return e.get(jl(e,t))}function jl(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Ml(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Fl(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Fl(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Il(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Nl(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Nl(e){var t=Pl(e,`string`);return typeof t==`symbol`?t:t+``}function Pl(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Fl(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Il(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}xl=[g(`solid-ui-provider`)];var Ll,Rl=new WeakMap,zl=new WeakMap;El=(Sl=F({type:String,reflect:!0}),wl=ct({context:yt}),`signupUrl`),vl=class extends P{constructor(...e){super(...e),Dl(this,Rl,(yl(this),Cl(this))),Dl(this,zl,Tl(this,new Ac))}get[El](){return Al(Rl,this)}set signupUrl(e){kl(Rl,this,e)}get auth(){return Al(zl,this)}set auth(e){kl(zl,this,e)}async connectedCallback(){super.connectedCallback(),await this.auth.initialize()}willUpdate(e){super.willUpdate(e),e.has(`signupUrl`)&&(this.auth.signupUrl=this.signupUrl??`https://solidproject.org/get_a_pod`)}render(){return M`
289
+ `)}`}},{e:[Ql,Jl],c:[uu,Yl]}=au(ql,[[Zl,1,`dialogs`]],Xl,0,void 0,F),Yl();var fu,pu,mu,hu,gu,_u,vu,yu,bu;function xu(e,t,n){Su(e,t),t.set(e,n)}function Su(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Cu(e,t,n){return e.set(Tu(e,t),n),n}function wu(e,t){return e.get(Tu(e,t))}function Tu(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Eu(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:ku(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||ku(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Au(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Du(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Du(e){var t=Ou(e,`string`);return typeof t==`symbol`?t:t+``}function Ou(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ku(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Au(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}hu=[g(`solid-ui-provider`)];var ju,Mu=new WeakMap,Nu=new WeakMap;bu=(gu=I({type:String,reflect:!0}),vu=k({context:Dn}),`signupUrl`),fu=class extends F{constructor(...e){super(...e),xu(this,Mu,(pu(this),_u(this))),xu(this,Nu,yu(this,new wl))}get[bu](){return wu(Mu,this)}set signupUrl(e){Cu(Mu,this,e)}get auth(){return wu(Nu,this)}set auth(e){Cu(Nu,this,e)}async connectedCallback(){super.connectedCallback(),await this.auth.initialize()}willUpdate(e){super.willUpdate(e),e.has(`signupUrl`)&&(this.auth.signupUrl=this.signupUrl??`https://solidproject.org/get_a_pod`)}render(){return N`
293
290
  <slot></slot>
294
291
  <solid-ui-dialogs-root></solid-ui-dialogs-root>
295
- `}},{e:[Cl,Tl,yl],c:[Ll,bl]}=Ml(vl,[[Sl,1,`signupUrl`],[wl,1,`auth`]],xl,0,void 0,P),bl();var Bl=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="10" r="3"/><path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662"/></g></svg>`}};customElements.get(`icon-lucide-circle-user`)||customElements.define(`icon-lucide-circle-user`,Bl);var Vl=w`:host{--size:150px;width:var(--size);height:var(--size);display:inline-flex;overflow:hidden;& img{object-fit:cover;width:100%;height:100%}}:host([data-state-fallback]){background:var(--solid-ui-color-gray-100);justify-content:center;align-items:center;& icon-lucide-circle-user{color:var(--solid-ui-color-gray-200);width:50%;height:50%}}`,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl;function Ql(e,t,n){$l(e,t),t.set(e,n)}function $l(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function eu(e,t,n){return e.set(nu(e,t),n),n}function tu(e,t){return e.get(nu(e,t))}function nu(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function ru(e,t,n){return(t=au(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iu(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:su(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||su(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return cu(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:au(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function au(e){var t=ou(e,`string`);return typeof t==`symbol`?t:t+``}function ou(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function su(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function cu(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function lu(e){return e}ql=[g(`solid-ui-avatar`)];var uu;new(Xl=(Wl=new WeakMap,Zl=(Jl=lt({context:yt,subscribe:!0}),`auth`),Ul=class extends P{constructor(...e){super(...e),Ql(this,Wl,(Gl(this),Yl(this,vt))),ru(this,`unsubscribeSessionUpdated`,void 0)}get[Zl](){return tu(Wl,this)}set auth(e){eu(Wl,this,e)}connectedCallback(){super.connectedCallback(),this.auth.loadProfile?.(),this.unsubscribeSessionUpdated=this.auth.onSessionUpdated(()=>{this.auth.loadProfile?.(),this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeSessionUpdated?.()}render(){return this.auth.account?.avatarUrl?M`
292
+ `}},{e:[_u,yu,pu],c:[ju,mu]}=Eu(fu,[[gu,1,`signupUrl`],[vu,1,`auth`]],hu,0,void 0,F),mu();var Pu=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="10" r="3"/><path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662"/></g></svg>`}};customElements.get(`icon-lucide-circle-user`)||customElements.define(`icon-lucide-circle-user`,Pu);var Fu=M`:host{--size:150px;width:var(--size);height:var(--size);display:inline-flex;overflow:hidden;& img{object-fit:cover;width:100%;height:100%}}:host([data-state-fallback]){background:var(--solid-ui-color-gray-100);justify-content:center;align-items:center;& icon-lucide-circle-user{color:var(--solid-ui-color-gray-200);width:50%;height:50%}}`,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu;function Ku(e,t,n){qu(e,t),t.set(e,n)}function qu(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Ju(e,t,n){return e.set(Xu(e,t),n),n}function Yu(e,t){return e.get(Xu(e,t))}function Xu(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Zu(e,t,n){return(t=$u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qu(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:td(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||td(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return nd(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:$u(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function $u(e){var t=ed(e,`string`);return typeof t==`symbol`?t:t+``}function ed(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function td(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function nd(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function rd(e){return e}Vu=[g(`solid-ui-avatar`)];var id;new(Wu=(Ru=new WeakMap,Gu=(Hu=A({context:Dn,subscribe:!0}),`auth`),Lu=class extends F{constructor(...e){super(...e),Ku(this,Ru,(zu(this),Uu(this,En))),Zu(this,`unsubscribeSessionUpdated`,void 0)}get[Gu](){return Yu(Ru,this)}set auth(e){Ju(Ru,this,e)}connectedCallback(){super.connectedCallback(),this.auth.loadProfile?.(),this.unsubscribeSessionUpdated=this.auth.onSessionUpdated(()=>{this.auth.loadProfile?.(),this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeSessionUpdated?.()}render(){return this.auth.account?.avatarUrl?N`
296
293
  <img src="${this.auth.account?.avatarUrl}" alt="" />
297
- `:M`
294
+ `:N`
298
295
  <icon-lucide-circle-user></icon-lucide-circle-user>
299
- `}},{e:[Yl,Gl],c:[uu,Kl]}=iu(Ul,[[Jl,1,`auth`]],ql,0,void 0,P),Ul),Hl=class extends lu{constructor(){super(uu),ru(this,`styles`,Vl),ru(this,`states`,{fallback:e=>!e.auth.account?.avatarUrl}),Kl()}},ru(Hl,Xl,void 0),Hl);var du,fu,pu,mu,hu,gu,_u;function vu(e,t,n){yu(e,t),t.set(e,n)}function yu(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function bu(e,t,n){return e.set(Su(e,t),n),n}function xu(e,t){return e.get(Su(e,t))}function Su(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Cu(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Eu(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Eu(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Du(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:wu(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function wu(e){var t=Tu(e,`string`);return typeof t==`symbol`?t:t+``}function Tu(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Eu(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Du(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}mu=[g(`solid-ui-login-button`)];var Ou,ku=new WeakMap;_u=(hu=lt({context:yt,subscribe:!0}),`auth`),du=class extends P{constructor(...e){super(...e),vu(this,ku,(fu(this),gu(this,vt)))}get[_u](){return xu(ku,this)}set auth(e){bu(ku,this,e)}render(){return M`
296
+ `}},{e:[Uu,zu],c:[id,Bu]}=Qu(Lu,[[Hu,1,`auth`]],Vu,0,void 0,F),Lu),Iu=class extends rd{constructor(){super(id),Zu(this,`styles`,Fu),Zu(this,`states`,{fallback:e=>!e.auth.account?.avatarUrl}),Bu()}},Zu(Iu,Wu,void 0),Iu);var ad,od,sd,cd,ld,ud,dd;function fd(e,t,n){pd(e,t),t.set(e,n)}function pd(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function md(e,t,n){return e.set(gd(e,t),n),n}function hd(e,t){return e.get(gd(e,t))}function gd(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function _d(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:bd(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||bd(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return xd(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:vd(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function vd(e){var t=yd(e,`string`);return typeof t==`symbol`?t:t+``}function yd(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function bd(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function xd(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}cd=[g(`solid-ui-login-button`)];var Sd,Cd=new WeakMap;dd=(ld=A({context:Dn,subscribe:!0}),`auth`),ad=class extends F{constructor(...e){super(...e),fd(this,Cd,(od(this),ud(this,En)))}get[dd](){return hd(Cd,this)}set auth(e){md(Cd,this,e)}render(){return N`
300
297
  <slot name="trigger" @click=${this.onClick}>
301
298
  <solid-ui-button>
302
299
  <slot>
@@ -304,7 +301,7 @@
304
301
  </slot>
305
302
  </solid-ui-button>
306
303
  </slot>
307
- `}click(){this.auth.login()}onClick(e){e.preventDefault(),this.click()}},{e:[gu,fu],c:[Ou,pu]}=Cu(du,[[hu,1,`auth`]],mu,0,void 0,P),pu();var Au,ju,Mu,Nu,Pu,Fu,Iu;function Lu(e,t,n){Ru(e,t),t.set(e,n)}function Ru(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function zu(e,t,n){return e.set(Vu(e,t),n),n}function Bu(e,t){return e.get(Vu(e,t))}function Vu(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Hu(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Gu(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Gu(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Ku(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Uu(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Uu(e){var t=Wu(e,`string`);return typeof t==`symbol`?t:t+``}function Wu(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Gu(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Ku(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}Nu=[g(`solid-ui-logout-button`)];var qu,Ju=new WeakMap;Iu=(Pu=lt({context:yt,subscribe:!0}),`auth`),Au=class extends P{constructor(...e){super(...e),Lu(this,Ju,(ju(this),Fu(this,vt)))}get[Iu](){return Bu(Ju,this)}set auth(e){zu(Ju,this,e)}render(){return M`
304
+ `}click(){this.auth.login()}onClick(e){e.preventDefault(),this.click()}},{e:[ud,od],c:[Sd,sd]}=_d(ad,[[ld,1,`auth`]],cd,0,void 0,F),sd();var wd,Td,Ed,Dd,Od,kd,Ad;function jd(e,t,n){Md(e,t),t.set(e,n)}function Md(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Nd(e,t,n){return e.set(Fd(e,t),n),n}function Pd(e,t){return e.get(Fd(e,t))}function Fd(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Id(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:zd(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||zd(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Bd(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Ld(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Ld(e){var t=Rd(e,`string`);return typeof t==`symbol`?t:t+``}function Rd(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zd(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Bd(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}Dd=[g(`solid-ui-logout-button`)];var Vd,Hd=new WeakMap;Ad=(Od=A({context:Dn,subscribe:!0}),`auth`),wd=class extends F{constructor(...e){super(...e),jd(this,Hd,(Td(this),kd(this,En)))}get[Ad](){return Pd(Hd,this)}set auth(e){Nd(Hd,this,e)}render(){return N`
308
305
  <slot name="trigger" @click=${this.onClick}>
309
306
  <solid-ui-button>
310
307
  <slot>
@@ -312,19 +309,19 @@
312
309
  </slot>
313
310
  </solid-ui-button>
314
311
  </slot>
315
- `}click(){this.auth.logout()}onClick(e){e.preventDefault(),this.click()}},{e:[Fu,ju],c:[qu,Mu]}=Hu(Au,[[Pu,1,`auth`]],Nu,0,void 0,P),Mu();var Yu=w`:host{&>a,&>div{width:100%;color:var(--solid-ui-color-gray-600);font-weight:500;font-size:var(--solid-ui-font-size-md);border-radius:5px;justify-content:flex-start;align-items:center;gap:5px;padding:10px;display:flex;position:relative;&[data-selected]{background:var(--solid-ui-color-primary-selected)}}& ::slotted([slot=left-icon]),& ::slotted([slot=right-icon]){width:var(--solid-ui-font-size-xl);height:var(--solid-ui-font-size-xl)}& a:after{content:\"\";width:100%;height:100%;position:absolute;top:0;left:0}}`,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd;function fd(e,t,n){pd(e,t),t.set(e,n)}function pd(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function md(e,t,n){return e.set(gd(e,t),n),n}function hd(e,t){return e.get(gd(e,t))}function gd(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function _d(e,t,n){return(t=yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vd(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:xd(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||xd(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Sd(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:yd(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function yd(e){var t=bd(e,`string`);return typeof t==`symbol`?t:t+``}function bd(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xd(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Sd(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Cd(e){return e}rd=[g(`solid-ui-menu-item`)];var wd;new(ud=(Qu=new WeakMap,$u=new WeakMap,ed=new WeakMap,dd=(id=F({type:String,reflect:!0}),od=F({type:Boolean,reflect:!0}),cd=ht(`a`),`href`),Zu=class extends P{constructor(...e){super(...e),fd(this,Qu,(td(this),ad(this))),fd(this,$u,sd(this,!1)),fd(this,ed,ld(this,null))}get[dd](){return hd(Qu,this)}set href(e){md(Qu,this,e)}get selected(){return hd($u,this)}set selected(e){md($u,this,e)}get anchor(){return hd(ed,this)}set anchor(e){md(ed,this,e)}render(){return this.href?M`
312
+ `}click(){this.auth.logout()}onClick(e){e.preventDefault(),this.click()}},{e:[kd,Td],c:[Vd,Ed]}=Id(wd,[[Od,1,`auth`]],Dd,0,void 0,F),Ed();var Ud=M`:host{&>a,&>div{width:100%;color:var(--solid-ui-color-gray-600);font-weight:500;font-size:var(--solid-ui-font-size-md);border-radius:5px;justify-content:flex-start;align-items:center;gap:5px;padding:10px;display:flex;position:relative;&[data-selected]{background:var(--solid-ui-color-primary-selected)}}& ::slotted([slot=left-icon]),& ::slotted([slot=right-icon]){width:var(--solid-ui-font-size-xl);height:var(--solid-ui-font-size-xl)}& a:after{content:\"\";width:100%;height:100%;position:absolute;top:0;left:0}}`,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf,af,of;function sf(e,t,n){cf(e,t),t.set(e,n)}function cf(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function lf(e,t,n){return e.set(df(e,t),n),n}function uf(e,t){return e.get(df(e,t))}function df(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function ff(e,t,n){return(t=mf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pf(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:gf(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||gf(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return _f(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:mf(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function mf(e){var t=hf(e,`string`);return typeof t==`symbol`?t:t+``}function hf(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gf(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function _f(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function vf(e){return e}Zd=[g(`solid-ui-menu-item`)];var yf;new(af=(Kd=new WeakMap,qd=new WeakMap,Jd=new WeakMap,of=(Qd=I({type:String,reflect:!0}),ef=I({type:Boolean,reflect:!0}),nf=zt(`a`),`href`),Gd=class extends F{constructor(...e){super(...e),sf(this,Kd,(Yd(this),$d(this))),sf(this,qd,tf(this,!1)),sf(this,Jd,rf(this,null))}get[of](){return uf(Kd,this)}set href(e){lf(Kd,this,e)}get selected(){return uf(qd,this)}set selected(e){lf(qd,this,e)}get anchor(){return uf(Jd,this)}set anchor(e){lf(Jd,this,e)}render(){return this.href?N`
316
313
  <a href="${this.href}" target="_blank" rel="noopener noreferrer" ?data-selected=${this.selected}>
317
314
  <slot name="left-icon"></slot>
318
315
  <slot></slot>
319
316
  <slot name="right-icon"></slot>
320
317
  </a>
321
- `:M`
318
+ `:N`
322
319
  <div ?data-selected=${this.selected}>
323
320
  <slot name="left-icon"></slot>
324
321
  <slot></slot>
325
322
  <slot name="right-icon"></slot>
326
323
  </div>
327
- `}click(){this.anchor?.click()}},{e:[ad,sd,ld,td],c:[wd,nd]}=vd(Zu,[[id,1,`href`],[od,1,`selected`],[cd,1,`anchor`]],rd,0,void 0,P),Zu),Xu=class extends Cd{constructor(){super(wd),_d(this,`styles`,Yu),nd()}},_d(Xu,ud,void 0),Xu);var Td=class extends Event{constructor(e){super(`wa-select`,{bubbles:!0,cancelable:!0,composed:!0}),this.detail=e}};function*Ed(e=document.activeElement){e!=null&&(yield e,`shadowRoot`in e&&e.shadowRoot&&e.shadowRoot.mode!==`closed`&&(yield*Ed(e.shadowRoot.activeElement)))}var Dd=w`
324
+ `}click(){this.anchor?.click()}},{e:[$d,tf,rf,Yd],c:[yf,Xd]}=pf(Gd,[[Qd,1,`href`],[ef,1,`selected`],[nf,1,`anchor`]],Zd,0,void 0,F),Gd),Wd=class extends vf{constructor(){super(yf),ff(this,`styles`,Ud),Xd()}},ff(Wd,af,void 0),Wd);var bf=class extends Event{constructor(e){super(`wa-select`,{bubbles:!0,cancelable:!0,composed:!0}),this.detail=e}};function*xf(e=document.activeElement){e!=null&&(yield e,`shadowRoot`in e&&e.shadowRoot&&e.shadowRoot.mode!==`closed`&&(yield*xf(e.shadowRoot.activeElement)))}var Sf=M`
328
325
  :host {
329
326
  --show-duration: var(--wa-transition-fast);
330
327
  --hide-duration: var(--wa-transition-fast);
@@ -418,7 +415,7 @@
418
415
  opacity: 1;
419
416
  }
420
417
  }
421
- `,Od=class extends Event{constructor(){super(`wa-show`,{bubbles:!0,cancelable:!0,composed:!0})}},kd=class extends Event{constructor(e){super(`wa-hide`,{bubbles:!0,cancelable:!0,composed:!0}),this.detail=e}},Ad=class extends Event{constructor(){super(`wa-after-show`,{bubbles:!0,cancelable:!1,composed:!0})}},jd=class extends Event{constructor(){super(`wa-after-hide`,{bubbles:!0,cancelable:!1,composed:!0})}},Md=[];function Nd(e){Md.push(e)}function Pd(e){for(let t=Md.length-1;t>=0;t--)if(Md[t]===e){Md.splice(t,1);break}}function Fd(e){return Md.length>0&&Md[Md.length-1]===e}var Id=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,Ld=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=Id[n[e]&63];return t};function Rd(e=``){return`${e}${Ld()}`}var zd={small:`s`,medium:`m`,large:`l`},Bd=new Set;function Vd(e,t){t in zd&&!Bd.has(`${e}:${t}`)&&(Bd.add(`${e}:${t}`),console.warn(`[${e}] size="${t}" is deprecated. Use size="${zd[t]}" instead. The long-form value will be removed in the next major version.`))}var Hd=w`
418
+ `,Cf=class extends Event{constructor(){super(`wa-show`,{bubbles:!0,cancelable:!0,composed:!0})}},wf=class extends Event{constructor(e){super(`wa-hide`,{bubbles:!0,cancelable:!0,composed:!0}),this.detail=e}},Tf=class extends Event{constructor(){super(`wa-after-show`,{bubbles:!0,cancelable:!1,composed:!0})}},Ef=class extends Event{constructor(){super(`wa-after-hide`,{bubbles:!0,cancelable:!1,composed:!0})}},Df=[];function Of(e){Df.push(e)}function kf(e){for(let t=Df.length-1;t>=0;t--)if(Df[t]===e){Df.splice(t,1);break}}function Af(e){return Df.length>0&&Df[Df.length-1]===e}var jf=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,Mf=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=jf[n[e]&63];return t};function Nf(e=``){return`${e}${Mf()}`}var Pf={small:`s`,medium:`m`,large:`l`},Ff=new Set;function If(e,t){t in Pf&&!Ff.has(`${e}:${t}`)&&(Ff.add(`${e}:${t}`),console.warn(`[${e}] size="${t}" is deprecated. Use size="${Pf[t]}" instead. The long-form value will be removed in the next major version.`))}var Lf=M`
422
419
  :host([size='xs']) {
423
420
  font-size: var(--wa-font-size-xs);
424
421
  }
@@ -441,7 +438,7 @@
441
438
  :host([size='xl']) {
442
439
  font-size: var(--wa-font-size-xl);
443
440
  }
444
- `;function Ud(e,t){return new Promise(n=>{let r=new AbortController,{signal:i}=r;if(e.classList.contains(t))return;e.classList.add(t);let a=!1,o=()=>{a||(a=!0,e.classList.remove(t),n(),r.abort())};e.addEventListener(`animationend`,o,{once:!0,signal:i}),e.addEventListener(`animationcancel`,o,{once:!0,signal:i}),requestAnimationFrame(()=>{!a&&e.getAnimations().length===0&&o()})})}function Wd(e,t){let n={waitUntilFirstUpdate:!1,...t};return(t,r)=>{let{update:i}=t,a=Array.isArray(e)?e:[e];t.update=function(e){a.forEach(t=>{let i=t;if(e.has(i)){let t=e.get(i),a=this[i];t!==a&&(!n.waitUntilFirstUpdate||this.hasUpdated)&&this[r](t,a)}}),i.call(this,e)}}}var Gd=new Set,Kd=class extends Kr{constructor(){super(...arguments),this.submenuCleanups=new Map,this.localize=new ii(this),this.userTypedQuery=``,this.openSubmenuStack=[],this.open=!1,this.size=`m`,this.placement=`bottom-start`,this.distance=0,this.skidding=0,this.handleDocumentKeyDown=async e=>{let t=this.localize.dir()===`rtl`;if(e.key===`Escape`&&this.open&&Fd(this)){let t=this.getTrigger();e.preventDefault(),e.stopPropagation(),this.open=!1,t?.focus({preventScroll:!0});return}let n=[...Ed()].find(e=>e.localName===`wa-dropdown-item`),r=n?.localName===`wa-dropdown-item`,i=this.getCurrentSubmenuItem(),a=!!i,o,s,c;a?(o=this.getSubmenuItems(i),s=o.find(e=>e.active||e===n),c=s?o.indexOf(s):-1):(o=this.getItems(),s=o.find(e=>e.active||e===n),c=s?o.indexOf(s):-1);let l;if(e.key===`ArrowUp`&&(e.preventDefault(),e.stopPropagation(),l=c>0?o[c-1]:o[o.length-1]),e.key===`ArrowDown`&&(e.preventDefault(),e.stopPropagation(),l=c!==-1&&c<o.length-1?o[c+1]:o[0]),e.key===(t?`ArrowLeft`:`ArrowRight`)&&r&&s&&s.hasSubmenu){e.preventDefault(),e.stopPropagation(),s.submenuOpen=!0,this.addToSubmenuStack(s),setTimeout(()=>{let e=this.getSubmenuItems(s);e.length>0&&(e.forEach((e,t)=>e.active=t===0),e[0].focus({preventScroll:!0}))},0);return}if(e.key===(t?`ArrowRight`:`ArrowLeft`)&&a){e.preventDefault(),e.stopPropagation();let t=this.removeFromSubmenuStack();t&&(t.submenuOpen=!1,setTimeout(()=>{t.focus({preventScroll:!0}),t.active=!0,(t.slot===`submenu`?this.getSubmenuItems(t.parentElement):this.getItems()).forEach(e=>{e!==t&&(e.active=!1)})},0));return}if((e.key===`Home`||e.key===`End`)&&(e.preventDefault(),e.stopPropagation(),l=e.key===`Home`?o[0]:o[o.length-1]),e.key===`Tab`&&await this.hideMenu(),e.key.length===1&&!(e.metaKey||e.ctrlKey||e.altKey)&&!(e.key===` `&&this.userTypedQuery===``)&&(clearTimeout(this.userTypedTimeout),this.userTypedTimeout=setTimeout(()=>{this.userTypedQuery=``},1e3),this.userTypedQuery+=e.key,o.some(e=>{let t=(e.textContent||``).trim().toLowerCase(),n=this.userTypedQuery.trim().toLowerCase();return t.startsWith(n)?(l=e,!0):!1})),l){e.preventDefault(),e.stopPropagation(),o.forEach(e=>e.active=e===l),l.focus({preventScroll:!0}),l.scrollIntoView({block:`nearest`});return}(e.key===`Enter`||e.key===` `&&this.userTypedQuery===``)&&r&&s&&(e.preventDefault(),e.stopPropagation(),s.hasSubmenu?(s.submenuOpen=!0,this.addToSubmenuStack(s),setTimeout(()=>{let e=this.getSubmenuItems(s);e.length>0&&(e.forEach((e,t)=>e.active=t===0),e[0].focus({preventScroll:!0}))},0)):this.makeSelection(s))},this.handleDocumentPointerDown=e=>{e.composedPath().some(e=>e instanceof HTMLElement?e===this||e.closest(`wa-dropdown, [part="submenu"]`):!1)||(this.open=!1)},this.handleGlobalMouseMove=e=>{let t=this.getCurrentSubmenuItem();if(!t?.submenuOpen||!t.submenuElement)return;let n=t.submenuElement.getBoundingClientRect(),r=this.localize.dir()===`rtl`,i=r?n.right:n.left,a=r?Math.max(e.clientX,i):Math.min(e.clientX,i),o=Math.max(n.top,Math.min(e.clientY,n.bottom));t.submenuElement.style.setProperty(`--safe-triangle-cursor-x`,`${a}px`),t.submenuElement.style.setProperty(`--safe-triangle-cursor-y`,`${o}px`);let s=e.composedPath(),c=t.matches(`:hover`),l=!!t.submenuElement?.matches(`:hover`),u=c||!!s.find(e=>e===t),d=l||!!s.find(e=>e instanceof HTMLElement&&e.closest(`[part="submenu"]`)===t.submenuElement);!u&&!d&&setTimeout(()=>{!c&&!l&&(t.submenuOpen=!1)},100)}}handleSizeChange(){Vd(this.localName,this.size)}disconnectedCallback(){super.disconnectedCallback(),clearInterval(this.userTypedTimeout),this.closeAllSubmenus(),this.submenuCleanups.forEach(e=>e()),this.submenuCleanups.clear(),document.removeEventListener(`mousemove`,this.handleGlobalMouseMove),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),document.removeEventListener(`pointerdown`,this.handleDocumentPointerDown),Pd(this)}firstUpdated(){this.syncAriaAttributes()}async updated(e){if(e.has(`open`)){let t=e.get(`open`);if(t===this.open||t===void 0&&this.open===!1)return;this.customStates.set(`open`,this.open),this.open?await this.showMenu():(this.closeAllSubmenus(),await this.hideMenu())}e.has(`size`)&&this.syncItemSizes()}getItems(e=!1){let t=(this.defaultSlot?.assignedElements({flatten:!0})??[]).filter(e=>e.localName===`wa-dropdown-item`);return e?t:t.filter(e=>!e.disabled)}getSubmenuItems(e,t=!1){let n=e.shadowRoot?.querySelector(`slot[name="submenu"]`)||e.querySelector(`slot[name="submenu"]`);if(!n)return[];let r=n.assignedElements({flatten:!0}).filter(e=>e.localName===`wa-dropdown-item`);return t?r:r.filter(e=>!e.disabled)}syncItemSizes(){(this.defaultSlot?.assignedElements({flatten:!0})??[]).filter(e=>e.localName===`wa-dropdown-item`).forEach(e=>e.size=this.size)}addToSubmenuStack(e){let t=this.openSubmenuStack.indexOf(e);t===-1?this.openSubmenuStack.push(e):this.openSubmenuStack=this.openSubmenuStack.slice(0,t+1)}removeFromSubmenuStack(){return this.openSubmenuStack.pop()}getCurrentSubmenuItem(){return this.openSubmenuStack.length>0?this.openSubmenuStack[this.openSubmenuStack.length-1]:void 0}closeAllSubmenus(){this.getItems(!0).forEach(e=>{e.submenuOpen=!1}),this.openSubmenuStack=[]}closeSiblingSubmenus(e){let t=e.closest(`wa-dropdown-item:not([slot="submenu"])`),n;n=t?this.getSubmenuItems(t,!0):this.getItems(!0),n.forEach(t=>{t!==e&&t.submenuOpen&&(t.submenuOpen=!1)}),this.openSubmenuStack.includes(e)||this.openSubmenuStack.push(e)}getTrigger(){return this.querySelector(`[slot="trigger"]`)}async showMenu(){if(!this.getTrigger()||!this.popup||!this.menu)return;let e=new Od;if(this.dispatchEvent(e),e.defaultPrevented){this.open=!1;return}if(this.popup.active)return;Gd.forEach(e=>e.open=!1),this.popup.active=!0,this.open=!0,Gd.add(this),Nd(this),this.syncAriaAttributes(),document.addEventListener(`keydown`,this.handleDocumentKeyDown),document.addEventListener(`pointerdown`,this.handleDocumentPointerDown),document.addEventListener(`mousemove`,this.handleGlobalMouseMove),this.menu.classList.remove(`hide`),await Ud(this.menu,`show`);let t=this.getItems();t.length>0&&(t.forEach((e,t)=>e.active=t===0),t[0].focus({preventScroll:!0})),this.dispatchEvent(new Ad)}async hideMenu(){if(!this.popup||!this.menu)return;let e=new kd({source:this});if(this.dispatchEvent(e),e.defaultPrevented){this.open=!0;return}this.open=!1,Gd.delete(this),Pd(this),this.syncAriaAttributes(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),document.removeEventListener(`pointerdown`,this.handleDocumentPointerDown),document.removeEventListener(`mousemove`,this.handleGlobalMouseMove),this.menu.classList.remove(`show`),await Ud(this.menu,`hide`),this.popup.active=this.open,this.dispatchEvent(new jd)}handleMenuClick(e){let t=e.target.closest(`wa-dropdown-item`);if(!(!t||t.disabled)){if(t.hasSubmenu){t.submenuOpen||=(this.closeSiblingSubmenus(t),this.addToSubmenuStack(t),!0),e.stopPropagation();return}this.makeSelection(t)}}async handleMenuSlotChange(){let e=this.getItems(!0);await Promise.all(e.map(e=>e.updateComplete)),this.syncItemSizes();let t=e.some(e=>e.type===`checkbox`),n=e.some(e=>e.hasSubmenu);e.forEach((e,r)=>{e.active=r===0,e.checkboxAdjacent=t,e.submenuAdjacent=n})}handleTriggerClick(){this.open=!this.open}handleSubmenuOpening(e){let t=e.detail.item;this.closeSiblingSubmenus(t),this.addToSubmenuStack(t),this.setupSubmenuPosition(t),this.processSubmenuItems(t)}setupSubmenuPosition(e){if(!e.submenuElement)return;this.cleanupSubmenuPosition(e);let t=Ha(e,e.submenuElement,()=>{this.positionSubmenu(e),this.updateSafeTriangleCoordinates(e)});this.submenuCleanups.set(e,t);let n=e.submenuElement.querySelector(`slot[name="submenu"]`);n&&(n.removeEventListener(`slotchange`,Kd.handleSubmenuSlotChange),n.addEventListener(`slotchange`,Kd.handleSubmenuSlotChange),Kd.handleSubmenuSlotChange({target:n}))}static handleSubmenuSlotChange(e){let t=e.target;if(!t)return;let n=t.assignedElements().filter(e=>e.localName===`wa-dropdown-item`);if(n.length===0)return;let r=n.some(e=>e.hasSubmenu),i=n.some(e=>e.type===`checkbox`);n.forEach(e=>{e.submenuAdjacent=r,e.checkboxAdjacent=i})}processSubmenuItems(e){if(!e.submenuElement)return;let t=this.getSubmenuItems(e,!0),n=t.some(e=>e.hasSubmenu);t.forEach(e=>{e.submenuAdjacent=n})}cleanupSubmenuPosition(e){let t=this.submenuCleanups.get(e);t&&(t(),this.submenuCleanups.delete(e))}positionSubmenu(e){if(!e.submenuElement)return;let t=this.localize.dir()===`rtl`?`left-start`:`right-start`;Ja(e,e.submenuElement,{placement:t,middleware:[Ua({mainAxis:0,crossAxis:-5}),Ga({fallbackStrategy:`bestFit`}),Wa({padding:8})]}).then(({x:t,y:n,placement:r})=>{e.submenuElement.setAttribute(`data-placement`,r),Object.assign(e.submenuElement.style,{left:`${t}px`,top:`${n}px`})})}updateSafeTriangleCoordinates(e){if(!e.submenuElement||!e.submenuOpen)return;if(document.activeElement?.matches(`:focus-visible`)){e.submenuElement.style.setProperty(`--safe-triangle-visible`,`none`);return}e.submenuElement.style.setProperty(`--safe-triangle-visible`,`block`);let t=e.submenuElement.getBoundingClientRect(),n=this.localize.dir()===`rtl`;e.submenuElement.style.setProperty(`--safe-triangle-submenu-start-x`,`${n?t.right:t.left}px`),e.submenuElement.style.setProperty(`--safe-triangle-submenu-start-y`,`${t.top}px`),e.submenuElement.style.setProperty(`--safe-triangle-submenu-end-x`,`${n?t.right:t.left}px`),e.submenuElement.style.setProperty(`--safe-triangle-submenu-end-y`,`${t.bottom}px`)}makeSelection(e){let t=this.getTrigger();if(e.disabled)return;e.type===`checkbox`&&(e.checked=!e.checked);let n=new Td({item:e});this.dispatchEvent(n),n.defaultPrevented||(this.open=!1,t?.focus({preventScroll:!0}))}async syncAriaAttributes(){let e=this.getTrigger(),t;e&&(e.localName===`wa-button`?(await customElements.whenDefined(`wa-button`),await e.updateComplete,t=e.shadowRoot.querySelector(`[part="base"]`)):t=e,t.hasAttribute(`id`)||t.setAttribute(`id`,Rd(`wa-dropdown-trigger-`)),t.setAttribute(`aria-haspopup`,`menu`),t.setAttribute(`aria-expanded`,this.open?`true`:`false`),this.menu?.setAttribute(`aria-expanded`,`false`))}render(){let e=this.didSSR&&!this.hasUpdated?this.open:this.popup?.active;return M`
441
+ `;function Rf(e,t){return new Promise(n=>{let r=new AbortController,{signal:i}=r;if(e.classList.contains(t))return;e.classList.add(t);let a=!1,o=()=>{a||(a=!0,e.classList.remove(t),n(),r.abort())};e.addEventListener(`animationend`,o,{once:!0,signal:i}),e.addEventListener(`animationcancel`,o,{once:!0,signal:i}),requestAnimationFrame(()=>{!a&&e.getAnimations().length===0&&o()})})}function zf(e,t){let n={waitUntilFirstUpdate:!1,...t};return(t,r)=>{let{update:i}=t,a=Array.isArray(e)?e:[e];t.update=function(e){a.forEach(t=>{let i=t;if(e.has(i)){let t=e.get(i),a=this[i];t!==a&&(!n.waitUntilFirstUpdate||this.hasUpdated)&&this[r](t,a)}}),i.call(this,e)}}}var Bf=new Set,Vf=class extends Zi{constructor(){super(...arguments),this.submenuCleanups=new Map,this.localize=new la(this),this.userTypedQuery=``,this.openSubmenuStack=[],this.open=!1,this.size=`m`,this.placement=`bottom-start`,this.distance=0,this.skidding=0,this.handleDocumentKeyDown=async e=>{let t=this.localize.dir()===`rtl`;if(e.key===`Escape`&&this.open&&Af(this)){let t=this.getTrigger();e.preventDefault(),e.stopPropagation(),this.open=!1,t?.focus({preventScroll:!0});return}let n=[...xf()].find(e=>e.localName===`wa-dropdown-item`),r=n?.localName===`wa-dropdown-item`,i=this.getCurrentSubmenuItem(),a=!!i,o,s,c;a?(o=this.getSubmenuItems(i),s=o.find(e=>e.active||e===n),c=s?o.indexOf(s):-1):(o=this.getItems(),s=o.find(e=>e.active||e===n),c=s?o.indexOf(s):-1);let l;if(e.key===`ArrowUp`&&(e.preventDefault(),e.stopPropagation(),l=c>0?o[c-1]:o[o.length-1]),e.key===`ArrowDown`&&(e.preventDefault(),e.stopPropagation(),l=c!==-1&&c<o.length-1?o[c+1]:o[0]),e.key===(t?`ArrowLeft`:`ArrowRight`)&&r&&s&&s.hasSubmenu){e.preventDefault(),e.stopPropagation(),s.submenuOpen=!0,this.addToSubmenuStack(s),setTimeout(()=>{let e=this.getSubmenuItems(s);e.length>0&&(e.forEach((e,t)=>e.active=t===0),e[0].focus({preventScroll:!0}))},0);return}if(e.key===(t?`ArrowRight`:`ArrowLeft`)&&a){e.preventDefault(),e.stopPropagation();let t=this.removeFromSubmenuStack();t&&(t.submenuOpen=!1,setTimeout(()=>{t.focus({preventScroll:!0}),t.active=!0,(t.slot===`submenu`?this.getSubmenuItems(t.parentElement):this.getItems()).forEach(e=>{e!==t&&(e.active=!1)})},0));return}if((e.key===`Home`||e.key===`End`)&&(e.preventDefault(),e.stopPropagation(),l=e.key===`Home`?o[0]:o[o.length-1]),e.key===`Tab`&&await this.hideMenu(),e.key.length===1&&!(e.metaKey||e.ctrlKey||e.altKey)&&(e.key!==` `||this.userTypedQuery!==``)&&(clearTimeout(this.userTypedTimeout),this.userTypedTimeout=setTimeout(()=>{this.userTypedQuery=``},1e3),this.userTypedQuery+=e.key,o.some(e=>{let t=(e.textContent||``).trim().toLowerCase(),n=this.userTypedQuery.trim().toLowerCase();return t.startsWith(n)?(l=e,!0):!1})),l){e.preventDefault(),e.stopPropagation(),o.forEach(e=>e.active=e===l),l.focus({preventScroll:!0}),l.scrollIntoView({block:`nearest`});return}(e.key===`Enter`||e.key===` `&&this.userTypedQuery===``)&&r&&s&&(e.preventDefault(),e.stopPropagation(),s.hasSubmenu?(s.submenuOpen=!0,this.addToSubmenuStack(s),setTimeout(()=>{let e=this.getSubmenuItems(s);e.length>0&&(e.forEach((e,t)=>e.active=t===0),e[0].focus({preventScroll:!0}))},0)):this.makeSelection(s))},this.handleDocumentPointerDown=e=>{e.composedPath().some(e=>e instanceof HTMLElement?e===this||e.closest(`wa-dropdown, [part="submenu"]`):!1)||(this.open=!1)},this.handleGlobalMouseMove=e=>{let t=this.getCurrentSubmenuItem();if(!t?.submenuOpen||!t.submenuElement)return;let n=t.submenuElement.getBoundingClientRect(),r=this.localize.dir()===`rtl`,i=r?n.right:n.left,a=r?Math.max(e.clientX,i):Math.min(e.clientX,i),o=Math.max(n.top,Math.min(e.clientY,n.bottom));t.submenuElement.style.setProperty(`--safe-triangle-cursor-x`,`${a}px`),t.submenuElement.style.setProperty(`--safe-triangle-cursor-y`,`${o}px`);let s=e.composedPath(),c=t.matches(`:hover`),l=!!t.submenuElement?.matches(`:hover`),u=c||!!s.find(e=>e===t),d=l||!!s.find(e=>e instanceof HTMLElement&&e.closest(`[part="submenu"]`)===t.submenuElement);!u&&!d&&setTimeout(()=>{!c&&!l&&(t.submenuOpen=!1)},100)}}handleSizeChange(){If(this.localName,this.size)}disconnectedCallback(){super.disconnectedCallback(),clearInterval(this.userTypedTimeout),this.closeAllSubmenus(),this.submenuCleanups.forEach(e=>e()),this.submenuCleanups.clear(),document.removeEventListener(`mousemove`,this.handleGlobalMouseMove),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),document.removeEventListener(`pointerdown`,this.handleDocumentPointerDown),kf(this)}firstUpdated(){this.syncAriaAttributes()}async updated(e){if(e.has(`open`)){let t=e.get(`open`);if(t===this.open||t===void 0&&this.open===!1)return;this.customStates.set(`open`,this.open),this.open?await this.showMenu():(this.closeAllSubmenus(),await this.hideMenu())}e.has(`size`)&&this.syncItemSizes()}getItems(e=!1){let t=(this.defaultSlot?.assignedElements({flatten:!0})??[]).filter(e=>e.localName===`wa-dropdown-item`);return e?t:t.filter(e=>!e.disabled)}getSubmenuItems(e,t=!1){let n=e.shadowRoot?.querySelector(`slot[name="submenu"]`)||e.querySelector(`slot[name="submenu"]`);if(!n)return[];let r=n.assignedElements({flatten:!0}).filter(e=>e.localName===`wa-dropdown-item`);return t?r:r.filter(e=>!e.disabled)}syncItemSizes(){(this.defaultSlot?.assignedElements({flatten:!0})??[]).filter(e=>e.localName===`wa-dropdown-item`).forEach(e=>e.size=this.size)}addToSubmenuStack(e){let t=this.openSubmenuStack.indexOf(e);t===-1?this.openSubmenuStack.push(e):this.openSubmenuStack=this.openSubmenuStack.slice(0,t+1)}removeFromSubmenuStack(){return this.openSubmenuStack.pop()}getCurrentSubmenuItem(){return this.openSubmenuStack.length>0?this.openSubmenuStack[this.openSubmenuStack.length-1]:void 0}closeAllSubmenus(){this.getItems(!0).forEach(e=>{e.submenuOpen=!1}),this.openSubmenuStack=[]}closeSiblingSubmenus(e){let t=e.closest(`wa-dropdown-item:not([slot="submenu"])`),n;n=t?this.getSubmenuItems(t,!0):this.getItems(!0),n.forEach(t=>{t!==e&&t.submenuOpen&&(t.submenuOpen=!1)}),this.openSubmenuStack.includes(e)||this.openSubmenuStack.push(e)}getTrigger(){return this.querySelector(`[slot="trigger"]`)}async showMenu(){if(!this.getTrigger()||!this.popup||!this.menu)return;let e=new Cf;if(this.dispatchEvent(e),e.defaultPrevented){this.open=!1;return}if(this.popup.active)return;Bf.forEach(e=>e.open=!1),this.popup.active=!0,this.open=!0,Bf.add(this),Of(this),this.syncAriaAttributes(),document.addEventListener(`keydown`,this.handleDocumentKeyDown),document.addEventListener(`pointerdown`,this.handleDocumentPointerDown),document.addEventListener(`mousemove`,this.handleGlobalMouseMove),this.menu.classList.remove(`hide`),await Rf(this.menu,`show`);let t=this.getItems();t.length>0&&(t.forEach((e,t)=>e.active=t===0),t[0].focus({preventScroll:!0})),this.dispatchEvent(new Tf)}async hideMenu(){if(!this.popup||!this.menu)return;let e=new wf({source:this});if(this.dispatchEvent(e),e.defaultPrevented){this.open=!0;return}this.open=!1,Bf.delete(this),kf(this),this.syncAriaAttributes(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),document.removeEventListener(`pointerdown`,this.handleDocumentPointerDown),document.removeEventListener(`mousemove`,this.handleGlobalMouseMove),this.menu.classList.remove(`show`),await Rf(this.menu,`hide`),this.popup.active=this.open,this.dispatchEvent(new Ef)}handleMenuClick(e){let t=e.target.closest(`wa-dropdown-item`);if(!(!t||t.disabled)){if(t.hasSubmenu){t.submenuOpen||=(this.closeSiblingSubmenus(t),this.addToSubmenuStack(t),!0),e.stopPropagation();return}this.makeSelection(t)}}async handleMenuSlotChange(){let e=this.getItems(!0);await Promise.all(e.map(e=>e.updateComplete)),this.syncItemSizes();let t=e.some(e=>e.type===`checkbox`),n=e.some(e=>e.hasSubmenu);e.forEach((e,r)=>{e.active=r===0,e.checkboxAdjacent=t,e.submenuAdjacent=n})}handleTriggerClick(){this.open=!this.open}handleSubmenuOpening(e){let t=e.detail.item;this.closeSiblingSubmenus(t),this.addToSubmenuStack(t),this.setupSubmenuPosition(t),this.processSubmenuItems(t)}setupSubmenuPosition(e){if(!e.submenuElement)return;this.cleanupSubmenuPosition(e);let t=Jo(e,e.submenuElement,()=>{this.positionSubmenu(e),this.updateSafeTriangleCoordinates(e)});this.submenuCleanups.set(e,t);let n=e.submenuElement.querySelector(`slot[name="submenu"]`);n&&(n.removeEventListener(`slotchange`,Vf.handleSubmenuSlotChange),n.addEventListener(`slotchange`,Vf.handleSubmenuSlotChange),Vf.handleSubmenuSlotChange({target:n}))}static handleSubmenuSlotChange(e){let t=e.target;if(!t)return;let n=t.assignedElements().filter(e=>e.localName===`wa-dropdown-item`);if(n.length===0)return;let r=n.some(e=>e.hasSubmenu),i=n.some(e=>e.type===`checkbox`);n.forEach(e=>{e.submenuAdjacent=r,e.checkboxAdjacent=i})}processSubmenuItems(e){if(!e.submenuElement)return;let t=this.getSubmenuItems(e,!0),n=t.some(e=>e.hasSubmenu);t.forEach(e=>{e.submenuAdjacent=n})}cleanupSubmenuPosition(e){let t=this.submenuCleanups.get(e);t&&(t(),this.submenuCleanups.delete(e))}positionSubmenu(e){if(!e.submenuElement)return;let t=this.localize.dir()===`rtl`?`left-start`:`right-start`;es(e,e.submenuElement,{placement:t,middleware:[Yo({mainAxis:0,crossAxis:-5}),Zo({fallbackStrategy:`bestFit`}),Xo({padding:8})]}).then(({x:t,y:n,placement:r})=>{e.submenuElement.setAttribute(`data-placement`,r),Object.assign(e.submenuElement.style,{left:`${t}px`,top:`${n}px`})})}updateSafeTriangleCoordinates(e){if(!e.submenuElement||!e.submenuOpen)return;if(document.activeElement?.matches(`:focus-visible`)){e.submenuElement.style.setProperty(`--safe-triangle-visible`,`none`);return}e.submenuElement.style.setProperty(`--safe-triangle-visible`,`block`);let t=e.submenuElement.getBoundingClientRect(),n=this.localize.dir()===`rtl`;e.submenuElement.style.setProperty(`--safe-triangle-submenu-start-x`,`${n?t.right:t.left}px`),e.submenuElement.style.setProperty(`--safe-triangle-submenu-start-y`,`${t.top}px`),e.submenuElement.style.setProperty(`--safe-triangle-submenu-end-x`,`${n?t.right:t.left}px`),e.submenuElement.style.setProperty(`--safe-triangle-submenu-end-y`,`${t.bottom}px`)}makeSelection(e){let t=this.getTrigger();if(e.disabled)return;e.type===`checkbox`&&(e.checked=!e.checked);let n=new bf({item:e});this.dispatchEvent(n),n.defaultPrevented||(this.open=!1,t?.focus({preventScroll:!0}))}async syncAriaAttributes(){let e=this.getTrigger(),t;e&&(e.localName===`wa-button`?(await customElements.whenDefined(`wa-button`),await e.updateComplete,t=e.shadowRoot.querySelector(`[part~="base"]`)):t=e,t.hasAttribute(`id`)||t.setAttribute(`id`,Nf(`wa-dropdown-trigger-`)),t.setAttribute(`aria-haspopup`,`menu`),t.setAttribute(`aria-expanded`,this.open?`true`:`false`),this.menu?.setAttribute(`aria-expanded`,`false`))}render(){let e=this.didSSR&&!this.hasUpdated?this.open:this.popup?.active;return N`
445
442
  <wa-popup
446
443
  placement=${this.placement}
447
444
  distance=${this.distance}
@@ -472,7 +469,7 @@
472
469
  <slot @slotchange=${this.handleMenuSlotChange}></slot>
473
470
  </div>
474
471
  </wa-popup>
475
- `}};Kd.css=[Hd,Dd],L([ht(`slot:not([name])`)],Kd.prototype,`defaultSlot`,2),L([ht(`#menu`)],Kd.prototype,`menu`,2),L([ht(`wa-popup`)],Kd.prototype,`popup`,2),L([F({type:Boolean,reflect:!0})],Kd.prototype,`open`,2),L([F({reflect:!0})],Kd.prototype,`size`,2),L([Wd(`size`)],Kd.prototype,`handleSizeChange`,1),L([F({reflect:!0})],Kd.prototype,`placement`,2),L([F({type:Number})],Kd.prototype,`distance`,2),L([F({type:Number})],Kd.prototype,`skidding`,2),Kd=L([ut(`wa-dropdown`)],Kd);var qd=w`
472
+ `}};Vf.css=[Lf,Sf],z([zt(`slot:not([name])`)],Vf.prototype,`defaultSlot`,2),z([zt(`#menu`)],Vf.prototype,`menu`,2),z([zt(`wa-popup`)],Vf.prototype,`popup`,2),z([I({type:Boolean,reflect:!0})],Vf.prototype,`open`,2),z([I({reflect:!0})],Vf.prototype,`size`,2),z([zf(`size`)],Vf.prototype,`handleSizeChange`,1),z([I({reflect:!0})],Vf.prototype,`placement`,2),z([I({type:Number})],Vf.prototype,`distance`,2),z([I({type:Number})],Vf.prototype,`skidding`,2),Vf=z([Ft(`wa-dropdown`)],Vf);var Hf=M`
476
473
  :host {
477
474
  display: flex;
478
475
  position: relative;
@@ -703,8 +700,8 @@
703
700
  opacity: 1;
704
701
  }
705
702
  }
706
- `,Jd=class{constructor(e,...t){this.slotNames=[],this.handleSlotChange=e=>{let t=e.target;(this.slotNames.includes(`[default]`)&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()},(this.host=e).addController(this),this.slotNames=t}hasDefaultSlot(){return this.host.childNodes?[...this.host.childNodes].some(e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent.trim()!==``)return!0;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName.toLowerCase()===`wa-visually-hidden`)return!1;if(!t.hasAttribute(`slot`))return!0}return!1}):!1}hasNamedSlot(e){return this.host.querySelector?.(`:scope > [slot="${e}"]`)!==null}test(e,t){return t&&this.host.didSSR&&!this.host.hasUpdated?!!this.host[t]:e===`[default]`?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){let e=this.host.shadowRoot;e&&`addEventListener`in e&&e.addEventListener(`slotchange`,this.handleSlotChange)}hostDisconnected(){let e=this.host.shadowRoot;e&&`removeEventListener`in e&&e.removeEventListener(`slotchange`,this.handleSlotChange)}},Yd=class extends Kr{constructor(){super(...arguments),this.hasSlotController=new Jd(this,`[default]`,`start`,`end`),this.active=!1,this.variant=`default`,this.size=`m`,this.checkboxAdjacent=!1,this.submenuAdjacent=!1,this.type=`normal`,this.checked=!1,this.disabled=!1,this.submenuOpen=!1,this.hasSubmenu=!1,this.handleSlotChange=()=>{this.hasSubmenu=this.hasSlotController.test(`submenu`),this.updateHasSubmenuState(),this.hasSubmenu?(this.setAttribute(`aria-haspopup`,`menu`),this.setAttribute(`aria-expanded`,this.submenuOpen?`true`:`false`)):(this.removeAttribute(`aria-haspopup`),this.removeAttribute(`aria-expanded`))},this.handleHostClick=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())},this.handleClick=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}handleSizeChange(){Vd(this.localName,this.size)}connectedCallback(){super.connectedCallback(),this.addEventListener?.(`click`,this.handleHostClick),this.addEventListener?.(`mouseenter`,this.handleMouseEnter.bind(this)),this.shadowRoot?.addEventListener?.(`click`,this.handleClick,{capture:!0}),this.shadowRoot?.addEventListener?.(`slotchange`,this.handleSlotChange)}disconnectedCallback(){super.disconnectedCallback(),this.closeSubmenu(),this.removeEventListener?.(`click`,this.handleHostClick),this.removeEventListener?.(`mouseenter`,this.handleMouseEnter),this.shadowRoot?.removeEventListener?.(`click`,this.handleClick,{capture:!0}),this.shadowRoot?.removeEventListener?.(`slotchange`,this.handleSlotChange)}firstUpdated(){this.setAttribute(`tabindex`,`-1`),this.hasSubmenu=this.hasSlotController.test(`submenu`),this.updateHasSubmenuState()}updated(e){e.has(`active`)&&(this.setAttribute(`tabindex`,this.active?`0`:`-1`),this.customStates.set(`active`,this.active)),e.has(`checked`)&&(this.type===`checkbox`?this.setAttribute(`aria-checked`,this.checked?`true`:`false`):this.removeAttribute(`aria-checked`),this.customStates.set(`checked`,this.checked)),e.has(`disabled`)&&(this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`),this.customStates.set(`disabled`,this.disabled)),e.has(`type`)&&(this.type===`checkbox`?(this.setAttribute(`role`,`menuitemcheckbox`),this.setAttribute(`aria-checked`,this.checked?`true`:`false`)):(this.setAttribute(`role`,`menuitem`),this.removeAttribute(`aria-checked`))),e.has(`submenuOpen`)&&(this.customStates.set(`submenu-open`,this.submenuOpen),this.submenuOpen?this.openSubmenu():this.closeSubmenu())}updateHasSubmenuState(){this.customStates.set(`has-submenu`,this.hasSubmenu)}async openSubmenu(){let e=this.submenuElement;!this.hasSubmenu||!e||!this.isConnected||(this.notifyParentOfOpening(),e.showPopover?.(),e.hidden=!1,e.setAttribute(`data-visible`,``),this.submenuOpen=!0,this.setAttribute(`aria-expanded`,`true`),await Ud(e,`show`),setTimeout(()=>{let e=this.getSubmenuItems();e.length>0&&(e.forEach((e,t)=>e.active=t===0),e[0].focus({preventScroll:!0}))},0))}notifyParentOfOpening(){let e=new CustomEvent(`submenu-opening`,{bubbles:!0,composed:!0,detail:{item:this}});this.dispatchEvent(e);let t=this.parentElement;t&&[...t.children].filter(e=>e!==this&&e.localName===`wa-dropdown-item`&&e.getAttribute(`slot`)===this.getAttribute(`slot`)&&e.submenuOpen).forEach(e=>{e.submenuOpen=!1})}async closeSubmenu(){let e=this.submenuElement;!this.hasSubmenu||!e||(this.submenuOpen=!1,this.setAttribute(`aria-expanded`,`false`),e.hidden||(await Ud(e,`hide`),e?.isConnected&&(e.hidden=!0,e.removeAttribute(`data-visible`),e.hidePopover?.())))}getSubmenuItems(){return[...this.children].filter(e=>e.localName===`wa-dropdown-item`&&e.getAttribute(`slot`)===`submenu`&&!e.hasAttribute(`disabled`))}handleMouseEnter(){this.hasSubmenu&&!this.disabled&&(this.notifyParentOfOpening(),this.submenuOpen=!0)}render(){return M`
707
- ${this.type===`checkbox`?M`
703
+ `,Uf=class{constructor(e,...t){this.slotNames=[],this.handleSlotChange=e=>{let t=e.target;(this.slotNames.includes(`[default]`)&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()},(this.host=e).addController(this),this.slotNames=t}hasDefaultSlot(){return this.host.childNodes?[...this.host.childNodes].some(e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent.trim()!==``)return!0;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName.toLowerCase()===`wa-visually-hidden`)return!1;if(!t.hasAttribute(`slot`))return!0}return!1}):!1}hasNamedSlot(e){return this.host.querySelector?.(`:scope > [slot="${e}"]`)!==null}test(e,t){return t&&this.host.didSSR&&!this.host.hasUpdated?!!this.host[t]:e===`[default]`?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){let e=this.host.shadowRoot;e&&`addEventListener`in e&&e.addEventListener(`slotchange`,this.handleSlotChange)}hostDisconnected(){let e=this.host.shadowRoot;e&&`removeEventListener`in e&&e.removeEventListener(`slotchange`,this.handleSlotChange)}},Wf=class extends Zi{constructor(){super(...arguments),this.hasSlotController=new Uf(this,`[default]`,`start`,`end`),this.active=!1,this.variant=`default`,this.size=`m`,this.checkboxAdjacent=!1,this.submenuAdjacent=!1,this.type=`normal`,this.checked=!1,this.disabled=!1,this.submenuOpen=!1,this.hasSubmenu=!1,this.handleSlotChange=()=>{this.hasSubmenu=this.hasSlotController.test(`submenu`),this.updateHasSubmenuState(),this.hasSubmenu?(this.setAttribute(`aria-haspopup`,`menu`),this.setAttribute(`aria-expanded`,this.submenuOpen?`true`:`false`)):(this.removeAttribute(`aria-haspopup`),this.removeAttribute(`aria-expanded`))},this.handleHostClick=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())},this.handleClick=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}handleSizeChange(){If(this.localName,this.size)}connectedCallback(){super.connectedCallback(),this.addEventListener?.(`click`,this.handleHostClick),this.addEventListener?.(`mouseenter`,this.handleMouseEnter.bind(this)),this.shadowRoot?.addEventListener?.(`click`,this.handleClick,{capture:!0}),this.shadowRoot?.addEventListener?.(`slotchange`,this.handleSlotChange)}disconnectedCallback(){super.disconnectedCallback(),this.closeSubmenu(),this.removeEventListener?.(`click`,this.handleHostClick),this.removeEventListener?.(`mouseenter`,this.handleMouseEnter),this.shadowRoot?.removeEventListener?.(`click`,this.handleClick,{capture:!0}),this.shadowRoot?.removeEventListener?.(`slotchange`,this.handleSlotChange)}firstUpdated(){this.setAttribute(`tabindex`,`-1`),this.hasSubmenu=this.hasSlotController.test(`submenu`),this.updateHasSubmenuState()}updated(e){e.has(`active`)&&(this.setAttribute(`tabindex`,this.active?`0`:`-1`),this.customStates.set(`active`,this.active)),e.has(`checked`)&&(this.type===`checkbox`?this.setAttribute(`aria-checked`,this.checked?`true`:`false`):this.removeAttribute(`aria-checked`),this.customStates.set(`checked`,this.checked)),e.has(`disabled`)&&(this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`),this.customStates.set(`disabled`,this.disabled)),e.has(`type`)&&(this.type===`checkbox`?(this.setAttribute(`role`,`menuitemcheckbox`),this.setAttribute(`aria-checked`,this.checked?`true`:`false`)):(this.setAttribute(`role`,`menuitem`),this.removeAttribute(`aria-checked`))),e.has(`submenuOpen`)&&(this.customStates.set(`submenu-open`,this.submenuOpen),this.submenuOpen?this.openSubmenu():this.closeSubmenu())}updateHasSubmenuState(){this.customStates.set(`has-submenu`,this.hasSubmenu)}async openSubmenu(){let e=this.submenuElement;!this.hasSubmenu||!e||!this.isConnected||(this.notifyParentOfOpening(),e.showPopover?.(),e.hidden=!1,e.setAttribute(`data-visible`,``),this.submenuOpen=!0,this.setAttribute(`aria-expanded`,`true`),await Rf(e,`show`),setTimeout(()=>{let e=this.getSubmenuItems();e.length>0&&(e.forEach((e,t)=>e.active=t===0),e[0].focus({preventScroll:!0}))},0))}notifyParentOfOpening(){let e=new CustomEvent(`submenu-opening`,{bubbles:!0,composed:!0,detail:{item:this}});this.dispatchEvent(e);let t=this.parentElement;t&&[...t.children].filter(e=>e!==this&&e.localName===`wa-dropdown-item`&&e.getAttribute(`slot`)===this.getAttribute(`slot`)&&e.submenuOpen).forEach(e=>{e.submenuOpen=!1})}async closeSubmenu(){let e=this.submenuElement;!this.hasSubmenu||!e||(this.submenuOpen=!1,this.setAttribute(`aria-expanded`,`false`),e.hidden||(await Rf(e,`hide`),e?.isConnected&&(e.hidden=!0,e.removeAttribute(`data-visible`),e.hidePopover?.())))}getSubmenuItems(){return[...this.children].filter(e=>e.localName===`wa-dropdown-item`&&e.getAttribute(`slot`)===`submenu`&&!e.hasAttribute(`disabled`))}handleMouseEnter(){this.hasSubmenu&&!this.disabled&&(this.notifyParentOfOpening(),this.submenuOpen=!0)}render(){return N`
704
+ ${this.type===`checkbox`?N`
708
705
  <wa-icon
709
706
  id="check"
710
707
  part="checkmark"
@@ -726,7 +723,7 @@
726
723
  <slot name="details"></slot>
727
724
  </span>
728
725
 
729
- ${this.hasSubmenu?M`
726
+ ${this.hasSubmenu?N`
730
727
  <wa-icon
731
728
  id="submenu-indicator"
732
729
  part="submenu-icon"
@@ -735,7 +732,7 @@
735
732
  name="chevron-right"
736
733
  ></wa-icon>
737
734
  `:``}
738
- ${this.hasSubmenu?M`
735
+ ${this.hasSubmenu?N`
739
736
  <div
740
737
  id="submenu"
741
738
  part="submenu"
@@ -748,7 +745,7 @@
748
745
  <slot name="submenu"></slot>
749
746
  </div>
750
747
  `:``}
751
- `}};Yd.css=qd,L([ht(`#submenu`)],Yd.prototype,`submenuElement`,2),L([F({type:Boolean})],Yd.prototype,`active`,2),L([F({reflect:!0})],Yd.prototype,`variant`,2),L([F({reflect:!0})],Yd.prototype,`size`,2),L([Wd(`size`)],Yd.prototype,`handleSizeChange`,1),L([F({attribute:`checkbox-adjacent`,type:Boolean,reflect:!0})],Yd.prototype,`checkboxAdjacent`,2),L([F({attribute:`submenu-adjacent`,type:Boolean,reflect:!0})],Yd.prototype,`submenuAdjacent`,2),L([F()],Yd.prototype,`value`,2),L([F({reflect:!0})],Yd.prototype,`type`,2),L([F({type:Boolean})],Yd.prototype,`checked`,2),L([F({type:Boolean,reflect:!0})],Yd.prototype,`disabled`,2),L([F({type:Boolean,reflect:!0})],Yd.prototype,`submenuOpen`,2),L([pt()],Yd.prototype,`hasSubmenu`,2),Yd=L([ut(`wa-dropdown-item`)],Yd);var Xd=class extends Event{constructor(){super(`wa-error`,{bubbles:!0,cancelable:!1,composed:!0})}},Zd=class extends Event{constructor(){super(`wa-load`,{bubbles:!0,cancelable:!1,composed:!0})}},Qd=w`
748
+ `}};Wf.css=Hf,z([zt(`#submenu`)],Wf.prototype,`submenuElement`,2),z([I({type:Boolean})],Wf.prototype,`active`,2),z([I({reflect:!0})],Wf.prototype,`variant`,2),z([I({reflect:!0})],Wf.prototype,`size`,2),z([zf(`size`)],Wf.prototype,`handleSizeChange`,1),z([I({attribute:`checkbox-adjacent`,type:Boolean,reflect:!0})],Wf.prototype,`checkboxAdjacent`,2),z([I({attribute:`submenu-adjacent`,type:Boolean,reflect:!0})],Wf.prototype,`submenuAdjacent`,2),z([I()],Wf.prototype,`value`,2),z([I({reflect:!0})],Wf.prototype,`type`,2),z([I({type:Boolean})],Wf.prototype,`checked`,2),z([I({type:Boolean,reflect:!0})],Wf.prototype,`disabled`,2),z([I({type:Boolean,reflect:!0})],Wf.prototype,`submenuOpen`,2),z([L()],Wf.prototype,`hasSubmenu`,2),Wf=z([Ft(`wa-dropdown-item`)],Wf);var Gf=class extends Event{constructor(){super(`wa-error`,{bubbles:!0,cancelable:!1,composed:!0})}},Kf=class extends Event{constructor(){super(`wa-load`,{bubbles:!0,cancelable:!1,composed:!0})}},qf=M`
752
749
  :host {
753
750
  --primary-color: currentColor;
754
751
  --primary-opacity: 1;
@@ -800,7 +797,9 @@
800
797
  /* #endregion */
801
798
 
802
799
  svg {
803
- fill: currentColor;
800
+ /* NOTE: Avoid setting fill here. A stylesheet rule beats SVG presentation attributes, breaking stroke-based
801
+ libraries like Lucide (fill="none" stroke="currentColor") and attribute-based mutators (issue #1733). The default
802
+ library applies fill="currentColor" in its mutator instead. */
804
803
  height: 1em;
805
804
  overflow: visible;
806
805
  width: auto;
@@ -1593,9 +1592,9 @@
1593
1592
  }
1594
1593
 
1595
1594
  /* #endregion */
1596
- `,$d=``,ef=``;function tf(){return $d.replace(/\/$/,``)}function nf(e){ef=e}function rf(){if(!ef){let e=document.querySelector(`[data-fa-kit-code]`);e&&nf(e.getAttribute(`data-fa-kit-code`)||``)}return ef}var af=`7.3.0`;function of(e,t,n){let r=`solid`;return t===`chisel`&&(r=`chisel-regular`),t===`etch`&&(r=`etch-solid`),t===`graphite`&&(r=`graphite-thin`),t===`jelly`&&(r=`jelly-regular`,n===`duo-regular`&&(r=`jelly-duo-regular`),n===`fill-regular`&&(r=`jelly-fill-regular`)),t===`jelly-duo`&&(r=`jelly-duo-regular`),t===`jelly-fill`&&(r=`jelly-fill-regular`),t===`notdog`&&(n===`solid`&&(r=`notdog-solid`),n===`duo-solid`&&(r=`notdog-duo-solid`)),t===`notdog-duo`&&(r=`notdog-duo-solid`),t===`slab`&&((n===`solid`||n===`regular`)&&(r=`slab-regular`),n===`press-regular`&&(r=`slab-press-regular`)),t===`slab-press`&&(r=`slab-press-regular`),t===`slab-duo`&&(r=`slab-duo-regular`),t===`slab-press-duo`&&(r=`slab-press-duo-regular`),t===`thumbprint`&&(r=`thumbprint-light`),t===`utility`&&(r=`utility-semibold`),t===`utility-duo`&&(r=`utility-duo-semibold`),t===`utility-fill`&&(r=`utility-fill-semibold`),t===`whiteboard`&&(r=`whiteboard-semibold`),t===`mosaic`&&(r=`mosaic-solid`),t===`pixel`&&(r=`pixel-regular`),t===`vellum`&&(r=`vellum-solid`),t===`classic`&&(n===`thin`&&(r=`thin`),n===`light`&&(r=`light`),n===`regular`&&(r=`regular`),n===`solid`&&(r=`solid`)),t===`duotone`&&(n===`thin`&&(r=`duotone-thin`),n===`light`&&(r=`duotone-light`),n===`regular`&&(r=`duotone-regular`),n===`solid`&&(r=`duotone`)),t===`sharp`&&(n===`thin`&&(r=`sharp-thin`),n===`light`&&(r=`sharp-light`),n===`regular`&&(r=`sharp-regular`),n===`solid`&&(r=`sharp-solid`)),t===`sharp-duotone`&&(n===`thin`&&(r=`sharp-duotone-thin`),n===`light`&&(r=`sharp-duotone-light`),n===`regular`&&(r=`sharp-duotone-regular`),n===`solid`&&(r=`sharp-duotone-solid`)),t===`brands`&&(r=`brands`),r}function sf(e,t,n){let r=of(e,t,n),i=tf();if(i)return`${i}/${r}/${e}.svg`;let a=rf();return a.length>0?`https://ka-p.fontawesome.com/releases/v${af}/svgs/${r}/${e}.svg?token=${encodeURIComponent(a)}`:`https://ka-f.fontawesome.com/releases/v${af}/svgs/${r}/${e}.svg`}var cf={name:`default`,resolver:(e,t=`classic`,n=`solid`)=>sf(e,t,n),mutator:(e,t)=>{if(t?.family&&!e.hasAttribute(`data-duotone-initialized`)){let{family:n,variant:r}=t;if(n===`duotone`||n===`sharp-duotone`||n===`notdog-duo`||n===`notdog`&&r===`duo-solid`||n===`jelly-duo`||n===`jelly`&&r===`duo-regular`||n===`utility-duo`||n===`slab-duo`||n===`slab-press-duo`||n===`thumbprint`){let n=[...e.querySelectorAll(`path`)],r=n.find(e=>!e.hasAttribute(`opacity`)),i=n.find(e=>e.hasAttribute(`opacity`));if(!r||!i)return;if(r.setAttribute(`data-duotone-primary`,``),i.setAttribute(`data-duotone-secondary`,``),t.swapOpacity&&r&&i){let e=i.getAttribute(`opacity`)||`0.4`;r.style.setProperty(`--path-opacity`,e),i.style.setProperty(`--path-opacity`,`1`)}e.setAttribute(`data-duotone-initialized`,``)}}}};function lf(e){return`data:image/svg+xml,${encodeURIComponent(e)}`}var uf={solid:{backward:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M236.3 107.1C247.9 96 265 92.9 279.7 99.2C294.4 105.5 304 120 304 136L304 272.3L476.3 107.2C487.9 96 505 92.9 519.7 99.2C534.4 105.5 544 120 544 136L544 504C544 520 534.4 534.5 519.7 540.8C505 547.1 487.9 544 476.3 532.9L304 367.7L304 504C304 520 294.4 534.5 279.7 540.8C265 547.1 247.9 544 236.3 532.9L44.3 348.9C36.5 341.3 32 330.9 32 320C32 309.1 36.5 298.7 44.3 291.1L236.3 107.1z"/></svg>`,"backward-step":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M491 100.8C478.1 93.8 462.3 94.5 450 102.6L192 272.1L192 128C192 110.3 177.7 96 160 96C142.3 96 128 110.3 128 128L128 512C128 529.7 142.3 544 160 544C177.7 544 192 529.7 192 512L192 367.9L450 537.5C462.3 545.6 478 546.3 491 539.3C504 532.3 512 518.8 512 504.1L512 136.1C512 121.4 503.9 107.9 491 100.9z"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"/></svg>`,"chevron-down":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>`,"chevron-left":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/></svg>`,"chevron-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>`,circle:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"/></svg>`,"closed-captioning":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M64 192C64 156.7 92.7 128 128 128L512 128C547.3 128 576 156.7 576 192L576 448C576 483.3 547.3 512 512 512L128 512C92.7 512 64 483.3 64 448L64 192zM216 272L248 272C252.4 272 256 275.6 256 280C256 293.3 266.7 304 280 304C293.3 304 304 293.3 304 280C304 249.1 278.9 224 248 224L216 224C185.1 224 160 249.1 160 280L160 360C160 390.9 185.1 416 216 416L248 416C278.9 416 304 390.9 304 360C304 346.7 293.3 336 280 336C266.7 336 256 346.7 256 360C256 364.4 252.4 368 248 368L216 368C211.6 368 208 364.4 208 360L208 280C208 275.6 211.6 272 216 272zM384 280C384 275.6 387.6 272 392 272L424 272C428.4 272 432 275.6 432 280C432 293.3 442.7 304 456 304C469.3 304 480 293.3 480 280C480 249.1 454.9 224 424 224L392 224C361.1 224 336 249.1 336 280L336 360C336 390.9 361.1 416 392 416L424 416C454.9 416 480 390.9 480 360C480 346.7 469.3 336 456 336C442.7 336 432 346.7 432 360C432 364.4 428.4 368 424 368L392 368C387.6 368 384 364.4 384 360L384 280z"/></svg>`,"closed-captioning-slash":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M39 39.1C48.4 29.7 63.6 29.7 72.9 39.1L161.8 128L512 128C547.3 128 576 156.7 576 192L576 448C576 473.5 561.1 495.4 539.6 505.8L601 567.1C610.4 576.5 610.4 591.7 601 601C591.6 610.3 576.4 610.4 567.1 601L39 73.1C29.7 63.7 29.7 48.5 39 39.1zM384 350.1L384 279.9C384 275.5 387.6 271.9 392 271.9L424 271.9C428.4 271.9 432 275.5 432 279.9C432 293.2 442.7 303.9 456 303.9C469.3 303.9 480 293.2 480 279.9C480 249 454.9 223.9 424 223.9L392 223.9C361.1 223.9 336 249 336 279.9L336 302.1L384 350.1zM445.5 411.6C465.7 403.2 480 383.2 480 359.9C480 346.6 469.3 335.9 456 335.9C442.7 335.9 432 346.6 432 359.9C432 364.3 428.4 367.9 424 367.9L401.8 367.9L445.5 411.6zM162.3 264.1C160.8 269.1 160 274.5 160 280L160 360C160 390.9 185.1 416 216 416L248 416C266.1 416 282.1 407.5 292.4 394.2L410.2 512L128 512C92.7 512 64 483.3 64 448L64 192C64 184.2 65.4 176.7 68 169.8L162.3 264.1zM256.1 357.9C256 358.6 256 359.3 256 360C256 364.4 252.4 368 248 368L216 368C211.6 368 208 364.4 208 360L208 309.8L256.1 357.9z"/></svg>`,compress:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M160 64c0-17.7-14.3-32-32-32S96 46.3 96 64l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"/></svg>`,"ellipsis-vertical":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M320 208C289.1 208 264 182.9 264 152C264 121.1 289.1 96 320 96C350.9 96 376 121.1 376 152C376 182.9 350.9 208 320 208zM320 432C350.9 432 376 457.1 376 488C376 518.9 350.9 544 320 544C289.1 544 264 518.9 264 488C264 457.1 289.1 432 320 432zM376 320C376 350.9 350.9 376 320 376C289.1 376 264 350.9 264 320C264 289.1 289.1 264 320 264C350.9 264 376 289.1 376 320z"/></svg>`,expand:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 96C110.3 96 96 110.3 96 128L96 224C96 241.7 110.3 256 128 256C145.7 256 160 241.7 160 224L160 160L224 160C241.7 160 256 145.7 256 128C256 110.3 241.7 96 224 96L128 96zM160 416C160 398.3 145.7 384 128 384C110.3 384 96 398.3 96 416L96 512C96 529.7 110.3 544 128 544L224 544C241.7 544 256 529.7 256 512C256 494.3 241.7 480 224 480L160 480L160 416zM416 96C398.3 96 384 110.3 384 128C384 145.7 398.3 160 416 160L480 160L480 224C480 241.7 494.3 256 512 256C529.7 256 544 241.7 544 224L544 128C544 110.3 529.7 96 512 96L416 96zM544 416C544 398.3 529.7 384 512 384C494.3 384 480 398.3 480 416L480 480L416 480C398.3 480 384 494.3 384 512C384 529.7 398.3 544 416 544L512 544C529.7 544 544 529.7 544 512L544 416z"/></svg>`,eyedropper:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M341.6 29.2l-101.6 101.6-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4 101.6-101.6c39-39 39-102.2 0-141.1s-102.2-39-141.1 0zM55.4 323.3c-15 15-23.4 35.4-23.4 56.6l0 42.4-26.6 39.9c-8.5 12.7-6.8 29.6 4 40.4s27.7 12.5 40.4 4l39.9-26.6 42.4 0c21.2 0 41.6-8.4 56.6-23.4l109.4-109.4-45.3-45.3-109.4 109.4c-3 3-7.1 4.7-11.3 4.7l-36.1 0 0-36.1c0-4.2 1.7-8.3 4.7-11.3l109.4-109.4-45.3-45.3-109.4 109.4z"/></svg>`,forward:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M403.7 107.1C392.1 96 375 92.9 360.3 99.2C345.6 105.5 336 120 336 136L336 272.3L163.7 107.2C152.1 96 135 92.9 120.3 99.2C105.6 105.5 96 120 96 136L96 504C96 520 105.6 534.5 120.3 540.8C135 547.1 152.1 544 163.7 532.9L336 367.7L336 504C336 520 345.6 534.5 360.3 540.8C375 547.1 392.1 544 403.7 532.9L595.7 348.9C603.6 341.4 608 330.9 608 320C608 309.1 603.5 298.7 595.7 291.1L403.7 107.1z"/></svg>`,file:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 234.5C512 217.5 505.3 201.2 493.3 189.2L386.7 82.7C374.7 70.7 358.5 64 341.5 64L192 64zM453.5 240L360 240C346.7 240 336 229.3 336 216L336 122.5L453.5 240z"/></svg>`,"file-audio":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM389.8 307.7C380.7 301.4 368.3 303.6 362 312.7C355.7 321.8 357.9 334.2 367 340.5C390.9 357.2 406.4 384.8 406.4 416C406.4 447.2 390.8 474.9 367 491.5C357.9 497.8 355.7 510.3 362 519.3C368.3 528.3 380.8 530.6 389.8 524.3C423.9 500.5 446.4 460.8 446.4 416C446.4 371.2 424 331.5 389.8 307.7zM208 376C199.2 376 192 383.2 192 392L192 440C192 448.8 199.2 456 208 456L232 456L259.2 490C262.2 493.8 266.8 496 271.7 496L272 496C280.8 496 288 488.8 288 480L288 352C288 343.2 280.8 336 272 336L271.7 336C266.8 336 262.2 338.2 259.2 342L232 376L208 376zM336 448.2C336 458.9 346.5 466.4 354.9 459.8C367.8 449.5 376 433.7 376 416C376 398.3 367.8 382.5 354.9 372.2C346.5 365.5 336 373.1 336 383.8L336 448.3z"/></svg>`,"file-code":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM282.2 359.6C290.8 349.5 289.7 334.4 279.6 325.8C269.5 317.2 254.4 318.3 245.8 328.4L197.8 384.4C190.1 393.4 190.1 406.6 197.8 415.6L245.8 471.6C254.4 481.7 269.6 482.8 279.6 474.2C289.6 465.6 290.8 450.4 282.2 440.4L247.6 400L282.2 359.6zM394.2 328.4C385.6 318.3 370.4 317.2 360.4 325.8C350.4 334.4 349.2 349.6 357.8 359.6L392.4 400L357.8 440.4C349.2 450.5 350.3 465.6 360.4 474.2C370.5 482.8 385.6 481.7 394.2 471.6L442.2 415.6C449.9 406.6 449.9 393.4 442.2 384.4L394.2 328.4z"/></svg>`,"file-excel":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM292 330.7C284.6 319.7 269.7 316.7 258.7 324C247.7 331.3 244.7 346.3 252 357.3L291.2 416L252 474.7C244.6 485.7 247.6 500.6 258.7 508C269.8 515.4 284.6 512.4 292 501.3L320 459.3L348 501.3C355.4 512.3 370.3 515.3 381.3 508C392.3 500.7 395.3 485.7 388 474.7L348.8 416L388 357.3C395.4 346.3 392.4 331.4 381.3 324C370.2 316.6 355.4 319.6 348 330.7L320 372.7L292 330.7z"/></svg>`,"file-image":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM256 320C256 302.3 241.7 288 224 288C206.3 288 192 302.3 192 320C192 337.7 206.3 352 224 352C241.7 352 256 337.7 256 320zM220.6 512L419.4 512C435.2 512 448 499.2 448 483.4C448 476.1 445.2 469 440.1 463.7L343.3 361.9C337.3 355.6 328.9 352 320.1 352L319.8 352C311 352 302.7 355.6 296.6 361.9L199.9 463.7C194.8 469 192 476.1 192 483.4C192 499.2 204.8 512 220.6 512z"/></svg>`,"file-pdf":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 64C92.7 64 64 92.7 64 128L64 512C64 547.3 92.7 576 128 576L208 576L208 464C208 428.7 236.7 400 272 400L448 400L448 234.5C448 217.5 441.3 201.2 429.3 189.2L322.7 82.7C310.7 70.7 294.5 64 277.5 64L128 64zM389.5 240L296 240C282.7 240 272 229.3 272 216L272 122.5L389.5 240zM272 444C261 444 252 453 252 464L252 592C252 603 261 612 272 612C283 612 292 603 292 592L292 564L304 564C337.1 564 364 537.1 364 504C364 470.9 337.1 444 304 444L272 444zM304 524L292 524L292 484L304 484C315 484 324 493 324 504C324 515 315 524 304 524zM400 444C389 444 380 453 380 464L380 592C380 603 389 612 400 612L432 612C460.7 612 484 588.7 484 560L484 496C484 467.3 460.7 444 432 444L400 444zM420 572L420 484L432 484C438.6 484 444 489.4 444 496L444 560C444 566.6 438.6 572 432 572L420 572zM508 464L508 592C508 603 517 612 528 612C539 612 548 603 548 592L548 548L576 548C587 548 596 539 596 528C596 517 587 508 576 508L548 508L548 484L576 484C587 484 596 475 596 464C596 453 587 444 576 444L528 444C517 444 508 453 508 464z"/></svg>`,"file-powerpoint":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM280 320C266.7 320 256 330.7 256 344L256 488C256 501.3 266.7 512 280 512C293.3 512 304 501.3 304 488L304 464L328 464C367.8 464 400 431.8 400 392C400 352.2 367.8 320 328 320L280 320zM328 416L304 416L304 368L328 368C341.3 368 352 378.7 352 392C352 405.3 341.3 416 328 416z"/></svg>`,"file-video":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM208 368L208 464C208 481.7 222.3 496 240 496L336 496C353.7 496 368 481.7 368 464L368 440L403 475C406.2 478.2 410.5 480 415 480C424.4 480 432 472.4 432 463L432 368.9C432 359.5 424.4 351.9 415 351.9C410.5 351.9 406.2 353.7 403 356.9L368 391.9L368 367.9C368 350.2 353.7 335.9 336 335.9L240 335.9C222.3 335.9 208 350.2 208 367.9z"/></svg>`,"file-word":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM263.4 338.8C260.5 325.9 247.7 317.7 234.8 320.6C221.9 323.5 213.7 336.3 216.6 349.2L248.6 493.2C250.9 503.7 260 511.4 270.8 512C281.6 512.6 291.4 505.9 294.8 495.6L320 419.9L345.2 495.6C348.6 505.8 358.4 512.5 369.2 512C380 511.5 389.1 503.8 391.4 493.2L423.4 349.2C426.3 336.3 418.1 323.4 405.2 320.6C392.3 317.8 379.4 325.9 376.6 338.8L363.4 398.2L342.8 336.4C339.5 326.6 330.4 320 320 320C309.6 320 300.5 326.6 297.2 336.4L276.6 398.2L263.4 338.8z"/></svg>`,"file-zipper":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM192 136C192 149.3 202.7 160 216 160L264 160C277.3 160 288 149.3 288 136C288 122.7 277.3 112 264 112L216 112C202.7 112 192 122.7 192 136zM192 232C192 245.3 202.7 256 216 256L264 256C277.3 256 288 245.3 288 232C288 218.7 277.3 208 264 208L216 208C202.7 208 192 218.7 192 232zM256 304L224 304C206.3 304 192 318.3 192 336L192 384C192 410.5 213.5 432 240 432C266.5 432 288 410.5 288 384L288 336C288 318.3 273.7 304 256 304zM240 368C248.8 368 256 375.2 256 384C256 392.8 248.8 400 240 400C231.2 400 224 392.8 224 384C224 375.2 231.2 368 240 368z"/></svg>`,"forward-step":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M21 36.8c12.9-7 28.7-6.3 41 1.8L320 208.1 320 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 384c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-144.1-258 169.6c-12.3 8.1-28 8.8-41 1.8S0 454.7 0 440L0 72C0 57.3 8.1 43.8 21 36.8z"/></svg>`,gauge:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm320 96c0-26.9-16.5-49.9-40-59.3L280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 172.7c-23.5 9.5-40 32.5-40 59.3 0 35.3 28.7 64 64 64s64-28.7 64-64zM144 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm-16 80a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM400 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>`,gear:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M259.1 73.5C262.1 58.7 275.2 48 290.4 48L350.2 48C365.4 48 378.5 58.7 381.5 73.5L396 143.5C410.1 149.5 423.3 157.2 435.3 166.3L503.1 143.8C517.5 139 533.3 145 540.9 158.2L570.8 210C578.4 223.2 575.7 239.8 564.3 249.9L511 297.3C511.9 304.7 512.3 312.3 512.3 320C512.3 327.7 511.8 335.3 511 342.7L564.4 390.2C575.8 400.3 578.4 417 570.9 430.1L541 481.9C533.4 495 517.6 501.1 503.2 496.3L435.4 473.8C423.3 482.9 410.1 490.5 396.1 496.6L381.7 566.5C378.6 581.4 365.5 592 350.4 592L290.6 592C275.4 592 262.3 581.3 259.3 566.5L244.9 496.6C230.8 490.6 217.7 482.9 205.6 473.8L137.5 496.3C123.1 501.1 107.3 495.1 99.7 481.9L69.8 430.1C62.2 416.9 64.9 400.3 76.3 390.2L129.7 342.7C128.8 335.3 128.4 327.7 128.4 320C128.4 312.3 128.9 304.7 129.7 297.3L76.3 249.8C64.9 239.7 62.3 223 69.8 209.9L99.7 158.1C107.3 144.9 123.1 138.9 137.5 143.7L205.3 166.2C217.4 157.1 230.6 149.5 244.6 143.4L259.1 73.5zM320.3 400C364.5 399.8 400.2 363.9 400 319.7C399.8 275.5 363.9 239.8 319.7 240C275.5 240.2 239.8 276.1 240 320.3C240.2 364.5 276.1 400.2 320.3 400z"/></svg>`,"grip-vertical":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z"/></svg>`,indeterminate:`<svg part="indeterminate-icon" class="icon" viewBox="0 0 16 16"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round"><g stroke="currentColor" stroke-width="2"><g transform="translate(2.285714 6.857143)"><path d="M10.2857143,1.14285714 L1.14285714,1.14285714"/></g></g></g></svg>`,minus:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"/></svg>`,pause:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M48 32C21.5 32 0 53.5 0 80L0 432c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48L48 32zm224 0c-26.5 0-48 21.5-48 48l0 352c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48l-64 0z"/></svg>`,"picture-in-picture":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M448 32c35.3 0 64 28.7 64 64l0 112-64 0 0-112-384 0 0 320 144 0 0 64-144 0-6.5-.3c-30.1-3.1-54.1-27-57.1-57.1L0 416 0 96C0 62.9 25.2 35.6 57.5 32.3L64 32 448 32zm16 224c26.5 0 48 21.5 48 48l0 128c0 26.5-21.5 48-48 48l-160 0c-26.5 0-48-21.5-48-48l0-128c0-26.5 21.5-48 48-48l160 0z"/></svg>`,play:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z"/></svg>`,"play-circle":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"/></svg>`,plus:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M352 128C352 110.3 337.7 96 320 96C302.3 96 288 110.3 288 128L288 288L128 288C110.3 288 96 302.3 96 320C96 337.7 110.3 352 128 352L288 352L288 512C288 529.7 302.3 544 320 544C337.7 544 352 529.7 352 512L352 352L512 352C529.7 352 544 337.7 544 320C544 302.3 529.7 288 512 288L352 288L352 128z"/></svg>`,star:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"/></svg>`,upload:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M352 173.3L352 384C352 401.7 337.7 416 320 416C302.3 416 288 401.7 288 384L288 173.3L246.6 214.7C234.1 227.2 213.8 227.2 201.3 214.7C188.8 202.2 188.8 181.9 201.3 169.4L297.3 73.4C309.8 60.9 330.1 60.9 342.6 73.4L438.6 169.4C451.1 181.9 451.1 202.2 438.6 214.7C426.1 227.2 405.8 227.2 393.3 214.7L352 173.3zM320 464C364.2 464 400 428.2 400 384L480 384C515.3 384 544 412.7 544 448L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 448C96 412.7 124.7 384 160 384L240 384C240 428.2 275.8 464 320 464zM464 488C477.3 488 488 477.3 488 464C488 450.7 477.3 440 464 440C450.7 440 440 450.7 440 464C440 477.3 450.7 488 464 488z"/></svg>`,user:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"/></svg>`,volume:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM441.1 107c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C443.3 170.7 464 210.9 464 256s-20.7 85.3-53.2 111.8c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5c43.2-35.2 70.9-88.9 70.9-149s-27.7-113.8-70.9-149zm-60.5 74.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C361.1 227.6 368 241 368 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C402.1 312.9 416 286.1 416 256s-13.9-56.9-35.5-74.5z"/></svg>`,"volume-low":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM380.6 181.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C361.1 227.6 368 241 368 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C402.1 312.9 416 286.1 416 256s-13.9-56.9-35.5-74.5z"/></svg>`,"volume-xmark":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM367 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"/></svg>`,xmark:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"/></svg>`},regular:{calendar:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M216 64C229.3 64 240 74.7 240 88L240 128L400 128L400 88C400 74.7 410.7 64 424 64C437.3 64 448 74.7 448 88L448 128L480 128C515.3 128 544 156.7 544 192L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 192C96 156.7 124.7 128 160 128L192 128L192 88C192 74.7 202.7 64 216 64zM216 176L160 176C151.2 176 144 183.2 144 192L144 240L496 240L496 192C496 183.2 488.8 176 480 176L216 176zM144 288L144 480C144 488.8 151.2 496 160 496L480 496C488.8 496 496 488.8 496 480L496 288L144 288z"/></svg>`,"circle-question":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm256-80c-17.7 0-32 14.3-32 32 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-44.2 35.8-80 80-80s80 35.8 80 80c0 47.2-36 67.2-56 74.5l0 3.8c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-8.1c0-20.5 14.8-35.2 30.1-40.2 6.4-2.1 13.2-5.5 18.2-10.3 4.3-4.2 7.7-10 7.7-19.6 0-17.7-14.3-32-32-32zM224 368a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/></svg>`,"circle-xmark":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c-9.4 9.4-9.4 24.6 0 33.9l55 55-55 55c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55 55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-55-55 55-55c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55-55-55c-9.4-9.4-24.6-9.4-33.9 0z"/></svg>`,clock:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112C434.9 112 528 205.1 528 320zM64 320C64 461.4 178.6 576 320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320zM296 184L296 320C296 328 300 335.5 306.7 340L402.7 404C413.7 411.4 428.6 408.4 436 397.3C443.4 386.2 440.4 371.4 429.3 364L344 307.2L344 184C344 170.7 333.3 160 320 160C306.7 160 296 170.7 296 184z"/></svg>`,copy:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l58.5 58.5c3 3 4.7 7.1 4.7 11.3L400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-197.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-48 0 0 16c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l16 0 0-48-16 0z"/></svg>`,eye:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M288 80C222.8 80 169.2 109.6 128.1 147.7 89.6 183.5 63 226 49.4 256 63 286 89.6 328.5 128.1 364.3 169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256 513 226 486.4 183.5 447.9 147.7 406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1 3.3 7.9 3.3 16.7 0 24.6-14.9 35.7-46.2 87.7-93 131.1-47.1 43.7-111.8 80.6-192.6 80.6S142.5 443.2 95.4 399.4c-46.8-43.5-78.1-95.4-93-131.1-3.3-7.9-3.3-16.7 0-24.6 14.9-35.7 46.2-87.7 93-131.1zM288 336c44.2 0 80-35.8 80-80 0-29.6-16.1-55.5-40-69.3-1.4 59.7-49.6 107.9-109.3 109.3 13.8 23.9 39.7 40 69.3 40zm-79.6-88.4c2.5 .3 5 .4 7.6 .4 35.3 0 64-28.7 64-64 0-2.6-.2-5.1-.4-7.6-37.4 3.9-67.2 33.7-71.1 71.1zm45.6-115c10.8-3 22.2-4.5 33.9-4.5 8.8 0 17.5 .9 25.8 2.6 .3 .1 .5 .1 .8 .2 57.9 12.2 101.4 63.7 101.4 125.2 0 70.7-57.3 128-128 128-61.6 0-113-43.5-125.2-101.4-1.8-8.6-2.8-17.5-2.8-26.6 0-11 1.4-21.8 4-32 .2-.7 .3-1.3 .5-1.9 11.9-43.4 46.1-77.6 89.5-89.5z"/></svg>`,"eye-slash":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM176.9 111.1c32.1-18.9 69.2-31.1 111.1-31.1 65.2 0 118.8 29.6 159.9 67.7 38.5 35.7 65.1 78.3 78.6 108.3-13.6 30-40.2 72.5-78.6 108.3-3.1 2.8-6.2 5.6-9.4 8.4L393.8 328c14-20.5 22.2-45.3 22.2-72 0-70.7-57.3-128-128-128-26.7 0-51.5 8.2-72 22.2l-39.1-39.1zm182 182l-108-108c11.1-5.8 23.7-9.1 37.1-9.1 44.2 0 80 35.8 80 80 0 13.4-3.3 26-9.1 37.1zM103.4 173.2l-34-34c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6L352.2 422c-20 6.4-41.4 10-64.2 10-65.2 0-118.8-29.6-159.9-67.7-38.5-35.7-65.1-78.3-78.6-108.3 10.4-23.1 28.6-53.6 54-82.8z"/></svg>`,star:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z"/></svg>`}},df={name:`system`,resolver:(e,t=`classic`,n=`solid`)=>{let r=uf[n][e]??uf.regular[e]??uf.regular[`circle-question`];return r?lf(r):``}},ff=`classic`,pf=[cf,df],mf=new Set;function hf(e){mf.add(e)}function gf(e){mf.delete(e)}function _f(e){return pf.find(t=>t.name===e)}function vf(){return ff}var{I:yf}=Ge,bf=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,xf=Symbol(),Sf=Symbol(),Cf,wf=new Map,Tf=class extends Kr{constructor(){super(...arguments),this.svg=null,this.autoWidth=!1,this.swapOpacity=!1,this.label=``,this.library=`default`,this.rotate=0,this.resolveIcon=async(e,t)=>{let n;if(t?.spriteSheet){this.hasUpdated||await this.updateComplete,this.svg=M`<svg part="svg">
1595
+ `,Jf=``,Yf=``;function Xf(){return Jf.replace(/\/$/,``)}function Zf(e){Yf=e}function Qf(){if(!Yf){let e=document.querySelector(`[data-fa-kit-code]`);e&&Zf(e.getAttribute(`data-fa-kit-code`)||``)}return Yf}var $f=`7.3.0`;function ep(e,t,n){let r=`solid`;return t===`chisel`&&(r=`chisel-regular`),t===`etch`&&(r=`etch-solid`),t===`graphite`&&(r=`graphite-thin`),t===`jelly`&&(r=`jelly-regular`,n===`duo-regular`&&(r=`jelly-duo-regular`),n===`fill-regular`&&(r=`jelly-fill-regular`)),t===`jelly-duo`&&(r=`jelly-duo-regular`),t===`jelly-fill`&&(r=`jelly-fill-regular`),t===`notdog`&&(n===`solid`&&(r=`notdog-solid`),n===`duo-solid`&&(r=`notdog-duo-solid`)),t===`notdog-duo`&&(r=`notdog-duo-solid`),t===`slab`&&((n===`solid`||n===`regular`)&&(r=`slab-regular`),n===`press-regular`&&(r=`slab-press-regular`)),t===`slab-press`&&(r=`slab-press-regular`),t===`slab-duo`&&(r=`slab-duo-regular`),t===`slab-press-duo`&&(r=`slab-press-duo-regular`),t===`thumbprint`&&(r=`thumbprint-light`),t===`utility`&&(r=`utility-semibold`),t===`utility-duo`&&(r=`utility-duo-semibold`),t===`utility-fill`&&(r=`utility-fill-semibold`),t===`whiteboard`&&(r=`whiteboard-semibold`),t===`mosaic`&&(r=`mosaic-solid`),t===`pixel`&&(r=`pixel-regular`),t===`vellum`&&(r=`vellum-solid`),t===`classic`&&(n===`thin`&&(r=`thin`),n===`light`&&(r=`light`),n===`regular`&&(r=`regular`),n===`solid`&&(r=`solid`)),t===`duotone`&&(n===`thin`&&(r=`duotone-thin`),n===`light`&&(r=`duotone-light`),n===`regular`&&(r=`duotone-regular`),n===`solid`&&(r=`duotone`)),t===`sharp`&&(n===`thin`&&(r=`sharp-thin`),n===`light`&&(r=`sharp-light`),n===`regular`&&(r=`sharp-regular`),n===`solid`&&(r=`sharp-solid`)),t===`sharp-duotone`&&(n===`thin`&&(r=`sharp-duotone-thin`),n===`light`&&(r=`sharp-duotone-light`),n===`regular`&&(r=`sharp-duotone-regular`),n===`solid`&&(r=`sharp-duotone-solid`)),t===`brands`&&(r=`brands`),r}function tp(e,t,n){let r=ep(e,t,n),i=Xf();if(i)return`${i}/${r}/${e}.svg`;let a=Qf();return a.length>0?`https://ka-p.fontawesome.com/releases/v${$f}/svgs/${r}/${e}.svg?token=${encodeURIComponent(a)}`:`https://ka-f.fontawesome.com/releases/v${$f}/svgs/${r}/${e}.svg`}var np={name:`default`,resolver:(e,t=`classic`,n=`solid`)=>tp(e,t,n),mutator:(e,t)=>{if(e.hasAttribute(`fill`)||e.setAttribute(`fill`,`currentColor`),t?.family&&!e.hasAttribute(`data-duotone-initialized`)){let{family:n,variant:r}=t;if(n===`duotone`||n===`sharp-duotone`||n===`notdog-duo`||n===`notdog`&&r===`duo-solid`||n===`jelly-duo`||n===`jelly`&&r===`duo-regular`||n===`utility-duo`||n===`slab-duo`||n===`slab-press-duo`||n===`thumbprint`){let n=[...e.querySelectorAll(`path`)],r=n.find(e=>!e.hasAttribute(`opacity`)),i=n.find(e=>e.hasAttribute(`opacity`));if(!r||!i)return;if(r.setAttribute(`data-duotone-primary`,``),i.setAttribute(`data-duotone-secondary`,``),t.swapOpacity&&r&&i){let e=i.getAttribute(`opacity`)||`0.4`;r.style.setProperty(`--path-opacity`,e),i.style.setProperty(`--path-opacity`,`1`)}e.setAttribute(`data-duotone-initialized`,``)}}}};function rp(e){return`data:image/svg+xml,${encodeURIComponent(e)}`}var ip={solid:{backward:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M236.3 107.1C247.9 96 265 92.9 279.7 99.2C294.4 105.5 304 120 304 136L304 272.3L476.3 107.2C487.9 96 505 92.9 519.7 99.2C534.4 105.5 544 120 544 136L544 504C544 520 534.4 534.5 519.7 540.8C505 547.1 487.9 544 476.3 532.9L304 367.7L304 504C304 520 294.4 534.5 279.7 540.8C265 547.1 247.9 544 236.3 532.9L44.3 348.9C36.5 341.3 32 330.9 32 320C32 309.1 36.5 298.7 44.3 291.1L236.3 107.1z"/></svg>`,"backward-step":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M491 100.8C478.1 93.8 462.3 94.5 450 102.6L192 272.1L192 128C192 110.3 177.7 96 160 96C142.3 96 128 110.3 128 128L128 512C128 529.7 142.3 544 160 544C177.7 544 192 529.7 192 512L192 367.9L450 537.5C462.3 545.6 478 546.3 491 539.3C504 532.3 512 518.8 512 504.1L512 136.1C512 121.4 503.9 107.9 491 100.9z"/></svg>`,"angles-left":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M77.3 256 214.7 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256zm192 0L406.7 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L269.3 256z"/></svg>`,"angles-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M434.7 256 297.3 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L434.7 256zm-192 0L105.3 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256z"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"/></svg>`,"chevron-down":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>`,"chevron-left":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/></svg>`,"chevron-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>`,circle:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"/></svg>`,"closed-captioning":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M64 192C64 156.7 92.7 128 128 128L512 128C547.3 128 576 156.7 576 192L576 448C576 483.3 547.3 512 512 512L128 512C92.7 512 64 483.3 64 448L64 192zM216 272L248 272C252.4 272 256 275.6 256 280C256 293.3 266.7 304 280 304C293.3 304 304 293.3 304 280C304 249.1 278.9 224 248 224L216 224C185.1 224 160 249.1 160 280L160 360C160 390.9 185.1 416 216 416L248 416C278.9 416 304 390.9 304 360C304 346.7 293.3 336 280 336C266.7 336 256 346.7 256 360C256 364.4 252.4 368 248 368L216 368C211.6 368 208 364.4 208 360L208 280C208 275.6 211.6 272 216 272zM384 280C384 275.6 387.6 272 392 272L424 272C428.4 272 432 275.6 432 280C432 293.3 442.7 304 456 304C469.3 304 480 293.3 480 280C480 249.1 454.9 224 424 224L392 224C361.1 224 336 249.1 336 280L336 360C336 390.9 361.1 416 392 416L424 416C454.9 416 480 390.9 480 360C480 346.7 469.3 336 456 336C442.7 336 432 346.7 432 360C432 364.4 428.4 368 424 368L392 368C387.6 368 384 364.4 384 360L384 280z"/></svg>`,"closed-captioning-slash":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M39 39.1C48.4 29.7 63.6 29.7 72.9 39.1L161.8 128L512 128C547.3 128 576 156.7 576 192L576 448C576 473.5 561.1 495.4 539.6 505.8L601 567.1C610.4 576.5 610.4 591.7 601 601C591.6 610.3 576.4 610.4 567.1 601L39 73.1C29.7 63.7 29.7 48.5 39 39.1zM384 350.1L384 279.9C384 275.5 387.6 271.9 392 271.9L424 271.9C428.4 271.9 432 275.5 432 279.9C432 293.2 442.7 303.9 456 303.9C469.3 303.9 480 293.2 480 279.9C480 249 454.9 223.9 424 223.9L392 223.9C361.1 223.9 336 249 336 279.9L336 302.1L384 350.1zM445.5 411.6C465.7 403.2 480 383.2 480 359.9C480 346.6 469.3 335.9 456 335.9C442.7 335.9 432 346.6 432 359.9C432 364.3 428.4 367.9 424 367.9L401.8 367.9L445.5 411.6zM162.3 264.1C160.8 269.1 160 274.5 160 280L160 360C160 390.9 185.1 416 216 416L248 416C266.1 416 282.1 407.5 292.4 394.2L410.2 512L128 512C92.7 512 64 483.3 64 448L64 192C64 184.2 65.4 176.7 68 169.8L162.3 264.1zM256.1 357.9C256 358.6 256 359.3 256 360C256 364.4 252.4 368 248 368L216 368C211.6 368 208 364.4 208 360L208 309.8L256.1 357.9z"/></svg>`,compress:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M160 64c0-17.7-14.3-32-32-32S96 46.3 96 64l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"/></svg>`,ellipsis:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M96 320C96 289.1 121.1 264 152 264C182.9 264 208 289.1 208 320C208 350.9 182.9 376 152 376C121.1 376 96 350.9 96 320zM264 320C264 289.1 289.1 264 320 264C350.9 264 376 289.1 376 320C376 350.9 350.9 376 320 376C289.1 376 264 350.9 264 320zM488 264C518.9 264 544 289.1 544 320C544 350.9 518.9 376 488 376C457.1 376 432 350.9 432 320C432 289.1 457.1 264 488 264z"/></svg>`,"ellipsis-vertical":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M320 208C289.1 208 264 182.9 264 152C264 121.1 289.1 96 320 96C350.9 96 376 121.1 376 152C376 182.9 350.9 208 320 208zM320 432C350.9 432 376 457.1 376 488C376 518.9 350.9 544 320 544C289.1 544 264 518.9 264 488C264 457.1 289.1 432 320 432zM376 320C376 350.9 350.9 376 320 376C289.1 376 264 350.9 264 320C264 289.1 289.1 264 320 264C350.9 264 376 289.1 376 320z"/></svg>`,expand:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 96C110.3 96 96 110.3 96 128L96 224C96 241.7 110.3 256 128 256C145.7 256 160 241.7 160 224L160 160L224 160C241.7 160 256 145.7 256 128C256 110.3 241.7 96 224 96L128 96zM160 416C160 398.3 145.7 384 128 384C110.3 384 96 398.3 96 416L96 512C96 529.7 110.3 544 128 544L224 544C241.7 544 256 529.7 256 512C256 494.3 241.7 480 224 480L160 480L160 416zM416 96C398.3 96 384 110.3 384 128C384 145.7 398.3 160 416 160L480 160L480 224C480 241.7 494.3 256 512 256C529.7 256 544 241.7 544 224L544 128C544 110.3 529.7 96 512 96L416 96zM544 416C544 398.3 529.7 384 512 384C494.3 384 480 398.3 480 416L480 480L416 480C398.3 480 384 494.3 384 512C384 529.7 398.3 544 416 544L512 544C529.7 544 544 529.7 544 512L544 416z"/></svg>`,eyedropper:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M341.6 29.2l-101.6 101.6-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4 101.6-101.6c39-39 39-102.2 0-141.1s-102.2-39-141.1 0zM55.4 323.3c-15 15-23.4 35.4-23.4 56.6l0 42.4-26.6 39.9c-8.5 12.7-6.8 29.6 4 40.4s27.7 12.5 40.4 4l39.9-26.6 42.4 0c21.2 0 41.6-8.4 56.6-23.4l109.4-109.4-45.3-45.3-109.4 109.4c-3 3-7.1 4.7-11.3 4.7l-36.1 0 0-36.1c0-4.2 1.7-8.3 4.7-11.3l109.4-109.4-45.3-45.3-109.4 109.4z"/></svg>`,forward:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M403.7 107.1C392.1 96 375 92.9 360.3 99.2C345.6 105.5 336 120 336 136L336 272.3L163.7 107.2C152.1 96 135 92.9 120.3 99.2C105.6 105.5 96 120 96 136L96 504C96 520 105.6 534.5 120.3 540.8C135 547.1 152.1 544 163.7 532.9L336 367.7L336 504C336 520 345.6 534.5 360.3 540.8C375 547.1 392.1 544 403.7 532.9L595.7 348.9C603.6 341.4 608 330.9 608 320C608 309.1 603.5 298.7 595.7 291.1L403.7 107.1z"/></svg>`,file:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 234.5C512 217.5 505.3 201.2 493.3 189.2L386.7 82.7C374.7 70.7 358.5 64 341.5 64L192 64zM453.5 240L360 240C346.7 240 336 229.3 336 216L336 122.5L453.5 240z"/></svg>`,"file-audio":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM389.8 307.7C380.7 301.4 368.3 303.6 362 312.7C355.7 321.8 357.9 334.2 367 340.5C390.9 357.2 406.4 384.8 406.4 416C406.4 447.2 390.8 474.9 367 491.5C357.9 497.8 355.7 510.3 362 519.3C368.3 528.3 380.8 530.6 389.8 524.3C423.9 500.5 446.4 460.8 446.4 416C446.4 371.2 424 331.5 389.8 307.7zM208 376C199.2 376 192 383.2 192 392L192 440C192 448.8 199.2 456 208 456L232 456L259.2 490C262.2 493.8 266.8 496 271.7 496L272 496C280.8 496 288 488.8 288 480L288 352C288 343.2 280.8 336 272 336L271.7 336C266.8 336 262.2 338.2 259.2 342L232 376L208 376zM336 448.2C336 458.9 346.5 466.4 354.9 459.8C367.8 449.5 376 433.7 376 416C376 398.3 367.8 382.5 354.9 372.2C346.5 365.5 336 373.1 336 383.8L336 448.3z"/></svg>`,"file-code":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM282.2 359.6C290.8 349.5 289.7 334.4 279.6 325.8C269.5 317.2 254.4 318.3 245.8 328.4L197.8 384.4C190.1 393.4 190.1 406.6 197.8 415.6L245.8 471.6C254.4 481.7 269.6 482.8 279.6 474.2C289.6 465.6 290.8 450.4 282.2 440.4L247.6 400L282.2 359.6zM394.2 328.4C385.6 318.3 370.4 317.2 360.4 325.8C350.4 334.4 349.2 349.6 357.8 359.6L392.4 400L357.8 440.4C349.2 450.5 350.3 465.6 360.4 474.2C370.5 482.8 385.6 481.7 394.2 471.6L442.2 415.6C449.9 406.6 449.9 393.4 442.2 384.4L394.2 328.4z"/></svg>`,"file-excel":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM292 330.7C284.6 319.7 269.7 316.7 258.7 324C247.7 331.3 244.7 346.3 252 357.3L291.2 416L252 474.7C244.6 485.7 247.6 500.6 258.7 508C269.8 515.4 284.6 512.4 292 501.3L320 459.3L348 501.3C355.4 512.3 370.3 515.3 381.3 508C392.3 500.7 395.3 485.7 388 474.7L348.8 416L388 357.3C395.4 346.3 392.4 331.4 381.3 324C370.2 316.6 355.4 319.6 348 330.7L320 372.7L292 330.7z"/></svg>`,"file-image":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM256 320C256 302.3 241.7 288 224 288C206.3 288 192 302.3 192 320C192 337.7 206.3 352 224 352C241.7 352 256 337.7 256 320zM220.6 512L419.4 512C435.2 512 448 499.2 448 483.4C448 476.1 445.2 469 440.1 463.7L343.3 361.9C337.3 355.6 328.9 352 320.1 352L319.8 352C311 352 302.7 355.6 296.6 361.9L199.9 463.7C194.8 469 192 476.1 192 483.4C192 499.2 204.8 512 220.6 512z"/></svg>`,"file-pdf":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 64C92.7 64 64 92.7 64 128L64 512C64 547.3 92.7 576 128 576L208 576L208 464C208 428.7 236.7 400 272 400L448 400L448 234.5C448 217.5 441.3 201.2 429.3 189.2L322.7 82.7C310.7 70.7 294.5 64 277.5 64L128 64zM389.5 240L296 240C282.7 240 272 229.3 272 216L272 122.5L389.5 240zM272 444C261 444 252 453 252 464L252 592C252 603 261 612 272 612C283 612 292 603 292 592L292 564L304 564C337.1 564 364 537.1 364 504C364 470.9 337.1 444 304 444L272 444zM304 524L292 524L292 484L304 484C315 484 324 493 324 504C324 515 315 524 304 524zM400 444C389 444 380 453 380 464L380 592C380 603 389 612 400 612L432 612C460.7 612 484 588.7 484 560L484 496C484 467.3 460.7 444 432 444L400 444zM420 572L420 484L432 484C438.6 484 444 489.4 444 496L444 560C444 566.6 438.6 572 432 572L420 572zM508 464L508 592C508 603 517 612 528 612C539 612 548 603 548 592L548 548L576 548C587 548 596 539 596 528C596 517 587 508 576 508L548 508L548 484L576 484C587 484 596 475 596 464C596 453 587 444 576 444L528 444C517 444 508 453 508 464z"/></svg>`,"file-powerpoint":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM280 320C266.7 320 256 330.7 256 344L256 488C256 501.3 266.7 512 280 512C293.3 512 304 501.3 304 488L304 464L328 464C367.8 464 400 431.8 400 392C400 352.2 367.8 320 328 320L280 320zM328 416L304 416L304 368L328 368C341.3 368 352 378.7 352 392C352 405.3 341.3 416 328 416z"/></svg>`,"file-video":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM208 368L208 464C208 481.7 222.3 496 240 496L336 496C353.7 496 368 481.7 368 464L368 440L403 475C406.2 478.2 410.5 480 415 480C424.4 480 432 472.4 432 463L432 368.9C432 359.5 424.4 351.9 415 351.9C410.5 351.9 406.2 353.7 403 356.9L368 391.9L368 367.9C368 350.2 353.7 335.9 336 335.9L240 335.9C222.3 335.9 208 350.2 208 367.9z"/></svg>`,"file-word":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM263.4 338.8C260.5 325.9 247.7 317.7 234.8 320.6C221.9 323.5 213.7 336.3 216.6 349.2L248.6 493.2C250.9 503.7 260 511.4 270.8 512C281.6 512.6 291.4 505.9 294.8 495.6L320 419.9L345.2 495.6C348.6 505.8 358.4 512.5 369.2 512C380 511.5 389.1 503.8 391.4 493.2L423.4 349.2C426.3 336.3 418.1 323.4 405.2 320.6C392.3 317.8 379.4 325.9 376.6 338.8L363.4 398.2L342.8 336.4C339.5 326.6 330.4 320 320 320C309.6 320 300.5 326.6 297.2 336.4L276.6 398.2L263.4 338.8z"/></svg>`,"file-zipper":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM192 136C192 149.3 202.7 160 216 160L264 160C277.3 160 288 149.3 288 136C288 122.7 277.3 112 264 112L216 112C202.7 112 192 122.7 192 136zM192 232C192 245.3 202.7 256 216 256L264 256C277.3 256 288 245.3 288 232C288 218.7 277.3 208 264 208L216 208C202.7 208 192 218.7 192 232zM256 304L224 304C206.3 304 192 318.3 192 336L192 384C192 410.5 213.5 432 240 432C266.5 432 288 410.5 288 384L288 336C288 318.3 273.7 304 256 304zM240 368C248.8 368 256 375.2 256 384C256 392.8 248.8 400 240 400C231.2 400 224 392.8 224 384C224 375.2 231.2 368 240 368z"/></svg>`,"forward-step":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M21 36.8c12.9-7 28.7-6.3 41 1.8L320 208.1 320 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 384c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-144.1-258 169.6c-12.3 8.1-28 8.8-41 1.8S0 454.7 0 440L0 72C0 57.3 8.1 43.8 21 36.8z"/></svg>`,gauge:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm320 96c0-26.9-16.5-49.9-40-59.3L280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 172.7c-23.5 9.5-40 32.5-40 59.3 0 35.3 28.7 64 64 64s64-28.7 64-64zM144 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm-16 80a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM400 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>`,gear:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M259.1 73.5C262.1 58.7 275.2 48 290.4 48L350.2 48C365.4 48 378.5 58.7 381.5 73.5L396 143.5C410.1 149.5 423.3 157.2 435.3 166.3L503.1 143.8C517.5 139 533.3 145 540.9 158.2L570.8 210C578.4 223.2 575.7 239.8 564.3 249.9L511 297.3C511.9 304.7 512.3 312.3 512.3 320C512.3 327.7 511.8 335.3 511 342.7L564.4 390.2C575.8 400.3 578.4 417 570.9 430.1L541 481.9C533.4 495 517.6 501.1 503.2 496.3L435.4 473.8C423.3 482.9 410.1 490.5 396.1 496.6L381.7 566.5C378.6 581.4 365.5 592 350.4 592L290.6 592C275.4 592 262.3 581.3 259.3 566.5L244.9 496.6C230.8 490.6 217.7 482.9 205.6 473.8L137.5 496.3C123.1 501.1 107.3 495.1 99.7 481.9L69.8 430.1C62.2 416.9 64.9 400.3 76.3 390.2L129.7 342.7C128.8 335.3 128.4 327.7 128.4 320C128.4 312.3 128.9 304.7 129.7 297.3L76.3 249.8C64.9 239.7 62.3 223 69.8 209.9L99.7 158.1C107.3 144.9 123.1 138.9 137.5 143.7L205.3 166.2C217.4 157.1 230.6 149.5 244.6 143.4L259.1 73.5zM320.3 400C364.5 399.8 400.2 363.9 400 319.7C399.8 275.5 363.9 239.8 319.7 240C275.5 240.2 239.8 276.1 240 320.3C240.2 364.5 276.1 400.2 320.3 400z"/></svg>`,"grip-vertical":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z"/></svg>`,indeterminate:`<svg part="indeterminate-icon" class="icon" viewBox="0 0 16 16"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round"><g stroke="currentColor" stroke-width="2"><g transform="translate(2.285714 6.857143)"><path d="M10.2857143,1.14285714 L1.14285714,1.14285714"/></g></g></g></svg>`,minus:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"/></svg>`,pause:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M48 32C21.5 32 0 53.5 0 80L0 432c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48L48 32zm224 0c-26.5 0-48 21.5-48 48l0 352c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48l-64 0z"/></svg>`,"picture-in-picture":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M448 32c35.3 0 64 28.7 64 64l0 112-64 0 0-112-384 0 0 320 144 0 0 64-144 0-6.5-.3c-30.1-3.1-54.1-27-57.1-57.1L0 416 0 96C0 62.9 25.2 35.6 57.5 32.3L64 32 448 32zm16 224c26.5 0 48 21.5 48 48l0 128c0 26.5-21.5 48-48 48l-160 0c-26.5 0-48-21.5-48-48l0-128c0-26.5 21.5-48 48-48l160 0z"/></svg>`,play:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z"/></svg>`,"play-circle":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"/></svg>`,plus:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M352 128C352 110.3 337.7 96 320 96C302.3 96 288 110.3 288 128L288 288L128 288C110.3 288 96 302.3 96 320C96 337.7 110.3 352 128 352L288 352L288 512C288 529.7 302.3 544 320 544C337.7 544 352 529.7 352 512L352 352L512 352C529.7 352 544 337.7 544 320C544 302.3 529.7 288 512 288L352 288L352 128z"/></svg>`,star:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"/></svg>`,upload:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M352 173.3L352 384C352 401.7 337.7 416 320 416C302.3 416 288 401.7 288 384L288 173.3L246.6 214.7C234.1 227.2 213.8 227.2 201.3 214.7C188.8 202.2 188.8 181.9 201.3 169.4L297.3 73.4C309.8 60.9 330.1 60.9 342.6 73.4L438.6 169.4C451.1 181.9 451.1 202.2 438.6 214.7C426.1 227.2 405.8 227.2 393.3 214.7L352 173.3zM320 464C364.2 464 400 428.2 400 384L480 384C515.3 384 544 412.7 544 448L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 448C96 412.7 124.7 384 160 384L240 384C240 428.2 275.8 464 320 464zM464 488C477.3 488 488 477.3 488 464C488 450.7 477.3 440 464 440C450.7 440 440 450.7 440 464C440 477.3 450.7 488 464 488z"/></svg>`,user:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"/></svg>`,volume:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM441.1 107c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C443.3 170.7 464 210.9 464 256s-20.7 85.3-53.2 111.8c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5c43.2-35.2 70.9-88.9 70.9-149s-27.7-113.8-70.9-149zm-60.5 74.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C361.1 227.6 368 241 368 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C402.1 312.9 416 286.1 416 256s-13.9-56.9-35.5-74.5z"/></svg>`,"volume-low":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM380.6 181.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C361.1 227.6 368 241 368 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C402.1 312.9 416 286.1 416 256s-13.9-56.9-35.5-74.5z"/></svg>`,"volume-xmark":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="currentColor" d="M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM367 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"/></svg>`,xmark:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"/></svg>`},regular:{calendar:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M216 64C229.3 64 240 74.7 240 88L240 128L400 128L400 88C400 74.7 410.7 64 424 64C437.3 64 448 74.7 448 88L448 128L480 128C515.3 128 544 156.7 544 192L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 192C96 156.7 124.7 128 160 128L192 128L192 88C192 74.7 202.7 64 216 64zM216 176L160 176C151.2 176 144 183.2 144 192L144 240L496 240L496 192C496 183.2 488.8 176 480 176L216 176zM144 288L144 480C144 488.8 151.2 496 160 496L480 496C488.8 496 496 488.8 496 480L496 288L144 288z"/></svg>`,"circle-question":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm256-80c-17.7 0-32 14.3-32 32 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-44.2 35.8-80 80-80s80 35.8 80 80c0 47.2-36 67.2-56 74.5l0 3.8c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-8.1c0-20.5 14.8-35.2 30.1-40.2 6.4-2.1 13.2-5.5 18.2-10.3 4.3-4.2 7.7-10 7.7-19.6 0-17.7-14.3-32-32-32zM224 368a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/></svg>`,"circle-xmark":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c-9.4 9.4-9.4 24.6 0 33.9l55 55-55 55c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55 55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-55-55 55-55c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55-55-55c-9.4-9.4-24.6-9.4-33.9 0z"/></svg>`,clock:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112C434.9 112 528 205.1 528 320zM64 320C64 461.4 178.6 576 320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320zM296 184L296 320C296 328 300 335.5 306.7 340L402.7 404C413.7 411.4 428.6 408.4 436 397.3C443.4 386.2 440.4 371.4 429.3 364L344 307.2L344 184C344 170.7 333.3 160 320 160C306.7 160 296 170.7 296 184z"/></svg>`,copy:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l58.5 58.5c3 3 4.7 7.1 4.7 11.3L400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-197.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-48 0 0 16c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l16 0 0-48-16 0z"/></svg>`,eye:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M288 80C222.8 80 169.2 109.6 128.1 147.7 89.6 183.5 63 226 49.4 256 63 286 89.6 328.5 128.1 364.3 169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256 513 226 486.4 183.5 447.9 147.7 406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1 3.3 7.9 3.3 16.7 0 24.6-14.9 35.7-46.2 87.7-93 131.1-47.1 43.7-111.8 80.6-192.6 80.6S142.5 443.2 95.4 399.4c-46.8-43.5-78.1-95.4-93-131.1-3.3-7.9-3.3-16.7 0-24.6 14.9-35.7 46.2-87.7 93-131.1zM288 336c44.2 0 80-35.8 80-80 0-29.6-16.1-55.5-40-69.3-1.4 59.7-49.6 107.9-109.3 109.3 13.8 23.9 39.7 40 69.3 40zm-79.6-88.4c2.5 .3 5 .4 7.6 .4 35.3 0 64-28.7 64-64 0-2.6-.2-5.1-.4-7.6-37.4 3.9-67.2 33.7-71.1 71.1zm45.6-115c10.8-3 22.2-4.5 33.9-4.5 8.8 0 17.5 .9 25.8 2.6 .3 .1 .5 .1 .8 .2 57.9 12.2 101.4 63.7 101.4 125.2 0 70.7-57.3 128-128 128-61.6 0-113-43.5-125.2-101.4-1.8-8.6-2.8-17.5-2.8-26.6 0-11 1.4-21.8 4-32 .2-.7 .3-1.3 .5-1.9 11.9-43.4 46.1-77.6 89.5-89.5z"/></svg>`,"eye-slash":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM176.9 111.1c32.1-18.9 69.2-31.1 111.1-31.1 65.2 0 118.8 29.6 159.9 67.7 38.5 35.7 65.1 78.3 78.6 108.3-13.6 30-40.2 72.5-78.6 108.3-3.1 2.8-6.2 5.6-9.4 8.4L393.8 328c14-20.5 22.2-45.3 22.2-72 0-70.7-57.3-128-128-128-26.7 0-51.5 8.2-72 22.2l-39.1-39.1zm182 182l-108-108c11.1-5.8 23.7-9.1 37.1-9.1 44.2 0 80 35.8 80 80 0 13.4-3.3 26-9.1 37.1zM103.4 173.2l-34-34c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6L352.2 422c-20 6.4-41.4 10-64.2 10-65.2 0-118.8-29.6-159.9-67.7-38.5-35.7-65.1-78.3-78.6-108.3 10.4-23.1 28.6-53.6 54-82.8z"/></svg>`,star:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z"/></svg>`}},ap={name:`system`,resolver:(e,t=`classic`,n=`solid`)=>{let r=ip[n][e]??ip.regular[e]??ip.regular[`circle-question`];return r?rp(r):``}},op=`classic`,sp=[np,ap],cp=new Set;function lp(e){cp.add(e)}function up(e){cp.delete(e)}function dp(e){return sp.find(t=>t.name===e)}function fp(){return op}var{I:pp}=ot,mp=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,hp=Symbol(),gp=Symbol(),_p,vp=new Map,yp=class extends Zi{constructor(){super(...arguments),this.svg=null,this.autoWidth=!1,this.swapOpacity=!1,this.label=``,this.library=`default`,this.rotate=0,this.resolveIcon=async(e,t)=>{let n;if(t?.spriteSheet){this.hasUpdated||await this.updateComplete,this.svg=N`<svg part="svg">
1597
1596
  <use part="use" href="${e}"></use>
1598
- </svg>`,await this.updateComplete;let n=this.shadowRoot.querySelector(`[part='svg']`);return typeof t.mutator==`function`&&t.mutator(n,this),this.svg}try{if(n=await fetch(e,{mode:`cors`}),!n.ok)return n.status===410?xf:Sf}catch{return Sf}try{let e=document.createElement(`div`);e.innerHTML=await n.text();let t=e.firstElementChild;if(t?.tagName?.toLowerCase()!==`svg`)return xf;Cf||=new DOMParser;let r=Cf.parseFromString(t.outerHTML,`text/html`).body.querySelector(`svg`);return r?(r.part.add(`svg`),document.adoptNode(r)):xf}catch{return xf}}}connectedCallback(){super.connectedCallback(),hf(this)}firstUpdated(e){super.firstUpdated(e),this.hasAttribute(`rotate`)&&this.style.setProperty(`--rotate-angle`,`${this.rotate}deg`),this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),gf(this)}async getIconSource(){let e=_f(this.library),t=this.family||vf();if(this.name&&e){let n=this.canvas===`auto`||this.autoWidth,r;try{r=await e.resolver(this.name,t,this.variant,n)}catch{r=void 0}return{url:r,fromLibrary:!0}}return{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label==`string`&&this.label.length>0?(this.setAttribute(`role`,`img`),this.setAttribute(`aria-label`,this.label),this.removeAttribute(`aria-hidden`)):(this.removeAttribute(`role`),this.removeAttribute(`aria-label`),this.setAttribute(`aria-hidden`,`true`))}async setIcon(){let{url:e,fromLibrary:t}=await this.getIconSource(),n=t?_f(this.library):void 0;if(!e){this.svg=null;return}let r=wf.get(e);r||(r=this.resolveIcon(e,n),wf.set(e,r));let i=await r;if(i===Sf&&wf.delete(e),e===(await this.getIconSource()).url){if(bf(i)){this.svg=i;return}switch(i){case Sf:case xf:this.svg=null,this.dispatchEvent(new Xd);break;default:this.svg=i.cloneNode(!0),n?.mutator?.(this.svg,this),this.dispatchEvent(new Zd)}}}willUpdate(e){return this.style||this.setStyleProperty(`--rotate-angle`,`${this.rotate}deg`),super.willUpdate(e)}updated(e){super.updated(e);let t=_f(this.library);this.hasAttribute(`rotate`)&&this.style.setProperty(`--rotate-angle`,`${this.rotate}deg`);let n=this.shadowRoot?.querySelector(`svg`);n&&t?.mutator?.(n,this)}render(){return this.hasUpdated?this.svg:M`<svg part="svg" width="16" height="16" viewBox="0 0 16 16"></svg>`}};Tf.css=Qd,L([pt()],Tf.prototype,`svg`,2),L([F({reflect:!0})],Tf.prototype,`name`,2),L([F({reflect:!0})],Tf.prototype,`family`,2),L([F({reflect:!0})],Tf.prototype,`variant`,2),L([F({reflect:!0})],Tf.prototype,`canvas`,2),L([F({attribute:`auto-width`,type:Boolean,reflect:!0})],Tf.prototype,`autoWidth`,2),L([F({attribute:`swap-opacity`,type:Boolean,reflect:!0})],Tf.prototype,`swapOpacity`,2),L([F()],Tf.prototype,`src`,2),L([F()],Tf.prototype,`label`,2),L([F({reflect:!0})],Tf.prototype,`library`,2),L([F({type:Number,reflect:!0})],Tf.prototype,`rotate`,2),L([F({type:String,reflect:!0})],Tf.prototype,`flip`,2),L([F({type:String,reflect:!0})],Tf.prototype,`animation`,2),L([Wd(`label`)],Tf.prototype,`handleLabelChange`,1),L([Wd([`family`,`name`,`library`,`variant`,`src`,`autoWidth`,`canvas`,`swapOpacity`],{waitUntilFirstUpdate:!0})],Tf.prototype,`setIcon`,1),Tf=L([ut(`wa-icon`)],Tf);var Ef=w`wa-dropdown::part(menu){gap:2px;min-width:300px;box-shadow:0 4px 16px #00000059}wa-dropdown-item{border-radius:5px;padding:0;&:hover{background-color:var(--solid-ui-color-primary-hover)}}`,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf;function Kf(e,t,n){qf(e,t),t.set(e,n)}function qf(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Jf(e,t,n){return e.set(Xf(e,t),n),n}function Yf(e,t){return e.get(Xf(e,t))}function Xf(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Zf(e,t,n){return(t=$f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qf(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:tp(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||tp(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return np(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:$f(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function $f(e){var t=ep(e,`string`);return typeof t==`symbol`?t:t+``}function ep(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function tp(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function np(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function rp(e){return e}Ff=[g(`solid-ui-menu`)];var ip;new(Wf=(kf=new WeakMap,Af=new WeakMap,jf=new WeakMap,Mf=new WeakMap,Gf=(If=F({type:String,reflect:!0}),Rf=F({type:Number,reflect:!0}),Bf=ht(`wa-dropdown`),Hf=pt(),`placement`),Of=class extends P{constructor(...e){super(...e),Kf(this,kf,(Nf(this),Lf(this,`bottom-start`))),Kf(this,Af,zf(this,5)),Kf(this,jf,Vf(this,null)),Kf(this,Mf,Uf(this,[])),Zf(this,`observer`,new MutationObserver(()=>this.syncItems()))}get[Gf](){return Yf(kf,this)}set placement(e){Jf(kf,this,e)}get distance(){return Yf(Af,this)}set distance(e){Jf(Af,this,e)}get dropdown(){return Yf(jf,this)}set dropdown(e){Jf(jf,this,e)}get items(){return Yf(Mf,this)}set items(e){Jf(Mf,this,e)}connectedCallback(){super.connectedCallback(),this.syncItems(),this.observer.observe(this,{childList:!0})}disconnectedCallback(){super.disconnectedCallback(),this.observer.disconnect()}render(){return M`
1597
+ </svg>`,await this.updateComplete;let n=this.shadowRoot.querySelector(`[part='svg']`);return typeof t.mutator==`function`&&t.mutator(n,this),this.svg}try{if(n=await fetch(e,{mode:`cors`}),!n.ok)return n.status===410?hp:gp}catch{return gp}try{let e=document.createElement(`div`);e.innerHTML=await n.text();let t=e.firstElementChild;if(t?.tagName?.toLowerCase()!==`svg`)return hp;_p||=new DOMParser;let r=_p.parseFromString(t.outerHTML,`text/html`).body.querySelector(`svg`);return r?(r.part.add(`svg`),document.adoptNode(r)):hp}catch{return hp}}}connectedCallback(){super.connectedCallback(),lp(this)}firstUpdated(e){super.firstUpdated(e),this.hasAttribute(`rotate`)&&this.style.setProperty(`--rotate-angle`,`${this.rotate}deg`),this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),up(this)}async getIconSource(){let e=dp(this.library),t=this.family||fp();if(this.name&&e){let n=this.canvas===`auto`||this.autoWidth,r;try{r=await e.resolver(this.name,t,this.variant,n)}catch{r=void 0}return{url:r,fromLibrary:!0}}return{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label==`string`&&this.label.length>0?(this.setAttribute(`role`,`img`),this.setAttribute(`aria-label`,this.label),this.removeAttribute(`aria-hidden`)):(this.removeAttribute(`role`),this.removeAttribute(`aria-label`),this.setAttribute(`aria-hidden`,`true`))}async setIcon(){let{url:e,fromLibrary:t}=await this.getIconSource(),n=t?dp(this.library):void 0;if(!e){this.svg=null;return}let r=vp.get(e);r||(r=this.resolveIcon(e,n),vp.set(e,r));let i=await r;if(i===gp&&vp.delete(e),e===(await this.getIconSource()).url){if(mp(i)){this.svg=i;return}switch(i){case gp:case hp:this.svg=null,this.dispatchEvent(new Gf);break;default:this.svg=i.cloneNode(!0),n?.mutator?.(this.svg,this),this.dispatchEvent(new Kf)}}}willUpdate(e){return this.style||this.setStyleProperty(`--rotate-angle`,`${this.rotate}deg`),super.willUpdate(e)}updated(e){super.updated(e);let t=dp(this.library);this.hasAttribute(`rotate`)&&this.style.setProperty(`--rotate-angle`,`${this.rotate}deg`);let n=this.shadowRoot?.querySelector(`svg`);n&&t?.mutator?.(n,this)}render(){return this.hasUpdated?this.svg:N`<svg part="svg" width="16" height="16" viewBox="0 0 16 16"></svg>`}};yp.css=qf,z([L()],yp.prototype,`svg`,2),z([I({reflect:!0})],yp.prototype,`name`,2),z([I({reflect:!0})],yp.prototype,`family`,2),z([I({reflect:!0})],yp.prototype,`variant`,2),z([I({reflect:!0})],yp.prototype,`canvas`,2),z([I({attribute:`auto-width`,type:Boolean,reflect:!0})],yp.prototype,`autoWidth`,2),z([I({attribute:`swap-opacity`,type:Boolean,reflect:!0})],yp.prototype,`swapOpacity`,2),z([I()],yp.prototype,`src`,2),z([I()],yp.prototype,`label`,2),z([I({reflect:!0})],yp.prototype,`library`,2),z([I({type:Number,reflect:!0})],yp.prototype,`rotate`,2),z([I({type:String,reflect:!0})],yp.prototype,`flip`,2),z([I({type:String,reflect:!0})],yp.prototype,`animation`,2),z([zf(`label`)],yp.prototype,`handleLabelChange`,1),z([zf([`family`,`name`,`library`,`variant`,`src`,`autoWidth`,`canvas`,`swapOpacity`],{waitUntilFirstUpdate:!0})],yp.prototype,`setIcon`,1),yp=z([Ft(`wa-icon`)],yp);var bp=M`wa-dropdown::part(menu){gap:2px;min-width:300px;box-shadow:0 4px 16px #00000059}wa-dropdown-item{border-radius:5px;padding:0;&:hover{background-color:var(--solid-ui-color-primary-hover)}}`,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp;function Bp(e,t,n){Vp(e,t),t.set(e,n)}function Vp(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Hp(e,t,n){return e.set(Wp(e,t),n),n}function Up(e,t){return e.get(Wp(e,t))}function Wp(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Gp(e,t,n){return(t=qp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kp(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Yp(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Yp(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Xp(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:qp(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function qp(e){var t=Jp(e,`string`);return typeof t==`symbol`?t:t+``}function Jp(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Yp(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Xp(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Zp(e){return e}kp=[g(`solid-ui-menu`)];var Qp;new(Rp=(Cp=new WeakMap,wp=new WeakMap,Tp=new WeakMap,Ep=new WeakMap,zp=(Ap=I({type:String,reflect:!0}),Mp=I({type:Number,reflect:!0}),Pp=zt(`wa-dropdown`),Ip=L(),`placement`),Sp=class extends F{constructor(...e){super(...e),Bp(this,Cp,(Dp(this),jp(this,`bottom-start`))),Bp(this,wp,Np(this,5)),Bp(this,Tp,Fp(this,null)),Bp(this,Ep,Lp(this,[])),Gp(this,`observer`,new MutationObserver(()=>this.syncItems()))}get[zp](){return Up(Cp,this)}set placement(e){Hp(Cp,this,e)}get distance(){return Up(wp,this)}set distance(e){Hp(wp,this,e)}get dropdown(){return Up(Tp,this)}set dropdown(e){Hp(Tp,this,e)}get items(){return Up(Ep,this)}set items(e){Hp(Ep,this,e)}connectedCallback(){super.connectedCallback(),this.syncItems(),this.observer.observe(this,{childList:!0})}disconnectedCallback(){super.disconnectedCallback(),this.observer.disconnect()}render(){return N`
1599
1598
  <wa-dropdown
1600
1599
  placement=${this.placement}
1601
1600
  distance=${this.distance}
@@ -1603,11 +1602,11 @@
1603
1602
  >
1604
1603
  <slot name="trigger" slot="trigger"></slot>
1605
1604
 
1606
- ${this.items.map(e=>M`<wa-dropdown-item @click=${this.onItemClick}>
1605
+ ${this.items.map(e=>N`<wa-dropdown-item @click=${this.onItemClick}>
1607
1606
  <slot name=${e.slot}></slot>
1608
1607
  </wa-dropdown-item>`)}
1609
1608
  </wa-dropdown>
1610
- `}syncItems(){let e=Array.from(this.children).filter(e=>!e.hasAttribute(`slot`));this.items=e.map((e,t)=>{let n=`menu-item-${t}`;return e.getAttribute(`slot`)!==n&&e.setAttribute(`slot`,n),{slot:n}})}onItemClick(e){let t=e.currentTarget;e.stopPropagation(),!t.disabled&&(this.dispatchSelectEvent(t).defaultPrevented||!this.dropdown||(this.dropdown.open=!1))}onWaSelect(e){if(this.dispatchSelectEvent(e.detail.item).defaultPrevented){e.preventDefault();return}let t=e.detail.item.children[0].getAttribute(`name`);this.querySelector(`[slot="${t}"]`)?.click?.()}dispatchSelectEvent(e){let t=e.children[0].getAttribute(`name`),n=this.querySelector(`[slot="${t}"]`),r=new CustomEvent(`solid-ui-select`,{bubbles:!0,composed:!0,cancelable:!0});return n?.dispatchEvent(r),r}},{e:[Lf,zf,Vf,Uf,Nf],c:[ip,Pf]}=Qf(Of,[[If,1,`placement`],[Rf,1,`distance`],[Bf,1,`dropdown`],[Hf,1,`items`]],Ff,0,void 0,P),Of),Df=class extends rp{constructor(){super(ip),Zf(this,`styles`,Ef),Pf()}},Zf(Df,Wf,void 0),Df);var ap,op,sp,cp,lp,up,dp;function fp(e,t,n){pp(e,t),t.set(e,n)}function pp(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function mp(e,t,n){return e.set(gp(e,t),n),n}function hp(e,t){return e.get(gp(e,t))}function gp(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function _p(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:bp(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||bp(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return xp(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:vp(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function vp(e){var t=yp(e,`string`);return typeof t==`symbol`?t:t+``}function yp(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function bp(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function xp(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}cp=[g(`solid-ui-signup-button`)];var Sp,Cp=new WeakMap;dp=(lp=lt({context:yt,subscribe:!0}),`auth`),ap=class extends P{constructor(...e){super(...e),fp(this,Cp,(op(this),up(this,vt)))}get[dp](){return hp(Cp,this)}set auth(e){mp(Cp,this,e)}render(){return M`
1609
+ `}syncItems(){let e=Array.from(this.children).filter(e=>e.getAttribute(`slot`)!==`trigger`);this.items=e.map((e,t)=>{let n=`menu-item-${t}`;return e.getAttribute(`slot`)!==n&&e.setAttribute(`slot`,n),{slot:n}})}onItemClick(e){let t=e.currentTarget;e.stopPropagation(),!t.disabled&&(this.dispatchSelectEvent(t).defaultPrevented||!this.dropdown||(this.dropdown.open=!1))}onWaSelect(e){if(this.dispatchSelectEvent(e.detail.item).defaultPrevented){e.preventDefault();return}let t=e.detail.item.children[0].getAttribute(`name`);this.querySelector(`[slot="${t}"]`)?.click?.()}dispatchSelectEvent(e){let t=e.children[0].getAttribute(`name`),n=this.querySelector(`[slot="${t}"]`),r=new CustomEvent(`solid-ui-select`,{bubbles:!0,composed:!0,cancelable:!0});return n?.dispatchEvent(r),r}},{e:[jp,Np,Fp,Lp,Dp],c:[Qp,Op]}=Kp(Sp,[[Ap,1,`placement`],[Mp,1,`distance`],[Pp,1,`dropdown`],[Ip,1,`items`]],kp,0,void 0,F),Sp),xp=class extends Zp{constructor(){super(Qp),Gp(this,`styles`,bp),Op()}},Gp(xp,Rp,void 0),xp);var $p,em,tm,nm,rm,im,am;function om(e,t,n){sm(e,t),t.set(e,n)}function sm(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function cm(e,t,n){return e.set(um(e,t),n),n}function lm(e,t){return e.get(um(e,t))}function um(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function dm(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:mm(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||mm(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return hm(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:fm(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function fm(e){var t=pm(e,`string`);return typeof t==`symbol`?t:t+``}function pm(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mm(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function hm(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}nm=[g(`solid-ui-signup-button`)];var gm,_m=new WeakMap;am=(rm=A({context:Dn,subscribe:!0}),`auth`),$p=class extends F{constructor(...e){super(...e),om(this,_m,(em(this),im(this,En)))}get[am](){return lm(_m,this)}set auth(e){cm(_m,this,e)}render(){return N`
1611
1610
  <slot name="trigger" @click=${this.onClick}>
1612
1611
  <solid-ui-button>
1613
1612
  <slot>
@@ -1615,15 +1614,15 @@
1615
1614
  </slot>
1616
1615
  </solid-ui-button>
1617
1616
  </slot>
1618
- `}click(){this.auth.signup()}onClick(e){e.preventDefault(),this.click()}},{e:[up,op],c:[Sp,sp]}=_p(ap,[[lp,1,`auth`]],cp,0,void 0,P),sp();var wp=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m10 17l5-5l-5-5m5 5H3m12-9h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/></svg>`}};customElements.get(`icon-lucide-log-in`)||customElements.define(`icon-lucide-log-in`,wp);var Tp=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m16 17l5-5l-5-5m5 5H9m0 9H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/></svg>`}};customElements.get(`icon-lucide-log-out`)||customElements.define(`icon-lucide-log-out`,Tp);var Ep=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></g></svg>`}};customElements.get(`icon-lucide-user`)||customElements.define(`icon-lucide-user`,Ep);var Dp=w`:host{--image-size:1.875rem;flex-direction:row;gap:10px;display:inline-flex}:host([data-state-initializing]){& icon-svg-spinners-180-ring{width:var(--image-size);height:var(--image-size)}}:host([data-state-loggedIn]){--padding:4px;--border-width:1px;& button{background-color:var(--solid-ui-color-body-grey);padding:var(--padding);border-radius:calc((var(--image-size) + 2 * var(--padding) + 2 * var(--border-width)) / 2);color:var(--solid-ui-color-white);justify-content:center;align-items:center;gap:5px;display:inline-flex;& solid-ui-avatar{width:var(--image-size);height:var(--image-size);border:var(--border-width) solid var(--solid-ui-color-white);border-radius:50%}& icon-lucide-chevron-down{width:16px;height:16px}}}`,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp;function Vp(e,t,n){Hp(e,t),t.set(e,n)}function Hp(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Up(e,t,n){return e.set(Gp(e,t),n),n}function Wp(e,t){return e.get(Gp(e,t))}function Gp(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Kp(e,t,n){return(t=Jp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qp(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Xp(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Xp(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Zp(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Jp(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Jp(e){var t=Yp(e,`string`);return typeof t==`symbol`?t:t+``}function Yp(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Xp(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Zp(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Qp(e){return e}Pp=[g(`solid-ui-account`)];var $p;new(zp=(Ap=new WeakMap,jp=new WeakMap,Bp=(Fp=F({type:Array}),Lp=lt({context:yt,subscribe:!0}),`menuItems`),kp=class extends P{constructor(...e){super(...e),Vp(this,Ap,(Mp(this),Ip(this,[]))),Vp(this,jp,Rp(this,vt)),Kp(this,`unsubscribeSessionUpdated`,void 0)}get[Bp](){return Wp(Ap,this)}set menuItems(e){Up(Ap,this,e)}get auth(){return Wp(jp,this)}set auth(e){Up(jp,this,e)}connectedCallback(){super.connectedCallback(),this.unsubscribeSessionUpdated=this.auth.onSessionUpdated(()=>this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeSessionUpdated?.()}render(){return this.auth.initialized?this.auth.account?M`
1617
+ `}click(){this.auth.signup()}onClick(e){e.preventDefault(),this.click()}},{e:[im,em],c:[gm,tm]}=dm($p,[[rm,1,`auth`]],nm,0,void 0,F),tm();var vm=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m10 17l5-5l-5-5m5 5H3m12-9h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/></svg>`}};customElements.get(`icon-lucide-log-in`)||customElements.define(`icon-lucide-log-in`,vm);var ym=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m16 17l5-5l-5-5m5 5H9m0 9H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/></svg>`}};customElements.get(`icon-lucide-log-out`)||customElements.define(`icon-lucide-log-out`,ym);var bm=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></g></svg>`}};customElements.get(`icon-lucide-user`)||customElements.define(`icon-lucide-user`,bm);var xm=M`:host{--image-size:1.875rem;flex-direction:row;gap:10px;display:inline-flex}:host([data-state-initializing]){& icon-svg-spinners-180-ring{width:var(--image-size);height:var(--image-size)}}:host([data-state-loggedIn]){--padding:4px;--border-width:1px;& button{background-color:var(--solid-ui-color-body-grey);padding:var(--padding);border-radius:calc((var(--image-size) + 2 * var(--padding) + 2 * var(--border-width)) / 2);color:var(--solid-ui-color-white);justify-content:center;align-items:center;gap:5px;display:inline-flex;& solid-ui-avatar{width:var(--image-size);height:var(--image-size);border:var(--border-width) solid var(--solid-ui-color-white);border-radius:50%}& icon-lucide-chevron-down{width:16px;height:16px}}}`,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm;function Fm(e,t,n){Im(e,t),t.set(e,n)}function Im(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Lm(e,t,n){return e.set(zm(e,t),n),n}function Rm(e,t){return e.get(zm(e,t))}function zm(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Bm(e,t,n){return(t=Hm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vm(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Wm(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Wm(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Gm(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Hm(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Hm(e){var t=Um(e,`string`);return typeof t==`symbol`?t:t+``}function Um(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Wm(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Gm(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Km(e){return e}Om=[g(`solid-ui-account`)];var qm;new(Nm=(wm=new WeakMap,Tm=new WeakMap,Pm=(km=I({type:Array}),jm=A({context:Dn,subscribe:!0}),`menuItems`),Cm=class extends F{constructor(...e){super(...e),Fm(this,wm,(Em(this),Am(this,[]))),Fm(this,Tm,Mm(this,En)),Bm(this,`unsubscribeSessionUpdated`,void 0)}get[Pm](){return Rm(wm,this)}set menuItems(e){Lm(wm,this,e)}get auth(){return Rm(Tm,this)}set auth(e){Lm(Tm,this,e)}connectedCallback(){super.connectedCallback(),this.unsubscribeSessionUpdated=this.auth.onSessionUpdated(()=>this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeSessionUpdated?.()}render(){return this.auth.initialized?this.auth.account?N`
1619
1618
  <solid-ui-menu placement="bottom-end">
1620
1619
  <button type="button" slot="trigger">
1621
1620
  <solid-ui-avatar></solid-ui-avatar>
1622
1621
  <icon-lucide-chevron-down slot="right-icon"></icon-lucide-chevron-down>
1623
1622
  </button>
1624
1623
 
1625
- ${this.menuItems.map(e=>M`
1626
- <solid-ui-menu-item .href=${e.href??N} ?selected=${e.selected} @solid-ui-select=${()=>e.onSelected?.()}>
1624
+ ${this.menuItems.map(e=>N`
1625
+ <solid-ui-menu-item .href=${e.href??P} ?selected=${e.selected} @solid-ui-select=${()=>e.onSelected?.()}>
1627
1626
  ${e.label}
1628
1627
  </solid-ui-menu-item>
1629
1628
  `)}
@@ -1634,7 +1633,7 @@
1634
1633
  </solid-ui-menu-item>
1635
1634
  </solid-ui-logout-button>
1636
1635
  </solid-ui-menu>
1637
- `:M`
1636
+ `:N`
1638
1637
  <solid-ui-login-button>
1639
1638
  <solid-ui-button slot="trigger">
1640
1639
  <icon-lucide-user slot="left-icon"></icon-lucide-user>
@@ -1647,86 +1646,15 @@
1647
1646
  Sign Up
1648
1647
  </solid-ui-button>
1649
1648
  </solid-ui-signup-button>
1650
- `:M`
1649
+ `:N`
1651
1650
  <icon-svg-spinners-180-ring></icon-svg-spinners-180-ring>
1652
- `}},{e:[Ip,Rp,Mp],c:[$p,Np]}=qp(kp,[[Fp,1,`menuItems`],[Lp,1,`auth`]],Pp,0,void 0,P),kp),Op=class extends Qp{constructor(){super($p),Kp(this,`styles`,Dp),Kp(this,`states`,{initializing:e=>!e.auth.initialized,loggedIn:e=>!!e.auth.account}),Np()}},Kp(Op,zp,void 0),Op);function em(){let{origin:e,pathname:n}=document.location,r=document.body?.dataset?.appShell===`databrowser`,i=n.split(`/`).filter(Boolean),a=i[i.length-1]||``,o=/\.[^/]+$/.test(a);return r&&i.length>0&&!o?(0,t.sym)(`${e}/${i[0]}/`):(0,t.sym)(e).site()}async function tm(e,n){try{if(!n.any(e,null,I.ldp(`Container`),e)){let r=(await n.fetcher.webOperation(`GET`,e.uri,n.fetcher.initFetchOptions(e.uri,{headers:{accept:`text/turtle`}}))).responseText;(0,t.parse)(r,n,e.uri,`text/turtle`)}}catch(t){return console.error(`Error loading pod `+e+`: `+t),null}if(!n.holds(e,I.rdf(`type`),I.space(`Storage`),e))return console.warn(`Pod `+e+` does not declare itself as a space:Storage`),null;let r=n.any(e,I.solid(`owner`),null,e)||n.any(null,I.space(`storage`),e,e);if(r){try{await n.fetcher.load(r.doc())}catch{return console.warn(`Unable to load profile of pod owner `+r),null}return n.holds(r,I.space(`storage`),e,r.doc())||console.warn(`Pod owner ${r} does NOT list pod ${e} as their storage`),r}else{let r=(0,t.sym)(`${e.uri}profile/card#me`);try{await n.fetcher.load(r)}catch{return console.error(`Ooops. Guessed wrong pod owner webid {$guess} : can't load it.`),null}return n.holds(r,I.space(`storage`),e,r.doc())?(console.warn(`Using guessed pod owner webid but it links back.`),r):null}}function nm(e,t){return e.anyValue(t,I.vcard(`fn`),null,t.doc())||e.anyValue(t,I.foaf(`name`),null,t.doc())||t.uri}function rm(e,t,n={}){let r,i,a,o=null,s=0,c=function(){s=n.leading?Date.now():0,o=null,a=e.apply(r,i),o||(r=i=null)};return function(){let l=Date.now();!s&&!n.leading&&(s=l);let u=t-(l-s);return r=this,i=arguments,u<=0||u>t?(o&&=(clearTimeout(o),null),s=l,a=e.apply(r,i),o||(r=i=null)):!o&&n.trailing!==!1&&(o=setTimeout(c,u)),a}}var im=class extends Ye{static properties={theme:{type:String,reflect:!0},layout:{type:String,reflect:!0},position:{type:String,reflect:!0},top:{type:String,reflect:!0},right:{type:String,reflect:!0},bottom:{type:String,reflect:!0},left:{type:String,reflect:!0},store:{type:Object,attribute:!1},_user:{state:!0}};static styles=w`
1653
- :host {
1654
- display: block;
1655
- position: var(--footer-position, static);
1656
- top: var(--footer-top, auto);
1657
- right: var(--footer-right, auto);
1658
- bottom: var(--footer-bottom, auto);
1659
- left: var(--footer-left, auto);
1660
- width: auto;
1661
- max-width: var(--footer-max-width, none);
1662
- margin: var(--footer-margin, 0);
1663
- box-sizing: border-box;
1664
- color: var(--footer-text, #4f4f4f);
1665
- background: transparent;
1666
- border: 1px solid var(--footer-border, rgba(0, 0, 0, 0.12));
1667
- border-radius: var(--footer-border-radius, 1rem);
1668
- box-shadow: var(--footer-box-shadow, 0 1px 6px rgba(0, 0, 0, 0.08));
1669
- font-family: var(--font-family-base, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif);
1670
- }
1671
-
1672
- .footer {
1673
- display: flex;
1674
- justify-content: flex-start;
1675
- align-items: flex-start;
1676
- gap: 0.25rem;
1677
- font-size: 0.75rem;
1678
- line-height: 1.5;
1679
- text-align: left;
1680
- }
1681
-
1682
- .footer a {
1683
- color: var(--footer-link, #4b32a8);
1684
- text-decoration: none;
1685
- font-weight: 600;
1686
- }
1687
-
1688
- .footer a:hover {
1689
- text-decoration: underline;
1690
- }
1691
-
1692
- .footer span {
1693
- color: inherit;
1694
- }
1695
-
1696
- .footer div > strong {
1697
- display: block;
1698
- margin-bottom: 0.5rem;
1699
- }
1700
-
1701
- :host([layout='mobile']) {
1702
- border: none;
1703
- box-shadow: none;
1704
- border-radius: 0;
1705
- }
1706
- `;constructor(){super(),this.theme=`light`,this.layout=`desktop`,this.position=`static`,this.top=`auto`,this.right=`auto`,this.bottom=`auto`,this.left=`auto`,this.store=null,this._user=null,this._updateFooter=this._updateFooter.bind(this)}connectedCallback(){super.connectedCallback(),n.authSession.events.on(`login`,this._updateFooter),n.authSession.events.on(`logout`,this._updateFooter),this._updateFooter()}disconnectedCallback(){typeof n.authSession.events.off==`function`&&(n.authSession.events.off(`login`,this._updateFooter),n.authSession.events.off(`logout`,this._updateFooter)),super.disconnectedCallback()}updated(e){(e.has(`position`)||e.has(`top`)||e.has(`right`)||e.has(`bottom`)||e.has(`left`))&&this._updatePositionStyles()}_updatePositionStyles(){this.style.setProperty(`--footer-position`,this.position),this.style.setProperty(`--footer-top`,this.top),this.style.setProperty(`--footer-right`,this.right),this.style.setProperty(`--footer-bottom`,this.bottom),this.style.setProperty(`--footer-left`,this.left)}_updateFooter(){this._user=n.authn.currentUser()}render(){return M`
1707
- <footer class="footer">
1708
- ${this._renderFooterContent()}
1709
- </footer>
1710
- `}_renderFooterContent(){if(!this._user)return M`
1711
- <div>
1712
- <strong>Public View</strong>
1713
- <div>You are viewing this profile as a guest.</div>
1714
- </div>
1715
- `;let e=this.store?nm(this.store,this._user):this._user.uri;return M`
1716
- <div>
1717
- <strong>Logged in View</strong>
1718
- <div>
1719
- You are logged in as
1720
- <a href=${this._user.uri} target="_blank" rel="noopener noreferrer">${e}</a>.
1721
- </div>
1722
- </div>
1723
- `}},am=`solid-ui-footer`;customElements.get(am)||customElements.define(am,im);var om,sm,cm,lm,um,dm,fm,pm,mm,hm;function gm(e,t,n){_m(e,t),t.set(e,n)}function _m(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function vm(e,t,n){return e.set(bm(e,t),n),n}function ym(e,t){return e.get(bm(e,t))}function bm(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function xm(e,t,n){return(t=Cm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sm(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Tm(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Tm(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Em(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Cm(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Cm(e){var t=wm(e,`string`);return typeof t==`symbol`?t:t+``}function wm(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Tm(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Em(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Dm(e){return e}dm=[g(`solid-ui-guard`)];var Om;new(mm=(cm=new WeakMap,hm=(fm=lt({context:yt,subscribe:!0}),`auth`),sm=class extends P{constructor(...e){super(...e),gm(this,cm,(lm(this),pm(this,vt))),xm(this,`unsubscribeSessionUpdated`,void 0)}get[hm](){return ym(cm,this)}set auth(e){vm(cm,this,e)}connectedCallback(){super.connectedCallback(),this.unsubscribeSessionUpdated=this.auth.onSessionUpdated(()=>this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeSessionUpdated?.()}render(){return this.auth.initialized?this.auth.account?M`
1651
+ `}},{e:[Am,Mm,Em],c:[qm,Dm]}=Vm(Cm,[[km,1,`menuItems`],[jm,1,`auth`]],Om,0,void 0,F),Cm),Sm=class extends Km{constructor(){super(qm),Bm(this,`styles`,xm),Bm(this,`states`,{initializing:e=>!e.auth.initialized,loggedIn:e=>!!e.auth.account}),Dm()}},Bm(Sm,Nm,void 0),Sm);var Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh;function ih(e,t,n){ah(e,t),t.set(e,n)}function ah(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function oh(e,t,n){return e.set(ch(e,t),n),n}function sh(e,t){return e.get(ch(e,t))}function ch(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function lh(e,t,n){return(t=dh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uh(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:ph(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||ph(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return mh(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:dh(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function dh(e){var t=fh(e,`string`);return typeof t==`symbol`?t:t+``}function fh(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ph(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function mh(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function hh(e){return e}$m=[g(`solid-ui-guard`)];var gh;new(nh=(Xm=new WeakMap,rh=(eh=A({context:Dn,subscribe:!0}),`auth`),Ym=class extends F{constructor(...e){super(...e),ih(this,Xm,(Zm(this),th(this,En))),lh(this,`unsubscribeSessionUpdated`,void 0)}get[rh](){return sh(Xm,this)}set auth(e){oh(Xm,this,e)}connectedCallback(){super.connectedCallback(),this.unsubscribeSessionUpdated=this.auth.onSessionUpdated(()=>this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeSessionUpdated?.()}render(){return this.auth.initialized?this.auth.account?N`
1724
1652
  <slot></slot>
1725
- `:M`
1653
+ `:N`
1726
1654
  <slot name="guest"></slot>
1727
- `:M`
1655
+ `:N`
1728
1656
  <slot name="initializing"></slot>
1729
- `}},{e:[pm,lm],c:[Om,um]}=Sm(sm,[[fm,1,`auth`]],dm,0,void 0,P),sm),om=class extends Dm{constructor(){super(Om),xm(this,`states`,{initializing:e=>!e.auth.initialized,loggedIn:e=>!!e.auth.account}),um()}},xm(om,mm,void 0),om);var km=w`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& .input-wrapper{width:100%;position:relative;& input{border:1px solid var(--solid-ui-color-gray-400);width:100%;color:var(--solid-ui-color-gray-700);font-size:inherit;background:#fff;border-radius:5px;padding:10px}}}`,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh;function ih(e,t,n){ah(e,t),t.set(e,n)}function ah(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function oh(e,t,n){return e.set(ch(e,t),n),n}function sh(e,t){return e.get(ch(e,t))}function ch(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function lh(e,t,n){return(t=dh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uh(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:ph(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||ph(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return mh(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:dh(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function dh(e){var t=fh(e,`string`);return typeof t==`symbol`?t:t+``}function fh(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ph(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function mh(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function hh(e){return e}Vm=[g(`solid-ui-input`)];var gh;new(nh=(Mm=new WeakMap,Nm=new WeakMap,Pm=new WeakMap,Fm=new WeakMap,Im=new WeakMap,Lm=new WeakMap,Rm=new WeakMap,rh=(Hm=F({type:String,reflect:!0}),Wm=F({type:String,reflect:!0}),Km=F({type:String}),Jm=F({type:String,reflect:!0}),Xm=F({type:String,reflect:!0}),Qm=F({type:Boolean,reflect:!0}),eh=ht(`input`),`label`),jm=class extends P{get[rh](){return sh(Mm,this)}set label(e){oh(Mm,this,e)}get name(){return sh(Nm,this)}set name(e){oh(Nm,this,e)}get value(){return sh(Pm,this)}set value(e){oh(Pm,this,e)}get type(){return sh(Fm,this)}set type(e){oh(Fm,this,e)}get placeholder(){return sh(Im,this)}set placeholder(e){oh(Im,this,e)}get required(){return sh(Lm,this)}set required(e){oh(Lm,this,e)}get inputElement(){return sh(Rm,this)}set inputElement(e){oh(Rm,this,e)}constructor(){super(),ih(this,Mm,(zm(this),Um(this,``))),ih(this,Nm,Gm(this,``)),ih(this,Pm,qm(this,``)),ih(this,Fm,Ym(this,`text`)),ih(this,Im,Zm(this,``)),ih(this,Lm,$m(this,!1)),ih(this,Rm,th(this,null)),lh(this,`controlTrait`,void 0),this.controlTrait=this.addTrait(new tt(this,{getControlElement:()=>this.inputElement,getInternals:()=>this.getInternals()}))}render(){return M`
1657
+ `}},{e:[th,Zm],c:[gh,Qm]}=uh(Ym,[[eh,1,`auth`]],$m,0,void 0,F),Ym),Jm=class extends hh{constructor(){super(gh),lh(this,`states`,{initializing:e=>!e.auth.initialized,loggedIn:e=>!!e.auth.account}),Qm()}},lh(Jm,nh,void 0),Jm);var _h=M`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& .input-wrapper{width:100%;position:relative;& input{border:1px solid var(--solid-ui-color-gray-400);width:100%;color:var(--solid-ui-color-gray-700);font-size:inherit;background:#fff;border-radius:5px;padding:10px}& input:read-only{cursor:not-allowed;border:none;padding:0}}}`,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh;function Bh(e,t,n){Vh(e,t),t.set(e,n)}function Vh(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Hh(e,t,n){return e.set(Wh(e,t),n),n}function Uh(e,t){return e.get(Wh(e,t))}function Wh(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Gh(e,t,n){return(t=qh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kh(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Yh(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Yh(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Xh(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:qh(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function qh(e){var t=Jh(e,`string`);return typeof t==`symbol`?t:t+``}function Jh(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Yh(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Xh(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function Zh(e){return e}Dh=[g(`solid-ui-input`)];var Qh;new(Rh=(bh=new WeakMap,xh=new WeakMap,Sh=new WeakMap,Ch=new WeakMap,wh=new WeakMap,zh=(Oh=I({type:String,reflect:!0}),Ah=I({type:String,reflect:!0}),Mh=I({type:Boolean,reflect:!0}),Ph=I({type:Boolean,reflect:!0}),Ih=zt(`input`),`type`),yh=class extends Cn{constructor(...e){super(...e),Bh(this,bh,(Th(this),kh(this,`text`))),Bh(this,xh,jh(this,``)),Bh(this,Sh,Nh(this,!1)),Bh(this,Ch,Fh(this,!1)),Bh(this,wh,Lh(this,null))}get[zh](){return Uh(bh,this)}set type(e){Hh(bh,this,e)}get placeholder(){return Uh(xh,this)}set placeholder(e){Hh(xh,this,e)}get required(){return Uh(Sh,this)}set required(e){Hh(Sh,this,e)}get readonly(){return Uh(Ch,this)}set readonly(e){Hh(Ch,this,e)}get controlElement(){return Uh(wh,this)}set controlElement(e){Hh(wh,this,e)}render(){return N`
1730
1658
  ${this.controlTrait.renderLabel()}
1731
1659
 
1732
1660
  <div class="input-wrapper">
@@ -1737,290 +1665,61 @@
1737
1665
  placeholder=${this.placeholder}
1738
1666
  ?required=${this.required}
1739
1667
  .value=${this.value}
1668
+ ?readonly=${this.readonly}
1740
1669
  @input=${()=>this.controlTrait.onInput()}
1741
1670
  @keydown=${this.onKeyDown}
1742
1671
  />
1743
1672
  </div>
1744
- `}onKeyDown(e){e.key===`Enter`&&(e.preventDefault(),this.controlTrait.onSubmit())}},{e:[Um,Gm,qm,Ym,Zm,$m,th,zm],c:[gh,Bm]}=uh(jm,[[Hm,1,`label`],[Wm,1,`name`],[Km,1,`value`],[Jm,1,`type`],[Xm,1,`placeholder`],[Qm,1,`required`],[eh,1,`inputElement`]],Vm,0,void 0,P),jm),Am=class extends hh{constructor(){super(gh),lh(this,`styles`,km),lh(this,`formAssociated`,!0),Bm()}},lh(Am,nh,void 0),Am);var _h=`image/png`,vh=class extends Ye{static formAssociated=!0;static properties={label:{type:String,reflect:!0},heading:{type:String,reflect:!0},captureLabel:{type:String,attribute:`capture-label`,reflect:!0},confirmLabel:{type:String,attribute:`confirm-label`,reflect:!0},retakeLabel:{type:String,attribute:`retake-label`,reflect:!0},cancelLabel:{type:String,attribute:`cancel-label`,reflect:!0},presentation:{type:String,reflect:!0},theme:{type:String,reflect:!0},facingMode:{type:String,attribute:`facing-mode`,reflect:!0},constraints:{type:String,reflect:!0},captureFormat:{type:String,attribute:`capture-format`,reflect:!0},captureQuality:{type:Number,attribute:`capture-quality`},open:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},name:{type:String,reflect:!0},required:{type:Boolean,reflect:!0},showTrigger:{type:Boolean,attribute:`show-trigger`,reflect:!0},showCancelButton:{type:Boolean,attribute:`show-cancel-button`,reflect:!0},autoCloseOnCapture:{type:Boolean,attribute:`auto-close-on-capture`},fileNamePrefix:{type:String,attribute:`file-name-prefix`,reflect:!0},value:{attribute:!1},mediaConstraints:{attribute:!1},_errorMessage:{state:!0},_previewUrl:{state:!0},_startingPreview:{state:!0}};static styles=w`
1745
- :host {
1746
- display: block;
1747
- --photo-capture-trigger-background: var(--lavender-900, #7c4cff);
1748
- --photo-capture-trigger-text: var(--color-header-text, #ffffff);
1749
- --photo-capture-surface: var(--color-background, #ffffff);
1750
- --photo-capture-text: var(--gray-900, #101828);
1751
- --photo-capture-muted-text: var(--gray-600, #4a5565);
1752
- --photo-capture-border: var(--gray-200, #e5e7eb);
1753
- --photo-capture-hover: var(--gray-100, #f3f4f6);
1754
- --photo-capture-shadow: var(--box-shadow-sm, 0 1px 4px rgba(0, 0, 0, 0.12));
1755
- --photo-capture-overlay: rgba(0, 0, 0, 0.6);
1756
- --photo-capture-frame-max-width: 260px;
1757
- --photo-capture-radius: 8px;
1758
- --photo-capture-button-radius: var(--border-radius-base, 0.3125rem);
1759
- --photo-capture-gap: var(--spacing-2xs, 0.625rem);
1760
- color: var(--photo-capture-text);
1761
- box-sizing: border-box;
1762
- }
1763
-
1764
- :host([theme='dark']) {
1765
- --photo-capture-surface: var(--gray-900, #111827);
1766
- --photo-capture-text: var(--white, #ffffff);
1767
- --photo-capture-muted-text: var(--gray-300, #d1d5dc);
1768
- --photo-capture-border: var(--gray-700, #364153);
1769
- --photo-capture-hover: rgba(255, 255, 255, 0.08);
1770
- --photo-capture-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
1771
- }
1772
-
1773
- *, *::before, *::after {
1774
- box-sizing: border-box;
1775
- }
1776
-
1777
- .trigger-button,
1778
- .action-button,
1779
- .cancel-button,
1780
- .close-button {
1781
- font: inherit;
1782
- cursor: pointer;
1783
- }
1784
-
1785
- .trigger-button {
1786
- display: inline-flex;
1787
- align-items: center;
1788
- justify-content: center;
1789
- min-height: 35px;
1790
- padding: 0.5rem 0.9rem;
1791
- border: none;
1792
- border-radius: var(--photo-capture-button-radius);
1793
- background: var(--photo-capture-trigger-background);
1794
- color: var(--photo-capture-trigger-text);
1795
- transition: transform 0.2s ease;
1796
- }
1797
-
1798
- .trigger-button:active {
1799
- transform: translateY(1px);
1800
- }
1801
-
1802
- .trigger-button:disabled,
1803
- .action-button:disabled,
1804
- .cancel-button:disabled {
1805
- opacity: 0.55;
1806
- cursor: not-allowed;
1807
- }
1808
-
1809
- .inline-root[hidden] {
1810
- display: none;
1811
- }
1812
-
1813
- .dialog {
1814
- border: none;
1815
- padding: 0;
1816
- background: transparent;
1817
- outline: none;
1818
- overflow: visible;
1819
- max-width: none;
1820
- max-height: none;
1821
- }
1822
-
1823
- .dialog::backdrop {
1824
- background: var(--photo-capture-overlay);
1825
- }
1826
-
1827
- .panel {
1828
- position: relative;
1829
- display: flex;
1830
- flex-direction: column;
1831
- align-items: center;
1832
- gap: var(--photo-capture-gap);
1833
- width: min(100%, 340px);
1834
- padding: 1rem;
1835
- border: 1px solid var(--photo-capture-border);
1836
- border-radius: var(--photo-capture-radius);
1837
- background: var(--photo-capture-surface);
1838
- color: var(--photo-capture-text);
1839
- box-shadow: var(--photo-capture-shadow);
1840
- }
1841
-
1842
- .panel-header {
1843
- display: flex;
1844
- align-items: center;
1845
- justify-content: space-between;
1846
- gap: 0.5rem;
1847
- width: 100%;
1848
- }
1849
-
1850
- .panel-heading {
1851
- margin: 0;
1852
- font-size: 1rem;
1853
- font-weight: 700;
1854
- line-height: 1.4;
1855
- }
1856
-
1857
- .close-button {
1858
- display: inline-flex;
1859
- align-items: center;
1860
- justify-content: center;
1861
- width: 1.75rem;
1862
- height: 1.75rem;
1863
- padding: 0;
1864
- border: none;
1865
- border-radius: 999px;
1866
- background: transparent;
1867
- color: var(--photo-capture-muted-text);
1868
- font-size: 1.125rem;
1869
- line-height: 1;
1870
- }
1871
-
1872
- .close-button:hover,
1873
- .close-button:focus-visible,
1874
- .action-button:hover,
1875
- .action-button:focus-visible,
1876
- .cancel-button:hover,
1877
- .cancel-button:focus-visible {
1878
- background: var(--photo-capture-hover);
1879
- }
1880
-
1881
- .viewport {
1882
- display: flex;
1883
- align-items: center;
1884
- justify-content: center;
1885
- width: 100%;
1886
- min-height: 200px;
1887
- border-radius: 0.5rem;
1888
- overflow: hidden;
1889
- background: color-mix(in srgb, var(--photo-capture-surface) 92%, #000 8%);
1890
- }
1891
-
1892
- .viewport video,
1893
- .viewport img {
1894
- display: block;
1895
- width: 100%;
1896
- max-width: var(--photo-capture-frame-max-width);
1897
- height: auto;
1898
- border-radius: 0.5rem;
1899
- margin: 0 auto;
1900
- object-fit: cover;
1901
- }
1902
-
1903
- .status {
1904
- width: 100%;
1905
- text-align: center;
1906
- color: var(--photo-capture-muted-text);
1907
- font-size: 0.875rem;
1908
- }
1909
-
1910
- .status.error {
1911
- color: var(--color-error, #b00020);
1912
- }
1913
-
1914
- .actions {
1915
- display: flex;
1916
- align-items: center;
1917
- justify-content: center;
1918
- flex-wrap: wrap;
1919
- gap: var(--photo-capture-gap);
1920
- width: 100%;
1921
- }
1922
-
1923
- .action-button,
1924
- .cancel-button {
1925
- display: inline-flex;
1926
- align-items: center;
1927
- justify-content: center;
1928
- min-height: 2.25rem;
1929
- padding: 0.45rem 0.85rem;
1930
- border-radius: var(--photo-capture-button-radius);
1931
- border: 1px solid var(--photo-capture-border);
1932
- background: var(--photo-capture-surface);
1933
- color: var(--photo-capture-text);
1934
- font-size: var(--font-size-xxs, 0.75rem);
1935
- font-weight: var(--font-weight-xbold, 700);
1936
- line-height: 1.5;
1937
- }
1938
-
1939
- .action-button--primary {
1940
- background: var(--photo-capture-trigger-background);
1941
- color: var(--photo-capture-trigger-text);
1942
- border-color: transparent;
1943
- }
1944
- `;_value=null;_stream=null;_internals;_associatedForm=null;_handleFormData=e=>{let t=e.formData;!t||!this.name||!this.value||this.disabled||t.append(this.name,this.value,this.value.name)};_handleFormReset=()=>{this._clearValue({emitEvents:!1}),this.open&&this._queuePreviewStart()};get _supportsFormInternals(){return!!this._internals&&typeof this._internals.setFormValue==`function`}constructor(){super(),this.label=`Take Photo`,this.heading=`Take a photo`,this.captureLabel=`Take Photo`,this.confirmLabel=`Use Photo`,this.retakeLabel=`Retake`,this.cancelLabel=`Cancel`,this.presentation=`inline`,this.theme=`light`,this.facingMode=`user`,this.constraints=``,this.captureFormat=_h,this.captureQuality=void 0,this.open=!1,this.disabled=!1,this.name=``,this.required=!1,this.showTrigger=!1,this.showCancelButton=!0,this.autoCloseOnCapture=!1,this.fileNamePrefix=``,this.mediaConstraints=void 0,this._errorMessage=``,this._previewUrl=``,this._startingPreview=!1,this._internals=typeof this.attachInternals==`function`?this.attachInternals():null}get value(){return this._value}set value(e){let t=e instanceof File?e:null,n=this._value;n!==t&&(this._value=t,this._syncPreviewFromValue(t),this._syncFormValue(),this._syncValidity(),this.requestUpdate(`value`,n))}get form(){return(this._supportsFormInternals?this._internals?.form:null)??this._associatedForm}get validationMessage(){return(typeof this._internals?.validationMessage==`string`?this._internals.validationMessage:``)||(this.required&&!this.value?`Please capture a photo.`:``)}get willValidate(){return typeof this._internals?.willValidate==`boolean`?this._internals.willValidate:!this.disabled}checkValidity(){return this._internals&&typeof this._internals.checkValidity==`function`?this._internals.checkValidity():!(this.required&&!this.value)}reportValidity(){return this._internals&&typeof this._internals.reportValidity==`function`?this._internals.reportValidity():this.checkValidity()}connectedCallback(){super.connectedCallback(),this._syncAssociatedForm(),this._syncFormValue(),this._syncValidity()}disconnectedCallback(){this._syncAssociatedForm(null),this._stopStream(),this._revokePreviewUrl(),super.disconnectedCallback()}formResetCallback(){this._handleFormReset()}formDisabledCallback(e){this.disabled=e}updated(e){if(this._syncAssociatedForm(),this.presentation===`dialog`){let e=this.shadowRoot?.querySelector(`dialog`);e&&(this.open&&!e.open?e.showModal():!this.open&&e.open&&e.close())}if(e.has(`open`)&&!this.open&&this._stopStream(),this.open&&!this.value&&!this._stream&&!this._startingPreview&&(e.has(`open`)||e.has(`presentation`)||e.has(`_previewUrl`)||e.has(`value`))&&this._queuePreviewStart(),(e.has(`name`)||e.has(`disabled`)||e.has(`value`))&&this._syncFormValue(),(e.has(`required`)||e.has(`disabled`)||e.has(`value`))&&this._syncValidity(),this._stream){let e=this.shadowRoot?.querySelector(`video.capture-preview`);e&&e.srcObject!==this._stream&&(e.srcObject=this._stream)}}_setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(`open-change`,{detail:{open:e},bubbles:!0,composed:!0})))}_emitError(e,t=`Unable to access the camera`){this._errorMessage=t,this.dispatchEvent(new CustomEvent(`error`,{detail:{error:e,message:t},bubbles:!0,composed:!0}))}_syncAssociatedForm(e=this.closest(`form`)){this._associatedForm!==e&&(this._associatedForm&&(this._associatedForm.removeEventListener(`formdata`,this._handleFormData),this._associatedForm.removeEventListener(`reset`,this._handleFormReset)),this._associatedForm=e,this._associatedForm&&!this._supportsFormInternals&&(this._associatedForm.addEventListener(`formdata`,this._handleFormData),this._associatedForm.addEventListener(`reset`,this._handleFormReset)))}_syncFormValue(){if(!this._supportsFormInternals)return;let e=this._internals;if(e){if(this.disabled||!this.name||!this.value){e.setFormValue(null);return}e.setFormValue(this.value)}}_syncValidity(){if(!(!this._internals||!this._supportsFormInternals||typeof this._internals.setValidity!=`function`)){if(this.disabled||!this.required||this.value){this._internals.setValidity({});return}this._internals.setValidity({valueMissing:!0},`Please capture a photo.`)}}_syncPreviewFromValue(e){this._revokePreviewUrl(),e&&(this._stopStream(),this._previewUrl=URL.createObjectURL(e))}_clearValue(e){this.value=null,this._errorMessage=``,e.emitEvents&&this._dispatchValueEvents()}_dispatchValueEvents(){let e={value:this.value};this.dispatchEvent(new CustomEvent(`input`,{detail:e,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(`change`,{detail:e,bubbles:!0,composed:!0}))}_fileExtensionForMimeType(e){switch(e){case`image/jpeg`:return`jpg`;case`image/webp`:return`webp`;case`image/gif`:return`gif`;default:return`png`}}_createFileFromBlob(e){let t=e.type||this.captureFormat||_h,n=this._fileExtensionForMimeType(t),r=(this.fileNamePrefix||this.name||`photo`).trim()||`photo`;return new File([e],`${r}-${Date.now()}.${n}`,{type:t})}_queuePreviewStart(){this._startPreview().catch(()=>void 0)}_resolveMediaConstraints(){if(this.mediaConstraints)return this.mediaConstraints;if(this.constraints)try{return JSON.parse(this.constraints)}catch(e){throw Error(`Invalid constraints JSON: ${e.message}`)}return{video:!this.facingMode||{facingMode:{ideal:this.facingMode}}}}async _startPreview(){if(!(!this.open||this.value||this._startingPreview)){if(!navigator.mediaDevices?.getUserMedia){this._emitError(Error(`navigator.mediaDevices.getUserMedia not available`),`Camera access is not available in this browser`);return}this._startingPreview=!0,this._errorMessage=``;try{let e=await navigator.mediaDevices.getUserMedia(this._resolveMediaConstraints());if(!this.open){e.getTracks().forEach(e=>e.stop());return}this._stream=e,this.requestUpdate(),await this.updateComplete;let t=this.shadowRoot?.querySelector(`video.capture-preview`);t&&(t.srcObject=e,await t.play?.().catch(()=>void 0))}catch(e){this._emitError(e,e?.message||`Unable to start the camera preview`)}finally{this._startingPreview=!1}}}_stopStream(){if(!this._stream)return;this._stream.getTracks().forEach(e=>e.stop()),this._stream=null;let e=this.shadowRoot?.querySelector(`video.capture-preview`);e&&(e.srcObject=null)}_revokePreviewUrl(){this._previewUrl&&URL.revokeObjectURL(this._previewUrl),this._previewUrl=``}async _captureSnapshot(){let e=this.shadowRoot?.querySelector(`video.capture-preview`);if(!e)return;let t=e.videoWidth||e.clientWidth||640,n=e.videoHeight||e.clientHeight||480,r=document.createElement(`canvas`);r.width=t,r.height=n;let i=r.getContext(`2d`);if(!i){this._emitError(Error(`Canvas 2D context unavailable`),`Unable to capture a photo in this browser`);return}i.drawImage(e,0,0,t,n);let a=await new Promise(e=>{r.toBlob(e,this.captureFormat||_h,this.captureQuality)});if(!a){this._emitError(Error(`Camera snapshot failed`),`Unable to create an image from the current camera frame`);return}this.value=this._createFileFromBlob(a),this._errorMessage=``}async _retakePhoto(){this._clearValue({emitEvents:!0}),await this._startPreview()}_confirmPhoto(){!this.value||!this._previewUrl||(this._dispatchValueEvents(),this.dispatchEvent(new CustomEvent(`photo-captured`,{detail:{file:this.value,blob:this.value,objectUrl:this._previewUrl,contentType:this.value.type||this.captureFormat||_h},bubbles:!0,composed:!0})),this.autoCloseOnCapture&&this._setOpen(!1))}_handleCancel(){this._stopStream(),this._clearValue({emitEvents:!1}),this._setOpen(!1),this.dispatchEvent(new CustomEvent(`cancel`,{bubbles:!0,composed:!0}))}_openCapture(){this.disabled||this._setOpen(!0)}_renderViewport(){return this._previewUrl?M`<img class="capture-preview" part="preview-image" src="${this._previewUrl}" alt="Captured photo preview" />`:M`<video class="capture-preview" part="preview-video" autoplay playsinline muted></video>`}_renderStatus(){return this._errorMessage?M`<div class="status error" part="error-message">${this._errorMessage}</div>`:this._startingPreview?M`<div class="status" part="status-message">Opening camera…</div>`:this.value?M`<div class="status" part="status-message">Review the photo before confirming it.</div>`:M`<div class="status" part="status-message">Preview the camera and take a photo when ready.</div>`}_renderActions(){return M`
1945
- <div class="actions" part="actions">
1946
- ${this.showCancelButton?M`
1947
- <button
1948
- class="cancel-button"
1949
- part="cancel-button"
1950
- type="button"
1951
- @click="${this._handleCancel}"
1952
- >${this.cancelLabel}</button>
1953
- `:N}
1954
-
1955
- ${this.value?M`
1956
- <button
1957
- class="action-button"
1958
- part="retake-button"
1959
- type="button"
1960
- @click="${this._retakePhoto}"
1961
- >${this.retakeLabel}</button>
1962
- <button
1963
- class="action-button action-button--primary"
1964
- part="confirm-button"
1965
- type="button"
1966
- @click="${this._confirmPhoto}"
1967
- >${this.confirmLabel}</button>
1968
- `:M`
1969
- <button
1970
- class="action-button action-button--primary"
1971
- part="capture-button"
1972
- type="button"
1973
- ?disabled="${this._startingPreview||!this._stream}"
1974
- @click="${this._captureSnapshot}"
1975
- >${this.captureLabel}</button>
1976
- `}
1977
- </div>
1978
- `}_renderPanel(){return M`
1979
- <div class="panel" part="panel">
1980
- <div class="panel-header" part="header">
1981
- <h2 class="panel-heading" part="heading"><slot name="heading">${this.heading}</slot></h2>
1982
- ${this.showCancelButton?M`
1983
- <button
1984
- class="close-button"
1985
- part="close-button"
1986
- type="button"
1987
- aria-label="${this.cancelLabel}"
1988
- @click="${this._handleCancel}"
1989
- >&times;</button>
1990
- `:N}
1991
- </div>
1992
- <div class="viewport" part="viewport">${this._renderViewport()}</div>
1993
- ${this._renderStatus()}
1994
- ${this._renderActions()}
1995
- </div>
1996
- `}render(){return M`
1997
- ${this.showTrigger||this.presentation===`dialog`?M`
1998
- <button
1999
- class="trigger-button"
2000
- part="trigger-button"
2001
- type="button"
2002
- ?disabled="${this.disabled}"
2003
- @click="${this._openCapture}"
2004
- ><slot>${this.label}</slot></button>
2005
- `:N}
2006
-
2007
- ${this.presentation===`dialog`?M`
2008
- <dialog
2009
- class="dialog"
2010
- part="dialog"
2011
- aria-modal="true"
2012
- aria-label="${this.heading}"
2013
- @cancel="${e=>{e.preventDefault(),this._handleCancel()}}"
2014
- @click="${e=>{e.target===e.currentTarget&&this._handleCancel()}}"
2015
- >
2016
- ${this.open?this._renderPanel():N}
2017
- </dialog>
2018
- `:M`
2019
- <div class="inline-root" part="inline-root" ?hidden="${!this.open}">
2020
- ${this.open?this._renderPanel():N}
2021
- </div>
2022
- `}
2023
- `}},yh=`solid-ui-photo-capture`;customElements.get(yh)||customElements.define(yh,vh);function bh(e){return e==null||e===``}var xh=w`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& .input-wrapper{width:100%;position:relative;& select{appearance:none;border:1px solid var(--solid-ui-color-gray-400);width:100%;color:var(--solid-ui-color-gray-700);font-size:inherit;cursor:pointer;background:#fff;border-radius:5px;padding:10px 40px 10px 10px}& icon-lucide-chevron-down{color:var(--solid-ui-color-gray-500);width:var(--solid-ui-font-size-lg);height:var(--solid-ui-font-size-lg);pointer-events:none;position:absolute;top:50%;right:15px;transform:translateY(-50%)}}}`,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh;function Jh(e,t,n){Yh(e,t),t.set(e,n)}function Yh(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Xh(e,t,n){return e.set(Qh(e,t),n),n}function Zh(e,t){return e.get(Qh(e,t))}function Qh(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function $h(e,t,n){return(t=tg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eg(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:rg(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||rg(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return ig(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:tg(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function tg(e){var t=ng(e,`string`);return typeof t==`symbol`?t:t+``}function ng(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function rg(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function ig(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function ag(e){return e}Mh=[g(`solid-ui-select`)];var og;new(Kh=(wh=new WeakMap,Th=new WeakMap,Eh=new WeakMap,Dh=new WeakMap,Oh=new WeakMap,kh=new WeakMap,qh=(Nh=F({type:String,reflect:!0}),Fh=F({type:String,reflect:!0}),Lh=F({type:String}),zh=F({type:Boolean,reflect:!0}),Vh=F({type:Array}),Hh=ht(`select`),Wh=pt(),`label`),Ch=class extends P{get[qh](){return Zh(wh,this)}set label(e){Xh(wh,this,e)}get name(){return Zh(Th,this)}set name(e){Xh(Th,this,e)}get value(){return Zh(Eh,this)}set value(e){Xh(Eh,this,e)}get required(){return Zh(Dh,this)}set required(e){Xh(Dh,this,e)}set options(e){this._options=e}get options(){if(this._options)return this._options;let e=this.querySelectorAll(`solid-ui-select-option`);return Array.from(e).map(e=>({value:e.value,label:e.textContent}))}get inputElement(){return Zh(Oh,this)}set inputElement(e){Xh(Oh,this,e)}get _options(){return Zh(kh,this)}set _options(e){Xh(kh,this,e)}constructor(){super(),Jh(this,wh,(Ah(this),Ph(this,``))),Jh(this,Th,Ih(this,``)),Jh(this,Eh,Rh(this,``)),Jh(this,Dh,Bh(this,!1)),Jh(this,Oh,Uh(this,null)),Jh(this,kh,Gh(this,null)),$h(this,`controlTrait`,void 0),this.controlTrait=this.addTrait(new tt(this,{getControlElement:()=>this.inputElement,getInternals:()=>this.getInternals()}))}render(){let e=this.options.some(e=>bh(e.value))?N:M`<option disabled value="" ?selected=${!this.value}>Select an option</option>`;return M`
1673
+ `}onKeyDown(e){e.key===`Enter`&&(e.preventDefault(),this.controlTrait.onSubmit())}},{e:[kh,jh,Nh,Fh,Lh,Th],c:[Qh,Eh]}=Kh(yh,[[Oh,1,`type`],[Ah,1,`placeholder`],[Mh,1,`required`],[Ph,1,`readonly`],[Ih,1,`controlElement`]],Dh,0,void 0,Cn),yh),vh=class extends Zh{constructor(){super(Qh),Gh(this,`styles`,_h),Eh()}},Gh(vh,Rh,void 0),vh);var $h=M`.viewport{background:#ebebeb;border-radius:.5rem;justify-content:center;align-items:center;width:100%;min-height:200px;display:flex;overflow:hidden}.viewport video,.viewport img{object-fit:cover;border-radius:.5rem;width:100%;max-width:260px;height:auto;margin:0 auto;display:block}.status{text-align:center;width:100%;color:var(--photo-capture-muted-text);font-size:.875rem}.status.error{color:var(--color-error,#b00020)}`,eg,tg,ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg,Jg,Yg,Xg,Zg,Qg,$g,e_,t_,n_,r_;function i_(e,t,n){a_(e,t),t.set(e,n)}function a_(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function o_(e,t,n){return e.set(c_(e,t),n),n}function s_(e,t){return e.get(c_(e,t))}function c_(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function l_(e,t,n){return(t=d_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u_(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:p_(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||p_(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return m_(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:d_(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function d_(e){var t=f_(e,`string`);return typeof t==`symbol`?t:t+``}function f_(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function p_(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function m_(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function h_(e){return e}xg=[g(`solid-ui-photo-capture-modal`)];var g_;new(n_=(ng=new WeakMap,rg=new WeakMap,ig=new WeakMap,ag=new WeakMap,og=new WeakMap,sg=new WeakMap,cg=new WeakMap,lg=new WeakMap,ug=new WeakMap,dg=new WeakMap,fg=new WeakMap,pg=new WeakMap,mg=new WeakMap,hg=new WeakMap,gg=new WeakMap,_g=new WeakMap,vg=new WeakMap,r_=(Sg=I({type:String,reflect:!0}),wg=I({type:String,reflect:!0}),Eg=I({type:String,reflect:!0}),Og=I({type:String,reflect:!0}),Ag=I({type:String,reflect:!0}),Mg=I({type:String,attribute:`cancel-label`,reflect:!0}),Pg=I({type:String,attribute:`file-name-prefix`,reflect:!0}),Ig=I({attribute:!1}),Rg=I({type:String,reflect:!0}),Bg=I({type:String,attribute:`capture-format`,reflect:!0}),Hg=I({type:Number,attribute:`capture-quality`}),Wg=I({type:Boolean,attribute:`show-cancel-button`,reflect:!0}),Kg=I({type:String,attribute:`facing-mode`,reflect:!0}),Jg=L(),Xg=L(),Qg=L(),e_=L(),`name`),tg=class extends Pt{constructor(...e){super(...e),i_(this,ng,(yg(this),Cg(this,``))),i_(this,rg,Tg(this,`Take a photo`)),i_(this,ig,Dg(this,`Take Photo`)),i_(this,ag,kg(this,`Use Photo`)),i_(this,og,jg(this,`Retake`)),i_(this,sg,Ng(this,`Cancel`)),i_(this,cg,Fg(this,``)),i_(this,lg,Lg(this,void 0)),i_(this,ug,zg(this,``)),i_(this,dg,Vg(this,`image/png`)),i_(this,fg,Ug(this,void 0)),i_(this,pg,Gg(this,!0)),i_(this,mg,qg(this,`user`)),i_(this,hg,Yg(this,``)),i_(this,gg,Zg(this,``)),i_(this,_g,$g(this,!1)),i_(this,vg,t_(this,null)),l_(this,`stream`,null)}get[r_](){return s_(ng,this)}set name(e){o_(ng,this,e)}get heading(){return s_(rg,this)}set heading(e){o_(rg,this,e)}get captureLabel(){return s_(ig,this)}set captureLabel(e){o_(ig,this,e)}get confirmLabel(){return s_(ag,this)}set confirmLabel(e){o_(ag,this,e)}get retakeLabel(){return s_(og,this)}set retakeLabel(e){o_(og,this,e)}get cancelLabel(){return s_(sg,this)}set cancelLabel(e){o_(sg,this,e)}get fileNamePrefix(){return s_(cg,this)}set fileNamePrefix(e){o_(cg,this,e)}get mediaConstraints(){return s_(lg,this)}set mediaConstraints(e){o_(lg,this,e)}get constraints(){return s_(ug,this)}set constraints(e){o_(ug,this,e)}get captureFormat(){return s_(dg,this)}set captureFormat(e){o_(dg,this,e)}get captureQuality(){return s_(fg,this)}set captureQuality(e){o_(fg,this,e)}get showCancelButton(){return s_(pg,this)}set showCancelButton(e){o_(pg,this,e)}get facingMode(){return s_(mg,this)}set facingMode(e){o_(mg,this,e)}get errorMessage(){return s_(hg,this)}set errorMessage(e){o_(hg,this,e)}get previewUrl(){return s_(gg,this)}set previewUrl(e){o_(gg,this,e)}get startingPreview(){return s_(_g,this)}set startingPreview(e){o_(_g,this,e)}get value(){return s_(vg,this)}set value(e){o_(vg,this,e)}disconnectedCallback(){this.stopStream(),this.revokePreviewUrl(),super.disconnectedCallback()}willUpdate(e){if(super.willUpdate(e),e.has(`value`)){let e=this.value instanceof File?this.value:null;if(e!==this.value){this.value=e;return}this.syncPreviewFromValue(e)}}updated(e){if(!this.value&&!this.stream&&!this.startingPreview&&(e.has(`previewUrl`)||e.has(`value`))&&this.queuePreviewStart(),this.stream){let e=this.shadowRoot?.querySelector(`video`);e&&e.srcObject!==this.stream&&(e.srcObject=this.stream)}}render(){return N`
1674
+ <solid-ui-dialog title=${this.heading}>
1675
+ <solid-ui-dialog-content>
1676
+ ${this.renderViewport()}
1677
+ ${this.renderStatus()}
1678
+ </solid-ui-dialog-content>
1679
+ <solid-ui-dialog-footer>
1680
+ ${this.showCancelButton?N`<solid-ui-button variant="secondary" @click=${()=>this.close()}>${this.cancelLabel}</solid-ui-button>`:P}
1681
+
1682
+ ${this.value?N`
1683
+ <solid-ui-button @click=${this.onRetake}>${this.retakeLabel}</solid-ui-button>
1684
+ <solid-ui-button @click=${this.onConfirm}>${this.confirmLabel}</solid-ui-button>
1685
+ `:N`
1686
+ <solid-ui-button
1687
+ ?disabled=${this.startingPreview||!this.stream}
1688
+ @click=${this.onCapture}
1689
+ >
1690
+ ${this.captureLabel}
1691
+ </solid-ui-button>
1692
+ `}
1693
+ </solid-ui-dialog-footer>
1694
+ </solid-ui-dialog>
1695
+ `}renderViewport(){return N`<div class="viewport">${this.previewUrl?N`<img src="${this.previewUrl}" alt="Captured photo preview" />`:N`<video autoplay playsinline muted></video>`}</div>`}renderStatus(){return this.errorMessage?N`<div class="status error">${this.errorMessage}</div>`:this.startingPreview?N`<div class="status">Opening camera…</div>`:this.value?N`<div class="status">Review the photo before confirming it.</div>`:N`<div class="status">Preview the camera and take a photo when ready.</div>`}onRetake(){this.clearValue(),this.queuePreviewStart()}onConfirm(){this.value&&this.close(this.value)}async onCapture(){let e=this.shadowRoot?.querySelector(`video`);if(!e)return;let t=e.videoWidth||e.clientWidth||640,n=e.videoHeight||e.clientHeight||480,r=document.createElement(`canvas`);r.width=t,r.height=n;let i=r.getContext(`2d`);if(!i){this.errorMessage=`Unable to capture a photo in this browser`;return}i.drawImage(e,0,0,t,n);let a=await new Promise(e=>{r.toBlob(e,this.captureFormat,this.captureQuality)});if(!a){this.errorMessage=`Unable to create an image from the current camera frame`;return}this.value=this.createFileFromBlob(a),this.errorMessage=``}createFileFromBlob(e){let t=e.type||this.captureFormat,n=this.fileExtensionForMimeType(t),r=(this.fileNamePrefix||this.name||`photo`).trim()||`photo`;return new File([e],`${r}-${Date.now()}.${n}`,{type:t})}fileExtensionForMimeType(e){switch(e){case`image/jpeg`:return`jpg`;case`image/webp`:return`webp`;case`image/gif`:return`gif`;default:return`png`}}queuePreviewStart(){this.startPreview().catch(()=>void 0)}stopStream(){if(!this.stream)return;this.stream.getTracks().forEach(e=>e.stop()),this.stream=null;let e=this.shadowRoot?.querySelector(`video`);e&&(e.srcObject=null)}syncPreviewFromValue(e){this.revokePreviewUrl(),e&&(this.stopStream(),this.previewUrl=URL.createObjectURL(e))}clearValue(){this.value=null,this.errorMessage=``}revokePreviewUrl(){this.previewUrl&&URL.revokeObjectURL(this.previewUrl),this.previewUrl=``}async startPreview(){if(!(this.value||this.startingPreview)){if(!navigator.mediaDevices?.getUserMedia){this.errorMessage=`Camera access is not available in this browser`;return}this.startingPreview=!0,this.errorMessage=``;try{let e=await navigator.mediaDevices.getUserMedia(this.resolveMediaConstraints());this.stream=e,this.requestUpdate(),await this.updateComplete;let t=this.shadowRoot?.querySelector(`video`);t&&(t.srcObject=e,await t.play?.().catch(()=>void 0))}catch(e){this.errorMessage=e?.message||`Unable to start the camera preview`}finally{this.startingPreview=!1}}}resolveMediaConstraints(){if(this.mediaConstraints)return this.mediaConstraints;if(this.constraints)try{return JSON.parse(this.constraints)}catch(e){throw Error(`Invalid constraints JSON: ${e.message}`)}return{video:!this.facingMode||{facingMode:{ideal:this.facingMode}}}}},{e:[Cg,Tg,Dg,kg,jg,Ng,Fg,Lg,zg,Vg,Ug,Gg,qg,Yg,Zg,$g,t_,yg],c:[g_,bg]}=u_(tg,[[Sg,1,`name`],[wg,1,`heading`],[Eg,1,`captureLabel`],[Og,1,`confirmLabel`],[Ag,1,`retakeLabel`],[Mg,1,`cancelLabel`],[Pg,1,`fileNamePrefix`],[Ig,1,`mediaConstraints`],[Rg,1,`constraints`],[Bg,1,`captureFormat`],[Hg,1,`captureQuality`],[Wg,1,`showCancelButton`],[Kg,1,`facingMode`],[Jg,1,`errorMessage`],[Xg,1,`previewUrl`],[Qg,1,`startingPreview`],[e_,1,`value`]],xg,0,void 0,Pt),tg),eg=class extends h_{constructor(){super(g_),l_(this,`styles`,$h),bg()}},l_(eg,n_,void 0),eg);var __=g_,v_,y_,b_,x_,S_,C_,w_,T_,E_,D_,O_,k_,A_,j_,M_,N_,P_,F_,I_,L_,R_,z_,B_,V_,H_,U_,W_,G_,K_,q_,J_;function Y_(e,t,n){return(t=nv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X_(e,t,n){Z_(e,t),t.set(e,n)}function Z_(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Q_(e,t,n){return e.set(ev(e,t),n),n}function $_(e,t){return e.get(ev(e,t))}function ev(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function tv(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:iv(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||iv(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return av(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:nv(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function nv(e){var t=rv(e,`string`);return typeof t==`symbol`?t:t+``}function rv(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function iv(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function av(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}x_=[g(`solid-ui-photo-capture`)];var ov,sv=new WeakMap,cv=new WeakMap,lv=new WeakMap,uv=new WeakMap,dv=new WeakMap,fv=new WeakMap,pv=new WeakMap,mv=new WeakMap,hv=new WeakMap,gv=new WeakMap,_v=new WeakMap,vv=new WeakMap,yv=new WeakMap;J_=(S_=I({type:String,reflect:!0}),w_=I({type:String,reflect:!0}),E_=I({type:String,attribute:`capture-label`,reflect:!0}),O_=I({type:String,attribute:`confirm-label`,reflect:!0}),A_=I({type:String,attribute:`retake-label`,reflect:!0}),M_=I({type:String,attribute:`cancel-label`,reflect:!0}),P_=I({type:String,attribute:`facing-mode`,reflect:!0}),I_=I({type:String,reflect:!0}),R_=I({type:String,attribute:`capture-format`,reflect:!0}),B_=I({type:Number,attribute:`capture-quality`}),H_=I({type:Boolean,attribute:`show-cancel-button`,reflect:!0}),W_=I({type:String,attribute:`file-name-prefix`,reflect:!0}),K_=I({attribute:!1}),`label`),v_=class extends Cn{constructor(...e){super(...e),X_(this,sv,(y_(this),C_(this,`Take Photo`))),X_(this,cv,T_(this,`Take a photo`)),X_(this,lv,D_(this,`Take Photo`)),X_(this,uv,k_(this,`Use Photo`)),X_(this,dv,j_(this,`Retake`)),X_(this,fv,N_(this,`Cancel`)),X_(this,pv,F_(this,`user`)),X_(this,mv,L_(this,``)),X_(this,hv,z_(this,`image/png`)),X_(this,gv,V_(this,void 0)),X_(this,_v,U_(this,!0)),X_(this,vv,G_(this,``)),X_(this,yv,q_(this,void 0)),Y_(this,`controlElement`,null)}get[J_](){return $_(sv,this)}set label(e){Q_(sv,this,e)}get heading(){return $_(cv,this)}set heading(e){Q_(cv,this,e)}get captureLabel(){return $_(lv,this)}set captureLabel(e){Q_(lv,this,e)}get confirmLabel(){return $_(uv,this)}set confirmLabel(e){Q_(uv,this,e)}get retakeLabel(){return $_(dv,this)}set retakeLabel(e){Q_(dv,this,e)}get cancelLabel(){return $_(fv,this)}set cancelLabel(e){Q_(fv,this,e)}get facingMode(){return $_(pv,this)}set facingMode(e){Q_(pv,this,e)}get constraints(){return $_(mv,this)}set constraints(e){Q_(mv,this,e)}get captureFormat(){return $_(hv,this)}set captureFormat(e){Q_(hv,this,e)}get captureQuality(){return $_(gv,this)}set captureQuality(e){Q_(gv,this,e)}get showCancelButton(){return $_(_v,this)}set showCancelButton(e){Q_(_v,this,e)}get fileNamePrefix(){return $_(vv,this)}set fileNamePrefix(e){Q_(vv,this,e)}get mediaConstraints(){return $_(yv,this)}set mediaConstraints(e){Q_(yv,this,e)}render(){return N`
1696
+ <slot name="trigger" @click=${this.onClick}>
1697
+ <solid-ui-button ?disabled="${this.disabled}">${this.label}</solid-ui-button>
1698
+ </slot>
1699
+ `}onClick(){jn(__,{props:{name:this.name,heading:this.heading,captureLabel:this.captureLabel,confirmLabel:this.confirmLabel,retakeLabel:this.retakeLabel,cancelLabel:this.cancelLabel,fileNamePrefix:this.fileNamePrefix,mediaConstraints:this.mediaConstraints,constraints:this.constraints,captureFormat:this.captureFormat,captureQuality:this.captureQuality,showCancelButton:this.showCancelButton,facingMode:this.facingMode},onClose:e=>this.controlTrait.setValue(e??null)})}},{e:[C_,T_,D_,k_,j_,N_,F_,L_,z_,V_,U_,G_,q_,y_],c:[ov,b_]}=tv(v_,[[S_,1,`label`],[w_,1,`heading`],[E_,1,`captureLabel`],[O_,1,`confirmLabel`],[A_,1,`retakeLabel`],[M_,1,`cancelLabel`],[P_,1,`facingMode`],[I_,1,`constraints`],[R_,1,`captureFormat`],[B_,1,`captureQuality`],[H_,1,`showCancelButton`],[W_,1,`fileNamePrefix`],[K_,1,`mediaConstraints`]],x_,0,void 0,Cn),b_();async function bv(e,n){let r=(0,t.sym)(n);return e.holds(void 0,void 0,void 0,r)&&e.removeStatements(e.statementsMatching(void 0,void 0,void 0,r)),await e.fetcher.load(n,{force:!0,clearPreviousData:!0})}function xv(e,t){let n=t.map(t=>{let n=e.any(t,R.ui(`sequence`)),r=n?Number(n.value):9999;return[Number.isNaN(r)?9999:r,t]});return n.sort((e,t)=>e[0]-t[0]),n.map(e=>e[1])}function Sv(e,t){let n=e.findTypeURIs(t),r=e.bottomTypeURIs(n),i=[];for(let e in r)i.push(e);return i[0]}function Cv(e,n){let r=n.split(`#`)[0],i=n.includes(`#`)?n.split(`#`)[1]:null;if(i){let n=(0,t.sym)(r+`#`+i);if(e.holds(n,R.rdf(`type`),R.ui(`Form`)))return n}return e.each(null,R.rdf(`type`),R.ui(`Form`)).find(e=>e.termType===`NamedNode`)||null}var wv=d({LogLevel:()=>Mv,alert:()=>Wv,clear:()=>Gv,debug:()=>Bv,dumpHTML:()=>qv,error:()=>Hv,escapeForXML:()=>Xv,info:()=>Vv,logAscending:()=>Jv,logDescending:()=>Yv,msg:()=>Rv,setInternals:()=>Zv,setLevel:()=>Kv,success:()=>Uv,warn:()=>zv}),Tv=1,Ev=2,Dv=4,Ov=8,kv=16,Av=32,jv=63,Mv=function(e){return e[e.Error=1]=`Error`,e[e.Warning=2]=`Warning`,e[e.Message=4]=`Message`,e[e.Success=8]=`Success`,e[e.Info=16]=`Info`,e[e.Debug=32]=`Debug`,e[e.All=63]=`All`,e}({}),Nv=7,Pv=!1,Fv=document,Iv=window;function Lv(e,t=Dv,n=`mesg`){if(Nv&t)if(Fv!==void 0){let t=Fv.getElementById(`status`);if(!t)return;let r=Fv.createElement(`span`);r.setAttribute(`class`,n);let i=new Date;r.innerHTML=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()} [${n}] ${Xv(e)}<br/>`,Pv?t.insertBefore(r,t.firstChild):t.appendChild(r)}else typeof console<`u`&&console.log(e)}function Rv(e){Lv(e)}function zv(e){Lv(e,Ev,`warn`)}function Bv(e){Lv(e,Av,`dbug`)}function Vv(e){Lv(e,kv,`info`)}function Hv(e){Lv(e,Tv,`eror`)}function Uv(e){Lv(e,Ov,`good`)}function Wv(e){Iv&&Iv.alert!==void 0?Iv.alert(e):zv(e)}function Gv(){let e=Fv?.getElementById(`status`);e&&(e.innerHTML=``)}function Kv(e){Nv=jv,Bv(`Log level is now `+e),Nv=e}function qv(){if(!Fv)return;let e=Nv;Nv=jv,Bv(Fv?.body?.innerHTML||``),Nv=e}function Jv(){Pv=!0}function Yv(){Pv=!1}function Xv(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function Zv(e,t){Iv=e,Fv=t}var Qv={log:wv,ns:R,rdf:t};function V(e,t=!1){function n(e){return t?e.slice(0,1).toUpperCase()+e.slice(1):e}function r(e){let t=``;e.slice(-1)===`/`&&(e=e.slice(0,-1));for(let n=0;n<e.length;n++){if(e[n]===`_`||e[n]===`-`){t+=` `;continue}t+=e[n],n+1<e.length&&e[n].toUpperCase()!==e[n]&&e[n+1].toLowerCase()!==e[n+1]&&(t+=` `)}return t.slice(0,4)===`has `&&(t=t.slice(4)),n(t)}let i=ey(e);if(i)return n(i.value);if(e.termType===`BlankNode`)return`...`;if(e.termType===`Collection`)return`(`+e.elements.length+`)`;let a=e.uri;if(a===void 0)return e.toString();try{a=a.split(`/`).map(decodeURIComponent).join(`/`)}catch{for(let e=a.length-3;e>0;e--){let t=`0123456789abcefABCDEF`;for(;a[e]===`%`&&t.indexOf(a[e+1])>=0&&t.indexOf(a[e+2])>=0;)a=a.slice(0,e)+String.fromCharCode(parseInt(a.slice(e+1,e+3),16))+a.slice(e+3)}}a=$v(a,`/profile/card#me`),a=$v(a,`#this`),a=$v(a,`#me`);let o=a.indexOf(`#`);if(o>=0)return r(a.slice(o+1));let s=a.lastIndexOf(`/`,a.length-2);return s>=0&&s<e.uri.length?r(a.slice(s+1)):n(decodeURIComponent(e.uri))}function $v(e,t){let n=t.length*-1;return e.slice(n)===t?e.slice(0,n):e}function ey(e){return n.store.any(e,Qv.ns.ui(`label`))||n.store.any(e,Qv.ns.link(`message`))||n.store.any(e,Qv.ns.vcard(`fn`))||n.store.any(e,Qv.ns.foaf(`name`))||n.store.any(e,Qv.ns.dct(`title`))||n.store.any(e,Qv.ns.dc(`title`))||n.store.any(e,Qv.ns.rss(`title`))||n.store.any(e,Qv.ns.contact(`fullName`))||n.store.any(e,n.store.sym(`http://www.w3.org/2001/04/roadmap/org#name`))||n.store.any(e,Qv.ns.cal(`summary`))||n.store.any(e,Qv.ns.foaf(`nick`))||n.store.any(e,Qv.ns.as(`name`))||n.store.any(e,Qv.ns.schema(`name`))||n.store.any(e,Qv.ns.rdfs(`label`))||n.store.any(e,n.store.sym(`http://www.w3.org/2004/02/skos/core#prefLabel`))}var ty=d({AJARImage:()=>Sy,RDFComparePredicateObject:()=>Ay,RDFComparePredicateSubject:()=>jy,addLoadEvent:()=>yy,ancestor:()=>hy,beep:()=>sy,clearVariableNames:()=>ay,emptyNode:()=>py,escapeForXML:()=>Ey,findPos:()=>by,genUuid:()=>ly,getAbout:()=>gy,getEyeFocus:()=>xy,getTarget:()=>my,getTerm:()=>_y,hashColor:()=>cy,include:()=>vy,label:()=>V,labelForXML:()=>Dy,labelWithOntology:()=>Ty,newVariableName:()=>iy,ontologyLabel:()=>wy,predParentOf:()=>My,predicateLabel:()=>ky,predicateLabelForXML:()=>Oy,shortName:()=>Cy,stackString:()=>fy,syncTableToArray:()=>uy,syncTableToArrayReOrdered:()=>dy}),ny={log:wv,ns:R,rdf:t},ry=0;function iy(){return`v`+ry++}function ay(){ry=0}var oy;typeof AudioContext<`u`?oy=AudioContext:typeof window<`u`&&(oy=window.AudioContext||window.webkitAudioContext);function sy(){if(!oy)return;let e=new oy;return function(t,n,r,i){t=+(t||.3),r||=`sine`,typeof i!=`function`&&(i=function(){});let a=e.createOscillator();a.type=r,a.frequency.value=n||256,a.connect(e.destination),a.start(0),a.stop(t)}}function cy(e){return e=e.uri||e,`#`+(function(e){return e.split(``).reduce(function(e,t){return e=(e<<5)-e+t.charCodeAt(0),e&e},0)}(e)&16777215|12632256).toString(16)}function ly(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function uy(e,t,n,r){let i,a,o;for(o=0;o<e.children.length;o++)a=e.children[o],a.trashMe=!0;for(let s=0;s<t.length;s++){let c=t[s];for(i=!1,o=0;o<e.children.length;o++)if(a=e.children[o],a.subject&&a.subject.sameTerm(c)){if(r){let e=r(a,c);e&&e!==a&&(a.parentNode.replaceChild(e,a),e.subject=c,a=e)}a.trashMe=!1,i=!0;break}if(!i){let t=n(c);if(s>=e.children.length)e.appendChild(t);else{let n=e.children[s];e.insertBefore(t,n)}t.subject=c}}for(o=0;o<e.children.length;o++)a=e.children[o],a.trashMe&&e.removeChild(a)}function dy(e,t,n){let r={};for(let t=0;t<e.children.length;t++){let n=e.children[t];r[n.subject.toNT()]=n}for(let i=0;i<t.length;i++){let a=t[i];if(i>=e.children.length){let t=n(a);t.subject=a,e.appendChild(t)}else{let t=e.children[i];if(!t.subject.sameTerm(a)){let i=r[a.toNT()];if(i)e.removeChild(i),e.insertBefore(i,t);else{let e=n(a);t.before(e),e.subject=a}}}}for(;e.children.length>t.length;)e.removeChild(e.children[e.children.length-1])}function fy(e){let t=``+e+`
1700
+ `,n;if(!e.stack)return t+`No stack available.
1701
+ `;let r=e.stack.toString().split(`
1702
+ `),i=[];for(n=0;n<r.length;n++){let e=r[n];if(e.indexOf(`ecmaunit.js`)>-1)break;e.charAt(0)===`(`&&(e=`function`+e);let t=e.split(`@`);i.push(t)}for(n=0;n<i.length;n++)t+=` `+i[n][1]+`
1703
+ `+i[n][0];return t}function py(e){let t=e.childNodes,n=t.length;for(let r=n-1;r>=0;r--)e.removeChild(t[r]);return e}function my(e){let t;return e||=window.event,e.target?t=e.target:e.srcElement&&(t=e.srcElement),t.nodeType===3&&(t=t.parentNode),t}function hy(e,t){let n;for(n=e;n;n=n.parentNode)try{if(n.tagName===t)return n}catch{return}}function gy(e,t){let n,r;for(n=t;n&&n.nodeType===1;n=n.parentNode)if(r=n.getAttribute(`about`),r)return e.fromNT(r);ny.log.debug(`getAbout: No about found`)}function _y(e){let t=e.parentNode,r=t?t.AJAR_statement:void 0;switch(r?e.className:``){case`pred`:case`pred selected`:return r.predicate;case`obj`:case`obj selected`:return t.AJAR_inverse?r.subject:r.object;case``:case`selected`:return gy(n.store,e);case`undetermined selected`:return e.nextSibling?r.predicate:t.AJAR_inverse?r.subject:r.object}}function vy(e,t){let n=e.createElement(`script`);return n.setAttribute(`type`,`text/javascript`),n.setAttribute(`src`,t),n}function yy(e){let t=window.onload;typeof window.onload==`function`?window.onload=function(){t(),e()}:window.onload=e}function by(e){let t=e.ownerDocument.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return[n.left-t.left,n.top-t.top]}function xy(e,t,n,r){r||=window;let i=by(e)[1],a=window.SolidAppContext||{},o=i-(a&&a.scroll||52)-r.scrollY;if(t){if(n){r.scrollBy(0,i+e.clientHeight-(r.scrollY+r.innerHeight));return}r.scrollBy(0,o);return}let s=r.setInterval(l,50),c=0;function l(){r.scrollBy(0,o/10),c++,c===10&&r.clearInterval(s)}}function Sy(e,t,n,r){r||=document;let i=r.createElement(`img`);return i.setAttribute(`src`,e),i.addEventListener(`copy`,function(e){e.clipboardData.setData(`text/plain`,``),e.clipboardData.setData(`text/html`,``),e.preventDefault()}),n!==void 0&&i.setAttribute(`title`,n),i}function Cy(e){let t=e;`#/`.indexOf(t[t.length-1])>=0&&(t=t.slice(0,-1));let n=[];for(let e in this.prefixes)n[this.prefixes[e]]=e;let r,i=function(e){return e!==`ns`&&(r=e,!0)},a,o=t.lastIndexOf(`#`);for(o>=0&&(t=t.slice(o-1));;){let e=t.lastIndexOf(`/`);for(e>=0&&(t=t.slice(e+1)),a=0;a<t.length&&this.prefixchars.indexOf(t[a]);)a++;if(t=t.slice(0,a),t.length<6&&i(t)||i(t.slice(0,3))||i(t.slice(0,2))||i(t.slice(0,4))||i(t.slice(0,1))||i(t.slice(0,5)))return r;for(a=0;;a++)if(i(t.slice(0,3)+a))return r}}function wy(e){if(e.uri===void 0)return`??`;let t=e.uri,n=[],r=t.lastIndexOf(`#`),i;if(r>=0)t=t.slice(0,r+1);else if(r=t.lastIndexOf(`/`),r>=0)t=t.slice(0,r+1);else return e.uri+`?!`;for(let e in ny.ns)n[ny.ns[e]]=e;try{return n[t]}catch{}for(t=t.slice(0,-1);t;)if(r=t.lastIndexOf(`/`),r>=0){if(i=t.slice(r+1),t=t.slice(0,r),i!==`ns`&&`0123456789`.indexOf(i[0])<0)return i}else return e.uri+`!?`}function Ty(e,t){let r=n.store.findTypeURIs(e);return r[ny.ns.rdf(`Predicate`).uri]||r[ny.ns.rdfs(`Class`).uri]?V(e,t)+` (`+wy(e)+`)`:V(e,t)}function Ey(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`)}function Dy(e){return Ey(V(e))}function Oy(e,t){return Ey(ky(e,t))}function ky(e,t){let r=V(e);if(t){let t=n.store.any(e,ny.ns.owl(`inverseOf`))||n.store.any(void 0,ny.ns.owl(`inverseOf`),e);return t?V(t):r===`type`?`...`:`is `+r+` of`}return r}function Ay(e,t){let n=e.predicate.compareTerm(t.predicate);return n===0?e.object.compareTerm(t.object):n}function jy(e,t){let n=e.predicate.compareTerm(t.predicate);return n===0?e.subject.compareTerm(t.subject):n}function My(e){let t=e;for(;;)if(t.getAttribute(`predTR`))return t;else if(t.previousSibling&&t.previousSibling.nodeName===`TR`)t=t.previousSibling;else return ny.log.error(`Could not find predParent`),e}var H={highlightColor:`#7C4DFF`,formBorderColor:`#888888`,formHeadingColor:`#888888`,lowProfileLinkColor:`#3B5998`,formFieldNameBoxWidth:`8em`,mediaModuleCanvasWidth:`640`,mediaModuleCanvasHeight:`480`,textInputSize:20,tabBorderRadius:`0.2em`,textInputBackgroundColor:`#eef`,textInputBackgroundColorUneditable:`#fff`,textInputColor:`#000`,textInputColorPending:`#888`,defaultErrorBackgroundColor:`#fee`,participationDefaultBackground:`white`,basicMaxLength:`4096`},U={checkboxStyle:`color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;`,checkboxInputStyle:`font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em;`,fieldLabelStyle:`color: #3B5998; text-decoration: none;`,formSelectStyle:`background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;`,textInputStyle:`background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;`,textInputStyleUneditable:`background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;`,buttonStyle:`background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;`,commentStyle:`padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;`,iconStyle:`width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;`,smallButtonStyle:`margin: 0.2em; width: 1em; height:1em;`,classIconStyle:`width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;`,confirmPopupStyle:`padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;`,messageBodyStyle:`white-space: pre-wrap; width: 99%; font-size:100%; border: 0.07em solid #eee; border-radius:0.2em; padding: .3em 0.5em; margin: 0.1em;`,pendingeditModifier:`color: #bbb;`,personaBarStyle:`width: 100%; height: 4em; background-color: #eee; vertical-align: middle;`,searchInputStyle:`border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;`,autocompleteRowStyle:`border: 0.2em solid straw;`,signInAndUpButtonStyle:`padding: 1em; border-radius:0.2em; font-size: 100%;`,headerBannerLoginInput:`margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;`,signUpBackground:`background-color: #eef;`,signInBackground:`background-color: #efe;`,heading1Style:`font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;`,heading2Style:`font-size: 130%; font-weight: bold; color: #888888; padding: 0.4em; margin: 0.7em 0.0em;`,heading3Style:`font-size: 120%; font-weight: bold; color: #888888; padding: 0.3em; margin: 0.7em 0.0em;`,heading4Style:`font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;`,formHeadingStyle:`font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;`,formTextInput:`font-size: 100%; margin: 0.1em; padding: 0.1em;`,formGroupStyle:[`padding-left: 0em; border: 0.0em solid ${H.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.05em solid ${H.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.1em solid ${H.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.2em solid ${H.formBorderColor}; border-radius: 0.2em;`],formFieldLabelStyle:`color: ${H.lowProfileLinkColor}; text-decoration: none;`,formFieldNameBoxStyle:`padding: 0.3em; vertical-align: middle; width:${H.formFieldNameBoxWidth};`,multilineTextInputStyle:`font-size:100%; white-space: pre-wrap; background-color: #eef; border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;`,renderAsDivStyle:`display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;`,imageDivStyle:`width:2.5em; padding:0.5em; height: 2.5em;`,linkDivStyle:`width:2em; padding:0.5em; height: 4em;`,aclControlBoxContainer:`margin: 1em;`,aclControlBoxHeader:`font-size: 120%; margin: 0 0 1rem;`,aclControlBoxStatus:`display: none; margin: 1rem 0;`,aclControlBoxStatusRevealed:`display: block;`,aclGroupContent:`maxWidth: 650;`,accessGroupList:`display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%;`,accessGroupListItem:`display: grid; grid-template-columns: 100px auto 30%;`,defaultsController:`display: flex;`,defaultsControllerNotice:`color: #888; flexGrow: 1; fontSize: 80%;`,bigButton:`background-color: white; color: black; text-wrap: pretty; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em;`,group:`color: #888;`,group1:`color: green;`,group2:`color: #cc0;`,group3:`color: orange;`,group5:`color: red;`,group9:`color: blue;`,group13:`color: purple;`,trustedAppAddApplicationsTable:`background-color: #eee;`,trustedAppCancelButton:`float: right;`,trustedAppControllerI:`border-color: orange; border-radius: 1em; border-width: 0.1em;`,temporaryStatusInit:`background: green;`,temporaryStatusEnd:`background: transparent; transition: background 5s linear;`,headerUserMenuLink:`background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none;`,headerUserMenuLinkHover:`background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);`,headerUserMenuTrigger:`background: none; border: 0; cursor: pointer; width: 60px; height: 60px;`,headerUserMenuTriggerImg:`border-radius: 50%; height: 56px; width: 28px !important;`,headerUserMenuButton:`background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%;`,headerUserMenuButtonHover:`background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);`,headerUserMenuList:`list-style: none; margin: 0; padding: 0;`,headerUserMenuListDisplay:`list-style: none; margin: 0; padding: 0; display:true;`,headerUserMenuNavigationMenu:`background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true;`,headerUserMenuNavigationMenuNotDisplayed:`background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none;`,headerUserMenuListItem:`border-bottom: solid 1px #000000;`,headerUserMenuPhoto:`border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;`,headerBanner:`box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px;`,headerBannerLink:`display: block;`,headerBannerRightMenu:`display: flex;`,headerBannerLogin:`margin-left: auto;`,allChildrenVisible:`display:true;`,headerBannerUserMenu:`border-left: solid 1px #000000; margin-left: auto;`,headerBannerHelpMenu:`border-left: solid 1px #000000; margin-left: auto;`,headerBannerIcon:`background-size: 65px 60px !important; height: 60px !important; width: 65px !important;`,footer:`border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em;`,primaryButton:`background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;`,primaryButtonHover:`background-color: #9f7dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;`,primaryButtonNoBorder:`background-color: #ffffff; color: #7c4dff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;`,primaryButtonNoBorderHover:`background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;`,secondaryButton:`background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;`,secondaryButtonHover:`background-color: #37cde6; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;`,secondaryButtonNoBorder:`background-color: #ffffff; color: #01c9ea; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;`,secondaryButtonNoBorderHover:`background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;`,controlStyle:`border-radius: 0.5em; margin: 0.8em; width:${H.mediaModuleCanvasWidth}; height:${H.mediaModuleCanvasHeight};`,dragEvent:`background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;`,dropEvent:`background-color: white; border: 0em solid black;`,restoreStyle:`background-color: white;`,errorCancelButton:`width: 2em; height: 2em; align: right;`,errorMessageBlockStyle:`margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;`,notepadStyle:`padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;`,upstreamStatus:`width: 50%;`,downstreamStatus:`width: 50%;`,baseStyle:`font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;`,headingCore:`font-family: sans-serif; font-weight: bold; border: none;`,headingStyle:[`font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;`,`font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;`,`font-size: 150%; padding-top: 1em; padding-bottom: 1em; width: 100%;`],participantsStyle:`margin: 0.8em;`,participantsBlock:`height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;`,personTableTD:`vertical-align: middle;`,tabsNavElement:`margin: 0;`,tabsRootElement:`display: flex; height: 100%; width: 100%;`,tabsMainElement:`margin: 0; width:100%; height: 100%;`,tabContainer:`list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;`,makeNewSlot:`background: none; border: none; font: inherit; cursor: pointer;`,ellipsis:`position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;`};U.setStyle=function(e,t){e.style=U[t]};var Ny={[R.ui(`ColorField`).uri]:{size:9,type:`color`,style:`height: 3em;`,dt:`color`,pattern:/^\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\s*$/},[R.ui(`DateField`).uri]:{size:20,type:`date`,dt:`date`,pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\s*$/},[R.ui(`DateTimeField`).uri]:{size:20,type:`datetime-local`,dt:`dateTime`,pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?(T[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?)?Z?\s*$/},[R.ui(`TimeField`).uri]:{size:10,type:`time`,dt:`time`,pattern:/^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/},[R.ui(`IntegerField`).uri]:{size:12,style:`text-align: right;`,dt:`integer`,pattern:/^\s*-?[0-9]+\s*$/},[R.ui(`DecimalField`).uri]:{size:12,style:`text-align: right;`,dt:`decimal`,pattern:/^\s*-?[0-9]*(\.[0-9]*)?\s*$/},[R.ui(`FloatField`).uri]:{size:12,style:`text-align: right;`,dt:`float`,pattern:/^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/},[R.ui(`SingleLineTextField`).uri]:{},[R.ui(`NamedNodeURIField`).uri]:{namedNode:!0},[R.ui(`TextField`).uri]:{},[R.ui(`PhoneField`).uri]:{size:20,defaultInputValue:`tel:`,pattern:/^\+?[\d-]+[\d]*$/},[R.ui(`EmailField`).uri]:{size:30,defaultInputValue:`mailto:`,pattern:/^\s*.*@.*\..*\s*$/},[R.ui(`Group`).uri]:{style:U.formGroupStyle},[R.ui(`Comment`).uri]:{element:`p`,style:U.commentStyle},[R.ui(`Heading`).uri]:{element:`h3`,style:U.formHeadingStyle}},Py=new class{get store(){throw Error(`Cannot use RDF forms without a store`)}},Fy=w(Symbol(`storeContext`)),Iy,Ly,Ry,zy,By,Vy,Hy,Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy,Qy;function $y(e,t,n){return(t=ob(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eb(e,t,n){tb(e,t),t.set(e,n)}function tb(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function nb(e,t,n){return e.set(ib(e,t),n),n}function rb(e,t){return e.get(ib(e,t))}function ib(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function ab(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:cb(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||cb(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return lb(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:ob(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function ob(e){var t=sb(e,`string`);return typeof t==`symbol`?t:t+``}function sb(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function cb(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function lb(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}zy=[g(`solid-ui-rdf-input`)];var ub,db=new WeakMap,fb=new WeakMap,pb=new WeakMap,mb=new WeakMap,hb=new WeakMap,gb=new WeakMap;Qy=(By=A({context:Fy,subscribe:!0}),Hy=I({attribute:!1,type:Object}),Wy=I({attribute:!1,type:Object}),Ky=I({type:Number}),Jy=L(),Xy=I({type:Boolean,reflect:!0}),`storeContext`),Iy=class extends F{get[Qy](){return rb(db,this)}set storeContext(e){nb(db,this,e)}get formSubject(){return rb(fb,this)}set formSubject(e){nb(fb,this,e)}get dataSubject(){return rb(pb,this)}set dataSubject(e){nb(pb,this,e)}get storeVersion(){return rb(mb,this)}set storeVersion(e){nb(mb,this,e)}get localInputValue(){return rb(hb,this)}set localInputValue(e){nb(hb,this,e)}get readonly(){return rb(gb,this)}set readonly(e){nb(gb,this,e)}constructor(){super(),eb(this,db,(Ly(this),Vy(this,Py))),eb(this,fb,Uy(this,null)),eb(this,pb,Gy(this,null)),eb(this,mb,qy(this,0)),eb(this,hb,Yy(this,null)),$y(this,`_updateInFlight`,!1),$y(this,`_pendingUpdateValue`,null),eb(this,gb,Zy(this,!0)),this.id=j()}render(){let e=this.getDocument(this.formSubject),t=this.getFormProperty(this.formSubject,R.ui(`property`),e),n=this.getInputLabel(this.formSubject,t,e),r=this.getReadOnly(this.readonly,this.formSubject,e),i=this.formSubject?Sv(this.storeContext.store,this.formSubject):void 0,a=i?Ny[i]??{}:{},o=a.type??`text`,s=this.getSelectedTerm(this.dataSubject,t,this.formSubject,a),c=r?``:this.defaultInputValue(a),l=this._updateInFlight||this._pendingUpdateValue!==null?this.localInputValue??``:this.termToInputValue(s);return N`
1704
+ <solid-ui-input
1705
+ label="${n}"
1706
+ name="name-${this.id}"
1707
+ .value=${l}
1708
+ .placeholder=${c}
1709
+ type="${o}"
1710
+ ?readonly=${r}
1711
+ @input=${this.updateData}
1712
+ ></solid-ui-input>`}getDocument(e){return e?.doc?e.doc():void 0}getFormProperty(e,t,n){if(e)return this.storeContext.store.any(e,t,null,n)}getInputLabel(e,t,n){if(!e)return``;let r=this.storeContext.store.any(e,R.ui(`label`),null,n),i=t?V(t,!0):``;return r?r.value:i}getReadOnly(e,t,n){return t&&e===!1?!!this.storeContext.store.anyJS(t,R.ui(`suppressEmptyUneditable`),null,n):e}getSelectedTerm(e,t,n,r){let i=n?this.storeContext.store.any(n,R.ui(`default`)):void 0;return!t||!e?i:this.storeContext.store.any(e,t)||i}termToInputValue(e){if(!e||!(`value`in e)||!e.value)return``;try{return decodeURIComponent(e.value)}catch{return String(e.value)}}defaultInputValue(e={}){return(e.defaultInputValue??``).replace(/ /g,``)}async updateData(e){let t=e.target.value;this.localInputValue=t,this._pendingUpdateValue=t,!this._updateInFlight&&await this.runPendingUpdate()}async runPendingUpdate(){if(this._pendingUpdateValue===null)return;let e=this._pendingUpdateValue;this._pendingUpdateValue=null,this._updateInFlight=!0;let n=this.getFormProperty(this.formSubject,R.ui(`property`),this.getDocument(this.formSubject));if(!n||!this.dataSubject){this._updateInFlight=!1,this.localInputValue=``;return}let r=this.getDocument(this.dataSubject);if(r&&this.storeContext.store.updater?.editable(r)===!1){this._updateInFlight=!1;return}let i=this.storeContext.store.statementsMatching(this.dataSubject,n),a=[];if(e){let r,o=this.formSubject?Sv(this.storeContext.store,this.formSubject):void 0,s=o?Ny[o]??{}:{};s.namedNode?r=this.storeContext.store.sym(e):s.defaultInputValue?(r=encodeURIComponent(e.replace(/ /g,``)),r=this.storeContext.store.sym(s.defaultInputValue+r)):r=s.dt?new t.Literal(e.trim(),void 0,R.xsd(s.dt)):new t.Literal(e),a=i.map(e=>(0,t.st)(e.subject,e.predicate,r,e.why)),a.length===0&&(a=[(0,t.st)(this.dataSubject,n,r,this.getDocument(this.dataSubject))])}try{await this.storeContext.store.updater.updateMany(i,a),this.storeVersion+=1}catch(e){console.error(`RDFInput update failed`,e)}finally{this._updateInFlight=!1}this._pendingUpdateValue!==null&&await this.runPendingUpdate()}},{e:[Vy,Uy,Gy,qy,Yy,Zy,Ly],c:[ub,Ry]}=ab(Iy,[[By,1,`storeContext`],[Hy,1,`formSubject`],[Wy,1,`dataSubject`],[Ky,1,`storeVersion`],[Jy,1,`localInputValue`],[Xy,1,`readonly`]],zy,0,void 0,F),Ry();var _b,vb,yb,bb,xb,Sb,Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb;function Ib(e,t,n){Lb(e,t),t.set(e,n)}function Lb(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Rb(e,t,n){return e.set(Bb(e,t),n),n}function zb(e,t){return e.get(Bb(e,t))}function Bb(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Vb(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Wb(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Wb(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Gb(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Hb(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Hb(e){var t=Ub(e,`string`);return typeof t==`symbol`?t:t+``}function Ub(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Wb(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Gb(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}var Kb={fromAttribute(e){if(!e)return null;try{return new URL(e)}catch{return null}},toAttribute(e){return e||null}},qb=e=>e?.href??``;bb=[g(`solid-ui-rdf-form`)];var Jb,Yb=new WeakMap,Xb=new WeakMap,Zb=new WeakMap,Qb=new WeakMap,$b=new WeakMap,ex=new WeakMap,tx=new WeakMap;Fb=(xb=A({context:Fy,subscribe:!0}),Cb=I({attribute:!1}),Tb=L(),Db=L(),kb=L(),jb=I({converter:Kb}),Nb=I({converter:Kb}),`storeContext`),_b=class extends F{constructor(...e){super(...e),Ib(this,Yb,(vb(this),Sb(this,Py))),Ib(this,Xb,wb(this,null)),Ib(this,Zb,Eb(this,!0)),Ib(this,Qb,Ob(this,0)),Ib(this,$b,Ab(this,!1)),Ib(this,ex,Mb(this,null)),Ib(this,tx,Pb(this,null))}get[Fb](){return zb(Yb,this)}set storeContext(e){Rb(Yb,this,e)}get passedInStore(){return zb(Xb,this)}set passedInStore(e){Rb(Xb,this,e)}get currentStore(){return this.passedInStore??this.storeContext.store}get entireDataIsReadonly(){return zb(Zb,this)}set entireDataIsReadonly(e){Rb(Zb,this,e)}get _loadVersion(){return zb(Qb,this)}set _loadVersion(e){Rb(Qb,this,e)}get _documentsLoaded(){return zb($b,this)}set _documentsLoaded(e){Rb($b,this,e)}get formUrl(){return zb(ex,this)}set formUrl(e){Rb(ex,this,e)}get subjectUrl(){return zb(tx,this)}set subjectUrl(e){Rb(tx,this,e)}render(){if(!this._documentsLoaded)return N``;let e=this.currentStore,n=qb(this.subjectUrl);n&&e.updater?.editable(n)!==void 0&&e.updater?.editable(n)!==!1&&(this.entireDataIsReadonly=!1);let r=Cv(this.currentStore,qb(this.formUrl));if(!r)throw Error(`No ui:Form found in `+qb(this.formUrl));let i=(0,t.sym)(qb(this.formUrl));return N`
1713
+ <form>
1714
+ ${(xv(e,e.each(r,R.ui(`parts`),null,i))||[]).flatMap(e=>e&&typeof e==`object`&&`elements`in e&&Array.isArray(e.elements)?e.elements:[e]).map(t=>{let n=e.each(t,R.rdf(`type`),null,i)[0],r=n?n.value||String(n):t.value||String(t),a=r.lastIndexOf(`#`);return{value:t,fieldValue:a>=0?r.slice(a+1):r}}).map(e=>{switch(e.fieldValue){case`PhoneField`:case`EmailField`:case`ColorField`:case`DateField`:case`DateTimeField`:case`TimeField`:case`NumericField`:case`IntegerField`:case`DecimalField`:case`FloatField`:case`TextField`:case`SingleLineTextField`:case`NamedNodeURIField`:return N` <solid-ui-rdf-input
1715
+ .formSubject=${(0,t.sym)(e.value)}
1716
+ .dataSubject=${(0,t.sym)(n)}
1717
+ .storeVersion=${this._loadVersion}
1718
+ .readonly=${this.entireDataIsReadonly}
1719
+ ></solid-ui-rdf-input>
1720
+ <br>`;case`MultiLineTextField`:return N`<input .rdf=${e}></input>`;case`BooleanField`:return N`<input .rdf=${e}></input>`;case`TristateField`:return N`<input .rdf=${e}></input>`;case`Classifier`:return N`<input .rdf=${e}></input>`;case`Choice`:return N`<input .rdf=${e}></input>`;case`Multiple`:return N`<input .rdf=${e}></input>`;case`Options`:return N`<input .rdf=${e}></input>`;case`AutocompleteField`:return N`<input .rdf=${e}></input>`;case`Comment`:case`Heading`:return N`<input .rdf=${e}></input>`;default:return N`<div>Unknown part type: ${e}</div>`}})}
1721
+ </form>
1722
+ `}willUpdate(e){super.willUpdate(e),(e.has(`formUrl`)||e.has(`subjectUrl`)||e.has(`passedInStore`))&&this.loadDocumentsIfNeeded()}async loadDocumentsIfNeeded(){let e=this.currentStore,t=qb(this.formUrl),n=qb(this.subjectUrl);if(!(!t||!n))try{await bv(e,t),await bv(e,n),this._loadVersion+=1,this._documentsLoaded=!0}catch(e){console.error(`Failed to load RDF documents`,e)}}},{e:[Sb,wb,Eb,Ob,Ab,Mb,Pb,vb],c:[Jb,yb]}=Vb(_b,[[xb,1,`storeContext`],[Cb,1,`passedInStore`],[Tb,1,`entireDataIsReadonly`],[Db,1,`_loadVersion`],[kb,1,`_documentsLoaded`],[jb,1,`formUrl`],[Nb,1,`subjectUrl`]],bb,0,void 0,F),yb();function nx(e){return e==null||e===``}var rx=M`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& .input-wrapper{width:100%;position:relative;& select{appearance:none;border:1px solid var(--solid-ui-color-gray-400);width:100%;color:var(--solid-ui-color-gray-700);font-size:inherit;cursor:pointer;background:#fff;border-radius:5px;padding:10px 40px 10px 10px}& icon-lucide-chevron-down{color:var(--solid-ui-color-gray-500);width:var(--solid-ui-font-size-lg);height:var(--solid-ui-font-size-lg);pointer-events:none;position:absolute;top:50%;right:15px;transform:translateY(-50%)}}}`,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x;function vx(e,t,n){yx(e,t),t.set(e,n)}function yx(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function bx(e,t,n){return e.set(Sx(e,t),n),n}function xx(e,t){return e.get(Sx(e,t))}function Sx(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Cx(e,t,n){return(t=Tx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wx(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Dx(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Dx(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Ox(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Tx(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Tx(e){var t=Ex(e,`string`);return typeof t==`symbol`?t:t+``}function Ex(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Dx(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Ox(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function kx(e){return e}ux=[g(`solid-ui-select`)];var Ax;new(gx=(ox=new WeakMap,sx=new WeakMap,_x=(dx=I({type:Array}),fx=zt(`select`),mx=L(),`options`),ax=class extends Cn{constructor(...e){super(...e),vx(this,ox,(cx(this),px(this,null))),vx(this,sx,hx(this,null))}set[_x](e){this._options=e}get options(){if(this._options)return this._options;let e=this.querySelectorAll(`solid-ui-select-option`);return Array.from(e).map(e=>({value:e.value,label:e.textContent}))}get controlElement(){return xx(ox,this)}set controlElement(e){bx(ox,this,e)}get _options(){return xx(sx,this)}set _options(e){bx(sx,this,e)}render(){let e=this.options.some(e=>nx(e.value))?P:N`<option disabled value="" ?selected=${!this.value}>Select an option</option>`;return N`
2024
1723
  ${this.controlTrait.renderLabel()}
2025
1724
 
2026
1725
  <div class="input-wrapper">
@@ -2031,7 +1730,7 @@
2031
1730
  @change=${this.onChange}
2032
1731
  >
2033
1732
  ${e}
2034
- ${this.options.map(e=>M`<option
1733
+ ${this.options.map(e=>N`<option
2035
1734
  .value=${e.value}
2036
1735
  ?selected=${e.value===this.value}
2037
1736
  >
@@ -2040,19 +1739,15 @@
2040
1739
  </select>
2041
1740
  <icon-lucide-chevron-down></icon-lucide-chevron-down>
2042
1741
  </div>
2043
- `}onChange(){let e=this.inputElement?.value,t=this.options.find(t=>t.value===e);this.controlTrait.setValue(e),this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,composed:!0,detail:{option:t}}))}},{e:[Ph,Ih,Rh,Bh,Uh,Gh,Ah],c:[og,jh]}=eg(Ch,[[Nh,1,`label`],[Fh,1,`name`],[Lh,1,`value`],[zh,1,`required`],[Vh,4,`options`],[Hh,1,`inputElement`],[Wh,1,`_options`]],Mh,0,void 0,P),Ch),Sh=class extends ag{constructor(){super(og),$h(this,`styles`,xh),$h(this,`formAssociated`,!0),jh()}},$h(Sh,Kh,void 0),Sh);var sg,cg,lg,ug,dg,fg,pg;function mg(e,t,n){hg(e,t),t.set(e,n)}function hg(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function gg(e,t,n){return e.set(vg(e,t),n),n}function _g(e,t){return e.get(vg(e,t))}function vg(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function yg(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Sg(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Sg(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Cg(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:bg(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function bg(e){var t=xg(e,`string`);return typeof t==`symbol`?t:t+``}function xg(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Sg(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Cg(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}ug=[g(`solid-ui-select-option`)];var wg,Tg=new WeakMap;pg=(dg=F({type:String,reflect:!0}),`value`),sg=class extends P{constructor(...e){super(...e),mg(this,Tg,(cg(this),fg(this,``)))}get[pg](){return _g(Tg,this)}set value(e){gg(Tg,this,e)}render(){return M`${N}`}},{e:[fg,cg],c:[wg,lg]}=yg(sg,[[dg,1,`value`]],ug,0,void 0,P),lg();var Eg=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 322"><g fill="none"><path fill="#fff" d="m87.973 282.353-60.732-105.33a31.6 31.6 0 0 1 0-31.538L87.973 40.233c5.646-9.784 16.08-15.795 27.321-15.795H236.68c11.266 0 21.727 6.011 27.321 15.795l60.758 105.304a31.6 31.6 0 0 1 0 31.537l-60.732 105.33c-5.646 9.784-16.08 15.795-27.321 15.795H115.372a31.85 31.85 0 0 1-27.4-15.846"/><path fill="#7c4dff" d="m93.151 275.197-57.115-99.06c-5.308-9.185-5.308-20.504 0-29.663l57.115-99.086a29.74 29.74 0 0 1 25.734-14.857h114.23c10.59 0 20.426 5.646 25.734 14.857l57.167 99.034c5.308 9.185 5.308 20.504 0 29.663l-57.141 99.138a29.74 29.74 0 0 1-25.734 14.858H118.937a29.79 29.79 0 0 1-25.786-14.884"/><path fill="#f7f7f7" d="M118.469 142.233h117.534a2.65 2.65 0 0 0 2.654-2.654v-22.04c0-14.65-11.891-26.54-26.54-26.54h-70.568c-20.53-.026-37.157 16.6-37.157 37.13-.026 7.833 6.27 14.104 14.077 14.104m11.527 97.368h70.229c21.207 0 38.432-17.225 38.432-38.432 0-7.078-5.724-12.828-12.828-12.828H106.942a2.537 2.537 0 0 0-2.55 2.55v23.054c-.026 14.181 11.475 25.656 25.604 25.656"/><path fill="#f7f7f7" d="m109.596 139.319 87.663 87.662c5.802 5.803 15.196 5.803 20.998 0l15.196-15.196c5.803-5.802 5.803-15.196 0-20.998l-87.637-87.663c-5.802-5.802-15.196-5.802-20.998 0l-15.196 15.196c-5.855 5.803-5.855 15.222-.026 20.999"/><path fill="#444" d="m198.69 228.464-51.495-40.123h11.397zm-54.33-126.797 40.565 40.566h13.765z" opacity=".3"/></g><script/></svg>
2044
- `}};customElements.get(`icon-app-solid-emblem`)||customElements.define(`icon-app-solid-emblem`,Eg);var Dg=w`:host{display:inline-flex}`,Og,kg,Ag,jg,Mg;function Ng(e,t,n){return(t=Fg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pg(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Lg(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Lg(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return Rg(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Fg(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Fg(e){var t=Ig(e,`string`);return typeof t==`symbol`?t:t+``}function Ig(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Lg(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function Rg(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function zg(e){return e}jg=[g(`solid-ui-solid-emblem`)];var Bg;new(Mg=(kg=class extends P{render(){return M`<icon-app-solid-emblem></icon-app-solid-emblem>`}},[Bg,Ag]=Pg(kg,[],jg,0,void 0,P).c,kg),Og=class extends zg{constructor(){super(Bg),Ng(this,`styles`,Dg),Ag()}},Ng(Og,Mg,void 0),Og);var Vg=d({LogLevel:()=>Yg,alert:()=>o_,clear:()=>s_,debug:()=>z,dumpHTML:()=>l_,error:()=>i_,escapeForXML:()=>f_,info:()=>r_,logAscending:()=>u_,logDescending:()=>d_,msg:()=>t_,setInternals:()=>p_,setLevel:()=>c_,success:()=>a_,warn:()=>n_}),Hg=1,Ug=2,Wg=4,Gg=8,Kg=16,qg=32,Jg=63,Yg=function(e){return e[e.Error=1]=`Error`,e[e.Warning=2]=`Warning`,e[e.Message=4]=`Message`,e[e.Success=8]=`Success`,e[e.Info=16]=`Info`,e[e.Debug=32]=`Debug`,e[e.All=63]=`All`,e}({}),Xg=7,Zg=!1,Qg=document,$g=window;function e_(e,t=Wg,n=`mesg`){if(Xg&t)if(Qg!==void 0){let t=Qg.getElementById(`status`);if(!t)return;let r=Qg.createElement(`span`);r.setAttribute(`class`,n);let i=new Date;r.innerHTML=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()} [${n}] ${f_(e)}<br/>`,Zg?t.insertBefore(r,t.firstChild):t.appendChild(r)}else typeof console<`u`&&console.log(e)}function t_(e){e_(e)}function n_(e){e_(e,Ug,`warn`)}function z(e){e_(e,qg,`dbug`)}function r_(e){e_(e,Kg,`info`)}function i_(e){e_(e,Hg,`eror`)}function a_(e){e_(e,Gg,`good`)}function o_(e){$g&&$g.alert!==void 0?$g.alert(e):n_(e)}function s_(){let e=Qg?.getElementById(`status`);e&&(e.innerHTML=``)}function c_(e){Xg=Jg,z(`Log level is now `+e),Xg=e}function l_(){if(!Qg)return;let e=Xg;Xg=Jg,z(Qg?.body?.innerHTML||``),Xg=e}function u_(){Zg=!0}function d_(){Zg=!1}function f_(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function p_(e,t){$g=e,Qg=t}var m_={log:Vg,ns:I,rdf:t};function B(e,t=!1){function n(e){return t?e.slice(0,1).toUpperCase()+e.slice(1):e}function r(e){let t=``;e.slice(-1)===`/`&&(e=e.slice(0,-1));for(let n=0;n<e.length;n++){if(e[n]===`_`||e[n]===`-`){t+=` `;continue}t+=e[n],n+1<e.length&&e[n].toUpperCase()!==e[n]&&e[n+1].toLowerCase()!==e[n+1]&&(t+=` `)}return t.slice(0,4)===`has `&&(t=t.slice(4)),n(t)}let i=g_(e);if(i)return n(i.value);if(e.termType===`BlankNode`)return`...`;if(e.termType===`Collection`)return`(`+e.elements.length+`)`;let a=e.uri;if(a===void 0)return e.toString();try{a=a.split(`/`).map(decodeURIComponent).join(`/`)}catch{for(let e=a.length-3;e>0;e--){let t=`0123456789abcefABCDEF`;for(;a[e]===`%`&&t.indexOf(a[e+1])>=0&&t.indexOf(a[e+2])>=0;)a=a.slice(0,e)+String.fromCharCode(parseInt(a.slice(e+1,e+3),16))+a.slice(e+3)}}a=h_(a,`/profile/card#me`),a=h_(a,`#this`),a=h_(a,`#me`);let o=a.indexOf(`#`);if(o>=0)return r(a.slice(o+1));let s=a.lastIndexOf(`/`,a.length-2);return s>=0&&s<e.uri.length?r(a.slice(s+1)):n(decodeURIComponent(e.uri))}function h_(e,t){let n=t.length*-1;return e.slice(n)===t?e.slice(0,n):e}function g_(e){return n.store.any(e,m_.ns.ui(`label`))||n.store.any(e,m_.ns.link(`message`))||n.store.any(e,m_.ns.vcard(`fn`))||n.store.any(e,m_.ns.foaf(`name`))||n.store.any(e,m_.ns.dct(`title`))||n.store.any(e,m_.ns.dc(`title`))||n.store.any(e,m_.ns.rss(`title`))||n.store.any(e,m_.ns.contact(`fullName`))||n.store.any(e,n.store.sym(`http://www.w3.org/2001/04/roadmap/org#name`))||n.store.any(e,m_.ns.cal(`summary`))||n.store.any(e,m_.ns.foaf(`nick`))||n.store.any(e,m_.ns.as(`name`))||n.store.any(e,m_.ns.schema(`name`))||n.store.any(e,m_.ns.rdfs(`label`))||n.store.any(e,n.store.sym(`http://www.w3.org/2004/02/skos/core#prefLabel`))}var __=d({AJARImage:()=>R_,RDFComparePredicateObject:()=>K_,RDFComparePredicateSubject:()=>q_,addLoadEvent:()=>F_,ancestor:()=>j_,beep:()=>C_,clearVariableNames:()=>x_,emptyNode:()=>k_,escapeForXML:()=>H_,findPos:()=>I_,genUuid:()=>T_,getAbout:()=>M_,getEyeFocus:()=>L_,getTarget:()=>A_,getTerm:()=>N_,hashColor:()=>w_,include:()=>P_,label:()=>B,labelForXML:()=>U_,labelWithOntology:()=>V_,newVariableName:()=>b_,ontologyLabel:()=>B_,predParentOf:()=>J_,predicateLabel:()=>G_,predicateLabelForXML:()=>W_,shortName:()=>z_,stackString:()=>O_,syncTableToArray:()=>E_,syncTableToArrayReOrdered:()=>D_}),v_={log:Vg,ns:I,rdf:t},y_=0;function b_(){return`v`+y_++}function x_(){y_=0}var S_;typeof AudioContext<`u`?S_=AudioContext:typeof window<`u`&&(S_=window.AudioContext||window.webkitAudioContext);function C_(){if(!S_)return;let e=new S_;return function(t,n,r,i){t=+(t||.3),r||=`sine`,typeof i!=`function`&&(i=function(){});let a=e.createOscillator();a.type=r,a.frequency.value=n||256,a.connect(e.destination),a.start(0),a.stop(t)}}function w_(e){return e=e.uri||e,`#`+(function(e){return e.split(``).reduce(function(e,t){return e=(e<<5)-e+t.charCodeAt(0),e&e},0)}(e)&16777215|12632256).toString(16)}function T_(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function E_(e,t,n,r){let i,a,o;for(o=0;o<e.children.length;o++)a=e.children[o],a.trashMe=!0;for(let s=0;s<t.length;s++){let c=t[s];for(i=!1,o=0;o<e.children.length;o++)if(a=e.children[o],a.subject&&a.subject.sameTerm(c)){if(r){let e=r(a,c);e&&e!==a&&(a.parentNode.replaceChild(e,a),e.subject=c,a=e)}a.trashMe=!1,i=!0;break}if(!i){let t=n(c);if(s>=e.children.length)e.appendChild(t);else{let n=e.children[s];e.insertBefore(t,n)}t.subject=c}}for(o=0;o<e.children.length;o++)a=e.children[o],a.trashMe&&e.removeChild(a)}function D_(e,t,n){let r={};for(let t=0;t<e.children.length;t++){let n=e.children[t];r[n.subject.toNT()]=n}for(let i=0;i<t.length;i++){let a=t[i];if(i>=e.children.length){let t=n(a);t.subject=a,e.appendChild(t)}else{let t=e.children[i];if(!t.subject.sameTerm(a)){let i=r[a.toNT()];if(i)e.removeChild(i),e.insertBefore(i,t);else{let e=n(a);t.before(e),e.subject=a}}}}for(;e.children.length>t.length;)e.removeChild(e.children[e.children.length-1])}function O_(e){let t=``+e+`
2045
- `,n;if(!e.stack)return t+`No stack available.
2046
- `;let r=e.stack.toString().split(`
2047
- `),i=[];for(n=0;n<r.length;n++){let e=r[n];if(e.indexOf(`ecmaunit.js`)>-1)break;e.charAt(0)===`(`&&(e=`function`+e);let t=e.split(`@`);i.push(t)}for(n=0;n<i.length;n++)t+=` `+i[n][1]+`
2048
- `+i[n][0];return t}function k_(e){let t=e.childNodes,n=t.length;for(let r=n-1;r>=0;r--)e.removeChild(t[r]);return e}function A_(e){let t;return e||=window.event,e.target?t=e.target:e.srcElement&&(t=e.srcElement),t.nodeType===3&&(t=t.parentNode),t}function j_(e,t){let n;for(n=e;n;n=n.parentNode)try{if(n.tagName===t)return n}catch{return}}function M_(e,t){let n,r;for(n=t;n&&n.nodeType===1;n=n.parentNode)if(r=n.getAttribute(`about`),r)return e.fromNT(r);v_.log.debug(`getAbout: No about found`)}function N_(e){let t=e.parentNode,r=t?t.AJAR_statement:void 0;switch(r?e.className:``){case`pred`:case`pred selected`:return r.predicate;case`obj`:case`obj selected`:return t.AJAR_inverse?r.subject:r.object;case``:case`selected`:return M_(n.store,e);case`undetermined selected`:return e.nextSibling?r.predicate:t.AJAR_inverse?r.subject:r.object}}function P_(e,t){let n=e.createElement(`script`);return n.setAttribute(`type`,`text/javascript`),n.setAttribute(`src`,t),n}function F_(e){let t=window.onload;typeof window.onload==`function`?window.onload=function(){t(),e()}:window.onload=e}function I_(e){let t=e.ownerDocument.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return[n.left-t.left,n.top-t.top]}function L_(e,t,n,r){r||=window;let i=I_(e)[1],a=window.SolidAppContext||{},o=i-(a&&a.scroll||52)-r.scrollY;if(t){if(n){r.scrollBy(0,i+e.clientHeight-(r.scrollY+r.innerHeight));return}r.scrollBy(0,o);return}let s=r.setInterval(l,50),c=0;function l(){r.scrollBy(0,o/10),c++,c===10&&r.clearInterval(s)}}function R_(e,t,n,r){r||=document;let i=r.createElement(`img`);return i.setAttribute(`src`,e),i.addEventListener(`copy`,function(e){e.clipboardData.setData(`text/plain`,``),e.clipboardData.setData(`text/html`,``),e.preventDefault()}),n!==void 0&&i.setAttribute(`title`,n),i}function z_(e){let t=e;`#/`.indexOf(t[t.length-1])>=0&&(t=t.slice(0,-1));let n=[];for(let e in this.prefixes)n[this.prefixes[e]]=e;let r,i=function(e){return e===`ns`?!1:(r=e,!0)},a,o=t.lastIndexOf(`#`);for(o>=0&&(t=t.slice(o-1));;){let e=t.lastIndexOf(`/`);for(e>=0&&(t=t.slice(e+1)),a=0;a<t.length&&this.prefixchars.indexOf(t[a]);)a++;if(t=t.slice(0,a),t.length<6&&i(t)||i(t.slice(0,3))||i(t.slice(0,2))||i(t.slice(0,4))||i(t.slice(0,1))||i(t.slice(0,5)))return r;for(a=0;;a++)if(i(t.slice(0,3)+a))return r}}function B_(e){if(e.uri===void 0)return`??`;let t=e.uri,n=[],r=t.lastIndexOf(`#`),i;if(r>=0)t=t.slice(0,r+1);else if(r=t.lastIndexOf(`/`),r>=0)t=t.slice(0,r+1);else return e.uri+`?!`;for(let e in v_.ns)n[v_.ns[e]]=e;try{return n[t]}catch{}for(t=t.slice(0,-1);t;)if(r=t.lastIndexOf(`/`),r>=0){if(i=t.slice(r+1),t=t.slice(0,r),i!==`ns`&&`0123456789`.indexOf(i[0])<0)return i}else return e.uri+`!?`}function V_(e,t){let r=n.store.findTypeURIs(e);return r[v_.ns.rdf(`Predicate`).uri]||r[v_.ns.rdfs(`Class`).uri]?B(e,t)+` (`+B_(e)+`)`:B(e,t)}function H_(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`)}function U_(e){return H_(B(e))}function W_(e,t){return H_(G_(e,t))}function G_(e,t){let r=B(e);if(t){let t=n.store.any(e,v_.ns.owl(`inverseOf`))||n.store.any(void 0,v_.ns.owl(`inverseOf`),e);return t?B(t):r===`type`?`...`:`is `+r+` of`}return r}function K_(e,t){let n=e.predicate.compareTerm(t.predicate);return n===0?e.object.compareTerm(t.object):n}function q_(e,t){let n=e.predicate.compareTerm(t.predicate);return n===0?e.subject.compareTerm(t.subject):n}function J_(e){let t=e;for(;;)if(t.getAttribute(`predTR`))return t;else if(t.previousSibling&&t.previousSibling.nodeName===`TR`)t=t.previousSibling;else return v_.log.error(`Could not find predParent`),e}function V(...e){console.log(...e)}function H(...e){console.warn(...e)}function Y_(...e){console.error(...e)}function X_(...e){console.trace(...e)}var U=n.solidLogicSingleton.store;function Z_(e,n,r,i){let a=I.acl,o=e.uri.slice(-1)===`/`,s=U.each(void 0,a(`default`),r,i).concat(U.each(void 0,a(`defaultForNew`),r,i)).reduce((n,r)=>n.concat(U.statementsMatching(r,I.rdf(`type`),a(`Authorization`),i)).concat(U.statementsMatching(r,a(`agent`),void 0,i)).concat(U.statementsMatching(r,a(`agentClass`),void 0,i)).concat(U.statementsMatching(r,a(`agentGroup`),void 0,i)).concat(U.statementsMatching(r,a(`origin`),void 0,i)).concat(U.statementsMatching(r,a(`originClass`),void 0,i)).concat(U.statementsMatching(r,a(`mode`),void 0,i)).concat((0,t.st)(r,a(`accessTo`),e,i)).concat(o?(0,t.st)(r,a(`default`),e,i):[]),[]),c=(0,t.graph)();return s.forEach(e=>c.add(l(e.subject),l(e.predicate),l(e.object),(0,t.sym)(n.uri))),c;function l(e){let r=i.uri.length;return(0,t.sym)(e.uri.slice(0,r)===i.uri?n.uri+e.uri.slice(r):e.uri)}}function Q_(e,t,n=U,r=!1){let i=r?s(n,I):n.each(void 0,I.acl(`accessTo`),e),a=I.acl,o={agent:{},agentClass:{},agentGroup:{},origin:{},originClass:{}};return Object.keys(o).forEach(e=>{i.forEach(function(t){n.each(t,a(`mode`)).forEach(function(r){n.each(t,a(e)).forEach(function(n){o[e][n.uri]=o[e][n.uri]||{},o[e][n.uri][r.uri]=t})})})}),o;function s(t,n){return t.each(void 0,n.acl(`default`),e).concat(t.each(void 0,n.acl(`defaultForNew`),e))}}function $_(e,t){let n=function(e,t){for(let n in{agent:!0,agentClass:!0,agentGroup:!0,origin:!0,originClass:!0})if(e[n]){for(let r in e[n])for(let i in e[n][r])if(!t[n][r]||!t[n][r][i])return!1}return!0};return n(e,t)&&n(t,e)}function ev(e){let t=e[0],n,r;for(let i=1;i<e.length;i++)[`agent`,`agentClass`,`agentGroup`,`origin`,`originClass`].forEach(function(a){if(n=e[i],n[a])for(r in n[a])for(let e in n[a][r])t[a][r]||(t[a][r]=[]),t[a][r][e]=!0});return t}function tv(e,t){let n=[],r=function(e){e.length?pv(e.shift().doc(),function(i,a,o,s,c,l){let u=!a;if(!i||!c||!l)return t(i,s);let d=u?Q_(c,l):Q_(o,s);n.push(d),r(e.slice(1))}):t(!0,ev(n))};r(e)}function nv(e){let t={};return[`agent`,`agentClass`,`agentGroup`,`origin`,`originClass`].forEach(function(n){for(let r in e[n]){let i=[];for(let t in e[n][r])i.push(t);i.sort();let a=i.join(`
2049
- `);t[a]||(t[a]=[]),t[a].push([n,r])}}),t}function rv(e,t,n,r){return iv(e,t,nv(n),r)}function iv(e,t,n,r,i,a){let o=I.acl;for(let s in n){let c=n[s];if(!c.length)continue;let l=s.split(`
2050
- `),u=l.map(function(e){return e.split(`#`)[1]}).join(``);a&&!i&&(u+=`Default`);let d=e.sym(r.uri+`#`+u);e.add(d,I.rdf(`type`),o(`Authorization`),r),i&&e.add(d,o(`accessTo`),t,r),a&&e.add(d,o(`default`),t,r);for(let t=0;t<l.length;t++)e.add(d,o(`mode`),e.sym(l[t]),r);for(let t=0;t<c.length;t++){let n=c[t][0],i=c[t][1];e.add(d,o(n),e.sym(i),r)}}}function av(e){return ov(nv(e))}function ov(e){let n=``;for(let r in e){let i=r.split(`
2051
- `).map(function(e){return e.split(`#`)[1][0]}).join(``);n+=i+`:`;let a=e[r];for(let e=0;e<a.length;e++){let r=a[e][0],i=(0,t.sym)(a[e][1]);n+=r===`agent`?`@`:``,n+=i.sameTerm(I.foaf(`Agent`))?`*`:B(i),e<a.length-1&&(n+=`,`)}n+=`;`}return`{`+n.slice(0,-1)+`}`}function sv(e,n,r){let i=(0,t.graph)();return rv(i,e,n,r),(0,t.serialize)(r,i,r.uri,`text/turtle`)||``}function cv(e,t,n,r,i){return lv(e,t,nv(n),r,i)}function lv(e,n,r,i,a){let o=(0,t.graph)();iv(o,n,r,i,!0),e.updater?.put(i,o.statementsMatching(void 0,void 0,void 0,i),`text/turtle`,function(t,o,s){o?(e.fetcher?.unload(i),iv(e,n,r,i,!0),e.fetcher.requested[i.uri]=`done`,a(o)):a(o,s)})}function uv(e,t,n){let r=U.each(void 0,I.vcard(`hasMember`),e);r?dv(e,r,t,n):(t(`This card is in no groups`),n(!0))}function dv(e,t,n,r){n||=V;let i=e.doc();pv(i,function(a,o,s,c,l,u){if(!a||!l||!u)return r(!1,c);let d=o?Q_(s,c):Q_(l,u);tv(t,function(t,a){if(!t)return r(!1,a);$_(a,d)?n(`Nice - same ACL. no change `+B(e)+` `+i):(n(`Group ACLs differ for `+B(e)+` `+i),cv(U,s,a,c,r))})})}function fv(e,t,r){let i=U.any(e,n.ACL_LINK);if(!U.fetcher)throw Error(`Store has no fetcher`);i?U.fetcher.webOperation(`PUT`,i.value,{data:t,contentType:`text/turtle`}).then(e=>{r(e.ok,e.error||``)}):U.fetcher.nowOrWhenFetched(e,void 0,function(i,a){if(!i)return r(i,`Gettting headers for ACL: `+a);let o=U.any(e,n.ACL_LINK);if(!o)r(!1,`No Link rel=ACL header for `+e);else{if(!U.fetcher)throw Error(`Store has no fetcher`);U.fetcher.webOperation(`PUT`,o.value,{data:t,contentType:`text/turtle`}).then(e=>{r(e.ok,e.error||``)})}})}function pv(e,n){mv(e,function(r,i,a,o){let s=I.acl;if(!r)return n(!1,!1,i,o);let c=function(r){r.slice(-1)===`/`&&(r=r.slice(0,-1));let i=r.lastIndexOf(`/`);if(r.indexOf(`/`,r.indexOf(`//`)+2)>i)return n(!1,!0,404,`Found no ACL resource`);r=r.slice(0,i+1);let o=(0,t.sym)(r);mv(o,function(t,i,l){return t?i===403?n(!1,!0,i,`( default ACL file FORBIDDEN. Stop.${r})`):i===404?c(r):i===200?U.each(void 0,s(`default`),U.sym(r),l).concat(U.each(void 0,s(`defaultForNew`),U.sym(r),l)).length?n(!0,!1,e,a,U.sym(r),l):c(r):n(!1,!0,i,`Error status '${i}' searching for default for ${o}`):n(!1,!0,i,`( No ACL pointer ${r} ${i})${l}`)})};if(!r)return n(!1,!1,i,`Error accessing Access Control information for ${e}) ${o}`);if(i===404)c(e.uri);else if(i===403)return n(!1,!1,i,`(Sharing not available to you)${o}`);else if(i!==200)return n(!1,!1,i,`Error ${i} accessing Access Control information for ${e}: ${o}`);else return n(!0,!0,e,a)})}function mv(e,t){if(!U.fetcher)throw Error(`kb has no fetcher`);U.fetcher.nowOrWhenFetched(e,void 0,function(r,i){if(!r)return t(r,`Can't get headers to find ACL for ${e}: ${i}`);let a=U.any(e,n.ACL_LINK);if(!a)t(!1,900,`No Link rel=ACL header for ${e}`);else{if(!U.fetcher)throw Error(`kb has no fetcher`);if(U.fetcher.nonexistent[a.value])return t(!0,404,a,`ACL file ${a} does not exist.`);U.fetcher.nowOrWhenFetched(a,void 0,function(e,n,r){e?t(!0,200,a):t(!0,r.status,a,`Can't read Access Control File ${a}: ${n}`)})}})}async function hv(e){return new Promise((n,r)=>pv((0,t.sym)(e),(t,i,a,o,s)=>t?n(i?a:s):r(Error(`Error loading ${e}`))))}var gv=u(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}})),_v=[];for(let e=0;e<256;++e)_v.push((e+256).toString(16).slice(1));function vv(e,t=0){return(_v[e[t+0]]+_v[e[t+1]]+_v[e[t+2]]+_v[e[t+3]]+`-`+_v[e[t+4]]+_v[e[t+5]]+`-`+_v[e[t+6]]+_v[e[t+7]]+`-`+_v[e[t+8]]+_v[e[t+9]]+`-`+_v[e[t+10]]+_v[e[t+11]]+_v[e[t+12]]+_v[e[t+13]]+_v[e[t+14]]+_v[e[t+15]]).toLowerCase()}var yv=new Uint8Array(16);function bv(){return crypto.getRandomValues(yv)}function xv(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():Sv(e,t,n)}function Sv(e,t,n){e||={};let r=e.random??e.rng?.()??bv();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return vv(r)}var Cv=d({default:()=>wv}),wv,Tv=l((()=>{wv={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/ace+json":{source:`iana`,compressible:!0},"application/ace-groupcomm+cbor":{source:`iana`},"application/ace-trl+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/aif+cbor":{source:`iana`},"application/aif+json":{source:`iana`,compressible:!0},"application/alto-cdni+json":{source:`iana`,compressible:!0},"application/alto-cdnifilter+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-propmap+json":{source:`iana`,compressible:!0},"application/alto-propmapparams+json":{source:`iana`,compressible:!0},"application/alto-tips+json":{source:`iana`,compressible:!0},"application/alto-tipsparams+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"application/aml":{source:`iana`},"application/andrew-inset":{source:`iana`,extensions:[`ez`]},"application/appinstaller":{compressible:!1,extensions:[`appinstaller`]},"application/applefile":{source:`iana`},"application/applixware":{source:`apache`,extensions:[`aw`]},"application/appx":{compressible:!1,extensions:[`appx`]},"application/appxbundle":{compressible:!1,extensions:[`appxbundle`]},"application/at+jwt":{source:`iana`},"application/atf":{source:`iana`},"application/atfx":{source:`iana`},"application/atom+xml":{source:`iana`,compressible:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/automationml-aml+xml":{source:`iana`,compressible:!0,extensions:[`aml`]},"application/automationml-amlx+zip":{source:`iana`,compressible:!1,extensions:[`amlx`]},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]},"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/bufr":{source:`iana`},"application/c2pa":{source:`iana`},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/cdfx+xml":{source:`iana`,compressible:!0,extensions:[`cdfx`]},"application/cdmi-capability":{source:`iana`,extensions:[`cdmia`]},"application/cdmi-container":{source:`iana`,extensions:[`cdmic`]},"application/cdmi-domain":{source:`iana`,extensions:[`cdmid`]},"application/cdmi-object":{source:`iana`,extensions:[`cdmio`]},"application/cdmi-queue":{source:`iana`,extensions:[`cdmiq`]},"application/cdni":{source:`iana`},"application/ce+cbor":{source:`iana`},"application/cea":{source:`iana`},"application/cea-2018+xml":{source:`iana`,compressible:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/cid-edhoc+cbor-seq":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/city+json-seq":{source:`iana`},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-eap":{source:`iana`},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/concise-problem-details+cbor":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cose-x509":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwl":{source:`iana`,extensions:[`cwl`]},"application/cwl+json":{source:`iana`,compressible:!0},"application/cwl+yaml":{source:`iana`},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`,extensions:[`dcm`]},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dpop+jwt":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/eat+cwt":{source:`iana`},"application/eat+jwt":{source:`iana`},"application/eat-bun+cbor":{source:`iana`},"application/eat-bun+json":{source:`iana`,compressible:!0},"application/eat-ucs+cbor":{source:`iana`},"application/eat-ucs+json":{source:`iana`,compressible:!0},"application/ecmascript":{source:`apache`,compressible:!0,extensions:[`ecma`]},"application/edhoc+cbor-seq":{source:`iana`},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.legacyesn+json":{source:`iana`,compressible:!0},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/entity-statement+jwt":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdf":{source:`iana`,extensions:[`fdf`]},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:`iana`},"application/flexfec":{source:`iana`},"application/font-sfnt":{source:`iana`},"application/font-tdpfr":{source:`iana`,extensions:[`pfr`]},"application/font-woff":{source:`iana`,compressible:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geopose+json":{source:`iana`,compressible:!0},"application/geoxacml+json":{source:`iana`,compressible:!0},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gnap-binding-jws":{source:`iana`},"application/gnap-binding-jwsd":{source:`iana`},"application/gnap-binding-rotation-jws":{source:`iana`},"application/gnap-binding-rotation-jwsd":{source:`iana`},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/grib":{source:`iana`},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/index":{source:`iana`},"application/index.cmd":{source:`iana`},"application/index.obj":{source:`iana`},"application/index.response":{source:`iana`},"application/index.vnd":{source:`iana`},"application/inkml+xml":{source:`iana`,compressible:!0,extensions:[`ink`,`inkml`]},"application/iotp":{source:`iana`},"application/ipfix":{source:`iana`,extensions:[`ipfix`]},"application/ipp":{source:`iana`},"application/isup":{source:`iana`},"application/its+xml":{source:`iana`,compressible:!0,extensions:[`its`]},"application/java-archive":{source:`iana`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`apache`,charset:`UTF-8`,compressible:!0,extensions:[`js`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/jscontact+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jsonpath":{source:`iana`},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwk-set+jwt":{source:`iana`},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/linkset":{source:`iana`},"application/linkset+json":{source:`iana`,compressible:!0},"application/load-control+xml":{source:`iana`,compressible:!0},"application/logout+jwt":{source:`iana`},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"application/lxf":{source:`iana`},"application/mac-binhex40":{source:`iana`,extensions:[`hqx`]},"application/mac-compactpro":{source:`apache`,extensions:[`cpt`]},"application/macwriteii":{source:`iana`},"application/mads+xml":{source:`iana`,compressible:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,extensions:[`mets`]},"application/mf4":{source:`iana`},"application/mikey":{source:`iana`},"application/mipc":{source:`iana`},"application/missing-blocks+cbor-seq":{source:`iana`},"application/mmt-aei+xml":{source:`iana`,compressible:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,extensions:[`mods`]},"application/moss-keys":{source:`iana`},"application/moss-signature":{source:`iana`},"application/mosskey-data":{source:`iana`},"application/mosskey-request":{source:`iana`},"application/mp21":{source:`iana`,extensions:[`m21`,`mp21`]},"application/mp4":{source:`iana`,extensions:[`mp4`,`mpg4`,`mp4s`,`m4p`]},"application/mpeg4-generic":{source:`iana`},"application/mpeg4-iod":{source:`iana`},"application/mpeg4-iod-xmt":{source:`iana`},"application/mrb-consumer+xml":{source:`iana`,compressible:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msix":{compressible:!1,extensions:[`msix`]},"application/msixbundle":{compressible:!1,extensions:[`msixbundle`]},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"application/multipart-core":{source:`iana`},"application/mxf":{source:`iana`,extensions:[`mxf`]},"application/n-quads":{source:`iana`,extensions:[`nq`]},"application/n-triples":{source:`iana`,extensions:[`nt`]},"application/nasdata":{source:`iana`},"application/news-checkgroups":{source:`iana`,charset:`US-ASCII`},"application/news-groupinfo":{source:`iana`,charset:`US-ASCII`},"application/news-transmission":{source:`iana`},"application/nlsml+xml":{source:`iana`,compressible:!0},"application/node":{source:`iana`,extensions:[`cjs`]},"application/nss":{source:`iana`},"application/oauth-authz-req+jwt":{source:`iana`},"application/oblivious-dns-message":{source:`iana`},"application/ocsp-request":{source:`iana`},"application/ocsp-response":{source:`iana`},"application/octet-stream":{source:`iana`,compressible:!0,extensions:[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`]},"application/oda":{source:`iana`,extensions:[`oda`]},"application/odm+xml":{source:`iana`,compressible:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/ohttp-keys":{source:`iana`},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`,`one`,`onea`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,extensions:[`pgp`]},"application/pgp-keys":{source:`iana`,extensions:[`asc`]},"application/pgp-signature":{source:`iana`,extensions:[`sig`,`asc`]},"application/pics-rules":{source:`apache`,extensions:[`prf`]},"application/pidf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pkcs10":{source:`iana`,extensions:[`p10`]},"application/pkcs12":{source:`iana`},"application/pkcs7-mime":{source:`iana`,extensions:[`p7m`,`p7c`]},"application/pkcs7-signature":{source:`iana`,extensions:[`p7s`]},"application/pkcs8":{source:`iana`,extensions:[`p8`]},"application/pkcs8-encrypted":{source:`iana`},"application/pkix-attr-cert":{source:`iana`,extensions:[`ac`]},"application/pkix-cert":{source:`iana`,extensions:[`cer`]},"application/pkix-crl":{source:`iana`,extensions:[`crl`]},"application/pkix-pkipath":{source:`iana`,extensions:[`pkipath`]},"application/pkixcmp":{source:`iana`,extensions:[`pki`]},"application/pls+xml":{source:`iana`,compressible:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/private-token-issuer-directory":{source:`iana`},"application/private-token-request":{source:`iana`},"application/private-token-response":{source:`iana`},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,extensions:[`provx`]},"application/provided-claims+jwt":{source:`iana`},"application/prs.alvestrand.titrax-sheet":{source:`iana`},"application/prs.cww":{source:`iana`,extensions:[`cww`]},"application/prs.cyn":{source:`iana`,charset:`7-BIT`},"application/prs.hpub+zip":{source:`iana`,compressible:!1},"application/prs.implied-document+xml":{source:`iana`,compressible:!0},"application/prs.implied-executable":{source:`iana`},"application/prs.implied-object+json":{source:`iana`,compressible:!0},"application/prs.implied-object+json-seq":{source:`iana`},"application/prs.implied-object+yaml":{source:`iana`},"application/prs.implied-structure":{source:`iana`},"application/prs.mayfile":{source:`iana`},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.vcfbzip2":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0,extensions:[`xsf`]},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`apache`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resolve-response+jwt":{source:`iana`},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,extensions:[`rusd`]},"application/rpki-checklist":{source:`iana`},"application/rpki-ghostbusters":{source:`iana`,extensions:[`gbr`]},"application/rpki-manifest":{source:`iana`,extensions:[`mft`]},"application/rpki-publication":{source:`iana`},"application/rpki-roa":{source:`iana`,extensions:[`roa`]},"application/rpki-signed-tal":{source:`iana`},"application/rpki-updown":{source:`iana`},"application/rsd+xml":{source:`apache`,compressible:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"application/scvp-cv-request":{source:`iana`,extensions:[`scq`]},"application/scvp-cv-response":{source:`iana`,extensions:[`scs`]},"application/scvp-vp-request":{source:`iana`,extensions:[`spq`]},"application/scvp-vp-response":{source:`iana`,extensions:[`spp`]},"application/sdp":{source:`iana`,extensions:[`sdp`]},"application/secevent+jwt":{source:`iana`},"application/senml+cbor":{source:`iana`},"application/senml+json":{source:`iana`,compressible:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"application/sep-exi":{source:`iana`},"application/session-info":{source:`iana`},"application/set-payment":{source:`iana`},"application/set-payment-initiation":{source:`iana`,extensions:[`setpay`]},"application/set-registration":{source:`iana`},"application/set-registration-initiation":{source:`iana`,extensions:[`setreg`]},"application/sgml":{source:`iana`},"application/sgml-open-catalog":{source:`iana`},"application/shf+xml":{source:`iana`,compressible:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"application/simple-message-summary":{source:`iana`},"application/simplesymbolcontainer":{source:`iana`},"application/sipc":{source:`iana`},"application/slate":{source:`iana`},"application/smil":{source:`apache`},"application/smil+xml":{source:`iana`,compressible:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`,extensions:[`sql`]},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/sslkeylogfile":{source:`iana`},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/st2110-41":{source:`iana`},"application/stix+json":{source:`iana`,compressible:!0},"application/stratum":{source:`iana`},"application/swid+cbor":{source:`iana`},"application/swid+xml":{source:`iana`,compressible:!0,extensions:[`swidtag`]},"application/tamp-apex-update":{source:`iana`},"application/tamp-apex-update-confirm":{source:`iana`},"application/tamp-community-update":{source:`iana`},"application/tamp-community-update-confirm":{source:`iana`},"application/tamp-error":{source:`iana`},"application/tamp-sequence-adjust":{source:`iana`},"application/tamp-sequence-adjust-confirm":{source:`iana`},"application/tamp-status-query":{source:`iana`},"application/tamp-status-response":{source:`iana`},"application/tamp-update":{source:`iana`},"application/tamp-update-confirm":{source:`iana`},"application/tar":{compressible:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,extensions:[`tfi`]},"application/timestamp-query":{source:`iana`},"application/timestamp-reply":{source:`iana`},"application/timestamped-data":{source:`iana`,extensions:[`tsd`]},"application/tlsrpt+gzip":{source:`iana`},"application/tlsrpt+json":{source:`iana`,compressible:!0},"application/tm+json":{source:`iana`,compressible:!0},"application/tnauthlist":{source:`iana`},"application/toc+cbor":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{source:`iana`,compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/trust-chain+json":{source:`iana`,compressible:!0},"application/trust-mark+jwt":{source:`iana`},"application/trust-mark-delegation+jwt":{source:`iana`},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/uccs+cbor":{source:`iana`},"application/ujcs+json":{source:`iana`,compressible:!0},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vc":{source:`iana`},"application/vc+cose":{source:`iana`},"application/vc+jwt":{source:`iana`},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.1ob":{source:`iana`},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3a+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ach+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc8+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gnas":{source:`iana`},"application/vnd.3gpp.5gsa2x":{source:`iana`},"application/vnd.3gpp.5gsa2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gsv2x":{source:`iana`},"application/vnd.3gpp.5gsv2x-local-service-information":{source:`iana`},"application/vnd.3gpp.access-transfer-events+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.crs+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.current-location-discovery+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gtpc":{source:`iana`},"application/vnd.3gpp.interworking-data":{source:`iana`},"application/vnd.3gpp.lpp":{source:`iana`},"application/vnd.3gpp.mc-signalling-ear":{source:`iana`},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-regroup+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-regroup+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-regroup+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ngap":{source:`iana`},"application/vnd.3gpp.pfcp":{source:`iana`},"application/vnd.3gpp.pic-bw-large":{source:`iana`,extensions:[`plb`]},"application/vnd.3gpp.pic-bw-small":{source:`iana`,extensions:[`psb`]},"application/vnd.3gpp.pic-bw-var":{source:`iana`,extensions:[`pvb`]},"application/vnd.3gpp.pinapp-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.s1ap":{source:`iana`},"application/vnd.3gpp.seal-group-doc+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-network-qos-management-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-ue-config-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-unicast-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-user-profile-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.sms":{source:`iana`},"application/vnd.3gpp.sms+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.v2x":{source:`iana`},"application/vnd.3gpp.vae-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.sms":{source:`iana`},"application/vnd.3gpp2.tcap":{source:`iana`,extensions:[`tcap`]},"application/vnd.3lightssoftware.imagescal":{source:`iana`},"application/vnd.3m.post-it-notes":{source:`iana`,extensions:[`pwn`]},"application/vnd.accpac.simply.aso":{source:`iana`,extensions:[`aso`]},"application/vnd.accpac.simply.imp":{source:`iana`,extensions:[`imp`]},"application/vnd.acm.addressxfer+json":{source:`iana`,compressible:!0},"application/vnd.acm.chatbot+json":{source:`iana`,compressible:!0},"application/vnd.acucobol":{source:`iana`,extensions:[`acu`]},"application/vnd.acucorp":{source:`iana`,extensions:[`atc`,`acutc`]},"application/vnd.adobe.air-application-installer-package+zip":{source:`apache`,compressible:!1,extensions:[`air`]},"application/vnd.adobe.flash.movie":{source:`iana`},"application/vnd.adobe.formscentral.fcdt":{source:`iana`,extensions:[`fcdt`]},"application/vnd.adobe.fxp":{source:`iana`,extensions:[`fxp`,`fxpl`]},"application/vnd.adobe.partial-upload":{source:`iana`},"application/vnd.adobe.xdp+xml":{source:`iana`,compressible:!0,extensions:[`xdp`]},"application/vnd.adobe.xfdf":{source:`apache`,extensions:[`xfdf`]},"application/vnd.aether.imp":{source:`iana`},"application/vnd.afpc.afplinedata":{source:`iana`},"application/vnd.afpc.afplinedata-pagedef":{source:`iana`},"application/vnd.afpc.cmoca-cmresource":{source:`iana`},"application/vnd.afpc.foca-charset":{source:`iana`},"application/vnd.afpc.foca-codedfont":{source:`iana`},"application/vnd.afpc.foca-codepage":{source:`iana`},"application/vnd.afpc.modca":{source:`iana`},"application/vnd.afpc.modca-cmtable":{source:`iana`},"application/vnd.afpc.modca-formdef":{source:`iana`},"application/vnd.afpc.modca-mediummap":{source:`iana`},"application/vnd.afpc.modca-objectcontainer":{source:`iana`},"application/vnd.afpc.modca-overlay":{source:`iana`},"application/vnd.afpc.modca-pagesegment":{source:`iana`},"application/vnd.age":{source:`iana`,extensions:[`age`]},"application/vnd.ah-barcode":{source:`apache`},"application/vnd.ahead.space":{source:`iana`,extensions:[`ahead`]},"application/vnd.airzip.filesecure.azf":{source:`iana`,extensions:[`azf`]},"application/vnd.airzip.filesecure.azs":{source:`iana`,extensions:[`azs`]},"application/vnd.amadeus+json":{source:`iana`,compressible:!0},"application/vnd.amazon.ebook":{source:`apache`,extensions:[`azw`]},"application/vnd.amazon.mobi8-ebook":{source:`iana`},"application/vnd.americandynamics.acc":{source:`iana`,extensions:[`acc`]},"application/vnd.amiga.ami":{source:`iana`,extensions:[`ami`]},"application/vnd.amundsen.maze+xml":{source:`iana`,compressible:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,extensions:[`apk`]},"application/vnd.anki":{source:`iana`},"application/vnd.anser-web-certificate-issue-initiation":{source:`iana`,extensions:[`cii`]},"application/vnd.anser-web-funds-transfer-initiation":{source:`apache`,extensions:[`fti`]},"application/vnd.antix.game-component":{source:`iana`,extensions:[`atx`]},"application/vnd.apache.arrow.file":{source:`iana`},"application/vnd.apache.arrow.stream":{source:`iana`},"application/vnd.apache.parquet":{source:`iana`},"application/vnd.apache.thrift.binary":{source:`iana`},"application/vnd.apache.thrift.compact":{source:`iana`},"application/vnd.apache.thrift.json":{source:`iana`},"application/vnd.apexlang":{source:`iana`},"application/vnd.api+json":{source:`iana`,compressible:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,extensions:[`mpkg`]},"application/vnd.apple.keynote":{source:`iana`,extensions:[`key`]},"application/vnd.apple.mpegurl":{source:`iana`,extensions:[`m3u8`]},"application/vnd.apple.numbers":{source:`iana`,extensions:[`numbers`]},"application/vnd.apple.pages":{source:`iana`,extensions:[`pages`]},"application/vnd.apple.pkpass":{compressible:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`apache`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"application/vnd.artsquare":{source:`iana`},"application/vnd.astraea-software.iota":{source:`iana`,extensions:[`iota`]},"application/vnd.audiograph":{source:`iana`,extensions:[`aep`]},"application/vnd.autodesk.fbx":{extensions:[`fbx`]},"application/vnd.autopackage":{source:`iana`},"application/vnd.avalon+json":{source:`iana`,compressible:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,extensions:[`bmml`]},"application/vnd.balsamiq.bmpr":{source:`iana`},"application/vnd.banana-accounting":{source:`iana`},"application/vnd.bbf.usp.error":{source:`iana`},"application/vnd.bbf.usp.msg":{source:`iana`},"application/vnd.bbf.usp.msg+json":{source:`iana`,compressible:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.belightsoft.lhzd+zip":{source:`iana`,compressible:!1},"application/vnd.belightsoft.lhzl+zip":{source:`iana`,compressible:!1},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:`iana`},"application/vnd.blueice.multipass":{source:`iana`,extensions:[`mpm`]},"application/vnd.bluetooth.ep.oob":{source:`iana`},"application/vnd.bluetooth.le.oob":{source:`iana`},"application/vnd.bmi":{source:`iana`,extensions:[`bmi`]},"application/vnd.bpf":{source:`iana`},"application/vnd.bpf3":{source:`iana`},"application/vnd.businessobjects":{source:`iana`,extensions:[`rep`]},"application/vnd.byu.uapi+json":{source:`iana`,compressible:!0},"application/vnd.bzip3":{source:`iana`},"application/vnd.c3voc.schedule+xml":{source:`iana`,compressible:!0},"application/vnd.cab-jscript":{source:`iana`},"application/vnd.canon-cpdl":{source:`iana`},"application/vnd.canon-lips":{source:`iana`},"application/vnd.capasystems-pg+json":{source:`iana`,compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,extensions:[`cdxml`]},"application/vnd.chess-pgn":{source:`iana`},"application/vnd.chipnuts.karaoke-mmd":{source:`iana`,extensions:[`mmd`]},"application/vnd.ciedi":{source:`iana`},"application/vnd.cinderella":{source:`iana`,extensions:[`cdy`]},"application/vnd.cirpack.isdn-ext":{source:`iana`},"application/vnd.citationstyles.style+xml":{source:`iana`,compressible:!0,extensions:[`csl`]},"application/vnd.claymore":{source:`iana`,extensions:[`cla`]},"application/vnd.cloanto.rp9":{source:`iana`,extensions:[`rp9`]},"application/vnd.clonk.c4group":{source:`iana`,extensions:[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`]},"application/vnd.cluetrust.cartomobile-config":{source:`iana`,extensions:[`c11amc`]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:`iana`,extensions:[`c11amz`]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{source:`iana`},"application/vnd.cncf.helm.chart.provenance.v1.prov":{source:`iana`},"application/vnd.cncf.helm.config.v1+json":{source:`iana`,compressible:!0},"application/vnd.coffeescript":{source:`iana`},"application/vnd.collabio.xodocuments.document":{source:`iana`},"application/vnd.collabio.xodocuments.document-template":{source:`iana`},"application/vnd.collabio.xodocuments.presentation":{source:`iana`},"application/vnd.collabio.xodocuments.presentation-template":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:`iana`},"application/vnd.collection+json":{source:`iana`,compressible:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"application/vnd.comicbook-rar":{source:`iana`},"application/vnd.commerce-battelle":{source:`iana`},"application/vnd.commonspace":{source:`iana`,extensions:[`csp`]},"application/vnd.contact.cmsg":{source:`iana`,extensions:[`cdbcmsg`]},"application/vnd.coreos.ignition+json":{source:`iana`,compressible:!0},"application/vnd.cosmocaller":{source:`iana`,extensions:[`cmc`]},"application/vnd.crick.clicker":{source:`iana`,extensions:[`clkx`]},"application/vnd.crick.clicker.keyboard":{source:`iana`,extensions:[`clkk`]},"application/vnd.crick.clicker.palette":{source:`iana`,extensions:[`clkp`]},"application/vnd.crick.clicker.template":{source:`iana`,extensions:[`clkt`]},"application/vnd.crick.clicker.wordbank":{source:`iana`,extensions:[`clkw`]},"application/vnd.criticaltools.wbs+xml":{source:`iana`,compressible:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"application/vnd.crypto-shade-file":{source:`iana`},"application/vnd.cryptomator.encrypted":{source:`iana`},"application/vnd.cryptomator.vault":{source:`iana`},"application/vnd.ctc-posml":{source:`iana`,extensions:[`pml`]},"application/vnd.ctct.ws+xml":{source:`iana`,compressible:!0},"application/vnd.cups-pdf":{source:`iana`},"application/vnd.cups-postscript":{source:`iana`},"application/vnd.cups-ppd":{source:`iana`,extensions:[`ppd`]},"application/vnd.cups-raster":{source:`iana`},"application/vnd.cups-raw":{source:`iana`},"application/vnd.curl":{source:`iana`},"application/vnd.curl.car":{source:`apache`,extensions:[`car`]},"application/vnd.curl.pcurl":{source:`apache`,extensions:[`pcurl`]},"application/vnd.cyan.dean.root+xml":{source:`iana`,compressible:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datalog":{source:`iana`},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"application/vnd.dbf":{source:`iana`,extensions:[`dbf`]},"application/vnd.dcmp+xml":{source:`iana`,compressible:!0,extensions:[`dcmp`]},"application/vnd.debian.binary-package":{source:`iana`},"application/vnd.dece.data":{source:`iana`,extensions:[`uvf`,`uvvf`,`uvd`,`uvvd`]},"application/vnd.dece.ttml+xml":{source:`iana`,compressible:!0,extensions:[`uvt`,`uvvt`]},"application/vnd.dece.unspecified":{source:`iana`,extensions:[`uvx`,`uvvx`]},"application/vnd.dece.zip":{source:`iana`,extensions:[`uvz`,`uvvz`]},"application/vnd.denovo.fcselayout-link":{source:`iana`,extensions:[`fe_launch`]},"application/vnd.desmume.movie":{source:`iana`},"application/vnd.dir-bi.plate-dl-nosuffix":{source:`iana`},"application/vnd.dm.delegation+xml":{source:`iana`,compressible:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"application/vnd.dolby.mlp":{source:`apache`,extensions:[`mlp`]},"application/vnd.dolby.mobile.1":{source:`iana`},"application/vnd.dolby.mobile.2":{source:`iana`},"application/vnd.doremir.scorecloud-binary-document":{source:`iana`},"application/vnd.dpgraph":{source:`iana`,extensions:[`dpg`]},"application/vnd.dreamfactory":{source:`iana`,extensions:[`dfac`]},"application/vnd.drive+json":{source:`iana`,compressible:!0},"application/vnd.ds-keypoint":{source:`apache`,extensions:[`kpxx`]},"application/vnd.dtg.local":{source:`iana`},"application/vnd.dtg.local.flash":{source:`iana`},"application/vnd.dtg.local.html":{source:`iana`},"application/vnd.dvb.ait":{source:`iana`,extensions:[`ait`]},"application/vnd.dvb.dvbisl+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.dvbj":{source:`iana`},"application/vnd.dvb.esgcontainer":{source:`iana`},"application/vnd.dvb.ipdcdftnotifaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess2":{source:`iana`},"application/vnd.dvb.ipdcesgpdd":{source:`iana`},"application/vnd.dvb.ipdcroaming":{source:`iana`},"application/vnd.dvb.iptv.alfec-base":{source:`iana`},"application/vnd.dvb.iptv.alfec-enhancement":{source:`iana`},"application/vnd.dvb.notif-aggregate-root+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.pfr":{source:`iana`},"application/vnd.dvb.service":{source:`iana`,extensions:[`svc`]},"application/vnd.dxr":{source:`iana`},"application/vnd.dynageo":{source:`iana`,extensions:[`geo`]},"application/vnd.dzr":{source:`iana`},"application/vnd.easykaraoke.cdgdownload":{source:`iana`},"application/vnd.ecdis-update":{source:`iana`},"application/vnd.ecip.rlp":{source:`iana`},"application/vnd.eclipse.ditto+json":{source:`iana`,compressible:!0},"application/vnd.ecowin.chart":{source:`iana`,extensions:[`mag`]},"application/vnd.ecowin.filerequest":{source:`iana`},"application/vnd.ecowin.fileupdate":{source:`iana`},"application/vnd.ecowin.series":{source:`iana`},"application/vnd.ecowin.seriesrequest":{source:`iana`},"application/vnd.ecowin.seriesupdate":{source:`iana`},"application/vnd.efi.img":{source:`iana`},"application/vnd.efi.iso":{source:`iana`},"application/vnd.eln+zip":{source:`iana`,compressible:!1},"application/vnd.emclient.accessrequest+xml":{source:`iana`,compressible:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"application/vnd.epson.esf":{source:`iana`,extensions:[`esf`]},"application/vnd.epson.msf":{source:`iana`,extensions:[`msf`]},"application/vnd.epson.quickanime":{source:`iana`,extensions:[`qam`]},"application/vnd.epson.salt":{source:`iana`,extensions:[`slt`]},"application/vnd.epson.ssf":{source:`iana`,extensions:[`ssf`]},"application/vnd.ericsson.quickcall":{source:`iana`},"application/vnd.erofs":{source:`iana`},"application/vnd.espass-espass+zip":{source:`iana`,compressible:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"application/vnd.eudora.data":{source:`iana`},"application/vnd.evolv.ecig.profile":{source:`iana`},"application/vnd.evolv.ecig.settings":{source:`iana`},"application/vnd.evolv.ecig.theme":{source:`iana`},"application/vnd.exstream-empower+zip":{source:`iana`,compressible:!1},"application/vnd.exstream-package":{source:`iana`},"application/vnd.ezpix-album":{source:`iana`,extensions:[`ez2`]},"application/vnd.ezpix-package":{source:`iana`,extensions:[`ez3`]},"application/vnd.f-secure.mobile":{source:`iana`},"application/vnd.familysearch.gedcom+zip":{source:`iana`,compressible:!1},"application/vnd.fastcopy-disk-image":{source:`iana`},"application/vnd.fdf":{source:`apache`,extensions:[`fdf`]},"application/vnd.fdsn.mseed":{source:`iana`,extensions:[`mseed`]},"application/vnd.fdsn.seed":{source:`iana`,extensions:[`seed`,`dataless`]},"application/vnd.fdsn.stationxml+xml":{source:`iana`,charset:`XML-BASED`,compressible:!0},"application/vnd.ffsns":{source:`iana`},"application/vnd.ficlab.flb+zip":{source:`iana`,compressible:!1},"application/vnd.filmit.zfc":{source:`iana`},"application/vnd.fints":{source:`iana`},"application/vnd.firemonkeys.cloudcell":{source:`iana`},"application/vnd.flographit":{source:`iana`,extensions:[`gph`]},"application/vnd.fluxtime.clip":{source:`iana`,extensions:[`ftc`]},"application/vnd.font-fontforge-sfd":{source:`iana`},"application/vnd.framemaker":{source:`iana`,extensions:[`fm`,`frame`,`maker`,`book`]},"application/vnd.freelog.comic":{source:`iana`},"application/vnd.frogans.fnc":{source:`apache`,extensions:[`fnc`]},"application/vnd.frogans.ltf":{source:`apache`,extensions:[`ltf`]},"application/vnd.fsc.weblaunch":{source:`iana`,extensions:[`fsc`]},"application/vnd.fujifilm.fb.docuworks":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.binder":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.container":{source:`iana`},"application/vnd.fujifilm.fb.jfi+xml":{source:`iana`,compressible:!0},"application/vnd.fujitsu.oasys":{source:`iana`,extensions:[`oas`]},"application/vnd.fujitsu.oasys2":{source:`iana`,extensions:[`oa2`]},"application/vnd.fujitsu.oasys3":{source:`iana`,extensions:[`oa3`]},"application/vnd.fujitsu.oasysgp":{source:`iana`,extensions:[`fg5`]},"application/vnd.fujitsu.oasysprs":{source:`iana`,extensions:[`bh2`]},"application/vnd.fujixerox.art-ex":{source:`iana`},"application/vnd.fujixerox.art4":{source:`iana`},"application/vnd.fujixerox.ddd":{source:`iana`,extensions:[`ddd`]},"application/vnd.fujixerox.docuworks":{source:`iana`,extensions:[`xdw`]},"application/vnd.fujixerox.docuworks.binder":{source:`iana`,extensions:[`xbd`]},"application/vnd.fujixerox.docuworks.container":{source:`iana`},"application/vnd.fujixerox.hbpl":{source:`iana`},"application/vnd.fut-misnet":{source:`iana`},"application/vnd.futoin+cbor":{source:`iana`},"application/vnd.futoin+json":{source:`iana`,compressible:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.ga4gh.passport+jwt":{source:`iana`},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.genozip":{source:`iana`},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.gentoo.catmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.gentoo.ebuild":{source:`iana`},"application/vnd.gentoo.eclass":{source:`iana`},"application/vnd.gentoo.gpkg":{source:`iana`},"application/vnd.gentoo.manifest":{source:`iana`},"application/vnd.gentoo.pkgmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.gentoo.xpak":{source:`iana`},"application/vnd.geo+json":{source:`apache`,compressible:!0},"application/vnd.geocube+xml":{source:`apache`,compressible:!0},"application/vnd.geogebra.file":{source:`iana`,extensions:[`ggb`]},"application/vnd.geogebra.pinboard":{source:`iana`},"application/vnd.geogebra.slides":{source:`iana`,extensions:[`ggs`]},"application/vnd.geogebra.tool":{source:`iana`,extensions:[`ggt`]},"application/vnd.geometry-explorer":{source:`iana`,extensions:[`gex`,`gre`]},"application/vnd.geonext":{source:`iana`,extensions:[`gxt`]},"application/vnd.geoplan":{source:`iana`,extensions:[`g2w`]},"application/vnd.geospace":{source:`iana`,extensions:[`g3w`]},"application/vnd.gerber":{source:`iana`},"application/vnd.globalplatform.card-content-mgt":{source:`iana`},"application/vnd.globalplatform.card-content-mgt-response":{source:`iana`},"application/vnd.gmx":{source:`iana`,extensions:[`gmx`]},"application/vnd.gnu.taler.exchange+json":{source:`iana`,compressible:!0},"application/vnd.gnu.taler.merchant+json":{source:`iana`,compressible:!0},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{compressible:!1,extensions:[`gdoc`]},"application/vnd.google-apps.drawing":{compressible:!1,extensions:[`gdraw`]},"application/vnd.google-apps.drive-sdk":{compressible:!1},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{compressible:!1},"application/vnd.google-apps.form":{compressible:!1,extensions:[`gform`]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{compressible:!1,extensions:[`gjam`]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{compressible:!1,extensions:[`gmap`]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.script":{compressible:!1,extensions:[`gscript`]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{compressible:!1,extensions:[`gsite`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`apache`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0,extensions:[`xdcf`]},"application/vnd.gpxsee.map+xml":{source:`iana`,compressible:!0},"application/vnd.grafeq":{source:`iana`,extensions:[`gqf`,`gqs`]},"application/vnd.gridmp":{source:`iana`},"application/vnd.groove-account":{source:`iana`,extensions:[`gac`]},"application/vnd.groove-help":{source:`iana`,extensions:[`ghf`]},"application/vnd.groove-identity-message":{source:`iana`,extensions:[`gim`]},"application/vnd.groove-injector":{source:`iana`,extensions:[`grv`]},"application/vnd.groove-tool-message":{source:`iana`,extensions:[`gtm`]},"application/vnd.groove-tool-template":{source:`iana`,extensions:[`tpl`]},"application/vnd.groove-vcard":{source:`iana`,extensions:[`vcg`]},"application/vnd.hal+json":{source:`iana`,compressible:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hp-hpgl":{source:`iana`,extensions:[`hpgl`]},"application/vnd.hp-hpid":{source:`iana`,extensions:[`hpid`]},"application/vnd.hp-hps":{source:`iana`,extensions:[`hps`]},"application/vnd.hp-jlyt":{source:`iana`,extensions:[`jlt`]},"application/vnd.hp-pcl":{source:`iana`,extensions:[`pcl`]},"application/vnd.hp-pclxl":{source:`iana`,extensions:[`pclxl`]},"application/vnd.hsl":{source:`iana`},"application/vnd.httphone":{source:`iana`},"application/vnd.hydrostatix.sof-data":{source:`iana`,extensions:[`sfd-hdstx`]},"application/vnd.hyper+json":{source:`iana`,compressible:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"application/vnd.hzn-3d-crossword":{source:`iana`},"application/vnd.ibm.afplinedata":{source:`apache`},"application/vnd.ibm.electronic-media":{source:`iana`},"application/vnd.ibm.minipay":{source:`iana`,extensions:[`mpy`]},"application/vnd.ibm.modcap":{source:`apache`,extensions:[`afp`,`listafp`,`list3820`]},"application/vnd.ibm.rights-management":{source:`iana`,extensions:[`irm`]},"application/vnd.ibm.secure-container":{source:`iana`,extensions:[`sc`]},"application/vnd.iccprofile":{source:`iana`,extensions:[`icc`,`icm`]},"application/vnd.ieee.1905":{source:`iana`},"application/vnd.igloader":{source:`iana`,extensions:[`igl`]},"application/vnd.imagemeter.folder+zip":{source:`iana`,compressible:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"application/vnd.immervision-ivp":{source:`iana`,extensions:[`ivp`]},"application/vnd.immervision-ivu":{source:`iana`,extensions:[`ivu`]},"application/vnd.ims.imsccv1p1":{source:`iana`},"application/vnd.ims.imsccv1p2":{source:`iana`},"application/vnd.ims.imsccv1p3":{source:`iana`},"application/vnd.ims.lis.v2.result+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`apache`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"application/vnd.innopath.wamp.notification":{source:`iana`},"application/vnd.insors.igm":{source:`iana`,extensions:[`igm`]},"application/vnd.intercon.formnet":{source:`iana`,extensions:[`xpw`,`xpx`]},"application/vnd.intergeo":{source:`iana`,extensions:[`i2g`]},"application/vnd.intertrust.digibox":{source:`iana`},"application/vnd.intertrust.nncp":{source:`iana`},"application/vnd.intu.qbo":{source:`iana`,extensions:[`qbo`]},"application/vnd.intu.qfx":{source:`iana`,extensions:[`qfx`]},"application/vnd.ipfs.ipns-record":{source:`iana`},"application/vnd.ipld.car":{source:`iana`},"application/vnd.ipld.dag-cbor":{source:`iana`},"application/vnd.ipld.dag-json":{source:`iana`},"application/vnd.ipld.raw":{source:`iana`},"application/vnd.iptc.g2.catalogitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,extensions:[`irp`]},"application/vnd.is-xpr":{source:`iana`,extensions:[`xpr`]},"application/vnd.isac.fcs":{source:`iana`,extensions:[`fcs`]},"application/vnd.iso11783-10+zip":{source:`iana`,compressible:!1},"application/vnd.jam":{source:`iana`,extensions:[`jam`]},"application/vnd.japannet-directory-service":{source:`iana`},"application/vnd.japannet-jpnstore-wakeup":{source:`iana`},"application/vnd.japannet-payment-wakeup":{source:`iana`},"application/vnd.japannet-registration":{source:`iana`},"application/vnd.japannet-registration-wakeup":{source:`iana`},"application/vnd.japannet-setstore-wakeup":{source:`iana`},"application/vnd.japannet-verification":{source:`iana`},"application/vnd.japannet-verification-wakeup":{source:`iana`},"application/vnd.jcp.javame.midlet-rms":{source:`iana`,extensions:[`rms`]},"application/vnd.jisp":{source:`iana`,extensions:[`jisp`]},"application/vnd.joost.joda-archive":{source:`iana`,extensions:[`joda`]},"application/vnd.jsk.isdn-ngn":{source:`iana`},"application/vnd.kahootz":{source:`iana`,extensions:[`ktz`,`ktr`]},"application/vnd.kde.karbon":{source:`iana`,extensions:[`karbon`]},"application/vnd.kde.kchart":{source:`iana`,extensions:[`chrt`]},"application/vnd.kde.kformula":{source:`iana`,extensions:[`kfo`]},"application/vnd.kde.kivio":{source:`iana`,extensions:[`flw`]},"application/vnd.kde.kontour":{source:`iana`,extensions:[`kon`]},"application/vnd.kde.kpresenter":{source:`iana`,extensions:[`kpr`,`kpt`]},"application/vnd.kde.kspread":{source:`iana`,extensions:[`ksp`]},"application/vnd.kde.kword":{source:`iana`,extensions:[`kwd`,`kwt`]},"application/vnd.kdl":{source:`iana`},"application/vnd.kenameaapp":{source:`iana`,extensions:[`htke`]},"application/vnd.keyman.kmp+zip":{source:`iana`,compressible:!1},"application/vnd.keyman.kmx":{source:`iana`},"application/vnd.kidspiration":{source:`iana`,extensions:[`kia`]},"application/vnd.kinar":{source:`iana`,extensions:[`kne`,`knp`]},"application/vnd.koan":{source:`iana`,extensions:[`skp`,`skd`,`skt`,`skm`]},"application/vnd.kodak-descriptor":{source:`iana`,extensions:[`sse`]},"application/vnd.las":{source:`iana`},"application/vnd.las.las+json":{source:`iana`,compressible:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.ldev.productlicensing":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]},"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"application/vnd.loom":{source:`iana`},"application/vnd.lotus-1-2-3":{source:`iana`,extensions:[`123`]},"application/vnd.lotus-approach":{source:`iana`,extensions:[`apr`]},"application/vnd.lotus-freelance":{source:`iana`,extensions:[`pre`]},"application/vnd.lotus-notes":{source:`iana`,extensions:[`nsf`]},"application/vnd.lotus-organizer":{source:`iana`,extensions:[`org`]},"application/vnd.lotus-screencam":{source:`iana`,extensions:[`scm`]},"application/vnd.lotus-wordpro":{source:`iana`,extensions:[`lwp`]},"application/vnd.macports.portpkg":{source:`iana`,extensions:[`portpkg`]},"application/vnd.mapbox-vector-tile":{source:`iana`,extensions:[`mvt`]},"application/vnd.marlin.drm.actiontoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"application/vnd.maxmind.maxmind-db":{source:`iana`},"application/vnd.mcd":{source:`iana`,extensions:[`mcd`]},"application/vnd.mdl":{source:`iana`},"application/vnd.mdl-mbsdf":{source:`iana`},"application/vnd.medcalcdata":{source:`iana`,extensions:[`mc1`]},"application/vnd.mediastation.cdkey":{source:`iana`,extensions:[`cdkey`]},"application/vnd.medicalholodeck.recordxr":{source:`iana`},"application/vnd.meridian-slingshot":{source:`iana`},"application/vnd.mermaid":{source:`iana`},"application/vnd.mfer":{source:`iana`,extensions:[`mwf`]},"application/vnd.mfmp":{source:`iana`,extensions:[`mfm`]},"application/vnd.micro+json":{source:`iana`,compressible:!0},"application/vnd.micrografx.flo":{source:`iana`,extensions:[`flo`]},"application/vnd.micrografx.igx":{source:`iana`,extensions:[`igx`]},"application/vnd.microsoft.portable-executable":{source:`iana`},"application/vnd.microsoft.windows.thumbnail-cache":{source:`iana`},"application/vnd.miele+json":{source:`iana`,compressible:!0},"application/vnd.mif":{source:`iana`,extensions:[`mif`]},"application/vnd.minisoft-hp3000-save":{source:`iana`},"application/vnd.mitsubishi.misty-guard.trustweb":{source:`iana`},"application/vnd.mobius.daf":{source:`iana`,extensions:[`daf`]},"application/vnd.mobius.dis":{source:`iana`,extensions:[`dis`]},"application/vnd.mobius.mbk":{source:`iana`,extensions:[`mbk`]},"application/vnd.mobius.mqy":{source:`iana`,extensions:[`mqy`]},"application/vnd.mobius.msl":{source:`iana`,extensions:[`msl`]},"application/vnd.mobius.plc":{source:`iana`,extensions:[`plc`]},"application/vnd.mobius.txf":{source:`iana`,extensions:[`txf`]},"application/vnd.modl":{source:`iana`},"application/vnd.mophun.application":{source:`iana`,extensions:[`mpn`]},"application/vnd.mophun.certificate":{source:`iana`,extensions:[`mpc`]},"application/vnd.motorola.flexsuite":{source:`iana`},"application/vnd.motorola.flexsuite.adsi":{source:`iana`},"application/vnd.motorola.flexsuite.fis":{source:`iana`},"application/vnd.motorola.flexsuite.gotap":{source:`iana`},"application/vnd.motorola.flexsuite.kmr":{source:`iana`},"application/vnd.motorola.flexsuite.ttc":{source:`iana`},"application/vnd.motorola.flexsuite.wem":{source:`iana`},"application/vnd.motorola.iprm":{source:`iana`},"application/vnd.mozilla.xul+xml":{source:`iana`,compressible:!0,extensions:[`xul`]},"application/vnd.ms-3mfdocument":{source:`iana`},"application/vnd.ms-artgalry":{source:`iana`,extensions:[`cil`]},"application/vnd.ms-asf":{source:`iana`},"application/vnd.ms-cab-compressed":{source:`iana`,extensions:[`cab`]},"application/vnd.ms-color.iccprofile":{source:`apache`},"application/vnd.ms-excel":{source:`iana`,compressible:!1,extensions:[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`]},"application/vnd.ms-excel.addin.macroenabled.12":{source:`iana`,extensions:[`xlam`]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:`iana`,extensions:[`xlsb`]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:`iana`,extensions:[`xlsm`]},"application/vnd.ms-excel.template.macroenabled.12":{source:`iana`,extensions:[`xltm`]},"application/vnd.ms-fontobject":{source:`iana`,compressible:!0,extensions:[`eot`]},"application/vnd.ms-htmlhelp":{source:`iana`,extensions:[`chm`]},"application/vnd.ms-ims":{source:`iana`,extensions:[`ims`]},"application/vnd.ms-lrm":{source:`iana`,extensions:[`lrm`]},"application/vnd.ms-office.activex+xml":{source:`iana`,compressible:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:[`msg`]},"application/vnd.ms-package.obfuscated-opentype":{source:`apache`},"application/vnd.ms-pki.seccat":{source:`apache`,extensions:[`cat`]},"application/vnd.ms-pki.stl":{source:`apache`,extensions:[`stl`]},"application/vnd.ms-playready.initiator+xml":{source:`iana`,compressible:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,extensions:[`ppt`,`pps`,`pot`]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:`iana`,extensions:[`ppam`]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:`iana`,extensions:[`pptm`]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:`iana`,extensions:[`sldm`]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:`iana`,extensions:[`ppsm`]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:`iana`,extensions:[`potm`]},"application/vnd.ms-printdevicecapabilities+xml":{source:`iana`,compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"application/vnd.ms-project":{source:`iana`,extensions:[`mpp`,`mpt`]},"application/vnd.ms-tnef":{source:`iana`},"application/vnd.ms-visio.viewer":{extensions:[`vdx`]},"application/vnd.ms-windows.devicepairing":{source:`iana`},"application/vnd.ms-windows.nwprinting.oob":{source:`iana`},"application/vnd.ms-windows.printerpairing":{source:`iana`},"application/vnd.ms-windows.wsd.oob":{source:`iana`},"application/vnd.ms-wmdrm.lic-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.lic-resp":{source:`iana`},"application/vnd.ms-wmdrm.meter-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.meter-resp":{source:`iana`},"application/vnd.ms-word.document.macroenabled.12":{source:`iana`,extensions:[`docm`]},"application/vnd.ms-word.template.macroenabled.12":{source:`iana`,extensions:[`dotm`]},"application/vnd.ms-works":{source:`iana`,extensions:[`wps`,`wks`,`wcm`,`wdb`]},"application/vnd.ms-wpl":{source:`iana`,extensions:[`wpl`]},"application/vnd.ms-xpsdocument":{source:`iana`,compressible:!1,extensions:[`xps`]},"application/vnd.msa-disk-image":{source:`iana`},"application/vnd.mseq":{source:`iana`,extensions:[`mseq`]},"application/vnd.msgpack":{source:`iana`},"application/vnd.msign":{source:`iana`},"application/vnd.multiad.creator":{source:`iana`},"application/vnd.multiad.creator.cif":{source:`iana`},"application/vnd.music-niff":{source:`iana`},"application/vnd.musician":{source:`iana`,extensions:[`mus`]},"application/vnd.muvee.style":{source:`iana`,extensions:[`msty`]},"application/vnd.mynfc":{source:`iana`,extensions:[`taglet`]},"application/vnd.nacamar.ybrid+json":{source:`iana`,compressible:!0},"application/vnd.nato.bindingdataobject+cbor":{source:`iana`},"application/vnd.nato.bindingdataobject+json":{source:`iana`,compressible:!0},"application/vnd.nato.bindingdataobject+xml":{source:`iana`,compressible:!0,extensions:[`bdo`]},"application/vnd.nato.openxmlformats-package.iepd+zip":{source:`iana`,compressible:!1},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"application/vnd.nebumind.line":{source:`iana`},"application/vnd.nervana":{source:`iana`},"application/vnd.netfpx":{source:`iana`},"application/vnd.neurolanguage.nlu":{source:`iana`,extensions:[`nlu`]},"application/vnd.nimn":{source:`iana`},"application/vnd.nintendo.nitro.rom":{source:`iana`},"application/vnd.nintendo.snes.rom":{source:`iana`},"application/vnd.nitf":{source:`iana`,extensions:[`ntf`,`nitf`]},"application/vnd.noblenet-directory":{source:`iana`,extensions:[`nnd`]},"application/vnd.noblenet-sealer":{source:`iana`,extensions:[`nns`]},"application/vnd.noblenet-web":{source:`iana`,extensions:[`nnw`]},"application/vnd.nokia.catalogs":{source:`iana`},"application/vnd.nokia.conml+wbxml":{source:`iana`},"application/vnd.nokia.conml+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,extensions:[`ac`]},"application/vnd.nokia.n-gage.data":{source:`iana`,extensions:[`ngdat`]},"application/vnd.nokia.n-gage.symbian.install":{source:`apache`,extensions:[`n-gage`]},"application/vnd.nokia.ncd":{source:`iana`},"application/vnd.nokia.pcd+wbxml":{source:`iana`},"application/vnd.nokia.pcd+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.radio-preset":{source:`iana`,extensions:[`rpst`]},"application/vnd.nokia.radio-presets":{source:`iana`,extensions:[`rpss`]},"application/vnd.novadigm.edm":{source:`iana`,extensions:[`edm`]},"application/vnd.novadigm.edx":{source:`iana`,extensions:[`edx`]},"application/vnd.novadigm.ext":{source:`iana`,extensions:[`ext`]},"application/vnd.ntt-local.content-share":{source:`iana`},"application/vnd.ntt-local.file-transfer":{source:`iana`},"application/vnd.ntt-local.ogw_remote-access":{source:`iana`},"application/vnd.ntt-local.sip-ta_remote":{source:`iana`},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:`iana`},"application/vnd.oai.workflows":{source:`iana`},"application/vnd.oai.workflows+json":{source:`iana`,compressible:!0},"application/vnd.oai.workflows+yaml":{source:`iana`},"application/vnd.oasis.opendocument.base":{source:`iana`},"application/vnd.oasis.opendocument.chart":{source:`iana`,extensions:[`odc`]},"application/vnd.oasis.opendocument.chart-template":{source:`iana`,extensions:[`otc`]},"application/vnd.oasis.opendocument.database":{source:`apache`,extensions:[`odb`]},"application/vnd.oasis.opendocument.formula":{source:`iana`,extensions:[`odf`]},"application/vnd.oasis.opendocument.formula-template":{source:`iana`,extensions:[`odft`]},"application/vnd.oasis.opendocument.graphics":{source:`iana`,compressible:!1,extensions:[`odg`]},"application/vnd.oasis.opendocument.graphics-template":{source:`iana`,extensions:[`otg`]},"application/vnd.oasis.opendocument.image":{source:`iana`,extensions:[`odi`]},"application/vnd.oasis.opendocument.image-template":{source:`iana`,extensions:[`oti`]},"application/vnd.oasis.opendocument.presentation":{source:`iana`,compressible:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,extensions:[`odt`]},"application/vnd.oasis.opendocument.text-master":{source:`iana`,extensions:[`odm`]},"application/vnd.oasis.opendocument.text-master-template":{source:`iana`},"application/vnd.oasis.opendocument.text-template":{source:`iana`,extensions:[`ott`]},"application/vnd.oasis.opendocument.text-web":{source:`iana`,extensions:[`oth`]},"application/vnd.obn":{source:`iana`},"application/vnd.ocf+cbor":{source:`iana`},"application/vnd.oci.image.manifest.v1+json":{source:`iana`,compressible:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"application/vnd.olpc-sugar":{source:`iana`,extensions:[`xo`]},"application/vnd.oma-scws-config":{source:`iana`},"application/vnd.oma-scws-http-request":{source:`iana`},"application/vnd.oma-scws-http-response":{source:`iana`},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`apache`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sgdu":{source:`iana`},"application/vnd.oma.bcast.simple-symbol-container":{source:`iana`},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:`apache`,compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omaloc-supl-init":{source:`iana`},"application/vnd.onepager":{source:`iana`},"application/vnd.onepagertamp":{source:`iana`},"application/vnd.onepagertamx":{source:`iana`},"application/vnd.onepagertat":{source:`iana`},"application/vnd.onepagertatp":{source:`iana`},"application/vnd.onepagertatx":{source:`iana`},"application/vnd.onvif.metadata":{source:`iana`},"application/vnd.openblox.game+xml":{source:`iana`,compressible:!0,extensions:[`obgx`]},"application/vnd.openblox.game-binary":{source:`iana`},"application/vnd.openeye.oeb":{source:`iana`},"application/vnd.openofficeorg.extension":{source:`apache`,extensions:[`oxt`]},"application/vnd.openstreetmap.data+xml":{source:`iana`,compressible:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openvpi.dspx+json":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`pptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"application/vnd.orange.indata":{source:`iana`},"application/vnd.osa.netdeploy":{source:`iana`},"application/vnd.osgeo.mapguide.package":{source:`iana`,extensions:[`mgp`]},"application/vnd.osgi.bundle":{source:`iana`},"application/vnd.osgi.dp":{source:`iana`,extensions:[`dp`]},"application/vnd.osgi.subsystem":{source:`iana`,extensions:[`esa`]},"application/vnd.otps.ct-kip+xml":{source:`iana`,compressible:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"application/vnd.palm":{source:`iana`,extensions:[`pdb`,`pqa`,`oprc`]},"application/vnd.panoply":{source:`iana`},"application/vnd.paos.xml":{source:`iana`},"application/vnd.patentdive":{source:`iana`},"application/vnd.patientecommsdoc":{source:`iana`},"application/vnd.pawaafile":{source:`iana`,extensions:[`paw`]},"application/vnd.pcos":{source:`iana`},"application/vnd.pg.format":{source:`iana`,extensions:[`str`]},"application/vnd.pg.osasli":{source:`iana`,extensions:[`ei6`]},"application/vnd.piaccess.application-licence":{source:`iana`},"application/vnd.picsel":{source:`iana`,extensions:[`efif`]},"application/vnd.pmi.widget":{source:`iana`,extensions:[`wg`]},"application/vnd.poc.group-advertisement+xml":{source:`iana`,compressible:!0},"application/vnd.pocketlearn":{source:`iana`,extensions:[`plf`]},"application/vnd.powerbuilder6":{source:`iana`,extensions:[`pbd`]},"application/vnd.powerbuilder6-s":{source:`iana`},"application/vnd.powerbuilder7":{source:`iana`},"application/vnd.powerbuilder7-s":{source:`iana`},"application/vnd.powerbuilder75":{source:`iana`},"application/vnd.powerbuilder75-s":{source:`iana`},"application/vnd.preminet":{source:`iana`},"application/vnd.previewsystems.box":{source:`iana`,extensions:[`box`]},"application/vnd.procrate.brushset":{extensions:[`brushset`]},"application/vnd.procreate.brush":{extensions:[`brush`]},"application/vnd.procreate.dream":{extensions:[`drm`]},"application/vnd.proteus.magazine":{source:`iana`,extensions:[`mgz`]},"application/vnd.psfs":{source:`iana`},"application/vnd.pt.mundusmundi":{source:`iana`},"application/vnd.publishare-delta-tree":{source:`iana`,extensions:[`qps`]},"application/vnd.pvi.ptid1":{source:`iana`,extensions:[`ptid`]},"application/vnd.pwg-multiplexed":{source:`iana`},"application/vnd.pwg-xhtml-print+xml":{source:`iana`,compressible:!0,extensions:[`xhtm`]},"application/vnd.qualcomm.brew-app-res":{source:`iana`},"application/vnd.quarantainenet":{source:`iana`},"application/vnd.quark.quarkxpress":{source:`iana`,extensions:[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`]},"application/vnd.quobject-quoxdocument":{source:`iana`},"application/vnd.radisys.moml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"application/vnd.rainstor.data":{source:`iana`},"application/vnd.rapid":{source:`iana`},"application/vnd.rar":{source:`iana`,extensions:[`rar`]},"application/vnd.realvnc.bed":{source:`iana`,extensions:[`bed`]},"application/vnd.recordare.musicxml":{source:`iana`,extensions:[`mxl`]},"application/vnd.recordare.musicxml+xml":{source:`iana`,compressible:!0,extensions:[`musicxml`]},"application/vnd.relpipe":{source:`iana`},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"application/vnd.rig.cryptonote":{source:`iana`,extensions:[`cryptonote`]},"application/vnd.rim.cod":{source:`apache`,extensions:[`cod`]},"application/vnd.rn-realmedia":{source:`apache`,extensions:[`rm`]},"application/vnd.rn-realmedia-vbr":{source:`apache`,extensions:[`rmvb`]},"application/vnd.route66.link66+xml":{source:`iana`,compressible:!0,extensions:[`link66`]},"application/vnd.rs-274x":{source:`iana`},"application/vnd.ruckus.download":{source:`iana`},"application/vnd.s3sms":{source:`iana`},"application/vnd.sailingtracker.track":{source:`iana`,extensions:[`st`]},"application/vnd.sar":{source:`iana`},"application/vnd.sbm.cid":{source:`iana`},"application/vnd.sbm.mid2":{source:`iana`},"application/vnd.scribus":{source:`iana`},"application/vnd.sealed.3df":{source:`iana`},"application/vnd.sealed.csf":{source:`iana`},"application/vnd.sealed.doc":{source:`iana`},"application/vnd.sealed.eml":{source:`iana`},"application/vnd.sealed.mht":{source:`iana`},"application/vnd.sealed.net":{source:`iana`},"application/vnd.sealed.ppt":{source:`iana`},"application/vnd.sealed.tiff":{source:`iana`},"application/vnd.sealed.xls":{source:`iana`},"application/vnd.sealedmedia.softseal.html":{source:`iana`},"application/vnd.sealedmedia.softseal.pdf":{source:`iana`},"application/vnd.seemail":{source:`iana`,extensions:[`see`]},"application/vnd.seis+json":{source:`iana`,compressible:!0},"application/vnd.sema":{source:`iana`,extensions:[`sema`]},"application/vnd.semd":{source:`iana`,extensions:[`semd`]},"application/vnd.semf":{source:`iana`,extensions:[`semf`]},"application/vnd.shade-save-file":{source:`iana`},"application/vnd.shana.informed.formdata":{source:`iana`,extensions:[`ifm`]},"application/vnd.shana.informed.formtemplate":{source:`iana`,extensions:[`itp`]},"application/vnd.shana.informed.interchange":{source:`iana`,extensions:[`iif`]},"application/vnd.shana.informed.package":{source:`iana`,extensions:[`ipk`]},"application/vnd.shootproof+json":{source:`iana`,compressible:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"application/vnd.shp":{source:`iana`},"application/vnd.shx":{source:`iana`},"application/vnd.sigrok.session":{source:`iana`},"application/vnd.simtech-mindmapper":{source:`iana`,extensions:[`twd`,`twds`]},"application/vnd.siren+json":{source:`iana`,compressible:!0},"application/vnd.sketchometry":{source:`iana`},"application/vnd.smaf":{source:`iana`,extensions:[`mmf`]},"application/vnd.smart.notebook":{source:`iana`},"application/vnd.smart.teacher":{source:`iana`,extensions:[`teacher`]},"application/vnd.smintio.portals.archive":{source:`iana`},"application/vnd.snesdev-page-table":{source:`iana`},"application/vnd.software602.filler.form+xml":{source:`iana`,compressible:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,extensions:[`sdkm`,`sdkd`]},"application/vnd.spotfire.dxp":{source:`iana`,extensions:[`dxp`]},"application/vnd.spotfire.sfs":{source:`iana`,extensions:[`sfs`]},"application/vnd.sqlite3":{source:`iana`},"application/vnd.sss-cod":{source:`iana`},"application/vnd.sss-dtf":{source:`iana`},"application/vnd.sss-ntf":{source:`iana`},"application/vnd.stardivision.calc":{source:`apache`,extensions:[`sdc`]},"application/vnd.stardivision.draw":{source:`apache`,extensions:[`sda`]},"application/vnd.stardivision.impress":{source:`apache`,extensions:[`sdd`]},"application/vnd.stardivision.math":{source:`apache`,extensions:[`smf`]},"application/vnd.stardivision.writer":{source:`apache`,extensions:[`sdw`,`vor`]},"application/vnd.stardivision.writer-global":{source:`apache`,extensions:[`sgl`]},"application/vnd.stepmania.package":{source:`iana`,extensions:[`smzip`]},"application/vnd.stepmania.stepchart":{source:`iana`,extensions:[`sm`]},"application/vnd.street-stream":{source:`iana`},"application/vnd.sun.wadl+xml":{source:`iana`,compressible:!0,extensions:[`wadl`]},"application/vnd.sun.xml.calc":{source:`apache`,extensions:[`sxc`]},"application/vnd.sun.xml.calc.template":{source:`apache`,extensions:[`stc`]},"application/vnd.sun.xml.draw":{source:`apache`,extensions:[`sxd`]},"application/vnd.sun.xml.draw.template":{source:`apache`,extensions:[`std`]},"application/vnd.sun.xml.impress":{source:`apache`,extensions:[`sxi`]},"application/vnd.sun.xml.impress.template":{source:`apache`,extensions:[`sti`]},"application/vnd.sun.xml.math":{source:`apache`,extensions:[`sxm`]},"application/vnd.sun.xml.writer":{source:`apache`,extensions:[`sxw`]},"application/vnd.sun.xml.writer.global":{source:`apache`,extensions:[`sxg`]},"application/vnd.sun.xml.writer.template":{source:`apache`,extensions:[`stw`]},"application/vnd.sus-calendar":{source:`iana`,extensions:[`sus`,`susp`]},"application/vnd.svd":{source:`iana`,extensions:[`svd`]},"application/vnd.swiftview-ics":{source:`iana`},"application/vnd.sybyl.mol2":{source:`iana`},"application/vnd.sycle+xml":{source:`iana`,compressible:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xsm`]},"application/vnd.syncml.dm+wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`bdm`]},"application/vnd.syncml.dm+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xdm`]},"application/vnd.syncml.dm.notification":{source:`iana`},"application/vnd.syncml.dmddf+wbxml":{source:`iana`},"application/vnd.syncml.dmddf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"application/vnd.tao.intent-module-archive":{source:`iana`,extensions:[`tao`]},"application/vnd.tcpdump.pcap":{source:`iana`,extensions:[`pcap`,`cap`,`dmp`]},"application/vnd.think-cell.ppttc+json":{source:`iana`,compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"application/vnd.tml":{source:`iana`},"application/vnd.tmobile-livetv":{source:`iana`,extensions:[`tmo`]},"application/vnd.tri.onesource":{source:`iana`},"application/vnd.trid.tpt":{source:`iana`,extensions:[`tpt`]},"application/vnd.triscape.mxs":{source:`iana`,extensions:[`mxs`]},"application/vnd.trueapp":{source:`iana`,extensions:[`tra`]},"application/vnd.truedoc":{source:`iana`},"application/vnd.ubisoft.webplayer":{source:`iana`},"application/vnd.ufdl":{source:`iana`,extensions:[`ufd`,`ufdl`]},"application/vnd.uic.osdm+json":{source:`iana`,compressible:!0},"application/vnd.uiq.theme":{source:`iana`,extensions:[`utz`]},"application/vnd.umajin":{source:`iana`,extensions:[`umj`]},"application/vnd.unity":{source:`iana`,extensions:[`unityweb`]},"application/vnd.uoml+xml":{source:`iana`,compressible:!0,extensions:[`uoml`,`uo`]},"application/vnd.uplanet.alert":{source:`iana`},"application/vnd.uplanet.alert-wbxml":{source:`iana`},"application/vnd.uplanet.bearer-choice":{source:`iana`},"application/vnd.uplanet.bearer-choice-wbxml":{source:`iana`},"application/vnd.uplanet.cacheop":{source:`iana`},"application/vnd.uplanet.cacheop-wbxml":{source:`iana`},"application/vnd.uplanet.channel":{source:`iana`},"application/vnd.uplanet.channel-wbxml":{source:`iana`},"application/vnd.uplanet.list":{source:`iana`},"application/vnd.uplanet.list-wbxml":{source:`iana`},"application/vnd.uplanet.listcmd":{source:`iana`},"application/vnd.uplanet.listcmd-wbxml":{source:`iana`},"application/vnd.uplanet.signal":{source:`iana`},"application/vnd.uri-map":{source:`iana`},"application/vnd.valve.source.material":{source:`iana`},"application/vnd.vcx":{source:`iana`,extensions:[`vcx`]},"application/vnd.vd-study":{source:`iana`},"application/vnd.vectorworks":{source:`iana`},"application/vnd.vel+json":{source:`iana`,compressible:!0},"application/vnd.veraison.tsm-report+cbor":{source:`iana`},"application/vnd.veraison.tsm-report+json":{source:`iana`,compressible:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"application/vnd.veryant.thin":{source:`iana`},"application/vnd.ves.encrypted":{source:`iana`},"application/vnd.vidsoft.vidconference":{source:`iana`},"application/vnd.visio":{source:`iana`,extensions:[`vsd`,`vst`,`vss`,`vsw`,`vsdx`,`vtx`]},"application/vnd.visionary":{source:`iana`,extensions:[`vis`]},"application/vnd.vividence.scriptfile":{source:`iana`},"application/vnd.vocalshaper.vsp4":{source:`iana`},"application/vnd.vsf":{source:`iana`,extensions:[`vsf`]},"application/vnd.wap.sic":{source:`iana`},"application/vnd.wap.slc":{source:`iana`},"application/vnd.wap.wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`wbxml`]},"application/vnd.wap.wmlc":{source:`iana`,extensions:[`wmlc`]},"application/vnd.wap.wmlscriptc":{source:`iana`,extensions:[`wmlsc`]},"application/vnd.wasmflow.wafl":{source:`iana`},"application/vnd.webturbo":{source:`iana`,extensions:[`wtb`]},"application/vnd.wfa.dpp":{source:`iana`},"application/vnd.wfa.p2p":{source:`iana`},"application/vnd.wfa.wsc":{source:`iana`},"application/vnd.windows.devicepairing":{source:`iana`},"application/vnd.wmc":{source:`iana`},"application/vnd.wmf.bootstrap":{source:`iana`},"application/vnd.wolfram.mathematica":{source:`iana`},"application/vnd.wolfram.mathematica.package":{source:`iana`},"application/vnd.wolfram.player":{source:`iana`,extensions:[`nbp`]},"application/vnd.wordlift":{source:`iana`},"application/vnd.wordperfect":{source:`iana`,extensions:[`wpd`]},"application/vnd.wqd":{source:`iana`,extensions:[`wqd`]},"application/vnd.wrq-hp3000-labelled":{source:`iana`},"application/vnd.wt.stf":{source:`iana`,extensions:[`stf`]},"application/vnd.wv.csp+wbxml":{source:`iana`},"application/vnd.wv.csp+xml":{source:`iana`,compressible:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"application/vnd.xara":{source:`iana`,extensions:[`xar`]},"application/vnd.xarin.cpj":{source:`iana`},"application/vnd.xecrets-encrypted":{source:`iana`},"application/vnd.xfdl":{source:`iana`,extensions:[`xfdl`]},"application/vnd.xfdl.webform":{source:`iana`},"application/vnd.xmi+xml":{source:`iana`,compressible:!0},"application/vnd.xmpie.cpkg":{source:`iana`},"application/vnd.xmpie.dpkg":{source:`iana`},"application/vnd.xmpie.plan":{source:`iana`},"application/vnd.xmpie.ppkg":{source:`iana`},"application/vnd.xmpie.xlim":{source:`iana`},"application/vnd.yamaha.hv-dic":{source:`iana`,extensions:[`hvd`]},"application/vnd.yamaha.hv-script":{source:`iana`,extensions:[`hvs`]},"application/vnd.yamaha.hv-voice":{source:`iana`,extensions:[`hvp`]},"application/vnd.yamaha.openscoreformat":{source:`iana`,extensions:[`osf`]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:`iana`,compressible:!0,extensions:[`osfpvg`]},"application/vnd.yamaha.remote-setup":{source:`iana`},"application/vnd.yamaha.smaf-audio":{source:`iana`,extensions:[`saf`]},"application/vnd.yamaha.smaf-phrase":{source:`iana`,extensions:[`spf`]},"application/vnd.yamaha.through-ngn":{source:`iana`},"application/vnd.yamaha.tunnel-udpencap":{source:`iana`},"application/vnd.yaoweme":{source:`iana`},"application/vnd.yellowriver-custom-menu":{source:`iana`,extensions:[`cmp`]},"application/vnd.zul":{source:`iana`,extensions:[`zir`,`zirz`]},"application/vnd.zzazz.deck+xml":{source:`iana`,compressible:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/voucher-jws+json":{source:`iana`,compressible:!0},"application/vp":{source:`iana`},"application/vp+cose":{source:`iana`},"application/vp+jwt":{source:`iana`},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"application/whoispp-query":{source:`iana`},"application/whoispp-response":{source:`iana`},"application/widget":{source:`iana`,extensions:[`wgt`]},"application/winhlp":{source:`apache`,extensions:[`hlp`]},"application/wita":{source:`iana`},"application/wordperfect5.1":{source:`iana`},"application/wsdl+xml":{source:`iana`,compressible:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,extensions:[`7z`]},"application/x-abiword":{source:`apache`,extensions:[`abw`]},"application/x-ace-compressed":{source:`apache`,extensions:[`ace`]},"application/x-amf":{source:`apache`},"application/x-apple-diskimage":{source:`apache`,extensions:[`dmg`]},"application/x-arj":{compressible:!1,extensions:[`arj`]},"application/x-authorware-bin":{source:`apache`,extensions:[`aab`,`x32`,`u32`,`vox`]},"application/x-authorware-map":{source:`apache`,extensions:[`aam`]},"application/x-authorware-seg":{source:`apache`,extensions:[`aas`]},"application/x-bcpio":{source:`apache`,extensions:[`bcpio`]},"application/x-bdoc":{compressible:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blender":{extensions:[`blend`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,extensions:[`bz2`,`boz`]},"application/x-cbr":{source:`apache`,extensions:[`cbr`,`cba`,`cbt`,`cbz`,`cb7`]},"application/x-cdlink":{source:`apache`,extensions:[`vcd`]},"application/x-cfs-compressed":{source:`apache`,extensions:[`cfs`]},"application/x-chat":{source:`apache`,extensions:[`chat`]},"application/x-chess-pgn":{source:`apache`,extensions:[`pgn`]},"application/x-chrome-extension":{extensions:[`crx`]},"application/x-cocoa":{source:`nginx`,extensions:[`cco`]},"application/x-compress":{source:`apache`},"application/x-compressed":{extensions:[`rar`]},"application/x-conference":{source:`apache`,extensions:[`nsc`]},"application/x-cpio":{source:`apache`,extensions:[`cpio`]},"application/x-csh":{source:`apache`,extensions:[`csh`]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:`apache`,extensions:[`deb`,`udeb`]},"application/x-dgc-compressed":{source:`apache`,extensions:[`dgc`]},"application/x-director":{source:`apache`,extensions:[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`]},"application/x-doom":{source:`apache`,extensions:[`wad`]},"application/x-dtbncx+xml":{source:`apache`,compressible:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,extensions:[`dvi`]},"application/x-envoy":{source:`apache`,extensions:[`evy`]},"application/x-eva":{source:`apache`,extensions:[`eva`]},"application/x-font-bdf":{source:`apache`,extensions:[`bdf`]},"application/x-font-dos":{source:`apache`},"application/x-font-framemaker":{source:`apache`},"application/x-font-ghostscript":{source:`apache`,extensions:[`gsf`]},"application/x-font-libgrx":{source:`apache`},"application/x-font-linux-psf":{source:`apache`,extensions:[`psf`]},"application/x-font-pcf":{source:`apache`,extensions:[`pcf`]},"application/x-font-snf":{source:`apache`,extensions:[`snf`]},"application/x-font-speedo":{source:`apache`},"application/x-font-sunos-news":{source:`apache`},"application/x-font-type1":{source:`apache`,extensions:[`pfa`,`pfb`,`pfm`,`afm`]},"application/x-font-vfont":{source:`apache`},"application/x-freearc":{source:`apache`,extensions:[`arc`]},"application/x-futuresplash":{source:`apache`,extensions:[`spl`]},"application/x-gca-compressed":{source:`apache`,extensions:[`gca`]},"application/x-glulx":{source:`apache`,extensions:[`ulx`]},"application/x-gnumeric":{source:`apache`,extensions:[`gnumeric`]},"application/x-gramps-xml":{source:`apache`,extensions:[`gramps`]},"application/x-gtar":{source:`apache`,extensions:[`gtar`]},"application/x-gzip":{source:`apache`},"application/x-hdf":{source:`apache`,extensions:[`hdf`]},"application/x-httpd-php":{compressible:!0,extensions:[`php`]},"application/x-install-instructions":{source:`apache`,extensions:[`install`]},"application/x-ipynb+json":{compressible:!0,extensions:[`ipynb`]},"application/x-iso9660-image":{source:`apache`,extensions:[`iso`]},"application/x-iwork-keynote-sffkey":{extensions:[`key`]},"application/x-iwork-numbers-sffnumbers":{extensions:[`numbers`]},"application/x-iwork-pages-sffpages":{extensions:[`pages`]},"application/x-java-archive-diff":{source:`nginx`,extensions:[`jardiff`]},"application/x-java-jnlp-file":{source:`apache`,compressible:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,extensions:[`latex`]},"application/x-lua-bytecode":{extensions:[`luac`]},"application/x-lzh-compressed":{source:`apache`,extensions:[`lzh`,`lha`]},"application/x-makeself":{source:`nginx`,extensions:[`run`]},"application/x-mie":{source:`apache`,extensions:[`mie`]},"application/x-mobipocket-ebook":{source:`apache`,extensions:[`prc`,`mobi`]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:`apache`,extensions:[`application`]},"application/x-ms-shortcut":{source:`apache`,extensions:[`lnk`]},"application/x-ms-wmd":{source:`apache`,extensions:[`wmd`]},"application/x-ms-wmz":{source:`apache`,extensions:[`wmz`]},"application/x-ms-xbap":{source:`apache`,extensions:[`xbap`]},"application/x-msaccess":{source:`apache`,extensions:[`mdb`]},"application/x-msbinder":{source:`apache`,extensions:[`obd`]},"application/x-mscardfile":{source:`apache`,extensions:[`crd`]},"application/x-msclip":{source:`apache`,extensions:[`clp`]},"application/x-msdos-program":{extensions:[`exe`]},"application/x-msdownload":{source:`apache`,extensions:[`exe`,`dll`,`com`,`bat`,`msi`]},"application/x-msmediaview":{source:`apache`,extensions:[`mvb`,`m13`,`m14`]},"application/x-msmetafile":{source:`apache`,extensions:[`wmf`,`wmz`,`emf`,`emz`]},"application/x-msmoney":{source:`apache`,extensions:[`mny`]},"application/x-mspublisher":{source:`apache`,extensions:[`pub`]},"application/x-msschedule":{source:`apache`,extensions:[`scd`]},"application/x-msterminal":{source:`apache`,extensions:[`trm`]},"application/x-mswrite":{source:`apache`,extensions:[`wri`]},"application/x-netcdf":{source:`apache`,extensions:[`nc`,`cdf`]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:[`pac`]},"application/x-nzb":{source:`apache`,extensions:[`nzb`]},"application/x-perl":{source:`nginx`,extensions:[`pl`,`pm`]},"application/x-pilot":{source:`nginx`,extensions:[`prc`,`pdb`]},"application/x-pkcs12":{source:`apache`,compressible:!1,extensions:[`p12`,`pfx`]},"application/x-pkcs7-certificates":{source:`apache`,extensions:[`p7b`,`spc`]},"application/x-pkcs7-certreqresp":{source:`apache`,extensions:[`p7r`]},"application/x-pki-message":{source:`iana`},"application/x-rar-compressed":{source:`apache`,compressible:!1,extensions:[`rar`]},"application/x-redhat-package-manager":{source:`nginx`,extensions:[`rpm`]},"application/x-research-info-systems":{source:`apache`,extensions:[`ris`]},"application/x-sea":{source:`nginx`,extensions:[`sea`]},"application/x-sh":{source:`apache`,compressible:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,extensions:[`sit`]},"application/x-stuffitx":{source:`apache`,extensions:[`sitx`]},"application/x-subrip":{source:`apache`,extensions:[`srt`]},"application/x-sv4cpio":{source:`apache`,extensions:[`sv4cpio`]},"application/x-sv4crc":{source:`apache`,extensions:[`sv4crc`]},"application/x-t3vm-image":{source:`apache`,extensions:[`t3`]},"application/x-tads":{source:`apache`,extensions:[`gam`]},"application/x-tar":{source:`apache`,compressible:!0,extensions:[`tar`]},"application/x-tcl":{source:`apache`,extensions:[`tcl`,`tk`]},"application/x-tex":{source:`apache`,extensions:[`tex`]},"application/x-tex-tfm":{source:`apache`,extensions:[`tfm`]},"application/x-texinfo":{source:`apache`,extensions:[`texinfo`,`texi`]},"application/x-tgif":{source:`apache`,extensions:[`obj`]},"application/x-ustar":{source:`apache`,extensions:[`ustar`]},"application/x-virtualbox-hdd":{compressible:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"application/x-x509-ca-cert":{source:`iana`,extensions:[`der`,`crt`,`pem`]},"application/x-x509-ca-ra-cert":{source:`iana`},"application/x-x509-next-ca-cert":{source:`iana`},"application/x-xfig":{source:`apache`,extensions:[`fig`]},"application/x-xliff+xml":{source:`apache`,compressible:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,extensions:[`xpi`]},"application/x-xz":{source:`apache`,extensions:[`xz`]},"application/x-zip-compressed":{extensions:[`zip`]},"application/x-zmachine":{source:`apache`,extensions:[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`]},"application/x400-bp":{source:`iana`},"application/xacml+xml":{source:`iana`,compressible:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xfdf":{source:`iana`,extensions:[`xfdf`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yaml":{source:`iana`},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+cbor":{source:`iana`},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yang-sid+json":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,extensions:[`zip`]},"application/zip+dotlottie":{extensions:[`lottie`]},"application/zlib":{source:`iana`},"application/zstd":{source:`iana`},"audio/1d-interleaved-parityfec":{source:`iana`},"audio/32kadpcm":{source:`iana`},"audio/3gpp":{source:`iana`,compressible:!1,extensions:[`3gpp`]},"audio/3gpp2":{source:`iana`},"audio/aac":{source:`iana`,extensions:[`adts`,`aac`]},"audio/ac3":{source:`iana`},"audio/adpcm":{source:`apache`,extensions:[`adp`]},"audio/amr":{source:`iana`,extensions:[`amr`]},"audio/amr-wb":{source:`iana`},"audio/amr-wb+":{source:`iana`},"audio/aptx":{source:`iana`},"audio/asc":{source:`iana`},"audio/atrac-advanced-lossless":{source:`iana`},"audio/atrac-x":{source:`iana`},"audio/atrac3":{source:`iana`},"audio/basic":{source:`iana`,compressible:!1,extensions:[`au`,`snd`]},"audio/bv16":{source:`iana`},"audio/bv32":{source:`iana`},"audio/clearmode":{source:`iana`},"audio/cn":{source:`iana`},"audio/dat12":{source:`iana`},"audio/dls":{source:`iana`},"audio/dsr-es201108":{source:`iana`},"audio/dsr-es202050":{source:`iana`},"audio/dsr-es202211":{source:`iana`},"audio/dsr-es202212":{source:`iana`},"audio/dv":{source:`iana`},"audio/dvi4":{source:`iana`},"audio/eac3":{source:`iana`},"audio/encaprtp":{source:`iana`},"audio/evrc":{source:`iana`},"audio/evrc-qcp":{source:`iana`},"audio/evrc0":{source:`iana`},"audio/evrc1":{source:`iana`},"audio/evrcb":{source:`iana`},"audio/evrcb0":{source:`iana`},"audio/evrcb1":{source:`iana`},"audio/evrcnw":{source:`iana`},"audio/evrcnw0":{source:`iana`},"audio/evrcnw1":{source:`iana`},"audio/evrcwb":{source:`iana`},"audio/evrcwb0":{source:`iana`},"audio/evrcwb1":{source:`iana`},"audio/evs":{source:`iana`},"audio/flac":{source:`iana`},"audio/flexfec":{source:`iana`},"audio/fwdred":{source:`iana`},"audio/g711-0":{source:`iana`},"audio/g719":{source:`iana`},"audio/g722":{source:`iana`},"audio/g7221":{source:`iana`},"audio/g723":{source:`iana`},"audio/g726-16":{source:`iana`},"audio/g726-24":{source:`iana`},"audio/g726-32":{source:`iana`},"audio/g726-40":{source:`iana`},"audio/g728":{source:`iana`},"audio/g729":{source:`iana`},"audio/g7291":{source:`iana`},"audio/g729d":{source:`iana`},"audio/g729e":{source:`iana`},"audio/gsm":{source:`iana`},"audio/gsm-efr":{source:`iana`},"audio/gsm-hr-08":{source:`iana`},"audio/ilbc":{source:`iana`},"audio/ip-mr_v2.5":{source:`iana`},"audio/isac":{source:`apache`},"audio/l16":{source:`iana`},"audio/l20":{source:`iana`},"audio/l24":{source:`iana`,compressible:!1},"audio/l8":{source:`iana`},"audio/lpc":{source:`iana`},"audio/matroska":{source:`iana`},"audio/melp":{source:`iana`},"audio/melp1200":{source:`iana`},"audio/melp2400":{source:`iana`},"audio/melp600":{source:`iana`},"audio/mhas":{source:`iana`},"audio/midi":{source:`apache`,extensions:[`mid`,`midi`,`kar`,`rmi`]},"audio/midi-clip":{source:`iana`},"audio/mobile-xmf":{source:`iana`,extensions:[`mxmf`]},"audio/mp3":{compressible:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`,`m4b`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,extensions:[`oga`,`ogg`,`spx`,`opus`]},"audio/opus":{source:`iana`},"audio/parityfec":{source:`iana`},"audio/pcma":{source:`iana`},"audio/pcma-wb":{source:`iana`},"audio/pcmu":{source:`iana`},"audio/pcmu-wb":{source:`iana`},"audio/prs.sid":{source:`iana`},"audio/qcelp":{source:`iana`},"audio/raptorfec":{source:`iana`},"audio/red":{source:`iana`},"audio/rtp-enc-aescm128":{source:`iana`},"audio/rtp-midi":{source:`iana`},"audio/rtploopback":{source:`iana`},"audio/rtx":{source:`iana`},"audio/s3m":{source:`apache`,extensions:[`s3m`]},"audio/scip":{source:`iana`},"audio/silk":{source:`apache`,extensions:[`sil`]},"audio/smv":{source:`iana`},"audio/smv-qcp":{source:`iana`},"audio/smv0":{source:`iana`},"audio/sofa":{source:`iana`},"audio/sp-midi":{source:`iana`},"audio/speex":{source:`iana`},"audio/t140c":{source:`iana`},"audio/t38":{source:`iana`},"audio/telephone-event":{source:`iana`},"audio/tetra_acelp":{source:`iana`},"audio/tetra_acelp_bb":{source:`iana`},"audio/tone":{source:`iana`},"audio/tsvcis":{source:`iana`},"audio/uemclip":{source:`iana`},"audio/ulpfec":{source:`iana`},"audio/usac":{source:`iana`},"audio/vdvi":{source:`iana`},"audio/vmr-wb":{source:`iana`},"audio/vnd.3gpp.iufp":{source:`iana`},"audio/vnd.4sb":{source:`iana`},"audio/vnd.audiokoz":{source:`iana`},"audio/vnd.celp":{source:`iana`},"audio/vnd.cisco.nse":{source:`iana`},"audio/vnd.cmles.radio-events":{source:`iana`},"audio/vnd.cns.anp1":{source:`iana`},"audio/vnd.cns.inf1":{source:`iana`},"audio/vnd.dece.audio":{source:`iana`,extensions:[`uva`,`uvva`]},"audio/vnd.digital-winds":{source:`iana`,extensions:[`eol`]},"audio/vnd.dlna.adts":{source:`iana`},"audio/vnd.dolby.heaac.1":{source:`iana`},"audio/vnd.dolby.heaac.2":{source:`iana`},"audio/vnd.dolby.mlp":{source:`iana`},"audio/vnd.dolby.mps":{source:`iana`},"audio/vnd.dolby.pl2":{source:`iana`},"audio/vnd.dolby.pl2x":{source:`iana`},"audio/vnd.dolby.pl2z":{source:`iana`},"audio/vnd.dolby.pulse.1":{source:`iana`},"audio/vnd.dra":{source:`iana`,extensions:[`dra`]},"audio/vnd.dts":{source:`iana`,extensions:[`dts`]},"audio/vnd.dts.hd":{source:`iana`,extensions:[`dtshd`]},"audio/vnd.dts.uhd":{source:`iana`},"audio/vnd.dvb.file":{source:`iana`},"audio/vnd.everad.plj":{source:`iana`},"audio/vnd.hns.audio":{source:`iana`},"audio/vnd.lucent.voice":{source:`iana`,extensions:[`lvp`]},"audio/vnd.ms-playready.media.pya":{source:`iana`,extensions:[`pya`]},"audio/vnd.nokia.mobile-xmf":{source:`iana`},"audio/vnd.nortel.vbk":{source:`iana`},"audio/vnd.nuera.ecelp4800":{source:`iana`,extensions:[`ecelp4800`]},"audio/vnd.nuera.ecelp7470":{source:`iana`,extensions:[`ecelp7470`]},"audio/vnd.nuera.ecelp9600":{source:`iana`,extensions:[`ecelp9600`]},"audio/vnd.octel.sbc":{source:`iana`},"audio/vnd.presonus.multitrack":{source:`iana`},"audio/vnd.qcelp":{source:`apache`},"audio/vnd.rhetorex.32kadpcm":{source:`iana`},"audio/vnd.rip":{source:`iana`,extensions:[`rip`]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,extensions:[`caf`]},"audio/x-flac":{source:`apache`,extensions:[`flac`]},"audio/x-m4a":{source:`nginx`,extensions:[`m4a`]},"audio/x-matroska":{source:`apache`,extensions:[`mka`]},"audio/x-mpegurl":{source:`apache`,extensions:[`m3u`]},"audio/x-ms-wax":{source:`apache`,extensions:[`wax`]},"audio/x-ms-wma":{source:`apache`,extensions:[`wma`]},"audio/x-pn-realaudio":{source:`apache`,extensions:[`ram`,`ra`]},"audio/x-pn-realaudio-plugin":{source:`apache`,extensions:[`rmp`]},"audio/x-realaudio":{source:`nginx`,extensions:[`ra`]},"audio/x-tta":{source:`apache`},"audio/x-wav":{source:`apache`,extensions:[`wav`]},"audio/xm":{source:`apache`,extensions:[`xm`]},"chemical/x-cdx":{source:`apache`,extensions:[`cdx`]},"chemical/x-cif":{source:`apache`,extensions:[`cif`]},"chemical/x-cmdf":{source:`apache`,extensions:[`cmdf`]},"chemical/x-cml":{source:`apache`,extensions:[`cml`]},"chemical/x-csml":{source:`apache`,extensions:[`csml`]},"chemical/x-pdb":{source:`apache`},"chemical/x-xyz":{source:`apache`,extensions:[`xyz`]},"font/collection":{source:`iana`,extensions:[`ttc`]},"font/otf":{source:`iana`,compressible:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{source:`iana`,compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,extensions:[`bmp`,`dib`]},"image/cgm":{source:`iana`,extensions:[`cgm`]},"image/dicom-rle":{source:`iana`,extensions:[`drle`]},"image/dpx":{source:`iana`,extensions:[`dpx`]},"image/emf":{source:`iana`,extensions:[`emf`]},"image/fits":{source:`iana`,extensions:[`fits`]},"image/g3fax":{source:`iana`,extensions:[`g3`]},"image/gif":{source:`iana`,compressible:!1,extensions:[`gif`]},"image/heic":{source:`iana`,extensions:[`heic`]},"image/heic-sequence":{source:`iana`,extensions:[`heics`]},"image/heif":{source:`iana`,extensions:[`heif`]},"image/heif-sequence":{source:`iana`,extensions:[`heifs`]},"image/hej2k":{source:`iana`,extensions:[`hej2`]},"image/ief":{source:`iana`,extensions:[`ief`]},"image/j2c":{source:`iana`},"image/jaii":{source:`iana`,extensions:[`jaii`]},"image/jais":{source:`iana`,extensions:[`jais`]},"image/jls":{source:`iana`,extensions:[`jls`]},"image/jp2":{source:`iana`,compressible:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpg`,`jpeg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`,`jpgm`]},"image/jpx":{source:`iana`,compressible:!1,extensions:[`jpx`,`jpf`]},"image/jxl":{source:`iana`,extensions:[`jxl`]},"image/jxr":{source:`iana`,extensions:[`jxr`]},"image/jxra":{source:`iana`,extensions:[`jxra`]},"image/jxrs":{source:`iana`,extensions:[`jxrs`]},"image/jxs":{source:`iana`,extensions:[`jxs`]},"image/jxsc":{source:`iana`,extensions:[`jxsc`]},"image/jxsi":{source:`iana`,extensions:[`jxsi`]},"image/jxss":{source:`iana`,extensions:[`jxss`]},"image/ktx":{source:`iana`,extensions:[`ktx`]},"image/ktx2":{source:`iana`,extensions:[`ktx2`]},"image/naplps":{source:`iana`},"image/pjpeg":{compressible:!1,extensions:[`jfif`]},"image/png":{source:`iana`,compressible:!1,extensions:[`png`]},"image/prs.btif":{source:`iana`,extensions:[`btif`,`btf`]},"image/prs.pti":{source:`iana`,extensions:[`pti`]},"image/pwg-raster":{source:`iana`},"image/sgi":{source:`apache`,extensions:[`sgi`]},"image/svg+xml":{source:`iana`,compressible:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,extensions:[`psd`]},"image/vnd.airzip.accelerator.azv":{source:`iana`,extensions:[`azv`]},"image/vnd.clip":{source:`iana`},"image/vnd.cns.inf2":{source:`iana`},"image/vnd.dece.graphic":{source:`iana`,extensions:[`uvi`,`uvvi`,`uvg`,`uvvg`]},"image/vnd.djvu":{source:`iana`,extensions:[`djvu`,`djv`]},"image/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"image/vnd.dwg":{source:`iana`,extensions:[`dwg`]},"image/vnd.dxf":{source:`iana`,extensions:[`dxf`]},"image/vnd.fastbidsheet":{source:`iana`,extensions:[`fbs`]},"image/vnd.fpx":{source:`iana`,extensions:[`fpx`]},"image/vnd.fst":{source:`iana`,extensions:[`fst`]},"image/vnd.fujixerox.edmics-mmr":{source:`iana`,extensions:[`mmr`]},"image/vnd.fujixerox.edmics-rlc":{source:`iana`,extensions:[`rlc`]},"image/vnd.globalgraphics.pgb":{source:`iana`},"image/vnd.microsoft.icon":{source:`iana`,compressible:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,extensions:[`dds`]},"image/vnd.ms-modi":{source:`iana`,extensions:[`mdi`]},"image/vnd.ms-photo":{source:`apache`,extensions:[`wdp`]},"image/vnd.net-fpx":{source:`iana`,extensions:[`npx`]},"image/vnd.pco.b16":{source:`iana`,extensions:[`b16`]},"image/vnd.radiance":{source:`iana`},"image/vnd.sealed.png":{source:`iana`},"image/vnd.sealedmedia.softseal.gif":{source:`iana`},"image/vnd.sealedmedia.softseal.jpg":{source:`iana`},"image/vnd.svf":{source:`iana`},"image/vnd.tencent.tap":{source:`iana`,extensions:[`tap`]},"image/vnd.valve.source.texture":{source:`iana`,extensions:[`vtf`]},"image/vnd.wap.wbmp":{source:`iana`,extensions:[`wbmp`]},"image/vnd.xiff":{source:`iana`,extensions:[`xif`]},"image/vnd.zbrush.pcx":{source:`iana`,extensions:[`pcx`]},"image/webp":{source:`iana`,extensions:[`webp`]},"image/wmf":{source:`iana`,extensions:[`wmf`]},"image/x-3ds":{source:`apache`,extensions:[`3ds`]},"image/x-adobe-dng":{extensions:[`dng`]},"image/x-cmu-raster":{source:`apache`,extensions:[`ras`]},"image/x-cmx":{source:`apache`,extensions:[`cmx`]},"image/x-emf":{source:`iana`},"image/x-freehand":{source:`apache`,extensions:[`fh`,`fhc`,`fh4`,`fh5`,`fh7`]},"image/x-icon":{source:`apache`,compressible:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,extensions:[`bmp`]},"image/x-pcx":{source:`apache`,extensions:[`pcx`]},"image/x-pict":{source:`apache`,extensions:[`pic`,`pct`]},"image/x-portable-anymap":{source:`apache`,extensions:[`pnm`]},"image/x-portable-bitmap":{source:`apache`,extensions:[`pbm`]},"image/x-portable-graymap":{source:`apache`,extensions:[`pgm`]},"image/x-portable-pixmap":{source:`apache`,extensions:[`ppm`]},"image/x-rgb":{source:`apache`,extensions:[`rgb`]},"image/x-tga":{source:`apache`,extensions:[`tga`]},"image/x-wmf":{source:`iana`},"image/x-xbitmap":{source:`apache`,extensions:[`xbm`]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:`apache`,extensions:[`xpm`]},"image/x-xwindowdump":{source:`apache`,extensions:[`xwd`]},"message/bhttp":{source:`iana`},"message/cpim":{source:`iana`},"message/delivery-status":{source:`iana`},"message/disposition-notification":{source:`iana`,extensions:[`disposition-notification`]},"message/external-body":{source:`iana`},"message/feedback-report":{source:`iana`},"message/global":{source:`iana`,extensions:[`u8msg`]},"message/global-delivery-status":{source:`iana`,extensions:[`u8dsn`]},"message/global-disposition-notification":{source:`iana`,extensions:[`u8mdn`]},"message/global-headers":{source:`iana`,extensions:[`u8hdr`]},"message/http":{source:`iana`,compressible:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/mls":{source:`iana`},"message/news":{source:`apache`},"message/ohttp-req":{source:`iana`},"message/ohttp-res":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,extensions:[`eml`,`mime`,`mht`,`mhtml`]},"message/s-http":{source:`apache`},"message/sip":{source:`iana`},"message/sipfrag":{source:`iana`},"message/tracking-status":{source:`iana`},"message/vnd.si.simp":{source:`apache`},"message/vnd.wfa.wsc":{source:`iana`,extensions:[`wsc`]},"model/3mf":{source:`iana`,extensions:[`3mf`]},"model/e57":{source:`iana`},"model/gltf+json":{source:`iana`,compressible:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/jt":{source:`iana`,extensions:[`jt`]},"model/mesh":{source:`iana`,compressible:!1,extensions:[`msh`,`mesh`,`silo`]},"model/mtl":{source:`iana`,extensions:[`mtl`]},"model/obj":{source:`iana`,extensions:[`obj`]},"model/prc":{source:`iana`,extensions:[`prc`]},"model/step":{source:`iana`,extensions:[`step`,`stp`,`stpnc`,`p21`,`210`]},"model/step+xml":{source:`iana`,compressible:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/u3d":{source:`iana`,extensions:[`u3d`]},"model/vnd.bary":{source:`iana`,extensions:[`bary`]},"model/vnd.cld":{source:`iana`,extensions:[`cld`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,extensions:[`dae`]},"model/vnd.dwf":{source:`iana`,extensions:[`dwf`]},"model/vnd.flatland.3dml":{source:`iana`},"model/vnd.gdl":{source:`iana`,extensions:[`gdl`]},"model/vnd.gs-gdl":{source:`apache`},"model/vnd.gs.gdl":{source:`iana`},"model/vnd.gtw":{source:`iana`,extensions:[`gtw`]},"model/vnd.moml+xml":{source:`iana`,compressible:!0},"model/vnd.mts":{source:`iana`,extensions:[`mts`]},"model/vnd.opengex":{source:`iana`,extensions:[`ogex`]},"model/vnd.parasolid.transmit.binary":{source:`iana`,extensions:[`x_b`]},"model/vnd.parasolid.transmit.text":{source:`iana`,extensions:[`x_t`]},"model/vnd.pytha.pyox":{source:`iana`,extensions:[`pyo`,`pyox`]},"model/vnd.rosette.annotated-data-model":{source:`iana`},"model/vnd.sap.vds":{source:`iana`,extensions:[`vds`]},"model/vnd.usda":{source:`iana`,extensions:[`usda`]},"model/vnd.usdz+zip":{source:`iana`,compressible:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"multipart/vnd.bint.med-plus":{source:`iana`},"multipart/voice-message":{source:`iana`},"multipart/x-mixed-replace":{source:`iana`},"text/1d-interleaved-parityfec":{source:`iana`},"text/cache-manifest":{source:`iana`,compressible:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:[`coffee`,`litcoffee`]},"text/cql":{source:`iana`},"text/cql-expression":{source:`iana`},"text/cql-identifier":{source:`iana`},"text/css":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,extensions:[`csv`]},"text/csv-schema":{source:`iana`},"text/directory":{source:`iana`},"text/dns":{source:`iana`},"text/ecmascript":{source:`apache`},"text/encaprtp":{source:`iana`},"text/enriched":{source:`iana`},"text/fhirpath":{source:`iana`},"text/flexfec":{source:`iana`},"text/fwdred":{source:`iana`},"text/gff3":{source:`iana`},"text/grammar-ref-list":{source:`iana`},"text/hl7v2":{source:`iana`},"text/html":{source:`iana`,compressible:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`md`,`markdown`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,extensions:[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`]},"text/provenance-notation":{source:`iana`,charset:`UTF-8`},"text/prs.fallenstein.rst":{source:`iana`},"text/prs.lines.tag":{source:`iana`,extensions:[`dsc`]},"text/prs.prop.logic":{source:`iana`},"text/prs.texi":{source:`iana`},"text/raptorfec":{source:`iana`},"text/red":{source:`iana`},"text/rfc822-headers":{source:`iana`},"text/richtext":{source:`iana`,compressible:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"text/rtp-enc-aescm128":{source:`iana`},"text/rtploopback":{source:`iana`},"text/rtx":{source:`iana`},"text/sgml":{source:`iana`,extensions:[`sgml`,`sgm`]},"text/shaclc":{source:`iana`},"text/shex":{source:`iana`,extensions:[`shex`]},"text/slim":{extensions:[`slim`,`slm`]},"text/spdx":{source:`iana`,extensions:[`spdx`]},"text/strings":{source:`iana`},"text/stylus":{extensions:[`stylus`,`styl`]},"text/t140":{source:`iana`},"text/tab-separated-values":{source:`iana`,compressible:!0,extensions:[`tsv`]},"text/troff":{source:`iana`,extensions:[`t`,`tr`,`roff`,`man`,`me`,`ms`]},"text/turtle":{source:`iana`,charset:`UTF-8`,extensions:[`ttl`]},"text/ulpfec":{source:`iana`},"text/uri-list":{source:`iana`,compressible:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,extensions:[`vcard`]},"text/vnd.a":{source:`iana`},"text/vnd.abc":{source:`iana`},"text/vnd.ascii-art":{source:`iana`},"text/vnd.curl":{source:`iana`,extensions:[`curl`]},"text/vnd.curl.dcurl":{source:`apache`,extensions:[`dcurl`]},"text/vnd.curl.mcurl":{source:`apache`,extensions:[`mcurl`]},"text/vnd.curl.scurl":{source:`apache`,extensions:[`scurl`]},"text/vnd.debian.copyright":{source:`iana`,charset:`UTF-8`},"text/vnd.dmclientscript":{source:`iana`},"text/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"text/vnd.esmertec.theme-descriptor":{source:`iana`,charset:`UTF-8`},"text/vnd.exchangeable":{source:`iana`},"text/vnd.familysearch.gedcom":{source:`iana`,extensions:[`ged`]},"text/vnd.ficlab.flt":{source:`iana`},"text/vnd.fly":{source:`iana`,extensions:[`fly`]},"text/vnd.fmi.flexstor":{source:`iana`,extensions:[`flx`]},"text/vnd.gml":{source:`iana`},"text/vnd.graphviz":{source:`iana`,extensions:[`gv`]},"text/vnd.hans":{source:`iana`},"text/vnd.hgl":{source:`iana`},"text/vnd.in3d.3dml":{source:`iana`,extensions:[`3dml`]},"text/vnd.in3d.spot":{source:`iana`,extensions:[`spot`]},"text/vnd.iptc.newsml":{source:`iana`},"text/vnd.iptc.nitf":{source:`iana`},"text/vnd.latex-z":{source:`iana`},"text/vnd.motorola.reflex":{source:`iana`},"text/vnd.ms-mediapackage":{source:`iana`},"text/vnd.net2phone.commcenter.command":{source:`iana`},"text/vnd.radisys.msml-basic-layout":{source:`iana`},"text/vnd.senx.warpscript":{source:`iana`},"text/vnd.si.uricatalogue":{source:`apache`},"text/vnd.sosi":{source:`iana`},"text/vnd.sun.j2me.app-descriptor":{source:`iana`,charset:`UTF-8`,extensions:[`jad`]},"text/vnd.trolltech.linguist":{source:`iana`,charset:`UTF-8`},"text/vnd.vcf":{source:`iana`},"text/vnd.wap.si":{source:`iana`},"text/vnd.wap.sl":{source:`iana`},"text/vnd.wap.wml":{source:`iana`,extensions:[`wml`]},"text/vnd.wap.wmlscript":{source:`iana`,extensions:[`wmls`]},"text/vnd.zoo.kcl":{source:`iana`},"text/vtt":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`vtt`]},"text/wgsl":{source:`iana`,extensions:[`wgsl`]},"text/x-asm":{source:`apache`,extensions:[`s`,`asm`]},"text/x-c":{source:`apache`,extensions:[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`]},"text/x-component":{source:`nginx`,extensions:[`htc`]},"text/x-fortran":{source:`apache`,extensions:[`f`,`for`,`f77`,`f90`]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,extensions:[`pde`]},"text/x-sass":{extensions:[`sass`]},"text/x-scss":{extensions:[`scss`]},"text/x-setext":{source:`apache`,extensions:[`etx`]},"text/x-sfv":{source:`apache`,extensions:[`sfv`]},"text/x-suse-ymp":{compressible:!0,extensions:[`ymp`]},"text/x-uuencode":{source:`apache`,extensions:[`uu`]},"text/x-vcalendar":{source:`apache`,extensions:[`vcs`]},"text/x-vcard":{source:`apache`,extensions:[`vcf`]},"text/xml":{source:`iana`,compressible:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,extensions:[`yaml`,`yml`]},"video/1d-interleaved-parityfec":{source:`iana`},"video/3gpp":{source:`iana`,extensions:[`3gp`,`3gpp`]},"video/3gpp-tt":{source:`iana`},"video/3gpp2":{source:`iana`,extensions:[`3g2`]},"video/av1":{source:`iana`},"video/bmpeg":{source:`iana`},"video/bt656":{source:`iana`},"video/celb":{source:`iana`},"video/dv":{source:`iana`},"video/encaprtp":{source:`iana`},"video/evc":{source:`iana`},"video/ffv1":{source:`iana`},"video/flexfec":{source:`iana`},"video/h261":{source:`iana`,extensions:[`h261`]},"video/h263":{source:`iana`,extensions:[`h263`]},"video/h263-1998":{source:`iana`},"video/h263-2000":{source:`iana`},"video/h264":{source:`iana`,extensions:[`h264`]},"video/h264-rcdo":{source:`iana`},"video/h264-svc":{source:`iana`},"video/h265":{source:`iana`},"video/h266":{source:`iana`},"video/iso.segment":{source:`iana`,extensions:[`m4s`]},"video/jpeg":{source:`iana`,extensions:[`jpgv`]},"video/jpeg2000":{source:`iana`},"video/jpm":{source:`apache`,extensions:[`jpm`,`jpgm`]},"video/jxsv":{source:`iana`},"video/lottie+json":{source:`iana`,compressible:!0},"video/matroska":{source:`iana`},"video/matroska-3d":{source:`iana`},"video/mj2":{source:`iana`,extensions:[`mj2`,`mjp2`]},"video/mp1s":{source:`iana`},"video/mp2p":{source:`iana`},"video/mp2t":{source:`iana`,extensions:[`ts`,`m2t`,`m2ts`,`mts`]},"video/mp4":{source:`iana`,compressible:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,extensions:[`qt`,`mov`]},"video/raptorfec":{source:`iana`},"video/raw":{source:`iana`},"video/rtp-enc-aescm128":{source:`iana`},"video/rtploopback":{source:`iana`},"video/rtx":{source:`iana`},"video/scip":{source:`iana`},"video/smpte291":{source:`iana`},"video/smpte292m":{source:`iana`},"video/ulpfec":{source:`iana`},"video/vc1":{source:`iana`},"video/vc2":{source:`iana`},"video/vnd.cctv":{source:`iana`},"video/vnd.dece.hd":{source:`iana`,extensions:[`uvh`,`uvvh`]},"video/vnd.dece.mobile":{source:`iana`,extensions:[`uvm`,`uvvm`]},"video/vnd.dece.mp4":{source:`iana`},"video/vnd.dece.pd":{source:`iana`,extensions:[`uvp`,`uvvp`]},"video/vnd.dece.sd":{source:`iana`,extensions:[`uvs`,`uvvs`]},"video/vnd.dece.video":{source:`iana`,extensions:[`uvv`,`uvvv`]},"video/vnd.directv.mpeg":{source:`iana`},"video/vnd.directv.mpeg-tts":{source:`iana`},"video/vnd.dlna.mpeg-tts":{source:`iana`},"video/vnd.dvb.file":{source:`iana`,extensions:[`dvb`]},"video/vnd.fvt":{source:`iana`,extensions:[`fvt`]},"video/vnd.hns.video":{source:`iana`},"video/vnd.iptvforum.1dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.1dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.2dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.2dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.ttsavc":{source:`iana`},"video/vnd.iptvforum.ttsmpeg2":{source:`iana`},"video/vnd.motorola.video":{source:`iana`},"video/vnd.motorola.videop":{source:`iana`},"video/vnd.mpegurl":{source:`iana`,extensions:[`mxu`,`m4u`]},"video/vnd.ms-playready.media.pyv":{source:`iana`,extensions:[`pyv`]},"video/vnd.nokia.interleaved-multimedia":{source:`iana`},"video/vnd.nokia.mp4vr":{source:`iana`},"video/vnd.nokia.videovoip":{source:`iana`},"video/vnd.objectvideo":{source:`iana`},"video/vnd.planar":{source:`iana`},"video/vnd.radgamettools.bink":{source:`iana`},"video/vnd.radgamettools.smacker":{source:`apache`},"video/vnd.sealed.mpeg1":{source:`iana`},"video/vnd.sealed.mpeg4":{source:`iana`},"video/vnd.sealed.swf":{source:`iana`},"video/vnd.sealedmedia.softseal.mov":{source:`iana`},"video/vnd.uvvu.mp4":{source:`iana`,extensions:[`uvu`,`uvvu`]},"video/vnd.vivo":{source:`iana`,extensions:[`viv`]},"video/vnd.youtube.yt":{source:`iana`},"video/vp8":{source:`iana`},"video/vp9":{source:`iana`},"video/webm":{source:`apache`,compressible:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,extensions:[`mkv`,`mk3d`,`mks`]},"video/x-mng":{source:`apache`,extensions:[`mng`]},"video/x-ms-asf":{source:`apache`,extensions:[`asf`,`asx`]},"video/x-ms-vob":{source:`apache`,extensions:[`vob`]},"video/x-ms-wm":{source:`apache`,extensions:[`wm`]},"video/x-ms-wmv":{source:`apache`,compressible:!1,extensions:[`wmv`]},"video/x-ms-wmx":{source:`apache`,extensions:[`wmx`]},"video/x-ms-wvx":{source:`apache`,extensions:[`wvx`]},"video/x-msvideo":{source:`apache`,extensions:[`avi`]},"video/x-sgi-movie":{source:`apache`,extensions:[`movie`]},"video/x-smv":{source:`apache`,extensions:[`smv`]},"x-conference/x-cooltalk":{source:`apache`,extensions:[`ice`]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),Ev=u(((e,t)=>{t.exports=(Tv(),m(Cv).default)})),Dv=u(((e,t)=>{function n(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function r(e,t){for(var n=``,r=0,i=-1,a=0,o,s=0;s<=e.length;++s){if(s<e.length)o=e.charCodeAt(s);else if(o===47)break;else o=47;if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf(`/`);if(c!==n.length-1){c===-1?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}}else if(n.length===2||n.length===1){n=``,r=0,i=s,a=0;continue}}t&&(n.length>0?n+=`/..`:n=`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a!==-1?++a:a=-1}return n}function i(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+e+r:r}var a={resolve:function(){for(var e=``,t=!1,i,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(i===void 0&&(i=process.cwd()),o=i),n(o),o.length!==0&&(e=o+`/`+e,t=o.charCodeAt(0)===47)}return e=r(e,!t),t?e.length>0?`/`+e:`/`:e.length>0?e:`.`},normalize:function(e){if(n(e),e.length===0)return`.`;var t=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=r(e,!t),e.length===0&&!t&&(e=`.`),e.length>0&&i&&(e+=`/`),t?`/`+e:e},isAbsolute:function(e){return n(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,t=0;t<arguments.length;++t){var r=arguments[t];n(r),r.length>0&&(e===void 0?e=r:e+=`/`+r)}return e===void 0?`.`:a.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t||(e=a.resolve(e),t=a.resolve(t),e===t))return``;for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,o=i-r,s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var c=t.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(t.charCodeAt(s+d)===47)return t.slice(s+d+1);if(d===0)return t.slice(s+d)}else o>l&&(e.charCodeAt(r+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(r+d);if(f!==t.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=r+u+1;d<=i;++d)(d===i||e.charCodeAt(d)===47)&&(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+t.slice(s+u):(s+=u,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(n(e),e.length===0)return`.`;for(var t=e.charCodeAt(0),r=t===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);n(e);var r=0,i=-1,a=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return``;var s=t.length-1,c=-1;for(o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(l===47){if(!a){r=o+1;break}}else c===-1&&(a=!1,c=o+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(i=o):(s=-1,i=c))}return r===i?i=c:i===-1&&(i=e.length),e.slice(r,i)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!a){r=o+1;break}}else i===-1&&(a=!1,i=o+1);return i===-1?``:e.slice(r,i)}},extname:function(e){n(e);for(var t=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c===47){if(!a){r=s+1;break}continue}i===-1&&(a=!1,i=s+1),c===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||i===-1||o===0||o===1&&t===i-1&&t===r+1?``:e.slice(t,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return i(`/`,e)},parse:function(e){n(e);var t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;var r=e.charCodeAt(0),i=r===47,a;i?(t.root=`/`,a=1):a=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=a;--u){if(r=e.charCodeAt(u),r===47){if(!l){s=u+1;break}continue}c===-1&&(l=!1,c=u+1),r===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1)}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(s===0&&i?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(s,c)):(s===0&&i?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(s,o),t.base=e.slice(s,c)),t.ext=e.slice(o,c)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};a.posix=a,t.exports=a})),Ov=u(((e,t)=>{var n={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},r={nginx:10,apache:20,iana:40,default:30},i={application:1,font:2,audio:2,video:3,default:0};t.exports=function(e,t=`default`){if(e===`application/octet-stream`)return 0;let[a,o]=e.split(`/`),s=n[o.replace(/(\.|x-).*/,`$1`)]||n.default,c=r[t]||r.default,l=i[a]||i.default,u=1-e.length/100;return s+c+l+u}})),kv=u((e=>{var t=Ev(),n=Dv().extname,r=Ov(),i=/^\s*([^;\s]*)(?:;|\s|$)/,a=/^text\//i;e.charset=o,e.charsets={lookup:o},e.contentType=s,e.extension=c,e.extensions=Object.create(null),e.lookup=l,e.types=Object.create(null),e._extensionConflicts=[],u(e.extensions,e.types);function o(e){if(!e||typeof e!=`string`)return!1;var n=i.exec(e),r=n&&t[n[1].toLowerCase()];return r&&r.charset?r.charset:n&&a.test(n[1])?`UTF-8`:!1}function s(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function c(t){if(!t||typeof t!=`string`)return!1;var n=i.exec(t),r=n&&e.extensions[n[1].toLowerCase()];return!r||!r.length?!1:r[0]}function l(t){if(!t||typeof t!=`string`)return!1;var r=n(`x.`+t).toLowerCase().slice(1);return r&&e.types[r]||!1}function u(n,r){Object.keys(t).forEach(function(i){var a=t[i].extensions;if(!(!a||!a.length)){n[i]=a;for(var o=0;o<a.length;o++){var s=a[o];r[s]=d(s,r[s],i);let t=f(s,r[s],i);t!==r[s]&&e._extensionConflicts.push([s,t,r[s]])}}})}function d(e,n,i){return(n?r(n,t[n].source):0)>(i?r(i,t[i].source):0)?n:i}function f(n,r,i){var a=[`nginx`,`apache`,void 0,`iana`],o=r?a.indexOf(t[r].source):0,s=i?a.indexOf(t[i].source):0;return e.types[c]!==`application/octet-stream`&&(o>s||o===s&&e.types[c]?.slice(0,12)===`application/`)||o>s?r:i}})),Av=p(gv()),jv=p(kv()),W={highlightColor:`#7C4DFF`,formBorderColor:`#888888`,formHeadingColor:`#888888`,lowProfileLinkColor:`#3B5998`,formFieldNameBoxWidth:`8em`,mediaModuleCanvasWidth:`640`,mediaModuleCanvasHeight:`480`,textInputSize:20,tabBorderRadius:`0.2em`,textInputBackgroundColor:`#eef`,textInputBackgroundColorUneditable:`#fff`,textInputColor:`#000`,textInputColorPending:`#888`,defaultErrorBackgroundColor:`#fee`,participationDefaultBackground:`white`,basicMaxLength:`4096`},G={checkboxStyle:`color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;`,checkboxInputStyle:`font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em;`,fieldLabelStyle:`color: #3B5998; text-decoration: none;`,formSelectStyle:`background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;`,textInputStyle:`background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;`,textInputStyleUneditable:`background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;`,buttonStyle:`background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;`,commentStyle:`padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;`,iconStyle:`width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;`,smallButtonStyle:`margin: 0.2em; width: 1em; height:1em;`,classIconStyle:`width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;`,confirmPopupStyle:`padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;`,messageBodyStyle:`white-space: pre-wrap; width: 99%; font-size:100%; border: 0.07em solid #eee; border-radius:0.2em; padding: .3em 0.5em; margin: 0.1em;`,pendingeditModifier:`color: #bbb;`,personaBarStyle:`width: 100%; height: 4em; background-color: #eee; vertical-align: middle;`,searchInputStyle:`border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;`,autocompleteRowStyle:`border: 0.2em solid straw;`,signInAndUpButtonStyle:`padding: 1em; border-radius:0.2em; font-size: 100%;`,headerBannerLoginInput:`margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;`,signUpBackground:`background-color: #eef;`,signInBackground:`background-color: #efe;`,heading1Style:`font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;`,heading2Style:`font-size: 130%; font-weight: bold; color: #888888; padding: 0.4em; margin: 0.7em 0.0em;`,heading3Style:`font-size: 120%; font-weight: bold; color: #888888; padding: 0.3em; margin: 0.7em 0.0em;`,heading4Style:`font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;`,formHeadingStyle:`font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;`,formTextInput:`font-size: 100%; margin: 0.1em; padding: 0.1em;`,formGroupStyle:[`padding-left: 0em; border: 0.0em solid ${W.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.05em solid ${W.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.1em solid ${W.formBorderColor}; border-radius: 0.2em;`,`padding-left: 2em; border: 0.2em solid ${W.formBorderColor}; border-radius: 0.2em;`],formFieldLabelStyle:`color: ${W.lowProfileLinkColor}; text-decoration: none;`,formFieldNameBoxStyle:`padding: 0.3em; vertical-align: middle; width:${W.formFieldNameBoxWidth};`,multilineTextInputStyle:`font-size:100%; white-space: pre-wrap; background-color: #eef; border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;`,renderAsDivStyle:`display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;`,imageDivStyle:`width:2.5em; padding:0.5em; height: 2.5em;`,linkDivStyle:`width:2em; padding:0.5em; height: 4em;`,aclControlBoxContainer:`margin: 1em;`,aclControlBoxHeader:`font-size: 120%; margin: 0 0 1rem;`,aclControlBoxStatus:`display: none; margin: 1rem 0;`,aclControlBoxStatusRevealed:`display: block;`,aclGroupContent:`maxWidth: 650;`,accessGroupList:`display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%;`,accessGroupListItem:`display: grid; grid-template-columns: 100px auto 30%;`,defaultsController:`display: flex;`,defaultsControllerNotice:`color: #888; flexGrow: 1; fontSize: 80%;`,bigButton:`background-color: white; color: black; text-wrap: pretty; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em;`,group:`color: #888;`,group1:`color: green;`,group2:`color: #cc0;`,group3:`color: orange;`,group5:`color: red;`,group9:`color: blue;`,group13:`color: purple;`,trustedAppAddApplicationsTable:`background-color: #eee;`,trustedAppCancelButton:`float: right;`,trustedAppControllerI:`border-color: orange; border-radius: 1em; border-width: 0.1em;`,temporaryStatusInit:`background: green;`,temporaryStatusEnd:`background: transparent; transition: background 5s linear;`,headerUserMenuLink:`background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none;`,headerUserMenuLinkHover:`background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);`,headerUserMenuTrigger:`background: none; border: 0; cursor: pointer; width: 60px; height: 60px;`,headerUserMenuTriggerImg:`border-radius: 50%; height: 56px; width: 28px !important;`,headerUserMenuButton:`background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%;`,headerUserMenuButtonHover:`background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);`,headerUserMenuList:`list-style: none; margin: 0; padding: 0;`,headerUserMenuListDisplay:`list-style: none; margin: 0; padding: 0; display:true;`,headerUserMenuNavigationMenu:`background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true;`,headerUserMenuNavigationMenuNotDisplayed:`background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none;`,headerUserMenuListItem:`border-bottom: solid 1px #000000;`,headerUserMenuPhoto:`border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;`,headerBanner:`box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px;`,headerBannerLink:`display: block;`,headerBannerRightMenu:`display: flex;`,headerBannerLogin:`margin-left: auto;`,allChildrenVisible:`display:true;`,headerBannerUserMenu:`border-left: solid 1px #000000; margin-left: auto;`,headerBannerHelpMenu:`border-left: solid 1px #000000; margin-left: auto;`,headerBannerIcon:`background-size: 65px 60px !important; height: 60px !important; width: 65px !important;`,footer:`border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em;`,primaryButton:`background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;`,primaryButtonHover:`background-color: #9f7dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;`,primaryButtonNoBorder:`background-color: #ffffff; color: #7c4dff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;`,primaryButtonNoBorderHover:`background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;`,secondaryButton:`background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;`,secondaryButtonHover:`background-color: #37cde6; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;`,secondaryButtonNoBorder:`background-color: #ffffff; color: #01c9ea; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;`,secondaryButtonNoBorderHover:`background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;`,controlStyle:`border-radius: 0.5em; margin: 0.8em; width:${W.mediaModuleCanvasWidth}; height:${W.mediaModuleCanvasHeight};`,dragEvent:`background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;`,dropEvent:`background-color: white; border: 0em solid black;`,restoreStyle:`background-color: white;`,errorCancelButton:`width: 2em; height: 2em; align: right;`,errorMessageBlockStyle:`margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;`,notepadStyle:`padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;`,upstreamStatus:`width: 50%;`,downstreamStatus:`width: 50%;`,baseStyle:`font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;`,headingCore:`font-family: sans-serif; font-weight: bold; border: none;`,headingStyle:[`font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;`,`font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;`,`font-size: 150%; padding-top: 1em; padding-bottom: 1em; width: 100%;`],participantsStyle:`margin: 0.8em;`,participantsBlock:`height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;`,personTableTD:`vertical-align: middle;`,tabsNavElement:`margin: 0;`,tabsRootElement:`display: flex; height: 100%; width: 100%;`,tabsMainElement:`margin: 0; width:100%; height: 100%;`,tabContainer:`list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;`,makeNewSlot:`background: none; border: none; font: inherit; cursor: pointer;`,ellipsis:`position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;`};G.setStyle=function(e,t){e.style=G[t]};function Mv(e,t,n){let r=function(e){return e.split(`
2052
- `).map(e=>e.trim()).filter(e=>e&&e[0]!==`#`)},i=function(e){e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect=`copy`},a=function(e){e.preventDefault(),e.stopPropagation(),V(`dragenter event dropEffect: `+e.dataTransfer.dropEffect),this.localStyle&&(this.savedStyle||=G.dragEvent),e.dataTransfer.dropEffect=`link`,V(`dragenter event dropEffect 2: `+e.dataTransfer.dropEffect)},o=function(e){e.stopPropagation(),V(`dragleave event dropEffect: `+e.dataTransfer.dropEffect),this.savedStyle?this.localStyle=this.savedStyle:this.localStyle=G.dropEvent},s=function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),V(`Drop event. dropEffect: `+e.dataTransfer.dropEffect),V(`Drop event. types: `+(e.dataTransfer.types?e.dataTransfer.types.join(`, `):`NOPE`));let i=null,a;if(e.dataTransfer.types){for(let t=0;t<e.dataTransfer.types.length;t++){let o=e.dataTransfer.types[t];if(o===`text/uri-list`)i=r(e.dataTransfer.getData(o)),V(`Dropped text/uri-list: `+i);else if(o===`text/plain`)a=e.dataTransfer.getData(o);else if(o===`Files`&&n){let t=e.dataTransfer.files;for(let e=0;t[e];e++){let n=t[e];V(`Filename: `+n.name+`, type: `+(n.type||`n/a`)+` size: `+n.size+` bytes, last modified: `+(n.lastModifiedDate?n.lastModifiedDate.toLocaleDateString():`n/a`))}n(t)}}let t=a?a.trim():``;i===null&&t&&t.slice(0,4)===`http`&&(i=[t],V(`Warning: Poor man's drop: using text for URI`))}else i=r(e.dataTransfer.getData(`Text`)),V(`WARNING non-standard drop event: `+i[0]);return V(`Dropped URI list (2): `+i),i&&t(i),this.localStyle=G.restoreStyle,!1};(function(e){e||V(`@@@ addTargetListeners: ele `+e),e.addEventListener(`dragover`,i),e.addEventListener(`dragenter`,a),e.addEventListener(`dragleave`,o),e.addEventListener(`drop`,s)})(e,t)}function Nv(e,t){e.setAttribute(`draggable`,`true`),e.addEventListener(`dragstart`,function(n){e.style.fontWeight=`bold`,n.dataTransfer.setData(`text/uri-list`,t.uri),n.dataTransfer.setData(`text/plain`,t.uri),n.dataTransfer.setData(`text/html`,e.outerHTML),V(`Dragstart: `+e+` -> `+t+`de: `+n.dataTransfer.dropEffect)},!1),e.addEventListener(`drag`,function(e){e.preventDefault(),e.stopPropagation()},!1),e.addEventListener(`dragend`,function(n){e.style.fontWeight=`normal`,V(`Dragend dropeffect: `+n.dataTransfer.dropEffect),V(`Dragend: `+e+` -> `+t)},!1)}function Pv(e,t,n,r,i){for(let a=0;t[a];a++){let o=t[a];V(` dropped: Filename: `+o.name+`, type: `+(o.type||`n/a`)+` size: `+o.size+` bytes, last modified: `+(o.lastModifiedDate?o.lastModifiedDate.toLocaleDateString():`n/a`));let s=new FileReader;s.onload=function(t){return function(a){let o=a.target.result,s=``;V(` File read byteLength : `+o.byteLength);let c=t.type;if(!t.type||t.type===``){if(c=jv.lookup(t.name),!c){let e=`Filename needs to have an extension which gives a type we know: `+t.name;throw V(e),alert(e),Error(e)}}else{let e=jv.extension(t.type);e&&e!==`false`&&!t.name.endsWith(`.`+e)&&t.type!==jv.lookup(t.name)&&(s=`_.`+e)}let l=t.type.startsWith(`image/`)&&r||n,u=l+(l.endsWith(`/`)?``:`/`)+encodeURIComponent(t.name)+s;e.webOperation(`PUT`,u,{data:o,contentType:c}).then(e=>{V(` Upload: put OK: `+u),i(t,u)},e=>{let t=` Upload: FAIL `+u+`, Error: `+e;throw V(t),alert(t),Error(t)})}}(o),s.readAsArrayBuffer(o)}}function K(e,t,n,r){let i=e.createElement(`div`),a=r||t instanceof Error?t:null;return a?(console.error(`errorMessageBlock: ${a} at: ${a.stack||`??`}`,a),i.textContent=a.message):i.textContent=t,i.appendChild(yy(e,()=>{i.parentNode&&i.parentNode.removeChild(i)})).style=G.errorCancelButton,i.setAttribute(`style`,G.errorMessageBlockStyle),i.style.backgroundColor=n||W.defaultErrorBackgroundColor,i}var q=typeof module<`u`&&module.scriptURI?{iconBase:module.scriptURI.slice(0,module.scriptURI.lastIndexOf(`/`))+`/icons/`,originalIconBase:module.scriptURI.slice(0,module.scriptURI.lastIndexOf(`/`))+`/originalIcons/`}:typeof $SolidTestEnvironment<`u`&&$SolidTestEnvironment.iconBase?{iconBase:$SolidTestEnvironment.iconBase,originalIconBase:$SolidTestEnvironment.originalIconBase}:{iconBase:`https://solidos.github.io/solid-ui/src/icons/`,originalIconBase:`https://solidos.github.io/solid-ui/src/originalIcons/`};V(` icons.iconBase is set to : `+q.iconBase);var Fv=q.iconBase,Iv=q.originalIconBase,J=n.solidLogicSingleton.store,Lv=class{constructor(e,t,n,r){this.options=r||{},this.element=e,this.typeIndex=t,this.groupPickedCb=n,this.selectedgroup=this.options.selectedgroup,this.onSelectGroup=this.onSelectGroup.bind(this)}render(){let e=document.createElement(`div`);if(e.style.maxWidth=`350px`,e.style.minHeight=`200px`,e.style.outline=`1px solid black`,e.style.display=`flex`,this.selectedgroup){e.style.flexDirection=`column`;let t=document.createElement(`div`);new zv(t,this.selectedgroup).render();let n=document.createElement(`button`);n.textContent=(0,Av.default)(`Change group`),n.addEventListener(`click`,e=>{this.selectedgroup=null,this.render()}),e.appendChild(t),e.appendChild(n)}else this.findAddressBook(this.typeIndex).then(({book:t})=>{let n=document.createElement(`button`);n.textContent=(0,Av.default)(`Pick an existing group`),n.style.margin=`auto`,n.addEventListener(`click`,n=>{new Rv(e,t,this.onSelectGroup).render()});let r=document.createElement(`button`);r.textContent=(0,Av.default)(`Create a new group`),r.style.margin=`auto`,r.addEventListener(`click`,e=>{this.createNewGroup(t,this.options.defaultNewGroupName).then(({group:e})=>{new Bv(this.element,t,e,this.onSelectGroup).render()}).catch(e=>{this.element.appendChild(K(document,(0,Av.default)(`Error creating a new group. (${e})`)))})}),e.appendChild(n),e.appendChild(r),this.element.innerHTML=``,this.element.appendChild(e)}).catch(e=>{this.element.appendChild(K(document,(0,Av.default)(`Could find your groups. (${e})`)))});return this.element.innerHTML=``,this.element.appendChild(e),this}findAddressBook(e){return new Promise((t,n)=>{J.fetcher.nowOrWhenFetched(e,(r,i)=>{if(!r)return n(i);let a=J.any(null,I.solid(`forClass`),I.vcard(`AddressBook`));if(!a)return n(Error(`no address book registered in the solid type index `+e));let o=J.any(a,I.solid(`instance`));if(!o)return n(Error(`incomplete address book registration`));J.fetcher.load(o).then(function(e){return t({book:o})}).catch(function(e){return n(Error(`Could not load address book `+e))})})})}createNewGroup(e,n){let{groupIndex:r,groupContainer:i}=Wv(e),a=t.sym(`${i.uri}${xv().slice(0,8)}.ttl#this`),o=n||`Untitled Group`,s=[a.doc(),r].map(n=>{let i=t.st(a,I.rdf(`type`),I.vcard(`Group`),n),s=t.st(a,I.vcard(`fn`),o,a.doc(),n),c=t.st(e,I.vcard(`includesGroup`),a,n),l=n.equals(r)?[i,s,c]:[i,s];return Uv(n.uri,{toIns:l}).then(()=>{l.forEach(e=>{J.add(e)})})});return Promise.all(s).then(()=>({group:a})).catch(e=>{throw V(`Could not create new group. PATCH failed `+e),Error(`Couldn't create new group. PATCH failed for (${e.xhr?e.xhr.responseURL:``} )`)})}onSelectGroup(e){this.selectedgroup=e,this.groupPickedCb(e),this.render()}},Rv=class{constructor(e,t,n){this.element=e,this.book=t,this.onSelectGroup=n}render(){return this.loadGroups().then(e=>{let t=document.createElement(`div`);t.style.display=`flex`,t.style.flexDirection=`column`,e.forEach(e=>{let n=document.createElement(`button`);n.addEventListener(`click`,this.handleClickGroup(e)),new zv(n,e).render(),t.appendChild(n)}),this.element.innerHTML=``,this.element.appendChild(t)}).catch(e=>{this.element.appendChild(K(document,(0,Av.default)(`There was an error loading your groups. (${e})`)))}),this}loadGroups(){return new Promise((e,t)=>{let{groupIndex:n}=Wv(this.book);J.fetcher.nowOrWhenFetched(n,(n,r)=>n?e(J.each(this.book,I.vcard(`includesGroup`))):t(r))})}handleClickGroup(e){return t=>{this.onSelectGroup(e)}}},zv=class{constructor(e,t){this.element=e,this.group=t}render(){let e=document.createElement(`div`);return e.textContent=(0,Av.default)(Hv(this.group,I.vcard(`fn`),`[${this.group.value}]`)),this.element.innerHTML=``,this.element.appendChild(e),this}},Bv=class{constructor(e,t,n,r,i){this.element=e,this.book=t,this.group=n,this.onGroupChanged=(e,t,n)=>{i&&i(e,t,n)},this.groupChangedCb=i,this.doneBuildingCb=r}refresh(){}render(){let e=document.createElement(`div`);e.style.maxWidth=`350px`,e.style.minHeight=`200px`,e.style.outline=`1px solid black`,e.style.display=`flex`,e.style.flexDirection=`column`,Mv(e,e=>{e.forEach(e=>{this.add(e).catch(e=>{this.element.appendChild(K(document,(0,Av.default)(`Could not add the given WebId. (${e})`)))})})});let t=document.createElement(`input`);t.type=`text`,t.value=Hv(this.group,I.vcard(`fn`),`Untitled Group`),t.addEventListener(`change`,e=>{this.setGroupName(e.target.value).catch(e=>{this.element.appendChild(K(document,`Error changing group name. (${e})`))})});let n=document.createElement(`label`);if(n.textContent=(0,Av.default)(`Group Name:`),n.appendChild(t),e.appendChild(n),J.any(this.group,I.vcard(`hasMember`)))J.match(this.group,I.vcard(`hasMember`)).forEach(t=>{let n=t.object,r=document.createElement(`div`);new Vv(r,n,this.handleRemove(n)).render(),e.appendChild(r)});else{let t=document.createElement(`p`);t.textContent=Av.default`
1742
+ `}onChange(){let e=this.controlElement?.value??null,t=this.options.find(t=>t.value===e);this.controlTrait.setValue(e),this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,composed:!0,detail:{option:t}}))}},{e:[px,hx,cx],c:[Ax,lx]}=wx(ax,[[dx,4,`options`],[fx,1,`controlElement`],[mx,1,`_options`]],ux,0,void 0,Cn),ax),ix=class extends kx{constructor(){super(Ax),Cx(this,`styles`,rx),lx()}},Cx(ix,gx,void 0),ix);var jx,Mx,Nx,Px,Fx,Ix,Lx;function Rx(e,t,n){zx(e,t),t.set(e,n)}function zx(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Bx(e,t,n){return e.set(Hx(e,t),n),n}function Vx(e,t){return e.get(Hx(e,t))}function Hx(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Ux(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Kx(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Kx(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return qx(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Wx(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Wx(e){var t=Gx(e,`string`);return typeof t==`symbol`?t:t+``}function Gx(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Kx(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function qx(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}Px=[g(`solid-ui-select-option`)];var Jx,Yx=new WeakMap;Lx=(Fx=I({type:String,reflect:!0}),`value`),jx=class extends F{constructor(...e){super(...e),Rx(this,Yx,(Mx(this),Ix(this,``)))}get[Lx](){return Vx(Yx,this)}set value(e){Bx(Yx,this,e)}render(){return N`${P}`}},{e:[Ix,Mx],c:[Jx,Nx]}=Ux(jx,[[Fx,1,`value`]],Px,0,void 0,F),Nx();var Xx=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 322"><g fill="none"><path fill="#fff" d="m87.973 282.353-60.732-105.33a31.6 31.6 0 0 1 0-31.538L87.973 40.233c5.646-9.784 16.08-15.795 27.321-15.795H236.68c11.266 0 21.727 6.011 27.321 15.795l60.758 105.304a31.6 31.6 0 0 1 0 31.537l-60.732 105.33c-5.646 9.784-16.08 15.795-27.321 15.795H115.372a31.85 31.85 0 0 1-27.4-15.846"/><path fill="#7c4dff" d="m93.151 275.197-57.115-99.06c-5.308-9.185-5.308-20.504 0-29.663l57.115-99.086a29.74 29.74 0 0 1 25.734-14.857h114.23c10.59 0 20.426 5.646 25.734 14.857l57.167 99.034c5.308 9.185 5.308 20.504 0 29.663l-57.141 99.138a29.74 29.74 0 0 1-25.734 14.858H118.937a29.79 29.79 0 0 1-25.786-14.884"/><path fill="#f7f7f7" d="M118.469 142.233h117.534a2.65 2.65 0 0 0 2.654-2.654v-22.04c0-14.65-11.891-26.54-26.54-26.54h-70.568c-20.53-.026-37.157 16.6-37.157 37.13-.026 7.833 6.27 14.104 14.077 14.104m11.527 97.368h70.229c21.207 0 38.432-17.225 38.432-38.432 0-7.078-5.724-12.828-12.828-12.828H106.942a2.537 2.537 0 0 0-2.55 2.55v23.054c-.026 14.181 11.475 25.656 25.604 25.656"/><path fill="#f7f7f7" d="m109.596 139.319 87.663 87.662c5.802 5.803 15.196 5.803 20.998 0l15.196-15.196c5.803-5.802 5.803-15.196 0-20.998l-87.637-87.663c-5.802-5.802-15.196-5.802-20.998 0l-15.196 15.196c-5.855 5.803-5.855 15.222-.026 20.999"/><path fill="#444" d="m198.69 228.464-51.495-40.123h11.397zm-54.33-126.797 40.565 40.566h13.765z" opacity=".3"/></g><script/></svg>
1743
+ `}};customElements.get(`icon-app-solid-emblem`)||customElements.define(`icon-app-solid-emblem`,Xx);var Zx=M`:host{display:inline-flex}`,Qx,$x,eS,tS,nS;function rS(e,t,n){return(t=aS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iS(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:sS(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||sS(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return cS(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:aS(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function aS(e){var t=oS(e,`string`);return typeof t==`symbol`?t:t+``}function oS(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sS(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function cS(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function lS(e){return e}tS=[g(`solid-ui-solid-emblem`)];var uS;new(nS=($x=class extends F{render(){return N`<icon-app-solid-emblem></icon-app-solid-emblem>`}},[uS,eS]=iS($x,[],tS,0,void 0,F).c,$x),Qx=class extends lS{constructor(){super(uS),rS(this,`styles`,Zx),eS()}},rS(Qx,nS,void 0),Qx);function W(...e){console.log(...e)}function G(...e){console.warn(...e)}function dS(...e){console.error(...e)}function fS(...e){console.trace(...e)}var K=n.solidLogicSingleton.store;function pS(e,n,r,i){let a=R.acl,o=e.uri.slice(-1)===`/`,s=K.each(void 0,a(`default`),r,i).concat(K.each(void 0,a(`defaultForNew`),r,i)).reduce((n,r)=>n.concat(K.statementsMatching(r,R.rdf(`type`),a(`Authorization`),i)).concat(K.statementsMatching(r,a(`agent`),void 0,i)).concat(K.statementsMatching(r,a(`agentClass`),void 0,i)).concat(K.statementsMatching(r,a(`agentGroup`),void 0,i)).concat(K.statementsMatching(r,a(`origin`),void 0,i)).concat(K.statementsMatching(r,a(`originClass`),void 0,i)).concat(K.statementsMatching(r,a(`mode`),void 0,i)).concat((0,t.st)(r,a(`accessTo`),e,i)).concat(o?(0,t.st)(r,a(`default`),e,i):[]),[]),c=(0,t.graph)();return s.forEach(e=>c.add(l(e.subject),l(e.predicate),l(e.object),(0,t.sym)(n.uri))),c;function l(e){let r=i.uri.length;return(0,t.sym)(e.uri.slice(0,r)===i.uri?n.uri+e.uri.slice(r):e.uri)}}function mS(e,t,n=K,r=!1){let i=r?s(n,R):n.each(void 0,R.acl(`accessTo`),e),a=R.acl,o={agent:{},agentClass:{},agentGroup:{},origin:{},originClass:{}};return Object.keys(o).forEach(e=>{i.forEach(function(t){n.each(t,a(`mode`)).forEach(function(r){n.each(t,a(e)).forEach(function(n){o[e][n.uri]=o[e][n.uri]||{},o[e][n.uri][r.uri]=t})})})}),o;function s(t,n){return t.each(void 0,n.acl(`default`),e).concat(t.each(void 0,n.acl(`defaultForNew`),e))}}function hS(e,t){let n=function(e,t){for(let n in{agent:!0,agentClass:!0,agentGroup:!0,origin:!0,originClass:!0})if(e[n]){for(let r in e[n])for(let i in e[n][r])if(!t[n][r]||!t[n][r][i])return!1}return!0};return n(e,t)&&n(t,e)}function gS(e){let t=e[0],n,r;for(let i=1;i<e.length;i++)[`agent`,`agentClass`,`agentGroup`,`origin`,`originClass`].forEach(function(a){if(n=e[i],n[a])for(r in n[a])for(let e in n[a][r])t[a][r]||(t[a][r]=[]),t[a][r][e]=!0});return t}function _S(e,t){let n=[],r=function(e){e.length?kS(e.shift().doc(),function(i,a,o,s,c,l){let u=!a;if(!i||!c||!l)return t(i,s);let d=u?mS(c,l):mS(o,s);n.push(d),r(e.slice(1))}):t(!0,gS(n))};r(e)}function vS(e){let t={};return[`agent`,`agentClass`,`agentGroup`,`origin`,`originClass`].forEach(function(n){for(let r in e[n]){let i=[];for(let t in e[n][r])i.push(t);i.sort();let a=i.join(`
1744
+ `);t[a]||(t[a]=[]),t[a].push([n,r])}}),t}function yS(e,t,n,r){return bS(e,t,vS(n),r)}function bS(e,t,n,r,i,a){let o=R.acl;for(let s in n){let c=n[s];if(!c.length)continue;let l=s.split(`
1745
+ `),u=l.map(function(e){return e.split(`#`)[1]}).join(``);a&&!i&&(u+=`Default`);let d=e.sym(r.uri+`#`+u);e.add(d,R.rdf(`type`),o(`Authorization`),r),i&&e.add(d,o(`accessTo`),t,r),a&&e.add(d,o(`default`),t,r);for(let t=0;t<l.length;t++)e.add(d,o(`mode`),e.sym(l[t]),r);for(let t=0;t<c.length;t++){let n=c[t][0],i=c[t][1];e.add(d,o(n),e.sym(i),r)}}}function xS(e){return SS(vS(e))}function SS(e){let n=``;for(let r in e){let i=r.split(`
1746
+ `).map(function(e){return e.split(`#`)[1][0]}).join(``);n+=i+`:`;let a=e[r];for(let e=0;e<a.length;e++){let r=a[e][0],i=(0,t.sym)(a[e][1]);n+=r===`agent`?`@`:``,n+=i.sameTerm(R.foaf(`Agent`))?`*`:V(i),e<a.length-1&&(n+=`,`)}n+=`;`}return`{`+n.slice(0,-1)+`}`}function CS(e,n,r){let i=(0,t.graph)();return yS(i,e,n,r),(0,t.serialize)(r,i,r.uri,`text/turtle`)||``}function wS(e,t,n,r,i){return TS(e,t,vS(n),r,i)}function TS(e,n,r,i,a){let o=(0,t.graph)();bS(o,n,r,i,!0),e.updater?.put(i,o.statementsMatching(void 0,void 0,void 0,i),`text/turtle`,function(t,o,s){o?(e.fetcher?.unload(i),bS(e,n,r,i,!0),e.fetcher.requested[i.uri]=`done`,a(o)):a(o,s)})}function ES(e,t,n){let r=K.each(void 0,R.vcard(`hasMember`),e);r?DS(e,r,t,n):(t(`This card is in no groups`),n(!0))}function DS(e,t,n,r){n||=W;let i=e.doc();kS(i,function(a,o,s,c,l,u){if(!a||!l||!u)return r(!1,c);let d=o?mS(s,c):mS(l,u);_S(t,function(t,a){if(!t)return r(!1,a);hS(a,d)?n(`Nice - same ACL. no change `+V(e)+` `+i):(n(`Group ACLs differ for `+V(e)+` `+i),wS(K,s,a,c,r))})})}function OS(e,t,r){let i=K.any(e,n.ACL_LINK);if(!K.fetcher)throw Error(`Store has no fetcher`);i?K.fetcher.webOperation(`PUT`,i.value,{data:t,contentType:`text/turtle`}).then(e=>{r(e.ok,e.error||``)}):K.fetcher.nowOrWhenFetched(e,void 0,function(i,a){if(!i)return r(i,`Gettting headers for ACL: `+a);let o=K.any(e,n.ACL_LINK);if(!o)r(!1,`No Link rel=ACL header for `+e);else{if(!K.fetcher)throw Error(`Store has no fetcher`);K.fetcher.webOperation(`PUT`,o.value,{data:t,contentType:`text/turtle`}).then(e=>{r(e.ok,e.error||``)})}})}function kS(e,n){AS(e,function(r,i,a,o){let s=R.acl;if(!r)return n(!1,!1,i,o);let c=function(r){r.slice(-1)===`/`&&(r=r.slice(0,-1));let i=r.lastIndexOf(`/`);if(r.indexOf(`/`,r.indexOf(`//`)+2)>i)return n(!1,!0,404,`Found no ACL resource`);r=r.slice(0,i+1);let o=(0,t.sym)(r);AS(o,function(t,i,l){return t?i===403?n(!1,!0,i,`( default ACL file FORBIDDEN. Stop.${r})`):i===404?c(r):i===200?K.each(void 0,s(`default`),K.sym(r),l).concat(K.each(void 0,s(`defaultForNew`),K.sym(r),l)).length?n(!0,!1,e,a,K.sym(r),l):c(r):n(!1,!0,i,`Error status '${i}' searching for default for ${o}`):n(!1,!0,i,`( No ACL pointer ${r} ${i})${l}`)})};if(!r)return n(!1,!1,i,`Error accessing Access Control information for ${e}) ${o}`);if(i===404)c(e.uri);else if(i===403)return n(!1,!1,i,`(Sharing not available to you)${o}`);else if(i!==200)return n(!1,!1,i,`Error ${i} accessing Access Control information for ${e}: ${o}`);else return n(!0,!0,e,a)})}function AS(e,t){if(!K.fetcher)throw Error(`kb has no fetcher`);K.fetcher.nowOrWhenFetched(e,void 0,function(r,i){if(!r)return t(r,`Can't get headers to find ACL for ${e}: ${i}`);let a=K.any(e,n.ACL_LINK);if(!a)t(!1,900,`No Link rel=ACL header for ${e}`);else{if(!K.fetcher)throw Error(`kb has no fetcher`);if(K.fetcher.nonexistent[a.value])return t(!0,404,a,`ACL file ${a} does not exist.`);K.fetcher.nowOrWhenFetched(a,void 0,function(e,n,r){e?t(!0,200,a):t(!0,r.status,a,`Can't read Access Control File ${a}: ${n}`)})}})}async function jS(e){return new Promise((n,r)=>kS((0,t.sym)(e),(t,i,a,o,s)=>t?n(i?a:s):r(Error(`Error loading ${e}`))))}var MS=u(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}})),NS=[];for(let e=0;e<256;++e)NS.push((e+256).toString(16).slice(1));function PS(e,t=0){return(NS[e[t+0]]+NS[e[t+1]]+NS[e[t+2]]+NS[e[t+3]]+`-`+NS[e[t+4]]+NS[e[t+5]]+`-`+NS[e[t+6]]+NS[e[t+7]]+`-`+NS[e[t+8]]+NS[e[t+9]]+`-`+NS[e[t+10]]+NS[e[t+11]]+NS[e[t+12]]+NS[e[t+13]]+NS[e[t+14]]+NS[e[t+15]]).toLowerCase()}var FS=new Uint8Array(16);function IS(){return crypto.getRandomValues(FS)}function LS(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():RS(e,t,n)}function RS(e,t,n){e||={};let r=e.random??e.rng?.()??IS();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return PS(r)}var zS=d({default:()=>BS}),BS,VS=l((()=>{BS={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/ace+json":{source:`iana`,compressible:!0},"application/ace-groupcomm+cbor":{source:`iana`},"application/ace-trl+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/aif+cbor":{source:`iana`},"application/aif+json":{source:`iana`,compressible:!0},"application/alto-cdni+json":{source:`iana`,compressible:!0},"application/alto-cdnifilter+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-propmap+json":{source:`iana`,compressible:!0},"application/alto-propmapparams+json":{source:`iana`,compressible:!0},"application/alto-tips+json":{source:`iana`,compressible:!0},"application/alto-tipsparams+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"application/aml":{source:`iana`},"application/andrew-inset":{source:`iana`,extensions:[`ez`]},"application/appinstaller":{compressible:!1,extensions:[`appinstaller`]},"application/applefile":{source:`iana`},"application/applixware":{source:`apache`,extensions:[`aw`]},"application/appx":{compressible:!1,extensions:[`appx`]},"application/appxbundle":{compressible:!1,extensions:[`appxbundle`]},"application/at+jwt":{source:`iana`},"application/atf":{source:`iana`},"application/atfx":{source:`iana`},"application/atom+xml":{source:`iana`,compressible:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/automationml-aml+xml":{source:`iana`,compressible:!0,extensions:[`aml`]},"application/automationml-amlx+zip":{source:`iana`,compressible:!1,extensions:[`amlx`]},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]},"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/bufr":{source:`iana`},"application/c2pa":{source:`iana`},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/cdfx+xml":{source:`iana`,compressible:!0,extensions:[`cdfx`]},"application/cdmi-capability":{source:`iana`,extensions:[`cdmia`]},"application/cdmi-container":{source:`iana`,extensions:[`cdmic`]},"application/cdmi-domain":{source:`iana`,extensions:[`cdmid`]},"application/cdmi-object":{source:`iana`,extensions:[`cdmio`]},"application/cdmi-queue":{source:`iana`,extensions:[`cdmiq`]},"application/cdni":{source:`iana`},"application/ce+cbor":{source:`iana`},"application/cea":{source:`iana`},"application/cea-2018+xml":{source:`iana`,compressible:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/cid-edhoc+cbor-seq":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/city+json-seq":{source:`iana`},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-eap":{source:`iana`},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/concise-problem-details+cbor":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cose-x509":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwl":{source:`iana`,extensions:[`cwl`]},"application/cwl+json":{source:`iana`,compressible:!0},"application/cwl+yaml":{source:`iana`},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`,extensions:[`dcm`]},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dpop+jwt":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/eat+cwt":{source:`iana`},"application/eat+jwt":{source:`iana`},"application/eat-bun+cbor":{source:`iana`},"application/eat-bun+json":{source:`iana`,compressible:!0},"application/eat-ucs+cbor":{source:`iana`},"application/eat-ucs+json":{source:`iana`,compressible:!0},"application/ecmascript":{source:`apache`,compressible:!0,extensions:[`ecma`]},"application/edhoc+cbor-seq":{source:`iana`},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.legacyesn+json":{source:`iana`,compressible:!0},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/entity-statement+jwt":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdf":{source:`iana`,extensions:[`fdf`]},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:`iana`},"application/flexfec":{source:`iana`},"application/font-sfnt":{source:`iana`},"application/font-tdpfr":{source:`iana`,extensions:[`pfr`]},"application/font-woff":{source:`iana`,compressible:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geopose+json":{source:`iana`,compressible:!0},"application/geoxacml+json":{source:`iana`,compressible:!0},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gnap-binding-jws":{source:`iana`},"application/gnap-binding-jwsd":{source:`iana`},"application/gnap-binding-rotation-jws":{source:`iana`},"application/gnap-binding-rotation-jwsd":{source:`iana`},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/grib":{source:`iana`},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/index":{source:`iana`},"application/index.cmd":{source:`iana`},"application/index.obj":{source:`iana`},"application/index.response":{source:`iana`},"application/index.vnd":{source:`iana`},"application/inkml+xml":{source:`iana`,compressible:!0,extensions:[`ink`,`inkml`]},"application/iotp":{source:`iana`},"application/ipfix":{source:`iana`,extensions:[`ipfix`]},"application/ipp":{source:`iana`},"application/isup":{source:`iana`},"application/its+xml":{source:`iana`,compressible:!0,extensions:[`its`]},"application/java-archive":{source:`iana`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`apache`,charset:`UTF-8`,compressible:!0,extensions:[`js`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/jscontact+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jsonpath":{source:`iana`},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwk-set+jwt":{source:`iana`},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/linkset":{source:`iana`},"application/linkset+json":{source:`iana`,compressible:!0},"application/load-control+xml":{source:`iana`,compressible:!0},"application/logout+jwt":{source:`iana`},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"application/lxf":{source:`iana`},"application/mac-binhex40":{source:`iana`,extensions:[`hqx`]},"application/mac-compactpro":{source:`apache`,extensions:[`cpt`]},"application/macwriteii":{source:`iana`},"application/mads+xml":{source:`iana`,compressible:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,extensions:[`mets`]},"application/mf4":{source:`iana`},"application/mikey":{source:`iana`},"application/mipc":{source:`iana`},"application/missing-blocks+cbor-seq":{source:`iana`},"application/mmt-aei+xml":{source:`iana`,compressible:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,extensions:[`mods`]},"application/moss-keys":{source:`iana`},"application/moss-signature":{source:`iana`},"application/mosskey-data":{source:`iana`},"application/mosskey-request":{source:`iana`},"application/mp21":{source:`iana`,extensions:[`m21`,`mp21`]},"application/mp4":{source:`iana`,extensions:[`mp4`,`mpg4`,`mp4s`,`m4p`]},"application/mpeg4-generic":{source:`iana`},"application/mpeg4-iod":{source:`iana`},"application/mpeg4-iod-xmt":{source:`iana`},"application/mrb-consumer+xml":{source:`iana`,compressible:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msix":{compressible:!1,extensions:[`msix`]},"application/msixbundle":{compressible:!1,extensions:[`msixbundle`]},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"application/multipart-core":{source:`iana`},"application/mxf":{source:`iana`,extensions:[`mxf`]},"application/n-quads":{source:`iana`,extensions:[`nq`]},"application/n-triples":{source:`iana`,extensions:[`nt`]},"application/nasdata":{source:`iana`},"application/news-checkgroups":{source:`iana`,charset:`US-ASCII`},"application/news-groupinfo":{source:`iana`,charset:`US-ASCII`},"application/news-transmission":{source:`iana`},"application/nlsml+xml":{source:`iana`,compressible:!0},"application/node":{source:`iana`,extensions:[`cjs`]},"application/nss":{source:`iana`},"application/oauth-authz-req+jwt":{source:`iana`},"application/oblivious-dns-message":{source:`iana`},"application/ocsp-request":{source:`iana`},"application/ocsp-response":{source:`iana`},"application/octet-stream":{source:`iana`,compressible:!0,extensions:[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`]},"application/oda":{source:`iana`,extensions:[`oda`]},"application/odm+xml":{source:`iana`,compressible:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/ohttp-keys":{source:`iana`},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`,`one`,`onea`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,extensions:[`pgp`]},"application/pgp-keys":{source:`iana`,extensions:[`asc`]},"application/pgp-signature":{source:`iana`,extensions:[`sig`,`asc`]},"application/pics-rules":{source:`apache`,extensions:[`prf`]},"application/pidf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pkcs10":{source:`iana`,extensions:[`p10`]},"application/pkcs12":{source:`iana`},"application/pkcs7-mime":{source:`iana`,extensions:[`p7m`,`p7c`]},"application/pkcs7-signature":{source:`iana`,extensions:[`p7s`]},"application/pkcs8":{source:`iana`,extensions:[`p8`]},"application/pkcs8-encrypted":{source:`iana`},"application/pkix-attr-cert":{source:`iana`,extensions:[`ac`]},"application/pkix-cert":{source:`iana`,extensions:[`cer`]},"application/pkix-crl":{source:`iana`,extensions:[`crl`]},"application/pkix-pkipath":{source:`iana`,extensions:[`pkipath`]},"application/pkixcmp":{source:`iana`,extensions:[`pki`]},"application/pls+xml":{source:`iana`,compressible:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/private-token-issuer-directory":{source:`iana`},"application/private-token-request":{source:`iana`},"application/private-token-response":{source:`iana`},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,extensions:[`provx`]},"application/provided-claims+jwt":{source:`iana`},"application/prs.alvestrand.titrax-sheet":{source:`iana`},"application/prs.cww":{source:`iana`,extensions:[`cww`]},"application/prs.cyn":{source:`iana`,charset:`7-BIT`},"application/prs.hpub+zip":{source:`iana`,compressible:!1},"application/prs.implied-document+xml":{source:`iana`,compressible:!0},"application/prs.implied-executable":{source:`iana`},"application/prs.implied-object+json":{source:`iana`,compressible:!0},"application/prs.implied-object+json-seq":{source:`iana`},"application/prs.implied-object+yaml":{source:`iana`},"application/prs.implied-structure":{source:`iana`},"application/prs.mayfile":{source:`iana`},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.vcfbzip2":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0,extensions:[`xsf`]},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`apache`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resolve-response+jwt":{source:`iana`},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,extensions:[`rusd`]},"application/rpki-checklist":{source:`iana`},"application/rpki-ghostbusters":{source:`iana`,extensions:[`gbr`]},"application/rpki-manifest":{source:`iana`,extensions:[`mft`]},"application/rpki-publication":{source:`iana`},"application/rpki-roa":{source:`iana`,extensions:[`roa`]},"application/rpki-signed-tal":{source:`iana`},"application/rpki-updown":{source:`iana`},"application/rsd+xml":{source:`apache`,compressible:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"application/scvp-cv-request":{source:`iana`,extensions:[`scq`]},"application/scvp-cv-response":{source:`iana`,extensions:[`scs`]},"application/scvp-vp-request":{source:`iana`,extensions:[`spq`]},"application/scvp-vp-response":{source:`iana`,extensions:[`spp`]},"application/sdp":{source:`iana`,extensions:[`sdp`]},"application/secevent+jwt":{source:`iana`},"application/senml+cbor":{source:`iana`},"application/senml+json":{source:`iana`,compressible:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"application/sep-exi":{source:`iana`},"application/session-info":{source:`iana`},"application/set-payment":{source:`iana`},"application/set-payment-initiation":{source:`iana`,extensions:[`setpay`]},"application/set-registration":{source:`iana`},"application/set-registration-initiation":{source:`iana`,extensions:[`setreg`]},"application/sgml":{source:`iana`},"application/sgml-open-catalog":{source:`iana`},"application/shf+xml":{source:`iana`,compressible:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"application/simple-message-summary":{source:`iana`},"application/simplesymbolcontainer":{source:`iana`},"application/sipc":{source:`iana`},"application/slate":{source:`iana`},"application/smil":{source:`apache`},"application/smil+xml":{source:`iana`,compressible:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`,extensions:[`sql`]},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/sslkeylogfile":{source:`iana`},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/st2110-41":{source:`iana`},"application/stix+json":{source:`iana`,compressible:!0},"application/stratum":{source:`iana`},"application/swid+cbor":{source:`iana`},"application/swid+xml":{source:`iana`,compressible:!0,extensions:[`swidtag`]},"application/tamp-apex-update":{source:`iana`},"application/tamp-apex-update-confirm":{source:`iana`},"application/tamp-community-update":{source:`iana`},"application/tamp-community-update-confirm":{source:`iana`},"application/tamp-error":{source:`iana`},"application/tamp-sequence-adjust":{source:`iana`},"application/tamp-sequence-adjust-confirm":{source:`iana`},"application/tamp-status-query":{source:`iana`},"application/tamp-status-response":{source:`iana`},"application/tamp-update":{source:`iana`},"application/tamp-update-confirm":{source:`iana`},"application/tar":{compressible:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,extensions:[`tfi`]},"application/timestamp-query":{source:`iana`},"application/timestamp-reply":{source:`iana`},"application/timestamped-data":{source:`iana`,extensions:[`tsd`]},"application/tlsrpt+gzip":{source:`iana`},"application/tlsrpt+json":{source:`iana`,compressible:!0},"application/tm+json":{source:`iana`,compressible:!0},"application/tnauthlist":{source:`iana`},"application/toc+cbor":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{source:`iana`,compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/trust-chain+json":{source:`iana`,compressible:!0},"application/trust-mark+jwt":{source:`iana`},"application/trust-mark-delegation+jwt":{source:`iana`},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/uccs+cbor":{source:`iana`},"application/ujcs+json":{source:`iana`,compressible:!0},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vc":{source:`iana`},"application/vc+cose":{source:`iana`},"application/vc+jwt":{source:`iana`},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.1ob":{source:`iana`},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3a+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ach+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc8+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gnas":{source:`iana`},"application/vnd.3gpp.5gsa2x":{source:`iana`},"application/vnd.3gpp.5gsa2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gsv2x":{source:`iana`},"application/vnd.3gpp.5gsv2x-local-service-information":{source:`iana`},"application/vnd.3gpp.access-transfer-events+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.crs+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.current-location-discovery+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gtpc":{source:`iana`},"application/vnd.3gpp.interworking-data":{source:`iana`},"application/vnd.3gpp.lpp":{source:`iana`},"application/vnd.3gpp.mc-signalling-ear":{source:`iana`},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-regroup+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-regroup+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-regroup+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ngap":{source:`iana`},"application/vnd.3gpp.pfcp":{source:`iana`},"application/vnd.3gpp.pic-bw-large":{source:`iana`,extensions:[`plb`]},"application/vnd.3gpp.pic-bw-small":{source:`iana`,extensions:[`psb`]},"application/vnd.3gpp.pic-bw-var":{source:`iana`,extensions:[`pvb`]},"application/vnd.3gpp.pinapp-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.s1ap":{source:`iana`},"application/vnd.3gpp.seal-group-doc+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-network-qos-management-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-ue-config-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-unicast-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-user-profile-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.sms":{source:`iana`},"application/vnd.3gpp.sms+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.v2x":{source:`iana`},"application/vnd.3gpp.vae-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.sms":{source:`iana`},"application/vnd.3gpp2.tcap":{source:`iana`,extensions:[`tcap`]},"application/vnd.3lightssoftware.imagescal":{source:`iana`},"application/vnd.3m.post-it-notes":{source:`iana`,extensions:[`pwn`]},"application/vnd.accpac.simply.aso":{source:`iana`,extensions:[`aso`]},"application/vnd.accpac.simply.imp":{source:`iana`,extensions:[`imp`]},"application/vnd.acm.addressxfer+json":{source:`iana`,compressible:!0},"application/vnd.acm.chatbot+json":{source:`iana`,compressible:!0},"application/vnd.acucobol":{source:`iana`,extensions:[`acu`]},"application/vnd.acucorp":{source:`iana`,extensions:[`atc`,`acutc`]},"application/vnd.adobe.air-application-installer-package+zip":{source:`apache`,compressible:!1,extensions:[`air`]},"application/vnd.adobe.flash.movie":{source:`iana`},"application/vnd.adobe.formscentral.fcdt":{source:`iana`,extensions:[`fcdt`]},"application/vnd.adobe.fxp":{source:`iana`,extensions:[`fxp`,`fxpl`]},"application/vnd.adobe.partial-upload":{source:`iana`},"application/vnd.adobe.xdp+xml":{source:`iana`,compressible:!0,extensions:[`xdp`]},"application/vnd.adobe.xfdf":{source:`apache`,extensions:[`xfdf`]},"application/vnd.aether.imp":{source:`iana`},"application/vnd.afpc.afplinedata":{source:`iana`},"application/vnd.afpc.afplinedata-pagedef":{source:`iana`},"application/vnd.afpc.cmoca-cmresource":{source:`iana`},"application/vnd.afpc.foca-charset":{source:`iana`},"application/vnd.afpc.foca-codedfont":{source:`iana`},"application/vnd.afpc.foca-codepage":{source:`iana`},"application/vnd.afpc.modca":{source:`iana`},"application/vnd.afpc.modca-cmtable":{source:`iana`},"application/vnd.afpc.modca-formdef":{source:`iana`},"application/vnd.afpc.modca-mediummap":{source:`iana`},"application/vnd.afpc.modca-objectcontainer":{source:`iana`},"application/vnd.afpc.modca-overlay":{source:`iana`},"application/vnd.afpc.modca-pagesegment":{source:`iana`},"application/vnd.age":{source:`iana`,extensions:[`age`]},"application/vnd.ah-barcode":{source:`apache`},"application/vnd.ahead.space":{source:`iana`,extensions:[`ahead`]},"application/vnd.airzip.filesecure.azf":{source:`iana`,extensions:[`azf`]},"application/vnd.airzip.filesecure.azs":{source:`iana`,extensions:[`azs`]},"application/vnd.amadeus+json":{source:`iana`,compressible:!0},"application/vnd.amazon.ebook":{source:`apache`,extensions:[`azw`]},"application/vnd.amazon.mobi8-ebook":{source:`iana`},"application/vnd.americandynamics.acc":{source:`iana`,extensions:[`acc`]},"application/vnd.amiga.ami":{source:`iana`,extensions:[`ami`]},"application/vnd.amundsen.maze+xml":{source:`iana`,compressible:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,extensions:[`apk`]},"application/vnd.anki":{source:`iana`},"application/vnd.anser-web-certificate-issue-initiation":{source:`iana`,extensions:[`cii`]},"application/vnd.anser-web-funds-transfer-initiation":{source:`apache`,extensions:[`fti`]},"application/vnd.antix.game-component":{source:`iana`,extensions:[`atx`]},"application/vnd.apache.arrow.file":{source:`iana`},"application/vnd.apache.arrow.stream":{source:`iana`},"application/vnd.apache.parquet":{source:`iana`},"application/vnd.apache.thrift.binary":{source:`iana`},"application/vnd.apache.thrift.compact":{source:`iana`},"application/vnd.apache.thrift.json":{source:`iana`},"application/vnd.apexlang":{source:`iana`},"application/vnd.api+json":{source:`iana`,compressible:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,extensions:[`mpkg`]},"application/vnd.apple.keynote":{source:`iana`,extensions:[`key`]},"application/vnd.apple.mpegurl":{source:`iana`,extensions:[`m3u8`]},"application/vnd.apple.numbers":{source:`iana`,extensions:[`numbers`]},"application/vnd.apple.pages":{source:`iana`,extensions:[`pages`]},"application/vnd.apple.pkpass":{compressible:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`apache`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"application/vnd.artsquare":{source:`iana`},"application/vnd.astraea-software.iota":{source:`iana`,extensions:[`iota`]},"application/vnd.audiograph":{source:`iana`,extensions:[`aep`]},"application/vnd.autodesk.fbx":{extensions:[`fbx`]},"application/vnd.autopackage":{source:`iana`},"application/vnd.avalon+json":{source:`iana`,compressible:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,extensions:[`bmml`]},"application/vnd.balsamiq.bmpr":{source:`iana`},"application/vnd.banana-accounting":{source:`iana`},"application/vnd.bbf.usp.error":{source:`iana`},"application/vnd.bbf.usp.msg":{source:`iana`},"application/vnd.bbf.usp.msg+json":{source:`iana`,compressible:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.belightsoft.lhzd+zip":{source:`iana`,compressible:!1},"application/vnd.belightsoft.lhzl+zip":{source:`iana`,compressible:!1},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:`iana`},"application/vnd.blueice.multipass":{source:`iana`,extensions:[`mpm`]},"application/vnd.bluetooth.ep.oob":{source:`iana`},"application/vnd.bluetooth.le.oob":{source:`iana`},"application/vnd.bmi":{source:`iana`,extensions:[`bmi`]},"application/vnd.bpf":{source:`iana`},"application/vnd.bpf3":{source:`iana`},"application/vnd.businessobjects":{source:`iana`,extensions:[`rep`]},"application/vnd.byu.uapi+json":{source:`iana`,compressible:!0},"application/vnd.bzip3":{source:`iana`},"application/vnd.c3voc.schedule+xml":{source:`iana`,compressible:!0},"application/vnd.cab-jscript":{source:`iana`},"application/vnd.canon-cpdl":{source:`iana`},"application/vnd.canon-lips":{source:`iana`},"application/vnd.capasystems-pg+json":{source:`iana`,compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,extensions:[`cdxml`]},"application/vnd.chess-pgn":{source:`iana`},"application/vnd.chipnuts.karaoke-mmd":{source:`iana`,extensions:[`mmd`]},"application/vnd.ciedi":{source:`iana`},"application/vnd.cinderella":{source:`iana`,extensions:[`cdy`]},"application/vnd.cirpack.isdn-ext":{source:`iana`},"application/vnd.citationstyles.style+xml":{source:`iana`,compressible:!0,extensions:[`csl`]},"application/vnd.claymore":{source:`iana`,extensions:[`cla`]},"application/vnd.cloanto.rp9":{source:`iana`,extensions:[`rp9`]},"application/vnd.clonk.c4group":{source:`iana`,extensions:[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`]},"application/vnd.cluetrust.cartomobile-config":{source:`iana`,extensions:[`c11amc`]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:`iana`,extensions:[`c11amz`]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{source:`iana`},"application/vnd.cncf.helm.chart.provenance.v1.prov":{source:`iana`},"application/vnd.cncf.helm.config.v1+json":{source:`iana`,compressible:!0},"application/vnd.coffeescript":{source:`iana`},"application/vnd.collabio.xodocuments.document":{source:`iana`},"application/vnd.collabio.xodocuments.document-template":{source:`iana`},"application/vnd.collabio.xodocuments.presentation":{source:`iana`},"application/vnd.collabio.xodocuments.presentation-template":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:`iana`},"application/vnd.collection+json":{source:`iana`,compressible:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"application/vnd.comicbook-rar":{source:`iana`},"application/vnd.commerce-battelle":{source:`iana`},"application/vnd.commonspace":{source:`iana`,extensions:[`csp`]},"application/vnd.contact.cmsg":{source:`iana`,extensions:[`cdbcmsg`]},"application/vnd.coreos.ignition+json":{source:`iana`,compressible:!0},"application/vnd.cosmocaller":{source:`iana`,extensions:[`cmc`]},"application/vnd.crick.clicker":{source:`iana`,extensions:[`clkx`]},"application/vnd.crick.clicker.keyboard":{source:`iana`,extensions:[`clkk`]},"application/vnd.crick.clicker.palette":{source:`iana`,extensions:[`clkp`]},"application/vnd.crick.clicker.template":{source:`iana`,extensions:[`clkt`]},"application/vnd.crick.clicker.wordbank":{source:`iana`,extensions:[`clkw`]},"application/vnd.criticaltools.wbs+xml":{source:`iana`,compressible:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"application/vnd.crypto-shade-file":{source:`iana`},"application/vnd.cryptomator.encrypted":{source:`iana`},"application/vnd.cryptomator.vault":{source:`iana`},"application/vnd.ctc-posml":{source:`iana`,extensions:[`pml`]},"application/vnd.ctct.ws+xml":{source:`iana`,compressible:!0},"application/vnd.cups-pdf":{source:`iana`},"application/vnd.cups-postscript":{source:`iana`},"application/vnd.cups-ppd":{source:`iana`,extensions:[`ppd`]},"application/vnd.cups-raster":{source:`iana`},"application/vnd.cups-raw":{source:`iana`},"application/vnd.curl":{source:`iana`},"application/vnd.curl.car":{source:`apache`,extensions:[`car`]},"application/vnd.curl.pcurl":{source:`apache`,extensions:[`pcurl`]},"application/vnd.cyan.dean.root+xml":{source:`iana`,compressible:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datalog":{source:`iana`},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"application/vnd.dbf":{source:`iana`,extensions:[`dbf`]},"application/vnd.dcmp+xml":{source:`iana`,compressible:!0,extensions:[`dcmp`]},"application/vnd.debian.binary-package":{source:`iana`},"application/vnd.dece.data":{source:`iana`,extensions:[`uvf`,`uvvf`,`uvd`,`uvvd`]},"application/vnd.dece.ttml+xml":{source:`iana`,compressible:!0,extensions:[`uvt`,`uvvt`]},"application/vnd.dece.unspecified":{source:`iana`,extensions:[`uvx`,`uvvx`]},"application/vnd.dece.zip":{source:`iana`,extensions:[`uvz`,`uvvz`]},"application/vnd.denovo.fcselayout-link":{source:`iana`,extensions:[`fe_launch`]},"application/vnd.desmume.movie":{source:`iana`},"application/vnd.dir-bi.plate-dl-nosuffix":{source:`iana`},"application/vnd.dm.delegation+xml":{source:`iana`,compressible:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"application/vnd.dolby.mlp":{source:`apache`,extensions:[`mlp`]},"application/vnd.dolby.mobile.1":{source:`iana`},"application/vnd.dolby.mobile.2":{source:`iana`},"application/vnd.doremir.scorecloud-binary-document":{source:`iana`},"application/vnd.dpgraph":{source:`iana`,extensions:[`dpg`]},"application/vnd.dreamfactory":{source:`iana`,extensions:[`dfac`]},"application/vnd.drive+json":{source:`iana`,compressible:!0},"application/vnd.ds-keypoint":{source:`apache`,extensions:[`kpxx`]},"application/vnd.dtg.local":{source:`iana`},"application/vnd.dtg.local.flash":{source:`iana`},"application/vnd.dtg.local.html":{source:`iana`},"application/vnd.dvb.ait":{source:`iana`,extensions:[`ait`]},"application/vnd.dvb.dvbisl+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.dvbj":{source:`iana`},"application/vnd.dvb.esgcontainer":{source:`iana`},"application/vnd.dvb.ipdcdftnotifaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess2":{source:`iana`},"application/vnd.dvb.ipdcesgpdd":{source:`iana`},"application/vnd.dvb.ipdcroaming":{source:`iana`},"application/vnd.dvb.iptv.alfec-base":{source:`iana`},"application/vnd.dvb.iptv.alfec-enhancement":{source:`iana`},"application/vnd.dvb.notif-aggregate-root+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.pfr":{source:`iana`},"application/vnd.dvb.service":{source:`iana`,extensions:[`svc`]},"application/vnd.dxr":{source:`iana`},"application/vnd.dynageo":{source:`iana`,extensions:[`geo`]},"application/vnd.dzr":{source:`iana`},"application/vnd.easykaraoke.cdgdownload":{source:`iana`},"application/vnd.ecdis-update":{source:`iana`},"application/vnd.ecip.rlp":{source:`iana`},"application/vnd.eclipse.ditto+json":{source:`iana`,compressible:!0},"application/vnd.ecowin.chart":{source:`iana`,extensions:[`mag`]},"application/vnd.ecowin.filerequest":{source:`iana`},"application/vnd.ecowin.fileupdate":{source:`iana`},"application/vnd.ecowin.series":{source:`iana`},"application/vnd.ecowin.seriesrequest":{source:`iana`},"application/vnd.ecowin.seriesupdate":{source:`iana`},"application/vnd.efi.img":{source:`iana`},"application/vnd.efi.iso":{source:`iana`},"application/vnd.eln+zip":{source:`iana`,compressible:!1},"application/vnd.emclient.accessrequest+xml":{source:`iana`,compressible:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"application/vnd.epson.esf":{source:`iana`,extensions:[`esf`]},"application/vnd.epson.msf":{source:`iana`,extensions:[`msf`]},"application/vnd.epson.quickanime":{source:`iana`,extensions:[`qam`]},"application/vnd.epson.salt":{source:`iana`,extensions:[`slt`]},"application/vnd.epson.ssf":{source:`iana`,extensions:[`ssf`]},"application/vnd.ericsson.quickcall":{source:`iana`},"application/vnd.erofs":{source:`iana`},"application/vnd.espass-espass+zip":{source:`iana`,compressible:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"application/vnd.eudora.data":{source:`iana`},"application/vnd.evolv.ecig.profile":{source:`iana`},"application/vnd.evolv.ecig.settings":{source:`iana`},"application/vnd.evolv.ecig.theme":{source:`iana`},"application/vnd.exstream-empower+zip":{source:`iana`,compressible:!1},"application/vnd.exstream-package":{source:`iana`},"application/vnd.ezpix-album":{source:`iana`,extensions:[`ez2`]},"application/vnd.ezpix-package":{source:`iana`,extensions:[`ez3`]},"application/vnd.f-secure.mobile":{source:`iana`},"application/vnd.familysearch.gedcom+zip":{source:`iana`,compressible:!1},"application/vnd.fastcopy-disk-image":{source:`iana`},"application/vnd.fdf":{source:`apache`,extensions:[`fdf`]},"application/vnd.fdsn.mseed":{source:`iana`,extensions:[`mseed`]},"application/vnd.fdsn.seed":{source:`iana`,extensions:[`seed`,`dataless`]},"application/vnd.fdsn.stationxml+xml":{source:`iana`,charset:`XML-BASED`,compressible:!0},"application/vnd.ffsns":{source:`iana`},"application/vnd.ficlab.flb+zip":{source:`iana`,compressible:!1},"application/vnd.filmit.zfc":{source:`iana`},"application/vnd.fints":{source:`iana`},"application/vnd.firemonkeys.cloudcell":{source:`iana`},"application/vnd.flographit":{source:`iana`,extensions:[`gph`]},"application/vnd.fluxtime.clip":{source:`iana`,extensions:[`ftc`]},"application/vnd.font-fontforge-sfd":{source:`iana`},"application/vnd.framemaker":{source:`iana`,extensions:[`fm`,`frame`,`maker`,`book`]},"application/vnd.freelog.comic":{source:`iana`},"application/vnd.frogans.fnc":{source:`apache`,extensions:[`fnc`]},"application/vnd.frogans.ltf":{source:`apache`,extensions:[`ltf`]},"application/vnd.fsc.weblaunch":{source:`iana`,extensions:[`fsc`]},"application/vnd.fujifilm.fb.docuworks":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.binder":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.container":{source:`iana`},"application/vnd.fujifilm.fb.jfi+xml":{source:`iana`,compressible:!0},"application/vnd.fujitsu.oasys":{source:`iana`,extensions:[`oas`]},"application/vnd.fujitsu.oasys2":{source:`iana`,extensions:[`oa2`]},"application/vnd.fujitsu.oasys3":{source:`iana`,extensions:[`oa3`]},"application/vnd.fujitsu.oasysgp":{source:`iana`,extensions:[`fg5`]},"application/vnd.fujitsu.oasysprs":{source:`iana`,extensions:[`bh2`]},"application/vnd.fujixerox.art-ex":{source:`iana`},"application/vnd.fujixerox.art4":{source:`iana`},"application/vnd.fujixerox.ddd":{source:`iana`,extensions:[`ddd`]},"application/vnd.fujixerox.docuworks":{source:`iana`,extensions:[`xdw`]},"application/vnd.fujixerox.docuworks.binder":{source:`iana`,extensions:[`xbd`]},"application/vnd.fujixerox.docuworks.container":{source:`iana`},"application/vnd.fujixerox.hbpl":{source:`iana`},"application/vnd.fut-misnet":{source:`iana`},"application/vnd.futoin+cbor":{source:`iana`},"application/vnd.futoin+json":{source:`iana`,compressible:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.ga4gh.passport+jwt":{source:`iana`},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.genozip":{source:`iana`},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.gentoo.catmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.gentoo.ebuild":{source:`iana`},"application/vnd.gentoo.eclass":{source:`iana`},"application/vnd.gentoo.gpkg":{source:`iana`},"application/vnd.gentoo.manifest":{source:`iana`},"application/vnd.gentoo.pkgmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.gentoo.xpak":{source:`iana`},"application/vnd.geo+json":{source:`apache`,compressible:!0},"application/vnd.geocube+xml":{source:`apache`,compressible:!0},"application/vnd.geogebra.file":{source:`iana`,extensions:[`ggb`]},"application/vnd.geogebra.pinboard":{source:`iana`},"application/vnd.geogebra.slides":{source:`iana`,extensions:[`ggs`]},"application/vnd.geogebra.tool":{source:`iana`,extensions:[`ggt`]},"application/vnd.geometry-explorer":{source:`iana`,extensions:[`gex`,`gre`]},"application/vnd.geonext":{source:`iana`,extensions:[`gxt`]},"application/vnd.geoplan":{source:`iana`,extensions:[`g2w`]},"application/vnd.geospace":{source:`iana`,extensions:[`g3w`]},"application/vnd.gerber":{source:`iana`},"application/vnd.globalplatform.card-content-mgt":{source:`iana`},"application/vnd.globalplatform.card-content-mgt-response":{source:`iana`},"application/vnd.gmx":{source:`iana`,extensions:[`gmx`]},"application/vnd.gnu.taler.exchange+json":{source:`iana`,compressible:!0},"application/vnd.gnu.taler.merchant+json":{source:`iana`,compressible:!0},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{compressible:!1,extensions:[`gdoc`]},"application/vnd.google-apps.drawing":{compressible:!1,extensions:[`gdraw`]},"application/vnd.google-apps.drive-sdk":{compressible:!1},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{compressible:!1},"application/vnd.google-apps.form":{compressible:!1,extensions:[`gform`]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{compressible:!1,extensions:[`gjam`]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{compressible:!1,extensions:[`gmap`]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.script":{compressible:!1,extensions:[`gscript`]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{compressible:!1,extensions:[`gsite`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`apache`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0,extensions:[`xdcf`]},"application/vnd.gpxsee.map+xml":{source:`iana`,compressible:!0},"application/vnd.grafeq":{source:`iana`,extensions:[`gqf`,`gqs`]},"application/vnd.gridmp":{source:`iana`},"application/vnd.groove-account":{source:`iana`,extensions:[`gac`]},"application/vnd.groove-help":{source:`iana`,extensions:[`ghf`]},"application/vnd.groove-identity-message":{source:`iana`,extensions:[`gim`]},"application/vnd.groove-injector":{source:`iana`,extensions:[`grv`]},"application/vnd.groove-tool-message":{source:`iana`,extensions:[`gtm`]},"application/vnd.groove-tool-template":{source:`iana`,extensions:[`tpl`]},"application/vnd.groove-vcard":{source:`iana`,extensions:[`vcg`]},"application/vnd.hal+json":{source:`iana`,compressible:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hp-hpgl":{source:`iana`,extensions:[`hpgl`]},"application/vnd.hp-hpid":{source:`iana`,extensions:[`hpid`]},"application/vnd.hp-hps":{source:`iana`,extensions:[`hps`]},"application/vnd.hp-jlyt":{source:`iana`,extensions:[`jlt`]},"application/vnd.hp-pcl":{source:`iana`,extensions:[`pcl`]},"application/vnd.hp-pclxl":{source:`iana`,extensions:[`pclxl`]},"application/vnd.hsl":{source:`iana`},"application/vnd.httphone":{source:`iana`},"application/vnd.hydrostatix.sof-data":{source:`iana`,extensions:[`sfd-hdstx`]},"application/vnd.hyper+json":{source:`iana`,compressible:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"application/vnd.hzn-3d-crossword":{source:`iana`},"application/vnd.ibm.afplinedata":{source:`apache`},"application/vnd.ibm.electronic-media":{source:`iana`},"application/vnd.ibm.minipay":{source:`iana`,extensions:[`mpy`]},"application/vnd.ibm.modcap":{source:`apache`,extensions:[`afp`,`listafp`,`list3820`]},"application/vnd.ibm.rights-management":{source:`iana`,extensions:[`irm`]},"application/vnd.ibm.secure-container":{source:`iana`,extensions:[`sc`]},"application/vnd.iccprofile":{source:`iana`,extensions:[`icc`,`icm`]},"application/vnd.ieee.1905":{source:`iana`},"application/vnd.igloader":{source:`iana`,extensions:[`igl`]},"application/vnd.imagemeter.folder+zip":{source:`iana`,compressible:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"application/vnd.immervision-ivp":{source:`iana`,extensions:[`ivp`]},"application/vnd.immervision-ivu":{source:`iana`,extensions:[`ivu`]},"application/vnd.ims.imsccv1p1":{source:`iana`},"application/vnd.ims.imsccv1p2":{source:`iana`},"application/vnd.ims.imsccv1p3":{source:`iana`},"application/vnd.ims.lis.v2.result+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`apache`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"application/vnd.innopath.wamp.notification":{source:`iana`},"application/vnd.insors.igm":{source:`iana`,extensions:[`igm`]},"application/vnd.intercon.formnet":{source:`iana`,extensions:[`xpw`,`xpx`]},"application/vnd.intergeo":{source:`iana`,extensions:[`i2g`]},"application/vnd.intertrust.digibox":{source:`iana`},"application/vnd.intertrust.nncp":{source:`iana`},"application/vnd.intu.qbo":{source:`iana`,extensions:[`qbo`]},"application/vnd.intu.qfx":{source:`iana`,extensions:[`qfx`]},"application/vnd.ipfs.ipns-record":{source:`iana`},"application/vnd.ipld.car":{source:`iana`},"application/vnd.ipld.dag-cbor":{source:`iana`},"application/vnd.ipld.dag-json":{source:`iana`},"application/vnd.ipld.raw":{source:`iana`},"application/vnd.iptc.g2.catalogitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,extensions:[`irp`]},"application/vnd.is-xpr":{source:`iana`,extensions:[`xpr`]},"application/vnd.isac.fcs":{source:`iana`,extensions:[`fcs`]},"application/vnd.iso11783-10+zip":{source:`iana`,compressible:!1},"application/vnd.jam":{source:`iana`,extensions:[`jam`]},"application/vnd.japannet-directory-service":{source:`iana`},"application/vnd.japannet-jpnstore-wakeup":{source:`iana`},"application/vnd.japannet-payment-wakeup":{source:`iana`},"application/vnd.japannet-registration":{source:`iana`},"application/vnd.japannet-registration-wakeup":{source:`iana`},"application/vnd.japannet-setstore-wakeup":{source:`iana`},"application/vnd.japannet-verification":{source:`iana`},"application/vnd.japannet-verification-wakeup":{source:`iana`},"application/vnd.jcp.javame.midlet-rms":{source:`iana`,extensions:[`rms`]},"application/vnd.jisp":{source:`iana`,extensions:[`jisp`]},"application/vnd.joost.joda-archive":{source:`iana`,extensions:[`joda`]},"application/vnd.jsk.isdn-ngn":{source:`iana`},"application/vnd.kahootz":{source:`iana`,extensions:[`ktz`,`ktr`]},"application/vnd.kde.karbon":{source:`iana`,extensions:[`karbon`]},"application/vnd.kde.kchart":{source:`iana`,extensions:[`chrt`]},"application/vnd.kde.kformula":{source:`iana`,extensions:[`kfo`]},"application/vnd.kde.kivio":{source:`iana`,extensions:[`flw`]},"application/vnd.kde.kontour":{source:`iana`,extensions:[`kon`]},"application/vnd.kde.kpresenter":{source:`iana`,extensions:[`kpr`,`kpt`]},"application/vnd.kde.kspread":{source:`iana`,extensions:[`ksp`]},"application/vnd.kde.kword":{source:`iana`,extensions:[`kwd`,`kwt`]},"application/vnd.kdl":{source:`iana`},"application/vnd.kenameaapp":{source:`iana`,extensions:[`htke`]},"application/vnd.keyman.kmp+zip":{source:`iana`,compressible:!1},"application/vnd.keyman.kmx":{source:`iana`},"application/vnd.kidspiration":{source:`iana`,extensions:[`kia`]},"application/vnd.kinar":{source:`iana`,extensions:[`kne`,`knp`]},"application/vnd.koan":{source:`iana`,extensions:[`skp`,`skd`,`skt`,`skm`]},"application/vnd.kodak-descriptor":{source:`iana`,extensions:[`sse`]},"application/vnd.las":{source:`iana`},"application/vnd.las.las+json":{source:`iana`,compressible:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.ldev.productlicensing":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]},"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"application/vnd.loom":{source:`iana`},"application/vnd.lotus-1-2-3":{source:`iana`,extensions:[`123`]},"application/vnd.lotus-approach":{source:`iana`,extensions:[`apr`]},"application/vnd.lotus-freelance":{source:`iana`,extensions:[`pre`]},"application/vnd.lotus-notes":{source:`iana`,extensions:[`nsf`]},"application/vnd.lotus-organizer":{source:`iana`,extensions:[`org`]},"application/vnd.lotus-screencam":{source:`iana`,extensions:[`scm`]},"application/vnd.lotus-wordpro":{source:`iana`,extensions:[`lwp`]},"application/vnd.macports.portpkg":{source:`iana`,extensions:[`portpkg`]},"application/vnd.mapbox-vector-tile":{source:`iana`,extensions:[`mvt`]},"application/vnd.marlin.drm.actiontoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"application/vnd.maxmind.maxmind-db":{source:`iana`},"application/vnd.mcd":{source:`iana`,extensions:[`mcd`]},"application/vnd.mdl":{source:`iana`},"application/vnd.mdl-mbsdf":{source:`iana`},"application/vnd.medcalcdata":{source:`iana`,extensions:[`mc1`]},"application/vnd.mediastation.cdkey":{source:`iana`,extensions:[`cdkey`]},"application/vnd.medicalholodeck.recordxr":{source:`iana`},"application/vnd.meridian-slingshot":{source:`iana`},"application/vnd.mermaid":{source:`iana`},"application/vnd.mfer":{source:`iana`,extensions:[`mwf`]},"application/vnd.mfmp":{source:`iana`,extensions:[`mfm`]},"application/vnd.micro+json":{source:`iana`,compressible:!0},"application/vnd.micrografx.flo":{source:`iana`,extensions:[`flo`]},"application/vnd.micrografx.igx":{source:`iana`,extensions:[`igx`]},"application/vnd.microsoft.portable-executable":{source:`iana`},"application/vnd.microsoft.windows.thumbnail-cache":{source:`iana`},"application/vnd.miele+json":{source:`iana`,compressible:!0},"application/vnd.mif":{source:`iana`,extensions:[`mif`]},"application/vnd.minisoft-hp3000-save":{source:`iana`},"application/vnd.mitsubishi.misty-guard.trustweb":{source:`iana`},"application/vnd.mobius.daf":{source:`iana`,extensions:[`daf`]},"application/vnd.mobius.dis":{source:`iana`,extensions:[`dis`]},"application/vnd.mobius.mbk":{source:`iana`,extensions:[`mbk`]},"application/vnd.mobius.mqy":{source:`iana`,extensions:[`mqy`]},"application/vnd.mobius.msl":{source:`iana`,extensions:[`msl`]},"application/vnd.mobius.plc":{source:`iana`,extensions:[`plc`]},"application/vnd.mobius.txf":{source:`iana`,extensions:[`txf`]},"application/vnd.modl":{source:`iana`},"application/vnd.mophun.application":{source:`iana`,extensions:[`mpn`]},"application/vnd.mophun.certificate":{source:`iana`,extensions:[`mpc`]},"application/vnd.motorola.flexsuite":{source:`iana`},"application/vnd.motorola.flexsuite.adsi":{source:`iana`},"application/vnd.motorola.flexsuite.fis":{source:`iana`},"application/vnd.motorola.flexsuite.gotap":{source:`iana`},"application/vnd.motorola.flexsuite.kmr":{source:`iana`},"application/vnd.motorola.flexsuite.ttc":{source:`iana`},"application/vnd.motorola.flexsuite.wem":{source:`iana`},"application/vnd.motorola.iprm":{source:`iana`},"application/vnd.mozilla.xul+xml":{source:`iana`,compressible:!0,extensions:[`xul`]},"application/vnd.ms-3mfdocument":{source:`iana`},"application/vnd.ms-artgalry":{source:`iana`,extensions:[`cil`]},"application/vnd.ms-asf":{source:`iana`},"application/vnd.ms-cab-compressed":{source:`iana`,extensions:[`cab`]},"application/vnd.ms-color.iccprofile":{source:`apache`},"application/vnd.ms-excel":{source:`iana`,compressible:!1,extensions:[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`]},"application/vnd.ms-excel.addin.macroenabled.12":{source:`iana`,extensions:[`xlam`]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:`iana`,extensions:[`xlsb`]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:`iana`,extensions:[`xlsm`]},"application/vnd.ms-excel.template.macroenabled.12":{source:`iana`,extensions:[`xltm`]},"application/vnd.ms-fontobject":{source:`iana`,compressible:!0,extensions:[`eot`]},"application/vnd.ms-htmlhelp":{source:`iana`,extensions:[`chm`]},"application/vnd.ms-ims":{source:`iana`,extensions:[`ims`]},"application/vnd.ms-lrm":{source:`iana`,extensions:[`lrm`]},"application/vnd.ms-office.activex+xml":{source:`iana`,compressible:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:[`msg`]},"application/vnd.ms-package.obfuscated-opentype":{source:`apache`},"application/vnd.ms-pki.seccat":{source:`apache`,extensions:[`cat`]},"application/vnd.ms-pki.stl":{source:`apache`,extensions:[`stl`]},"application/vnd.ms-playready.initiator+xml":{source:`iana`,compressible:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,extensions:[`ppt`,`pps`,`pot`]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:`iana`,extensions:[`ppam`]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:`iana`,extensions:[`pptm`]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:`iana`,extensions:[`sldm`]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:`iana`,extensions:[`ppsm`]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:`iana`,extensions:[`potm`]},"application/vnd.ms-printdevicecapabilities+xml":{source:`iana`,compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"application/vnd.ms-project":{source:`iana`,extensions:[`mpp`,`mpt`]},"application/vnd.ms-tnef":{source:`iana`},"application/vnd.ms-visio.viewer":{extensions:[`vdx`]},"application/vnd.ms-windows.devicepairing":{source:`iana`},"application/vnd.ms-windows.nwprinting.oob":{source:`iana`},"application/vnd.ms-windows.printerpairing":{source:`iana`},"application/vnd.ms-windows.wsd.oob":{source:`iana`},"application/vnd.ms-wmdrm.lic-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.lic-resp":{source:`iana`},"application/vnd.ms-wmdrm.meter-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.meter-resp":{source:`iana`},"application/vnd.ms-word.document.macroenabled.12":{source:`iana`,extensions:[`docm`]},"application/vnd.ms-word.template.macroenabled.12":{source:`iana`,extensions:[`dotm`]},"application/vnd.ms-works":{source:`iana`,extensions:[`wps`,`wks`,`wcm`,`wdb`]},"application/vnd.ms-wpl":{source:`iana`,extensions:[`wpl`]},"application/vnd.ms-xpsdocument":{source:`iana`,compressible:!1,extensions:[`xps`]},"application/vnd.msa-disk-image":{source:`iana`},"application/vnd.mseq":{source:`iana`,extensions:[`mseq`]},"application/vnd.msgpack":{source:`iana`},"application/vnd.msign":{source:`iana`},"application/vnd.multiad.creator":{source:`iana`},"application/vnd.multiad.creator.cif":{source:`iana`},"application/vnd.music-niff":{source:`iana`},"application/vnd.musician":{source:`iana`,extensions:[`mus`]},"application/vnd.muvee.style":{source:`iana`,extensions:[`msty`]},"application/vnd.mynfc":{source:`iana`,extensions:[`taglet`]},"application/vnd.nacamar.ybrid+json":{source:`iana`,compressible:!0},"application/vnd.nato.bindingdataobject+cbor":{source:`iana`},"application/vnd.nato.bindingdataobject+json":{source:`iana`,compressible:!0},"application/vnd.nato.bindingdataobject+xml":{source:`iana`,compressible:!0,extensions:[`bdo`]},"application/vnd.nato.openxmlformats-package.iepd+zip":{source:`iana`,compressible:!1},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"application/vnd.nebumind.line":{source:`iana`},"application/vnd.nervana":{source:`iana`},"application/vnd.netfpx":{source:`iana`},"application/vnd.neurolanguage.nlu":{source:`iana`,extensions:[`nlu`]},"application/vnd.nimn":{source:`iana`},"application/vnd.nintendo.nitro.rom":{source:`iana`},"application/vnd.nintendo.snes.rom":{source:`iana`},"application/vnd.nitf":{source:`iana`,extensions:[`ntf`,`nitf`]},"application/vnd.noblenet-directory":{source:`iana`,extensions:[`nnd`]},"application/vnd.noblenet-sealer":{source:`iana`,extensions:[`nns`]},"application/vnd.noblenet-web":{source:`iana`,extensions:[`nnw`]},"application/vnd.nokia.catalogs":{source:`iana`},"application/vnd.nokia.conml+wbxml":{source:`iana`},"application/vnd.nokia.conml+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,extensions:[`ac`]},"application/vnd.nokia.n-gage.data":{source:`iana`,extensions:[`ngdat`]},"application/vnd.nokia.n-gage.symbian.install":{source:`apache`,extensions:[`n-gage`]},"application/vnd.nokia.ncd":{source:`iana`},"application/vnd.nokia.pcd+wbxml":{source:`iana`},"application/vnd.nokia.pcd+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.radio-preset":{source:`iana`,extensions:[`rpst`]},"application/vnd.nokia.radio-presets":{source:`iana`,extensions:[`rpss`]},"application/vnd.novadigm.edm":{source:`iana`,extensions:[`edm`]},"application/vnd.novadigm.edx":{source:`iana`,extensions:[`edx`]},"application/vnd.novadigm.ext":{source:`iana`,extensions:[`ext`]},"application/vnd.ntt-local.content-share":{source:`iana`},"application/vnd.ntt-local.file-transfer":{source:`iana`},"application/vnd.ntt-local.ogw_remote-access":{source:`iana`},"application/vnd.ntt-local.sip-ta_remote":{source:`iana`},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:`iana`},"application/vnd.oai.workflows":{source:`iana`},"application/vnd.oai.workflows+json":{source:`iana`,compressible:!0},"application/vnd.oai.workflows+yaml":{source:`iana`},"application/vnd.oasis.opendocument.base":{source:`iana`},"application/vnd.oasis.opendocument.chart":{source:`iana`,extensions:[`odc`]},"application/vnd.oasis.opendocument.chart-template":{source:`iana`,extensions:[`otc`]},"application/vnd.oasis.opendocument.database":{source:`apache`,extensions:[`odb`]},"application/vnd.oasis.opendocument.formula":{source:`iana`,extensions:[`odf`]},"application/vnd.oasis.opendocument.formula-template":{source:`iana`,extensions:[`odft`]},"application/vnd.oasis.opendocument.graphics":{source:`iana`,compressible:!1,extensions:[`odg`]},"application/vnd.oasis.opendocument.graphics-template":{source:`iana`,extensions:[`otg`]},"application/vnd.oasis.opendocument.image":{source:`iana`,extensions:[`odi`]},"application/vnd.oasis.opendocument.image-template":{source:`iana`,extensions:[`oti`]},"application/vnd.oasis.opendocument.presentation":{source:`iana`,compressible:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,extensions:[`odt`]},"application/vnd.oasis.opendocument.text-master":{source:`iana`,extensions:[`odm`]},"application/vnd.oasis.opendocument.text-master-template":{source:`iana`},"application/vnd.oasis.opendocument.text-template":{source:`iana`,extensions:[`ott`]},"application/vnd.oasis.opendocument.text-web":{source:`iana`,extensions:[`oth`]},"application/vnd.obn":{source:`iana`},"application/vnd.ocf+cbor":{source:`iana`},"application/vnd.oci.image.manifest.v1+json":{source:`iana`,compressible:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"application/vnd.olpc-sugar":{source:`iana`,extensions:[`xo`]},"application/vnd.oma-scws-config":{source:`iana`},"application/vnd.oma-scws-http-request":{source:`iana`},"application/vnd.oma-scws-http-response":{source:`iana`},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`apache`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sgdu":{source:`iana`},"application/vnd.oma.bcast.simple-symbol-container":{source:`iana`},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:`apache`,compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omaloc-supl-init":{source:`iana`},"application/vnd.onepager":{source:`iana`},"application/vnd.onepagertamp":{source:`iana`},"application/vnd.onepagertamx":{source:`iana`},"application/vnd.onepagertat":{source:`iana`},"application/vnd.onepagertatp":{source:`iana`},"application/vnd.onepagertatx":{source:`iana`},"application/vnd.onvif.metadata":{source:`iana`},"application/vnd.openblox.game+xml":{source:`iana`,compressible:!0,extensions:[`obgx`]},"application/vnd.openblox.game-binary":{source:`iana`},"application/vnd.openeye.oeb":{source:`iana`},"application/vnd.openofficeorg.extension":{source:`apache`,extensions:[`oxt`]},"application/vnd.openstreetmap.data+xml":{source:`iana`,compressible:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openvpi.dspx+json":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`pptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"application/vnd.orange.indata":{source:`iana`},"application/vnd.osa.netdeploy":{source:`iana`},"application/vnd.osgeo.mapguide.package":{source:`iana`,extensions:[`mgp`]},"application/vnd.osgi.bundle":{source:`iana`},"application/vnd.osgi.dp":{source:`iana`,extensions:[`dp`]},"application/vnd.osgi.subsystem":{source:`iana`,extensions:[`esa`]},"application/vnd.otps.ct-kip+xml":{source:`iana`,compressible:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"application/vnd.palm":{source:`iana`,extensions:[`pdb`,`pqa`,`oprc`]},"application/vnd.panoply":{source:`iana`},"application/vnd.paos.xml":{source:`iana`},"application/vnd.patentdive":{source:`iana`},"application/vnd.patientecommsdoc":{source:`iana`},"application/vnd.pawaafile":{source:`iana`,extensions:[`paw`]},"application/vnd.pcos":{source:`iana`},"application/vnd.pg.format":{source:`iana`,extensions:[`str`]},"application/vnd.pg.osasli":{source:`iana`,extensions:[`ei6`]},"application/vnd.piaccess.application-licence":{source:`iana`},"application/vnd.picsel":{source:`iana`,extensions:[`efif`]},"application/vnd.pmi.widget":{source:`iana`,extensions:[`wg`]},"application/vnd.poc.group-advertisement+xml":{source:`iana`,compressible:!0},"application/vnd.pocketlearn":{source:`iana`,extensions:[`plf`]},"application/vnd.powerbuilder6":{source:`iana`,extensions:[`pbd`]},"application/vnd.powerbuilder6-s":{source:`iana`},"application/vnd.powerbuilder7":{source:`iana`},"application/vnd.powerbuilder7-s":{source:`iana`},"application/vnd.powerbuilder75":{source:`iana`},"application/vnd.powerbuilder75-s":{source:`iana`},"application/vnd.preminet":{source:`iana`},"application/vnd.previewsystems.box":{source:`iana`,extensions:[`box`]},"application/vnd.procrate.brushset":{extensions:[`brushset`]},"application/vnd.procreate.brush":{extensions:[`brush`]},"application/vnd.procreate.dream":{extensions:[`drm`]},"application/vnd.proteus.magazine":{source:`iana`,extensions:[`mgz`]},"application/vnd.psfs":{source:`iana`},"application/vnd.pt.mundusmundi":{source:`iana`},"application/vnd.publishare-delta-tree":{source:`iana`,extensions:[`qps`]},"application/vnd.pvi.ptid1":{source:`iana`,extensions:[`ptid`]},"application/vnd.pwg-multiplexed":{source:`iana`},"application/vnd.pwg-xhtml-print+xml":{source:`iana`,compressible:!0,extensions:[`xhtm`]},"application/vnd.qualcomm.brew-app-res":{source:`iana`},"application/vnd.quarantainenet":{source:`iana`},"application/vnd.quark.quarkxpress":{source:`iana`,extensions:[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`]},"application/vnd.quobject-quoxdocument":{source:`iana`},"application/vnd.radisys.moml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"application/vnd.rainstor.data":{source:`iana`},"application/vnd.rapid":{source:`iana`},"application/vnd.rar":{source:`iana`,extensions:[`rar`]},"application/vnd.realvnc.bed":{source:`iana`,extensions:[`bed`]},"application/vnd.recordare.musicxml":{source:`iana`,extensions:[`mxl`]},"application/vnd.recordare.musicxml+xml":{source:`iana`,compressible:!0,extensions:[`musicxml`]},"application/vnd.relpipe":{source:`iana`},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"application/vnd.rig.cryptonote":{source:`iana`,extensions:[`cryptonote`]},"application/vnd.rim.cod":{source:`apache`,extensions:[`cod`]},"application/vnd.rn-realmedia":{source:`apache`,extensions:[`rm`]},"application/vnd.rn-realmedia-vbr":{source:`apache`,extensions:[`rmvb`]},"application/vnd.route66.link66+xml":{source:`iana`,compressible:!0,extensions:[`link66`]},"application/vnd.rs-274x":{source:`iana`},"application/vnd.ruckus.download":{source:`iana`},"application/vnd.s3sms":{source:`iana`},"application/vnd.sailingtracker.track":{source:`iana`,extensions:[`st`]},"application/vnd.sar":{source:`iana`},"application/vnd.sbm.cid":{source:`iana`},"application/vnd.sbm.mid2":{source:`iana`},"application/vnd.scribus":{source:`iana`},"application/vnd.sealed.3df":{source:`iana`},"application/vnd.sealed.csf":{source:`iana`},"application/vnd.sealed.doc":{source:`iana`},"application/vnd.sealed.eml":{source:`iana`},"application/vnd.sealed.mht":{source:`iana`},"application/vnd.sealed.net":{source:`iana`},"application/vnd.sealed.ppt":{source:`iana`},"application/vnd.sealed.tiff":{source:`iana`},"application/vnd.sealed.xls":{source:`iana`},"application/vnd.sealedmedia.softseal.html":{source:`iana`},"application/vnd.sealedmedia.softseal.pdf":{source:`iana`},"application/vnd.seemail":{source:`iana`,extensions:[`see`]},"application/vnd.seis+json":{source:`iana`,compressible:!0},"application/vnd.sema":{source:`iana`,extensions:[`sema`]},"application/vnd.semd":{source:`iana`,extensions:[`semd`]},"application/vnd.semf":{source:`iana`,extensions:[`semf`]},"application/vnd.shade-save-file":{source:`iana`},"application/vnd.shana.informed.formdata":{source:`iana`,extensions:[`ifm`]},"application/vnd.shana.informed.formtemplate":{source:`iana`,extensions:[`itp`]},"application/vnd.shana.informed.interchange":{source:`iana`,extensions:[`iif`]},"application/vnd.shana.informed.package":{source:`iana`,extensions:[`ipk`]},"application/vnd.shootproof+json":{source:`iana`,compressible:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"application/vnd.shp":{source:`iana`},"application/vnd.shx":{source:`iana`},"application/vnd.sigrok.session":{source:`iana`},"application/vnd.simtech-mindmapper":{source:`iana`,extensions:[`twd`,`twds`]},"application/vnd.siren+json":{source:`iana`,compressible:!0},"application/vnd.sketchometry":{source:`iana`},"application/vnd.smaf":{source:`iana`,extensions:[`mmf`]},"application/vnd.smart.notebook":{source:`iana`},"application/vnd.smart.teacher":{source:`iana`,extensions:[`teacher`]},"application/vnd.smintio.portals.archive":{source:`iana`},"application/vnd.snesdev-page-table":{source:`iana`},"application/vnd.software602.filler.form+xml":{source:`iana`,compressible:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,extensions:[`sdkm`,`sdkd`]},"application/vnd.spotfire.dxp":{source:`iana`,extensions:[`dxp`]},"application/vnd.spotfire.sfs":{source:`iana`,extensions:[`sfs`]},"application/vnd.sqlite3":{source:`iana`},"application/vnd.sss-cod":{source:`iana`},"application/vnd.sss-dtf":{source:`iana`},"application/vnd.sss-ntf":{source:`iana`},"application/vnd.stardivision.calc":{source:`apache`,extensions:[`sdc`]},"application/vnd.stardivision.draw":{source:`apache`,extensions:[`sda`]},"application/vnd.stardivision.impress":{source:`apache`,extensions:[`sdd`]},"application/vnd.stardivision.math":{source:`apache`,extensions:[`smf`]},"application/vnd.stardivision.writer":{source:`apache`,extensions:[`sdw`,`vor`]},"application/vnd.stardivision.writer-global":{source:`apache`,extensions:[`sgl`]},"application/vnd.stepmania.package":{source:`iana`,extensions:[`smzip`]},"application/vnd.stepmania.stepchart":{source:`iana`,extensions:[`sm`]},"application/vnd.street-stream":{source:`iana`},"application/vnd.sun.wadl+xml":{source:`iana`,compressible:!0,extensions:[`wadl`]},"application/vnd.sun.xml.calc":{source:`apache`,extensions:[`sxc`]},"application/vnd.sun.xml.calc.template":{source:`apache`,extensions:[`stc`]},"application/vnd.sun.xml.draw":{source:`apache`,extensions:[`sxd`]},"application/vnd.sun.xml.draw.template":{source:`apache`,extensions:[`std`]},"application/vnd.sun.xml.impress":{source:`apache`,extensions:[`sxi`]},"application/vnd.sun.xml.impress.template":{source:`apache`,extensions:[`sti`]},"application/vnd.sun.xml.math":{source:`apache`,extensions:[`sxm`]},"application/vnd.sun.xml.writer":{source:`apache`,extensions:[`sxw`]},"application/vnd.sun.xml.writer.global":{source:`apache`,extensions:[`sxg`]},"application/vnd.sun.xml.writer.template":{source:`apache`,extensions:[`stw`]},"application/vnd.sus-calendar":{source:`iana`,extensions:[`sus`,`susp`]},"application/vnd.svd":{source:`iana`,extensions:[`svd`]},"application/vnd.swiftview-ics":{source:`iana`},"application/vnd.sybyl.mol2":{source:`iana`},"application/vnd.sycle+xml":{source:`iana`,compressible:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xsm`]},"application/vnd.syncml.dm+wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`bdm`]},"application/vnd.syncml.dm+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xdm`]},"application/vnd.syncml.dm.notification":{source:`iana`},"application/vnd.syncml.dmddf+wbxml":{source:`iana`},"application/vnd.syncml.dmddf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"application/vnd.tao.intent-module-archive":{source:`iana`,extensions:[`tao`]},"application/vnd.tcpdump.pcap":{source:`iana`,extensions:[`pcap`,`cap`,`dmp`]},"application/vnd.think-cell.ppttc+json":{source:`iana`,compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"application/vnd.tml":{source:`iana`},"application/vnd.tmobile-livetv":{source:`iana`,extensions:[`tmo`]},"application/vnd.tri.onesource":{source:`iana`},"application/vnd.trid.tpt":{source:`iana`,extensions:[`tpt`]},"application/vnd.triscape.mxs":{source:`iana`,extensions:[`mxs`]},"application/vnd.trueapp":{source:`iana`,extensions:[`tra`]},"application/vnd.truedoc":{source:`iana`},"application/vnd.ubisoft.webplayer":{source:`iana`},"application/vnd.ufdl":{source:`iana`,extensions:[`ufd`,`ufdl`]},"application/vnd.uic.osdm+json":{source:`iana`,compressible:!0},"application/vnd.uiq.theme":{source:`iana`,extensions:[`utz`]},"application/vnd.umajin":{source:`iana`,extensions:[`umj`]},"application/vnd.unity":{source:`iana`,extensions:[`unityweb`]},"application/vnd.uoml+xml":{source:`iana`,compressible:!0,extensions:[`uoml`,`uo`]},"application/vnd.uplanet.alert":{source:`iana`},"application/vnd.uplanet.alert-wbxml":{source:`iana`},"application/vnd.uplanet.bearer-choice":{source:`iana`},"application/vnd.uplanet.bearer-choice-wbxml":{source:`iana`},"application/vnd.uplanet.cacheop":{source:`iana`},"application/vnd.uplanet.cacheop-wbxml":{source:`iana`},"application/vnd.uplanet.channel":{source:`iana`},"application/vnd.uplanet.channel-wbxml":{source:`iana`},"application/vnd.uplanet.list":{source:`iana`},"application/vnd.uplanet.list-wbxml":{source:`iana`},"application/vnd.uplanet.listcmd":{source:`iana`},"application/vnd.uplanet.listcmd-wbxml":{source:`iana`},"application/vnd.uplanet.signal":{source:`iana`},"application/vnd.uri-map":{source:`iana`},"application/vnd.valve.source.material":{source:`iana`},"application/vnd.vcx":{source:`iana`,extensions:[`vcx`]},"application/vnd.vd-study":{source:`iana`},"application/vnd.vectorworks":{source:`iana`},"application/vnd.vel+json":{source:`iana`,compressible:!0},"application/vnd.veraison.tsm-report+cbor":{source:`iana`},"application/vnd.veraison.tsm-report+json":{source:`iana`,compressible:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"application/vnd.veryant.thin":{source:`iana`},"application/vnd.ves.encrypted":{source:`iana`},"application/vnd.vidsoft.vidconference":{source:`iana`},"application/vnd.visio":{source:`iana`,extensions:[`vsd`,`vst`,`vss`,`vsw`,`vsdx`,`vtx`]},"application/vnd.visionary":{source:`iana`,extensions:[`vis`]},"application/vnd.vividence.scriptfile":{source:`iana`},"application/vnd.vocalshaper.vsp4":{source:`iana`},"application/vnd.vsf":{source:`iana`,extensions:[`vsf`]},"application/vnd.wap.sic":{source:`iana`},"application/vnd.wap.slc":{source:`iana`},"application/vnd.wap.wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`wbxml`]},"application/vnd.wap.wmlc":{source:`iana`,extensions:[`wmlc`]},"application/vnd.wap.wmlscriptc":{source:`iana`,extensions:[`wmlsc`]},"application/vnd.wasmflow.wafl":{source:`iana`},"application/vnd.webturbo":{source:`iana`,extensions:[`wtb`]},"application/vnd.wfa.dpp":{source:`iana`},"application/vnd.wfa.p2p":{source:`iana`},"application/vnd.wfa.wsc":{source:`iana`},"application/vnd.windows.devicepairing":{source:`iana`},"application/vnd.wmc":{source:`iana`},"application/vnd.wmf.bootstrap":{source:`iana`},"application/vnd.wolfram.mathematica":{source:`iana`},"application/vnd.wolfram.mathematica.package":{source:`iana`},"application/vnd.wolfram.player":{source:`iana`,extensions:[`nbp`]},"application/vnd.wordlift":{source:`iana`},"application/vnd.wordperfect":{source:`iana`,extensions:[`wpd`]},"application/vnd.wqd":{source:`iana`,extensions:[`wqd`]},"application/vnd.wrq-hp3000-labelled":{source:`iana`},"application/vnd.wt.stf":{source:`iana`,extensions:[`stf`]},"application/vnd.wv.csp+wbxml":{source:`iana`},"application/vnd.wv.csp+xml":{source:`iana`,compressible:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"application/vnd.xara":{source:`iana`,extensions:[`xar`]},"application/vnd.xarin.cpj":{source:`iana`},"application/vnd.xecrets-encrypted":{source:`iana`},"application/vnd.xfdl":{source:`iana`,extensions:[`xfdl`]},"application/vnd.xfdl.webform":{source:`iana`},"application/vnd.xmi+xml":{source:`iana`,compressible:!0},"application/vnd.xmpie.cpkg":{source:`iana`},"application/vnd.xmpie.dpkg":{source:`iana`},"application/vnd.xmpie.plan":{source:`iana`},"application/vnd.xmpie.ppkg":{source:`iana`},"application/vnd.xmpie.xlim":{source:`iana`},"application/vnd.yamaha.hv-dic":{source:`iana`,extensions:[`hvd`]},"application/vnd.yamaha.hv-script":{source:`iana`,extensions:[`hvs`]},"application/vnd.yamaha.hv-voice":{source:`iana`,extensions:[`hvp`]},"application/vnd.yamaha.openscoreformat":{source:`iana`,extensions:[`osf`]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:`iana`,compressible:!0,extensions:[`osfpvg`]},"application/vnd.yamaha.remote-setup":{source:`iana`},"application/vnd.yamaha.smaf-audio":{source:`iana`,extensions:[`saf`]},"application/vnd.yamaha.smaf-phrase":{source:`iana`,extensions:[`spf`]},"application/vnd.yamaha.through-ngn":{source:`iana`},"application/vnd.yamaha.tunnel-udpencap":{source:`iana`},"application/vnd.yaoweme":{source:`iana`},"application/vnd.yellowriver-custom-menu":{source:`iana`,extensions:[`cmp`]},"application/vnd.zul":{source:`iana`,extensions:[`zir`,`zirz`]},"application/vnd.zzazz.deck+xml":{source:`iana`,compressible:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/voucher-jws+json":{source:`iana`,compressible:!0},"application/vp":{source:`iana`},"application/vp+cose":{source:`iana`},"application/vp+jwt":{source:`iana`},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"application/whoispp-query":{source:`iana`},"application/whoispp-response":{source:`iana`},"application/widget":{source:`iana`,extensions:[`wgt`]},"application/winhlp":{source:`apache`,extensions:[`hlp`]},"application/wita":{source:`iana`},"application/wordperfect5.1":{source:`iana`},"application/wsdl+xml":{source:`iana`,compressible:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,extensions:[`7z`]},"application/x-abiword":{source:`apache`,extensions:[`abw`]},"application/x-ace-compressed":{source:`apache`,extensions:[`ace`]},"application/x-amf":{source:`apache`},"application/x-apple-diskimage":{source:`apache`,extensions:[`dmg`]},"application/x-arj":{compressible:!1,extensions:[`arj`]},"application/x-authorware-bin":{source:`apache`,extensions:[`aab`,`x32`,`u32`,`vox`]},"application/x-authorware-map":{source:`apache`,extensions:[`aam`]},"application/x-authorware-seg":{source:`apache`,extensions:[`aas`]},"application/x-bcpio":{source:`apache`,extensions:[`bcpio`]},"application/x-bdoc":{compressible:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blender":{extensions:[`blend`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,extensions:[`bz2`,`boz`]},"application/x-cbr":{source:`apache`,extensions:[`cbr`,`cba`,`cbt`,`cbz`,`cb7`]},"application/x-cdlink":{source:`apache`,extensions:[`vcd`]},"application/x-cfs-compressed":{source:`apache`,extensions:[`cfs`]},"application/x-chat":{source:`apache`,extensions:[`chat`]},"application/x-chess-pgn":{source:`apache`,extensions:[`pgn`]},"application/x-chrome-extension":{extensions:[`crx`]},"application/x-cocoa":{source:`nginx`,extensions:[`cco`]},"application/x-compress":{source:`apache`},"application/x-compressed":{extensions:[`rar`]},"application/x-conference":{source:`apache`,extensions:[`nsc`]},"application/x-cpio":{source:`apache`,extensions:[`cpio`]},"application/x-csh":{source:`apache`,extensions:[`csh`]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:`apache`,extensions:[`deb`,`udeb`]},"application/x-dgc-compressed":{source:`apache`,extensions:[`dgc`]},"application/x-director":{source:`apache`,extensions:[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`]},"application/x-doom":{source:`apache`,extensions:[`wad`]},"application/x-dtbncx+xml":{source:`apache`,compressible:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,extensions:[`dvi`]},"application/x-envoy":{source:`apache`,extensions:[`evy`]},"application/x-eva":{source:`apache`,extensions:[`eva`]},"application/x-font-bdf":{source:`apache`,extensions:[`bdf`]},"application/x-font-dos":{source:`apache`},"application/x-font-framemaker":{source:`apache`},"application/x-font-ghostscript":{source:`apache`,extensions:[`gsf`]},"application/x-font-libgrx":{source:`apache`},"application/x-font-linux-psf":{source:`apache`,extensions:[`psf`]},"application/x-font-pcf":{source:`apache`,extensions:[`pcf`]},"application/x-font-snf":{source:`apache`,extensions:[`snf`]},"application/x-font-speedo":{source:`apache`},"application/x-font-sunos-news":{source:`apache`},"application/x-font-type1":{source:`apache`,extensions:[`pfa`,`pfb`,`pfm`,`afm`]},"application/x-font-vfont":{source:`apache`},"application/x-freearc":{source:`apache`,extensions:[`arc`]},"application/x-futuresplash":{source:`apache`,extensions:[`spl`]},"application/x-gca-compressed":{source:`apache`,extensions:[`gca`]},"application/x-glulx":{source:`apache`,extensions:[`ulx`]},"application/x-gnumeric":{source:`apache`,extensions:[`gnumeric`]},"application/x-gramps-xml":{source:`apache`,extensions:[`gramps`]},"application/x-gtar":{source:`apache`,extensions:[`gtar`]},"application/x-gzip":{source:`apache`},"application/x-hdf":{source:`apache`,extensions:[`hdf`]},"application/x-httpd-php":{compressible:!0,extensions:[`php`]},"application/x-install-instructions":{source:`apache`,extensions:[`install`]},"application/x-ipynb+json":{compressible:!0,extensions:[`ipynb`]},"application/x-iso9660-image":{source:`apache`,extensions:[`iso`]},"application/x-iwork-keynote-sffkey":{extensions:[`key`]},"application/x-iwork-numbers-sffnumbers":{extensions:[`numbers`]},"application/x-iwork-pages-sffpages":{extensions:[`pages`]},"application/x-java-archive-diff":{source:`nginx`,extensions:[`jardiff`]},"application/x-java-jnlp-file":{source:`apache`,compressible:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,extensions:[`latex`]},"application/x-lua-bytecode":{extensions:[`luac`]},"application/x-lzh-compressed":{source:`apache`,extensions:[`lzh`,`lha`]},"application/x-makeself":{source:`nginx`,extensions:[`run`]},"application/x-mie":{source:`apache`,extensions:[`mie`]},"application/x-mobipocket-ebook":{source:`apache`,extensions:[`prc`,`mobi`]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:`apache`,extensions:[`application`]},"application/x-ms-shortcut":{source:`apache`,extensions:[`lnk`]},"application/x-ms-wmd":{source:`apache`,extensions:[`wmd`]},"application/x-ms-wmz":{source:`apache`,extensions:[`wmz`]},"application/x-ms-xbap":{source:`apache`,extensions:[`xbap`]},"application/x-msaccess":{source:`apache`,extensions:[`mdb`]},"application/x-msbinder":{source:`apache`,extensions:[`obd`]},"application/x-mscardfile":{source:`apache`,extensions:[`crd`]},"application/x-msclip":{source:`apache`,extensions:[`clp`]},"application/x-msdos-program":{extensions:[`exe`]},"application/x-msdownload":{source:`apache`,extensions:[`exe`,`dll`,`com`,`bat`,`msi`]},"application/x-msmediaview":{source:`apache`,extensions:[`mvb`,`m13`,`m14`]},"application/x-msmetafile":{source:`apache`,extensions:[`wmf`,`wmz`,`emf`,`emz`]},"application/x-msmoney":{source:`apache`,extensions:[`mny`]},"application/x-mspublisher":{source:`apache`,extensions:[`pub`]},"application/x-msschedule":{source:`apache`,extensions:[`scd`]},"application/x-msterminal":{source:`apache`,extensions:[`trm`]},"application/x-mswrite":{source:`apache`,extensions:[`wri`]},"application/x-netcdf":{source:`apache`,extensions:[`nc`,`cdf`]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:[`pac`]},"application/x-nzb":{source:`apache`,extensions:[`nzb`]},"application/x-perl":{source:`nginx`,extensions:[`pl`,`pm`]},"application/x-pilot":{source:`nginx`,extensions:[`prc`,`pdb`]},"application/x-pkcs12":{source:`apache`,compressible:!1,extensions:[`p12`,`pfx`]},"application/x-pkcs7-certificates":{source:`apache`,extensions:[`p7b`,`spc`]},"application/x-pkcs7-certreqresp":{source:`apache`,extensions:[`p7r`]},"application/x-pki-message":{source:`iana`},"application/x-rar-compressed":{source:`apache`,compressible:!1,extensions:[`rar`]},"application/x-redhat-package-manager":{source:`nginx`,extensions:[`rpm`]},"application/x-research-info-systems":{source:`apache`,extensions:[`ris`]},"application/x-sea":{source:`nginx`,extensions:[`sea`]},"application/x-sh":{source:`apache`,compressible:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,extensions:[`sit`]},"application/x-stuffitx":{source:`apache`,extensions:[`sitx`]},"application/x-subrip":{source:`apache`,extensions:[`srt`]},"application/x-sv4cpio":{source:`apache`,extensions:[`sv4cpio`]},"application/x-sv4crc":{source:`apache`,extensions:[`sv4crc`]},"application/x-t3vm-image":{source:`apache`,extensions:[`t3`]},"application/x-tads":{source:`apache`,extensions:[`gam`]},"application/x-tar":{source:`apache`,compressible:!0,extensions:[`tar`]},"application/x-tcl":{source:`apache`,extensions:[`tcl`,`tk`]},"application/x-tex":{source:`apache`,extensions:[`tex`]},"application/x-tex-tfm":{source:`apache`,extensions:[`tfm`]},"application/x-texinfo":{source:`apache`,extensions:[`texinfo`,`texi`]},"application/x-tgif":{source:`apache`,extensions:[`obj`]},"application/x-ustar":{source:`apache`,extensions:[`ustar`]},"application/x-virtualbox-hdd":{compressible:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"application/x-x509-ca-cert":{source:`iana`,extensions:[`der`,`crt`,`pem`]},"application/x-x509-ca-ra-cert":{source:`iana`},"application/x-x509-next-ca-cert":{source:`iana`},"application/x-xfig":{source:`apache`,extensions:[`fig`]},"application/x-xliff+xml":{source:`apache`,compressible:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,extensions:[`xpi`]},"application/x-xz":{source:`apache`,extensions:[`xz`]},"application/x-zip-compressed":{extensions:[`zip`]},"application/x-zmachine":{source:`apache`,extensions:[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`]},"application/x400-bp":{source:`iana`},"application/xacml+xml":{source:`iana`,compressible:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xfdf":{source:`iana`,extensions:[`xfdf`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yaml":{source:`iana`},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+cbor":{source:`iana`},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yang-sid+json":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,extensions:[`zip`]},"application/zip+dotlottie":{extensions:[`lottie`]},"application/zlib":{source:`iana`},"application/zstd":{source:`iana`},"audio/1d-interleaved-parityfec":{source:`iana`},"audio/32kadpcm":{source:`iana`},"audio/3gpp":{source:`iana`,compressible:!1,extensions:[`3gpp`]},"audio/3gpp2":{source:`iana`},"audio/aac":{source:`iana`,extensions:[`adts`,`aac`]},"audio/ac3":{source:`iana`},"audio/adpcm":{source:`apache`,extensions:[`adp`]},"audio/amr":{source:`iana`,extensions:[`amr`]},"audio/amr-wb":{source:`iana`},"audio/amr-wb+":{source:`iana`},"audio/aptx":{source:`iana`},"audio/asc":{source:`iana`},"audio/atrac-advanced-lossless":{source:`iana`},"audio/atrac-x":{source:`iana`},"audio/atrac3":{source:`iana`},"audio/basic":{source:`iana`,compressible:!1,extensions:[`au`,`snd`]},"audio/bv16":{source:`iana`},"audio/bv32":{source:`iana`},"audio/clearmode":{source:`iana`},"audio/cn":{source:`iana`},"audio/dat12":{source:`iana`},"audio/dls":{source:`iana`},"audio/dsr-es201108":{source:`iana`},"audio/dsr-es202050":{source:`iana`},"audio/dsr-es202211":{source:`iana`},"audio/dsr-es202212":{source:`iana`},"audio/dv":{source:`iana`},"audio/dvi4":{source:`iana`},"audio/eac3":{source:`iana`},"audio/encaprtp":{source:`iana`},"audio/evrc":{source:`iana`},"audio/evrc-qcp":{source:`iana`},"audio/evrc0":{source:`iana`},"audio/evrc1":{source:`iana`},"audio/evrcb":{source:`iana`},"audio/evrcb0":{source:`iana`},"audio/evrcb1":{source:`iana`},"audio/evrcnw":{source:`iana`},"audio/evrcnw0":{source:`iana`},"audio/evrcnw1":{source:`iana`},"audio/evrcwb":{source:`iana`},"audio/evrcwb0":{source:`iana`},"audio/evrcwb1":{source:`iana`},"audio/evs":{source:`iana`},"audio/flac":{source:`iana`},"audio/flexfec":{source:`iana`},"audio/fwdred":{source:`iana`},"audio/g711-0":{source:`iana`},"audio/g719":{source:`iana`},"audio/g722":{source:`iana`},"audio/g7221":{source:`iana`},"audio/g723":{source:`iana`},"audio/g726-16":{source:`iana`},"audio/g726-24":{source:`iana`},"audio/g726-32":{source:`iana`},"audio/g726-40":{source:`iana`},"audio/g728":{source:`iana`},"audio/g729":{source:`iana`},"audio/g7291":{source:`iana`},"audio/g729d":{source:`iana`},"audio/g729e":{source:`iana`},"audio/gsm":{source:`iana`},"audio/gsm-efr":{source:`iana`},"audio/gsm-hr-08":{source:`iana`},"audio/ilbc":{source:`iana`},"audio/ip-mr_v2.5":{source:`iana`},"audio/isac":{source:`apache`},"audio/l16":{source:`iana`},"audio/l20":{source:`iana`},"audio/l24":{source:`iana`,compressible:!1},"audio/l8":{source:`iana`},"audio/lpc":{source:`iana`},"audio/matroska":{source:`iana`},"audio/melp":{source:`iana`},"audio/melp1200":{source:`iana`},"audio/melp2400":{source:`iana`},"audio/melp600":{source:`iana`},"audio/mhas":{source:`iana`},"audio/midi":{source:`apache`,extensions:[`mid`,`midi`,`kar`,`rmi`]},"audio/midi-clip":{source:`iana`},"audio/mobile-xmf":{source:`iana`,extensions:[`mxmf`]},"audio/mp3":{compressible:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`,`m4b`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,extensions:[`oga`,`ogg`,`spx`,`opus`]},"audio/opus":{source:`iana`},"audio/parityfec":{source:`iana`},"audio/pcma":{source:`iana`},"audio/pcma-wb":{source:`iana`},"audio/pcmu":{source:`iana`},"audio/pcmu-wb":{source:`iana`},"audio/prs.sid":{source:`iana`},"audio/qcelp":{source:`iana`},"audio/raptorfec":{source:`iana`},"audio/red":{source:`iana`},"audio/rtp-enc-aescm128":{source:`iana`},"audio/rtp-midi":{source:`iana`},"audio/rtploopback":{source:`iana`},"audio/rtx":{source:`iana`},"audio/s3m":{source:`apache`,extensions:[`s3m`]},"audio/scip":{source:`iana`},"audio/silk":{source:`apache`,extensions:[`sil`]},"audio/smv":{source:`iana`},"audio/smv-qcp":{source:`iana`},"audio/smv0":{source:`iana`},"audio/sofa":{source:`iana`},"audio/sp-midi":{source:`iana`},"audio/speex":{source:`iana`},"audio/t140c":{source:`iana`},"audio/t38":{source:`iana`},"audio/telephone-event":{source:`iana`},"audio/tetra_acelp":{source:`iana`},"audio/tetra_acelp_bb":{source:`iana`},"audio/tone":{source:`iana`},"audio/tsvcis":{source:`iana`},"audio/uemclip":{source:`iana`},"audio/ulpfec":{source:`iana`},"audio/usac":{source:`iana`},"audio/vdvi":{source:`iana`},"audio/vmr-wb":{source:`iana`},"audio/vnd.3gpp.iufp":{source:`iana`},"audio/vnd.4sb":{source:`iana`},"audio/vnd.audiokoz":{source:`iana`},"audio/vnd.celp":{source:`iana`},"audio/vnd.cisco.nse":{source:`iana`},"audio/vnd.cmles.radio-events":{source:`iana`},"audio/vnd.cns.anp1":{source:`iana`},"audio/vnd.cns.inf1":{source:`iana`},"audio/vnd.dece.audio":{source:`iana`,extensions:[`uva`,`uvva`]},"audio/vnd.digital-winds":{source:`iana`,extensions:[`eol`]},"audio/vnd.dlna.adts":{source:`iana`},"audio/vnd.dolby.heaac.1":{source:`iana`},"audio/vnd.dolby.heaac.2":{source:`iana`},"audio/vnd.dolby.mlp":{source:`iana`},"audio/vnd.dolby.mps":{source:`iana`},"audio/vnd.dolby.pl2":{source:`iana`},"audio/vnd.dolby.pl2x":{source:`iana`},"audio/vnd.dolby.pl2z":{source:`iana`},"audio/vnd.dolby.pulse.1":{source:`iana`},"audio/vnd.dra":{source:`iana`,extensions:[`dra`]},"audio/vnd.dts":{source:`iana`,extensions:[`dts`]},"audio/vnd.dts.hd":{source:`iana`,extensions:[`dtshd`]},"audio/vnd.dts.uhd":{source:`iana`},"audio/vnd.dvb.file":{source:`iana`},"audio/vnd.everad.plj":{source:`iana`},"audio/vnd.hns.audio":{source:`iana`},"audio/vnd.lucent.voice":{source:`iana`,extensions:[`lvp`]},"audio/vnd.ms-playready.media.pya":{source:`iana`,extensions:[`pya`]},"audio/vnd.nokia.mobile-xmf":{source:`iana`},"audio/vnd.nortel.vbk":{source:`iana`},"audio/vnd.nuera.ecelp4800":{source:`iana`,extensions:[`ecelp4800`]},"audio/vnd.nuera.ecelp7470":{source:`iana`,extensions:[`ecelp7470`]},"audio/vnd.nuera.ecelp9600":{source:`iana`,extensions:[`ecelp9600`]},"audio/vnd.octel.sbc":{source:`iana`},"audio/vnd.presonus.multitrack":{source:`iana`},"audio/vnd.qcelp":{source:`apache`},"audio/vnd.rhetorex.32kadpcm":{source:`iana`},"audio/vnd.rip":{source:`iana`,extensions:[`rip`]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,extensions:[`caf`]},"audio/x-flac":{source:`apache`,extensions:[`flac`]},"audio/x-m4a":{source:`nginx`,extensions:[`m4a`]},"audio/x-matroska":{source:`apache`,extensions:[`mka`]},"audio/x-mpegurl":{source:`apache`,extensions:[`m3u`]},"audio/x-ms-wax":{source:`apache`,extensions:[`wax`]},"audio/x-ms-wma":{source:`apache`,extensions:[`wma`]},"audio/x-pn-realaudio":{source:`apache`,extensions:[`ram`,`ra`]},"audio/x-pn-realaudio-plugin":{source:`apache`,extensions:[`rmp`]},"audio/x-realaudio":{source:`nginx`,extensions:[`ra`]},"audio/x-tta":{source:`apache`},"audio/x-wav":{source:`apache`,extensions:[`wav`]},"audio/xm":{source:`apache`,extensions:[`xm`]},"chemical/x-cdx":{source:`apache`,extensions:[`cdx`]},"chemical/x-cif":{source:`apache`,extensions:[`cif`]},"chemical/x-cmdf":{source:`apache`,extensions:[`cmdf`]},"chemical/x-cml":{source:`apache`,extensions:[`cml`]},"chemical/x-csml":{source:`apache`,extensions:[`csml`]},"chemical/x-pdb":{source:`apache`},"chemical/x-xyz":{source:`apache`,extensions:[`xyz`]},"font/collection":{source:`iana`,extensions:[`ttc`]},"font/otf":{source:`iana`,compressible:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{source:`iana`,compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,extensions:[`bmp`,`dib`]},"image/cgm":{source:`iana`,extensions:[`cgm`]},"image/dicom-rle":{source:`iana`,extensions:[`drle`]},"image/dpx":{source:`iana`,extensions:[`dpx`]},"image/emf":{source:`iana`,extensions:[`emf`]},"image/fits":{source:`iana`,extensions:[`fits`]},"image/g3fax":{source:`iana`,extensions:[`g3`]},"image/gif":{source:`iana`,compressible:!1,extensions:[`gif`]},"image/heic":{source:`iana`,extensions:[`heic`]},"image/heic-sequence":{source:`iana`,extensions:[`heics`]},"image/heif":{source:`iana`,extensions:[`heif`]},"image/heif-sequence":{source:`iana`,extensions:[`heifs`]},"image/hej2k":{source:`iana`,extensions:[`hej2`]},"image/ief":{source:`iana`,extensions:[`ief`]},"image/j2c":{source:`iana`},"image/jaii":{source:`iana`,extensions:[`jaii`]},"image/jais":{source:`iana`,extensions:[`jais`]},"image/jls":{source:`iana`,extensions:[`jls`]},"image/jp2":{source:`iana`,compressible:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpg`,`jpeg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`,`jpgm`]},"image/jpx":{source:`iana`,compressible:!1,extensions:[`jpx`,`jpf`]},"image/jxl":{source:`iana`,extensions:[`jxl`]},"image/jxr":{source:`iana`,extensions:[`jxr`]},"image/jxra":{source:`iana`,extensions:[`jxra`]},"image/jxrs":{source:`iana`,extensions:[`jxrs`]},"image/jxs":{source:`iana`,extensions:[`jxs`]},"image/jxsc":{source:`iana`,extensions:[`jxsc`]},"image/jxsi":{source:`iana`,extensions:[`jxsi`]},"image/jxss":{source:`iana`,extensions:[`jxss`]},"image/ktx":{source:`iana`,extensions:[`ktx`]},"image/ktx2":{source:`iana`,extensions:[`ktx2`]},"image/naplps":{source:`iana`},"image/pjpeg":{compressible:!1,extensions:[`jfif`]},"image/png":{source:`iana`,compressible:!1,extensions:[`png`]},"image/prs.btif":{source:`iana`,extensions:[`btif`,`btf`]},"image/prs.pti":{source:`iana`,extensions:[`pti`]},"image/pwg-raster":{source:`iana`},"image/sgi":{source:`apache`,extensions:[`sgi`]},"image/svg+xml":{source:`iana`,compressible:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,extensions:[`psd`]},"image/vnd.airzip.accelerator.azv":{source:`iana`,extensions:[`azv`]},"image/vnd.clip":{source:`iana`},"image/vnd.cns.inf2":{source:`iana`},"image/vnd.dece.graphic":{source:`iana`,extensions:[`uvi`,`uvvi`,`uvg`,`uvvg`]},"image/vnd.djvu":{source:`iana`,extensions:[`djvu`,`djv`]},"image/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"image/vnd.dwg":{source:`iana`,extensions:[`dwg`]},"image/vnd.dxf":{source:`iana`,extensions:[`dxf`]},"image/vnd.fastbidsheet":{source:`iana`,extensions:[`fbs`]},"image/vnd.fpx":{source:`iana`,extensions:[`fpx`]},"image/vnd.fst":{source:`iana`,extensions:[`fst`]},"image/vnd.fujixerox.edmics-mmr":{source:`iana`,extensions:[`mmr`]},"image/vnd.fujixerox.edmics-rlc":{source:`iana`,extensions:[`rlc`]},"image/vnd.globalgraphics.pgb":{source:`iana`},"image/vnd.microsoft.icon":{source:`iana`,compressible:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,extensions:[`dds`]},"image/vnd.ms-modi":{source:`iana`,extensions:[`mdi`]},"image/vnd.ms-photo":{source:`apache`,extensions:[`wdp`]},"image/vnd.net-fpx":{source:`iana`,extensions:[`npx`]},"image/vnd.pco.b16":{source:`iana`,extensions:[`b16`]},"image/vnd.radiance":{source:`iana`},"image/vnd.sealed.png":{source:`iana`},"image/vnd.sealedmedia.softseal.gif":{source:`iana`},"image/vnd.sealedmedia.softseal.jpg":{source:`iana`},"image/vnd.svf":{source:`iana`},"image/vnd.tencent.tap":{source:`iana`,extensions:[`tap`]},"image/vnd.valve.source.texture":{source:`iana`,extensions:[`vtf`]},"image/vnd.wap.wbmp":{source:`iana`,extensions:[`wbmp`]},"image/vnd.xiff":{source:`iana`,extensions:[`xif`]},"image/vnd.zbrush.pcx":{source:`iana`,extensions:[`pcx`]},"image/webp":{source:`iana`,extensions:[`webp`]},"image/wmf":{source:`iana`,extensions:[`wmf`]},"image/x-3ds":{source:`apache`,extensions:[`3ds`]},"image/x-adobe-dng":{extensions:[`dng`]},"image/x-cmu-raster":{source:`apache`,extensions:[`ras`]},"image/x-cmx":{source:`apache`,extensions:[`cmx`]},"image/x-emf":{source:`iana`},"image/x-freehand":{source:`apache`,extensions:[`fh`,`fhc`,`fh4`,`fh5`,`fh7`]},"image/x-icon":{source:`apache`,compressible:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,extensions:[`bmp`]},"image/x-pcx":{source:`apache`,extensions:[`pcx`]},"image/x-pict":{source:`apache`,extensions:[`pic`,`pct`]},"image/x-portable-anymap":{source:`apache`,extensions:[`pnm`]},"image/x-portable-bitmap":{source:`apache`,extensions:[`pbm`]},"image/x-portable-graymap":{source:`apache`,extensions:[`pgm`]},"image/x-portable-pixmap":{source:`apache`,extensions:[`ppm`]},"image/x-rgb":{source:`apache`,extensions:[`rgb`]},"image/x-tga":{source:`apache`,extensions:[`tga`]},"image/x-wmf":{source:`iana`},"image/x-xbitmap":{source:`apache`,extensions:[`xbm`]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:`apache`,extensions:[`xpm`]},"image/x-xwindowdump":{source:`apache`,extensions:[`xwd`]},"message/bhttp":{source:`iana`},"message/cpim":{source:`iana`},"message/delivery-status":{source:`iana`},"message/disposition-notification":{source:`iana`,extensions:[`disposition-notification`]},"message/external-body":{source:`iana`},"message/feedback-report":{source:`iana`},"message/global":{source:`iana`,extensions:[`u8msg`]},"message/global-delivery-status":{source:`iana`,extensions:[`u8dsn`]},"message/global-disposition-notification":{source:`iana`,extensions:[`u8mdn`]},"message/global-headers":{source:`iana`,extensions:[`u8hdr`]},"message/http":{source:`iana`,compressible:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/mls":{source:`iana`},"message/news":{source:`apache`},"message/ohttp-req":{source:`iana`},"message/ohttp-res":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,extensions:[`eml`,`mime`,`mht`,`mhtml`]},"message/s-http":{source:`apache`},"message/sip":{source:`iana`},"message/sipfrag":{source:`iana`},"message/tracking-status":{source:`iana`},"message/vnd.si.simp":{source:`apache`},"message/vnd.wfa.wsc":{source:`iana`,extensions:[`wsc`]},"model/3mf":{source:`iana`,extensions:[`3mf`]},"model/e57":{source:`iana`},"model/gltf+json":{source:`iana`,compressible:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/jt":{source:`iana`,extensions:[`jt`]},"model/mesh":{source:`iana`,compressible:!1,extensions:[`msh`,`mesh`,`silo`]},"model/mtl":{source:`iana`,extensions:[`mtl`]},"model/obj":{source:`iana`,extensions:[`obj`]},"model/prc":{source:`iana`,extensions:[`prc`]},"model/step":{source:`iana`,extensions:[`step`,`stp`,`stpnc`,`p21`,`210`]},"model/step+xml":{source:`iana`,compressible:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/u3d":{source:`iana`,extensions:[`u3d`]},"model/vnd.bary":{source:`iana`,extensions:[`bary`]},"model/vnd.cld":{source:`iana`,extensions:[`cld`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,extensions:[`dae`]},"model/vnd.dwf":{source:`iana`,extensions:[`dwf`]},"model/vnd.flatland.3dml":{source:`iana`},"model/vnd.gdl":{source:`iana`,extensions:[`gdl`]},"model/vnd.gs-gdl":{source:`apache`},"model/vnd.gs.gdl":{source:`iana`},"model/vnd.gtw":{source:`iana`,extensions:[`gtw`]},"model/vnd.moml+xml":{source:`iana`,compressible:!0},"model/vnd.mts":{source:`iana`,extensions:[`mts`]},"model/vnd.opengex":{source:`iana`,extensions:[`ogex`]},"model/vnd.parasolid.transmit.binary":{source:`iana`,extensions:[`x_b`]},"model/vnd.parasolid.transmit.text":{source:`iana`,extensions:[`x_t`]},"model/vnd.pytha.pyox":{source:`iana`,extensions:[`pyo`,`pyox`]},"model/vnd.rosette.annotated-data-model":{source:`iana`},"model/vnd.sap.vds":{source:`iana`,extensions:[`vds`]},"model/vnd.usda":{source:`iana`,extensions:[`usda`]},"model/vnd.usdz+zip":{source:`iana`,compressible:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"multipart/vnd.bint.med-plus":{source:`iana`},"multipart/voice-message":{source:`iana`},"multipart/x-mixed-replace":{source:`iana`},"text/1d-interleaved-parityfec":{source:`iana`},"text/cache-manifest":{source:`iana`,compressible:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:[`coffee`,`litcoffee`]},"text/cql":{source:`iana`},"text/cql-expression":{source:`iana`},"text/cql-identifier":{source:`iana`},"text/css":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,extensions:[`csv`]},"text/csv-schema":{source:`iana`},"text/directory":{source:`iana`},"text/dns":{source:`iana`},"text/ecmascript":{source:`apache`},"text/encaprtp":{source:`iana`},"text/enriched":{source:`iana`},"text/fhirpath":{source:`iana`},"text/flexfec":{source:`iana`},"text/fwdred":{source:`iana`},"text/gff3":{source:`iana`},"text/grammar-ref-list":{source:`iana`},"text/hl7v2":{source:`iana`},"text/html":{source:`iana`,compressible:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`md`,`markdown`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,extensions:[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`]},"text/provenance-notation":{source:`iana`,charset:`UTF-8`},"text/prs.fallenstein.rst":{source:`iana`},"text/prs.lines.tag":{source:`iana`,extensions:[`dsc`]},"text/prs.prop.logic":{source:`iana`},"text/prs.texi":{source:`iana`},"text/raptorfec":{source:`iana`},"text/red":{source:`iana`},"text/rfc822-headers":{source:`iana`},"text/richtext":{source:`iana`,compressible:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"text/rtp-enc-aescm128":{source:`iana`},"text/rtploopback":{source:`iana`},"text/rtx":{source:`iana`},"text/sgml":{source:`iana`,extensions:[`sgml`,`sgm`]},"text/shaclc":{source:`iana`},"text/shex":{source:`iana`,extensions:[`shex`]},"text/slim":{extensions:[`slim`,`slm`]},"text/spdx":{source:`iana`,extensions:[`spdx`]},"text/strings":{source:`iana`},"text/stylus":{extensions:[`stylus`,`styl`]},"text/t140":{source:`iana`},"text/tab-separated-values":{source:`iana`,compressible:!0,extensions:[`tsv`]},"text/troff":{source:`iana`,extensions:[`t`,`tr`,`roff`,`man`,`me`,`ms`]},"text/turtle":{source:`iana`,charset:`UTF-8`,extensions:[`ttl`]},"text/ulpfec":{source:`iana`},"text/uri-list":{source:`iana`,compressible:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,extensions:[`vcard`]},"text/vnd.a":{source:`iana`},"text/vnd.abc":{source:`iana`},"text/vnd.ascii-art":{source:`iana`},"text/vnd.curl":{source:`iana`,extensions:[`curl`]},"text/vnd.curl.dcurl":{source:`apache`,extensions:[`dcurl`]},"text/vnd.curl.mcurl":{source:`apache`,extensions:[`mcurl`]},"text/vnd.curl.scurl":{source:`apache`,extensions:[`scurl`]},"text/vnd.debian.copyright":{source:`iana`,charset:`UTF-8`},"text/vnd.dmclientscript":{source:`iana`},"text/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"text/vnd.esmertec.theme-descriptor":{source:`iana`,charset:`UTF-8`},"text/vnd.exchangeable":{source:`iana`},"text/vnd.familysearch.gedcom":{source:`iana`,extensions:[`ged`]},"text/vnd.ficlab.flt":{source:`iana`},"text/vnd.fly":{source:`iana`,extensions:[`fly`]},"text/vnd.fmi.flexstor":{source:`iana`,extensions:[`flx`]},"text/vnd.gml":{source:`iana`},"text/vnd.graphviz":{source:`iana`,extensions:[`gv`]},"text/vnd.hans":{source:`iana`},"text/vnd.hgl":{source:`iana`},"text/vnd.in3d.3dml":{source:`iana`,extensions:[`3dml`]},"text/vnd.in3d.spot":{source:`iana`,extensions:[`spot`]},"text/vnd.iptc.newsml":{source:`iana`},"text/vnd.iptc.nitf":{source:`iana`},"text/vnd.latex-z":{source:`iana`},"text/vnd.motorola.reflex":{source:`iana`},"text/vnd.ms-mediapackage":{source:`iana`},"text/vnd.net2phone.commcenter.command":{source:`iana`},"text/vnd.radisys.msml-basic-layout":{source:`iana`},"text/vnd.senx.warpscript":{source:`iana`},"text/vnd.si.uricatalogue":{source:`apache`},"text/vnd.sosi":{source:`iana`},"text/vnd.sun.j2me.app-descriptor":{source:`iana`,charset:`UTF-8`,extensions:[`jad`]},"text/vnd.trolltech.linguist":{source:`iana`,charset:`UTF-8`},"text/vnd.vcf":{source:`iana`},"text/vnd.wap.si":{source:`iana`},"text/vnd.wap.sl":{source:`iana`},"text/vnd.wap.wml":{source:`iana`,extensions:[`wml`]},"text/vnd.wap.wmlscript":{source:`iana`,extensions:[`wmls`]},"text/vnd.zoo.kcl":{source:`iana`},"text/vtt":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`vtt`]},"text/wgsl":{source:`iana`,extensions:[`wgsl`]},"text/x-asm":{source:`apache`,extensions:[`s`,`asm`]},"text/x-c":{source:`apache`,extensions:[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`]},"text/x-component":{source:`nginx`,extensions:[`htc`]},"text/x-fortran":{source:`apache`,extensions:[`f`,`for`,`f77`,`f90`]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,extensions:[`pde`]},"text/x-sass":{extensions:[`sass`]},"text/x-scss":{extensions:[`scss`]},"text/x-setext":{source:`apache`,extensions:[`etx`]},"text/x-sfv":{source:`apache`,extensions:[`sfv`]},"text/x-suse-ymp":{compressible:!0,extensions:[`ymp`]},"text/x-uuencode":{source:`apache`,extensions:[`uu`]},"text/x-vcalendar":{source:`apache`,extensions:[`vcs`]},"text/x-vcard":{source:`apache`,extensions:[`vcf`]},"text/xml":{source:`iana`,compressible:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,extensions:[`yaml`,`yml`]},"video/1d-interleaved-parityfec":{source:`iana`},"video/3gpp":{source:`iana`,extensions:[`3gp`,`3gpp`]},"video/3gpp-tt":{source:`iana`},"video/3gpp2":{source:`iana`,extensions:[`3g2`]},"video/av1":{source:`iana`},"video/bmpeg":{source:`iana`},"video/bt656":{source:`iana`},"video/celb":{source:`iana`},"video/dv":{source:`iana`},"video/encaprtp":{source:`iana`},"video/evc":{source:`iana`},"video/ffv1":{source:`iana`},"video/flexfec":{source:`iana`},"video/h261":{source:`iana`,extensions:[`h261`]},"video/h263":{source:`iana`,extensions:[`h263`]},"video/h263-1998":{source:`iana`},"video/h263-2000":{source:`iana`},"video/h264":{source:`iana`,extensions:[`h264`]},"video/h264-rcdo":{source:`iana`},"video/h264-svc":{source:`iana`},"video/h265":{source:`iana`},"video/h266":{source:`iana`},"video/iso.segment":{source:`iana`,extensions:[`m4s`]},"video/jpeg":{source:`iana`,extensions:[`jpgv`]},"video/jpeg2000":{source:`iana`},"video/jpm":{source:`apache`,extensions:[`jpm`,`jpgm`]},"video/jxsv":{source:`iana`},"video/lottie+json":{source:`iana`,compressible:!0},"video/matroska":{source:`iana`},"video/matroska-3d":{source:`iana`},"video/mj2":{source:`iana`,extensions:[`mj2`,`mjp2`]},"video/mp1s":{source:`iana`},"video/mp2p":{source:`iana`},"video/mp2t":{source:`iana`,extensions:[`ts`,`m2t`,`m2ts`,`mts`]},"video/mp4":{source:`iana`,compressible:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,extensions:[`qt`,`mov`]},"video/raptorfec":{source:`iana`},"video/raw":{source:`iana`},"video/rtp-enc-aescm128":{source:`iana`},"video/rtploopback":{source:`iana`},"video/rtx":{source:`iana`},"video/scip":{source:`iana`},"video/smpte291":{source:`iana`},"video/smpte292m":{source:`iana`},"video/ulpfec":{source:`iana`},"video/vc1":{source:`iana`},"video/vc2":{source:`iana`},"video/vnd.cctv":{source:`iana`},"video/vnd.dece.hd":{source:`iana`,extensions:[`uvh`,`uvvh`]},"video/vnd.dece.mobile":{source:`iana`,extensions:[`uvm`,`uvvm`]},"video/vnd.dece.mp4":{source:`iana`},"video/vnd.dece.pd":{source:`iana`,extensions:[`uvp`,`uvvp`]},"video/vnd.dece.sd":{source:`iana`,extensions:[`uvs`,`uvvs`]},"video/vnd.dece.video":{source:`iana`,extensions:[`uvv`,`uvvv`]},"video/vnd.directv.mpeg":{source:`iana`},"video/vnd.directv.mpeg-tts":{source:`iana`},"video/vnd.dlna.mpeg-tts":{source:`iana`},"video/vnd.dvb.file":{source:`iana`,extensions:[`dvb`]},"video/vnd.fvt":{source:`iana`,extensions:[`fvt`]},"video/vnd.hns.video":{source:`iana`},"video/vnd.iptvforum.1dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.1dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.2dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.2dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.ttsavc":{source:`iana`},"video/vnd.iptvforum.ttsmpeg2":{source:`iana`},"video/vnd.motorola.video":{source:`iana`},"video/vnd.motorola.videop":{source:`iana`},"video/vnd.mpegurl":{source:`iana`,extensions:[`mxu`,`m4u`]},"video/vnd.ms-playready.media.pyv":{source:`iana`,extensions:[`pyv`]},"video/vnd.nokia.interleaved-multimedia":{source:`iana`},"video/vnd.nokia.mp4vr":{source:`iana`},"video/vnd.nokia.videovoip":{source:`iana`},"video/vnd.objectvideo":{source:`iana`},"video/vnd.planar":{source:`iana`},"video/vnd.radgamettools.bink":{source:`iana`},"video/vnd.radgamettools.smacker":{source:`apache`},"video/vnd.sealed.mpeg1":{source:`iana`},"video/vnd.sealed.mpeg4":{source:`iana`},"video/vnd.sealed.swf":{source:`iana`},"video/vnd.sealedmedia.softseal.mov":{source:`iana`},"video/vnd.uvvu.mp4":{source:`iana`,extensions:[`uvu`,`uvvu`]},"video/vnd.vivo":{source:`iana`,extensions:[`viv`]},"video/vnd.youtube.yt":{source:`iana`},"video/vp8":{source:`iana`},"video/vp9":{source:`iana`},"video/webm":{source:`apache`,compressible:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,extensions:[`mkv`,`mk3d`,`mks`]},"video/x-mng":{source:`apache`,extensions:[`mng`]},"video/x-ms-asf":{source:`apache`,extensions:[`asf`,`asx`]},"video/x-ms-vob":{source:`apache`,extensions:[`vob`]},"video/x-ms-wm":{source:`apache`,extensions:[`wm`]},"video/x-ms-wmv":{source:`apache`,compressible:!1,extensions:[`wmv`]},"video/x-ms-wmx":{source:`apache`,extensions:[`wmx`]},"video/x-ms-wvx":{source:`apache`,extensions:[`wvx`]},"video/x-msvideo":{source:`apache`,extensions:[`avi`]},"video/x-sgi-movie":{source:`apache`,extensions:[`movie`]},"video/x-smv":{source:`apache`,extensions:[`smv`]},"x-conference/x-cooltalk":{source:`apache`,extensions:[`ice`]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),HS=u(((e,t)=>{t.exports=(VS(),m(zS).default)})),US=u(((e,t)=>{function n(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function r(e,t){for(var n=``,r=0,i=-1,a=0,o,s=0;s<=e.length;++s){if(s<e.length)o=e.charCodeAt(s);else if(o===47)break;else o=47;if(o===47){if(i!==s-1&&a!==1)if(i!==s-1&&a===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf(`/`);if(c!==n.length-1){c===-1?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}}else if(n.length===2||n.length===1){n=``,r=0,i=s,a=0;continue}}t&&(n.length>0?n+=`/..`:n=`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a!==-1?++a:a=-1}return n}function i(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+e+r:r}var a={resolve:function(){for(var e=``,t=!1,i,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(i===void 0&&(i=process.cwd()),o=i),n(o),o.length!==0&&(e=o+`/`+e,t=o.charCodeAt(0)===47)}return e=r(e,!t),t?e.length>0?`/`+e:`/`:e.length>0?e:`.`},normalize:function(e){if(n(e),e.length===0)return`.`;var t=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=r(e,!t),e.length===0&&!t&&(e=`.`),e.length>0&&i&&(e+=`/`),t?`/`+e:e},isAbsolute:function(e){return n(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,t=0;t<arguments.length;++t){var r=arguments[t];n(r),r.length>0&&(e===void 0?e=r:e+=`/`+r)}return e===void 0?`.`:a.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t||(e=a.resolve(e),t=a.resolve(t),e===t))return``;for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,o=i-r,s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var c=t.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(t.charCodeAt(s+d)===47)return t.slice(s+d+1);if(d===0)return t.slice(s+d)}else o>l&&(e.charCodeAt(r+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(r+d);if(f!==t.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=r+u+1;d<=i;++d)(d===i||e.charCodeAt(d)===47)&&(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+t.slice(s+u):(s+=u,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(n(e),e.length===0)return`.`;for(var t=e.charCodeAt(0),r=t===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);n(e);var r=0,i=-1,a=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return``;var s=t.length-1,c=-1;for(o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(l===47){if(!a){r=o+1;break}}else c===-1&&(a=!1,c=o+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(i=o):(s=-1,i=c))}return r===i?i=c:i===-1&&(i=e.length),e.slice(r,i)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!a){r=o+1;break}}else i===-1&&(a=!1,i=o+1);return i===-1?``:e.slice(r,i)},extname:function(e){n(e);for(var t=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c===47){if(!a){r=s+1;break}continue}i===-1&&(a=!1,i=s+1),c===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||i===-1||o===0||o===1&&t===i-1&&t===r+1?``:e.slice(t,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return i(`/`,e)},parse:function(e){n(e);var t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;var r=e.charCodeAt(0),i=r===47,a;i?(t.root=`/`,a=1):a=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=a;--u){if(r=e.charCodeAt(u),r===47){if(!l){s=u+1;break}continue}c===-1&&(l=!1,c=u+1),r===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1)}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(t.base=t.name=s===0&&i?e.slice(1,c):e.slice(s,c)):(s===0&&i?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(s,o),t.base=e.slice(s,c)),t.ext=e.slice(o,c)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};a.posix=a,t.exports=a})),WS=u(((e,t)=>{var n={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},r={nginx:10,apache:20,iana:40,default:30},i={application:1,font:2,audio:2,video:3,default:0};t.exports=function(e,t=`default`){if(e===`application/octet-stream`)return 0;let[a,o]=e.split(`/`),s=n[o.replace(/(\.|x-).*/,`$1`)]||n.default,c=r[t]||r.default,l=i[a]||i.default,u=1-e.length/100;return s+c+l+u}})),GS=u((e=>{var t=HS(),n=US().extname,r=WS(),i=/^\s*([^;\s]*)(?:;|\s|$)/,a=/^text\//i;e.charset=o,e.charsets={lookup:o},e.contentType=s,e.extension=c,e.extensions=Object.create(null),e.lookup=l,e.types=Object.create(null),e._extensionConflicts=[],u(e.extensions,e.types);function o(e){if(!e||typeof e!=`string`)return!1;var n=i.exec(e),r=n&&t[n[1].toLowerCase()];return r&&r.charset?r.charset:n&&a.test(n[1])?`UTF-8`:!1}function s(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function c(t){if(!t||typeof t!=`string`)return!1;var n=i.exec(t),r=n&&e.extensions[n[1].toLowerCase()];return!r||!r.length?!1:r[0]}function l(t){if(!t||typeof t!=`string`)return!1;var r=n(`x.`+t).toLowerCase().slice(1);return r&&e.types[r]||!1}function u(n,r){Object.keys(t).forEach(function(i){var a=t[i].extensions;if(!(!a||!a.length)){n[i]=a;for(var o=0;o<a.length;o++){var s=a[o];r[s]=d(s,r[s],i);let t=f(s,r[s],i);t!==r[s]&&e._extensionConflicts.push([s,t,r[s]])}}})}function d(e,n,i){return(n?r(n,t[n].source):0)>(i?r(i,t[i].source):0)?n:i}function f(n,r,i){var a=[`nginx`,`apache`,void 0,`iana`],o=r?a.indexOf(t[r].source):0,s=i?a.indexOf(t[i].source):0;return e.types[c]!==`application/octet-stream`&&(o>s||o===s&&e.types[c]?.slice(0,12)===`application/`)||o>s?r:i}})),KS=p(MS()),qS=p(GS());function JS(e,t,n){let r=function(e){return e.split(`
1747
+ `).map(e=>e.trim()).filter(e=>e&&e[0]!==`#`)},i=function(e){e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect=`copy`},a=function(e){e.preventDefault(),e.stopPropagation(),W(`dragenter event dropEffect: `+e.dataTransfer.dropEffect),this.localStyle&&(this.savedStyle||=U.dragEvent),e.dataTransfer.dropEffect=`link`,W(`dragenter event dropEffect 2: `+e.dataTransfer.dropEffect)},o=function(e){e.stopPropagation(),W(`dragleave event dropEffect: `+e.dataTransfer.dropEffect),this.localStyle=this.savedStyle?this.savedStyle:U.dropEvent},s=function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),W(`Drop event. dropEffect: `+e.dataTransfer.dropEffect),W(`Drop event. types: `+(e.dataTransfer.types?e.dataTransfer.types.join(`, `):`NOPE`));let i=null,a;if(e.dataTransfer.types){for(let t=0;t<e.dataTransfer.types.length;t++){let o=e.dataTransfer.types[t];if(o===`text/uri-list`)i=r(e.dataTransfer.getData(o)),W(`Dropped text/uri-list: `+i);else if(o===`text/plain`)a=e.dataTransfer.getData(o);else if(o===`Files`&&n){let t=e.dataTransfer.files;for(let e=0;t[e];e++){let n=t[e];W(`Filename: `+n.name+`, type: `+(n.type||`n/a`)+` size: `+n.size+` bytes, last modified: `+(n.lastModifiedDate?n.lastModifiedDate.toLocaleDateString():`n/a`))}n(t)}}let t=a?a.trim():``;i===null&&t&&t.slice(0,4)===`http`&&(i=[t],W(`Warning: Poor man's drop: using text for URI`))}else i=r(e.dataTransfer.getData(`Text`)),W(`WARNING non-standard drop event: `+i[0]);return W(`Dropped URI list (2): `+i),i&&t(i),this.localStyle=U.restoreStyle,!1};(function(e){e||W(`@@@ addTargetListeners: ele `+e),e.addEventListener(`dragover`,i),e.addEventListener(`dragenter`,a),e.addEventListener(`dragleave`,o),e.addEventListener(`drop`,s)})(e,t)}function YS(e,t){e.setAttribute(`draggable`,`true`),e.addEventListener(`dragstart`,function(n){e.style.fontWeight=`bold`,n.dataTransfer.setData(`text/uri-list`,t.uri),n.dataTransfer.setData(`text/plain`,t.uri),n.dataTransfer.setData(`text/html`,e.outerHTML),W(`Dragstart: `+e+` -> `+t+`de: `+n.dataTransfer.dropEffect)},!1),e.addEventListener(`drag`,function(e){e.preventDefault(),e.stopPropagation()},!1),e.addEventListener(`dragend`,function(n){e.style.fontWeight=`normal`,W(`Dragend dropeffect: `+n.dataTransfer.dropEffect),W(`Dragend: `+e+` -> `+t)},!1)}function XS(e,t,n,r,i){for(let a=0;t[a];a++){let o=t[a];W(` dropped: Filename: `+o.name+`, type: `+(o.type||`n/a`)+` size: `+o.size+` bytes, last modified: `+(o.lastModifiedDate?o.lastModifiedDate.toLocaleDateString():`n/a`));let s=new FileReader;s.onload=function(t){return function(a){let o=a.target.result,s=``;W(` File read byteLength : `+o.byteLength);let c=t.type;if(!t.type||t.type===``){if(c=qS.lookup(t.name),!c){let e=`Filename needs to have an extension which gives a type we know: `+t.name;throw W(e),alert(e),Error(e)}}else{let e=qS.extension(t.type);e&&e!==`false`&&!t.name.endsWith(`.`+e)&&t.type!==qS.lookup(t.name)&&(s=`_.`+e)}let l=t.type.startsWith(`image/`)&&r||n,u=l+(l.endsWith(`/`)?``:`/`)+encodeURIComponent(t.name)+s;e.webOperation(`PUT`,u,{data:o,contentType:c}).then(e=>{W(` Upload: put OK: `+u),i(t,u)},e=>{let t=` Upload: FAIL `+u+`, Error: `+e;throw W(t),alert(t),Error(t)})}}(o),s.readAsArrayBuffer(o)}}function q(e,t,n,r){let i=e.createElement(`div`),a=r||t instanceof Error?t:null;return a?(console.error(`errorMessageBlock: ${a} at: ${a.stack||`??`}`,a),i.textContent=a.message):i.textContent=t,i.appendChild(FC(e,()=>{i.parentNode&&i.parentNode.removeChild(i)})).style=U.errorCancelButton,i.setAttribute(`style`,U.errorMessageBlockStyle),i.style.backgroundColor=n||H.defaultErrorBackgroundColor,i}var J=typeof module<`u`&&module.scriptURI?{iconBase:module.scriptURI.slice(0,module.scriptURI.lastIndexOf(`/`))+`/icons/`,originalIconBase:module.scriptURI.slice(0,module.scriptURI.lastIndexOf(`/`))+`/originalIcons/`}:typeof $SolidTestEnvironment<`u`&&$SolidTestEnvironment.iconBase?{iconBase:$SolidTestEnvironment.iconBase,originalIconBase:$SolidTestEnvironment.originalIconBase}:{iconBase:`https://solidos.github.io/solid-ui/src/icons/`,originalIconBase:`https://solidos.github.io/solid-ui/src/originalIcons/`};W(` icons.iconBase is set to : `+J.iconBase);var ZS=J.iconBase,QS=J.originalIconBase,Y=n.solidLogicSingleton.store,$S=class{constructor(e,t,n,r){this.options=r||{},this.element=e,this.typeIndex=t,this.groupPickedCb=n,this.selectedgroup=this.options.selectedgroup,this.onSelectGroup=this.onSelectGroup.bind(this)}render(){let e=document.createElement(`div`);if(e.style.maxWidth=`350px`,e.style.minHeight=`200px`,e.style.outline=`1px solid black`,e.style.display=`flex`,this.selectedgroup){e.style.flexDirection=`column`;let t=document.createElement(`div`);new tC(t,this.selectedgroup).render();let n=document.createElement(`button`);n.textContent=(0,KS.default)(`Change group`),n.addEventListener(`click`,e=>{this.selectedgroup=null,this.render()}),e.appendChild(t),e.appendChild(n)}else this.findAddressBook(this.typeIndex).then(({book:t})=>{let n=document.createElement(`button`);n.textContent=(0,KS.default)(`Pick an existing group`),n.style.margin=`auto`,n.addEventListener(`click`,n=>{new eC(e,t,this.onSelectGroup).render()});let r=document.createElement(`button`);r.textContent=(0,KS.default)(`Create a new group`),r.style.margin=`auto`,r.addEventListener(`click`,e=>{this.createNewGroup(t,this.options.defaultNewGroupName).then(({group:e})=>{new nC(this.element,t,e,this.onSelectGroup).render()}).catch(e=>{this.element.appendChild(q(document,(0,KS.default)(`Error creating a new group. (${e})`)))})}),e.appendChild(n),e.appendChild(r),this.element.innerHTML=``,this.element.appendChild(e)}).catch(e=>{this.element.appendChild(q(document,(0,KS.default)(`Could find your groups. (${e})`)))});return this.element.innerHTML=``,this.element.appendChild(e),this}findAddressBook(e){return new Promise((t,n)=>{Y.fetcher.nowOrWhenFetched(e,(r,i)=>{if(!r)return n(i);let a=Y.any(null,R.solid(`forClass`),R.vcard(`AddressBook`));if(!a)return n(Error(`no address book registered in the solid type index `+e));let o=Y.any(a,R.solid(`instance`));if(!o)return n(Error(`incomplete address book registration`));Y.fetcher.load(o).then(function(e){return t({book:o})}).catch(function(e){return n(Error(`Could not load address book `+e))})})})}createNewGroup(e,n){let{groupIndex:r,groupContainer:i}=oC(e),a=t.sym(`${i.uri}${LS().slice(0,8)}.ttl#this`),o=n||`Untitled Group`,s=[a.doc(),r].map(n=>{let i=t.st(a,R.rdf(`type`),R.vcard(`Group`),n),s=t.st(a,R.vcard(`fn`),o,a.doc(),n),c=t.st(e,R.vcard(`includesGroup`),a,n),l=n.equals(r)?[i,s,c]:[i,s];return aC(n.uri,{toIns:l}).then(()=>{l.forEach(e=>{Y.add(e)})})});return Promise.all(s).then(()=>({group:a})).catch(e=>{throw W(`Could not create new group. PATCH failed `+e),Error(`Couldn't create new group. PATCH failed for (${e.xhr?e.xhr.responseURL:``} )`)})}onSelectGroup(e){this.selectedgroup=e,this.groupPickedCb(e),this.render()}},eC=class{constructor(e,t,n){this.element=e,this.book=t,this.onSelectGroup=n}render(){return this.loadGroups().then(e=>{let t=document.createElement(`div`);t.style.display=`flex`,t.style.flexDirection=`column`,e.forEach(e=>{let n=document.createElement(`button`);n.addEventListener(`click`,this.handleClickGroup(e)),new tC(n,e).render(),t.appendChild(n)}),this.element.innerHTML=``,this.element.appendChild(t)}).catch(e=>{this.element.appendChild(q(document,(0,KS.default)(`There was an error loading your groups. (${e})`)))}),this}loadGroups(){return new Promise((e,t)=>{let{groupIndex:n}=oC(this.book);Y.fetcher.nowOrWhenFetched(n,(n,r)=>n?e(Y.each(this.book,R.vcard(`includesGroup`))):t(r))})}handleClickGroup(e){return t=>{this.onSelectGroup(e)}}},tC=class{constructor(e,t){this.element=e,this.group=t}render(){let e=document.createElement(`div`);return e.textContent=(0,KS.default)(iC(this.group,R.vcard(`fn`),`[${this.group.value}]`)),this.element.innerHTML=``,this.element.appendChild(e),this}},nC=class{constructor(e,t,n,r,i){this.element=e,this.book=t,this.group=n,this.onGroupChanged=(e,t,n)=>{i&&i(e,t,n)},this.groupChangedCb=i,this.doneBuildingCb=r}refresh(){}render(){let e=document.createElement(`div`);e.style.maxWidth=`350px`,e.style.minHeight=`200px`,e.style.outline=`1px solid black`,e.style.display=`flex`,e.style.flexDirection=`column`,JS(e,e=>{e.forEach(e=>{this.add(e).catch(e=>{this.element.appendChild(q(document,(0,KS.default)(`Could not add the given WebId. (${e})`)))})})});let t=document.createElement(`input`);t.type=`text`,t.value=iC(this.group,R.vcard(`fn`),`Untitled Group`),t.addEventListener(`change`,e=>{this.setGroupName(e.target.value).catch(e=>{this.element.appendChild(q(document,`Error changing group name. (${e})`))})});let n=document.createElement(`label`);if(n.textContent=(0,KS.default)(`Group Name:`),n.appendChild(t),e.appendChild(n),Y.any(this.group,R.vcard(`hasMember`)))Y.match(this.group,R.vcard(`hasMember`)).forEach(t=>{let n=t.object,r=document.createElement(`div`);new rC(r,n,this.handleRemove(n)).render(),e.appendChild(r)});else{let t=document.createElement(`p`);t.textContent=KS.default`
2053
1748
  To add someone to this group, drag and drop their WebID URL onto the box.
2054
- `,e.appendChild(t)}let r=document.createElement(`button`);return r.textContent=(0,Av.default)(`Done`),r.addEventListener(`click`,e=>{this.doneBuildingCb(this.group)}),e.appendChild(r),this.element.innerHTML=``,this.element.appendChild(e),this}add(e){return new Promise((n,r)=>{J.fetcher.nowOrWhenFetched(e,(i,a)=>{if(!i)return this.onGroupChanged(a),r(a);let o=t.namedNode(e),s=J.any(o,I.rdf(`type`));return!s||!s.equals(I.foaf(`Person`))?r(Error(`Only people supported right now. (tried to add something of type ${s.value})`)):n(o)})}).then(e=>{let n=t.st(this.group,I.vcard(`hasMember`),e);return J.holdsStatement(n)?e:Uv(this.group.doc().uri,{toIns:[n]}).then(()=>{n.why=this.group.doc(),J.add(n),this.onGroupChanged(null,`added`,e),this.render()})})}handleRemove(e){return n=>{let r=t.st(this.group,I.vcard(`hasMember`),e);return Uv(this.group.doc().uri,{toDel:[r]}).then(()=>(J.remove(r),this.onGroupChanged(null,`removed`,e),this.render(),!0)).catch(t=>{let n=J.any(e,I.foaf(`name`)),r=n&&n.value?`Could not remove ${n.value}. (${t})`:`Could not remove ${e.value}. (${t})`;throw Error(r)})}}setGroupName(e){let{groupIndex:n}=Wv(this.book),r=[this.group.doc(),n].map(n=>{let r=J.match(this.group,I.vcard(`fn`),null,n),i=t.st(this.group,I.vcard(`fn`),t.literal(e));return Uv(n.value,{toDel:r,toIns:[i]}).then(e=>{J.removeStatements(r),i.why=n,J.add(i)})});return Promise.all(r)}},Vv=class{constructor(e,t,n){this.webIdNode=t,this.element=e,this.handleRemove=n}render(){let e=document.createElement(`div`);e.style.display=`flex`;let t=Hv(this.webIdNode,I.foaf(`img`),Fv+`noun_15059.svg`),n=document.createElement(`img`);n.src=(0,Av.default)(t),n.width=`50`,n.height=`50`,n.style.margin=`5px`;let r=Hv(this.webIdNode,I.foaf(`name`),`[${this.webIdNode}]`),i=document.createElement(`span`);i.innerHTML=(0,Av.default)(r),i.style.flexGrow=`1`,i.style.margin=`auto 0`;let a=document.createElement(`button`);return a.textContent=`Remove`,a.addEventListener(`click`,e=>this.handleRemove().catch(e=>{this.element.appendChild(K(document,(0,Av.default)(`${e}`)))})),a.style.margin=`5px`,e.appendChild(n),e.appendChild(i),e.appendChild(a),this.element.innerHTML=``,this.element.appendChild(e),this}};function Hv(e,t,n){let r=J.any(e,t);return r?r.value:n}function Uv(e,{toDel:t,toIns:n}){return new Promise((e,r)=>{J.updater.update(t,n,(t,n,i)=>{if(!n)return r(Error(`PATCH failed for resource <${t}>: ${i}`));e()})})}function Wv(e){return{groupIndex:J.any(e,I.vcard(`groupIndex`)),groupContainer:J.sym(e.dir().uri+`Group/`)}}var Gv=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjAxNTcgOS4yNzM2M0MxNC4yOTU0IDguMzQwMzEgMTUuMTI4OCA2LjgyOTg0IDE1LjEyODggNS4xMjgyQzE1LjEyODggMi4zMDA1MSAxMi44MjgzIDAgMTAuMDAwNiAwQzcuMTcyODkgMCA0Ljg3MjM4IDIuMzAwNTEgNC44NzIzOCA1LjEyODJDNC44NzIzOCA2LjgyOTg0IDUuNzA1NyA4LjM0MDMxIDYuOTg1NDcgOS4yNzM2M0MzLjgwNDIyIDEwLjQ5MSAxLjUzOTA2IDEzLjU3NTQgMS41MzkwNiAxNy4xNzk1QzEuNTM5MDYgMTguNzM0NyAyLjgwNDM0IDIwIDQuMzU5NTcgMjBIMTUuNjQxNkMxNy4xOTY4IDIwIDE4LjQ2MjEgMTguNzM0NyAxOC40NjIxIDE3LjE3OTVDMTguNDYyMSAxMy41NzU0IDE2LjE5NyAxMC40OTEgMTMuMDE1NyA5LjI3MzYzWk02LjQxMDg2IDUuMTI4MkM2LjQxMDg2IDMuMTQ4ODMgOC4wMjEyMSAxLjUzODQ4IDEwLjAwMDYgMS41Mzg0OEMxMS45OCAxLjUzODQ4IDEzLjU5MDMgMy4xNDg4MyAxMy41OTAzIDUuMTI4MkMxMy41OTAzIDcuMTA3NTggMTEuOTggOC43MTc5NyAxMC4wMDA2IDguNzE3OTdDOC4wMjEyMSA4LjcxNzk3IDYuNDEwODYgNy4xMDc1OCA2LjQxMDg2IDUuMTI4MlpNMTUuNjQxNiAxOC40NjE1SDQuMzU5NTdDMy42NTI2NiAxOC40NjE1IDMuMDc3NTQgMTcuODg2NCAzLjA3NzU0IDE3LjE3OTVDMy4wNzc1NCAxMy4zNjIgNi4xODMxNiAxMC4yNTY0IDEwLjAwMDYgMTAuMjU2NEMxMy44MTgxIDEwLjI1NjQgMTYuOTIzNyAxMy4zNjIgMTYuOTIzNyAxNy4xNzk1QzE2LjkyMzcgMTcuODg2NCAxNi4zNDg2IDE4LjQ2MTUgMTUuNjQxNiAxOC40NjE1WiIgZmlsbD0iIzMxNDE1OCIvPgo8L3N2Zz4K`,Kv=(e,t,n)=>{let r=e.createElement(`tr`);return r.appendChild(e.createElement(`td`)).appendChild(t),r.subject=n,r},qv=(e,t)=>{e.addEventListener(`click`,t)},Jv=(e,t,n)=>{let r=t.appendChild(e.createElement(`div`));r.setAttribute(`style`,G.imageDivStyle),r.appendChild(n),n.setAttribute(`draggable`,`false`)};function Yv(e,t,n){let r=e.createElement(`a`);r.setAttribute(`href`,t.uri),t.uri.startsWith(`http`)&&r.setAttribute(`target`,`_blank`);let i=r.appendChild(e.createElement(`img`));return i.setAttribute(`src`,n||Iv+`go-to-this.png`),i.setAttribute(`style`,`margin: 0.3em;`),r}var Xv=(e,t,n)=>{let r=Yv(e,n);t.appendChild(r).classList.add(`HoverControlHide`),t.appendChild(e.createElement(`br`))},{iconBase:Zv}=q,Qv=Zv+`noun_1180156.svg`,$v=Zv+`noun_1180158.svg`;function ey(e){let t=e&&e.statusArea||e&&e.div||null;if(t)return t;let n=e&&e.dom;if(!n&&typeof document<`u`&&(n=document),n){let r=n.getElementsByTagName(`body`)[0];return t=n.createElement(`div`),r.insertBefore(t,r.firstElementChild),e&&(e.statusArea=t),t}return null}function ty(e,t){if(!t)return;let n=ey(e);V(`Complaint: `+t),n?n.appendChild(K(e&&e.dom||document,t)):alert(t)}function ny(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function ry(e){let t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function iy(e,t){if(!e)return`???`;let n=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];try{let r=new Date().toISOString();return e.slice(0,10)===r.slice(0,10)&&!t?e.slice(11,16):e.slice(0,4)===r.slice(0,4)?n[parseInt(e.slice(5,7),10)-1]+` `+parseInt(e.slice(8,10),10):e.slice(0,10)}catch(e){return`shortdate:`+e}}function ay(e,t){return t.split(`{`).map(function(t){let n=t.split(`}`)[0];return t?(`000`+(e[`get`+n]()+({Month:1}[n]||0))).slice(-({Milliseconds:3,FullYear:4}[n]||2))+t.split(`}`)[1]:``}).join(``)}function oy(){return ay(new Date,`{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}`)}function sy(){return ay(new Date,`{Hours}:{Minutes}:{Seconds}.{Milliseconds}`)}function cy(e,t){let r=n.store,i=function(e){let t=r.any(e,I.vcard(`fn`))||r.any(e,I.foaf(`name`))||r.any(e,I.vcard(`organization-name`));return t?t.value:null},a=t.sameTerm(I.foaf(`Agent`))?`Everyone`:i(t);if(e.textContent=a||B(t),!a&&t.uri){if(!r.fetcher)throw Error(`kb has no fetcher`);r.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){e.textContent=i(t)||B(t)})}}function ly(e,t){return t.each(e,I.sioc(`avatar`)).concat(t.each(e,I.foaf(`img`))).concat(t.each(e,I.vcard(`logo`))).concat(t.each(e,I.vcard(`hasPhoto`))).concat(t.each(e,I.vcard(`photo`))).concat(t.each(e,I.foaf(`depiction`)))}var uy={"solid:AppProviderClass":`noun_144.svg`,"solid:AppProvider":`noun_15177.svg`,"solid:Pod":`noun_Cabinet_1434380.svg`,"vcard:Group":`noun_339237.svg`,"vcard:Organization":`noun_143899.svg`,"vcard:Individual":Gv,"schema:Person":Gv,"foaf:Person":Gv,"foaf:Agent":`noun_98053.svg`,"acl:AuthenticatedAgent":`noun_99101.svg`,"prov:SoftwareAgent":`noun_Robot_849764.svg`,"vcard:AddressBook":`noun_15695.svg`,"trip:Trip":`noun_581629.svg`,"meeting:LongChat":`noun_1689339.svg`,"meeting:Meeting":`noun_66617.svg`,"meeting:Project":`noun_1036577.svg`,"ui:Form":`noun_122196.svg`,"rdfs:Class":`class-rectangle.svg`,"rdf:Property":`property-diamond.svg`,"owl:Ontology":`noun_classification_1479198.svg`,"wf:Tracker":`noun_122196.svg`,"wf:Task":`noun_17020_gray-tick.svg`,"wf:Open":`noun_17020_sans-tick.svg`,"wf:Closed":`noun_17020.svg`};function dy(e){let t=e.uri.split(`#`)[0],n=t.indexOf(`//`);if(n<0)throw Error(`This URI does not have a web site part (origin)`);let r=t.indexOf(`/`,n+2);return r<0?t.slice(0)+`/`:t.slice(0,r+1)}function fy(e){let t=Zv;return typeof e!=`string`&&e.uri?e.uri.split(`/`).length===4&&!e.uri.split(`/`)[1]&&!e.uri.split(`/`)[3]?t+`noun_15177.svg`:e.uri.startsWith(`message:`)||e.uri.startsWith(`mid:`)?t+`noun_480183.svg`:e.uri.startsWith(`mailto:`)?t+`noun_567486.svg`:e.uri.startsWith(`https:`)&&e.uri.indexOf(`#`)<0?dy(e)+`favicon.ico`:null:t+`noun_10636_grey.svg`}function py(e){let t=n.store,r=Zv;if(e.sameTerm(I.foaf(`Agent`))||e.sameTerm(I.rdf(`Resource`)))return r+`noun_98053.svg`;let i=t.any(e,I.sioc(`avatar`))||t.any(e,I.foaf(`img`))||t.any(e,I.vcard(`logo`))||t.any(e,I.vcard(`hasPhoto`))||t.any(e,I.vcard(`photo`))||t.any(e,I.foaf(`depiction`));return i?i.uri:null}function my(e,t,r){let i=n.store,a=py(t);if(a)return e.setAttribute(`src`,a),!0;let o=r[t.uri];if(o)return e.setAttribute(`src`,o),e.style=G.classIconStyle,!0;let s=fy(t);if(s)return e.setAttribute(`src`,s),!0;let c=i.findTypeURIs(t);for(let t in c)if(r[t])return e.setAttribute(`src`,r[t]),!1;return e.setAttribute(`src`,Zv+`noun_10636_grey.svg`),!1}function hy(e,r){let i=n.store,a={};for(let e in uy){let n=e.split(`:`)[0],r=e.split(`:`)[1],i=I[n](r),o=uy[e];o.startsWith(`data:`)?a[i.uri]=o:a[i.uri]=t.uri.join(o,Zv)}if(!my(e,r,a)&&r.uri){if(!i.fetcher)throw Error(`kb has no fetcher`);i.fetcher.nowOrWhenFetched(r.doc(),void 0,t=>{t&&my(e,r,a)})}}function gy(e,t){let n=e.createElement(`img`);if(n.style=G.iconStyle,n.setAttribute(`src`,Zv+(function(e){if(!e.uri)return!1;let t=e.uri.split(`/`);return t.length===3||t.length===4&&t[3]===``}(t)?`noun_15177.svg`:`noun_681601.svg`)),t.uri&&t.uri.startsWith(`https:`)&&t.uri.indexOf(`#`)<0){let r=e.createElement(`object`);return r.setAttribute(`data`,dy(t)+`favicon.ico`),r.setAttribute(`type`,`image/x-icon`),r.appendChild(n),r}else return hy(n,t),n}function _y(e,t,n,r){function i(){t.parentElement.removeChild(t)}function a(){i(),r()}let o=e.createElement(`div`);o.style=G.confirmPopupStyle,o.style.position=`absolute`,o.style.top=`-1em`,o.style.display=`grid`,o.style.gridTemplateColumns=`auto auto`;let s=e.createElement(`div`);s.style.gridColumn=`1/2`,s.style.gridRow=`1`;let c=e.createElement(`div`);c.style.gridColumn=`1/2`,c.style.gridRow=`2`;let l=yy(e,i);o.appendChild(l),l.style.gridColumn=`1`,l.style.gridRow=`2`;let u=o.appendChild(e.createElement(`button`));u.style=G.buttonStyle,u.style.gridRow=`2`,u.style.gridColumn=`2`,u.textContent=`Cancel`;let d=Y(e,q.iconBase+`noun_925021.svg`,`Delete it`);o.appendChild(d),d.style.gridRow=`1`,d.style.gridColumn=`1`;let f=o.appendChild(e.createElement(`button`));return f.style=G.buttonStyle,f.style.gridRow=`1`,f.style.gridColumn=`2`,f.textContent=n,o.appendChild(f),d.addEventListener(`click`,a),f.addEventListener(`click`,a),u.addEventListener(`click`,i),o}function vy(e,t,n,r){function i(){let n=e.createElement(`div`);t.insertBefore(n,o),n.style.position=`relative`,n.appendChild(_y(e,n,s,r))}let a=Zv+`noun_2188_red.svg`,o=e.createElement(`img`);o.setAttribute(`src`,a),o.setAttribute(`style`,G.smallButtonStyle),o.style.float=`right`;let s=`Remove this `+n;return o.title=s,o.classList.add(`hoverControlHide`),o.addEventListener(`click`,i),t.classList.add(`hoverControl`),t.appendChild(o),o.setAttribute(`data-testid`,`deleteButtonWithCheck`),o}function Y(e,t,n,r,i={buttonColor:`Primary`,needsBorder:!1}){let a=e.createElement(`button`);if(a.setAttribute(`type`,`button`),t){let r=a.appendChild(e.createElement(`img`));r.setAttribute(`src`,t),r.setAttribute(`style`,`width: 2em; height: 2em;`),r.title=n,a.setAttribute(`style`,G.buttonStyle)}else a.textContent=n.toLocaleUpperCase(),a.onmouseover=function(){i.buttonColor===`Secondary`?i.needsBorder?a.setAttribute(`style`,G.secondaryButtonNoBorderHover):a.setAttribute(`style`,G.secondaryButtonHover):i.needsBorder?a.setAttribute(`style`,G.primaryButtonNoBorderHover):a.setAttribute(`style`,G.primaryButtonHover)},a.onmouseout=function(){i.buttonColor===`Secondary`?i.needsBorder?a.setAttribute(`style`,G.secondaryButtonNoBorder):a.setAttribute(`style`,G.secondaryButton):i.needsBorder?a.setAttribute(`style`,G.primaryButtonNoBorder):a.setAttribute(`style`,G.primaryButton)},i.buttonColor===`Secondary`?i.needsBorder?a.setAttribute(`style`,G.secondaryButtonNoBorder):a.setAttribute(`style`,G.secondaryButton):i.needsBorder?a.setAttribute(`style`,G.primaryButtonNoBorder):a.setAttribute(`style`,G.primaryButton);return r&&a.addEventListener(`click`,r,!1),a}function yy(e,t){let n=Y(e,Qv,`Cancel`,t);return n.firstChild&&(n.firstChild.style.opacity=`0.3`),n}function by(e,t){return Y(e,$v,`Continue`,t)}function xy(e,t,n,r,i,a){return new Promise(function(t,o){let s=e.createElement(`div`);r||=I.foaf(`name`),a||=i?B(i):` `;let c=a+` `+B(r)+`: `;s.appendChild(e.createElement(`p`)).textContent=c;let l=e.createElement(`input`);l.setAttribute(`type`,`text`),l.setAttribute(`size`,`100`),l.setAttribute(`maxLength`,`2048`),l.setAttribute(`style`,G.textInputStyle),l.select(),s.appendChild(l),n.appendChild(s);function u(){s.parentNode.removeChild(s),t(l.value.trim())}l.addEventListener(`keyup`,function(e){e.keyCode===13&&u()},!1),s.appendChild(e.createElement(`br`)),s.appendChild(yy(e,function(e){s.parentNode.removeChild(s),t(null)})),s.appendChild(by(e,function(e){u()})),l.focus()})}var Sy=Cy;function Cy(e,t,n,r){let i=e.createElement(`tr`);r||={};let a=i.appendChild(e.createElement(`td`)),o=i.appendChild(e.createElement(`td`)),s=i.appendChild(e.createElement(`td`)),c=r.image||gy(e,n);a.setAttribute(`style`,`vertical-align: middle; width:2.5em; padding:0.5em; height: 2.5em;`),o.setAttribute(`style`,`vertical-align: middle; text-align:left;`),s.setAttribute(`style`,`vertical-align: middle; width:2em; padding:0.5em; height: 4em;`),a.appendChild(c);let l=o.appendChild(e.createElement(`div`)),u=l.appendChild(e.createElement(`span`));if(r.title?u.textContent=r.title:cy(u,n),typeof r.renderNameSuffix==`function`){let t=r.renderNameSuffix(n,e);if(t){let n=l.appendChild(e.createElement(`span`));n.setAttribute(`style`,`margin-left: 0.4em; opacity: 0.8;`),typeof t==`string`?n.textContent=t:n.appendChild(t)}}if(typeof r.renderSupportingInfo==`function`){let t=r.renderSupportingInfo(n,e);if(t){let n=o.appendChild(e.createElement(`div`));n.setAttribute(`style`,`font-size: 90%; opacity: 0.8;`),typeof t==`string`?n.textContent=t:n.appendChild(t)}}return r.deleteFunction&&vy(e,s,r.noun||`one`,r.deleteFunction),n.uri&&(r.link!==!1&&(s.appendChild(Yv(e,n)).classList.add(`HoverControlHide`),s.appendChild(e.createElement(`br`))),r.draggable!==!1&&(c.setAttribute(`draggable`,`false`),Nv(i,n))),i.subject=n,i}function wy(e,t,n,r){let i=t.appendChild(e.createElement(`div`));n?i.textContent=n:cy(i,r)}function Ty(e,t,n,r){let i=t.appendChild(e.createElement(`div`));i.setAttribute(`style`,G.linkDivStyle),r.deleteFunction&&vy(e,i,r.noun||`one`,r.deleteFunction),n.uri&&(r.link!==!1&&Xv(e,i,n),Nv(t,n))}function Ey(e,t,n){let r=e.createElement(`div`);return r.setAttribute(`style`,G.renderAsDivStyle),n||={},Jv(e,r,n.image||gy(e,t)),wy(e,r,n.title,t),Ty(e,r,t,n),n.clickable&&n.onClickFunction&&qv(r,n.onClickFunction),n.wrapInATR?Kv(e,r,t):r}function Dy(e){if(e.refresh){e.refresh();return}for(let t=0;t<e.children.length;t++)Dy(e.children[t])}function Oy(e,r,i,a={}){let o=new Set,s=!!(a.renderSupportingInfo||a.renderNameSuffix),c=a.refreshOnDocumentLoad??!0,l=function(e){if(!y.updater)throw Error(`kb has no updater`);y.updater.update((0,t.st)(r,_,e,m),[],function(e,t,n,r){t?d():ty(void 0,`Error deleting one: `+n)})};function u(t){let n=t,r={noun:v};if(r.renderSupportingInfo=a.renderSupportingInfo,r.renderNameSuffix=a.renderNameSuffix,s&&c&&t?.uri&&y.fetcher){let e=t.doc(),n=e?.uri?y.fetcher.requested?.[e.uri]:void 0,r=n!==`done`&&n!==`failed`;e?.uri&&r&&!o.has(e.uri)&&(o.add(e.uri),y.fetcher.nowOrWhenFetched(e,void 0,()=>{o.delete(e.uri),d()}))}return h&&(r.deleteFunction=function(){l(n)}),Sy(e,_,t,r)}let d=function(){let e=y.each(r,_);e.sort(),E_(C,e,u,s?function(e,t){return u(t)}:void 0)};function f(e){let n=[];if(e.forEach(function(e){let i=(0,t.sym)(e);V(`Dropped on attachemnt `+e),n.push((0,t.st)(r,_,i,m))}),!y.updater)throw Error(`kb has no updater`);y.updater.update([],n,function(e,t,n,r){t?d():ty(void 0,`Error adding one: `+n)})}function p(e){Pv(y.fetcher,e,a.uploadFolder?.uri,a.uploadFolder?.uri,function(e,n){let i=[(0,t.st)(r,_,y.sym(n),m)];if(!y.updater)throw Error(`kb has no updater`);y.updater.update([],i,function(e,t,n,r){t?d():ty(void 0,`Error adding link to uploaded file: `+n)})})}let m=a.doc||r.doc();a.modify===void 0&&(a.modify=!0);let h=a.modify,g=a.promptIcon||Zv+`noun_748003.svg`,_=a.predicate||I.wf(`attachment`),v=a.noun||`attachment`,y=n.store,b=i.appendChild(e.createElement(`table`));b.setAttribute(`style`,`margin-top: 1em; margin-bottom: 1em;`);let x=b.appendChild(e.createElement(`tr`)),S=x.appendChild(e.createElement(`td`)),C=x.appendChild(e.createElement(`td`)).appendChild(e.createElement(`table`));if(C.appendChild(e.createElement(`tr`)),b.refresh=d,d(),h){let t=Y(e,g,`Drop attachments here`);S.appendChild(t);let n=a.uploadFolder?p:null;Mv(t,f,n);let r=t.querySelector(`img`);if(r&&Mv(r,f,n),Mv(S,f,n),a.uploadFolder){let t=Ky(e,p);S.appendChild(t)}}return b}function ky(e){e.preventDefault(),e.stopPropagation();let t=A_(e).getAttribute(`href`);if(!t)return V(`openHrefInOutlineMode: No href found!
2055
- `);let r=window.document;r.outlineManager?r.outlineManager.GotoSubject(n.store.sym(t),!0,void 0,!0,void 0):window&&window.panes&&window.panes.getOutliner?window.panes.getOutliner().GotoSubject(n.store.sym(t),!0,void 0,!0,void 0):V(`ERROR: Can't access outline manager in this config`)}function Ay(e){if(e.uri===void 0)return;let t=e.uri;if(t.slice(0,7)!==`http://`)return;t=t.slice(7);let r=t.indexOf(`#`);if(r>=0)t=t.slice(0,r);else{let e=t.lastIndexOf(`/`);if(e<0)return;t=t.slice(0,e)}return n.store.sym(`http://tabulator.org/wiki/annnotation/`+t)}function jy(){let e={};return n.store.statementsMatching(void 0,I.rdf(`type`),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0)}),n.store.statementsMatching(void 0,I.rdfs(`subClassOf`),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0),t.subject.value&&(e[t.subject.value]=!0)}),n.store.each(void 0,I.rdf(`type`),I.rdfs(`Class`)).forEach(function(t){t.value&&(e[t.value]=!0)}),e}function My(e){let t={},n={},r={},i=0,a=0,o=0,s=e.predicateIndex;for(let e in s)s[e][0].object.termType===`Literal`?(n[e]=!0,a++):(r[e]=!0,i++);let c=e.each(void 0,I.rdf(`type`),I.rdf(`Property`));for(let e=0;e<c.length;e++){let t=c[e].toNT();!r[t]&&!n[t]&&(n[t]=!0,r[t]=!0,o++)}return t.op=r,t.dp=n,r_(`propertyTriage: ${i} non-lit, ${a} literal. ${o} unknown.`),t}function Ny(e,t){let n=e.createElement(`button`);return n.setAttribute(`type`,`button`),n.textContent=`Goto `+B(t),n.addEventListener(`click`,function(n){e.outlineManager.GotoSubject(t,!0,void 0,!0,void 0)},!0),n}function Py(e,t){let n=e.createElement(`button`);return n.setAttribute(`type`,`button`),n.textContent=`✕`,n.addEventListener(`click`,function(e){t.parentNode.removeChild(t)},!0),n}function Fy(e,t,n,r,i,a,o,s,c){return Iy(e.createElement(`div`),e,t,n,r,i,a,o,s,c)}function Iy(e,t,n,r,i,a,o,s,c,l){let u=`border: 0.1em solid #ddd; border-bottom: none; width: 95%; height: 2em; padding: 0.5em;`,d=null;e.innerHTML=``;let f=function(e,o){let f,p,m=function(){let e=a?n.each(void 0,i,o):n.each(o,i);_.setAttribute(`class`,e.length===0?`hideTillHover`:``),p.setAttribute(`src`,s.connectIcon||Zv+`noun_25830.svg`),p.setAttribute(`title`,e.length?e.length:`attach`)};f=Ly.twoLine.widgetForClass(r)(t,o),f.setAttribute(`style`,u);let h=t.createElement(`div`);h.setAttribute(`class`,`hideTillHover`),h.setAttribute(`style`,`float:right; width:10%`);let g=t.createElement(`a`);g.setAttribute(`href`,o.uri),g.setAttribute(`style`,`float:right`),h.appendChild(g).textContent=`>`,e.appendChild(h);let _=t.createElement(`div`);return _.setAttribute(`style`,(a?`float:left;`:`float:right;`)+` width:30px;`),p=t.createElement(`img`),m(),_.appendChild(p),e.appendChild(_),f.addEventListener(`click`,function(e){d===f?(f.setAttribute(`style`,u),d=null):(d&&d.setAttribute(`style`,u),f.setAttribute(`style`,`border: 0.1em solid #ddd; border-bottom: none; width: 95%; height: 2em; padding: 0.5em;background-color: #ccc; color:black;`),d=f),c(o,e,d===f),m()},!1),p.addEventListener(`click`,function(e){l(o,e,a,m)},!1),e.appendChild(f),e};for(let n=0;n<o.length;n++){let r=t.createElement(`div`);e.appendChild(r),f(r,o[n])}return e}var Ly={};function Ry(e,t){let n=e.createElement(`div`);return n.textContent=B(t),n}function zy(e){let t=Ly.twoLine[e.uri],r=n.store;if(t)return t;let i=r.findSuperClassesNT(e);for(let e in i)if(t=Ly.twoLine[r.fromNT(e).uri],t)return t;return Ly.twoLine[``]}function By(e,t){let r=``,i=function(e){let i=n.store.any(t,I.qu(e));return i||(r+=`@@ No value for `+e+`! `),i?H_(i.value):`?`},a=e.createElement(`table`);return a.innerHTML=`
1749
+ `,e.appendChild(t)}let r=document.createElement(`button`);return r.textContent=(0,KS.default)(`Done`),r.addEventListener(`click`,e=>{this.doneBuildingCb(this.group)}),e.appendChild(r),this.element.innerHTML=``,this.element.appendChild(e),this}add(e){return new Promise((n,r)=>{Y.fetcher.nowOrWhenFetched(e,(i,a)=>{if(!i)return this.onGroupChanged(a),r(a);let o=t.namedNode(e),s=Y.any(o,R.rdf(`type`));return!s||!s.equals(R.foaf(`Person`))?r(Error(`Only people supported right now. (tried to add something of type ${s.value})`)):n(o)})}).then(e=>{let n=t.st(this.group,R.vcard(`hasMember`),e);return Y.holdsStatement(n)?e:aC(this.group.doc().uri,{toIns:[n]}).then(()=>{n.why=this.group.doc(),Y.add(n),this.onGroupChanged(null,`added`,e),this.render()})})}handleRemove(e){return n=>{let r=t.st(this.group,R.vcard(`hasMember`),e);return aC(this.group.doc().uri,{toDel:[r]}).then(()=>(Y.remove(r),this.onGroupChanged(null,`removed`,e),this.render(),!0)).catch(t=>{let n=Y.any(e,R.foaf(`name`)),r=n&&n.value?`Could not remove ${n.value}. (${t})`:`Could not remove ${e.value}. (${t})`;throw Error(r)})}}setGroupName(e){let{groupIndex:n}=oC(this.book),r=[this.group.doc(),n].map(n=>{let r=Y.match(this.group,R.vcard(`fn`),null,n),i=t.st(this.group,R.vcard(`fn`),t.literal(e));return aC(n.value,{toDel:r,toIns:[i]}).then(e=>{Y.removeStatements(r),i.why=n,Y.add(i)})});return Promise.all(r)}},rC=class{constructor(e,t,n){this.webIdNode=t,this.element=e,this.handleRemove=n}render(){let e=document.createElement(`div`);e.style.display=`flex`;let t=iC(this.webIdNode,R.foaf(`img`),ZS+`noun_15059.svg`),n=document.createElement(`img`);n.src=(0,KS.default)(t),n.width=`50`,n.height=`50`,n.style.margin=`5px`;let r=iC(this.webIdNode,R.foaf(`name`),`[${this.webIdNode}]`),i=document.createElement(`span`);i.innerHTML=(0,KS.default)(r),i.style.flexGrow=`1`,i.style.margin=`auto 0`;let a=document.createElement(`button`);return a.textContent=`Remove`,a.addEventListener(`click`,e=>this.handleRemove().catch(e=>{this.element.appendChild(q(document,(0,KS.default)(`${e}`)))})),a.style.margin=`5px`,e.appendChild(n),e.appendChild(i),e.appendChild(a),this.element.innerHTML=``,this.element.appendChild(e),this}};function iC(e,t,n){let r=Y.any(e,t);return r?r.value:n}function aC(e,{toDel:t,toIns:n}){return new Promise((e,r)=>{Y.updater.update(t,n,(t,n,i)=>{if(!n)return r(Error(`PATCH failed for resource <${t}>: ${i}`));e()})})}function oC(e){return{groupIndex:Y.any(e,R.vcard(`groupIndex`)),groupContainer:Y.sym(e.dir().uri+`Group/`)}}var sC=`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjAxNTcgOS4yNzM2M0MxNC4yOTU0IDguMzQwMzEgMTUuMTI4OCA2LjgyOTg0IDE1LjEyODggNS4xMjgyQzE1LjEyODggMi4zMDA1MSAxMi44MjgzIDAgMTAuMDAwNiAwQzcuMTcyODkgMCA0Ljg3MjM4IDIuMzAwNTEgNC44NzIzOCA1LjEyODJDNC44NzIzOCA2LjgyOTg0IDUuNzA1NyA4LjM0MDMxIDYuOTg1NDcgOS4yNzM2M0MzLjgwNDIyIDEwLjQ5MSAxLjUzOTA2IDEzLjU3NTQgMS41MzkwNiAxNy4xNzk1QzEuNTM5MDYgMTguNzM0NyAyLjgwNDM0IDIwIDQuMzU5NTcgMjBIMTUuNjQxNkMxNy4xOTY4IDIwIDE4LjQ2MjEgMTguNzM0NyAxOC40NjIxIDE3LjE3OTVDMTguNDYyMSAxMy41NzU0IDE2LjE5NyAxMC40OTEgMTMuMDE1NyA5LjI3MzYzWk02LjQxMDg2IDUuMTI4MkM2LjQxMDg2IDMuMTQ4ODMgOC4wMjEyMSAxLjUzODQ4IDEwLjAwMDYgMS41Mzg0OEMxMS45OCAxLjUzODQ4IDEzLjU5MDMgMy4xNDg4MyAxMy41OTAzIDUuMTI4MkMxMy41OTAzIDcuMTA3NTggMTEuOTggOC43MTc5NyAxMC4wMDA2IDguNzE3OTdDOC4wMjEyMSA4LjcxNzk3IDYuNDEwODYgNy4xMDc1OCA2LjQxMDg2IDUuMTI4MlpNMTUuNjQxNiAxOC40NjE1SDQuMzU5NTdDMy42NTI2NiAxOC40NjE1IDMuMDc3NTQgMTcuODg2NCAzLjA3NzU0IDE3LjE3OTVDMy4wNzc1NCAxMy4zNjIgNi4xODMxNiAxMC4yNTY0IDEwLjAwMDYgMTAuMjU2NEMxMy44MTgxIDEwLjI1NjQgMTYuOTIzNyAxMy4zNjIgMTYuOTIzNyAxNy4xNzk1QzE2LjkyMzcgMTcuODg2NCAxNi4zNDg2IDE4LjQ2MTUgMTUuNjQxNiAxOC40NjE1WiIgZmlsbD0iIzMxNDE1OCIvPgo8L3N2Zz4K`,cC=(e,t,n)=>{let r=e.createElement(`tr`);return r.appendChild(e.createElement(`td`)).appendChild(t),r.subject=n,r},lC=(e,t)=>{e.addEventListener(`click`,t)},uC=(e,t,n)=>{let r=t.appendChild(e.createElement(`div`));r.setAttribute(`style`,U.imageDivStyle),r.appendChild(n),n.setAttribute(`draggable`,`false`)};function dC(e,t,n){let r=e.createElement(`a`);r.setAttribute(`href`,t.uri),t.uri.startsWith(`http`)&&r.setAttribute(`target`,`_blank`);let i=r.appendChild(e.createElement(`img`));return i.setAttribute(`src`,n||QS+`go-to-this.png`),i.setAttribute(`style`,`margin: 0.3em;`),r}var fC=(e,t,n)=>{let r=dC(e,n);t.appendChild(r).classList.add(`HoverControlHide`),t.appendChild(e.createElement(`br`))},{iconBase:pC}=J,mC=pC+`noun_1180156.svg`,hC=pC+`noun_1180158.svg`;function gC(e){let t=e&&e.statusArea||e&&e.div||null;if(t)return t;let n=e&&e.dom;if(!n&&typeof document<`u`&&(n=document),n){let r=n.getElementsByTagName(`body`)[0];return t=n.createElement(`div`),r.insertBefore(t,r.firstElementChild),e&&(e.statusArea=t),t}return null}function _C(e,t){if(!t)return;let n=gC(e);W(`Complaint: `+t),n?n.appendChild(q(e&&e.dom||document,t)):alert(t)}function vC(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function yC(e){let t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function bC(e,t){if(!e)return`???`;let n=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];try{let r=new Date().toISOString();return e.slice(0,10)===r.slice(0,10)&&!t?e.slice(11,16):e.slice(0,4)===r.slice(0,4)?n[parseInt(e.slice(5,7),10)-1]+` `+parseInt(e.slice(8,10),10):e.slice(0,10)}catch(e){return`shortdate:`+e}}function xC(e,t){return t.split(`{`).map(function(t){let n=t.split(`}`)[0];return t?(`000`+(e[`get`+n]()+({Month:1}[n]||0))).slice(-({Milliseconds:3,FullYear:4}[n]||2))+t.split(`}`)[1]:``}).join(``)}function SC(){return xC(new Date,`{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}`)}function CC(){return xC(new Date,`{Hours}:{Minutes}:{Seconds}.{Milliseconds}`)}function wC(e,t){let r=n.store,i=function(e){let t=r.any(e,R.vcard(`fn`))||r.any(e,R.foaf(`name`))||r.any(e,R.vcard(`organization-name`));return t?t.value:null},a=t.sameTerm(R.foaf(`Agent`))?`Everyone`:i(t);if(e.textContent=a||V(t),!a&&t.uri){if(!r.fetcher)throw Error(`kb has no fetcher`);r.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){e.textContent=i(t)||V(t)})}}function TC(e,t){return t.each(e,R.sioc(`avatar`)).concat(t.each(e,R.foaf(`img`))).concat(t.each(e,R.vcard(`logo`))).concat(t.each(e,R.vcard(`hasPhoto`))).concat(t.each(e,R.vcard(`photo`))).concat(t.each(e,R.foaf(`depiction`)))}var EC={"solid:AppProviderClass":`noun_144.svg`,"solid:AppProvider":`noun_15177.svg`,"solid:Pod":`noun_Cabinet_1434380.svg`,"vcard:Group":`noun_339237.svg`,"vcard:Organization":`noun_143899.svg`,"vcard:Individual":sC,"schema:Person":sC,"foaf:Person":sC,"foaf:Agent":`noun_98053.svg`,"acl:AuthenticatedAgent":`noun_99101.svg`,"prov:SoftwareAgent":`noun_Robot_849764.svg`,"vcard:AddressBook":`noun_15695.svg`,"trip:Trip":`noun_581629.svg`,"meeting:LongChat":`noun_1689339.svg`,"meeting:Meeting":`noun_66617.svg`,"meeting:Project":`noun_1036577.svg`,"ui:Form":`noun_122196.svg`,"rdfs:Class":`class-rectangle.svg`,"rdf:Property":`property-diamond.svg`,"owl:Ontology":`noun_classification_1479198.svg`,"wf:Tracker":`noun_122196.svg`,"wf:Task":`noun_17020_gray-tick.svg`,"wf:Open":`noun_17020_sans-tick.svg`,"wf:Closed":`noun_17020.svg`};function DC(e){let t=e.uri.split(`#`)[0],n=t.indexOf(`//`);if(n<0)throw Error(`This URI does not have a web site part (origin)`);let r=t.indexOf(`/`,n+2);return r<0?t.slice(0)+`/`:t.slice(0,r+1)}function OC(e){let t=pC;return typeof e!=`string`&&e.uri?e.uri.split(`/`).length===4&&!e.uri.split(`/`)[1]&&!e.uri.split(`/`)[3]?t+`noun_15177.svg`:e.uri.startsWith(`message:`)||e.uri.startsWith(`mid:`)?t+`noun_480183.svg`:e.uri.startsWith(`mailto:`)?t+`noun_567486.svg`:e.uri.startsWith(`https:`)&&e.uri.indexOf(`#`)<0?DC(e)+`favicon.ico`:null:t+`noun_10636_grey.svg`}function kC(e){let t=n.store,r=pC;if(e.sameTerm(R.foaf(`Agent`))||e.sameTerm(R.rdf(`Resource`)))return r+`noun_98053.svg`;let i=t.any(e,R.sioc(`avatar`))||t.any(e,R.foaf(`img`))||t.any(e,R.vcard(`logo`))||t.any(e,R.vcard(`hasPhoto`))||t.any(e,R.vcard(`photo`))||t.any(e,R.foaf(`depiction`));return i?i.uri:null}function AC(e,t,r){let i=n.store,a=kC(t);if(a)return e.setAttribute(`src`,a),!0;let o=r[t.uri];if(o)return e.setAttribute(`src`,o),e.style=U.classIconStyle,!0;let s=OC(t);if(s)return e.setAttribute(`src`,s),!0;let c=i.findTypeURIs(t);for(let t in c)if(r[t])return e.setAttribute(`src`,r[t]),!1;return e.setAttribute(`src`,pC+`noun_10636_grey.svg`),!1}function jC(e,r){let i=n.store,a={};for(let e in EC){let n=e.split(`:`)[0],r=e.split(`:`)[1],i=R[n](r),o=EC[e];o.startsWith(`data:`)?a[i.uri]=o:a[i.uri]=t.uri.join(o,pC)}if(!AC(e,r,a)&&r.uri){if(!i.fetcher)throw Error(`kb has no fetcher`);i.fetcher.nowOrWhenFetched(r.doc(),void 0,t=>{t&&AC(e,r,a)})}}function MC(e,t){let n=e.createElement(`img`);if(n.style=U.iconStyle,n.setAttribute(`src`,pC+(function(e){if(!e.uri)return!1;let t=e.uri.split(`/`);return t.length===3||t.length===4&&t[3]===``}(t)?`noun_15177.svg`:`noun_681601.svg`)),t.uri&&t.uri.startsWith(`https:`)&&t.uri.indexOf(`#`)<0){let r=e.createElement(`object`);return r.setAttribute(`data`,DC(t)+`favicon.ico`),r.setAttribute(`type`,`image/x-icon`),r.appendChild(n),r}return jC(n,t),n}function NC(e,t,n,r){function i(){t.parentElement.removeChild(t)}function a(){i(),r()}let o=e.createElement(`div`);o.style=U.confirmPopupStyle,o.style.position=`absolute`,o.style.top=`-1em`,o.style.display=`grid`,o.style.gridTemplateColumns=`auto auto`;let s=e.createElement(`div`);s.style.gridColumn=`1/2`,s.style.gridRow=`1`;let c=e.createElement(`div`);c.style.gridColumn=`1/2`,c.style.gridRow=`2`;let l=FC(e,i);o.appendChild(l),l.style.gridColumn=`1`,l.style.gridRow=`2`;let u=o.appendChild(e.createElement(`button`));u.style=U.buttonStyle,u.style.gridRow=`2`,u.style.gridColumn=`2`,u.textContent=`Cancel`;let d=X(e,J.iconBase+`noun_925021.svg`,`Delete it`);o.appendChild(d),d.style.gridRow=`1`,d.style.gridColumn=`1`;let f=o.appendChild(e.createElement(`button`));return f.style=U.buttonStyle,f.style.gridRow=`1`,f.style.gridColumn=`2`,f.textContent=n,o.appendChild(f),d.addEventListener(`click`,a),f.addEventListener(`click`,a),u.addEventListener(`click`,i),o}function PC(e,t,n,r){function i(){let n=e.createElement(`div`);t.insertBefore(n,o),n.style.position=`relative`,n.appendChild(NC(e,n,s,r))}let a=pC+`noun_2188_red.svg`,o=e.createElement(`img`);o.setAttribute(`src`,a),o.setAttribute(`style`,U.smallButtonStyle),o.style.float=`right`;let s=`Remove this `+n;return o.title=s,o.classList.add(`hoverControlHide`),o.addEventListener(`click`,i),t.classList.add(`hoverControl`),t.appendChild(o),o.setAttribute(`data-testid`,`deleteButtonWithCheck`),o}function X(e,t,n,r,i={buttonColor:`Primary`,needsBorder:!1}){let a=e.createElement(`button`);if(a.setAttribute(`type`,`button`),t){let r=a.appendChild(e.createElement(`img`));r.setAttribute(`src`,t),r.setAttribute(`style`,`width: 2em; height: 2em;`),r.title=n,a.setAttribute(`style`,U.buttonStyle)}else a.textContent=n.toLocaleUpperCase(),a.onmouseover=function(){i.buttonColor===`Secondary`?i.needsBorder?a.setAttribute(`style`,U.secondaryButtonNoBorderHover):a.setAttribute(`style`,U.secondaryButtonHover):i.needsBorder?a.setAttribute(`style`,U.primaryButtonNoBorderHover):a.setAttribute(`style`,U.primaryButtonHover)},a.onmouseout=function(){i.buttonColor===`Secondary`?i.needsBorder?a.setAttribute(`style`,U.secondaryButtonNoBorder):a.setAttribute(`style`,U.secondaryButton):i.needsBorder?a.setAttribute(`style`,U.primaryButtonNoBorder):a.setAttribute(`style`,U.primaryButton)},i.buttonColor===`Secondary`?i.needsBorder?a.setAttribute(`style`,U.secondaryButtonNoBorder):a.setAttribute(`style`,U.secondaryButton):i.needsBorder?a.setAttribute(`style`,U.primaryButtonNoBorder):a.setAttribute(`style`,U.primaryButton);return r&&a.addEventListener(`click`,r,!1),a}function FC(e,t){let n=X(e,mC,`Cancel`,t);return n.firstChild&&(n.firstChild.style.opacity=`0.3`),n}function IC(e,t){return X(e,hC,`Continue`,t)}function LC(e,t,n,r,i,a){return new Promise(function(t,o){let s=e.createElement(`div`);r||=R.foaf(`name`),a||=i?V(i):` `;let c=a+` `+V(r)+`: `;s.appendChild(e.createElement(`p`)).textContent=c;let l=e.createElement(`input`);l.setAttribute(`type`,`text`),l.setAttribute(`size`,`100`),l.setAttribute(`maxLength`,`2048`),l.setAttribute(`style`,U.textInputStyle),l.select(),s.appendChild(l),n.appendChild(s);function u(){s.parentNode.removeChild(s),t(l.value.trim())}l.addEventListener(`keyup`,function(e){e.keyCode===13&&u()},!1),s.appendChild(e.createElement(`br`)),s.appendChild(FC(e,function(e){s.parentNode.removeChild(s),t(null)})),s.appendChild(IC(e,function(e){u()})),l.focus()})}var RC=zC;function zC(e,t,n,r){let i=e.createElement(`tr`);r||={};let a=i.appendChild(e.createElement(`td`)),o=i.appendChild(e.createElement(`td`)),s=i.appendChild(e.createElement(`td`)),c=r.image||MC(e,n);a.setAttribute(`style`,`vertical-align: middle; width:2.5em; padding:0.5em; height: 2.5em;`),o.setAttribute(`style`,`vertical-align: middle; text-align:left;`),s.setAttribute(`style`,`vertical-align: middle; width:2em; padding:0.5em; height: 4em;`),a.appendChild(c);let l=o.appendChild(e.createElement(`div`)),u=l.appendChild(e.createElement(`span`));if(r.title?u.textContent=r.title:wC(u,n),typeof r.renderNameSuffix==`function`){let t=r.renderNameSuffix(n,e);if(t){let n=l.appendChild(e.createElement(`span`));n.setAttribute(`style`,`margin-left: 0.4em; opacity: 0.8;`),typeof t==`string`?n.textContent=t:n.appendChild(t)}}if(typeof r.renderSupportingInfo==`function`){let t=r.renderSupportingInfo(n,e);if(t){let n=o.appendChild(e.createElement(`div`));n.setAttribute(`style`,`font-size: 90%; opacity: 0.8;`),typeof t==`string`?n.textContent=t:n.appendChild(t)}}return r.deleteFunction&&PC(e,s,r.noun||`one`,r.deleteFunction),n.uri&&(r.link!==!1&&(s.appendChild(dC(e,n)).classList.add(`HoverControlHide`),s.appendChild(e.createElement(`br`))),r.draggable!==!1&&(c.setAttribute(`draggable`,`false`),YS(i,n))),i.subject=n,i}function BC(e,t,n,r){let i=t.appendChild(e.createElement(`div`));n?i.textContent=n:wC(i,r)}function VC(e,t,n,r){let i=t.appendChild(e.createElement(`div`));i.setAttribute(`style`,U.linkDivStyle),r.deleteFunction&&PC(e,i,r.noun||`one`,r.deleteFunction),n.uri&&(r.link!==!1&&fC(e,i,n),YS(t,n))}function HC(e,t,n){let r=e.createElement(`div`);return r.setAttribute(`style`,U.renderAsDivStyle),n||={},uC(e,r,n.image||MC(e,t)),BC(e,r,n.title,t),VC(e,r,t,n),n.clickable&&n.onClickFunction&&lC(r,n.onClickFunction),n.wrapInATR?cC(e,r,t):r}function UC(e){if(e.refresh){e.refresh();return}for(let t=0;t<e.children.length;t++)UC(e.children[t])}function WC(e,r,i,a={}){let o=new Set,s=!!(a.renderSupportingInfo||a.renderNameSuffix),c=a.refreshOnDocumentLoad??!0,l=function(e){if(!y.updater)throw Error(`kb has no updater`);y.updater.update((0,t.st)(r,_,e,m),[],function(e,t,n,r){t?d():_C(void 0,`Error deleting one: `+n)})};function u(t){let n=t,r={noun:v};if(r.renderSupportingInfo=a.renderSupportingInfo,r.renderNameSuffix=a.renderNameSuffix,s&&c&&t?.uri&&y.fetcher){let e=t.doc(),n=e?.uri?y.fetcher.requested?.[e.uri]:void 0,r=n!==`done`&&n!==`failed`;e?.uri&&r&&!o.has(e.uri)&&(o.add(e.uri),y.fetcher.nowOrWhenFetched(e,void 0,()=>{o.delete(e.uri),d()}))}return h&&(r.deleteFunction=function(){l(n)}),RC(e,_,t,r)}let d=function(){let e=y.each(r,_);e.sort(),uy(C,e,u,s?function(e,t){return u(t)}:void 0)};function f(e){let n=[];if(e.forEach(function(e){let i=(0,t.sym)(e);W(`Dropped on attachemnt `+e),n.push((0,t.st)(r,_,i,m))}),!y.updater)throw Error(`kb has no updater`);y.updater.update([],n,function(e,t,n,r){t?d():_C(void 0,`Error adding one: `+n)})}function p(e){XS(y.fetcher,e,a.uploadFolder?.uri,a.uploadFolder?.uri,function(e,n){let i=[(0,t.st)(r,_,y.sym(n),m)];if(!y.updater)throw Error(`kb has no updater`);y.updater.update([],i,function(e,t,n,r){t?d():_C(void 0,`Error adding link to uploaded file: `+n)})})}let m=a.doc||r.doc();a.modify===void 0&&(a.modify=!0);let h=a.modify,g=a.promptIcon||pC+`noun_748003.svg`,_=a.predicate||R.wf(`attachment`),v=a.noun||`attachment`,y=n.store,b=i.appendChild(e.createElement(`table`));b.setAttribute(`style`,`margin-top: 1em; margin-bottom: 1em;`);let x=b.appendChild(e.createElement(`tr`)),S=x.appendChild(e.createElement(`td`)),C=x.appendChild(e.createElement(`td`)).appendChild(e.createElement(`table`));if(C.appendChild(e.createElement(`tr`)),b.refresh=d,d(),h){let t=X(e,g,`Drop attachments here`);S.appendChild(t);let n=a.uploadFolder?p:null;JS(t,f,n);let r=t.querySelector(`img`);if(r&&JS(r,f,n),JS(S,f,n),a.uploadFolder){let t=cw(e,p);S.appendChild(t)}}return b}function GC(e){e.preventDefault(),e.stopPropagation();let t=my(e).getAttribute(`href`);if(!t)return W(`openHrefInOutlineMode: No href found!
1750
+ `);let r=window.document;r.outlineManager?r.outlineManager.GotoSubject(n.store.sym(t),!0,void 0,!0,void 0):window&&window.panes&&window.panes.getOutliner?window.panes.getOutliner().GotoSubject(n.store.sym(t),!0,void 0,!0,void 0):W(`ERROR: Can't access outline manager in this config`)}function KC(e){if(e.uri===void 0)return;let t=e.uri;if(t.slice(0,7)!==`http://`)return;t=t.slice(7);let r=t.indexOf(`#`);if(r>=0)t=t.slice(0,r);else{let e=t.lastIndexOf(`/`);if(e<0)return;t=t.slice(0,e)}return n.store.sym(`http://tabulator.org/wiki/annnotation/`+t)}function qC(){let e={};return n.store.statementsMatching(void 0,R.rdf(`type`),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0)}),n.store.statementsMatching(void 0,R.rdfs(`subClassOf`),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0),t.subject.value&&(e[t.subject.value]=!0)}),n.store.each(void 0,R.rdf(`type`),R.rdfs(`Class`)).forEach(function(t){t.value&&(e[t.value]=!0)}),e}function JC(e){let t={},n={},r={},i=0,a=0,o=0,s=e.predicateIndex;for(let e in s)s[e][0].object.termType===`Literal`?(n[e]=!0,a++):(r[e]=!0,i++);let c=e.each(void 0,R.rdf(`type`),R.rdf(`Property`));for(let e=0;e<c.length;e++){let t=c[e].toNT();!r[t]&&!n[t]&&(n[t]=!0,r[t]=!0,o++)}return t.op=r,t.dp=n,Vv(`propertyTriage: ${i} non-lit, ${a} literal. ${o} unknown.`),t}function YC(e,t){let n=e.createElement(`button`);return n.setAttribute(`type`,`button`),n.textContent=`Goto `+V(t),n.addEventListener(`click`,function(n){e.outlineManager.GotoSubject(t,!0,void 0,!0,void 0)},!0),n}function XC(e,t){let n=e.createElement(`button`);return n.setAttribute(`type`,`button`),n.textContent=`✕`,n.addEventListener(`click`,function(e){t.parentNode.removeChild(t)},!0),n}function ZC(e,t,n,r,i,a,o,s,c){return QC(e.createElement(`div`),e,t,n,r,i,a,o,s,c)}function QC(e,t,n,r,i,a,o,s,c,l){let u=`border: 0.1em solid #ddd; border-bottom: none; width: 95%; height: 2em; padding: 0.5em;`,d=null;e.innerHTML=``;let f=function(e,o){let f,p,m=function(){let e=a?n.each(void 0,i,o):n.each(o,i);_.setAttribute(`class`,e.length===0?`hideTillHover`:``),p.setAttribute(`src`,s.connectIcon||pC+`noun_25830.svg`),p.setAttribute(`title`,e.length?e.length:`attach`)};f=$C.twoLine.widgetForClass(r)(t,o),f.setAttribute(`style`,u);let h=t.createElement(`div`);h.setAttribute(`class`,`hideTillHover`),h.setAttribute(`style`,`float:right; width:10%`);let g=t.createElement(`a`);g.setAttribute(`href`,o.uri),g.setAttribute(`style`,`float:right`),h.appendChild(g).textContent=`>`,e.appendChild(h);let _=t.createElement(`div`);return _.setAttribute(`style`,(a?`float:left;`:`float:right;`)+` width:30px;`),p=t.createElement(`img`),m(),_.appendChild(p),e.appendChild(_),f.addEventListener(`click`,function(e){d===f?(f.setAttribute(`style`,u),d=null):(d&&d.setAttribute(`style`,u),f.setAttribute(`style`,`border: 0.1em solid #ddd; border-bottom: none; width: 95%; height: 2em; padding: 0.5em;background-color: #ccc; color:black;`),d=f),c(o,e,d===f),m()},!1),p.addEventListener(`click`,function(e){l(o,e,a,m)},!1),e.appendChild(f),e};for(let n=0;n<o.length;n++){let r=t.createElement(`div`);e.appendChild(r),f(r,o[n])}return e}var $C={};function ew(e,t){let n=e.createElement(`div`);return n.textContent=V(t),n}function tw(e){let t=$C.twoLine[e.uri],r=n.store;if(t)return t;let i=r.findSuperClassesNT(e);for(let e in i)if(t=$C.twoLine[r.fromNT(e).uri],t)return t;return $C.twoLine[``]}function nw(e,t){let r=``,i=function(e){let i=n.store.any(t,R.qu(e));return i||(r+=`@@ No value for `+e+`! `),i?Ey(i.value):`?`},a=e.createElement(`table`);return a.innerHTML=`
2056
1751
  <tr>
2057
1752
  <td colspan="2"> ${i(`payee`)}</td>
2058
1753
  < /tr>
@@ -2061,15 +1756,15 @@
2061
1756
  <td style = "text-align: right;">${i(`amount`)}</td>
2062
1757
  </tr>`,r&&(a.innerHTML=`
2063
1758
  <tr>
2064
- <td><a href="${H_(t.uri)}">${H_(r)}</a></td>
2065
- </tr>`),a}function Vy(e,t){let r=function(e){let r=n.store.any(t,e);return r?H_(r.value):`?`},i=e.createElement(`table`);return i.innerHTML=`
1759
+ <td><a href="${Ey(t.uri)}">${Ey(r)}</a></td>
1760
+ </tr>`),a}function rw(e,t){let r=function(e){let r=n.store.any(t,e);return r?Ey(r.value):`?`},i=e.createElement(`table`);return i.innerHTML=`
2066
1761
  <tr>
2067
- <td colspan="2">${r(I.dc(`title`))}</td>
1762
+ <td colspan="2">${r(R.dc(`title`))}</td>
2068
1763
  </tr>
2069
1764
  <tr style="color: #777">
2070
- <td>${r(I.cal(`dtstart`))}</td>
2071
- <td>${r(I.cal(`dtend`))}</td>
2072
- </tr>`,i}function Hy(e,t){let n=e.querySelectorAll(`link`);for(let e=0;e<n.length;e++)if((n[e].getAttribute(`rel`)||``)===`stylesheet`&&(n[e].getAttribute(`href`)||``)===t)return;let r=e.createElement(`link`);r.setAttribute(`rel`,`stylesheet`),r.setAttribute(`type`,`text/css`),r.setAttribute(`href`,t),e.getElementsByTagName(`head`)[0].appendChild(r)}function Uy(e){return Gy(e,`audio`)}function Wy(e){return Gy(e,`video`)}function Gy(e,r){let i={audio:`http://purl.org/dc/dcmitype/Sound`,image:`http://purl.org/dc/dcmitype/Image`,video:`http://purl.org/dc/dcmitype/MovingImage`},a=r||`image`,o=n.store.findTypeURIs(e),s=t.Util.mediaTypeClass(a+`/*`).uri.split(`*`)[0];for(let e in o)if(e.startsWith(s))return!0;return i[a]in o}function Ky(e,t){let n=e.createElement(`div`),r=n.appendChild(e.createElement(`input`));return r.setAttribute(`type`,`file`),r.setAttribute(`multiple`,`true`),r.addEventListener(`change`,e=>{V(`File drop event: `,e),e.files?t(e.files):e.target&&e.target.files?t(e.target.files):alert(`Sorry no files .. internal error?`)},!1),r.style=`display:none`,Mv(n.appendChild(Y(e,Zv+`noun_Upload_76574_000000.svg`,`Upload files`,e=>{r.click()})),null,t),n}Ly={line:{},twoLine:{"":Ry,"http://www.w3.org/2000/10/swap/pim/qif#Transaction":By,"http://www.w3.org/ns/pim/trip#Trip":Vy,widgetForClass:zy}};var qy={[I.ui(`ColorField`).uri]:{size:9,type:`color`,style:`height: 3em;`,dt:`color`,pattern:/^\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\s*$/},[I.ui(`DateField`).uri]:{size:20,type:`date`,dt:`date`,pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\s*$/},[I.ui(`DateTimeField`).uri]:{size:20,type:`datetime-local`,dt:`dateTime`,pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?(T[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?)?Z?\s*$/},[I.ui(`TimeField`).uri]:{size:10,type:`time`,dt:`time`,pattern:/^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/},[I.ui(`IntegerField`).uri]:{size:12,style:`text-align: right;`,dt:`integer`,pattern:/^\s*-?[0-9]+\s*$/},[I.ui(`DecimalField`).uri]:{size:12,style:`text-align: right;`,dt:`decimal`,pattern:/^\s*-?[0-9]*(\.[0-9]*)?\s*$/},[I.ui(`FloatField`).uri]:{size:12,style:`text-align: right;`,dt:`float`,pattern:/^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/},[I.ui(`SingleLineTextField`).uri]:{},[I.ui(`NamedNodeURIField`).uri]:{namedNode:!0},[I.ui(`TextField`).uri]:{},[I.ui(`PhoneField`).uri]:{size:20,uriPrefix:`tel:`,pattern:/^\+?[\d-]+[\d]*$/},[I.ui(`EmailField`).uri]:{size:30,uriPrefix:`mailto:`,pattern:/^\s*.*@.*\..*\s*$/},[I.ui(`Group`).uri]:{style:G.formGroupStyle},[I.ui(`Comment`).uri]:{element:`p`,style:G.commentStyle},[I.ui(`Heading`).uri]:{element:`h3`,style:G.formHeadingStyle}},Jy=n.solidLogicSingleton.store,X={};function Yy(e){let t=Jy,n=t.findTypeURIs(e),r=t.bottomTypeURIs(n),i=[];for(let e in r)i.push(e);return i[0]}function Xy(e,t){let n=Yy(t),r=X[n];return z(`paneUtils: Going to implement field `+t+` of type `+n),r||function(e,r){let i=K(e,`No handler for field `+t+` of type `+n);return r&&r.appendChild(i),i}}var Zy=`https://www.w3.org/ns/css#`;function Qy(e,t){let r=qy[Yy(t)]||{},i=n.store.any(t,I.ui(`style`));if(!i){r.style&&e.setAttribute(`style`,r.style);return}i.termType===`Literal`?i&&e.setAttribute(`style`,i.value):n.store.statementsMatching(i,null,null,t.doc()).forEach(t=>{if(t.predicate.uri&&t.predicate.uri.startsWith(Zy)){let n=t.predicate.uri.slice(26);try{e.style[n]=t.object.value}catch{console.warn(`setFieldStyle: Error setting element style ${n} to "${t.object.value}"`),console.warn(`setFieldStyle: ... Element tagName was "${e.tagName||`???`}"`)}}})}var $y=n.solidLogicSingleton.store;function eb(e,t,n,r,i){n.style.display=`flex`,n.style.flexDirection=`row`;let a=n.appendChild(e.createElement(`div`));a.style.width=W.formFieldNameBoxWidth;let o=n.appendChild(e.createElement(`div`));return a.setAttribute(`class`,`formFieldName`),a.setAttribute(`style`,G.formFieldNameBoxStyle),o.setAttribute(`class`,`formFieldValue`),i?a.appendChild(e.createTextNode(i)):t.any(r,I.ui(`property`))?a.appendChild(tb(e,t.any(r,I.ui(`property`)),r)):(o.appendChild(K(e,`No property or label given for form field: `+r)),a.appendChild(e.createTextNode(`???`))),o}function tb(e,t,n){let r=$y.any(n,I.ui(`label`));if(r||=B(t,!0),t===void 0)return e.createTextNode(`@@Internal error: undefined property`);let i=e.createElement(`a`);return t.uri&&i.setAttribute(`href`,t.uri),i.setAttribute(`style`,`color: #3B5998; text-decoration: none;`),i.textContent=r,i}function nb(e,t,n){let r=$y.statementsMatching(e,t);if(r.length===0)return n;if(!$y.updater)throw Error(`Store has no updater`);return r.length>0&&r[0].why.value&&$y.updater.editable(r[0].why.value,$y)?$y.sym(r[0].why.value):n}function rb(e,n,r,i,a,o,s){let c=$y,l=a.doc?a.doc():null,u=e.createElement(`div`),d=c.any(a,I.ui(`property`));if(n&&n.appendChild(u),!d)return u.appendChild(K(e,`Error: No property given for text field: `+a));let f=eb(e,c,u,a),p=c.anyJS(a,I.ui(`suppressEmptyUneditable`),null,l),m=qy[Yy(a)];m===void 0&&(m={style:``});let h=m.style||``,g=G.textInputStyle+h,_=e.createElement(`input`);_.style=g,f.appendChild(_),_.setAttribute(`type`,m.type?m.type:`text`);let v=(_.getAttribute(`type`)||``).toLowerCase(),y=v===`date`||v===`datetime-local`,b=c.anyJS(a,I.ui(`size`))||W.textInputSize||20;_.setAttribute(`size`,b);let x=c.any(a,I.ui(`maxLength`));_.setAttribute(`maxLength`,x?``+x:W.basicMaxLength),o||=nb(i,d,o);let S=c.any(i,d,void 0,o);if(S||=c.any(a,I.ui(`default`)),S&&S.value&&m.uriPrefix?_.value=decodeURIComponent(S.value.replace(m.uriPrefix,``)).replace(/ /g,``):S&&(_.value=S.value||S.value||``),_.setAttribute(`style`,g),!c.updater)throw Error(`kb has no updater`);return c.updater.editable(o.uri)?(_.addEventListener(`keyup`,function(e){m.pattern&&_.setAttribute(`style`,g+(_.value.match(m.pattern)?`color: green;`:`color: red;`))},!0),_.addEventListener(`change`,function(n){if(y&&e.activeElement===_){_.dataset&&(_.dataset.deferredChange=`true`);return}if(m.pattern&&!_.value.match(m.pattern))return;let r=!y;r&&(_.disabled=!0),_.setAttribute(`style`,g+`color: gray;`);let a=c.statementsMatching(i,d),l;m.namedNode?l=c.sym(_.value):m.uriPrefix?(l=encodeURIComponent(_.value.replace(/ /g,``)),l=c.sym(m.uriPrefix+_.value)):l=m.dt?new t.Literal(_.value.trim(),void 0,I.xsd(m.dt)):new t.Literal(_.value);let f=a.map(e=>(0,t.st)(e.subject,e.predicate,l,e.why));f.length===0&&(f=[(0,t.st)(i,d,l,o)]);function p(e,t,n){let r=[];if(t.forEach(e=>{r.includes(e.why.uri)||r.push(e.why.uri)}),e.forEach(e=>{r.includes(e.why.uri)||r.push(e.why.uri)}),r.length===0)throw Error(`updateMany has no docs to patch`);if(!c.updater)throw Error(`kb has no updater`);if(r.length===1)return c.updater.update(e,t,n);let i=r.pop(),a=t.filter(e=>e.why.uri===i),o=t.filter(e=>e.why.uri!==i),s=e.filter(e=>e.why.uri===i),l=e.filter(e=>e.why.uri!==i);c.updater.update(s,a,function(e,t,r){t?p(l,o,n):n(e,t,r)})}p(a,f,function(t,n,i){n?(r&&(_.disabled=!1),_.setAttribute(`style`,g)):u.appendChild(K(e,i)),s(n,i)})},!0),_.addEventListener(`blur`,function(e){if(y&&_.dataset&&_.dataset.deferredChange===`true`){delete _.dataset.deferredChange;let e=new Event(`change`,{bubbles:!0});_.dispatchEvent(e)}},!0),u):(_.readOnly=!0,_.style=G.textInputStyleUneditable+h,p&&_.value===``&&(u.style.display=`none`),u)}var ib=d({addDefaults:()=>sb,defaultPreferredLanguages:()=>ob,filterByLanguage:()=>ub,getPreferredLanguages:()=>lb,getPreferredLanguagesFor:()=>cb,languageCodeURIBase:()=>ab}),ab=`https://www.w3.org/ns/iana/language-code/`,ob=[`en`,`fr`,`de`,`it`,`ar`];function sb(e){return e||=[],e.concat(ob.filter(t=>!e.includes(t)))}async function cb(e){let t=e.doc();await n.store.fetcher?.load(t);let r=n.store.any(e,I.schema(`knowsLanguage`),null,t);if(!r)return ob;let i=[];return r.elements.forEach(e=>{let r=n.store.any(e,I.solid(`publicId`),null,t);if(!r){console.warn(`getPreferredLanguages: No publiID of language.`);return}if(!r.value.startsWith(`https://www.w3.org/ns/iana/language-code/`)){console.error(`What should be a language code ${r.value} does not start with ${ab}`);return}let a=r.value.slice(41);i.push(a)}),i.length>0?(console.log(` User knows languages with codes: "${i.join(`,`)}"`),sb(i)):null}async function lb(){let e=await n.authn.currentUser();if(e){let t=await cb(e);if(t)return t}if(typeof navigator<`u`){if(navigator.languages)return sb(navigator.languages.map(e=>e.split(`-`)[0]));if(navigator.language)return sb([navigator.language.split(`-`)[0]])}return ob}function ub(e,t){let n={};e.forEach(e=>{let t=e.subject.value;n[t]=n[t]||[],n[t].push(e)});let r=t||ob;r.reverse();let i=[];for(let e in n){let t=n[e].map(e=>{let t=e.name[`xml:lang`];return[r.indexOf(t),e]});t.sort(),t.reverse(),i.push(t[0][1])}return V(` Filter by language: ${e.length} -> ${i.length}`),i}var db=d({AUTOCOMPLETE_LIMIT:()=>200,ESCOResultToBindings:()=>Tb,bindingToTerm:()=>Cb,dbPediaTypeMap:()=>vb,dbpediaParameters:()=>_b,escoParameters:()=>gb,fetcherOptionsJsonPublicData:()=>hb,getDbpediaDetails:()=>Fb,getWikidataDetails:()=>Mb,getWikidataDetailsOld:()=>Nb,getWikidataLocation:()=>Pb,instituteDetailsWikidataQuery:()=>mb,loadFromBindings:()=>wb,loadPublicDataThing:()=>jb,queryESCODataByName:()=>Eb,queryPublicDataByName:()=>Ob,queryPublicDataConstruct:()=>Ab,queryPublicDataSelect:()=>kb,variableNameToPredicateMap:()=>Sb,wikidataClasses:()=>pb,wikidataIncomingClassMap:()=>xb,wikidataOutgoingClassMap:()=>yb,wikidataParameters:()=>bb}),fb=/\$\(subject\)/g,pb={Corporation:`http://www.wikidata.org/entity/Q6881511`,EducationalOrganization:`http://www.wikidata.org/entity/Q178706`,GovernmentOrganization:`http://www.wikidata.org/entity/Q327333`,MedicalOrganization:`http://www.wikidata.org/entity/Q4287745`,MusicGroup:`http://www.wikidata.org/entity/Q32178211`,NGO:`http://www.wikidata.org/entity/Q163740`,Occupation:`http://www.wikidata.org/entity/Q28640`,Project:`http://www.wikidata.org/entity/Q170584`,ResearchOrganization:`http://www.wikidata.org/entity/Q31855`,SportsOrganization:`http://www.wikidata.org/entity/Q4438121`},mb=`prefix vcard: <http://www.w3.org/2006/vcard/ns#>
1765
+ <td>${r(R.cal(`dtstart`))}</td>
1766
+ <td>${r(R.cal(`dtend`))}</td>
1767
+ </tr>`,i}function iw(e,t){let n=e.querySelectorAll(`link`);for(let e=0;e<n.length;e++)if((n[e].getAttribute(`rel`)||``)===`stylesheet`&&(n[e].getAttribute(`href`)||``)===t)return;let r=e.createElement(`link`);r.setAttribute(`rel`,`stylesheet`),r.setAttribute(`type`,`text/css`),r.setAttribute(`href`,t),e.getElementsByTagName(`head`)[0].appendChild(r)}function aw(e){return sw(e,`audio`)}function ow(e){return sw(e,`video`)}function sw(e,r){let i={audio:`http://purl.org/dc/dcmitype/Sound`,image:`http://purl.org/dc/dcmitype/Image`,video:`http://purl.org/dc/dcmitype/MovingImage`},a=r||`image`,o=n.store.findTypeURIs(e),s=t.Util.mediaTypeClass(a+`/*`).uri.split(`*`)[0];for(let e in o)if(e.startsWith(s))return!0;return i[a]in o}function cw(e,t){let n=e.createElement(`div`),r=n.appendChild(e.createElement(`input`));return r.setAttribute(`type`,`file`),r.setAttribute(`multiple`,`true`),r.addEventListener(`change`,e=>{W(`File drop event: `,e),e.files?t(e.files):e.target&&e.target.files?t(e.target.files):alert(`Sorry no files .. internal error?`)},!1),r.style=`display:none`,JS(n.appendChild(X(e,pC+`noun_Upload_76574_000000.svg`,`Upload files`,e=>{r.click()})),null,t),n}$C={line:{},twoLine:{"":ew,"http://www.w3.org/2000/10/swap/pim/qif#Transaction":nw,"http://www.w3.org/ns/pim/trip#Trip":rw,widgetForClass:tw}};var lw={[R.ui(`ColorField`).uri]:{size:9,type:`color`,style:`height: 3em;`,dt:`color`,pattern:/^\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\s*$/},[R.ui(`DateField`).uri]:{size:20,type:`date`,dt:`date`,pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\s*$/},[R.ui(`DateTimeField`).uri]:{size:20,type:`datetime-local`,dt:`dateTime`,pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?(T[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?)?Z?\s*$/},[R.ui(`TimeField`).uri]:{size:10,type:`time`,dt:`time`,pattern:/^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/},[R.ui(`IntegerField`).uri]:{size:12,style:`text-align: right;`,dt:`integer`,pattern:/^\s*-?[0-9]+\s*$/},[R.ui(`DecimalField`).uri]:{size:12,style:`text-align: right;`,dt:`decimal`,pattern:/^\s*-?[0-9]*(\.[0-9]*)?\s*$/},[R.ui(`FloatField`).uri]:{size:12,style:`text-align: right;`,dt:`float`,pattern:/^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/},[R.ui(`SingleLineTextField`).uri]:{},[R.ui(`NamedNodeURIField`).uri]:{namedNode:!0},[R.ui(`TextField`).uri]:{},[R.ui(`PhoneField`).uri]:{size:20,uriPrefix:`tel:`,pattern:/^\+?[\d-]+[\d]*$/},[R.ui(`EmailField`).uri]:{size:30,uriPrefix:`mailto:`,pattern:/^\s*.*@.*\..*\s*$/},[R.ui(`Group`).uri]:{style:U.formGroupStyle},[R.ui(`Comment`).uri]:{element:`p`,style:U.commentStyle},[R.ui(`Heading`).uri]:{element:`h3`,style:U.formHeadingStyle}},uw=n.solidLogicSingleton.store,Z={};function dw(e){let t=uw,n=t.findTypeURIs(e),r=t.bottomTypeURIs(n),i=[];for(let e in r)i.push(e);return i[0]}function fw(e,t){let n=dw(t),r=Z[n];return Bv(`paneUtils: Going to implement field `+t+` of type `+n),r||function(e,r){let i=q(e,`No handler for field `+t+` of type `+n);return r&&r.appendChild(i),i}}var pw=`https://www.w3.org/ns/css#`;function mw(e,t){let r=lw[dw(t)]||{},i=n.store.any(t,R.ui(`style`));if(!i){r.style&&e.setAttribute(`style`,r.style);return}i.termType===`Literal`?i&&e.setAttribute(`style`,i.value):n.store.statementsMatching(i,null,null,t.doc()).forEach(t=>{if(t.predicate.uri&&t.predicate.uri.startsWith(pw)){let n=t.predicate.uri.slice(26);try{e.style[n]=t.object.value}catch{console.warn(`setFieldStyle: Error setting element style ${n} to "${t.object.value}"`),console.warn(`setFieldStyle: ... Element tagName was "${e.tagName||`???`}"`)}}})}var hw=n.solidLogicSingleton.store;function gw(e,t,n,r,i){n.style.display=`flex`,n.style.flexDirection=`row`;let a=n.appendChild(e.createElement(`div`));a.style.width=H.formFieldNameBoxWidth;let o=n.appendChild(e.createElement(`div`));return a.setAttribute(`class`,`formFieldName`),a.setAttribute(`style`,U.formFieldNameBoxStyle),o.setAttribute(`class`,`formFieldValue`),i?a.appendChild(e.createTextNode(i)):t.any(r,R.ui(`property`))?a.appendChild(_w(e,t.any(r,R.ui(`property`)),r)):(o.appendChild(q(e,`No property or label given for form field: `+r)),a.appendChild(e.createTextNode(`???`))),o}function _w(e,t,n){let r=hw.any(n,R.ui(`label`));if(r||=V(t,!0),t===void 0)return e.createTextNode(`@@Internal error: undefined property`);let i=e.createElement(`a`);return t.uri&&i.setAttribute(`href`,t.uri),i.setAttribute(`style`,`color: #3B5998; text-decoration: none;`),i.textContent=r,i}function vw(e,t,n){let r=hw.statementsMatching(e,t);if(r.length===0)return n;if(!hw.updater)throw Error(`Store has no updater`);return r.length>0&&r[0].why.value&&hw.updater.editable(r[0].why.value,hw)?hw.sym(r[0].why.value):n}function yw(e,n,r,i,a,o,s){let c=hw,l=a.doc?a.doc():null,u=e.createElement(`div`),d=c.any(a,R.ui(`property`));if(n&&n.appendChild(u),!d)return u.appendChild(q(e,`Error: No property given for text field: `+a));let f=gw(e,c,u,a),p=c.anyJS(a,R.ui(`suppressEmptyUneditable`),null,l),m=lw[dw(a)];m===void 0&&(m={style:``});let h=m.style||``,g=U.textInputStyle+h,_=e.createElement(`input`);_.style=g,f.appendChild(_),_.setAttribute(`type`,m.type?m.type:`text`);let v=(_.getAttribute(`type`)||``).toLowerCase(),y=v===`date`||v===`datetime-local`,b=c.anyJS(a,R.ui(`size`))||H.textInputSize||20;_.setAttribute(`size`,b);let x=c.any(a,R.ui(`maxLength`));_.setAttribute(`maxLength`,x?``+x:H.basicMaxLength),o||=vw(i,d,o);let S=c.any(i,d,void 0,o);if(S||=c.any(a,R.ui(`default`)),S&&S.value&&m.uriPrefix?_.value=decodeURIComponent(S.value.replace(m.uriPrefix,``)).replace(/ /g,``):S&&(_.value=S.value||S.value||``),_.setAttribute(`style`,g),!c.updater)throw Error(`kb has no updater`);return c.updater.editable(o.uri)?(_.addEventListener(`keyup`,function(e){m.pattern&&_.setAttribute(`style`,g+(_.value.match(m.pattern)?`color: green;`:`color: red;`))},!0),_.addEventListener(`change`,function(n){if(y&&e.activeElement===_){_.dataset&&(_.dataset.deferredChange=`true`);return}if(m.pattern&&!_.value.match(m.pattern))return;let r=!y;r&&(_.disabled=!0),_.setAttribute(`style`,g+`color: gray;`);let a=c.statementsMatching(i,d),l;m.namedNode?l=c.sym(_.value):m.uriPrefix?(l=encodeURIComponent(_.value.replace(/ /g,``)),l=c.sym(m.uriPrefix+_.value)):l=m.dt?new t.Literal(_.value.trim(),void 0,R.xsd(m.dt)):new t.Literal(_.value);let f=a.map(e=>(0,t.st)(e.subject,e.predicate,l,e.why));f.length===0&&(f=[(0,t.st)(i,d,l,o)]);function p(e,t,n){let r=[];if(t.forEach(e=>{r.includes(e.why.uri)||r.push(e.why.uri)}),e.forEach(e=>{r.includes(e.why.uri)||r.push(e.why.uri)}),r.length===0)throw Error(`updateMany has no docs to patch`);if(!c.updater)throw Error(`kb has no updater`);if(r.length===1)return c.updater.update(e,t,n);let i=r.pop(),a=t.filter(e=>e.why.uri===i),o=t.filter(e=>e.why.uri!==i),s=e.filter(e=>e.why.uri===i),l=e.filter(e=>e.why.uri!==i);c.updater.update(s,a,function(e,t,r){t?p(l,o,n):n(e,t,r)})}p(a,f,function(t,n,i){n?(r&&(_.disabled=!1),_.setAttribute(`style`,g)):u.appendChild(q(e,i)),s(n,i)})},!0),_.addEventListener(`blur`,function(e){if(y&&_.dataset&&_.dataset.deferredChange===`true`){delete _.dataset.deferredChange;let e=new Event(`change`,{bubbles:!0});_.dispatchEvent(e)}},!0),u):(_.readOnly=!0,_.style=U.textInputStyleUneditable+h,p&&_.value===``&&(u.style.display=`none`),u)}var bw=d({addDefaults:()=>Cw,defaultPreferredLanguages:()=>Sw,filterByLanguage:()=>Ew,getPreferredLanguages:()=>Tw,getPreferredLanguagesFor:()=>ww,languageCodeURIBase:()=>xw}),xw=`https://www.w3.org/ns/iana/language-code/`,Sw=[`en`,`fr`,`de`,`it`,`ar`];function Cw(e){return e||=[],e.concat(Sw.filter(t=>!e.includes(t)))}async function ww(e){let t=e.doc();await n.store.fetcher?.load(t);let r=n.store.any(e,R.schema(`knowsLanguage`),null,t);if(!r)return Sw;let i=[];return r.elements.forEach(e=>{let r=n.store.any(e,R.solid(`publicId`),null,t);if(!r){console.warn(`getPreferredLanguages: No publiID of language.`);return}if(!r.value.startsWith(`https://www.w3.org/ns/iana/language-code/`)){console.error(`What should be a language code ${r.value} does not start with ${xw}`);return}let a=r.value.slice(41);i.push(a)}),i.length>0?(console.log(` User knows languages with codes: "${i.join(`,`)}"`),Cw(i)):null}async function Tw(){let e=await n.authn.currentUser();if(e){let t=await ww(e);if(t)return t}if(typeof navigator<`u`){if(navigator.languages)return Cw(navigator.languages.map(e=>e.split(`-`)[0]));if(navigator.language)return Cw([navigator.language.split(`-`)[0]])}return Sw}function Ew(e,t){let n={};e.forEach(e=>{let t=e.subject.value;n[t]=n[t]||[],n[t].push(e)});let r=t||Sw;r.reverse();let i=[];for(let e in n){let t=n[e].map(e=>{let t=e.name[`xml:lang`];return[r.indexOf(t),e]});t.sort(),t.reverse(),i.push(t[0][1])}return W(` Filter by language: ${e.length} -> ${i.length}`),i}var Dw=d({AUTOCOMPLETE_LIMIT:()=>200,ESCOResultToBindings:()=>Vw,bindingToTerm:()=>zw,dbPediaTypeMap:()=>Pw,dbpediaParameters:()=>Nw,escoParameters:()=>Mw,fetcherOptionsJsonPublicData:()=>jw,getDbpediaDetails:()=>Zw,getWikidataDetails:()=>Jw,getWikidataDetailsOld:()=>Yw,getWikidataLocation:()=>Xw,instituteDetailsWikidataQuery:()=>Aw,loadFromBindings:()=>Bw,loadPublicDataThing:()=>qw,queryESCODataByName:()=>Hw,queryPublicDataByName:()=>Ww,queryPublicDataConstruct:()=>Kw,queryPublicDataSelect:()=>Gw,variableNameToPredicateMap:()=>Rw,wikidataClasses:()=>kw,wikidataIncomingClassMap:()=>Lw,wikidataOutgoingClassMap:()=>Fw,wikidataParameters:()=>Iw}),Ow=/\$\(subject\)/g,kw={Corporation:`http://www.wikidata.org/entity/Q6881511`,EducationalOrganization:`http://www.wikidata.org/entity/Q178706`,GovernmentOrganization:`http://www.wikidata.org/entity/Q327333`,MedicalOrganization:`http://www.wikidata.org/entity/Q4287745`,MusicGroup:`http://www.wikidata.org/entity/Q32178211`,NGO:`http://www.wikidata.org/entity/Q163740`,Occupation:`http://www.wikidata.org/entity/Q28640`,Project:`http://www.wikidata.org/entity/Q170584`,ResearchOrganization:`http://www.wikidata.org/entity/Q31855`,SportsOrganization:`http://www.wikidata.org/entity/Q4438121`},Aw=`prefix vcard: <http://www.w3.org/2006/vcard/ns#>
2073
1768
  CONSTRUCT
2074
1769
  { wd:Q49108 vcard:fn ?itemLabel.
2075
1770
  wd:Q49108 rdf:type ?klass. ?klass rdfs:label ?klassLabel; rdfs:comment ?klassDescription .
@@ -2104,10 +1799,10 @@ WHERE
2104
1799
  optional { ?location wdt:P17 ?country }
2105
1800
  }
2106
1801
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it". }
2107
- }`,hb={credentials:`omit`,headers:new Headers({Accept:`application/json`})},gb={label:`ESCO`,logo:n.store.sym(`https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif`),searchByNameURI:`https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)`},_b={label:`DBPedia`,logo:n.store.sym(`https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png`),searchByNameQuery:`select distinct ?subject, ?name where {
1802
+ }`,jw={credentials:`omit`,headers:new Headers({Accept:`application/json`})},Mw={label:`ESCO`,logo:n.store.sym(`https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif`),searchByNameURI:`https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)`},Nw={label:`DBPedia`,logo:n.store.sym(`https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png`),searchByNameQuery:`select distinct ?subject, ?name where {
2108
1803
  ?subject a $(targetClass); rdfs:label ?name
2109
1804
  FILTER regex(?name, "$(name)", "i")
2110
- } LIMIT $(limit)`,endpoint:`https://dbpedia.org/sparql/`},vb={AcademicInsitution:`http://umbel.org/umbel/rc/EducationalOrganization`},yb={AcademicInsitution:`http://www.wikidata.org/entity/Q4671277`,Enterprise:`http://www.wikidata.org/entity/Q6881511`,Business:`http://www.wikidata.org/entity/Q4830453`,NGO:`http://www.wikidata.org/entity/Q79913`,CharitableOrganization:`http://www.wikidata.org/entity/Q708676`,Insitute:`http://www.wikidata.org/entity/Q1664720`},bb={label:`WikiData`,limit:3e3,logo:n.store.sym(`https://www.wikimedia.org/static/images/project-logos/wikidatawiki.png`),endpoint:`https://query.wikidata.org/sparql`,searchByNameQuery:`SELECT ?subject ?name
1805
+ } LIMIT $(limit)`,endpoint:`https://dbpedia.org/sparql/`},Pw={AcademicInsitution:`http://umbel.org/umbel/rc/EducationalOrganization`},Fw={AcademicInsitution:`http://www.wikidata.org/entity/Q4671277`,Enterprise:`http://www.wikidata.org/entity/Q6881511`,Business:`http://www.wikidata.org/entity/Q4830453`,NGO:`http://www.wikidata.org/entity/Q79913`,CharitableOrganization:`http://www.wikidata.org/entity/Q708676`,Insitute:`http://www.wikidata.org/entity/Q1664720`},Iw={label:`WikiData`,limit:3e3,logo:n.store.sym(`https://www.wikimedia.org/static/images/project-logos/wikidatawiki.png`),endpoint:`https://query.wikidata.org/sparql`,searchByNameQuery:`SELECT ?subject ?name
2111
1806
  WHERE {
2112
1807
  ?klass wdt:P279* $(targetClass) .
2113
1808
  ?subject wdt:P31 ?klass .
@@ -2129,7 +1824,7 @@ WHERE
2129
1824
  # ?subsidiary rdfs:label ?subsidiaryLabel .
2130
1825
 
2131
1826
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], fr". }
2132
- }`},xb={"http://www.wikidata.org/entity/Q15936437":I.schema(`CollegeOrUniversity`),"http://www.wikidata.org/entity/Q1664720":I.schema(`EducationalOrganization`),"http://www.wikidata.org/entity/Q43229":I.schema(`Organization`),"http://www.wikidata.org/entity/Q3918":I.schema(`CollegeOrUniversity`),"http://www.wikidata.org/entity/Q170584":I.schema(`Project`),"http://www.wikidata.org/entity/Q327333":I.schema(`GovernmentOrganization`),"http://www.wikidata.org/entity/Q2221906":I.schema(`Place`),"http://www.wikidata.org/entity/Q167037":I.schema(`Corporation`)},Sb={targetClass:I.rdf(`type`),sealImage:I.schema(`logo`),shortName:I.foaf(`nick`),subsidiary:I.schema(`subOrganization`),city:I.vcard(`locality`),state:I.vcard(`region`),country:I.vcard(`country-name`),homepage:I.foaf(`homepage`),lat:I.schema(`latitude`),long:I.schema(`longitude`)};function Cb(e){let r=e.type.toLowerCase();if(r===`uri`||r===`iri`)return n.store.sym(e.value);if(r===`literal`)return e[`xml:lang`]?new t.Literal(e.value,e[`xml:lang`]):new t.Literal(e.value);throw Error(`bindingToTerm: Unexpected type "${e.type}" in sparql binding}`)}function wb(e,n,r,i,a=Sb){let o={};V(`loadFromBindings: subject: ${n}`),V(` doc: ${i}`),r.forEach(e=>{for(let t in e){let n=e[t],r=JSON.stringify(n);o[t]=o[t]||new Set,o[t].add(r)}});for(let r in o){let s=o[r];V(` results ${r} -> ${s}`),s.forEach(o=>{let s=JSON.parse(o),{type:c,value:l}=s,u;if(c===`uri`)u=e.sym(l);else if(c===`literal`)u=new t.Literal(l,s.language,s.datatype);else throw Error(`loadFromBindings: unexpected type: ${c}`);if(r===`type`)xb[l]?u=xb[l]:H(`Unmapped Wikidata Class: `+l);else if(r===`coordinates`){V(` @@@ hey a point: `+l);let r=/.*\(([-0-9.-]*) ([-0-9.-]*)\)/.exec(l);if(r){let a=I.xsd(`float`),o=new t.Literal(r[1],null,a),s=new t.Literal(r[2],null,a);e.add(n,I.schema(`longitude`),s,i),e.add(n,I.schema(`latitude`),o,i)}else V(`Bad coordinates syntax: `+l)}else{let t=a[r]||I.schema(r);e.add(n,t,u,i),V(` public data ${t} ${u}.`)}})}}function Tb(e){return e._embedded.results.map(e=>{let t=e.title,n=e.uri;return{name:{value:t,type:`literal`},subject:{type:`IRI`,value:n}}})}async function Eb(e,t,r){if(!r.searchByNameURI)throw Error(`Missing queryTarget.searchByNameURI on queryESCODataByName`);let i=r.limit||200,a=r.searchByNameURI.replace(`$(name)`,e).replace(`$(limit)`,``+i).replace(`$(targetClass)`,t.toNT());V(`Querying ESCO data - uri: `+a);let o=(await n.store.fetcher?.webOperation(`GET`,a,hb))?.responseText||``;if(V(` Query result text`+o.slice(0,500)+`...`),o.length===0)throw Error(`Wot no text back from ESCO query `+a);let s=JSON.parse(o);return V(` ESCO Query result JSON`+JSON.stringify(s,null,4).slice(0,500)+`...`),Tb(s)}function Db(e){let t=e.indexOf(`SPARQL-QUERY`);if(t<0)return e;H(` ### Fixing JSON with wikidata error code injection `+e.slice(t,t+200));let n=e.lastIndexOf(`}, {`);return e.slice(0,n)+` } ] } } `}async function Ob(e,t,r,i){function a(n){let r=i.limit||200;return n.replace(`$(name)`,e).replace(`$(limit)`,``+r).replace(`$(language)`,o).replace(`$(targetClass)`,t.toNT())}if(!t)throw Error(`queryPublicDataByName: No class provided`);let o=(await lb()||ob)[0]||`en`;if(i.searchByNameQuery){let e=a(i.searchByNameQuery);return V(`Querying public data - sparql: `+e),kb(e,i)}else if(i.searchByNameURI){let e=a(i.searchByNameURI),t;try{t=await n.store.fetcher?.webOperation(`GET`,e,hb)}catch(t){throw Error(`Exception when trying to fetch ${e} \n ${t}`)}let r=t.responseText||``;if(t.status!==200)throw Error(`HTTP error status ${t.status} trying to fetch ${e} `);if(V(` Query result text`+r.slice(0,500)+`...`),r.length===0)throw Error(`queryPublicDataByName: No text back from public data query `+e);let o=Db(r),s=JSON.parse(o);if(V(` API Query result JSON`+JSON.stringify(s,null,4).slice(0,500)+`...`),s._embedded)return V(` Looks like ESCO`),Tb(s);throw alert(`Code me: unrecognized API return format`),Error(`*** Need to add code to parse unrecognized API JSON return\n${JSON.stringify(s,null,4)}`)}else throw Error(`Query source must have either rest API or SPARQL endpoint.`)}async function kb(e,t){if(!t.endpoint)throw Error(`Missing queryTarget.endpoint required for queryPublicDataSelect`);let r=new URL(t.endpoint);r.searchParams.append(`query`,e);let i=r.href;V(` queryPublicDataSelect uri: `+i);let a=new Headers;a.append(`Accept`,`application/json`);let o={credentials:`omit`,headers:a},s=(await n.store.fetcher?.webOperation(`GET`,i,o))?.responseText||``;if(s.length===0)throw Error(`No text back from query `+i);let c=Db(s),l=JSON.parse(c);return V(` Query result JSON`+JSON.stringify(l,null,4).slice(0,100)+`...`),l.results.bindings}async function Ab(e,r,i){if(V(`queryPublicDataConstruct: sparql:`,e),!i.endpoint)throw Error(`Missing queryTarget.endpoint required for queryPublicDataConstruct`);let a=new URL(i.endpoint);a.searchParams.append(`query`,e);let o=a.href;V(` queryPublicDataConstruct uri: `+o);let s=new Headers;s.append(`Accept`,`text/turtle`);let c={credentials:`omit`,headers:s},l=(await n.store.fetcher?.webOperation(`GET`,o,c))?.responseText||`No response text?`;if(V(` queryPublicDataConstruct result text:`+(l.length>500?l.slice(0,200)+` ... `+l.slice(-200):l)),l.length===0)throw Error(`queryPublicDataConstruct: No text back from construct query:`+o);(0,t.parse)(l,n.store,r.uri,`text/turtle`)}async function jb(e,t,n){if(n.uri.startsWith(`https://dbpedia.org/resource/`))return Fb(e,t,n);if(n.uri.match(/^https?:\/\/www\.wikidata\.org\/entity\/.*/))await Mb(e,t,n);else{let t=n.uri.startsWith(`http:`)?e.sym(`https:`+n.uri.slice(5)):n,r=new Headers;return r.append(`Accept`,`text/turtle`),e.fetcher.load(t,{credentials:`omit`,headers:r})}}async function Mb(e,t,n){await Ab(mb.replace(/wd:Q49108/g,n.toNT()),n,bb),V(`getWikidataDetails: loaded.`,n)}async function Nb(e,t,n){wb(e,n,await kb(`select distinct * where {
1827
+ }`},Lw={"http://www.wikidata.org/entity/Q15936437":R.schema(`CollegeOrUniversity`),"http://www.wikidata.org/entity/Q1664720":R.schema(`EducationalOrganization`),"http://www.wikidata.org/entity/Q43229":R.schema(`Organization`),"http://www.wikidata.org/entity/Q3918":R.schema(`CollegeOrUniversity`),"http://www.wikidata.org/entity/Q170584":R.schema(`Project`),"http://www.wikidata.org/entity/Q327333":R.schema(`GovernmentOrganization`),"http://www.wikidata.org/entity/Q2221906":R.schema(`Place`),"http://www.wikidata.org/entity/Q167037":R.schema(`Corporation`)},Rw={targetClass:R.rdf(`type`),sealImage:R.schema(`logo`),shortName:R.foaf(`nick`),subsidiary:R.schema(`subOrganization`),city:R.vcard(`locality`),state:R.vcard(`region`),country:R.vcard(`country-name`),homepage:R.foaf(`homepage`),lat:R.schema(`latitude`),long:R.schema(`longitude`)};function zw(e){let r=e.type.toLowerCase();if(r===`uri`||r===`iri`)return n.store.sym(e.value);if(r===`literal`)return e[`xml:lang`]?new t.Literal(e.value,e[`xml:lang`]):new t.Literal(e.value);throw Error(`bindingToTerm: Unexpected type "${e.type}" in sparql binding}`)}function Bw(e,n,r,i,a=Rw){let o={};W(`loadFromBindings: subject: ${n}`),W(` doc: ${i}`),r.forEach(e=>{for(let t in e){let n=e[t],r=JSON.stringify(n);o[t]=o[t]||new Set,o[t].add(r)}});for(let r in o){let s=o[r];W(` results ${r} -> ${s}`),s.forEach(o=>{let s=JSON.parse(o),{type:c,value:l}=s,u;if(c===`uri`)u=e.sym(l);else if(c===`literal`)u=new t.Literal(l,s.language,s.datatype);else throw Error(`loadFromBindings: unexpected type: ${c}`);if(r===`type`)Lw[l]?u=Lw[l]:G(`Unmapped Wikidata Class: `+l);else if(r===`coordinates`){W(` @@@ hey a point: `+l);let r=/.*\(([-0-9.-]*) ([-0-9.-]*)\)/.exec(l);if(r){let a=R.xsd(`float`),o=new t.Literal(r[1],null,a),s=new t.Literal(r[2],null,a);e.add(n,R.schema(`longitude`),s,i),e.add(n,R.schema(`latitude`),o,i)}else W(`Bad coordinates syntax: `+l)}else{let t=a[r]||R.schema(r);e.add(n,t,u,i),W(` public data ${t} ${u}.`)}})}}function Vw(e){return e._embedded.results.map(e=>{let t=e.title,n=e.uri;return{name:{value:t,type:`literal`},subject:{type:`IRI`,value:n}}})}async function Hw(e,t,r){if(!r.searchByNameURI)throw Error(`Missing queryTarget.searchByNameURI on queryESCODataByName`);let i=r.limit||200,a=r.searchByNameURI.replace(`$(name)`,e).replace(`$(limit)`,``+i).replace(`$(targetClass)`,t.toNT());W(`Querying ESCO data - uri: `+a);let o=(await n.store.fetcher?.webOperation(`GET`,a,jw))?.responseText||``;if(W(` Query result text`+o.slice(0,500)+`...`),o.length===0)throw Error(`Wot no text back from ESCO query `+a);let s=JSON.parse(o);return W(` ESCO Query result JSON`+JSON.stringify(s,null,4).slice(0,500)+`...`),Vw(s)}function Uw(e){let t=e.indexOf(`SPARQL-QUERY`);if(t<0)return e;G(` ### Fixing JSON with wikidata error code injection `+e.slice(t,t+200));let n=e.lastIndexOf(`}, {`);return e.slice(0,n)+` } ] } } `}async function Ww(e,t,r,i){function a(n){let r=i.limit||200;return n.replace(`$(name)`,e).replace(`$(limit)`,``+r).replace(`$(language)`,o).replace(`$(targetClass)`,t.toNT())}if(!t)throw Error(`queryPublicDataByName: No class provided`);let o=(await Tw()||Sw)[0]||`en`;if(i.searchByNameQuery){let e=a(i.searchByNameQuery);return W(`Querying public data - sparql: `+e),Gw(e,i)}if(i.searchByNameURI){let e=a(i.searchByNameURI),t;try{t=await n.store.fetcher?.webOperation(`GET`,e,jw)}catch(t){throw Error(`Exception when trying to fetch ${e} \n ${t}`)}let r=t.responseText||``;if(t.status!==200)throw Error(`HTTP error status ${t.status} trying to fetch ${e} `);if(W(` Query result text`+r.slice(0,500)+`...`),r.length===0)throw Error(`queryPublicDataByName: No text back from public data query `+e);let o=Uw(r),s=JSON.parse(o);if(W(` API Query result JSON`+JSON.stringify(s,null,4).slice(0,500)+`...`),s._embedded)return W(` Looks like ESCO`),Vw(s);throw alert(`Code me: unrecognized API return format`),Error(`*** Need to add code to parse unrecognized API JSON return\n${JSON.stringify(s,null,4)}`)}throw Error(`Query source must have either rest API or SPARQL endpoint.`)}async function Gw(e,t){if(!t.endpoint)throw Error(`Missing queryTarget.endpoint required for queryPublicDataSelect`);let r=new URL(t.endpoint);r.searchParams.append(`query`,e);let i=r.href;W(` queryPublicDataSelect uri: `+i);let a=new Headers;a.append(`Accept`,`application/json`);let o={credentials:`omit`,headers:a},s=(await n.store.fetcher?.webOperation(`GET`,i,o))?.responseText||``;if(s.length===0)throw Error(`No text back from query `+i);let c=Uw(s),l=JSON.parse(c);return W(` Query result JSON`+JSON.stringify(l,null,4).slice(0,100)+`...`),l.results.bindings}async function Kw(e,r,i){if(W(`queryPublicDataConstruct: sparql:`,e),!i.endpoint)throw Error(`Missing queryTarget.endpoint required for queryPublicDataConstruct`);let a=new URL(i.endpoint);a.searchParams.append(`query`,e);let o=a.href;W(` queryPublicDataConstruct uri: `+o);let s=new Headers;s.append(`Accept`,`text/turtle`);let c={credentials:`omit`,headers:s},l=(await n.store.fetcher?.webOperation(`GET`,o,c))?.responseText||`No response text?`;if(W(` queryPublicDataConstruct result text:`+(l.length>500?l.slice(0,200)+` ... `+l.slice(-200):l)),l.length===0)throw Error(`queryPublicDataConstruct: No text back from construct query:`+o);(0,t.parse)(l,n.store,r.uri,`text/turtle`)}async function qw(e,t,n){if(n.uri.startsWith(`https://dbpedia.org/resource/`))return Zw(e,t,n);if(n.uri.match(/^https?:\/\/www\.wikidata\.org\/entity\/.*/))await Jw(e,t,n);else{let t=n.uri.startsWith(`http:`)?e.sym(`https:`+n.uri.slice(5)):n,r=new Headers;return r.append(`Accept`,`text/turtle`),e.fetcher.load(t,{credentials:`omit`,headers:r})}}async function Jw(e,t,n){await Kw(Aw.replace(/wd:Q49108/g,n.toNT()),n,Iw),W(`getWikidataDetails: loaded.`,n)}async function Yw(e,t,n){Bw(e,n,await Gw(`select distinct * where {
2133
1828
  optional { $(subject) wdt:P31 ?targetClass } # instance of
2134
1829
  optional { $(subject) wdt:P154 ?logo }
2135
1830
  optional { $(subject) wdt:P158 ?sealImage }
@@ -2141,7 +1836,7 @@ optional { $(subject) wdt:P1813 ?shortName }
2141
1836
 
2142
1837
  optional { $(subject) wdt:P355 ?subsidiary }
2143
1838
  # SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }
2144
- }`.replace(fb,n.toNT()),bb),n.doc())}async function Pb(e,t,n){let r=`select distinct * where {
1839
+ }`.replace(Ow,n.toNT()),Iw),n.doc())}async function Xw(e,t,n){let r=`select distinct * where {
2145
1840
 
2146
1841
  $(subject) wdt:P276 ?location .
2147
1842
 
@@ -2151,14 +1846,14 @@ optional { $(subject) wdt:P355 ?subsidiary }
2151
1846
  optional { ?location wdt:P17 ?country }
2152
1847
 
2153
1848
  # SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }
2154
- }`.replace(fb,n.toNT());V(` location query sparql:`+r);let i=await kb(r,bb);V(` location query bindings:`,i),wb(e,n,i,n.doc())}async function Fb(e,t,n){wb(e,n,await kb(`select distinct ?city, ?state, ?country, ?homepage, ?logo, ?lat, ?long, WHERE {
1849
+ }`.replace(Ow,n.toNT());W(` location query sparql:`+r);let i=await Gw(r,Iw);W(` location query bindings:`,i),Bw(e,n,i,n.doc())}async function Zw(e,t,n){Bw(e,n,await Gw(`select distinct ?city, ?state, ?country, ?homepage, ?logo, ?lat, ?long, WHERE {
2155
1850
  OPTIONAL { <${n}> <http://dbpedia.org/ontology/city> ?city }
2156
1851
  OPTIONAL { ${n} <http://dbpedia.org/ontology/state> ?state }
2157
1852
  OPTIONAL { ${n} <http://dbpedia.org/ontology/country> ?country }
2158
1853
  OPTIONAL { ${n} foaf:homepage ?homepage }
2159
1854
  OPTIONAL { ${n} foaf:lat ?lat; foaf:long ?long }
2160
1855
  OPTIONAL { ${n} <http://dbpedia.org/ontology/country> ?country }
2161
- }`,_b),n.doc()),V(`Finished getDbpediaDetails.`)}var Ib=4,Lb=20,Rb=40;function zb(e,t){e.style.display=t?``:`none`}async function Bb(e,t,r,i){function a(t){let n=D.appendChild(e.createElement(`tr`));V(t);let r=Error(t);n.appendChild(K(e,r,`pink`)),G.setStyle(n,`autocompleteRowStyle`),n.style.padding=`1em`}function o(e,r){V(`Auto complete: finish! `+e),e.termType===`Literal`&&t.queryParams.objectURIBase&&(e=n.store.sym(t.queryParams.objectURIBase.value+e.value)),d(),i(e,r)}async function s(e,t){if(r.acceptButton){r.acceptButton.disbaled=!1,zb(r.acceptButton,!0),k.value=t.value,T=t,E=e,V(`Auto complete: name: `+t),V(`Auto complete: waiting for accept `+e),d();return}zb(r.cancelButton,!0),o(e,t)}async function c(e){T&&k.value===T.value&&o(E,T)}async function l(e){V(`Auto complete: Canceled by user! `),t.permanent?g():w.parentNode&&w.parentNode.removeChild(w)}function u(e,t){let n=e.split(` `);for(let e=0;e<n.length;e++){let r=n[e];if(t.toLowerCase().indexOf(r)<0)return!1}return!0}function d(){for(;D.children.length>1;)D.removeChild(D.lastChild)}async function f(e){zb(r.cancelButton,!0),h()}async function p(e,n){let r;try{r=await Ob(e,_,n||ob,t.queryParams)}catch(e){a(`Error querying db of organizations: `+e),b=!1;return}return y=r.length<200,S=y?e:void 0,d(),ub(r,n)}function m(e,t){return t.filter(t=>u(e,t.name.value))}async function h(){function t(t){let n=e.createElement(`tr`);G.setStyle(n,`autocompleteRowStyle`),n.setAttribute(`style`,`padding: 0.3em;`),n.style.color=x?`#080`:`#088`,n.textContent=t.name.value;let r=Cb(t.subject),i=Cb(t.name);return n.addEventListener(`click`,async e=>{V(` click row textContent: `+n.textContent),V(` click name: `+i.value),r&&i&&s(r,i)}),n}function n(e,t){return t.name.value>e.name.value?1:t.name.name<e.name.value?-1:0}if(b){V(`Ignoring "${k.value}" because of lock `);return}V(`Setting lock at "${k.value}"`),b=!0;let r=await lb(),i=k.value.trim().toLowerCase();if(i.length<Ib)d(),C=Lb;else{(!x||!S||!i.startsWith(S))&&(V(` Querying database at "${i}" cf last "${S}".`),v=await p(i,r));let e=m(i,v);y&&e.length<=Rb&&(C=e.length),x=y&&e.length<=C,V(` Filter:"${i}" lastBindings: ${v.length}, slimmed to ${e.length}; rows: ${C}, Enough? ${y}, All displayed? ${x}`);let a=e.slice(0,C);a.sort(n),d();for(let e of a)D.appendChild(t(e));e.length===1&&s(Cb(e[0].subject),Cb(e[0].name))}b=!1}function g(){t.currentObject?(k.value=t.currentName?t.currentName.value:`??? wot no name for `+t.currentObject,T=t.currentName,S=t.currentName?t.currentName.value:void 0,E=t.currentObject):(k.value=``,S=void 0,E=void 0),r.deleteButton&&zb(r.deleteButton,!!t.currentObject),r.acceptButton&&zb(r.acceptButton,!1),r.editButton&&zb(r.editButton,!0),r.cancelButton&&zb(r.cancelButton,!1),b=!1,d()}let _=t.targetClass;if(!_)throw Error(`renderAutoComplete: missing targetClass`);r.acceptButton&&r.acceptButton.addEventListener(`click`,c,!1),r.cancelButton&&r.cancelButton.addEventListener(`click`,l,!1);let v,y=!1,b=!1,x=!1,S,C=Lb,w=e.createElement(`div`),T,E,D=w.appendChild(e.createElement(`table`));D.setAttribute(`data-testid`,`autocomplete-table`),D.setAttribute(`style`,`max-width: 30em; margin: 0.5em;`);let O=D.appendChild(e.createElement(`tr`));G.setStyle(O,`autocompleteRowStyle`);let k=O.appendChild(e.createElement(`td`)).appendChild(e.createElement(`input`));k.setAttribute(`type`,`text`),g();let A=t.size||W.textInputSize||20;k.setAttribute(`size`,A),k.setAttribute(`data-testid`,`autocomplete-input`);let j=G.textInputStyle||`border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em`;return k.setAttribute(`style`,j),k.addEventListener(`keyup`,function(e){e.keyCode===13&&c(e)},!1),k.addEventListener(`input`,f),w}var Vb=`Solid ID`,Hb=q.iconBase+`noun_34653_green.svg`,Ub=q.iconBase+`noun_Search_875351.svg`,Wb=q.iconBase+`noun_253504.svg`;async function Gb(e,t,r,i,a,o){async function s(e,t){return i.permanent?(zb(_,!0),zb(p,!1),zb(m,!1)):l(),a(e,t)}async function c(r){let i=await xy(e,n.store,S,I.vcard(`url`),void 0,Vb);if(i)return a(t,i)}function l(){x&&=(S.removeChild(x),void 0)}async function u(){x=e.createElement(`div`),x.setAttribute(`style`,`display: flex; flex-flow: wrap;`),x.appendChild(await Bb(e,i,b,s)),x.appendChild(p),x.appendChild(m),x.appendChild(_),x.appendChild(h),S.appendChild(x)}async function d(e){x?(S.removeChild(x),x=void 0):await u()}async function f(e){for(let n of e)await a(t,n)}let p=by(e);p.setAttribute(`data-testid`,`accept-button`);let m=yy(e);m.setAttribute(`data-testid`,`cancel-button`);let h=e.createElement(`div`),g=vy(e,h,i.targetClass?B(i.targetClass):`item`,o);g.setAttribute(`data-testid`,`delete-button`);let _=Y(e,Wb,`Edit`,e=>{v=!v,y()});_.setAttribute(`data-testid`,`edit-button`);let v=!0;function y(){v?(zb(_,!1),zb(p,!1),zb(m,!1)):(zb(_,!0),zb(p,!1),zb(m,!1))}let b={acceptButton:p,cancelButton:m,editButton:_,deleteButton:g},x,S=e.createElement(`div`);return S.style.display=`flex`,S.style.flexDirection=`row`,(i.permanent||i.currentObject)&&await u(),r.editable&&(S.style.width=`100%`,r.manualURIEntry&&Mv(S.appendChild(Y(e,Hb,r.idNoun,c)),f,void 0),r.dbLookup&&!i.currentObject&&!i.permanent&&S.appendChild(Y(e,Ub,r.idNoun,d))),y(),S}function Kb(e,r,i,a,o,s,c){async function l(n,r){if(!r)throw Error(`autocompleteField: No name set.`);let i=d.the(a,g,null,s);if(i){let e=d.any(i,_,null,s);if(i.equals(n)&&e&&e.sameTerm(r))return}let o=i?d.statementsMatching(a,g,i,s).concat(d.statementsMatching(i,_,null,s)):[],l=[(0,t.st)(a,g,n,s),(0,t.st)(n,_,r,s)];try{await d.updater?.updateMany(o,l)}catch(t){c(!1,t),p.appendChild(K(e,`Autocomplete form data update error:`+t,null,t));return}c(!0,``)}async function u(t,n){let r=d.the(a,g,null,s);if(!r){c(!1,`NO data to elete`),p.appendChild(K(e,`Autocomplete delete: no old data!`));return}let i=d.statementsMatching(a,g,r,s).concat(d.statementsMatching(r,_,null,s)),o=[];try{await d.updater?.updateMany(i,o)}catch(t){let n=Error(`Autocomplete form data delete error:`+t);c(!1,t),p.appendChild(K(e,n,null,t));return}c(!0,``)}if(a.termType!==`NamedNode`)throw Error(`Sorry this field only works on NamedNode subjects (for editable)`);let d=n.store,f=o.doc?o.doc():null,p=e.createElement(`div`);r&&r.appendChild(p);let m=e.createElement(`div`);m.setAttribute(`class`,`formFieldName`),m.setAttribute(`style`,G.formFieldNameBoxStyle),p.appendChild(m);let h=e.createElement(`div`);h.setAttribute(`class`,`formFieldValue`),p.appendChild(h);let g=d.any(o,I.ui(`property`));if(!g)return p.appendChild(K(e,`Error: No property given for autocomplete field: `+o));let _=d.any(o,I.ui(`labelProperty`))||I.schema(`name`),v=d.any(o,I.ui(`dataSource`));if(!v)return p.appendChild(K(e,`Error: No data source given for autocomplete field: `+o));let y={label:d.anyJS(v,I.schema(`name`),null,v.doc()),logo:d.any(v,I.schema(`logo`),null,v.doc())},b=d.any(o,I.ui(`targetClass`),null,o.doc())||d.any(v,I.ui(`targetClass`),null,v.doc());b&&(y.targetClass=b),y.objectURIBase=d.any(v,I.ui(`objectURIBase`),null,v.doc())||void 0;let x=d.anyJS(v,I.ui(`endpoint`),null,v.doc());if(x){if(y.endpoint=x,y.searchByNameQuery=d.anyJS(v,I.ui(`searchByNameQuery`),null,v.doc()),!y.searchByNameQuery)return p.appendChild(K(e,`Error: No searchByNameQuery given for endpoint data Source: `+o));y.insitituteDetailsQuery=d.anyJS(v,I.ui(`insitituteDetailsQuery`),null,v.doc())}else{let t=d.anyJS(v,I.ui(`searchByNameURI`));if(!t)return p.appendChild(K(e,`Error: No searchByNameURI OR sparql endpoint given for dataSource: `+v));y.searchByNameURI=t}let S=d.anyJS(o,I.ui(`suppressEmptyUneditable`),null,f),C=d.updater?.editable(s.uri),w={permanent:!0,targetClass:y.targetClass,queryParams:y};w.size=d.anyJS(o,I.ui(`size`),null,f)||void 0;let T=d.any(a,g,void 0,s);if(T)w.currentObject=T,w.currentName=d.any(w.currentObject,_,null,s);else if(T=d.any(o,I.ui(`default`)),T)w.currentObject=T,w.currentName=d.any(w.currentObject,_,null,s);else if(S&&!C)return p.style.display=`none`,p;return m.appendChild(tb(e,g,o)),Gb(e,a,{editable:C,dbLookup:!0},w,l,u).then(e=>{h.appendChild(e)},t=>{h.appendChild(K(e,`Error rendering autocomplete ${o}: ${t}`,`#fee`,t))}),p}var Z={multiselect__container:`
1856
+ }`,Nw),n.doc()),W(`Finished getDbpediaDetails.`)}var Qw=4,$w=20,eT=40;function tT(e,t){e.style.display=t?``:`none`}async function nT(e,t,r,i){function a(t){let n=D.appendChild(e.createElement(`tr`));W(t);let r=Error(t);n.appendChild(q(e,r,`pink`)),U.setStyle(n,`autocompleteRowStyle`),n.style.padding=`1em`}function o(e,r){W(`Auto complete: finish! `+e),e.termType===`Literal`&&t.queryParams.objectURIBase&&(e=n.store.sym(t.queryParams.objectURIBase.value+e.value)),d(),i(e,r)}async function s(e,t){if(r.acceptButton){r.acceptButton.disbaled=!1,tT(r.acceptButton,!0),k.value=t.value,T=t,E=e,W(`Auto complete: name: `+t),W(`Auto complete: waiting for accept `+e),d();return}tT(r.cancelButton,!0),o(e,t)}async function c(e){T&&k.value===T.value&&o(E,T)}async function l(e){W(`Auto complete: Canceled by user! `),t.permanent?g():w.parentNode&&w.parentNode.removeChild(w)}function u(e,t){let n=e.split(` `);for(let e=0;e<n.length;e++){let r=n[e];if(t.toLowerCase().indexOf(r)<0)return!1}return!0}function d(){for(;D.children.length>1;)D.removeChild(D.lastChild)}async function f(e){tT(r.cancelButton,!0),h()}async function p(e,n){let r;try{r=await Ww(e,_,n||Sw,t.queryParams)}catch(e){a(`Error querying db of organizations: `+e),b=!1;return}return y=r.length<200,S=y?e:void 0,d(),Ew(r,n)}function m(e,t){return t.filter(t=>u(e,t.name.value))}async function h(){function t(t){let n=e.createElement(`tr`);U.setStyle(n,`autocompleteRowStyle`),n.setAttribute(`style`,`padding: 0.3em;`),n.style.color=x?`#080`:`#088`,n.textContent=t.name.value;let r=zw(t.subject),i=zw(t.name);return n.addEventListener(`click`,async e=>{W(` click row textContent: `+n.textContent),W(` click name: `+i.value),r&&i&&s(r,i)}),n}function n(e,t){return t.name.value>e.name.value?1:t.name.name<e.name.value?-1:0}if(b){W(`Ignoring "${k.value}" because of lock `);return}W(`Setting lock at "${k.value}"`),b=!0;let r=await Tw(),i=k.value.trim().toLowerCase();if(i.length<Qw)d(),C=$w;else{(!x||!S||!i.startsWith(S))&&(W(` Querying database at "${i}" cf last "${S}".`),v=await p(i,r));let e=m(i,v);y&&e.length<=eT&&(C=e.length),x=y&&e.length<=C,W(` Filter:"${i}" lastBindings: ${v.length}, slimmed to ${e.length}; rows: ${C}, Enough? ${y}, All displayed? ${x}`);let a=e.slice(0,C);a.sort(n),d();for(let e of a)D.appendChild(t(e));e.length===1&&s(zw(e[0].subject),zw(e[0].name))}b=!1}function g(){t.currentObject?(k.value=t.currentName?t.currentName.value:`??? wot no name for `+t.currentObject,T=t.currentName,S=t.currentName?t.currentName.value:void 0,E=t.currentObject):(k.value=``,S=void 0,E=void 0),r.deleteButton&&tT(r.deleteButton,!!t.currentObject),r.acceptButton&&tT(r.acceptButton,!1),r.editButton&&tT(r.editButton,!0),r.cancelButton&&tT(r.cancelButton,!1),b=!1,d()}let _=t.targetClass;if(!_)throw Error(`renderAutoComplete: missing targetClass`);r.acceptButton&&r.acceptButton.addEventListener(`click`,c,!1),r.cancelButton&&r.cancelButton.addEventListener(`click`,l,!1);let v,y=!1,b=!1,x=!1,S,C=$w,w=e.createElement(`div`),T,E,D=w.appendChild(e.createElement(`table`));D.setAttribute(`data-testid`,`autocomplete-table`),D.setAttribute(`style`,`max-width: 30em; margin: 0.5em;`);let O=D.appendChild(e.createElement(`tr`));U.setStyle(O,`autocompleteRowStyle`);let k=O.appendChild(e.createElement(`td`)).appendChild(e.createElement(`input`));k.setAttribute(`type`,`text`),g();let A=t.size||H.textInputSize||20;k.setAttribute(`size`,A),k.setAttribute(`data-testid`,`autocomplete-input`);let j=U.textInputStyle||`border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em`;return k.setAttribute(`style`,j),k.addEventListener(`keyup`,function(e){e.keyCode===13&&c(e)},!1),k.addEventListener(`input`,f),w}var rT=`Solid ID`,iT=J.iconBase+`noun_34653_green.svg`,aT=J.iconBase+`noun_Search_875351.svg`,oT=J.iconBase+`noun_253504.svg`;async function sT(e,t,r,i,a,o){async function s(e,t){return i.permanent?(tT(_,!0),tT(p,!1),tT(m,!1)):l(),a(e,t)}async function c(r){let i=await LC(e,n.store,S,R.vcard(`url`),void 0,rT);if(i)return a(t,i)}function l(){x&&=(S.removeChild(x),void 0)}async function u(){x=e.createElement(`div`),x.setAttribute(`style`,`display: flex; flex-flow: wrap;`),x.appendChild(await nT(e,i,b,s)),x.appendChild(p),x.appendChild(m),x.appendChild(_),x.appendChild(h),S.appendChild(x)}async function d(e){x?(S.removeChild(x),x=void 0):await u()}async function f(e){for(let n of e)await a(t,n)}let p=IC(e);p.setAttribute(`data-testid`,`accept-button`);let m=FC(e);m.setAttribute(`data-testid`,`cancel-button`);let h=e.createElement(`div`),g=PC(e,h,i.targetClass?V(i.targetClass):`item`,o);g.setAttribute(`data-testid`,`delete-button`);let _=X(e,oT,`Edit`,e=>{v=!v,y()});_.setAttribute(`data-testid`,`edit-button`);let v=!0;function y(){v?(tT(_,!1),tT(p,!1),tT(m,!1)):(tT(_,!0),tT(p,!1),tT(m,!1))}let b={acceptButton:p,cancelButton:m,editButton:_,deleteButton:g},x,S=e.createElement(`div`);return S.style.display=`flex`,S.style.flexDirection=`row`,(i.permanent||i.currentObject)&&await u(),r.editable&&(S.style.width=`100%`,r.manualURIEntry&&JS(S.appendChild(X(e,iT,r.idNoun,c)),f,void 0),r.dbLookup&&!i.currentObject&&!i.permanent&&S.appendChild(X(e,aT,r.idNoun,d))),y(),S}function cT(e,r,i,a,o,s,c){async function l(n,r){if(!r)throw Error(`autocompleteField: No name set.`);let i=d.the(a,g,null,s);if(i){let e=d.any(i,_,null,s);if(i.equals(n)&&e&&e.sameTerm(r))return}let o=i?d.statementsMatching(a,g,i,s).concat(d.statementsMatching(i,_,null,s)):[],l=[(0,t.st)(a,g,n,s),(0,t.st)(n,_,r,s)];try{await d.updater?.updateMany(o,l)}catch(t){c(!1,t),p.appendChild(q(e,`Autocomplete form data update error:`+t,null,t));return}c(!0,``)}async function u(t,n){let r=d.the(a,g,null,s);if(!r){c(!1,`NO data to elete`),p.appendChild(q(e,`Autocomplete delete: no old data!`));return}let i=d.statementsMatching(a,g,r,s).concat(d.statementsMatching(r,_,null,s)),o=[];try{await d.updater?.updateMany(i,o)}catch(t){let n=Error(`Autocomplete form data delete error:`+t);c(!1,t),p.appendChild(q(e,n,null,t));return}c(!0,``)}if(a.termType!==`NamedNode`)throw Error(`Sorry this field only works on NamedNode subjects (for editable)`);let d=n.store,f=o.doc?o.doc():null,p=e.createElement(`div`);r&&r.appendChild(p);let m=e.createElement(`div`);m.setAttribute(`class`,`formFieldName`),m.setAttribute(`style`,U.formFieldNameBoxStyle),p.appendChild(m);let h=e.createElement(`div`);h.setAttribute(`class`,`formFieldValue`),p.appendChild(h);let g=d.any(o,R.ui(`property`));if(!g)return p.appendChild(q(e,`Error: No property given for autocomplete field: `+o));let _=d.any(o,R.ui(`labelProperty`))||R.schema(`name`),v=d.any(o,R.ui(`dataSource`));if(!v)return p.appendChild(q(e,`Error: No data source given for autocomplete field: `+o));let y={label:d.anyJS(v,R.schema(`name`),null,v.doc()),logo:d.any(v,R.schema(`logo`),null,v.doc())},b=d.any(o,R.ui(`targetClass`),null,o.doc())||d.any(v,R.ui(`targetClass`),null,v.doc());b&&(y.targetClass=b),y.objectURIBase=d.any(v,R.ui(`objectURIBase`),null,v.doc())||void 0;let x=d.anyJS(v,R.ui(`endpoint`),null,v.doc());if(x){if(y.endpoint=x,y.searchByNameQuery=d.anyJS(v,R.ui(`searchByNameQuery`),null,v.doc()),!y.searchByNameQuery)return p.appendChild(q(e,`Error: No searchByNameQuery given for endpoint data Source: `+o));y.insitituteDetailsQuery=d.anyJS(v,R.ui(`insitituteDetailsQuery`),null,v.doc())}else{let t=d.anyJS(v,R.ui(`searchByNameURI`));if(!t)return p.appendChild(q(e,`Error: No searchByNameURI OR sparql endpoint given for dataSource: `+v));y.searchByNameURI=t}let S=d.anyJS(o,R.ui(`suppressEmptyUneditable`),null,f),C=d.updater?.editable(s.uri),w={permanent:!0,targetClass:y.targetClass,queryParams:y};w.size=d.anyJS(o,R.ui(`size`),null,f)||void 0;let T=d.any(a,g,void 0,s);if(T)w.currentObject=T,w.currentName=d.any(w.currentObject,_,null,s);else if(T=d.any(o,R.ui(`default`)),T)w.currentObject=T,w.currentName=d.any(w.currentObject,_,null,s);else if(S&&!C)return p.style.display=`none`,p;return m.appendChild(_w(e,g,o)),sT(e,a,{editable:C,dbLookup:!0},w,l,u).then(e=>{h.appendChild(e)},t=>{h.appendChild(q(e,`Error rendering autocomplete ${o}: ${t}`,`#fee`,t))}),p}var Q={multiselect__container:`
2162
1857
  -webkit-box-align: center;
2163
1858
  -ms-flex-align: center;
2164
1859
  align-items: center;
@@ -2273,7 +1968,7 @@ optional { ?location wdt:P17 ?country }
2273
1968
  margin-bottom: 4px;
2274
1969
  min-width: 40%;
2275
1970
  outline: none;
2276
- `};Z.setStyle=function(e,t){e.style=Z[t]};var qb=class{_data;_domElements;_event=()=>{};_itemTemplate;_multiselect;_noData;_noResults;_options=[];_placeholder;_select;_selectContainer;_selectedOptions=[];_tagTemplate;_textField;_valueField;_cross=`
1971
+ `};Q.setStyle=function(e,t){e.style=Q[t]};var lT=class{_data;_domElements;_event=()=>{};_itemTemplate;_multiselect;_noData;_noResults;_options=[];_placeholder;_select;_selectContainer;_selectedOptions=[];_tagTemplate;_textField;_valueField;_cross=`
2277
1972
  <svg
2278
1973
  width="24"
2279
1974
  height="24"
@@ -2286,28 +1981,28 @@ optional { ?location wdt:P17 ?country }
2286
1981
  fill="currentColor"
2287
1982
  />
2288
1983
  </svg>
2289
- `;constructor({data:e,itemTemplate:t,noData:n,noResults:r,placeholder:i,select:a,container:o,tagTemplate:s,textField:c,valueField:l}){this._data=e??[],this._itemTemplate=t??null,this._noData=n??`No data found.`,this._noResults=r??`No results found.`,this._placeholder=i??`Select...`,this._select=a,this._selectContainer=o,this._tagTemplate=s??null,this._textField=c??null,this._valueField=l??null}init(){if(this._select&&this._select.nodeName===`SELECT`){if(this._itemTemplate&&this._data.length===0)throw Error(`itemTemplate must be initialized with data from the component settings`);if(this._tagTemplate&&this._data.length===0)throw Error(`tagTemplate must be initialized with data from the component settings`);this._options=this._data.length>0?this._getDataFromSettings():this._getDataFromSelectTag(),this._renderMultiselect(),this._renderOptionsList(),this._domElements={clear:this._multiselect.querySelector(`.multiselect__clear-btn`),input:this._multiselect.querySelector(`.multiselect__input`),optionsContainer:this._multiselect.querySelector(`.multiselect__options`),optionsContainerList:this._multiselect.querySelector(`.multiselect__options > ul`),options:{list:this._multiselect.querySelectorAll(`.multiselect__options > ul > li`),find:function(e){for(let t=0;t<this.list.length;t++){let n=this.list[t];if(e(n))return n}},some:function(e){for(let t=0;t<this.list.length;t++){let n=this.list[t];if(e(n,t))return!0}return!1}}},this._enableEventListenners(),this._initSelectedList()}else throw Error(`The selector '${this._select}' did not select any valid select tag.`)}subscribe(e){if(typeof e==`function`)this._event=e;else throw Error(`parameter in the subscribe method is not a function`)}_addOptionToList(e,t){let n=`<span class="multiselect__selected" style="${Z.multiselect__selected}" data-value="${e.value}">${this._tagTemplate?this._processTemplate(this._tagTemplate,t):e.text}<span class="multiselect__remove-btn" style="${Z.multiselect__remove_btn}">${this._cross}</span></span>`;this._domElements.input.insertAdjacentHTML(`beforebegin`,n);let{lastElementChild:r}=this._multiselect.querySelector(`span[data-value="${e.value}"]`);r.addEventListener(`click`,()=>{let t=this._domElements.options.find(t=>t.dataset.value===e.value);this._handleOption(t)})}_clearSelection(){for(let e=0;e<this._selectedOptions.length;e++){let t=this._selectedOptions[e],n=this._domElements.options.find(e=>e.dataset.value===t.value);n.classList.remove(`multiselect__options--selected`),n.setAttribute(`style`,Z.multiselect__options),this._removeOptionFromList(n.dataset.value)}this._selectedOptions=[],this._handleClearSelectionBtn(),this._handlePlaceholder(),this._dispatchEvent({action:`CLEAR_ALL_OPTIONS`,selection:this._selectedOptions})}_closeList(){this._domElements.input.value=``,this._domElements.optionsContainer.classList.remove(`visible`),this._domElements.optionsContainer.setAttribute(`style`,Z.multiselect__options),this._filterOptions(``),this._removeAllArrowSelected()}_dispatchEvent(e){this._event(e)}_enableEventListenners(){document.addEventListener(`mouseup`,({target:e})=>{this._multiselect.contains(e)||(this._filterOptions(``),this._closeList(),this._handlePlaceholder())}),this._domElements.clear.addEventListener(`click`,()=>{this._clearSelection()});for(let e=0;e<this._domElements.options.list.length;e++)this._domElements.options.list[e].addEventListener(`click`,({target:e})=>{this._handleOption(e),this._closeList()});this._domElements.input.addEventListener(`focus`,()=>{this._domElements.optionsContainer.classList.add(`visible`),this._domElements.optionsContainer.setAttribute(`style`,Z.multiselect__options_visible)}),this._domElements.input.addEventListener(`input`,({target:{value:e}})=>{this._domElements.options.list.length>0&&this._filterOptions(e)}),this._domElements.input.addEventListener(`keydown`,e=>{this._handleArrows(e),this._handleBackspace(e),this._handleEnter(e)})}_filterOptions(e){let t=this._domElements.optionsContainer.classList.contains(`visible`),n=e.toLowerCase();if(!t&&e.length>0&&(this._domElements.optionsContainer.classList.add(`visible`),this._domElements.optionsContainer.setAttribute(`style`,Z.multiselect__options_visible)),this._domElements.options.list.length>0){for(let e=0;e<this._domElements.options.list.length;e++){let t=this._domElements.options.list[e];(this._itemTemplate?this._data[e][this._textField]:t.textContent).toLowerCase().substring(0,n.length)===n?this._domElements.optionsContainerList.appendChild(t):t.parentNode&&t.parentNode.removeChild(t)}let e=this._domElements.options.some((e,t)=>(this._itemTemplate?this._data[t][this._textField]:e.textContent).toLowerCase().substring(0,n.length)===n);this._showNoResults(!e)}}_generateId(e){let t=``;for(let n=0;n<e;n++)t+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`.charAt(Math.floor(Math.random()*62));return t}_getDataFromSelectTag(){let e=[],{options:t}=this._select;for(let n=0;n<t.length;n++){let r=t[n];e.push({text:r.text,value:r.value,selected:r.hasAttribute(`selected`)})}return e}_getDataFromSettings(){if(this._data.length>0&&this._valueField&&this._textField){let e=typeof this._valueField==`string`,t=typeof this._textField==`string`,n=[];if(!e||!t)throw Error(`textField and valueField must be of type string`);for(let e=0;e<this._data.length;e++){let t=this._data[e];n.push({value:t[this._valueField],text:t[this._textField],selected:typeof t.selected==`boolean`&&t.selected})}return n}else return null}_handleArrows(e){if(e.keyCode===40||e.keyCode===38){e.preventDefault();let t=this._domElements.optionsContainer.classList.contains(`visible`),n=this._multiselect.querySelector(`.multiselect__options > ul`);if(!t)this._domElements.optionsContainer.classList.add(`visible`),this._domElements.optionsContainer.setAttribute(`style`,Z.multiselect__options_visible),n.firstElementChild.classList.add(`arrow-selected`),n.firstElementChild.setAttribute(`style`,Z.multiselect__options_ul_li_arrow_selected),n.firstElementChild.scrollIntoView(!1);else{let t=this._multiselect.querySelector(`.multiselect__options ul li.arrow-selected`),r={ArrowUp:`previous`,Up:`previous`,ArrowDown:`next`,Down:`next`};if(!t){n.firstElementChild.classList.add(`arrow-selected`),n.firstElementChild.setAttribute(`style`,Z.multiselect__options_ul_li_arrow_selected),n.firstElementChild.scrollIntoView(!1);return}if(t.classList.remove(`arrow-selected`),t.setAttribute(`style`,Z.multiselect__options_ul_li),t=t[r[e.key]+`ElementSibling`],!t){t=n.children[r[e.key]===`next`?0:n.children.length-1],t.classList.add(`arrow-selected`),t.setAttribute(`style`,Z.multiselect__options_ul_li_arrow_selected),this._scrollIntoView(n,t);return}t.classList.add(`arrow-selected`),t.setAttribute(`style`,Z.multiselect__options_ul_li_arrow_selected),this._scrollIntoView(n,t)}}}_handleBackspace(e){if(e.keyCode===8&&e.target.value===``){let e=this._selectedOptions.length>0?this._selectedOptions[this._selectedOptions.length-1]:null;if(e){let t=this._multiselect.querySelector(`li[data-value="${e.value}"]`);this._handleOption(t),this._selectedOptions.length===0&&(this._domElements.optionsContainer.classList.remove(`visible`),this._domElements.optionsContainer.setAttribute(`style`,Z.multiselect__options))}}}_handleClearSelectionBtn(){this._selectedOptions.length>0?this._domElements.clear.style.display=`flex`:this._domElements.clear.style.display=`none`}_handleEnter(e){if(e.keyCode===13){let e=this._multiselect.querySelector(`.multiselect__options ul li.arrow-selected`);e&&(this._handleOption(e),this._closeList())}}_handleOption(e,t=!0){for(let n=0;n<this._selectedOptions.length;n++)if(this._selectedOptions[n].value===e.dataset.value)return e.classList.remove(`multiselect__options--selected`),e.setAttribute(`style`,Z.multiselect__options),this._selectedOptions.splice(n,1),this._removeOptionFromList(e.dataset.value),this._handleClearSelectionBtn(),this._handlePlaceholder(),t&&this._dispatchEvent({action:`REMOVE_OPTION`,value:e.dataset.value,selection:this._selectedOptions});for(let n=0;n<this._options.length;n++){let r=this._options[n];if(r.value===e.dataset.value)return e.classList.add(`multiselect__options--selected`),e.setAttribute(`style`,Z.multiselect__options_selected),this._selectedOptions=[...this._selectedOptions,r],this._addOptionToList(r,n),this._handleClearSelectionBtn(),this._handlePlaceholder(),t&&this._dispatchEvent({action:`ADD_OPTION`,value:e.dataset.value,selection:this._selectedOptions})}}_handlePlaceholder(){this._domElements.input.placeholder=this._placeholder}_initSelectedList(){let e=!1;for(let t=0;t<this._options.length;t++){let n=this._options[t];if(n.selected){e=!0;let r=this._domElements.options.find(e=>e.dataset.value===n.value);r.classList.add(`multiselect__options--selected`),r.setAttribute(`style`,Z.multiselect__options_selected),this._selectedOptions=[...this._selectedOptions,n],this._addOptionToList(n,t)}}e&&this._handleClearSelectionBtn(),this._handlePlaceholder()}_processTemplate(e,t){let n=e,r=e.match(/\$\{(\w+)\}/g).map(e=>e.replace(/\$\{|\}/g,``));for(let e=0;e<r.length;e++){let i=r[e];n=n.replace(`\$\{${i}\}`,this._data[t][i]??``)}return n}_removeAllArrowSelected(){let e=`arrow-selected`,t=this._domElements.options.find(t=>t.classList.contains(e));t&&t.classList.remove(e)&&t.setAttribute(`style`,Z.multiselect__options_ul_li)}_removeOptionFromList(e){let t=this._multiselect.querySelector(`span[data-value="${e}"]`);t&&t.parentNode&&t.parentNode.removeChild(t)}_renderOptionsList(){let e=`
2290
- <div class="multiselect__options" style="${Z.multiselect__options}">
2291
- <ul style="${Z.multiselect__options_ul}">
1984
+ `;constructor({data:e,itemTemplate:t,noData:n,noResults:r,placeholder:i,select:a,container:o,tagTemplate:s,textField:c,valueField:l}){this._data=e??[],this._itemTemplate=t??null,this._noData=n??`No data found.`,this._noResults=r??`No results found.`,this._placeholder=i??`Select...`,this._select=a,this._selectContainer=o,this._tagTemplate=s??null,this._textField=c??null,this._valueField=l??null}init(){if(this._select&&this._select.nodeName===`SELECT`){if(this._itemTemplate&&this._data.length===0)throw Error(`itemTemplate must be initialized with data from the component settings`);if(this._tagTemplate&&this._data.length===0)throw Error(`tagTemplate must be initialized with data from the component settings`);this._options=this._data.length>0?this._getDataFromSettings():this._getDataFromSelectTag(),this._renderMultiselect(),this._renderOptionsList(),this._domElements={clear:this._multiselect.querySelector(`.multiselect__clear-btn`),input:this._multiselect.querySelector(`.multiselect__input`),optionsContainer:this._multiselect.querySelector(`.multiselect__options`),optionsContainerList:this._multiselect.querySelector(`.multiselect__options > ul`),options:{list:this._multiselect.querySelectorAll(`.multiselect__options > ul > li`),find:function(e){for(let t=0;t<this.list.length;t++){let n=this.list[t];if(e(n))return n}},some:function(e){for(let t=0;t<this.list.length;t++){let n=this.list[t];if(e(n,t))return!0}return!1}}},this._enableEventListenners(),this._initSelectedList()}else throw Error(`The selector '${this._select}' did not select any valid select tag.`)}subscribe(e){if(typeof e==`function`)this._event=e;else throw Error(`parameter in the subscribe method is not a function`)}_addOptionToList(e,t){let n=`<span class="multiselect__selected" style="${Q.multiselect__selected}" data-value="${e.value}">${this._tagTemplate?this._processTemplate(this._tagTemplate,t):e.text}<span class="multiselect__remove-btn" style="${Q.multiselect__remove_btn}">${this._cross}</span></span>`;this._domElements.input.insertAdjacentHTML(`beforebegin`,n);let{lastElementChild:r}=this._multiselect.querySelector(`span[data-value="${e.value}"]`);r.addEventListener(`click`,()=>{let t=this._domElements.options.find(t=>t.dataset.value===e.value);this._handleOption(t)})}_clearSelection(){for(let e=0;e<this._selectedOptions.length;e++){let t=this._selectedOptions[e],n=this._domElements.options.find(e=>e.dataset.value===t.value);n.classList.remove(`multiselect__options--selected`),n.setAttribute(`style`,Q.multiselect__options),this._removeOptionFromList(n.dataset.value)}this._selectedOptions=[],this._handleClearSelectionBtn(),this._handlePlaceholder(),this._dispatchEvent({action:`CLEAR_ALL_OPTIONS`,selection:this._selectedOptions})}_closeList(){this._domElements.input.value=``,this._domElements.optionsContainer.classList.remove(`visible`),this._domElements.optionsContainer.setAttribute(`style`,Q.multiselect__options),this._filterOptions(``),this._removeAllArrowSelected()}_dispatchEvent(e){this._event(e)}_enableEventListenners(){document.addEventListener(`mouseup`,({target:e})=>{this._multiselect.contains(e)||(this._filterOptions(``),this._closeList(),this._handlePlaceholder())}),this._domElements.clear.addEventListener(`click`,()=>{this._clearSelection()});for(let e=0;e<this._domElements.options.list.length;e++)this._domElements.options.list[e].addEventListener(`click`,({target:e})=>{this._handleOption(e),this._closeList()});this._domElements.input.addEventListener(`focus`,()=>{this._domElements.optionsContainer.classList.add(`visible`),this._domElements.optionsContainer.setAttribute(`style`,Q.multiselect__options_visible)}),this._domElements.input.addEventListener(`input`,({target:{value:e}})=>{this._domElements.options.list.length>0&&this._filterOptions(e)}),this._domElements.input.addEventListener(`keydown`,e=>{this._handleArrows(e),this._handleBackspace(e),this._handleEnter(e)})}_filterOptions(e){let t=this._domElements.optionsContainer.classList.contains(`visible`),n=e.toLowerCase();if(!t&&e.length>0&&(this._domElements.optionsContainer.classList.add(`visible`),this._domElements.optionsContainer.setAttribute(`style`,Q.multiselect__options_visible)),this._domElements.options.list.length>0){for(let e=0;e<this._domElements.options.list.length;e++){let t=this._domElements.options.list[e];(this._itemTemplate?this._data[e][this._textField]:t.textContent).toLowerCase().substring(0,n.length)===n?this._domElements.optionsContainerList.appendChild(t):t.parentNode&&t.parentNode.removeChild(t)}let e=this._domElements.options.some((e,t)=>(this._itemTemplate?this._data[t][this._textField]:e.textContent).toLowerCase().substring(0,n.length)===n);this._showNoResults(!e)}}_generateId(e){let t=``;for(let n=0;n<e;n++)t+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`.charAt(Math.floor(Math.random()*62));return t}_getDataFromSelectTag(){let e=[],{options:t}=this._select;for(let n=0;n<t.length;n++){let r=t[n];e.push({text:r.text,value:r.value,selected:r.hasAttribute(`selected`)})}return e}_getDataFromSettings(){if(this._data.length>0&&this._valueField&&this._textField){let e=typeof this._valueField==`string`,t=typeof this._textField==`string`,n=[];if(!e||!t)throw Error(`textField and valueField must be of type string`);for(let e=0;e<this._data.length;e++){let t=this._data[e];n.push({value:t[this._valueField],text:t[this._textField],selected:typeof t.selected==`boolean`&&t.selected})}return n}return null}_handleArrows(e){if(e.keyCode===40||e.keyCode===38){e.preventDefault();let t=this._domElements.optionsContainer.classList.contains(`visible`),n=this._multiselect.querySelector(`.multiselect__options > ul`);if(!t)this._domElements.optionsContainer.classList.add(`visible`),this._domElements.optionsContainer.setAttribute(`style`,Q.multiselect__options_visible),n.firstElementChild.classList.add(`arrow-selected`),n.firstElementChild.setAttribute(`style`,Q.multiselect__options_ul_li_arrow_selected),n.firstElementChild.scrollIntoView(!1);else{let t=this._multiselect.querySelector(`.multiselect__options ul li.arrow-selected`),r={ArrowUp:`previous`,Up:`previous`,ArrowDown:`next`,Down:`next`};if(!t){n.firstElementChild.classList.add(`arrow-selected`),n.firstElementChild.setAttribute(`style`,Q.multiselect__options_ul_li_arrow_selected),n.firstElementChild.scrollIntoView(!1);return}if(t.classList.remove(`arrow-selected`),t.setAttribute(`style`,Q.multiselect__options_ul_li),t=t[r[e.key]+`ElementSibling`],!t){t=n.children[r[e.key]===`next`?0:n.children.length-1],t.classList.add(`arrow-selected`),t.setAttribute(`style`,Q.multiselect__options_ul_li_arrow_selected),this._scrollIntoView(n,t);return}t.classList.add(`arrow-selected`),t.setAttribute(`style`,Q.multiselect__options_ul_li_arrow_selected),this._scrollIntoView(n,t)}}}_handleBackspace(e){if(e.keyCode===8&&e.target.value===``){let e=this._selectedOptions.length>0?this._selectedOptions[this._selectedOptions.length-1]:null;if(e){let t=this._multiselect.querySelector(`li[data-value="${e.value}"]`);this._handleOption(t),this._selectedOptions.length===0&&(this._domElements.optionsContainer.classList.remove(`visible`),this._domElements.optionsContainer.setAttribute(`style`,Q.multiselect__options))}}}_handleClearSelectionBtn(){this._selectedOptions.length>0?this._domElements.clear.style.display=`flex`:this._domElements.clear.style.display=`none`}_handleEnter(e){if(e.keyCode===13){let e=this._multiselect.querySelector(`.multiselect__options ul li.arrow-selected`);e&&(this._handleOption(e),this._closeList())}}_handleOption(e,t=!0){for(let n=0;n<this._selectedOptions.length;n++)if(this._selectedOptions[n].value===e.dataset.value)return e.classList.remove(`multiselect__options--selected`),e.setAttribute(`style`,Q.multiselect__options),this._selectedOptions.splice(n,1),this._removeOptionFromList(e.dataset.value),this._handleClearSelectionBtn(),this._handlePlaceholder(),t&&this._dispatchEvent({action:`REMOVE_OPTION`,value:e.dataset.value,selection:this._selectedOptions});for(let n=0;n<this._options.length;n++){let r=this._options[n];if(r.value===e.dataset.value)return e.classList.add(`multiselect__options--selected`),e.setAttribute(`style`,Q.multiselect__options_selected),this._selectedOptions=[...this._selectedOptions,r],this._addOptionToList(r,n),this._handleClearSelectionBtn(),this._handlePlaceholder(),t&&this._dispatchEvent({action:`ADD_OPTION`,value:e.dataset.value,selection:this._selectedOptions})}}_handlePlaceholder(){this._domElements.input.placeholder=this._placeholder}_initSelectedList(){let e=!1;for(let t=0;t<this._options.length;t++){let n=this._options[t];if(n.selected){e=!0;let r=this._domElements.options.find(e=>e.dataset.value===n.value);r.classList.add(`multiselect__options--selected`),r.setAttribute(`style`,Q.multiselect__options_selected),this._selectedOptions=[...this._selectedOptions,n],this._addOptionToList(n,t)}}e&&this._handleClearSelectionBtn(),this._handlePlaceholder()}_processTemplate(e,t){let n=e,r=e.match(/\$\{(\w+)\}/g).map(e=>e.replace(/\$\{|\}/g,``));for(let e=0;e<r.length;e++){let i=r[e];n=n.replace(`\$\{${i}\}`,this._data[t][i]??``)}return n}_removeAllArrowSelected(){let e=`arrow-selected`,t=this._domElements.options.find(t=>t.classList.contains(e));t&&t.classList.remove(e)&&t.setAttribute(`style`,Q.multiselect__options_ul_li)}_removeOptionFromList(e){let t=this._multiselect.querySelector(`span[data-value="${e}"]`);t&&t.parentNode&&t.parentNode.removeChild(t)}_renderOptionsList(){let e=`
1985
+ <div class="multiselect__options" style="${Q.multiselect__options}">
1986
+ <ul style="${Q.multiselect__options_ul}">
2292
1987
  ${this._options.length>0&&!this._itemTemplate?this._options.map(e=>`
2293
- <li data-value="${e.value}" style="${Z.multiselect__options_ul_li}">${e.text}</li>
1988
+ <li data-value="${e.value}" style="${Q.multiselect__options_ul_li}">${e.text}</li>
2294
1989
  `).join(``):``}
2295
1990
 
2296
1991
  ${this._options.length>0&&this._itemTemplate?this._options.map((e,t)=>`
2297
- <li data-value="${e.value}" style="${Z.multiselect__options_ul_li}">${this._processTemplate(this._itemTemplate,t)}</li>
1992
+ <li data-value="${e.value}" style="${Q.multiselect__options_ul_li}">${this._processTemplate(this._itemTemplate,t)}</li>
2298
1993
  `).join(``):``}
2299
1994
  ${this._showNoData(this._options.length===0)}
2300
1995
  </ul>
2301
1996
  </div>
2302
- `;this._multiselect.insertAdjacentHTML(`beforeend`,e)}_renderMultiselect(){this._select.style.display=`none`;let e=`iconic-`+this._generateId(20);this._multiselect=document.createElement(`div`),this._multiselect.setAttribute(`id`,e),this._multiselect.setAttribute(`class`,`multiselect__container`),this._multiselect.setAttribute(`style`,Z.multiselect__container);let t=`
2303
- <div class="multiselect__wrapper" style="${Z.multiselect__wrapper}">
2304
- <input class="multiselect__input" style="${Z.multiselect__input}" placeholder="${this._placeholder}" />
1997
+ `;this._multiselect.insertAdjacentHTML(`beforeend`,e)}_renderMultiselect(){this._select.style.display=`none`;let e=`iconic-`+this._generateId(20);this._multiselect=document.createElement(`div`),this._multiselect.setAttribute(`id`,e),this._multiselect.setAttribute(`class`,`multiselect__container`),this._multiselect.setAttribute(`style`,Q.multiselect__container);let t=`
1998
+ <div class="multiselect__wrapper" style="${Q.multiselect__wrapper}">
1999
+ <input class="multiselect__input" style="${Q.multiselect__input}" placeholder="${this._placeholder}" />
2305
2000
  </div>
2306
- <span style="display: none;" class="multiselect__clear-btn" style="${Z.multiselect__clear_btn}">${this._cross}</span>
2307
- `;this._multiselect.innerHTML=t,this._selectContainer.appendChild(this._multiselect)}_scrollIntoView(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();n.top<r.bottom-t.offsetHeight||(e.scrollTop=t.clientHeight+(t.offsetTop-t.offsetHeight)),n.bottom>r.top+t.offsetHeight||(e.scrollTop=t.clientHeight+(t.offsetTop-t.offsetHeight)-(e.offsetHeight-(t.offsetHeight+(t.offsetHeight-t.clientHeight))))}_showNoData(e){return e?`<p class="multiselect__options--no-data" style="${Z.multiselect__options_ul_p_multiselect__options_no_data}">${this._noData}</p>`:``}_showNoResults(e){let t=this._multiselect.querySelector(`.multiselect__options--no-results`);if(e){let e=`<p class="multiselect__options--no-results" style="${Z.multiselect__options_ul_p_multiselect__options_no_results}">${this._noResults}</p>`;!t&&this._domElements.optionsContainerList.insertAdjacentHTML(`beforeend`,e)}else t&&t.parentNode&&t.parentNode.removeChild(t)}},Jb=`✓`,Yb=`✕`,Xb=`-`,Zb=n.store;X[I.ui(`AutocompleteField`).uri]=Kb;function Qb(e,t,n,r,i,a,o){let s=a.children;for(let c=0;c<o.length;c++){let l=o[c];if(Yy(l)===I.ui(`Options`).uri){let o=Xy(e,l)(e,null,t,n,l,r,i);V(`Refreshing Options field by replacing it.`),a.insertBefore(o,s[c]),a.removeChild(s[c+1])}}}X[I.ui(`Form`).uri]=X[I.ui(`Group`).uri]=function(e,t,n,r,i,a,o){let s=e.createElement(`div`),c=I.ui;if(t&&t.appendChild(s),!i)return;let l=r.toNT()+`|`+i.toNT();if(n[l])return s.appendChild(e.createTextNode(`Group: see above `+l)),s;let u={};for(let e in n)u[e]=1;u[l]=1;let d=i.doc?i.doc():null,f=Zb.any(i,c(`weight`),null,d),p=f?Number(f.value):1;if(p>3||p<0)return s.appendChild(K(e,`Form Group weight ${p} should be 0-3`));s.setAttribute(`style`,G.formGroupStyle[p]),s.style.display=`flex`,s.style.flexDirection=`column`,s.class=`form-weight-`+p;let m=Zb.any(i,c(`parts`),null,d),h;if(m?h=m.elements:(m=Zb.each(i,c(`part`),null,d),h=ox(m)),!m)return s.appendChild(K(e,`No parts to form! `));for(let t=0;t<h.length;t++){let i=h[t],c=Xy(e,i);s.appendChild(c(e,null,u,r,i,a,function(t,i){t&&i&&i.widget&&i.widget===`select`&&Qb(e,n,r,a,o,s,h),o(t,{widget:`group`,change:i})}))}return s},X[I.ui(`Options`).uri]=function(e,r,i,a,o,s,c){let l=n.store,u=e.createElement(`div`),d=o.doc?o.doc():null,f=I.ui;r&&r.appendChild(u);let p=l.any(o,f(`dependingOn`));p||=I.rdf(`type`);let m=l.each(o,f(`case`),null,d);m||u.appendChild(K(e,`No cases to Options form. `));let h;h=p.sameTerm(I.rdf(`type`))?Object.keys(l.findTypeURIs(a)).map(e=>t.sym(e)):l.each(a,p);for(let t=0;t<m.length;t++){let n=m[t],r=l.each(n,f(`for`),null,d),p=!1;for(let e=0;e<r.length;e++)for(let t of h){let n=r[e];(t.sameTerm(r)||t.termType===n.termType&&t.value===n.value)&&(p=!0)}if(p){let t=l.the(n,f(`use`));if(t)nx(e,u,i,a,t,s,c);else return u.appendChild(K(e,`No "use" part for case in form `+o)),u;break}}return u},X[I.ui(`Multiple`).uri]=function(e,r,i,a,o,s,c){function l(e){return e.map(e=>e.toString().slice(-7)).join(`, `)}async function u(){let n=gx(s);if(y)O(),E.elements.push(n),await k();else{let r=x?[t.st(n,b,a,s)]:[t.st(a,b,n,s)];try{await p.updater.update([],r)}catch(t){let n=`Error adding to unordered multiple: `+t;h.appendChild(K(e,n)),Y_(n)}A()}}function d(n){async function r(){if(y){V(`pre delete: `+l(E.elements));for(let e=0;e<E.elements.length;e++)if(E.elements[e].sameTerm(n)){E.elements.splice(e,1),await k();return}}else if(p.holds(a,b,n,s)){let r=[t.st(a,b,n,s)];p.updater.update(r,[],function(t,n,r){n?T.removeChild(d):T.appendChild(K(e,`Multiple: delete failed: `+r))})}}async function o(e,t){V(`pre move: `+l(E.elements));let r;for(r=0;r<E.elements.length&&!E.elements[r].sameTerm(n);r++);if(r===E.elements.length&&alert(`list move: not found element for `+n),t){if(r===0){alert(`@@ boop - already at top -temp message`);return}E.elements.splice(r-1,2,E.elements[r],E.elements[r-1])}else{if(r===E.elements.length-1){alert(`@@ boop - already at bottom -temp message`);return}E.elements.splice(r,2,E.elements[r+1],E.elements[r])}await k()}function u(e,t){V(`Item done callback for item ${n.toString()}`),e||Y_(` Item done callback: Error: `+t),c(e,t)}z(`Multiple: render object: `+n);let d=Xy(e,w)(e,null,i,n,w,s,u);if(d.subject=n,p.updater.editable(s.uri)&&(vy(e,d,S,r),y)){let t=e.createElement(`div`);t.style.display=`grid`,t.style.gridTemplateColumns=`auto 3em`,t.style.gridTemplateRows=`50% 50%`;let n=Y(e,q.iconBase+`noun_1369237.svg`,`Move Up`,async e=>o(e,!0)),r=Y(e,q.iconBase+`noun_1369241.svg`,`Move Down`,async e=>o(e,!1)),i=e.createElement(`div`);return i.appendChild(d),t.appendChild(i),t.appendChild(n),t.appendChild(r),n.style.gridColumn=2,r.style.gridColumn=2,n.style.gridRow=1,r.style.padding=`0em`,n.style.padding=`0em`,r.style.gridRow=2,i.style.gridColumn=1,i.style.gridRowStart=`span 2`,t}return d}let f=q.iconBase+`noun_19460_green.svg`,p=n.store,m=o.doc?o.doc():null,h=e.createElement(`div`),g=h,_=I.ui;r&&r.appendChild(h);let v=p.any(o,_(`ordered`)),y=v?t.Node.toJS(v):!1,b=p.any(o,_(`property`)),x=p.anyJS(o,_(`reverse`),null,m);if(!b)return h.appendChild(K(e,`No property to multiple: `+o)),g;let S=p.any(o,_(`label`));S||=B(b);let C=p.any(o,_(`min`));C=C?0+C.value:0;let w=p.any(o,_(`part`));if(!w)return h.appendChild(K(e,`No part to multiple: `+o)),g;let T=h.appendChild(e.createElement(`div`));T.style.display=`flex`,T.style.flexDirection=`column`;let E,D;if(D=x?p.any(null,b,a,s):p.any(a,b,null,s),y?(E=x?p.any(null,b,a,s):p.any(a,b,null,s),D=E?E.elements:[]):(D=x?p.each(null,b,a,s):p.each(a,b,null,s),E=null),p.updater.editable(s.uri)){let t=h.appendChild(e.createElement(`div`));t.style.padding=`0.5em`;let n=t.appendChild(e.createElement(`img`));n.setAttribute(`src`,f),n.setAttribute(`style`,`margin: 0.2em; width: 1.5em; height:1.5em`),n.title=`Click to add another `+S;let r=e.createElement(`span`);r.textContent=(D.length===0?`Add another `:`Add `)+S,t.addEventListener(`click`,async e=>{await u()},!0),t.appendChild(r)}function O(){E||(E=new t.Collection,x?p.add(E,b,a,s):p.add(a,b,E,s))}async function k(){V(`save list: `+l(E.elements)),O();try{await p.fetcher.putBack(s)}catch(t){h.appendChild(K(e,`Error trying to put back a list: `+t));return}A()}function A(){let e;if(y){let t=x?p.the(null,b,a,s):p.the(a,b,null,s);e=t?t.elements:[]}else e=x?p.each(null,b,a,s):p.each(a,b,null,s),e.sort();D_(T,e,d)}T.refresh=A,A();async function j(){let e=C-D.length;if(e>0){for(let t=0;t<e;t++)V(`Adding extra: min `+C),await u();await k()}}return j().then(()=>{V(` Multiple render: async stuff ok`)},e=>{Y_(` Multiple render: async stuff fails. #### `,e)}),g},X[I.ui(`PhoneField`).uri]=rb,X[I.ui(`EmailField`).uri]=rb,X[I.ui(`ColorField`).uri]=rb,X[I.ui(`DateField`).uri]=rb,X[I.ui(`DateTimeField`).uri]=rb,X[I.ui(`TimeField`).uri]=rb,X[I.ui(`NumericField`).uri]=rb,X[I.ui(`IntegerField`).uri]=rb,X[I.ui(`DecimalField`).uri]=rb,X[I.ui(`FloatField`).uri]=rb,X[I.ui(`TextField`).uri]=rb,X[I.ui(`SingleLineTextField`).uri]=rb,X[I.ui(`NamedNodeURIField`).uri]=rb,X[I.ui(`MultiLineTextField`).uri]=function(e,t,r,i,a,o,s){let c=I.ui,l=n.store,u=a.doc?a.doc():null,d=l.any(a,c(`property`));if(!d)return K(e,`No property to text field: `+a);let f=e.createElement(`div`);f.style.display=`flex`,f.style.flexDirection=`row`;let p=f.appendChild(e.createElement(`div`));p.style.width=W.formFieldNameBoxWidth;let m=f.appendChild(e.createElement(`div`));p.appendChild(tb(e,d,a)),o=nb(i,d,o);let h=l.anyJS(i,d,null,o)||``,g=l.updater.editable(o.uri),_=a&&l.anyJS(a,I.ui(`suppressEmptyUneditable`),null,u);!g&&_&&h===``&&(f.style.display=`none`);let v=ux(e,l,i,d,o,s);return m.appendChild(v),t&&t.appendChild(f),f};function $b(e,r,i,a,o,s,c,l){let u=I.ui,d=n.store,f=d.any(o,u(`property`));if(!f){let t=K(e,`No property to boolean field: `+o);return r&&r.appendChild(t),t}let p=d.any(o,u(`label`));p||=B(f,!0),s=nb(a,f,s);let m=d.any(a,f);m===void 0&&(m=!1);let h=t.st(a,f,!0,s),g=t.st(a,f,!1,s),_=hx(e,d,p,g,h,o,s,l);return r&&r.appendChild(_),_}X[I.ui(`BooleanField`).uri]=function(e,t,n,r,i,a,o){return $b(e,t,n,r,i,a,o,!1)},X[I.ui(`TristateField`).uri]=function(e,t,n,r,i,a,o){return $b(e,t,n,r,i,a,o,!0)},X[I.ui(`Classifier`).uri]=function(e,t,r,i,a,o,s){let c=n.store,l=I.ui,u=c.any(a,l(`category`));if(!u)return K(e,`No category for classifier: `+a);z(`Classifier: dataDoc=`+o);let d=function(e,t){return s(e||e,t)},f=e.createElement(`div`);f.setAttribute(`class`,`classifierBox`);let p=e.createElement(`div`);p.setAttribute(`class`,`formFieldName classifierBox-label`),p.appendChild(tb(e,u,a)),f.appendChild(p);let m=e.createElement(`div`);m.setAttribute(`class`,`formFieldValue classifierBox-selectBox`);let h=mx(e,c,i,u,o,d);if(h&&h.querySelectorAll){let e=h.querySelectorAll(`select`);e.length&&!c.updater.editable(o.uri)&&e.forEach(e=>{e.readOnly=!0,e.style=G.textInputStyleUneditable})}return m.appendChild(h),f.appendChild(m),t&&t.appendChild(f),f},X[I.ui(`Choice`).uri]=function(e,r,i,a,o,s,c){let l=I.ui,u=n.store,d=o.doc?o.doc():null,f,p=e.createElement(`div`);p.setAttribute(`class`,`choiceBox`),r&&r.appendChild(p);let m=e.createElement(`div`);m.setAttribute(`class`,`formFieldName choiceBox-label`),p.appendChild(m);let h=e.createElement(`div`);h.setAttribute(`class`,`formFieldValue choiceBox-selectBox`),p.appendChild(h);let g=u.any(o,l(`property`));if(!g)return p.appendChild(K(e,`No property for Choice: `+o));m.appendChild(tb(e,g,o));let _=u.any(o,l(`from`));if(!_)return K(e,`No 'from' for Choice: `+o);let v=u.any(o,l(`use`)),y={form:o,subForm:v,disambiguate:!1};function b(e){let t=[],n;t=u.each(void 0,I.rdf(`type`),_,d);for(let n in yx(u,_,e))t.push(u.fromNT(n));if(_.sameTerm(I.rdfs(`Class`)))for(f in jy())t.push(u.sym(f));else if(_.sameTerm(I.rdf(`Property`))){for(f in n=My(u),n.op)t.push(u.fromNT(f));for(f in n.dp)t.push(u.fromNT(f));y.disambiguate=!0}else if(_.sameTerm(I.owl(`ObjectProperty`))){for(f in n=My(u),n.op)t.push(u.fromNT(f));y.disambiguate=!0}else if(_.sameTerm(I.owl(`DatatypeProperty`))){for(f in n=My(u),n.dp)t.push(u.fromNT(f));y.disambiguate=!0}return t}u.any(o,l(`canMintNew`))&&(y.mint=`* Create new *`);let x=u.any(o,l(`multiselect`));x&&(y.multiSelect=!0);let S=u.each(o,l(`search-full-store`)).length?null:s,C;return h.refresh=function(){let n=u.each(a,g,null,s).map(e=>e.value),r=b(S);if(r.push(n),r=sx(r),C=_x(e,h,u,a,g,r,n,_,y,s,c),h.innerHTML=``,h.appendChild(C),x){let r=new qb({placeholder:C.selected,select:C,container:h,textField:`textField`,valueField:`valueField`});r.init(),r.subscribe(function(r){if(r.action===`REMOVE_OPTION`&&(n=n.filter(function(e){return e!==r.value})),r.action===`CLEAR_ALL_OPTIONS`&&(n=[]),r.action===`ADD_OPTION`)if((r.value+``).includes(`Create new`)){let r=gx(s),i=[];i.push(t.st(a,g,u.sym(r),s)),_&&i.push(t.st(r,I.rdf(`type`),u.sym(_),s)),v&&ex(e,h,{},t.sym(r),v,s,function(t,a){t?(u.updater.update([],i,function(t,n,r){n||h.appendChild(K(e,`Error updating select: `+r))}),n.push(r),c&&c(t,{widget:`select`,event:`new`})):h.appendChild(K(e,`Error updating data in field of select: `+a))})}else n.push(r.value);C.update(n)})}},h.refresh(),C&&C.refresh&&C.refresh(),p};function ex(e,t,n,r,i,a,o){Xy(e,i)(e,t,n,r,i,a,o)}X[I.ui(`Comment`).uri]=X[I.ui(`Heading`).uri]=function(e,t,r,i,a,o,s){let c=I.ui,l=n.store,u=l.any(a,c(`contents`));u||=`Error: No contents in comment field.`;let d=a.doc?a.doc():null,f=qy[Yy(a)]||{},p=e.createElement(`div`);t&&t.appendChild(p);let m=p.appendChild(e.createElement(f.element));m.textContent=u,Qy(m,a);let h=l.anyJS(a,I.ui(`suppressIfUneditable`),null,d),g=l.updater.editable(o.uri);return h&&!g&&(p.style.display=`none`),p};function tx(e,t,n,r,i){let a=e.createElement(`button`);return a.setAttribute(`type`,`button`),a.innerHTML=`Edit `+B(I.ui(`Form`)),a.addEventListener(`click`,function(o){nx(e,t,{},n,I.ui(`FormForm`),r,i).setAttribute(`style`,I.ui(`FormForm`).sameTerm(n)?`background-color: #fee;`:`background-color: #ffffe7;`),a.parentNode.removeChild(a)},!0),a}function nx(e,t,n,r,i,a,o){return Xy(e,i)(e,t,n,r,i,a,o)}function rx(e,t){let n=e.each(void 0,I.rdf(`range`),t);[I.rdfs(`comment`),I.dc(`title`),I.foaf(`name`),I.foaf(`homepage`)].forEach(function(e){n.push(e)});let r=e.each(void 0,I.rdf(`type`),t);r.length>60&&(r=r.slice(0,60));let i={};for(let t=0;t<(r.length>60?60:r.length);t++)e.statementsMatching(r[t],void 0,void 0).forEach(function(e){i[e.predicate.uri]=!0});n.forEach(function(e){i[e.uri]=!0});let a=[];for(let t in i)a.push(e.sym(t));return a}function ix(e,t,n){let r=[e.sym(t)];for(;r.length>0;){let t=r.shift(),i=e.each(t,n);if(z(`Lists for `+t+`, `+n+`: `+i.length),i.length!==0)return i;let a=e.each(t,I.rdfs(`subClassOf`));for(let e=0;e<a.length;e++)r.push(a[e]),z(`findClosest: add super: `+a[e])}return[]}function ax(e){let t=n.store;z(`formsFor: subject=`+e);let r=t.findTypeURIs(e),i;for(i in r)z(` type: `+i);let a=t.bottomTypeURIs(r),o=[];for(let e in a)z(`candidatesFor: trying bottom type =`+e),o=o.concat(ix(t,e,I.ui(`creationForm`))),o=o.concat(ix(t,e,I.ui(`annotationForm`)));return o}function ox(e){let t=e.map(function(e){return[Zb.any(e,I.ui(`sequence`))||9999,e]});return t.sort(function(e,t){return e[0]-t[0]}),t.map(function(e){return e[1]})}function sx(e){let t=e.map(function(e){return[B(e).toLowerCase(),e]});return t.sort(),t.map(function(e){return e[1]})}function cx(e,t,n,r,i,a,o,s){let c=e.createElement(`button`);return c.setAttribute(`type`,`button`),c.innerHTML=`New `+B(i),c.addEventListener(`click`,function(l){c.parentNode.appendChild(lx(e,t,n,r,i,a,o,s))},!1),c}function lx(e,n,r,i,a,o,s,c){let l=e.createElement(`form`);if(!o){let t=ix(n,a.uri,I.ui(`creationForm`));if(t.length===0){let t=l.appendChild(e.createElement(`p`));t.textContent=`I am sorry, you need to provide information about a `+B(a)+` but I don't know enough information about those to ask you.`;let n=l.appendChild(e.createElement(`button`));return n.setAttribute(`type`,`button`),n.setAttribute(`style`,`float: right;`),n.innerHTML=`Goto `+B(a),n.addEventListener(`click`,function(t){e.outlineManager.GotoSubject(a,!0,void 0,!0,void 0)},!1),l}z(`lists[0] is `+t[0]),o=t[0]}z(`form is `+o),l.setAttribute(`style`,`border: 0.05em solid ${W.formBorderColor}; color: ${W.formBorderColor}`),l.innerHTML=`<h3>New `+B(a)+`</h3>`;let u=Xy(e,o),d=gx(s),f=!1,p=function(o,u){if(!o)return c(o,u);let p=[];r&&!n.holds(r,i,d,s)&&p.push(t.st(r,i,d,s)),r&&!n.holds(d,I.rdf(`type`),a,s)&&p.push(t.st(d,I.rdf(`type`),a,s)),p.length?n.updater.update([],p,m):c(!0,u),f||=l.appendChild(Ny(e,d))};function m(e,t,n){return c(t,n)}return r_(`paneUtils Object is `+d),Py(e,u(e,l,{},d,o,s,p)).setAttribute(`style`,`float: right;`),l.AJAR_subject=d,l}function ux(e,n,r,i,a,o){let s=e.createElement(`div`),c=n.anyJS(r,i,null,a)||``,l=e.createElement(`textarea`);s.appendChild(l),l.rows=c?c.split(`
2308
- `).length+2:2,l.cols=80,l.setAttribute(`style`,G.multilineTextInputStyle),c===null?l.select():l.value=c,s.refresh=function(){let e=n.any(r,i,null,a);e&&e.value!==l.value&&(l.value=e.value)};function u(c){f.disabled=!0,f.setAttribute(`style`,`visibility: hidden; float: right;`),l.disabled=!0,l.style.color=W.textInputColorPending;let u=n.statementsMatching(r,i,null,a),d=t.st(r,i,l.value,a);n.updater.update(u,d,function(t,n,r){n?(l.style.color=W.textInputColor,l.disabled=!1):s.appendChild(K(e,`Error (while saving change to `+a.uri+`): `+r)),o&&o(n,r)})}let d=n.updater.editable(a.uri),f;return d?(f=by(e,u),f.disabled=!0,f.style.visibility=`hidden`,f.style.float=`right`,s.appendChild(f),l.addEventListener(`keyup`,function(e){l.style.color=`green`,f&&(f.disabled=!1,f.style.visibility=``)},!0),l.addEventListener(`change`,u,!0)):(l.disabled=!0,l.style.backgroundColor=W.textInputBackgroundColorUneditable),s}function dx(e,n,r,i,a,o,s,c){z(`Select list length now `+a.length);let l=0,u={},d=n.updater.editable(s.uri);for(let e=0;e<a.length;e++){let t=a[e];t.uri||H(`makeSelectForClassifierOptions: option does not have an uri: ${t}, with predicate: ${i}`),!(!t.uri||t.uri in u)&&(u[t.uri]=!0,l++)}if(l===0&&!o.mint)return K(e,`Can't do selector with no options, subject= `+r+` property = `+i+`.`);z(`makeSelectForClassifierOptions: dataDoc=`+s);let f,p=function(){return f={},i.sameTerm(I.rdf(`type`))?f=n.findTypeURIs(r):n.each(r,i,null,s).forEach(function(e){f[e.uri]=!0}),f};f=p();let m=function(a){h.disabled=!0;let l=[],u=[],d=function(e){n.holds(r,i,e,s)&&l.push(t.st(r,i,e,s))},m;for(let a=0;a<h.options.length;a++){let l=h.options[a];if(l.selected&&l.AJAR_mint){if(o.mintClass){let t=lx(e,n,r,i,o.mintClass,null,s,function(e,t){e||c(e,t,{change:`new`})});h.parentNode.appendChild(t),m=t.AJAR_subject}else m=gx(s);u.push(t.st(r,i,m,s)),o.mintStatementsFun&&(u=u.concat(o.mintStatementsFun(m)))}l.AJAR_uri&&(l.selected&&!(l.AJAR_uri in f)&&u.push(t.st(r,i,n.sym(l.AJAR_uri),s)),!l.selected&&l.AJAR_uri in f&&d(n.sym(l.AJAR_uri)),l.selected&&(h.currentURI=l.AJAR_uri))}let g=h.subSelect;for(;g&&g.currentURI;)d(n.sym(g.currentURI)),g=g.subSelect;for(g=h.superSelect;g&&g.currentURI;)d(n.sym(g.currentURI)),g=g.superSelect;function _(e,t){c(e,{widget:`select`,event:`new`})}r_(`makeSelectForClassifierOptions: data doc = `+s),n.updater.update(l,u,function(t,n,r){if(f=p(),n)h.disabled=!1,m&&Xy(e,o.subForm)(e,h.parentNode,{},m,o.subForm,s,_);else return h.parentNode.appendChild(K(e,`Error updating data in select: `+r));c&&c(n,{widget:`select`,event:`change`})})},h=e.createElement(`select`);h.setAttribute(`style`,G.formSelectStyle),o.multiple&&h.setAttribute(`multiple`,`true`),h.currentURI=null,h.refresh=function(){f=p();for(let e=0;e<h.children.length;e++){let t=h.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in f)}h.disabled=!1};for(let t in u){let r=n.sym(t),i=e.createElement(`option`);o.disambiguate?i.appendChild(e.createTextNode(V_(r,!0))):i.appendChild(e.createTextNode(B(r,!0)));let a=n.any(r,n.sym(`http://www.w3.org/ns/ui#backgroundColor`));a&&i.setAttribute(`style`,`background-color: `+a.value+`; `),i.AJAR_uri=t,t in f&&(i.setAttribute(`selected`,`true`),h.currentURI=t),h.appendChild(i)}if(d&&o.mint){let t=e.createElement(`option`);t.appendChild(e.createTextNode(o.mint)),t.AJAR_mint=!0,h.insertBefore(t,h.firstChild)}if(h.currentURI==null&&!o.multiple){let t=e.createElement(`option`);t.appendChild(e.createTextNode(o.nullLabel)),h.insertBefore(t,h.firstChild),t.selected=!0}return d&&h.addEventListener(`change`,m,!1),h}function fx(e,n,r,i,a,o,s,c){z(`Select list length now `+a.length);let l=0,u={},d=n.updater.editable(s.uri);for(let e=0;e<a.length;e++){let t=a[e];t.uri||H(`makeSelectForOptions: option does not have an uri: ${t}, with predicate: ${i}`),!(!t.uri||t.uri in u)&&(u[t.uri]=!0,l++)}if(l===0)return K(e,`Can't do selector with no options, subject= `+r+` property = `+i+`.`);z(`makeSelectForOptions: dataDoc=`+s);let f,p=function(){return f={},i.sameTerm(I.rdf(`type`))?f=n.findTypeURIs(r):n.each(r,i,null,s).forEach(function(e){e.uri&&(f[e.uri]=!0)}),f};f=p();let m=function(a){h.disabled=!0;let o=[],l=[],u=function(e){n.holds(r,i,e,s)&&o.push(t.st(r,i,e,s))};for(let e=0;e<h.options.length;e++){let a=h.options[e];a.AJAR_uri&&(a.selected&&!(a.AJAR_uri in f)&&l.push(t.st(r,i,n.sym(a.AJAR_uri),s)),!a.selected&&a.AJAR_uri in f&&u(n.sym(a.AJAR_uri)),a.selected&&(h.currentURI=a.AJAR_uri))}let d=h.subSelect;for(;d&&d.currentURI;)u(n.sym(d.currentURI)),d=d.subSelect;for(d=h.superSelect;d&&d.currentURI;)u(n.sym(d.currentURI)),d=d.superSelect;r_(`selectForOptions: data doc = `+s),n.updater.update(o,l,function(t,n,r){if(f=p(),n)h.disabled=!1;else return h.parentNode.appendChild(K(e,`Error updating data in select: `+r));c&&c(n,{widget:`select`,event:`change`})})},h=e.createElement(`select`);h.setAttribute(`style`,G.formSelectStyle),h.currentURI=null,h.refresh=function(){f=p();for(let e=0;e<h.children.length;e++){let t=h.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in f)}h.disabled=!1};for(let t in u){let r=n.sym(t),i=e.createElement(`option`);o.disambiguate?i.appendChild(e.createTextNode(V_(r,!0))):i.appendChild(e.createTextNode(B(r,!0)));let a=n.any(r,n.sym(`http://www.w3.org/ns/ui#backgroundColor`));a&&i.setAttribute(`style`,`background-color: `+a.value+`; `),i.AJAR_uri=t,t in f&&(i.setAttribute(`selected`,`true`),h.currentURI=t),h.appendChild(i)}if(!h.currentURI){let t=e.createElement(`option`);t.appendChild(e.createTextNode(o.nullLabel)),h.insertBefore(t,h.firstChild),t.selected=!0}return d&&h.addEventListener(`change`,m,!1),h}function px(e,t,n,r,i,a){let o=t.any(r,I.owl(`disjointUnionOf`)),s,c=!1;return o?s=o.elements:(s=t.each(void 0,I.rdfs(`subClassOf`),r),c=!0),z(`Select list length `+s.length),s.length===0?K(e,`Can't do `+(c?`multiple `:``)+`selector with no subclasses of category: `+r):s.length===1?K(e,`Can't do `+(c?`multiple `:``)+`selector with only 1 subclass of category: `+r+`:`+s[1]):dx(e,t,n,I.rdf(`type`),s,{multiple:c,nullLabel:`* Select type *`},i,a)}function mx(e,t,n,r,i,a){function o(){c&&=(s.removeChild(c),null),u.currentURI&&t.any(t.sym(u.currentURI),I.owl(`disjointUnionOf`))&&(c=mx(e,t,n,t.sym(u.currentURI),i,a),u.subSelect=c.firstChild,u.subSelect.superSelect=u,s.appendChild(c))}let s=e.createElement(`span`),c=null;function l(e,t){e&&o(),a(e,t)}let u=px(e,t,n,r,i,l);return s.appendChild(u),o(),s}function hx(e,t,n,r,i,a,o,s){let c=e.createElement(`div`),l=eb(e,t,c,a,n),u=t.updater.editable(o.uri),d=e.createElement(`button`),f=d;d.style=G.checkboxInputStyle,l.appendChild(d);function p(e){if(!e)return[];if(e.object)return e.why||=o,[e];if(e instanceof Array)return e;throw Error(`buildCheckboxForm: bad param `+e)}i=p(i),r=p(r);function m(e){return e.filter(e=>!t.holds(e.subject,e.predicate,e.object,e.why)).length===0}function h(){let n=m(i),o=n;if(r.length){let l=m(r);if(n&&l)return c.appendChild(K(e,`Inconsistent data in dataDoc!
2001
+ <span style="display: none;" class="multiselect__clear-btn" style="${Q.multiselect__clear_btn}">${this._cross}</span>
2002
+ `;this._multiselect.innerHTML=t,this._selectContainer.appendChild(this._multiselect)}_scrollIntoView(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();n.top<r.bottom-t.offsetHeight||(e.scrollTop=t.clientHeight+(t.offsetTop-t.offsetHeight)),n.bottom>r.top+t.offsetHeight||(e.scrollTop=t.clientHeight+(t.offsetTop-t.offsetHeight)-(e.offsetHeight-(t.offsetHeight+(t.offsetHeight-t.clientHeight))))}_showNoData(e){return e?`<p class="multiselect__options--no-data" style="${Q.multiselect__options_ul_p_multiselect__options_no_data}">${this._noData}</p>`:``}_showNoResults(e){let t=this._multiselect.querySelector(`.multiselect__options--no-results`);if(e){let e=`<p class="multiselect__options--no-results" style="${Q.multiselect__options_ul_p_multiselect__options_no_results}">${this._noResults}</p>`;!t&&this._domElements.optionsContainerList.insertAdjacentHTML(`beforeend`,e)}else t&&t.parentNode&&t.parentNode.removeChild(t)}},uT=`✓`,dT=`✕`,fT=`-`,pT=n.store;Z[R.ui(`AutocompleteField`).uri]=cT;function mT(e,t,n,r,i,a,o){let s=a.children;for(let c=0;c<o.length;c++){let l=o[c];if(dw(l)===R.ui(`Options`).uri){let o=fw(e,l)(e,null,t,n,l,r,i);W(`Refreshing Options field by replacing it.`),a.insertBefore(o,s[c]),a.removeChild(s[c+1])}}}Z[R.ui(`Form`).uri]=Z[R.ui(`Group`).uri]=function(e,t,n,r,i,a,o){let s=e.createElement(`div`),c=R.ui;if(t&&t.appendChild(s),!i)return;let l=r.toNT()+`|`+i.toNT();if(n[l])return s.appendChild(e.createTextNode(`Group: see above `+l)),s;let u={};for(let e in n)u[e]=1;u[l]=1;let d=i.doc?i.doc():null,f=pT.any(i,c(`weight`),null,d),p=f?Number(f.value):1;if(p>3||p<0)return s.appendChild(q(e,`Form Group weight ${p} should be 0-3`));s.setAttribute(`style`,U.formGroupStyle[p]),s.style.display=`flex`,s.style.flexDirection=`column`,s.class=`form-weight-`+p;let m=pT.any(i,c(`parts`),null,d),h;if(m?h=m.elements:(m=pT.each(i,c(`part`),null,d),h=ST(m)),!m)return s.appendChild(q(e,`No parts to form! `));for(let t=0;t<h.length;t++){let i=h[t],c=fw(e,i);s.appendChild(c(e,null,u,r,i,a,function(t,i){t&&i&&i.widget&&i.widget===`select`&&mT(e,n,r,a,o,s,h),o(t,{widget:`group`,change:i})}))}return s},Z[R.ui(`Options`).uri]=function(e,r,i,a,o,s,c){let l=n.store,u=e.createElement(`div`),d=o.doc?o.doc():null,f=R.ui;r&&r.appendChild(u);let p=l.any(o,f(`dependingOn`));p||=R.rdf(`type`);let m=l.each(o,f(`case`),null,d);m||u.appendChild(q(e,`No cases to Options form. `));let h;h=p.sameTerm(R.rdf(`type`))?Object.keys(l.findTypeURIs(a)).map(e=>t.sym(e)):l.each(a,p);for(let t=0;t<m.length;t++){let n=m[t],r=l.each(n,f(`for`),null,d),p=!1;for(let e=0;e<r.length;e++)for(let t of h){let n=r[e];(t.sameTerm(r)||t.termType===n.termType&&t.value===n.value)&&(p=!0)}if(p){let t=l.the(n,f(`use`));if(t)vT(e,u,i,a,t,s,c);else return u.appendChild(q(e,`No "use" part for case in form `+o)),u;break}}return u},Z[R.ui(`Multiple`).uri]=function(e,r,i,a,o,s,c){function l(e){return e.map(e=>e.toString().slice(-7)).join(`, `)}async function u(){let n=MT(s);if(y)O(),E.elements.push(n),await k();else{let r=x?[t.st(n,b,a,s)]:[t.st(a,b,n,s)];try{await p.updater.update([],r)}catch(t){let n=`Error adding to unordered multiple: `+t;h.appendChild(q(e,n)),dS(n)}A()}}function d(n){async function r(){if(y){W(`pre delete: `+l(E.elements));for(let e=0;e<E.elements.length;e++)if(E.elements[e].sameTerm(n)){E.elements.splice(e,1),await k();return}}else if(p.holds(a,b,n,s)){let r=[t.st(a,b,n,s)];p.updater.update(r,[],function(t,n,r){n?T.removeChild(d):T.appendChild(q(e,`Multiple: delete failed: `+r))})}}async function o(e,t){W(`pre move: `+l(E.elements));let r;for(r=0;r<E.elements.length&&!E.elements[r].sameTerm(n);r++);if(r===E.elements.length&&alert(`list move: not found element for `+n),t){if(r===0){alert(`@@ boop - already at top -temp message`);return}E.elements.splice(r-1,2,E.elements[r],E.elements[r-1])}else{if(r===E.elements.length-1){alert(`@@ boop - already at bottom -temp message`);return}E.elements.splice(r,2,E.elements[r+1],E.elements[r])}await k()}function u(e,t){W(`Item done callback for item ${n.toString()}`),e||dS(` Item done callback: Error: `+t),c(e,t)}Bv(`Multiple: render object: `+n);let d=fw(e,w)(e,null,i,n,w,s,u);if(d.subject=n,p.updater.editable(s.uri)&&(PC(e,d,S,r),y)){let t=e.createElement(`div`);t.style.display=`grid`,t.style.gridTemplateColumns=`auto 3em`,t.style.gridTemplateRows=`50% 50%`;let n=X(e,J.iconBase+`noun_1369237.svg`,`Move Up`,async e=>o(e,!0)),r=X(e,J.iconBase+`noun_1369241.svg`,`Move Down`,async e=>o(e,!1)),i=e.createElement(`div`);return i.appendChild(d),t.appendChild(i),t.appendChild(n),t.appendChild(r),n.style.gridColumn=2,r.style.gridColumn=2,n.style.gridRow=1,r.style.padding=`0em`,n.style.padding=`0em`,r.style.gridRow=2,i.style.gridColumn=1,i.style.gridRowStart=`span 2`,t}return d}let f=J.iconBase+`noun_19460_green.svg`,p=n.store,m=o.doc?o.doc():null,h=e.createElement(`div`),g=h,_=R.ui;r&&r.appendChild(h);let v=p.any(o,_(`ordered`)),y=v?t.Node.toJS(v):!1,b=p.any(o,_(`property`)),x=p.anyJS(o,_(`reverse`),null,m);if(!b)return h.appendChild(q(e,`No property to multiple: `+o)),g;let S=p.any(o,_(`label`));S||=V(b);let C=p.any(o,_(`min`));C=C?0+C.value:0;let w=p.any(o,_(`part`));if(!w)return h.appendChild(q(e,`No part to multiple: `+o)),g;let T=h.appendChild(e.createElement(`div`));T.style.display=`flex`,T.style.flexDirection=`column`;let E,D;if(D=x?p.any(null,b,a,s):p.any(a,b,null,s),y?(E=x?p.any(null,b,a,s):p.any(a,b,null,s),D=E?E.elements:[]):(D=x?p.each(null,b,a,s):p.each(a,b,null,s),E=null),p.updater.editable(s.uri)){let t=h.appendChild(e.createElement(`div`));t.style.padding=`0.5em`;let n=t.appendChild(e.createElement(`img`));n.setAttribute(`src`,f),n.setAttribute(`style`,`margin: 0.2em; width: 1.5em; height:1.5em`),n.title=`Click to add another `+S;let r=e.createElement(`span`);r.textContent=(D.length===0?`Add another `:`Add `)+S,t.addEventListener(`click`,async e=>{await u()},!0),t.appendChild(r)}function O(){E||(E=new t.Collection,x?p.add(E,b,a,s):p.add(a,b,E,s))}async function k(){W(`save list: `+l(E.elements)),O();try{await p.fetcher.putBack(s)}catch(t){h.appendChild(q(e,`Error trying to put back a list: `+t));return}A()}function A(){let e;if(y){let t=x?p.the(null,b,a,s):p.the(a,b,null,s);e=t?t.elements:[]}else e=x?p.each(null,b,a,s):p.each(a,b,null,s),e.sort();dy(T,e,d)}T.refresh=A,A();async function j(){let e=C-D.length;if(e>0){for(let t=0;t<e;t++)W(`Adding extra: min `+C),await u();await k()}}return j().then(()=>{W(` Multiple render: async stuff ok`)},e=>{dS(` Multiple render: async stuff fails. #### `,e)}),g},Z[R.ui(`PhoneField`).uri]=yw,Z[R.ui(`EmailField`).uri]=yw,Z[R.ui(`ColorField`).uri]=yw,Z[R.ui(`DateField`).uri]=yw,Z[R.ui(`DateTimeField`).uri]=yw,Z[R.ui(`TimeField`).uri]=yw,Z[R.ui(`NumericField`).uri]=yw,Z[R.ui(`IntegerField`).uri]=yw,Z[R.ui(`DecimalField`).uri]=yw,Z[R.ui(`FloatField`).uri]=yw,Z[R.ui(`TextField`).uri]=yw,Z[R.ui(`SingleLineTextField`).uri]=yw,Z[R.ui(`NamedNodeURIField`).uri]=yw,Z[R.ui(`MultiLineTextField`).uri]=function(e,t,r,i,a,o,s){let c=R.ui,l=n.store,u=a.doc?a.doc():null,d=l.any(a,c(`property`));if(!d)return q(e,`No property to text field: `+a);let f=e.createElement(`div`);f.style.display=`flex`,f.style.flexDirection=`row`;let p=f.appendChild(e.createElement(`div`));p.style.width=H.formFieldNameBoxWidth;let m=f.appendChild(e.createElement(`div`));p.appendChild(_w(e,d,a)),o=vw(i,d,o);let h=l.anyJS(i,d,null,o)||``,g=l.updater.editable(o.uri),_=a&&l.anyJS(a,R.ui(`suppressEmptyUneditable`),null,u);!g&&_&&h===``&&(f.style.display=`none`);let v=ET(e,l,i,d,o,s);return m.appendChild(v),t&&t.appendChild(f),f};function hT(e,r,i,a,o,s,c,l){let u=R.ui,d=n.store,f=d.any(o,u(`property`));if(!f){let t=q(e,`No property to boolean field: `+o);return r&&r.appendChild(t),t}let p=d.any(o,u(`label`));p||=V(f,!0),s=vw(a,f,s);let m=d.any(a,f);m===void 0&&(m=!1);let h=t.st(a,f,!0,s),g=t.st(a,f,!1,s),_=jT(e,d,p,g,h,o,s,l);return r&&r.appendChild(_),_}Z[R.ui(`BooleanField`).uri]=function(e,t,n,r,i,a,o){return hT(e,t,n,r,i,a,o,!1)},Z[R.ui(`TristateField`).uri]=function(e,t,n,r,i,a,o){return hT(e,t,n,r,i,a,o,!0)},Z[R.ui(`Classifier`).uri]=function(e,t,r,i,a,o,s){let c=n.store,l=R.ui,u=c.any(a,l(`category`));if(!u)return q(e,`No category for classifier: `+a);Bv(`Classifier: dataDoc=`+o);let d=function(e,t){return s(e||e,t)},f=e.createElement(`div`);f.setAttribute(`class`,`classifierBox`);let p=e.createElement(`div`);p.setAttribute(`class`,`formFieldName classifierBox-label`),p.appendChild(_w(e,u,a)),f.appendChild(p);let m=e.createElement(`div`);m.setAttribute(`class`,`formFieldValue classifierBox-selectBox`);let h=AT(e,c,i,u,o,d);if(h&&h.querySelectorAll){let e=h.querySelectorAll(`select`);e.length&&!c.updater.editable(o.uri)&&e.forEach(e=>{e.readOnly=!0,e.style=U.textInputStyleUneditable})}return m.appendChild(h),f.appendChild(m),t&&t.appendChild(f),f},Z[R.ui(`Choice`).uri]=function(e,r,i,a,o,s,c){let l=R.ui,u=n.store,d=o.doc?o.doc():null,f,p=e.createElement(`div`);p.setAttribute(`class`,`choiceBox`),r&&r.appendChild(p);let m=e.createElement(`div`);m.setAttribute(`class`,`formFieldName choiceBox-label`),p.appendChild(m);let h=e.createElement(`div`);h.setAttribute(`class`,`formFieldValue choiceBox-selectBox`),p.appendChild(h);let g=u.any(o,l(`property`));if(!g)return p.appendChild(q(e,`No property for Choice: `+o));m.appendChild(_w(e,g,o));let _=u.any(o,l(`from`));if(!_)return q(e,`No 'from' for Choice: `+o);let v=u.any(o,l(`use`)),y={form:o,subForm:v,disambiguate:!1};function b(e){let t=[],n;t=u.each(void 0,R.rdf(`type`),_,d);for(let n in FT(u,_,e))t.push(u.fromNT(n));if(_.sameTerm(R.rdfs(`Class`)))for(f in qC())t.push(u.sym(f));else if(_.sameTerm(R.rdf(`Property`))){for(f in n=JC(u),n.op)t.push(u.fromNT(f));for(f in n.dp)t.push(u.fromNT(f));y.disambiguate=!0}else if(_.sameTerm(R.owl(`ObjectProperty`))){for(f in n=JC(u),n.op)t.push(u.fromNT(f));y.disambiguate=!0}else if(_.sameTerm(R.owl(`DatatypeProperty`))){for(f in n=JC(u),n.dp)t.push(u.fromNT(f));y.disambiguate=!0}return t}u.any(o,l(`canMintNew`))&&(y.mint=`* Create new *`);let x=u.any(o,l(`multiselect`));x&&(y.multiSelect=!0);let S=u.each(o,l(`search-full-store`)).length?null:s,C;return h.refresh=function(){let n=u.each(a,g,null,s).map(e=>e.value),r=b(S);if(r.push(n),r=CT(r),C=NT(e,h,u,a,g,r,n,_,y,s,c),h.innerHTML=``,h.appendChild(C),x){let r=new lT({placeholder:C.selected,select:C,container:h,textField:`textField`,valueField:`valueField`});r.init(),r.subscribe(function(r){if(r.action===`REMOVE_OPTION`&&(n=n.filter(function(e){return e!==r.value})),r.action===`CLEAR_ALL_OPTIONS`&&(n=[]),r.action===`ADD_OPTION`)if((r.value+``).includes(`Create new`)){let r=MT(s),i=[];i.push(t.st(a,g,u.sym(r),s)),_&&i.push(t.st(r,R.rdf(`type`),u.sym(_),s)),v&&gT(e,h,{},t.sym(r),v,s,function(t,a){t?(u.updater.update([],i,function(t,n,r){n||h.appendChild(q(e,`Error updating select: `+r))}),n.push(r),c&&c(t,{widget:`select`,event:`new`})):h.appendChild(q(e,`Error updating data in field of select: `+a))})}else n.push(r.value);C.update(n)})}},h.refresh(),C&&C.refresh&&C.refresh(),p};function gT(e,t,n,r,i,a,o){fw(e,i)(e,t,n,r,i,a,o)}Z[R.ui(`Comment`).uri]=Z[R.ui(`Heading`).uri]=function(e,t,r,i,a,o,s){let c=R.ui,l=n.store,u=l.any(a,c(`contents`));u||=`Error: No contents in comment field.`;let d=a.doc?a.doc():null,f=lw[dw(a)]||{},p=e.createElement(`div`);t&&t.appendChild(p);let m=p.appendChild(e.createElement(f.element));m.textContent=u,mw(m,a);let h=l.anyJS(a,R.ui(`suppressIfUneditable`),null,d),g=l.updater.editable(o.uri);return h&&!g&&(p.style.display=`none`),p};function _T(e,t,n,r,i){let a=e.createElement(`button`);return a.setAttribute(`type`,`button`),a.innerHTML=`Edit `+V(R.ui(`Form`)),a.addEventListener(`click`,function(o){vT(e,t,{},n,R.ui(`FormForm`),r,i).setAttribute(`style`,R.ui(`FormForm`).sameTerm(n)?`background-color: #fee;`:`background-color: #ffffe7;`),a.parentNode.removeChild(a)},!0),a}function vT(e,t,n,r,i,a,o){return fw(e,i)(e,t,n,r,i,a,o)}function yT(e,t){let n=e.each(void 0,R.rdf(`range`),t);[R.rdfs(`comment`),R.dc(`title`),R.foaf(`name`),R.foaf(`homepage`)].forEach(function(e){n.push(e)});let r=e.each(void 0,R.rdf(`type`),t);r.length>60&&(r=r.slice(0,60));let i={};for(let t=0;t<(r.length>60?60:r.length);t++)e.statementsMatching(r[t],void 0,void 0).forEach(function(e){i[e.predicate.uri]=!0});n.forEach(function(e){i[e.uri]=!0});let a=[];for(let t in i)a.push(e.sym(t));return a}function bT(e,t,n){let r=[e.sym(t)];for(;r.length>0;){let t=r.shift(),i=e.each(t,n);if(Bv(`Lists for `+t+`, `+n+`: `+i.length),i.length!==0)return i;let a=e.each(t,R.rdfs(`subClassOf`));for(let e=0;e<a.length;e++)r.push(a[e]),Bv(`findClosest: add super: `+a[e])}return[]}function xT(e){let t=n.store;Bv(`formsFor: subject=`+e);let r=t.findTypeURIs(e),i;for(i in r)Bv(` type: `+i);let a=t.bottomTypeURIs(r),o=[];for(let e in a)Bv(`candidatesFor: trying bottom type =`+e),o=o.concat(bT(t,e,R.ui(`creationForm`))),o=o.concat(bT(t,e,R.ui(`annotationForm`)));return o}function ST(e){let t=e.map(function(e){return[pT.any(e,R.ui(`sequence`))||9999,e]});return t.sort(function(e,t){return e[0]-t[0]}),t.map(function(e){return e[1]})}function CT(e){let t=e.map(function(e){return[V(e).toLowerCase(),e]});return t.sort(),t.map(function(e){return e[1]})}function wT(e,t,n,r,i,a,o,s){let c=e.createElement(`button`);return c.setAttribute(`type`,`button`),c.innerHTML=`New `+V(i),c.addEventListener(`click`,function(l){c.parentNode.appendChild(TT(e,t,n,r,i,a,o,s))},!1),c}function TT(e,n,r,i,a,o,s,c){let l=e.createElement(`form`);if(!o){let t=bT(n,a.uri,R.ui(`creationForm`));if(t.length===0){let t=l.appendChild(e.createElement(`p`));t.textContent=`I am sorry, you need to provide information about a `+V(a)+` but I don't know enough information about those to ask you.`;let n=l.appendChild(e.createElement(`button`));return n.setAttribute(`type`,`button`),n.setAttribute(`style`,`float: right;`),n.innerHTML=`Goto `+V(a),n.addEventListener(`click`,function(t){e.outlineManager.GotoSubject(a,!0,void 0,!0,void 0)},!1),l}Bv(`lists[0] is `+t[0]),o=t[0]}Bv(`form is `+o),l.setAttribute(`style`,`border: 0.05em solid ${H.formBorderColor}; color: ${H.formBorderColor}`),l.innerHTML=`<h3>New `+V(a)+`</h3>`;let u=fw(e,o),d=MT(s),f=!1,p=function(o,u){if(!o)return c(o,u);let p=[];r&&!n.holds(r,i,d,s)&&p.push(t.st(r,i,d,s)),r&&!n.holds(d,R.rdf(`type`),a,s)&&p.push(t.st(d,R.rdf(`type`),a,s)),p.length?n.updater.update([],p,m):c(!0,u),f||=l.appendChild(YC(e,d))};function m(e,t,n){return c(t,n)}return Vv(`paneUtils Object is `+d),XC(e,u(e,l,{},d,o,s,p)).setAttribute(`style`,`float: right;`),l.AJAR_subject=d,l}function ET(e,n,r,i,a,o){let s=e.createElement(`div`),c=n.anyJS(r,i,null,a)||``,l=e.createElement(`textarea`);s.appendChild(l),l.rows=c?c.split(`
2003
+ `).length+2:2,l.cols=80,l.setAttribute(`style`,U.multilineTextInputStyle),c===null?l.select():l.value=c,s.refresh=function(){let e=n.any(r,i,null,a);e&&e.value!==l.value&&(l.value=e.value)};function u(c){f.disabled=!0,f.setAttribute(`style`,`visibility: hidden; float: right;`),l.disabled=!0,l.style.color=H.textInputColorPending;let u=n.statementsMatching(r,i,null,a),d=t.st(r,i,l.value,a);n.updater.update(u,d,function(t,n,r){n?(l.style.color=H.textInputColor,l.disabled=!1):s.appendChild(q(e,`Error (while saving change to `+a.uri+`): `+r)),o&&o(n,r)})}let d=n.updater.editable(a.uri),f;return d?(f=IC(e,u),f.disabled=!0,f.style.visibility=`hidden`,f.style.float=`right`,s.appendChild(f),l.addEventListener(`keyup`,function(e){l.style.color=`green`,f&&(f.disabled=!1,f.style.visibility=``)},!0),l.addEventListener(`change`,u,!0)):(l.disabled=!0,l.style.backgroundColor=H.textInputBackgroundColorUneditable),s}function DT(e,n,r,i,a,o,s,c){Bv(`Select list length now `+a.length);let l=0,u={},d=n.updater.editable(s.uri);for(let e=0;e<a.length;e++){let t=a[e];t.uri||G(`makeSelectForClassifierOptions: option does not have an uri: ${t}, with predicate: ${i}`),!(!t.uri||t.uri in u)&&(u[t.uri]=!0,l++)}if(l===0&&!o.mint)return q(e,`Can't do selector with no options, subject= `+r+` property = `+i+`.`);Bv(`makeSelectForClassifierOptions: dataDoc=`+s);let f,p=function(){return f={},i.sameTerm(R.rdf(`type`))?f=n.findTypeURIs(r):n.each(r,i,null,s).forEach(function(e){f[e.uri]=!0}),f};f=p();let m=function(a){h.disabled=!0;let l=[],u=[],d=function(e){n.holds(r,i,e,s)&&l.push(t.st(r,i,e,s))},m;for(let a=0;a<h.options.length;a++){let l=h.options[a];if(l.selected&&l.AJAR_mint){if(o.mintClass){let t=TT(e,n,r,i,o.mintClass,null,s,function(e,t){e||c(e,t,{change:`new`})});h.parentNode.appendChild(t),m=t.AJAR_subject}else m=MT(s);u.push(t.st(r,i,m,s)),o.mintStatementsFun&&(u=u.concat(o.mintStatementsFun(m)))}l.AJAR_uri&&(l.selected&&!(l.AJAR_uri in f)&&u.push(t.st(r,i,n.sym(l.AJAR_uri),s)),!l.selected&&l.AJAR_uri in f&&d(n.sym(l.AJAR_uri)),l.selected&&(h.currentURI=l.AJAR_uri))}let g=h.subSelect;for(;g&&g.currentURI;)d(n.sym(g.currentURI)),g=g.subSelect;for(g=h.superSelect;g&&g.currentURI;)d(n.sym(g.currentURI)),g=g.superSelect;function _(e,t){c(e,{widget:`select`,event:`new`})}Vv(`makeSelectForClassifierOptions: data doc = `+s),n.updater.update(l,u,function(t,n,r){if(f=p(),n)h.disabled=!1,m&&fw(e,o.subForm)(e,h.parentNode,{},m,o.subForm,s,_);else return h.parentNode.appendChild(q(e,`Error updating data in select: `+r));c&&c(n,{widget:`select`,event:`change`})})},h=e.createElement(`select`);h.setAttribute(`style`,U.formSelectStyle),o.multiple&&h.setAttribute(`multiple`,`true`),h.currentURI=null,h.refresh=function(){f=p();for(let e=0;e<h.children.length;e++){let t=h.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in f)}h.disabled=!1};for(let t in u){let r=n.sym(t),i=e.createElement(`option`);o.disambiguate?i.appendChild(e.createTextNode(Ty(r,!0))):i.appendChild(e.createTextNode(V(r,!0)));let a=n.any(r,n.sym(`http://www.w3.org/ns/ui#backgroundColor`));a&&i.setAttribute(`style`,`background-color: `+a.value+`; `),i.AJAR_uri=t,t in f&&(i.setAttribute(`selected`,`true`),h.currentURI=t),h.appendChild(i)}if(d&&o.mint){let t=e.createElement(`option`);t.appendChild(e.createTextNode(o.mint)),t.AJAR_mint=!0,h.insertBefore(t,h.firstChild)}if(h.currentURI==null&&!o.multiple){let t=e.createElement(`option`);t.appendChild(e.createTextNode(o.nullLabel)),h.insertBefore(t,h.firstChild),t.selected=!0}return d&&h.addEventListener(`change`,m,!1),h}function OT(e,n,r,i,a,o,s,c){Bv(`Select list length now `+a.length);let l=0,u={},d=n.updater.editable(s.uri);for(let e=0;e<a.length;e++){let t=a[e];t.uri||G(`makeSelectForOptions: option does not have an uri: ${t}, with predicate: ${i}`),!(!t.uri||t.uri in u)&&(u[t.uri]=!0,l++)}if(l===0)return q(e,`Can't do selector with no options, subject= `+r+` property = `+i+`.`);Bv(`makeSelectForOptions: dataDoc=`+s);let f,p=function(){return f={},i.sameTerm(R.rdf(`type`))?f=n.findTypeURIs(r):n.each(r,i,null,s).forEach(function(e){e.uri&&(f[e.uri]=!0)}),f};f=p();let m=function(a){h.disabled=!0;let o=[],l=[],u=function(e){n.holds(r,i,e,s)&&o.push(t.st(r,i,e,s))};for(let e=0;e<h.options.length;e++){let a=h.options[e];a.AJAR_uri&&(a.selected&&!(a.AJAR_uri in f)&&l.push(t.st(r,i,n.sym(a.AJAR_uri),s)),!a.selected&&a.AJAR_uri in f&&u(n.sym(a.AJAR_uri)),a.selected&&(h.currentURI=a.AJAR_uri))}let d=h.subSelect;for(;d&&d.currentURI;)u(n.sym(d.currentURI)),d=d.subSelect;for(d=h.superSelect;d&&d.currentURI;)u(n.sym(d.currentURI)),d=d.superSelect;Vv(`selectForOptions: data doc = `+s),n.updater.update(o,l,function(t,n,r){if(f=p(),n)h.disabled=!1;else return h.parentNode.appendChild(q(e,`Error updating data in select: `+r));c&&c(n,{widget:`select`,event:`change`})})},h=e.createElement(`select`);h.setAttribute(`style`,U.formSelectStyle),h.currentURI=null,h.refresh=function(){f=p();for(let e=0;e<h.children.length;e++){let t=h.children[e];t.AJAR_uri&&(t.selected=t.AJAR_uri in f)}h.disabled=!1};for(let t in u){let r=n.sym(t),i=e.createElement(`option`);o.disambiguate?i.appendChild(e.createTextNode(Ty(r,!0))):i.appendChild(e.createTextNode(V(r,!0)));let a=n.any(r,n.sym(`http://www.w3.org/ns/ui#backgroundColor`));a&&i.setAttribute(`style`,`background-color: `+a.value+`; `),i.AJAR_uri=t,t in f&&(i.setAttribute(`selected`,`true`),h.currentURI=t),h.appendChild(i)}if(!h.currentURI){let t=e.createElement(`option`);t.appendChild(e.createTextNode(o.nullLabel)),h.insertBefore(t,h.firstChild),t.selected=!0}return d&&h.addEventListener(`change`,m,!1),h}function kT(e,t,n,r,i,a){let o=t.any(r,R.owl(`disjointUnionOf`)),s,c=!1;return o?s=o.elements:(s=t.each(void 0,R.rdfs(`subClassOf`),r),c=!0),Bv(`Select list length `+s.length),s.length===0?q(e,`Can't do `+(c?`multiple `:``)+`selector with no subclasses of category: `+r):s.length===1?q(e,`Can't do `+(c?`multiple `:``)+`selector with only 1 subclass of category: `+r+`:`+s[1]):DT(e,t,n,R.rdf(`type`),s,{multiple:c,nullLabel:`* Select type *`},i,a)}function AT(e,t,n,r,i,a){function o(){c&&=(s.removeChild(c),null),u.currentURI&&t.any(t.sym(u.currentURI),R.owl(`disjointUnionOf`))&&(c=AT(e,t,n,t.sym(u.currentURI),i,a),u.subSelect=c.firstChild,u.subSelect.superSelect=u,s.appendChild(c))}let s=e.createElement(`span`),c=null;function l(e,t){e&&o(),a(e,t)}let u=kT(e,t,n,r,i,l);return s.appendChild(u),o(),s}function jT(e,t,n,r,i,a,o,s){let c=e.createElement(`div`),l=gw(e,t,c,a,n),u=t.updater.editable(o.uri),d=e.createElement(`button`),f=d;d.style=U.checkboxInputStyle,l.appendChild(d);function p(e){if(!e)return[];if(e.object)return e.why||=o,[e];if(e instanceof Array)return e;throw Error(`buildCheckboxForm: bad param `+e)}i=p(i),r=p(r);function m(e){return e.filter(e=>!t.holds(e.subject,e.predicate,e.object,e.why)).length===0}function h(){let n=m(i),o=n;if(r.length){let l=m(r);if(n&&l)return c.appendChild(q(e,`Inconsistent data in dataDoc!
2309
2004
  `+i+` and
2310
- `+r)),c;if(!n&&!l){n=null;let e=t.any(a,I.ui(`default`));o=e?e.value===`1`:s?null:!1}}d.state=n,d.textContent={true:Jb,false:s?Yb:` `,null:Xb}[o]}if(h(),!u)return c;let g=!1;return d.addEventListener(`click`,function(n){if(g)return;g=!0,d.disabled=!0;let a=!1,o=function(){return a?!1:(a=!0,g=!1,d.disabled=!1,!0)},l=function(t){f.style.color=`#000`,f.style.backgroundColor=`#fee`,c.appendChild(K(e,`Checkbox: Error updating dataDoc from ${d.state} to ${d.newState}:\n\n${t}`))};f.style.color=`#bbb`;let u=d.state===!0?i:d.state===!1?r:[];d.newState=d.state===null?!0:d.state===!0?!1:!s||null;let p=d.newState===!0?i:d.newState===!1?r:[];V(` Deleting ${u}`),V(` Inserting ${p}`);try{let e=t.updater.update(u,p,function(e,n,r){o()&&(n?(f.style.color=`#000`,d.state=d.newState,d.textContent={true:Jb,false:Yb,null:Xb}[d.state]):(u.why&&t.holds(u.subject,u.predicate,u.object,u.why)&&V(` @@@@@ weird if 409 - does hold statement`),l(r)))});e&&typeof e.then==`function`&&e.catch(function(e){o()&&l(e instanceof Error?e.message:e)}).finally(function(){o()})}catch(e){throw o(),e}},!1),c}function gx(e){let n=new Date;return t.sym(e.uri+`#id`+(``+n.getTime()))}function _x(e,n,r,i,a,o,s,c,l,u,d){let f={},p=r.updater.editable(u.uri);for(let e=0;e<o.length;e++){let t=o[e];!t.uri||t.uri in f||(f[t.uri]=!0)}if(Object.keys(f).length===0&&!l.mint)return K(e,`Can't do selector with no options, subject= `+i+` property = `+a+`.`);z(`makeSelectForChoice: dataDoc=`+u);function m(){let e=`--- choice ---`;return a&&a.termType!==`BlankNode`&&(e=`* Select for property: `+B(a)+` *`),i&&i.termType!==`BlankNode`&&(e=`* Select for `+B(i,!0)+` *`),e}function h(){let t=e.createElement(`option`);return t.appendChild(e.createTextNode(m())),t.disabled=!0,t.value=!0,t.hidden=!0,t.selected=!0,t}let g=function(e){n.removeChild(n.lastChild),_.refresh()},_=e.createElement(`select`);_.setAttribute(`style`,G.formSelectStyle),_.setAttribute(`id`,`formSelect`),_.currentURI=null;for(let e in f)_.appendChild(v(e));if(p&&l.mint){let t=e.createElement(`option`);t.appendChild(e.createTextNode(l.mint)),t.AJAR_mint=!0,_.insertBefore(t,_.firstChild)}_.children.length===0&&_.insertBefore(h(),_.firstChild),_.update=function(n){s=n;let o=[],l=[],f=function(e){r.holds(i,a,e,u)&&o.push(t.st(i,a,e,u))},p=function(e){r.holds(i,a,e,u)||l.push(t.st(i,a,e,u)),c&&!r.holds(e,I.rdf(`type`),r.sym(c),u)&&l.push(t.st(e,I.rdf(`type`),r.sym(c),u))},m=r.each(i,a,null,u).map(e=>e.value);for(let e of m)vx(e,s)||f(t.sym(e));for(let e of s)e in m||p(t.sym(e));r.updater.update(o,l,function(t,n,r){if(!n)return _.parentNode.appendChild(K(e,`Error updating data in select: `+r));_.refresh(),d&&d(n,{widget:`select`,event:`change`})})},_.refresh=function(){_.disabled=!0;let o=[],f;for(let n=0;n<_.options.length;n++){let p=_.options[n];if(p.selected&&p.AJAR_mint){if(l.mintClass){let t=lx(e,r,i,a,c,l.subForm,u,function(e,t){e||d(e,t,{change:`new`})});_.parentNode.appendChild(t),f=t.AJAR_subject}else f=gx(u);o.push(t.st(i,a,r.sym(f),u)),c&&o.push(t.st(f,I.rdf(`type`),r.sym(c),u)),l.mintStatementsFun&&(o=o.concat(l.mintStatementsFun(f))),_.currentURI=f}p.AJAR_uri&&(p.selected&&vx(p.AJAR_uri,s)&&(_.currentURI=p.AJAR_uri),vx(p.AJAR_uri,s)||p.removeAttribute(`selected`),vx(p.AJAR_uri,s)&&p.setAttribute(`selected`,`true`))}r_(`selectForOptions: data doc = `+u),_.currentURI&&l.subForm&&!l.multiSelect&&ex(e,n,{},t.sym(_.currentURI),l.subForm,u,function(t,i){t?(r.updater.update([],o,function(t,r,i){r||n.appendChild(K(e,`Error updating select: `+i))}),d&&d(t,{widget:`select`,event:`new`})):n.appendChild(K(e,`Error updating data in field of select: `+i))}),_.disabled=!1};function v(t){let n=e.createElement(`option`),i=r.sym(t),a;a=l.disambiguate?V_(i,!0):B(i,!0),n.appendChild(e.createTextNode(a)),n.setAttribute(`value`,t);let o=r.any(i,r.sym(`http://www.w3.org/ns/ui#backgroundColor`));return o&&n.setAttribute(`style`,`background-color: `+o.value+`; `),n.AJAR_uri=t,vx(i.value,s)&&n.setAttribute(`selected`,`true`),n}return p&&_.addEventListener(`change`,g,!1),_}function vx(e,t){let n;for(n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}function yx(e,t,n){let r,i,a,o,s,c,l,u,d,f,p,m={};m[t.toNT()]=!0;let h={},g=e.transitiveClosure(m,e.rdfFactory.namedNode(`http://www.w3.org/2000/01/rdf-schema#subClassOf`),!0);for(let t in g){s=e.statementsMatching(null,e.rdfFactory.namedNode(`http://www.w3.org/1999/02/22-rdf-syntax-ns#type`),e.fromNT(t),n);for(let e=0,t=s.length;e<t;e++)f=s[e],h[f.subject.toNT()]=f;c=e.each(null,e.rdfFactory.namedNode(`http://www.w3.org/2000/01/rdf-schema#domain`),e.fromNT(t),n);for(let t=0,i=c.length;t<i;t++)for(o=c[t],l=e.statementsMatching(null,o,null,n),a=0,r=l.length;a<r;a++)f=l[a],h[f.subject.toNT()]=f;u=e.each(null,e.rdfFactory.namedNode(`http://www.w3.org/2000/01/rdf-schema#range`),e.fromNT(t),n);for(let t=0,r=u.length;t<r;t++)for(o=u[t],d=e.statementsMatching(null,o,null,n),p=0,i=d.length;p<i;p++)f=d[p],h[f.object.toNT()]=f}return h}var bx=d({Group:()=>zv,GroupBuilder:()=>Bv,GroupPicker:()=>Rv,PeoplePicker:()=>Lv,Person:()=>Vv,addStyleSheet:()=>Hy,allClassURIs:()=>jy,appendForm:()=>nx,askName:()=>xy,attachmentList:()=>Oy,basicField:()=>rb,buildCheckboxForm:()=>hx,button:()=>Y,cancelButton:()=>yy,clearElement:()=>ny,complain:()=>ty,continueButton:()=>by,createLinkDiv:()=>Ty,createLinkForURI:()=>Xv,createNameDiv:()=>wy,defaultAnnotationStore:()=>Ay,deleteButtonWithCheck:()=>vy,editFormButton:()=>tx,errorMessageBlock:()=>K,extractLogURI:()=>ry,faviconOrDefault:()=>gy,field:()=>X,fieldFunction:()=>Xy,fieldLabel:()=>tb,fieldParams:()=>qy,fieldStore:()=>nb,fileUploadButtonDiv:()=>Ky,findClosest:()=>ix,findImage:()=>py,findImageFromURI:()=>fy,formatDateTime:()=>ay,formsFor:()=>ax,iconForClass:()=>uy,imagesOf:()=>ly,index:()=>Ly,isAudio:()=>Uy,isImage:()=>Gy,isVideo:()=>Wy,linkButton:()=>Ny,linkIcon:()=>Yv,makeDescription:()=>ux,makeDraggable:()=>Nv,makeDropTarget:()=>Mv,makeSelectForCategory:()=>px,makeSelectForChoice:()=>_x,makeSelectForClassifierOptions:()=>dx,makeSelectForNestedCategory:()=>mx,makeSelectForOptions:()=>fx,mostSpecificClassURI:()=>Yy,newButton:()=>cx,newThing:()=>gx,openHrefInOutlineMode:()=>ky,personTR:()=>Sy,promptForNew:()=>lx,propertiesForClass:()=>rx,propertyTriage:()=>My,publicData:()=>db,refreshTree:()=>Dy,removeButton:()=>Py,renderAsDiv:()=>Ey,renderAsRow:()=>Cy,renderAutoComplete:()=>Bb,renderAutocompleteControl:()=>Gb,renderNameValuePair:()=>eb,selectorPanel:()=>Fy,selectorPanelRefresh:()=>Iy,setImage:()=>hy,setName:()=>cy,setVisible:()=>zb,shortDate:()=>iy,shortTime:()=>sy,sortByLabel:()=>sx,sortBySequence:()=>ox,timestamp:()=>oy,uploadFiles:()=>Pv}),xx={authEndpoint:``,fallbackAuthEndpoint:`https://databox.me/`,signupEndpoint:`https://solidproject.org/get_a_pod`,signupWindowHeight:600,signupWindowWidth:1024,key:``,cert:``};function Sx(e){this.config=e||xx}Sx.prototype.listen=function(){return new Promise(function(e,t){let n=window.addEventListener?`addEventListener`:`attachEvent`,r=window[n];r(n===`attachEvent`?`onmessage`:`message`,function(n){let r=n.data;if(r.slice(0,5)===`User:`){let n=r.slice(5,r.length);return n&&n.length>0&&n.slice(0,4)===`http`?e(n):t(n)}},!0)})},Sx.prototype.signup=function(e){e||=this.config.signupEndpoint;let t=this.config.signupWindowWidth,n=this.config.signupWindowHeight,r=window.screen.width/2-(t/2+10),i=window.screen.height/2-(n/2+50),a=e+`?origin=`+encodeURIComponent(window.location.origin),o=`resizable,scrollbars,status,width=`+t+`,height=`+n+`,left=`+r+`,top=`+i;window.open(a,`Solid signup`,o);let s=this;return new Promise(function(e){s.listen().then(function(t){return e(t)})})};var Cx=d({ensureLoadedPreferences:()=>Nx,ensureLoadedProfile:()=>Px,ensureLoggedIn:()=>Mx,filterAvailablePanes:()=>Kx,findAppInstances:()=>Fx,getUserRoles:()=>Gx,loginStatusBox:()=>Hx,newAppInstance:()=>Wx,registrationControl:()=>Lx,registrationList:()=>zx,renderScopeHeadingRow:()=>Rx,renderSignInPopup:()=>Vx,scopeLabel:()=>Ix,selectWorkspace:()=>Ux}),wx=n.solidLogicSingleton.store,{loadPreferences:Tx,loadProfile:Ex}=n.solidLogicSingleton.profile,{getScopedAppInstances:Dx,getRegistrations:Ox,loadAllTypeIndexes:kx,getScopedAppsFromIndex:Ax,deleteTypeIndexRegistration:jx}=n.solidLogicSingleton.typeIndex;function Mx(e){let t=n.authn.currentUser();return t?(n.authn.saveUser(t,e),Promise.resolve(e)):new Promise(t=>{n.authn.checkUser().then(r=>{if(r)return V(`logIn: Already logged in as ${r}`),t(e);if(!e.div||!e.dom)return t(e);let i=Hx(e.dom,r=>{n.authn.saveUser(r,e),t(e)});e.div.appendChild(i)})})}async function Nx(e){if(e.preferencesFile)return Promise.resolve(e);try{e=await Px(e);let t=await Tx(e.me);e.preferencesFile=t}catch(t){let r;if(t instanceof n.UnauthorizedError)r=`Oops — you are not authenticated (properly logged in), so SolidOS cannot read your preferences file. Try logging out and then logging back in.`,o_(r);else if(t instanceof n.CrossOriginForbiddenError)return r=`Unauthorized: Assuming preference file blocked for origin ${window.location.origin}`,e.preferencesFileError=r,e;else if(t instanceof n.SameOriginForbiddenError)return r=`You are not authorized to read your preference file. This may be because you are using an untrusted web app.`,H(r),e;else if(t instanceof n.NotEditableError)return r=`You are not authorized to edit your preference file. This may be because you are using an untrusted web app.`,H(r),e;else if(t instanceof n.WebOperationError)r=`You are not authorized to edit your preference file. This may be because you are using an untrusted web app.`,H(r);else if(t instanceof n.FetchError)r=`Strange: Error ${t.status} trying to read your preference file.${t.message}`,o_(r);else throw Error(`(via loadPrefs) ${t}`);e.preferencesFileError=r}return e}async function Px(e){if(e.publicProfile)return e;try{let t=await Mx(e);if(!t.me)throw Error(`Could not log in`);e.publicProfile=await Ex(t.me)}catch(t){throw e.div&&e.dom&&e.div.appendChild(K(e.dom,t.message)),Error(`Can't log in: ${t}`)}return e}async function Fx(e,t,n){let r=e.me?await Dx(t,e.me):[];return n===!0?r=r.filter(e=>e.scope.label===`public`):n===!1&&(r=r.filter(e=>e.scope.label===`private`)),e.instances=r.map(e=>e.instance),e}function Ix(e,t){return`${e.me&&e.me.sameTerm(t.agent)?``:B(t.agent)+` `}${t.label}`}async function Lx(e,r,i){function a(e){let n=Ox(r,i),a=n.length?n[0]:gx(e);return[(0,t.st)(a,I.solid(`instance`),r,e),(0,t.st)(a,I.solid(`forClass`),i,e)]}function o(t){let r=a(t.index),i=`${Ix(e,t)} link to this ${e.noun}`;return hx(e.dom,n.solidLogicSingleton.store,i,null,r,f,t.index)}let s=e.dom;if(!s||!e.div)throw Error(`registrationControl: need dom and div`);let c=s.createElement(`div`);e.div.appendChild(c),e.me=n.authn.currentUser();let l=e.me;if(!l)return c.innerHTML=`<p style="margin:2em;">(Log in to save a link to this)</p>`,e;let u;try{u=await kx(l)}catch(t){let n;return e.div&&e.preferencesFileError?(n=`(Lists of stuff not available)`,e.div.appendChild(s.createElement(`p`)).textContent=n):e.div&&(n=`registrationControl: Type indexes not available: ${t}`,e.div.appendChild(K(e.dom,t))),V(n),e}c.innerHTML=`<table><tbody></tbody></table>`,c.setAttribute(`style`,`font-size: 120%; text-align: right; padding: 1em; border: solid gray 0.05em;`);let d=c.children[0].children[0],f=new t.BlankNode;for(let e of u)d.appendChild(s.createElement(`tr`)).appendChild(o(e));return e}function Rx(e,t,n){let r={private:`#fee`,public:`#efe`},{dom:i}=e,a=Ix(e,n),o=i.createElement(`tr`),s=o.appendChild(i.createElement(`td`));s.setAttribute(`colspan`,`3`),s.style.backgoundColor=r[n.label]||`white`;let c=s.appendChild(i.createElement(`h3`));return c.textContent=a+` links`,c.style.textAlign=`left`,o}async function zx(e,t){let r=e.dom,i=e.div,a=r.createElement(`div`);if(i.appendChild(a),e.me=n.authn.currentUser(),!e.me)return a.innerHTML=`<p style="margin:2em;">(Log in list your stuff)</p>`,e;let o=await kx(e.me);a.innerHTML=`<table><tbody></tbody></table>`,a.setAttribute(`style`,`font-size: 120%; text-align: right; padding: 1em; border: solid #eee 0.5em;`);let s=a.firstChild.firstChild;for(let n of o){let i=Rx(e,wx,n);s.appendChild(i);let a=await Ax(n,t.type||null);a.length===0&&(i.style.display=`none`);for(let e of a){let t=Sy(r,I.solid(`instance`),e.instance,{deleteFunction:async()=>{await jx(e),s.removeChild(t)}});t.children[0].style.paddingLeft=`3em`,s.appendChild(t)}}return e}function Bx(e,t,r={}){r||={};let i=r.buttonStyle||G.signInAndUpButtonStyle,a=e.createElement(`div`),o=`SolidSignInOrSignUpBox`;V(`widgets.signInOrSignUpBox`),a.setUserCallback=t,a.setAttribute(`class`,o),a.setAttribute(`style`,`display:flex;`);let s=e.createElement(`input`);a.appendChild(s),s.setAttribute(`type`,`button`),s.setAttribute(`value`,`Log in`),s.setAttribute(`style`,`${i}${G.headerBannerLoginInput}`+G.signUpBackground),n.authSession.events.on(`login`,()=>{let t=n.authn.currentUser();if(t){let n=t.uri,r=e.getElementsByClassName(o);V(`Logged in, ${r.length} panels to be serviced`);for(let t=0;t<r.length;t++){let i=r[t];if(i.setUserCallback)try{i.setUserCallback(n);let e=i.parentNode;e&&e.removeChild(i)}catch(t){V(`## Error satisfying login box: ${t}`),i.appendChild(K(e,t))}}}}),s.addEventListener(`click`,()=>{let r=(0,n.offlineTestID)();if(r)return t(r.uri);Vx(e)},!1);let c=e.createElement(`input`);return a.appendChild(c),c.setAttribute(`type`,`button`),c.setAttribute(`value`,`Sign Up for Solid`),c.setAttribute(`style`,`${i}${G.headerBannerLoginInput}`+G.signInBackground),c.addEventListener(`click`,function(e){new Sx().signup().then(function(e){V(`signInOrSignUpBox signed up `+e),t(e)})},!1),a}function Vx(e){let t=e.createElement(`div`);t.setAttribute(`style`,`position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center;`),e.body.appendChild(t);let r=e.createElement(`div`);r.setAttribute(`style`,`
2005
+ `+r)),c;if(!n&&!l){n=null;let e=t.any(a,R.ui(`default`));o=e?e.value===`1`:s?null:!1}}d.state=n,d.textContent={true:uT,false:s?dT:` `,null:fT}[o]}if(h(),!u)return c;let g=!1;return d.addEventListener(`click`,function(n){if(g)return;g=!0,d.disabled=!0;let a=!1,o=function(){return!a&&(a=!0,g=!1,d.disabled=!1,!0)},l=function(t){f.style.color=`#000`,f.style.backgroundColor=`#fee`,c.appendChild(q(e,`Checkbox: Error updating dataDoc from ${d.state} to ${d.newState}:\n\n${t}`))};f.style.color=`#bbb`;let u=d.state===!0?i:d.state===!1?r:[];d.newState=d.state===null?!0:d.state===!0?!1:!s||null;let p=d.newState===!0?i:d.newState===!1?r:[];W(` Deleting ${u}`),W(` Inserting ${p}`);try{let e=t.updater.update(u,p,function(e,n,r){o()&&(n?(f.style.color=`#000`,d.state=d.newState,d.textContent={true:uT,false:dT,null:fT}[d.state]):(u.why&&t.holds(u.subject,u.predicate,u.object,u.why)&&W(` @@@@@ weird if 409 - does hold statement`),l(r)))});e&&typeof e.then==`function`&&e.catch(function(e){o()&&l(e instanceof Error?e.message:e)}).finally(function(){o()})}catch(e){throw o(),e}},!1),c}function MT(e){let n=new Date;return t.sym(e.uri+`#id`+(``+n.getTime()))}function NT(e,n,r,i,a,o,s,c,l,u,d){let f={},p=r.updater.editable(u.uri);for(let e=0;e<o.length;e++){let t=o[e];!t.uri||t.uri in f||(f[t.uri]=!0)}if(Object.keys(f).length===0&&!l.mint)return q(e,`Can't do selector with no options, subject= `+i+` property = `+a+`.`);Bv(`makeSelectForChoice: dataDoc=`+u);function m(){let e=`--- choice ---`;return a&&a.termType!==`BlankNode`&&(e=`* Select for property: `+V(a)+` *`),i&&i.termType!==`BlankNode`&&(e=`* Select for `+V(i,!0)+` *`),e}function h(){let t=e.createElement(`option`);return t.appendChild(e.createTextNode(m())),t.disabled=!0,t.value=!0,t.hidden=!0,t.selected=!0,t}let g=function(e){n.removeChild(n.lastChild),_.refresh()},_=e.createElement(`select`);_.setAttribute(`style`,U.formSelectStyle),_.setAttribute(`id`,`formSelect`),_.currentURI=null;for(let e in f)_.appendChild(v(e));if(p&&l.mint){let t=e.createElement(`option`);t.appendChild(e.createTextNode(l.mint)),t.AJAR_mint=!0,_.insertBefore(t,_.firstChild)}_.children.length===0&&_.insertBefore(h(),_.firstChild),_.update=function(n){s=n;let o=[],l=[],f=function(e){r.holds(i,a,e,u)&&o.push(t.st(i,a,e,u))},p=function(e){r.holds(i,a,e,u)||l.push(t.st(i,a,e,u)),c&&!r.holds(e,R.rdf(`type`),r.sym(c),u)&&l.push(t.st(e,R.rdf(`type`),r.sym(c),u))},m=r.each(i,a,null,u).map(e=>e.value);for(let e of m)PT(e,s)||f(t.sym(e));for(let e of s)e in m||p(t.sym(e));r.updater.update(o,l,function(t,n,r){if(!n)return _.parentNode.appendChild(q(e,`Error updating data in select: `+r));_.refresh(),d&&d(n,{widget:`select`,event:`change`})})},_.refresh=function(){_.disabled=!0;let o=[],f;for(let n=0;n<_.options.length;n++){let p=_.options[n];if(p.selected&&p.AJAR_mint){if(l.mintClass){let t=TT(e,r,i,a,c,l.subForm,u,function(e,t){e||d(e,t,{change:`new`})});_.parentNode.appendChild(t),f=t.AJAR_subject}else f=MT(u);o.push(t.st(i,a,r.sym(f),u)),c&&o.push(t.st(f,R.rdf(`type`),r.sym(c),u)),l.mintStatementsFun&&(o=o.concat(l.mintStatementsFun(f))),_.currentURI=f}p.AJAR_uri&&(p.selected&&PT(p.AJAR_uri,s)&&(_.currentURI=p.AJAR_uri),PT(p.AJAR_uri,s)||p.removeAttribute(`selected`),PT(p.AJAR_uri,s)&&p.setAttribute(`selected`,`true`))}Vv(`selectForOptions: data doc = `+u),_.currentURI&&l.subForm&&!l.multiSelect&&gT(e,n,{},t.sym(_.currentURI),l.subForm,u,function(t,i){t?(r.updater.update([],o,function(t,r,i){r||n.appendChild(q(e,`Error updating select: `+i))}),d&&d(t,{widget:`select`,event:`new`})):n.appendChild(q(e,`Error updating data in field of select: `+i))}),_.disabled=!1};function v(t){let n=e.createElement(`option`),i=r.sym(t),a;a=l.disambiguate?Ty(i,!0):V(i,!0),n.appendChild(e.createTextNode(a)),n.setAttribute(`value`,t);let o=r.any(i,r.sym(`http://www.w3.org/ns/ui#backgroundColor`));return o&&n.setAttribute(`style`,`background-color: `+o.value+`; `),n.AJAR_uri=t,PT(i.value,s)&&n.setAttribute(`selected`,`true`),n}return p&&_.addEventListener(`change`,g,!1),_}function PT(e,t){let n;for(n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}function FT(e,t,n){let r,i,a,o,s,c,l,u,d,f,p,m={};m[t.toNT()]=!0;let h={},g=e.transitiveClosure(m,e.rdfFactory.namedNode(`http://www.w3.org/2000/01/rdf-schema#subClassOf`),!0);for(let t in g){s=e.statementsMatching(null,e.rdfFactory.namedNode(`http://www.w3.org/1999/02/22-rdf-syntax-ns#type`),e.fromNT(t),n);for(let e=0,t=s.length;e<t;e++)f=s[e],h[f.subject.toNT()]=f;c=e.each(null,e.rdfFactory.namedNode(`http://www.w3.org/2000/01/rdf-schema#domain`),e.fromNT(t),n);for(let t=0,i=c.length;t<i;t++)for(o=c[t],l=e.statementsMatching(null,o,null,n),a=0,r=l.length;a<r;a++)f=l[a],h[f.subject.toNT()]=f;u=e.each(null,e.rdfFactory.namedNode(`http://www.w3.org/2000/01/rdf-schema#range`),e.fromNT(t),n);for(let t=0,r=u.length;t<r;t++)for(o=u[t],d=e.statementsMatching(null,o,null,n),p=0,i=d.length;p<i;p++)f=d[p],h[f.object.toNT()]=f}return h}var IT=d({Group:()=>tC,GroupBuilder:()=>nC,GroupPicker:()=>eC,PeoplePicker:()=>$S,Person:()=>rC,addStyleSheet:()=>iw,allClassURIs:()=>qC,appendForm:()=>vT,askName:()=>LC,attachmentList:()=>WC,basicField:()=>yw,buildCheckboxForm:()=>jT,button:()=>X,cancelButton:()=>FC,clearElement:()=>vC,complain:()=>_C,continueButton:()=>IC,createLinkDiv:()=>VC,createLinkForURI:()=>fC,createNameDiv:()=>BC,defaultAnnotationStore:()=>KC,deleteButtonWithCheck:()=>PC,editFormButton:()=>_T,errorMessageBlock:()=>q,extractLogURI:()=>yC,faviconOrDefault:()=>MC,field:()=>Z,fieldFunction:()=>fw,fieldLabel:()=>_w,fieldParams:()=>lw,fieldStore:()=>vw,fileUploadButtonDiv:()=>cw,findClosest:()=>bT,findImage:()=>kC,findImageFromURI:()=>OC,formatDateTime:()=>xC,formsFor:()=>xT,iconForClass:()=>EC,imagesOf:()=>TC,index:()=>$C,isAudio:()=>aw,isImage:()=>sw,isVideo:()=>ow,linkButton:()=>YC,linkIcon:()=>dC,makeDescription:()=>ET,makeDraggable:()=>YS,makeDropTarget:()=>JS,makeSelectForCategory:()=>kT,makeSelectForChoice:()=>NT,makeSelectForClassifierOptions:()=>DT,makeSelectForNestedCategory:()=>AT,makeSelectForOptions:()=>OT,mostSpecificClassURI:()=>dw,newButton:()=>wT,newThing:()=>MT,openHrefInOutlineMode:()=>GC,personTR:()=>RC,promptForNew:()=>TT,propertiesForClass:()=>yT,propertyTriage:()=>JC,publicData:()=>Dw,refreshTree:()=>UC,removeButton:()=>XC,renderAsDiv:()=>HC,renderAsRow:()=>zC,renderAutoComplete:()=>nT,renderAutocompleteControl:()=>sT,renderNameValuePair:()=>gw,selectorPanel:()=>ZC,selectorPanelRefresh:()=>QC,setImage:()=>jC,setName:()=>wC,setVisible:()=>tT,shortDate:()=>bC,shortTime:()=>CC,sortByLabel:()=>CT,sortBySequence:()=>ST,timestamp:()=>SC,uploadFiles:()=>XS}),LT={authEndpoint:``,fallbackAuthEndpoint:`https://databox.me/`,signupEndpoint:`https://solidproject.org/get_a_pod`,signupWindowHeight:600,signupWindowWidth:1024,key:``,cert:``};function RT(e){this.config=e||LT}RT.prototype.listen=function(){return new Promise(function(e,t){let n=window.addEventListener?`addEventListener`:`attachEvent`,r=window[n];r(n===`attachEvent`?`onmessage`:`message`,function(n){let r=n.data;if(r.slice(0,5)===`User:`){let n=r.slice(5,r.length);return n&&n.length>0&&n.slice(0,4)===`http`?e(n):t(n)}},!0)})},RT.prototype.signup=function(e){e||=this.config.signupEndpoint;let t=this.config.signupWindowWidth,n=this.config.signupWindowHeight,r=window.screen.width/2-(t/2+10),i=window.screen.height/2-(n/2+50),a=e+`?origin=`+encodeURIComponent(window.location.origin),o=`resizable,scrollbars,status,width=`+t+`,height=`+n+`,left=`+r+`,top=`+i;window.open(a,`Solid signup`,o);let s=this;return new Promise(function(e){s.listen().then(function(t){return e(t)})})};var zT=d({ensureLoadedPreferences:()=>YT,ensureLoadedProfile:()=>XT,ensureLoggedIn:()=>JT,filterAvailablePanes:()=>cE,findAppInstances:()=>ZT,getUserRoles:()=>sE,loginStatusBox:()=>iE,newAppInstance:()=>oE,registrationControl:()=>$T,registrationList:()=>tE,renderScopeHeadingRow:()=>eE,renderSignInPopup:()=>rE,scopeLabel:()=>QT,selectWorkspace:()=>aE}),BT=n.solidLogicSingleton.store,{loadPreferences:VT,loadProfile:HT}=n.solidLogicSingleton.profile,{getScopedAppInstances:UT,getRegistrations:WT,loadAllTypeIndexes:GT,getScopedAppsFromIndex:KT,deleteTypeIndexRegistration:qT}=n.solidLogicSingleton.typeIndex;function JT(e){let t=n.authn.currentUser();return t?(n.authn.saveUser(t,e),Promise.resolve(e)):new Promise(t=>{n.authn.checkUser().then(r=>{if(r)return W(`logIn: Already logged in as ${r}`),t(e);if(!e.div||!e.dom)return t(e);let i=iE(e.dom,r=>{n.authn.saveUser(r,e),t(e)});e.div.appendChild(i)})})}async function YT(e){if(e.preferencesFile)return Promise.resolve(e);try{e=await XT(e);let t=await VT(e.me);e.preferencesFile=t}catch(t){let r;if(t instanceof n.UnauthorizedError)r=`Oops — you are not authenticated (properly logged in), so SolidOS cannot read your preferences file. Try logging out and then logging back in.`,Wv(r);else if(t instanceof n.CrossOriginForbiddenError)return r=`Unauthorized: Assuming preference file blocked for origin ${window.location.origin}`,e.preferencesFileError=r,e;else if(t instanceof n.SameOriginForbiddenError)return r=`You are not authorized to read your preference file. This may be because you are using an untrusted web app.`,G(r),e;else if(t instanceof n.NotEditableError)return r=`You are not authorized to edit your preference file. This may be because you are using an untrusted web app.`,G(r),e;else if(t instanceof n.WebOperationError)r=`You are not authorized to edit your preference file. This may be because you are using an untrusted web app.`,G(r);else if(t instanceof n.FetchError)r=`Strange: Error ${t.status} trying to read your preference file.${t.message}`,Wv(r);else throw Error(`(via loadPrefs) ${t}`);e.preferencesFileError=r}return e}async function XT(e){if(e.publicProfile)return e;try{let t=await JT(e);if(!t.me)throw Error(`Could not log in`);e.publicProfile=await HT(t.me)}catch(t){throw e.div&&e.dom&&e.div.appendChild(q(e.dom,t.message)),Error(`Can't log in: ${t}`)}return e}async function ZT(e,t,n){let r=e.me?await UT(t,e.me):[];return n===!0?r=r.filter(e=>e.scope.label===`public`):n===!1&&(r=r.filter(e=>e.scope.label===`private`)),e.instances=r.map(e=>e.instance),e}function QT(e,t){return`${e.me&&e.me.sameTerm(t.agent)?``:V(t.agent)+` `}${t.label}`}async function $T(e,r,i){function a(e){let n=WT(r,i),a=n.length?n[0]:MT(e);return[(0,t.st)(a,R.solid(`instance`),r,e),(0,t.st)(a,R.solid(`forClass`),i,e)]}function o(t){let r=a(t.index),i=`${QT(e,t)} link to this ${e.noun}`;return jT(e.dom,n.solidLogicSingleton.store,i,null,r,f,t.index)}let s=e.dom;if(!s||!e.div)throw Error(`registrationControl: need dom and div`);let c=s.createElement(`div`);e.div.appendChild(c),e.me=n.authn.currentUser();let l=e.me;if(!l)return c.innerHTML=`<p style="margin:2em;">(Log in to save a link to this)</p>`,e;let u;try{u=await GT(l)}catch(t){let n;return e.div&&e.preferencesFileError?(n=`(Lists of stuff not available)`,e.div.appendChild(s.createElement(`p`)).textContent=n):e.div&&(n=`registrationControl: Type indexes not available: ${t}`,e.div.appendChild(q(e.dom,t))),W(n),e}c.innerHTML=`<table><tbody></tbody></table>`,c.setAttribute(`style`,`font-size: 120%; text-align: right; padding: 1em; border: solid gray 0.05em;`);let d=c.children[0].children[0],f=new t.BlankNode;for(let e of u)d.appendChild(s.createElement(`tr`)).appendChild(o(e));return e}function eE(e,t,n){let r={private:`#fee`,public:`#efe`},{dom:i}=e,a=QT(e,n),o=i.createElement(`tr`),s=o.appendChild(i.createElement(`td`));s.setAttribute(`colspan`,`3`),s.style.backgoundColor=r[n.label]||`white`;let c=s.appendChild(i.createElement(`h3`));return c.textContent=a+` links`,c.style.textAlign=`left`,o}async function tE(e,t){let r=e.dom,i=e.div,a=r.createElement(`div`);if(i.appendChild(a),e.me=n.authn.currentUser(),!e.me)return a.innerHTML=`<p style="margin:2em;">(Log in list your stuff)</p>`,e;let o=await GT(e.me);a.innerHTML=`<table><tbody></tbody></table>`,a.setAttribute(`style`,`font-size: 120%; text-align: right; padding: 1em; border: solid #eee 0.5em;`);let s=a.firstChild.firstChild;for(let n of o){let i=eE(e,BT,n);s.appendChild(i);let a=await KT(n,t.type||null);a.length===0&&(i.style.display=`none`);for(let e of a){let t=RC(r,R.solid(`instance`),e.instance,{deleteFunction:async()=>{await qT(e),s.removeChild(t)}});t.children[0].style.paddingLeft=`3em`,s.appendChild(t)}}return e}function nE(e,t,r={}){r||={};let i=r.buttonStyle||U.signInAndUpButtonStyle,a=e.createElement(`div`),o=`SolidSignInOrSignUpBox`;W(`widgets.signInOrSignUpBox`),a.setUserCallback=t,a.setAttribute(`class`,o),a.setAttribute(`style`,`display:flex;`);let s=e.createElement(`input`);a.appendChild(s),s.setAttribute(`type`,`button`),s.setAttribute(`value`,`Log in`),s.setAttribute(`style`,`${i}${U.headerBannerLoginInput}`+U.signUpBackground),n.authSession.events.on(`login`,()=>{let t=n.authn.currentUser();if(t){let n=t.uri,r=e.getElementsByClassName(o);W(`Logged in, ${r.length} panels to be serviced`);for(let t=0;t<r.length;t++){let i=r[t];if(i.setUserCallback)try{i.setUserCallback(n);let e=i.parentNode;e&&e.removeChild(i)}catch(t){W(`## Error satisfying login box: ${t}`),i.appendChild(q(e,t))}}}}),s.addEventListener(`click`,()=>{let r=(0,n.offlineTestID)();if(r)return t(r.uri);rE(e)},!1);let c=e.createElement(`input`);return a.appendChild(c),c.setAttribute(`type`,`button`),c.setAttribute(`value`,`Sign Up for Solid`),c.setAttribute(`style`,`${i}${U.headerBannerLoginInput}`+U.signInBackground),c.addEventListener(`click`,function(e){new RT().signup().then(function(e){W(`signInOrSignUpBox signed up `+e),t(e)})},!1),a}function rE(e){let t=e.createElement(`div`);t.setAttribute(`style`,`position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center;`),e.body.appendChild(t);let r=e.createElement(`div`);r.setAttribute(`style`,`
2311
2006
  background-color: white;
2312
2007
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
2313
2008
  -webkit-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
@@ -2323,7 +2018,7 @@ optional { ?location wdt:P17 ?country }
2323
2018
  flex-direction: row;
2324
2019
  align-items: center;
2325
2020
  justify-content: space-between;
2326
- `),r.appendChild(i);let a=e.createElement(`label`);a.setAttribute(`style`,`margin-right: 5px; font-weight: 800`),a.innerText=`Select an identity provider`;let o=e.createElement(`button`);o.innerHTML=`<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">`,o.setAttribute(`style`,`background-color: transparent; border: none;`),o.addEventListener(`click`,()=>{t.remove()}),i.appendChild(a),i.appendChild(o);let s=async e=>{try{n.solidLogicSingleton.store.updater.flagAuthorizationMetadata();let t=new URL(window.location.href).hash;t&&window.localStorage.setItem(`preLoginRedirectHash`,t),window.localStorage.setItem(`loginIssuer`,e);let r=new URL(window.location.href);r.hash=``,await n.authSession.login(e,r.href)}catch(e){o_(e.message)}},c=e.createElement(`div`);c.setAttribute(`style`,`
2021
+ `),r.appendChild(i);let a=e.createElement(`label`);a.setAttribute(`style`,`margin-right: 5px; font-weight: 800`),a.innerText=`Select an identity provider`;let o=e.createElement(`button`);o.innerHTML=`<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">`,o.setAttribute(`style`,`background-color: transparent; border: none;`),o.addEventListener(`click`,()=>{t.remove()}),i.appendChild(a),i.appendChild(o);let s=async e=>{try{n.solidLogicSingleton.store.updater.flagAuthorizationMetadata();let t=new URL(window.location.href).hash;t&&window.localStorage.setItem(`preLoginRedirectHash`,t),window.localStorage.setItem(`loginIssuer`,e);let r=new URL(window.location.href);r.hash=``,await n.authSession.login(e,r.href)}catch(e){Wv(e.message)}},c=e.createElement(`div`);c.setAttribute(`style`,`
2327
2022
  border-bottom: 1px solid #DDD;
2328
2023
  display: flex;
2329
2024
  flex-direction: column;
@@ -2335,10 +2030,10 @@ optional { ?location wdt:P17 ?country }
2335
2030
  display: flex;
2336
2031
  flex-direction: column;
2337
2032
  padding-top: 10px;
2338
- `);let m=e.createElement(`label`);m.innerText=`Or pick an identity provider from the list below:`,m.setAttribute(`style`,`color: #888`),p.appendChild(m),(0,n.getSuggestedIssuers)().forEach(t=>{let n=e.createElement(`button`);n.innerText=t.name,n.setAttribute(`style`,`height: 38px; margin-top: 10px`),n.addEventListener(`click`,()=>{s(t.uri)}),p.appendChild(n)}),r.appendChild(p)}function Hx(e,t=null,r={}){let i=(0,n.offlineTestID)(),a=e.createElement(`div`);function o(e){e&&(i=n.authn.saveUser(e),a.refresh(),t&&t(i.uri))}function s(e){let r=i;n.authSession.logout().then(function(){let e=`Your WebID was ${r}. It has been forgotten.`;i=null;try{o_(e)}catch{window.alert(e)}a.refresh(),t&&t(null)},e=>{o_(`Fail to log out:`+e)})}function c(t,r){let i=r.buttonStyle||G.signInAndUpButtonStyle,a=`WebID logout`;if(t){let e=n.solidLogicSingleton.store.any(t,I.foaf(`nick`))||n.solidLogicSingleton.store.any(t,I.foaf(`name`));e&&(a=`Logout `+e.value)}let o=e.createElement(`input`);return o.setAttribute(`type`,`button`),o.setAttribute(`value`,a),o.setAttribute(`style`,`${i}`),o.addEventListener(`click`,s,!1),o}a.refresh=function(){let t=n.authSession.webId;i=t?n.solidLogicSingleton.store.sym(t):null,(i&&a.me!==i.uri||!i&&a.me)&&(ny(a),i?a.appendChild(c(i,r)):a.appendChild(Bx(e,o,r))),a.me=i?i.uri:null},a.refresh();function l(){i=n.authn.currentUser(),a.refresh()}return l(),n.authSession.events.on(`login`,l),n.authSession.events.on(`logout`,l),a.me=`99999`,a.refresh(),a}n.authSession.events.on(`logout`,async()=>{let e=window.localStorage.getItem(`loginIssuer`);if(e)try{n.solidLogicSingleton.store.updater.flagAuthorizationMetadata();let t=new URL(e);t.pathname=`/.well-known/openid-configuration`;let r=await fetch(t.toString());if(r.status===200){let e=await r.json();e&&e.end_session_endpoint&&await fetch(e.end_session_endpoint,{credentials:`include`})}try{await fetch(`/.well-known/solid/logout`,{credentials:`include`})}catch{}}catch{}window.location.reload()});function Ux(e,r,i){let a=r.noun,o=r.appPathSegment,s=(0,n.offlineTestID)(),c=e.createElement(`div`),l={me:s,dom:e,div:c};function u(t,n){c.appendChild(K(e,t,n))}function d(e){let t=n.solidLogicSingleton.store.any(e,I.space(`uriPrefix`)),r;return r=t?t.value:e.uri.split(`#`)[0],r.slice(-1)!==`/`&&(V(`${o}: No / at end of uriPrefix ${r}`),r=`${r}/`),r+=`${o}/id${new Date().getTime()}/`,r}function f(r){async function o(i){let a=h.appendChild(e.createElement(`tr`)).appendChild(e.createElement(`td`));a.setAttribute(`colspan`,`3`),a.style.padding=`0.5em`;let o=encodeURI(await xy(e,n.solidLogicSingleton.store,a,I.solid(`URL`),I.space(`Workspace`),`Workspace`)),s=gx(r.preferencesFile),c=[(0,t.st)(r.me,I.space(`workspace`),s,r.preferencesFile),(0,t.st)(s,I.space(`uriPrefix`),o,r.preferencesFile)];if(!n.solidLogicSingleton.store.updater)throw Error(`store has no updater`);await n.solidLogicSingleton.store.updater.update([],c)}let s=r.me,l=r.preferencesFile,f=null,p=n.solidLogicSingleton.store.each(s,I.space(`workspace`),void 0,l),m=n.solidLogicSingleton.store.each(s,I.space(`storage`));p.length===0&&m&&(u(`You don't seem to have any workspaces. You have ${m.length} storage spaces.`,`white`),m.map(function(e){return p=p.concat(n.solidLogicSingleton.store.each(e,I.ldp(`contains`))),p}).filter(e=>e.id?[`public`,`private`].includes(e.id().toLowerCase()):``)),p.length===1&&(u(`Workspace used: ${p[0].uri}`,`white`),f=d(p[0]));let h=e.createElement(`table`);h.setAttribute(`style`,`border-collapse:separate; border-spacing: 0.5em;`),c.appendChild(h),c.appendChild(e.createElement(`hr`));let g=c.appendChild(e.createElement(`p`));g.setAttribute(`style`,G.commentStyle),g.textContent=`Where would you like to store the data for the ${a}?
2033
+ `);let m=e.createElement(`label`);m.innerText=`Or pick an identity provider from the list below:`,m.setAttribute(`style`,`color: #888`),p.appendChild(m),(0,n.getSuggestedIssuers)().forEach(t=>{let n=e.createElement(`button`);n.innerText=t.name,n.setAttribute(`style`,`height: 38px; margin-top: 10px`),n.addEventListener(`click`,()=>{s(t.uri)}),p.appendChild(n)}),r.appendChild(p)}function iE(e,t=null,r={}){let i=(0,n.offlineTestID)(),a=e.createElement(`div`);function o(e){e&&(i=n.authn.saveUser(e),a.refresh(),t&&t(i.uri))}function s(e){let r=i;n.authSession.logout().then(function(){let e=`Your WebID was ${r}. It has been forgotten.`;i=null;try{Wv(e)}catch{window.alert(e)}a.refresh(),t&&t(null)},e=>{Wv(`Fail to log out:`+e)})}function c(t,r){let i=r.buttonStyle||U.signInAndUpButtonStyle,a=`WebID logout`;if(t){let e=n.solidLogicSingleton.store.any(t,R.foaf(`nick`))||n.solidLogicSingleton.store.any(t,R.foaf(`name`));e&&(a=`Logout `+e.value)}let o=e.createElement(`input`);return o.setAttribute(`type`,`button`),o.setAttribute(`value`,a),o.setAttribute(`style`,`${i}`),o.addEventListener(`click`,s,!1),o}a.refresh=function(){let t=n.authSession.webId;i=t?n.solidLogicSingleton.store.sym(t):null,(i&&a.me!==i.uri||!i&&a.me)&&(vC(a),i?a.appendChild(c(i,r)):a.appendChild(nE(e,o,r))),a.me=i?i.uri:null},a.refresh();function l(){i=n.authn.currentUser(),a.refresh()}return l(),n.authSession.events.on(`login`,l),n.authSession.events.on(`logout`,l),a.me=`99999`,a.refresh(),a}n.authSession.events.on(`logout`,async()=>{let e=window.localStorage.getItem(`loginIssuer`);if(e)try{n.solidLogicSingleton.store.updater.flagAuthorizationMetadata();let t=new URL(e);t.pathname=`/.well-known/openid-configuration`;let r=await fetch(t.toString());if(r.status===200){let e=await r.json();e&&e.end_session_endpoint&&await fetch(e.end_session_endpoint,{credentials:`include`})}try{await fetch(`/.well-known/solid/logout`,{credentials:`include`})}catch{}}catch{}window.location.reload()});function aE(e,r,i){let a=r.noun,o=r.appPathSegment,s=(0,n.offlineTestID)(),c=e.createElement(`div`),l={me:s,dom:e,div:c};function u(t,n){c.appendChild(q(e,t,n))}function d(e){let t=n.solidLogicSingleton.store.any(e,R.space(`uriPrefix`)),r;return r=t?t.value:e.uri.split(`#`)[0],r.slice(-1)!==`/`&&(W(`${o}: No / at end of uriPrefix ${r}`),r=`${r}/`),r+=`${o}/id${new Date().getTime()}/`,r}function f(r){async function o(i){let a=h.appendChild(e.createElement(`tr`)).appendChild(e.createElement(`td`));a.setAttribute(`colspan`,`3`),a.style.padding=`0.5em`;let o=encodeURI(await LC(e,n.solidLogicSingleton.store,a,R.solid(`URL`),R.space(`Workspace`),`Workspace`)),s=MT(r.preferencesFile),c=[(0,t.st)(r.me,R.space(`workspace`),s,r.preferencesFile),(0,t.st)(s,R.space(`uriPrefix`),o,r.preferencesFile)];if(!n.solidLogicSingleton.store.updater)throw Error(`store has no updater`);await n.solidLogicSingleton.store.updater.update([],c)}let s=r.me,l=r.preferencesFile,f=null,p=n.solidLogicSingleton.store.each(s,R.space(`workspace`),void 0,l),m=n.solidLogicSingleton.store.each(s,R.space(`storage`));p.length===0&&m&&(u(`You don't seem to have any workspaces. You have ${m.length} storage spaces.`,`white`),m.map(function(e){return p=p.concat(n.solidLogicSingleton.store.each(e,R.ldp(`contains`))),p}).filter(e=>e.id?[`public`,`private`].includes(e.id().toLowerCase()):``)),p.length===1&&(u(`Workspace used: ${p[0].uri}`,`white`),f=d(p[0]));let h=e.createElement(`table`);h.setAttribute(`style`,`border-collapse:separate; border-spacing: 0.5em;`),c.appendChild(h),c.appendChild(e.createElement(`hr`));let g=c.appendChild(e.createElement(`p`));g.setAttribute(`style`,U.commentStyle),g.textContent=`Where would you like to store the data for the ${a}?
2339
2034
  Give the URL of the folder where you would like the data stored.
2340
- It can be anywhere in solid world - this URI is just an idea.`;let _=c.appendChild(e.createElement(`input`));_.setAttribute(`type`,`text`),_.setAttribute(`style`,G.textInputStyle),_.size=80,_.label=`base URL`,_.autocomplete=`on`,f&&(_.value=f),r.baseField=_,c.appendChild(e.createElement(`br`));let v=c.appendChild(e.createElement(`button`));v.setAttribute(`style`,G.buttonStyle),v.textContent=`Start new ${a} at this URI`,v.addEventListener(`click`,function(e){let t=_.value.replace(` `,`%20`);t.slice(-1)!==`/`&&(t+=`/`),i(null,t)}),p=p.filter(function(e){return!n.solidLogicSingleton.store.holds(e,I.rdf(`type`),I.space(`MasterWorkspace`))});let y,b,x,S,C,w,T,E=`height: 3em; margin: 1em; padding: 1em white; border-radius: 0.3em;`,D=`${E}border: 0px;`;for(let t=0;t<p.length;t++){C=p[t],S=e.createElement(`tr`),t===0&&(y=e.createElement(`td`),y.setAttribute(`rowspan`,`${p.length}`),y.textContent=`Choose a workspace for this:`,y.setAttribute(`style`,`vertical-align:middle;`),S.appendChild(y)),b=e.createElement(`td`),w=n.solidLogicSingleton.store.anyValue(C,I.ui(`style`)),w||=`color: black ; background-color: ${`#${(function(e){return e.split(``).reduce(function(e,t){return e=(e<<5)-e+t.charCodeAt(0),e&e},0)}(C.uri)&16777215|12632256).toString(16)}`};`,b.setAttribute(`style`,D+w),S.target=C.uri;let r=n.solidLogicSingleton.store.any(C,I.rdfs(`label`));r||=C.uri.split(`/`).slice(-1)[0]||C.uri.split(`/`).slice(-2)[0],b.textContent=r||`???`,S.appendChild(b),t===0&&(x=e.createElement(`td`),x.setAttribute(`rowspan`,`${p.length}1`),x.setAttribute(`style`,`width:50%;`),S.appendChild(x)),h.appendChild(S),T=n.solidLogicSingleton.store.any(C,I.rdfs(`comment`)),T=T?T.value:`Use this workspace`,b.addEventListener(`click`,function(t){x.textContent=T?T.value:``,x.setAttribute(`style`,D+w);let n=e.createElement(`button`);n.textContent=`Continue`;let r=d(C);_.value=r,n.addEventListener(`click`,function(e){n.disabled=!0,i(C,r),n.textContent=`---->`},!0),x.appendChild(n)},!0)}let O=e.createElement(`tr`);b=e.createElement(`td`),b.setAttribute(`style`,E),b.textContent=`+ Make a new workspace`,b.addEventListener(`click`,o),O.appendChild(b),h.appendChild(O)}return Nx(l).then(f).catch(e=>{c.appendChild(K(l.dom,e))}),c}function Wx(e,t,n){let r=function(e,t){n(e,t)},i=e.createElement(`div`),a=e.createElement(`button`);return a.setAttribute(`type`,`button`),i.appendChild(a),a.innerHTML=`Make new ${t.noun}`,a.addEventListener(`click`,n=>{i.appendChild(Ux(e,t,r))},!1),i.appendChild(a),i}async function Gx(){try{let{me:e,preferencesFile:t,preferencesFileError:r}=await Nx({});if(!t||r)throw Error(r);return n.solidLogicSingleton.store.each(e,I.rdf(`type`),null,t.doc())}catch(e){H(`Unable to fetch your preferences - this was the error: `,e)}return[]}async function Kx(e){let t=await Gx();return e.filter(e=>qx(e,t))}function qx(e,t){return(e.audience||[]).reduce((e,n)=>e&&!!t.find(e=>e.equals(n)),!0)}var Jx=class{rootElement;barElement;isExpanded=!1;constructor(e){this.groupList=e,this.rootElement=e.controller.dom.createElement(`div`),this.barElement=e.controller.dom.createElement(`div`)}render(){return this.rootElement.innerHTML=``,this.rootElement.appendChild(this.renderAddButton()),this.rootElement.appendChild(this.barElement),this.rootElement}renderAddButton(){return Y(this.groupList.controller.dom,`${q.iconBase}noun_34653_green.svg`,`Add ...`,()=>{this.toggleBar(),this.renderBar()})}renderBar(){this.barElement.innerHTML=``,this.isExpanded&&(this.barElement.appendChild(this.renderPersonButton()),this.barElement.appendChild(this.renderGroupButton()),this.barElement.appendChild(this.renderPublicButton()),this.barElement.appendChild(this.renderAuthenticatedAgentButton()),this.barElement.appendChild(this.renderBotButton()),this.barElement.appendChild(this.renderAppsButton()))}renderSimplifiedBar(e){Array.from(this.barElement.children).filter(t=>t!==e).forEach(e=>this.barElement.removeChild(e))}renderPersonButton(){return Y(this.groupList.controller.dom,q.iconBase+uy[`vcard:Individual`],`Add Person`,e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(I.vcard(`Individual`),`person`).then(e=>this.addPerson(e)).then(()=>this.renderCleanup()).catch(e=>this.groupList.controller.renderStatus(e))})}renderGroupButton(){return Y(this.groupList.controller.dom,q.iconBase+uy[`vcard:Group`],`Add Group`,e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(I.vcard(`Group`),`group`).then(e=>this.addGroup(e)).then(()=>this.renderCleanup()).catch(e=>this.groupList.controller.renderStatus(e))})}renderNameForm(e,t){return xy(this.groupList.controller.dom,this.groupList.store,this.barElement,I.vcard(`URI`),e,t)}renderPublicButton(){return Y(this.groupList.controller.dom,q.iconBase+uy[`foaf:Agent`],`Add Everyone`,()=>this.addAgent(I.foaf(`Agent`).uri).then(()=>this.groupList.controller.renderTemporaryStatus(`Adding the general public to those who can read. Drag the globe to a different level to give them more access.`)).then(()=>this.renderCleanup()))}renderAuthenticatedAgentButton(){return Y(this.groupList.controller.dom,`${q.iconBase}noun_99101.svg`,`Anyone logged In`,()=>this.addAgent(I.acl(`AuthenticatedAgent`).uri).then(()=>this.groupList.controller.renderTemporaryStatus(`Adding anyone logged in to those who can read. Drag the ID icon to a different level to give them more access.`)).then(()=>this.renderCleanup()))}renderBotButton(){return Y(this.groupList.controller.dom,q.iconBase+`noun_Robot_849764.svg`,`A Software Agent (bot)`,e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(I.schema(`Application`),`bot`).then(e=>this.addBot(e)).then(()=>this.renderCleanup())})}renderAppsButton(){return Y(this.groupList.controller.dom,`${q.iconBase}noun_15177.svg`,`A Web App (origin)`,e=>{this.renderSimplifiedBar(e.target);let t={div:this.barElement,dom:this.groupList.controller.dom},n=this.renderAppsTable(t).catch(e=>this.groupList.controller.renderStatus(e));this.renderAppsView();let r=this.renderNameForm(I.schema(`WebApplication`),`webapp domain`).then(e=>this.getOriginFromName(e));Promise.race([n,r]).then(e=>{e&&this.groupList.addNewURI(e)}).then(()=>this.renderCleanup())})}renderAppsView(){let e=this.groupList.controller.context.session.paneRegistry.byName(`trustedApplications`);if(e){let t=e.render(null,this.groupList.controller.context);t.setAttribute(`style`,G.trustedAppController);let n=yy(this.groupList.controller.dom,()=>this.renderCleanup());n.setAttribute(`style`,G.trustedAppCancelButton),t.insertBefore(n,t.firstChild),this.barElement.appendChild(t)}}async renderAppsTable(e){await Px(e);let t=this.groupList.store.each(e.me,I.acl(`trustedApp`)),n=t.flatMap(e=>this.groupList.store.each(e,I.acl(`origin`)));return this.barElement.appendChild(this.groupList.controller.dom.createElement(`p`)).textContent=`You have ${n.length} selected web apps.`,new Promise((e,n)=>{let r=this.barElement.appendChild(this.groupList.controller.dom.createElement(`table`));r.setAttribute(`style`,G.trustedAppAddApplicationsTable),t.forEach(t=>{let i=this.groupList.store.any(t,I.acl(`origin`));i||n(Error(`Unable to pick app: ${t.value}`));let a=Sy(this.groupList.controller.dom,I.acl(`origin`),i,{}),o=this.groupList.controller.dom.createElement(`table`),s=o.appendChild(this.groupList.controller.dom.createElement(`tr`));s.appendChild(this.groupList.controller.dom.createElement(`td`)).appendChild(a);let c=s.appendChild(this.groupList.controller.dom.createElement(`td`));c.textContent=`Give access to ${this.groupList.controller.noun} ${B(this.groupList.controller.subject)}?`,s.appendChild(this.groupList.controller.dom.createElement(`td`)).appendChild(by(this.groupList.controller.dom,()=>e(i.value))),r.appendChild(o)})})}renderCleanup(){this.renderBar(),this.groupList.render()}async addPerson(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(Error(`Not a http URI`));V(`Adding to ACL person: ${e}`),await this.groupList.addNewURI(e),this.toggleBar()}async addGroup(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(Error(`Not a http URI`));V(`Adding to ACL group: `+e),await this.groupList.addNewURI(e),this.toggleBar()}async addAgent(e){await this.groupList.addNewURI(e),this.toggleBar()}async addBot(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(Error(`Not a http URI`));V(`Adding to ACL bot: `+e),await this.groupList.addNewURI(e),this.toggleBar()}async getOriginFromName(e){if(!e)return Promise.resolve();if(!e.match(/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i))return Promise.reject(Error(`Not a domain name`));let t=`https://`+e;return V(`Adding to ACL origin: `+t),this.toggleBar(),t}toggleBar(){this.isExpanded=!this.isExpanded}},Yx=I.acl,Xx={13:`Owners`,9:`Owners (write locked)`,5:`Editors`,3:`Posters`,2:`Submitters`,1:`Viewers`},Zx={13:!0,5:!0,3:!0,2:!0,1:!0},Qx={13:`can read, write, and control sharing.`,9:`can read and control sharing, currently write-locked.`,5:`can read and change information`,3:`can add new information, and read but not change existing information`,2:`can add new information but not read any`,1:`can read but not change information`},$x=class{defaults;byCombo;aclMap;addAgentButton;rootElement;_store;constructor(e,t,n,r,i={}){this.doc=e,this.aclDoc=t,this.controller=n,this._options=i,this.defaults=this._options.defaults||!1,this._store=r,this.aclMap=Q_(e,t,r,this.defaults),this.byCombo=nv(this.aclMap),this.addAgentButton=new Jx(this),this.rootElement=this.controller.dom.createElement(`div`),this.rootElement.setAttribute(`style`,G.accessGroupList)}get store(){return this._store}set store(e){this._store=e,this.aclMap=Q_(this.doc,this.aclDoc,e,this.defaults),this.byCombo=nv(this.aclMap)}render(){return this.rootElement.innerHTML=``,this.renderGroups().forEach(e=>this.rootElement.appendChild(e)),this.controller.isEditable&&this.rootElement.appendChild(this.addAgentButton.render()),this.rootElement}renderGroups(){let e=[];for(let t=15;t>0;t--){let n=eS(t);(this.controller.isEditable&&Zx[t]||this.byCombo[n])&&e.push(this.renderGroup(t,n))}return e}renderGroup(e,t){let n=this.controller.dom.createElement(`div`);return n.setAttribute(`style`,G.accessGroupListItem),Mv(n,e=>this.handleDroppedUris(e,t).then(()=>this.controller.render()).catch(e=>this.controller.renderStatus(e))),this.renderGroupElements(e,t).forEach(e=>n.appendChild(e)),n}renderGroupElements(e,t){let n=this.controller.dom.createElement(`div`);if(n.setAttribute(`style`,G.group),this.controller.isEditable)switch(e){case 1:n.setAttribute(`style`,G.group1);break;case 2:n.setAttribute(`style`,G.group2);break;case 3:n.setAttribute(`style`,G.group3);break;case 5:n.setAttribute(`style`,G.group5);break;case 9:n.setAttribute(`style`,G.group9);break;case 13:n.setAttribute(`style`,G.group13);break;default:n.setAttribute(`style`,G.group)}n.innerText=Xx[e]||tS(e);let r=this.controller.dom.createElement(`div`);if(r.setAttribute(`style`,G.group),this.controller.isEditable)switch(e){case 1:r.setAttribute(`style`,G.group1);break;case 2:r.setAttribute(`style`,G.group2);break;case 3:r.setAttribute(`style`,G.group3);break;case 5:r.setAttribute(`style`,G.group5);break;case 9:r.setAttribute(`style`,G.group9);break;case 13:r.setAttribute(`style`,G.group13);break;default:r.setAttribute(`style`,G.group)}let i=r.appendChild(this.controller.dom.createElement(`table`));(this.byCombo[t]||[]).map(([e,n])=>this.renderAgent(i,t,e,n)).forEach(e=>i.appendChild(e));let a=this.controller.dom.createElement(`div`);if(a.setAttribute(`style`,G.group),this.controller.isEditable)switch(e){case 1:a.setAttribute(`style`,G.group1);break;case 2:a.setAttribute(`style`,G.group2);break;case 3:a.setAttribute(`style`,G.group3);break;case 5:a.setAttribute(`style`,G.group5);break;case 9:a.setAttribute(`style`,G.group9);break;case 13:a.setAttribute(`style`,G.group13);break;default:a.setAttribute(`style`,G.group)}return a.innerText=Qx[e]||`Unusual combination`,[n,r,a]}renderAgent(e,n,r,i){let a=Sy(this.controller.dom,Yx(r),(0,t.sym)(i),this.controller.isEditable?{deleteFunction:()=>this.deleteAgent(n,r,i).then(()=>e.removeChild(a)).catch(e=>this.controller.renderStatus(e))}:{});return a}async deleteAgent(e,t,n){let r=this.byCombo[e]||[],i=r.find(([e,r])=>e===t&&r===n);i&&r.splice(r.indexOf(i),1),await this.controller.save()}async addNewURI(e){await this.handleDroppedUri(e,eS(1)),await this.controller.save()}async handleDroppedUris(e,t){try{await Promise.all(e.map(e=>this.handleDroppedUri(e,t))),await this.controller.save()}catch(e){return Promise.reject(e)}}async handleDroppedUri(e,n,r=!1){let i=nS(e,this.store),a=(0,t.sym)(e);if(!i&&!r){V(` Not obvious: looking up dropped thing ${a}`);try{await this._store?.fetcher?.load(a.doc())}catch(e){let t=`Ignore error looking up dropped thing: ${e}`;return Y_(t),Promise.reject(Error(t))}return this.handleDroppedUri(e,n,!0)}else if(!i){let t=Object.keys(this.store.findTypeURIs(a)),n=t.length>0?`Detected RDF types: ${t.join(`, `)}`:`No RDF type was detected for this URI.`,r=`Error: Failed to add access target: ${e} is not a recognized ACL target type. Expected one of: vcard:WebID, vcard:Group, foaf:Person, foaf:Agent, solid:AppProvider, solid:AppProviderClass, or recognized ACL classes. Hint: try dropping a WebID profile URI, a vcard:Group URI, or a web app origin.`+n;return Y_(r),Promise.reject(Error(r))}this.setACLCombo(n,e,i,this.controller.subject)}setACLCombo(e,t,n,r){e in this.byCombo||(this.byCombo[e]=[]),this.removeAgentFromCombos(t),this.byCombo[e].push([n.pred,n.obj.uri]),V(`ACL: setting access to ${r} by ${n.pred}: ${n.obj}`)}removeAgentFromCombos(e){for(let t=0;t<16;t++){let n=this.byCombo[eS(t)];if(n)for(let t=0;t<n.length;t++)for(;t<n.length&&n[t][1]===e;)n.splice(t,1)}}};function eS(e){let t=[`Read`,`Append`,`Write`,`Control`],n=[];for(let r=0;r<4;r++)e&1<<r&&n.push(`http://www.w3.org/ns/auth/acl#`+t[r]);return n.sort(),n.join(`
2341
- `)}function tS(e){let t=``,n=[`Read`,`Append`,`Write`,`Control`];for(let r=0;r<4;r++)e&1<<r&&(t+=n[r]);return t}function nS(e,n){let r=(0,t.sym)(e),i=n.findTypeURIs(r);for(let e in i)V(` drop object type includes: `+e);if(e.startsWith(`http`)&&e.split(`/`).length===3)return{pred:`origin`,obj:r};if(e.startsWith(`http`)&&e.split(`/`).length===4&&e.endsWith(`/`))return V(`Assuming final slash on dragged origin URI was unintended!`),{pred:`origin`,obj:(0,t.sym)(e.slice(0,-1))};if(I.vcard(`WebID`).uri in i)return{pred:`agent`,obj:r};if(I.vcard(`Group`).uri in i)return{pred:`agentGroup`,obj:r};if(r.sameTerm(I.foaf(`Agent`))||r.sameTerm(I.acl(`AuthenticatedAgent`))||r.sameTerm(I.rdf(`Resource`))||r.sameTerm(I.owl(`Thing`)))return{pred:`agentClass`,obj:r};if(I.vcard(`Individual`).uri in i||I.foaf(`Person`).uri in i||I.foaf(`Agent`).uri in i){let e=n.any(r,I.foaf(`preferredURI`));return e?{pred:`agent`,obj:(0,t.sym)(e)}:{pred:`agent`,obj:r}}return I.solid(`AppProvider`).uri in i?{pred:`origin`,obj:r}:I.solid(`AppProviderClass`).uri in i?{pred:`originClass`,obj:r}:(V(` Triage fails for `+e),null)}var rS=class{mainCombo;defaultsCombo;isContainer;defaultsDiffer;rootElement;isUsingDefaults;constructor(e,t,n,r,i,a,o,s,c,l,u,d){if(this.subject=e,this.noun=t,this.context=n,this.statusElement=r,this.targetIsProtected=i,this.targetDoc=a,this.targetACLDoc=o,this.defaultHolder=s,this.defaultACLDoc=c,this.prospectiveDefaultHolder=l,this.store=u,this.dom=d,this.rootElement=d.createElement(`div`),this.rootElement.setAttribute(`style`,G.aclGroupContent),this.isContainer=a.uri.slice(-1)===`/`,s&&c){this.isUsingDefaults=!0;let e=Z_(this.targetDoc,o,s,c);this.mainCombo=new $x(a,o,this,e,{defaults:this.isContainer}),this.defaultsCombo=null,this.defaultsDiffer=!1}else this.isUsingDefaults=!1,this.mainCombo=new $x(a,o,this,u),this.defaultsCombo=new $x(a,o,this,u,{defaults:this.isContainer}),this.defaultsDiffer=!$_(this.mainCombo.aclMap,this.defaultsCombo.aclMap)}get isEditable(){return!this.isUsingDefaults}render(){if(this.rootElement.innerHTML=``,this.isUsingDefaults){if(this.renderStatus(`The sharing for this ${this.noun} is the default for folder `),this.defaultHolder){let e=this.statusElement.appendChild(this.dom.createElement(`a`));e.href=this.defaultHolder.uri,e.innerText=lS(this.defaultHolder)}}else!this.defaultsDiffer&&this.isContainer?this.renderStatus(`This is also the default for things in this folder.`):this.renderStatus(``);return this.rootElement.appendChild(this.mainCombo.render()),this.defaultsCombo&&this.defaultsDiffer?(this.rootElement.appendChild(this.renderRemoveDefaultsController()),this.rootElement.appendChild(this.defaultsCombo.render())):this.isEditable&&this.isContainer&&this.rootElement.appendChild(this.renderAddDefaultsController()),!this.targetIsProtected&&this.isUsingDefaults?this.rootElement.appendChild(this.renderAddAclsController()):this.targetIsProtected||this.rootElement.appendChild(this.renderRemoveAclsController()),this.rootElement}renderRemoveAclsController(){let e=this.dom.createElement(`button`);return e.innerText=`Remove custom sharing settings for this ${this.noun} -- just use default${this.prospectiveDefaultHolder?` for ${B(this.prospectiveDefaultHolder)}`:``}`,e.setAttribute(`style`,G.bigButton),e.addEventListener(`click`,()=>this.removeAcls().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderAddAclsController(){let e=this.dom.createElement(`button`);return e.innerText=`Set specific sharing for this ${this.noun}`,e.setAttribute(`style`,G.bigButton),e.addEventListener(`click`,()=>this.addAcls().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderAddDefaultsController(){let e=this.dom.createElement(`div`);e.setAttribute(`style`,G.defaultsController);let t=e.appendChild(this.dom.createElement(`div`));t.innerText=`Sharing for things within the folder currently tracks sharing for the folder.`,t.setAttribute(`style`,G.defaultsControllerNotice);let n=e.appendChild(this.dom.createElement(`button`));return n.innerText=`Set the sharing of folder contents separately from the sharing for the folder`,n.setAttribute(`style`,G.bigButton),n.addEventListener(`click`,()=>this.addDefaults().then(()=>this.render())),e}renderRemoveDefaultsController(){let e=this.dom.createElement(`div`);e.setAttribute(`style`,G.defaultsController);let t=e.appendChild(this.dom.createElement(`div`));t.innerText=`Access to things within this folder:`,t.setAttribute(`style`,G.defaultsControllerNotice);let n=e.appendChild(this.dom.createElement(`button`));return n.innerText=`Set default for folder contents to just track the sharing for the folder`,n.setAttribute(`style`,G.bigButton),n.addEventListener(`click`,()=>this.removeDefaults().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderTemporaryStatus(e){this.statusElement.setAttribute(`style`,G.aclControlBoxStatusRevealed),this.statusElement.innerText=e,this.statusElement.setAttribute(`style`,G.temporaryStatusInit),setTimeout(()=>{this.statusElement.setAttribute(`style`,G.temporaryStatusEnd)}),setTimeout(()=>{this.statusElement.innerText=``},5e3)}renderStatus(e){e||this.statusElement.setAttribute(`style`,G.aclControlBoxStatusRevealed),this.statusElement.innerText=e}async addAcls(){if(!this.defaultHolder||!this.defaultACLDoc){let e=`Unable to find defaults to copy`;return Y_(e),Promise.reject(e)}Z_(this.targetDoc,this.targetACLDoc,this.defaultHolder,this.defaultACLDoc).statements.forEach(e=>this.store.add(e.subject,e.predicate,e.object,this.targetACLDoc));try{return await this.store.fetcher.putBack(this.targetACLDoc),this.isUsingDefaults=!1,Promise.resolve()}catch(e){let t=` Error writing back access control file! ${e}`;return Y_(t),Promise.reject(t)}}async addDefaults(){this.defaultsCombo=new $x(this.targetDoc,this.targetACLDoc,this,this.store,{defaults:!0}),this.defaultsDiffer=!0}async removeAcls(){try{await this.store.fetcher.delete(this.targetACLDoc.uri,{}),this.isUsingDefaults=!0;try{this.prospectiveDefaultHolder=await hv(this.targetDoc.uri)}catch(e){H(e)}}catch(e){let t=`Error deleting access control file: ${this.targetACLDoc}: ${e}`;return Y_(t),Promise.reject(t)}}async removeDefaults(){let e=this.defaultsCombo;try{this.defaultsCombo=null,this.defaultsDiffer=!1,await this.save()}catch(t){return this.defaultsCombo=e,this.defaultsDiffer=!0,Y_(t),Promise.reject(t)}}save(){let e=(0,t.graph)();this.isContainer?this.defaultsCombo&&this.defaultsDiffer?(iv(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),iv(e,this.targetDoc,this.defaultsCombo.byCombo,this.targetACLDoc,!1,!0)):iv(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0,!0):iv(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),e.fetcher=(0,t.fetcher)(e,{fetch:this.store.fetcher._fetch});let n=e.updater||new t.UpdateManager(e);return new Promise((t,r)=>{n.put(this.targetACLDoc,e.statementsMatching(void 0,void 0,void 0,this.targetACLDoc),`text/turtle`,(n,i,a)=>{if(!i)return r(Error(`ACL file save failed: ${a}`));this.store.fetcher.unload(this.targetACLDoc),this.store.add(e.statements),this.store.fetcher.requested[this.targetACLDoc.uri]=`done`,this.mainCombo.store=this.store,this.defaultsCombo&&(this.defaultsCombo.store=this.store),this.defaultsDiffer=!!this.defaultsCombo&&!$_(this.mainCombo.aclMap,this.defaultsCombo.aclMap),V(`ACL modification: success!`),t()})})}},iS=window,aS=Symbol(`prevent double triggering of drop event`);function oS(e){if(V(`preventBrowserDropEvents called.`),iS!==void 0){if(iS[aS])return;iS[aS]=!0}e.addEventListener(`drop`,cS,!1),e.addEventListener(`dragenter`,sS,!1),e.addEventListener(`dragover`,sS,!1)}function sS(e){e.stopPropagation(),e.preventDefault()}function cS(e){e.dataTransfer.files.length>0&&(iS.confirm(`Are you sure you want to drop this file here? (Cancel opens it in a new tab)`)||(e.stopPropagation(),e.preventDefault(),V(`@@@@ document-level DROP suppressed: `+e.dataTransfer.dropEffect)))}function lS(e){let t=e.uri;t.slice(-1)===`/`&&(t=t.slice(0,-1));let n=t.lastIndexOf(`/`);return n>=0&&(t=t.slice(n+1)),t||`/`}function uS(e,t,n,r){let i=t.dom,a=e.doc(),o=i.createElement(`div`);o.setAttribute(`style`,G.aclControlBoxContainer);let s=o.appendChild(i.createElement(`h1`));s.textContent=`Sharing for ${n} ${B(e)}`,s.setAttribute(`style`,G.aclControlBoxHeader);let c=o.appendChild(i.createElement(`div`));c.setAttribute(`style`,G.aclControlBoxStatus);try{dS(a,r,e,n,t,i,c).then(e=>o.appendChild(e.render()))}catch(e){c.innerText=e}return o}async function dS(e,t,n,r,i,a,o){return new Promise((s,c)=>pv(e,async(e,l,u,d,f,p)=>{if(!e)return c(Error(`Error reading ${l?``:` default `}ACL. status ${u}: ${d}`));let m=fS(u),h=pS(u,d,t)||mS(u);if(!h&&m)try{return s(g(await hv(m)))}catch(e){H(e)}return s(g());function g(e){return new rS(n,r,i,o,h,u,d,f,p,e,t,a)}}))}function fS(e){let t=e.uri.split(`#`)[0],n=t.slice(0,-1).lastIndexOf(`/`),r=t.indexOf(`//`);return r>=0&&n<r+2||n<0?null:t.slice(0,n+1)}function pS(e,t,n){return n.holds(e,I.rdf(`type`),I.space(`Storage`),t)}function mS(e){return e.uri===e.site().uri}var hS={adoptACLDefault:Z_,readACL:Q_,sameACL:$_,ACLunion:ev,loadUnionACL:tv,ACLbyCombination:nv,makeACLGraph:rv,makeACLGraphbyCombo:iv,ACLToString:av,comboToString:ov,makeACLString:sv,putACLObject:cv,putACLbyCombo:lv,fixIndividualCardACL:uv,fixIndividualACL:dv,setACL:fv,getACLorDefault:pv,getACL:mv},gS={preventBrowserDropEvents:oS,shortNameForFolder:lS,ACLControlBox5:uS},_S=n.solidLogicSingleton.store;function vS(e,t,n){let r=e.dom,i=e.div;if(e.me&&!e.me.uri)throw Error(`newThingUI: Invalid userid: `+e.me);let a=`padding: 0.7em; width: 2em; height: 2em;`,o=i.appendChild(r.createElement(`img`)),s=!1;o.setAttribute(`src`,q.iconBase+`noun_34653_green.svg`),o.setAttribute(`style`,a),o.setAttribute(`title`,`Add another tool`);let c=function(e){let t=i.appendChild(r.createElement(`pre`));t.setAttribute(`style`,`background-color: pink`),t.appendChild(r.createTextNode(e))};function l(e){for(let t=0;t<p.length;t++){let n=a+e;p[t].disabled&&(n+=`opacity: 0.3;`),p[t].setAttribute(`style`,n)}}function u(e){l(`display: none;`),e.setAttribute(`style`,`padding: 0.7em; width: 2em; height: 2em;background-color: yellow;`)}function d(e){s=!s,o.setAttribute(`style`,a+(s?`background-color: yellow;`:``)),l(s?``:`display: none;`)}o.addEventListener(`click`,d);function f(n){return new Promise(function(i,a){let o;function s(i,o){Px(e).then(e=>{let s=Object.assign({newBase:o,folder:n.folder||void 0,workspace:i},n);for(let e in n)s[e]=n[e];V(`newThingUI: Minting new ${s.pane.name} at ${s.newBase}`),n.pane.mintNew(t,s).then(function(e){if(!e||!e.newInstance)throw Error(`Cannot mint new - missing newInstance`);if(e.folder){let t=e.newInstance.uri.slice(e.folder.uri.length).includes(`/`);V(` new thing is packge? `+t),t?_S.add(e.folder,I.ldp(`contains`),_S.sym(e.newBase),e.folder.doc()):_S.add(e.folder,I.ldp(`contains`),e.newInstance,e.folder.doc()),e.refreshTarget&&e.refreshTarget.refresh&&e.refreshTarget.refresh()}else{let t=n.div.appendChild(r.createElement(`p`));t.setAttribute(`style`,`font-size: 120%;`),t.innerHTML=`Your <a target='_blank' href='`+e.newInstance.uri+`'><b>new `+n.noun+`</b></a> is ready to be set up. <br/><br/><a target='_blank' href='`+e.newInstance.uri+`'>Go to your new `+n.noun+`.</a>`}d()}).catch(function(e){c(e),a(e)})},e=>{c(`Error logging on: `+e)})}let l=n.pane;n.noun=l.mintClass?B(l.mintClass):l.name,n.appPathSegment=n.noun.slice(0,1).toUpperCase()+n.noun.slice(1),n.folder?xy(r,_S,n.div,I.foaf(`name`),null,n.noun).then(function(e){if(!e)d();else{let t=n.folder.uri;t.endsWith(`/`)||(t+=`/`),t=t+encodeURIComponent(e)+`/`,s(null,t)}}):(o=Ux(r,{noun:n.noun,appPathSegment:n.appPathSegment},s),n.div.appendChild(o))})}let p=[],m=Object.values(n).filter(e=>e.mintNew),h=m.reduce((e,t)=>(t.mintClass&&(e[t.mintClass.uri]=(e[t.mintClass.uri]||0)+1),e),{});m.forEach(t=>{let n=e.div.appendChild(r.createElement(`img`));n.setAttribute(`src`,t.icon);let i=t.mintClass?h[t.mintClass.uri]>1?`${B(t.mintClass)} (using ${t.name} pane)`:B(t.mintClass):t.name+` @@`;n.setAttribute(`title`,`Make new `+i),n.setAttribute(`style`,`padding: 0.7em; width: 2em; height: 2em;display: none;`),p.push(n),n.disabled||n.addEventListener(`click`,function(r){u(n),f({event:r,folder:e.folder||null,iconEle:n,pane:t,noun:i,noIndexHTML:!0,div:e.div,me:e.me,dom:e.dom,refreshTarget:e.refreshTarget})})})}var yS={newThingUI:vS},bS=n.solidLogicSingleton.store;function xS(e,n,r,i,a,o,s){let c=e.createElement(`table`),l=e.createElement(`tr`);l.appendChild(e.createElement(`td`)).setAttribute(`class`,`MatrixCorner`),c.appendChild(l),c.lastHeader=l;let u=[],d=[],f=function(e,t,n,r){for(;e.firstChild;)e.removeChild(e.firstChild);e.setAttribute(`style`,``),e.style.textAlign=`center`,o.cellFunction?o.cellFunction(e,t,n,r):(e.textContent=B(r),e.setAttribute(`style`,`padding: 0.3em`)),delete e.old},p=function(n){let r=n.toNT();if(d[r])return d[r];let i=e.createElement(`tr`),a=i.appendChild(e.createElement(`td`));a.setAttribute(`style`,`padding: 0.3em;`),a.textContent=B(n),n.termType===`NamedNode`&&bS.fetcher.nowOrWhenFetched(n.uri.split(`#`)[0],void 0,function(e,t,r){e&&(a.textContent=B(n))});for(let r=0;r<u.length;r++)f(i.appendChild(e.createElement(`td`)),t.fromNT(u[r]),n,null);i.dataValueNT=r,d[r]=i;for(let e=c.lastHeader.nextSibling;e;e=e.nextSibling)if(r>e.dataValueNT&&o&&o.yDecreasing||r<e.dataValueNT&&!(o&&o.yDecreasing))return c.insertBefore(i,e);return c.appendChild(i)},m=function(n){let r=n.toNT(),i=null;for(let e=0;e<u.length;e++){if(u[e]===r)return e;if(r>u[e]&&o.xDecreasing||r<u[e]&&!o.xDecreasing){u=u.slice(0,e).concat([r]).concat(u.slice(e)),i=e;break}}i===null&&(i=u.length,u.push(r));for(let r=c.firstChild;r;r=r.nextSibling){let a=r.dataValueNT,o=e.createElement(`td`);if(o.style.textAlign=`center`,r===c.firstChild?o.textContent=B(n):f(o,n,t.fromNT(a),null),i===u.length-1)r.appendChild(o);else{let e=r.firstChild;for(let t=0;t<i+1;t++)e=e.nextSibling;r.insertBefore(o,e)}}return i},h=function(){for(let e=1;e<c.children.length;e++){let t=c.children[e];for(let e=1;e<t.children.length;e++)t.children[e].old=!0}},g=function(){let e,n,r=[],i=[];if(o.set_y)for(let e=0;e<o.set_y.length;e++)i[o.set_y[e]]=!0;if(o.set_x)for(let e=0;e<o.set_x.length;e++)r[m(o.set_x[e])+1]=!0;for(let a=1;a<c.children.length;a++){e=c.children[a];for(let a=1;a<e.children.length;a++)if(n=e.children[a],n.old){let r=t.fromNT(e.dataValueNT),i=t.fromNT(u[a-1]);f(n,i,r,null)}else i[e.dataValueNT]=!0,r[a]=!0}for(let t=0;t<c.children.length;t++)if(e=c.children[t],t>0&&!i[e.dataValueNT])delete d[e.dataValueNT],c.removeChild(e);else for(let t=e.children.length-1;t>0;t--){let n=e.children[t];r[t]||e.removeChild(n)}let a=[];for(let e=0;e<u.length;e++)r[e+1]&&a.push(u[e]);u=a};c.refresh=function(){h(),bS.query(n,_,void 0,g)};let _=function(e){let t=e[r.toString()],n=e[i.toString()],o=e[a.toString()],s=p(n),c=m(t),l=s.children[c+1];f(l,t,n,o)};if(o.set_y)for(let e=0;e<o.set_y.length;e++)p(o.set_y[e]);if(o.set_x)for(let e=0;e<o.set_x.length;e++)m(o.set_x[e]);return bS.query(n,_,void 0,s),c}var SS={matrixForQuery:xS},CS=q.iconBase+`noun_Camera_1618446_000000.svg`,wS=q.iconBase+`noun_479395.svg`,TS=`image/png`;function ES(e,t,n,r){let i=e.createElement(`div`),a,o,s,c,l=i.appendChild(e.createElement(`table`)),u=l.appendChild(e.createElement(`tr`)).appendChild(e.createElement(`td`));u.setAttribute(`colspan`,`4`);let d=l.appendChild(e.createElement(`tr`));d.appendChild(e.createElement(`td`)).appendChild(yy(e)).addEventListener(`click`,e=>{b(),r(null)});let f=d.appendChild(e.createElement(`td`)).appendChild(Y(e,wS,`Retake`));f.addEventListener(`click`,e=>{_()}),f.style.visibility=`collapse`;let p=d.appendChild(e.createElement(`td`)).appendChild(Y(e,q.iconBase+`noun_10636.svg`,`Snap`));p.addEventListener(`click`,v),p.style.visibility=`collapse`;let m=d.appendChild(e.createElement(`td`)).appendChild(by(e));m.addEventListener(`click`,e=>{x(o,a)}),m.style.visibility=`collapse`;function h(){if(s=u.appendChild(e.createElement(`video`)),s.setAttribute(`controls`,`1`),s.setAttribute(`autoplay`,`1`),s.setAttribute(`style`,G.controlStyle),!navigator.mediaDevices)throw Error(`navigator.mediaDevices not available`);navigator.mediaDevices.getUserMedia(g).then(e=>{s.srcObject=e,p.style.visibility=`visible`,m.style.visibility=`collapse`,f.style.visibility=`collapse`})}let g={video:!0};function _(){u.removeChild(c),h()}function v(){c=e.createElement(`canvas`),c.setAttribute(`width`,G.canvasWidth),c.setAttribute(`height`,G.canvasHeight),c.setAttribute(`style`,G.controlStyle),u.appendChild(c),c.getContext(`2d`).drawImage(s,0,0,c.width,c.height),s.parentNode.removeChild(s),c.toBlob(e=>{V(`got blob type ${e.type} size ${e.size}`),a=n(),o=e,y()},TS)}function y(){m.style.visibility=`visible`,f.style.visibility=`visible`,p.style.visibility=`collapse`}function b(){s&&s.srcObject&&s.srcObject.getVideoTracks().forEach(e=>e.stop())}function x(e,n){let i=e.type;V(`Putting `+e.size+` bytes of `+i+` to `+n),t.fetcher.webOperation(`PUT`,n.uri,{data:e,contentType:i}).then(e=>{V(`ok saved `+n),b(),r(n)},e=>{b(),alert(e)})}return h(),i}function DS(e,t,n,r){let i=e.createElement(`div`),a=Y(e,CS,`Take picture`),o;async function s(e){i.removeChild(o),i.appendChild(a),r(e)}return i.appendChild(a),a.addEventListener(`click`,r=>{i.removeChild(a),o=ES(e,t,n,s),i.appendChild(o)}),i}var OS={cameraCaptureControl:ES,cameraButton:DS},kS={icons:q,ns:I,rdf:t,style:G,widgets:bx};function AS(e,r,i,a,o){r||=n.solidLogicSingleton.store,a=a.doc();let s=kS.ns,c=t.Namespace(`http://www.w3.org/2005/01/wf/flow#`),l=t.Namespace(`http://purl.org/dc/terms/`);o||={};let u=!!o.newestFirst,d=e.createElement(`div`),f,p,m=n.solidLogicSingleton.store.updater,h=function(t,n){let r=e.createElement(`a`);return n&&n.uri&&(r.setAttribute(`href`,n.uri),r.addEventListener(`click`,kS.widgets.openHrefInOutlineMode,!0),r.setAttribute(`style`,`color: #3B5998; text-decoration: none; `)),r.textContent=t,r},g=function(t,n){let r=e.createElement(`pre`);return r.setAttribute(`style`,n||`color: grey`),d.appendChild(r),r.appendChild(e.createTextNode(t)),r},_={log:function(e){g(e,`color: #111;`)},warn:function(e){g(e,`color: #880;`)},error:function(e){g(e,`color: #800;`)}},v=function(){let n=e.createElement(`tr`),o=e.createElement(`td`),c=e.createElement(`td`),u=e.createElement(`td`);n.appendChild(o),n.appendChild(c),n.appendChild(u),n.AJAR_date=`9999-01-01T00:00:00Z`;let d=function(){f.setAttribute(`class`,`pendingedit`),f.disabled=!0;let o=[],c=new Date,u=``+c.getTime(),d=t.term(c),h=r.sym(a.uri+`#Msg`+u);o.push(new t.Statement(i,s.wf(`message`),h,a)),o.push(new t.Statement(h,s.sioc(`content`),r.literal(f.value),a)),o.push(new t.Statement(h,l(`created`),d,a)),p&&o.push(new t.Statement(h,s.foaf(`maker`),p,a)),m.update([],o,function(t,i,a){if(!i)n.appendChild(kS.widgets.errorMessageBlock(e,`Error writing message: `+a));else{let e={"?msg":h,"?content":r.literal(f.value),"?date":d,"?creator":p};w(e,!1),f.value=``,f.setAttribute(`class`,``),f.disabled=!1}})};n.appendChild(e.createElement(`br`));let f,h,g=function(){b(o,p,``,null),f=e.createElement(`textarea`),c.innerHTML=``,c.appendChild(f),f.rows=3,f.setAttribute(`style`,`white-space: pre-wrap; width: 90%; font-size:100%; border: 0.07em solid #eee; padding: .2em 0.5em; margin: 0.1em 1em 0.1em 1em;background-color: #eef;`),f.addEventListener(`keyup`,function(e){e.keyCode===13&&(e.altKey||d())},!1),u.innerHTML=``,h=kS.widgets.button(e,kS.icons.iconBase+`noun_383448.svg`,`Send`),h.setAttribute(`style`,kS.style.buttonStyle+`float: right;`),h.addEventListener(`click`,d,!1),u.appendChild(h)};return Mx({div:c,dom:e}).then(e=>{p=e.me,g()}),n};function y(e){let t=n.solidLogicSingleton.store.any(e,kS.ns.foaf(`nick`));return t?``+t.value:``+B(e)}function b(t,r,i,a){let o=t.appendChild(h(y(r),r));r.uri&&n.solidLogicSingleton.store.fetcher.nowOrWhenFetched(r.doc(),void 0,function(e,t){o.textContent=y(r)}),t.appendChild(e.createElement(`br`)),t.appendChild(h(i,a))}function x(e,t){let n={},i,a;for(i=t.firstChild;i;i=i.nextSibling)i.AJAR_subject&&(n[i.AJAR_subject.uri]=!0);let o=r.each(e,s.wf(`message`)),c={};for(o.forEach(function(e){c[e.uri]=!0,n[e.uri]||C(e)}),i=t.firstChild;i;)a=i.nextSibling,i.AJAR_subject&&!c[i.AJAR_subject.uri]&&t.removeChild(i),i=a}let S=function(e){let t=r.statementsMatching(e).concat(r.statementsMatching(void 0,void 0,e));m.update(t,[],function(e,t,n){t?x(i,f):_.error(`Cant delete messages:`+n)})},C=function(e){let t={"?msg":e,"?creator":r.any(e,s.foaf(`maker`)),"?date":r.any(e,l(`created`)),"?content":r.any(e,s.sioc(`content`))};w(t,!0)},w=function(t,n){let r=t[`?creator`],i=t[`?msg`],a=t[`?date`],o=t[`?content`],s=a.value,c=e.createElement(`tr`);c.AJAR_date=s,c.AJAR_subject=i;let l=!1;for(let e=f.firstChild;e;e=e.nextSibling)if(s>e.AJAR_date&&u||s<e.AJAR_date&&!u){f.insertBefore(c,e),l=!0;break}l||f.appendChild(c);let d=e.createElement(`td`);c.appendChild(d),b(d,r,kS.widgets.shortDate(s),i);let p=e.createElement(`td`);c.appendChild(p);let m=e.createElement(`p`);m.setAttribute(`style`,`white-space: pre-wrap; width: 90%; font-size:100%; border: 0.07em solid #eee; padding: .2em 0.5em; margin: 0.1em 1em 0.1em 1em;`+(n?`background-color: #e8ffe8;`:`background-color: #white;`)),p.appendChild(m),m.textContent=o.value;let h=e.createElement(`td`);c.appendChild(h);let g=e.createElement(`button`);h.appendChild(g),g.textContent=`-`,c.setAttribute(`class`,`hoverControl`),g.setAttribute(`class`,`hoverControlHide`),g.setAttribute(`style`,`color: red;`),g.addEventListener(`click`,function(t){h.removeChild(g);let n=e.createElement(`button`);n.textContent=`cancel`,h.appendChild(n).addEventListener(`click`,function(e){h.removeChild(r),h.removeChild(n),h.appendChild(g)},!1);let r=e.createElement(`button`);r.textContent=`Delete message`,h.appendChild(r).addEventListener(`click`,function(e){h.removeChild(r),h.removeChild(n),S(i)},!1)},!1)};f=e.createElement(`table`),f.fresh=!1,d.appendChild(f),f.setAttribute(`style`,`width: 100%;`);let T=v();u?f.insertBefore(T,f.firstChild):f.appendChild(T);let E;if(o.query)E=o.query;else{E=new t.Query(`Messages`);let e={};[`msg`,`date`,`creator`,`content`].forEach(function(n){E.vars.push(e[n]=t.variable(n))}),E.pat.add(i,c(`message`),e.msg),E.pat.add(e.msg,s.dct(`created`),e.date),E.pat.add(e.msg,s.foaf(`maker`),e.creator),E.pat.add(e.msg,s.sioc(`content`),e.content)}function D(){f.fresh=!0}return r.query(E,w,void 0,D),d.refresh=function(){x(i,f)},d}async function jS(e){return await n.store.fetcher.load(e),!(n.store.statementsMatching(null,I.dct(`created`),null,e).length>0)}var MS=class{constructor(e,t,n){this.root=e,this.rootFolder=e.dir(),this.leafFileName=t||`index.ttl`,this.membershipProperty=n||I.wf(`leafObject`)}leafDocumentFromDate(e){let t=e.toISOString().split(`T`)[0].replace(/-/g,`/`);return t=this.root.dir().uri+t+`/`+this.leafFileName,n.store.sym(t)}dateFromLeafDocument(e){let t=this.rootFolder.uri.length,n=e.uri.slice(t,t+10).replace(/\//g,`-`);return new Date(n)}async loadPrevious(e,t){async function r(e,i){function a(n){return!(t?n.uri>=e.uri:n.uri<=e.uri)}function o(e){let t=e.uri.slice(0,-1).split(`/`).slice(-1)[0];return!!`0123456789`.includes(t[0])}function s(e){return e=e.filter(o),e.sort(),t||e.reverse(),e.pop()}let c=e.dir();try{await n.store.fetcher.load(c);let e=n.store.each(c,I.ldp(`contains`));e=e.filter(a);let t=s(e);if(t)return t}catch(e){if(e.response&&e.response.status&&e.response.status===404)V(`Error 404 for chat parent file `+c);else throw V(`*** Error NON 404 for chat parent file `+c),Error(`*** ${e.message} for chat folder ${c}`)}if(i===0)return null;let l=await r(c,i-1);return l?(await n.store.fetcher.load(l),s(n.store.each(l,I.ldp(`contains`)))):null}let i=this.leafDocumentFromDate(e).dir();for(;;){let t=await r(i,3);if(t){let r=n.store.sym(t.uri+this.leafFileName),a=this.dateFromLeafDocument(r);if(await jS(r))e=a,i=this.leafDocumentFromDate(e).dir();else return a}else return null}}async firstLeaf(e){let n=t.graph(),r=new t.Fetcher(n);async function i(t){function i(e){let t=e.uri.slice(0,-1).split(`/`).slice(-1)[0];return!!`0123456789`.includes(t[0])}delete r.requested[t.uri],await r.load(t,{force:!0});let a=n.each(t,I.ldp(`contains`));if(a=a.filter(i),a.length===0)throw Error(` @@@ No children to parent2 `+t);return a.sort(),e&&a.reverse(),a[0]}let a=await i(await i(await i(this.root.dir()))),o=t.sym(a.uri+`chat.ttl`);await r.load(o);let s=n.each(this.root,this.membershipProperty,null,o);if(s.length===0){let e=` INCONSISTENCY -- no chat leafObject in file `+o;throw X_(e),Error(e)}let c=s.map(e=>[n.any(e,I.dct(`created`)),e]);return c.sort(),e&&c.reverse(),c[0][1]}};function NS(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`&&`BYTES_PER_ELEMENT`in e&&e.BYTES_PER_ELEMENT===1}function PS(e,t=``){if(typeof e!=`number`){let n=t&&`"${t}" `;throw TypeError(`${n}expected number, got ${typeof e}`)}if(!Number.isSafeInteger(e)||e<0){let n=t&&`"${t}" `;throw RangeError(`${n}expected integer >= 0, got ${e}`)}}function FS(e,t,n=``){let r=NS(e),i=e?.length,a=t!==void 0;if(!r||a&&i!==t){let o=n&&`"${n}" `,s=a?` of length ${t}`:``,c=r?`length=${i}`:`type=${typeof e}`,l=o+`expected Uint8Array`+s+`, got `+c;throw r?RangeError(l):TypeError(l)}return e}function IS(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function LS(e,t){FS(e,void 0,`digestInto() output`);let n=t.outputLen;if(e.length<n)throw RangeError(`"digestInto() output" expected to be of length >=`+n)}function RS(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function zS(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function BS(e,t){return e<<32-t|e>>>t}var VS=typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`,HS=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function US(e){if(FS(e),VS)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=HS[e[n]];return t}var WS={_0:48,_9:57,A:65,F:70,a:97,f:102};function GS(e){if(e>=WS._0&&e<=WS._9)return e-WS._0;if(e>=WS.A&&e<=WS.F)return e-(WS.A-10);if(e>=WS.a&&e<=WS.f)return e-(WS.a-10)}function KS(e){if(typeof e!=`string`)throw TypeError(`hex string expected, got `+typeof e);if(VS)try{return Uint8Array.fromHex(e)}catch(e){throw e instanceof SyntaxError?RangeError(e.message):e}let t=e.length,n=t/2;if(t%2)throw RangeError(`hex string expected, got unpadded hex of length `+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=GS(e.charCodeAt(i)),a=GS(e.charCodeAt(i+1));if(n===void 0||a===void 0){let t=e[i]+e[i+1];throw RangeError(`hex string expected, got non-hex character "`+t+`" at index `+i)}r[t]=n*16+a}return r}function qS(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];FS(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}function JS(e,t={}){let n=(t,n)=>e(n).update(t).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.canXOF=r.canXOF,n.create=t=>e(t),Object.assign(n,t),Object.freeze(n)}function YS(e=32){PS(e,`bytesLength`);let t=typeof globalThis==`object`?globalThis.crypto:null;if(typeof t?.getRandomValues!=`function`)throw Error(`crypto.getRandomValues must be defined`);if(e>65536)throw RangeError(`"bytesLength" expected <= 65536, got ${e}`);return t.getRandomValues(new Uint8Array(e))}var XS=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function ZS(e,t,n){return e&t^~e&n}function QS(e,t,n){return e&t^e&n^t&n}var $S=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,n,r){this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=zS(this.buffer)}update(e){IS(this),FS(e);let{view:t,buffer:n,blockLen:r}=this,i=e.length;for(let a=0;a<i;){let o=Math.min(r-this.pos,i-a);if(o===r){let t=zS(e);for(;r<=i-a;a+=r)this.process(t,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){IS(this),LS(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,RS(this.buffer.subarray(a)),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;n.setBigUint64(r-8,BigInt(this.length*8),i),this.process(n,0);let o=zS(e),s=this.outputLen;if(s%4)throw Error(`_sha2: outputLen must be aligned to 32bit`);let c=s/4,l=this.get();if(c>l.length)throw Error(`_sha2: outputLen bigger than state`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.destroyed=a,e.finished=i,e.length=r,e.pos=o,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}},eC=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),tC=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),nC=new Uint32Array(64),rC=class extends $S{constructor(e){super(64,e,8,!1)}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let n=0;n<16;n++,t+=4)nC[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=nC[e-15],n=nC[e-2],r=BS(t,7)^BS(t,18)^t>>>3;nC[e]=(BS(n,17)^BS(n,19)^n>>>10)+nC[e-7]+r+nC[e-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=BS(o,6)^BS(o,11)^BS(o,25),u=l+t+ZS(o,s,c)+tC[e]+nC[e]|0,d=(BS(n,2)^BS(n,13)^BS(n,22))+QS(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){RS(nC)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),RS(this.buffer)}},iC=class extends rC{A=eC[0]|0;B=eC[1]|0;C=eC[2]|0;D=eC[3]|0;E=eC[4]|0;F=eC[5]|0;G=eC[6]|0;H=eC[7]|0;constructor(){super(32)}},aC=JS(()=>new iC,XS(1)),oC=(e,t,n)=>FS(e,t,n),sC=PS,cC=US,lC=(...e)=>qS(...e),uC=e=>KS(e),dC=BigInt(0),fC=BigInt(1);function pC(e,t=``){if(typeof e!=`boolean`){let n=t&&`"${t}" `;throw TypeError(n+`expected boolean, got type=`+typeof e)}return e}function mC(e){if(typeof e==`bigint`){if(!wC(e))throw RangeError(`positive bigint expected, got `+e)}else sC(e);return e}function hC(e,t=``){if(typeof e!=`number`){let n=t&&`"${t}" `;throw TypeError(n+`expected number, got type=`+typeof e)}if(!Number.isSafeInteger(e)){let n=t&&`"${t}" `;throw RangeError(n+`expected safe integer, got `+e)}}function gC(e){let t=mC(e).toString(16);return t.length&1?`0`+t:t}function _C(e){if(typeof e!=`string`)throw TypeError(`hex string expected, got `+typeof e);return e===``?dC:BigInt(`0x`+e)}function vC(e){return _C(US(e))}function yC(e){return _C(US(SC(FS(e)).reverse()))}function bC(e,t){if(PS(t),t===0)throw RangeError(`zero length`);e=mC(e);let n=e.toString(16);if(n.length>t*2)throw RangeError(`number too large`);return KS(n.padStart(t*2,`0`))}function xC(e,t){return bC(e,t).reverse()}function SC(e){return Uint8Array.from(oC(e))}function CC(e){if(typeof e!=`string`)throw TypeError(`ascii string expected, got `+typeof e);return Uint8Array.from(e,(t,n)=>{let r=t.charCodeAt(0);if(t.length!==1||r>127)throw RangeError(`string contains non-ASCII character "${e[n]}" with code ${r} at position ${n}`);return r})}var wC=e=>typeof e==`bigint`&&dC<=e;function TC(e,t,n){return wC(e)&&wC(t)&&wC(n)&&t<=e&&e<n}function EC(e,t,n,r){if(!TC(t,n,r))throw RangeError(`expected valid `+e+`: `+n+` <= n < `+r+`, got `+t)}function DC(e){if(e<dC)throw Error(`expected non-negative bigint, got `+e);let t;for(t=0;e>dC;e>>=fC,t+=1);return t}var OC=e=>(fC<<BigInt(e))-fC;function kC(e,t={},n={}){if(Object.prototype.toString.call(e)!==`[object Object]`)throw TypeError(`expected valid options object`);function r(t,n,r){if(!r&&n!==`function`&&!Object.hasOwn(e,t))throw TypeError(`param "${t}" is invalid: expected own property`);let i=e[t];if(r&&i===void 0)return;let a=typeof i;if(a!==n||i===null)throw TypeError(`param "${t}" is invalid: expected ${n}, got ${a}`)}let i=(e,t)=>Object.entries(e).forEach(([e,n])=>r(e,n,t));i(t,!1),i(n,!0)}var AC=BigInt(0),Q=BigInt(1),jC=BigInt(2),MC=BigInt(3),NC=BigInt(4),PC=BigInt(5),FC=BigInt(7),IC=BigInt(8),LC=BigInt(9),RC=BigInt(16);function zC(e,t){if(t<=AC)throw Error(`mod: expected positive modulus, got `+t);let n=e%t;return n>=AC?n:t+n}function BC(e,t,n){if(t<AC)throw Error(`pow2: expected non-negative exponent, got `+t);let r=e;for(;t-->AC;)r*=r,r%=n;return r}function VC(e,t){if(e===AC)throw Error(`invert: expected non-zero number`);if(t<=AC)throw Error(`invert: expected positive modulus, got `+t);let n=zC(e,t),r=t,i=AC,a=Q,o=Q,s=AC;for(;n!==AC;){let e=r/n,t=r-n*e,c=i-o*e,l=a-s*e;r=n,n=t,i=o,a=s,o=c,s=l}if(r!==Q)throw Error(`invert: does not exist`);return zC(i,t)}function HC(e,t,n){let r=e;if(!r.eql(r.sqr(t),n))throw Error(`Cannot find square root`)}function UC(e,t){let n=e,r=(n.ORDER+Q)/NC,i=n.pow(t,r);return HC(n,i,t),i}function WC(e,t){let n=e,r=(n.ORDER-PC)/IC,i=n.mul(t,jC),a=n.pow(i,r),o=n.mul(t,a),s=n.mul(n.mul(o,jC),a),c=n.mul(o,n.sub(s,n.ONE));return HC(n,c,t),c}function GC(e){let t=nw(e),n=KC(e),r=n(t,t.neg(t.ONE)),i=n(t,r),a=n(t,t.neg(r)),o=(e+FC)/RC;return((e,t)=>{let n=e,s=n.pow(t,o),c=n.mul(s,r),l=n.mul(s,i),u=n.mul(s,a),d=n.eql(n.sqr(c),t),f=n.eql(n.sqr(l),t);s=n.cmov(s,c,d),c=n.cmov(u,l,f);let p=n.eql(n.sqr(c),t),m=n.cmov(s,c,p);return HC(n,m,t),m})}function KC(e){if(e<MC)throw Error(`sqrt is not defined for small field`);let t=e-Q,n=0;for(;t%jC===AC;)t/=jC,n++;let r=jC,i=nw(e);for(;QC(i,r)===1;)if(r++>1e3)throw Error(`Cannot find square root: probably non-prime P`);if(n===1)return UC;let a=i.pow(r,t),o=(t+Q)/jC;return function(e,r){let i=e;if(i.is0(r))return r;if(QC(i,r)!==1)throw Error(`Cannot find square root`);let s=n,c=i.mul(i.ONE,a),l=i.pow(r,t),u=i.pow(r,o);for(;!i.eql(l,i.ONE);){if(i.is0(l))return i.ZERO;let e=1,t=i.sqr(l);for(;!i.eql(t,i.ONE);)if(e++,t=i.sqr(t),e===s)throw Error(`Cannot find square root`);let n=Q<<BigInt(s-e-1),r=i.pow(c,n);s=e,c=i.sqr(r),l=i.mul(l,c),u=i.mul(u,r)}return u}}function qC(e){return e%NC===MC?UC:e%IC===PC?WC:e%RC===LC?GC(e):KC(e)}var JC=[`create`,`isValid`,`is0`,`neg`,`inv`,`sqrt`,`sqr`,`eql`,`add`,`sub`,`mul`,`pow`,`div`,`addN`,`subN`,`mulN`,`sqrN`];function YC(e){if(kC(e,JC.reduce((e,t)=>(e[t]=`function`,e),{ORDER:`bigint`,BYTES:`number`,BITS:`number`})),hC(e.BYTES,`BYTES`),hC(e.BITS,`BITS`),e.BYTES<1||e.BITS<1)throw Error(`invalid field: expected BYTES/BITS > 0`);if(e.ORDER<=Q)throw Error(`invalid field: expected ORDER > 1, got `+e.ORDER);return e}function XC(e,t,n){let r=e;if(n<AC)throw Error(`invalid exponent, negatives unsupported`);if(n===AC)return r.ONE;if(n===Q)return t;let i=r.ONE,a=t;for(;n>AC;)n&Q&&(i=r.mul(i,a)),a=r.sqr(a),n>>=Q;return i}function ZC(e,t,n=!1){let r=e,i=Array(t.length).fill(n?r.ZERO:void 0),a=t.reduce((e,t,n)=>r.is0(t)?e:(i[n]=e,r.mul(e,t)),r.ONE),o=r.inv(a);return t.reduceRight((e,t,n)=>r.is0(t)?e:(i[n]=r.mul(e,i[n]),r.mul(e,t)),o),i}function QC(e,t){let n=e,r=(n.ORDER-Q)/jC,i=n.pow(t,r),a=n.eql(i,n.ONE),o=n.eql(i,n.ZERO),s=n.eql(i,n.neg(n.ONE));if(!a&&!o&&!s)throw Error(`invalid Legendre symbol result`);return a?1:o?0:-1}function $C(e,t){if(t!==void 0&&sC(t),e<=AC)throw Error(`invalid n length: expected positive n, got `+e);if(t!==void 0&&t<1)throw Error(`invalid n length: expected positive bit length, got `+t);let n=DC(e);if(t!==void 0&&t<n)throw Error(`invalid n length: expected bit length (${n}) >= n.length (${t})`);let r=t===void 0?n:t;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}var ew=new WeakMap,tw=class{ORDER;BITS;BYTES;isLE;ZERO=AC;ONE=Q;_lengths;_mod;constructor(e,t={}){if(e<=Q)throw Error(`invalid field: expected ORDER > 1, got `+e);let n;this.isLE=!1,typeof t==`object`&&t&&(typeof t.BITS==`number`&&(n=t.BITS),typeof t.sqrt==`function`&&Object.defineProperty(this,"sqrt",{value:t.sqrt,enumerable:!0}),typeof t.isLE==`boolean`&&(this.isLE=t.isLE),t.allowedLengths&&(this._lengths=Object.freeze(t.allowedLengths.slice())),typeof t.modFromBytes==`boolean`&&(this._mod=t.modFromBytes));let{nBitLength:r,nByteLength:i}=$C(e,n);if(i>2048)throw Error(`invalid field: expected ORDER of <= 2048 bytes`);this.ORDER=e,this.BITS=r,this.BYTES=i,Object.freeze(this)}create(e){return zC(e,this.ORDER)}isValid(e){if(typeof e!=`bigint`)throw TypeError(`invalid field element: expected bigint, got `+typeof e);return AC<=e&&e<this.ORDER}is0(e){return e===AC}isValidNot0(e){return!this.is0(e)&&this.isValid(e)}isOdd(e){return(e&Q)===Q}neg(e){return zC(-e,this.ORDER)}eql(e,t){return e===t}sqr(e){return zC(e*e,this.ORDER)}add(e,t){return zC(e+t,this.ORDER)}sub(e,t){return zC(e-t,this.ORDER)}mul(e,t){return zC(e*t,this.ORDER)}pow(e,t){return XC(this,e,t)}div(e,t){return zC(e*VC(t,this.ORDER),this.ORDER)}sqrN(e){return e*e}addN(e,t){return e+t}subN(e,t){return e-t}mulN(e,t){return e*t}inv(e){return VC(e,this.ORDER)}sqrt(e){let t=ew.get(this);return t||ew.set(this,t=qC(this.ORDER)),t(this,e)}toBytes(e){return this.isLE?xC(e,this.BYTES):bC(e,this.BYTES)}fromBytes(e,t=!1){oC(e);let{_lengths:n,BYTES:r,isLE:i,ORDER:a,_mod:o}=this;if(n){if(e.length<1||!n.includes(e.length)||e.length>r)throw Error(`Field.fromBytes: expected `+n+` bytes, got `+e.length);let t=new Uint8Array(r);t.set(e,i?0:t.length-e.length),e=t}if(e.length!==r)throw Error(`Field.fromBytes: expected `+r+` bytes, got `+e.length);let s=i?yC(e):vC(e);if(o&&(s=zC(s,a)),!t&&!this.isValid(s))throw Error(`invalid field element: outside of range 0..ORDER`);return s}invertBatch(e){return ZC(this,e)}cmov(e,t,n){return pC(n,`condition`),n?t:e}};Object.freeze(tw.prototype);function nw(e,t={}){return new tw(e,t)}function rw(e){if(typeof e!=`bigint`)throw Error(`field order must be bigint`);if(e<=Q)throw Error(`field order must be greater than 1`);let t=DC(e-Q);return Math.ceil(t/8)}function iw(e){let t=rw(e);return t+Math.ceil(t/2)}function aw(e,t,n=!1){oC(e);let r=e.length,i=rw(t),a=Math.max(iw(t),16);if(r<a||r>1024)throw Error(`expected `+a+`-1024 bytes of input, got `+r);let o=zC(n?yC(e):vC(e),t-Q)+Q;return n?xC(o,i):bC(o,i)}var ow=BigInt(0),sw=BigInt(1);function cw(e,t){let n=t.negate();return e?n:t}function lw(e,t){let n=ZC(e.Fp,t.map(e=>e.Z));return t.map((t,r)=>e.fromAffine(t.toAffine(n[r])))}function uw(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error(`invalid window size, expected [1..`+t+`], got W=`+e)}function dw(e,t){uw(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e;return{windows:n,windowSize:r,mask:OC(e),maxNumber:i,shiftBy:BigInt(e)}}function fw(e,t,n){let{windowSize:r,mask:i,maxNumber:a,shiftBy:o}=n,s=Number(e&i),c=e>>o;s>r&&(s-=a,c+=sw);let l=t*r,u=l+Math.abs(s)-1,d=s===0,f=s<0,p=t%2!=0;return{nextN:c,offset:u,isZero:d,isNeg:f,isNegF:p,offsetF:l}}var pw=new WeakMap,mw=new WeakMap;function hw(e){return mw.get(e)||1}function gw(e){if(e!==ow)throw Error(`invalid wNAF`)}var _w=class{BASE;ZERO;Fn;bits;constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,n=this.ZERO){let r=e;for(;t>ow;)t&sw&&(n=n.add(r)),r=r.double(),t>>=sw;return n}precomputeWindow(e,t){let{windows:n,windowSize:r}=dw(t,this.bits),i=[],a=e,o=a;for(let e=0;e<n;e++){o=a,i.push(o);for(let e=1;e<r;e++)o=o.add(a),i.push(o);a=o.double()}return i}wNAF(e,t,n){if(!this.Fn.isValid(n))throw Error(`invalid scalar`);let r=this.ZERO,i=this.BASE,a=dw(e,this.bits);for(let e=0;e<a.windows;e++){let{nextN:o,offset:s,isZero:c,isNeg:l,isNegF:u,offsetF:d}=fw(n,e,a);n=o,c?i=i.add(cw(u,t[d])):r=r.add(cw(l,t[s]))}return gw(n),{p:r,f:i}}wNAFUnsafe(e,t,n,r=this.ZERO){let i=dw(e,this.bits);for(let e=0;e<i.windows&&n!==ow;e++){let{nextN:a,offset:o,isZero:s,isNeg:c}=fw(n,e,i);if(n=a,!s){let e=t[o];r=r.add(c?e.negate():e)}}return gw(n),r}getPrecomputes(e,t,n){let r=pw.get(t);return r||(r=this.precomputeWindow(t,e),e!==1&&(typeof n==`function`&&(r=n(r)),pw.set(t,r))),r}cached(e,t,n){let r=hw(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)}unsafe(e,t,n,r){let i=hw(e);return i===1?this._unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)}createCache(e,t){uw(t,this.bits),mw.set(e,t),pw.delete(e)}hasCache(e){return hw(e)!==1}};function vw(e,t,n,r){let i=t,a=e.ZERO,o=e.ZERO;for(;n>ow||r>ow;)n&sw&&(a=a.add(i)),r&sw&&(o=o.add(i)),i=i.double(),n>>=sw,r>>=sw;return{p1:a,p2:o}}function yw(e,t,n){if(t){if(t.ORDER!==e)throw Error(`Field.ORDER must match order: Fp == p, Fn == n`);return YC(t),t}else return nw(e,{isLE:n})}function bw(e,t,n={},r){if(r===void 0&&(r=e===`edwards`),!t||typeof t!=`object`)throw Error(`expected valid ${e} CURVE object`);for(let e of[`p`,`n`,`h`]){let n=t[e];if(!(typeof n==`bigint`&&n>ow))throw Error(`CURVE.${e} must be positive bigint`)}let i=yw(t.p,n.Fp,r),a=yw(t.n,n.Fn,r),o=[`Gx`,`Gy`,`a`,e===`weierstrass`?`b`:`d`];for(let e of o)if(!i.isValid(t[e]))throw Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:i,Fn:a}}function xw(e,t){return function(n){let r=e(n);return{secretKey:r,publicKey:t(r)}}}var Sw=(e,t)=>(e+(e>=0?t:-t)/Dw)/t;function Cw(e,t,n){EC(`scalar`,e,Tw,n);let[[r,i],[a,o]]=t,s=Sw(o*e,n),c=Sw(-i*e,n),l=e-s*r-c*a,u=-s*i-c*o,d=l<Tw,f=u<Tw;d&&(l=-l),f&&(u=-u);let p=OC(Math.ceil(DC(n)/2))+Ew;if(l<Tw||l>=p||u<Tw||u>=p)throw Error(`splitScalar (endomorphism): failed for k`);return{k1neg:d,k1:l,k2neg:f,k2:u}}var ww={Err:class extends Error{constructor(e=``){super(e)}},_tlv:{encode:(e,t)=>{let{Err:n}=ww;if(hC(e,`tag`),e<0||e>255)throw new n(`tlv.encode: wrong tag`);if(typeof t!=`string`)throw TypeError(`"data" expected string, got type=`+typeof t);if(t.length&1)throw new n(`tlv.encode: unpadded data`);let r=t.length/2,i=gC(r);if(i.length/2&128)throw new n(`tlv.encode: long form length too big`);let a=r>127?gC(i.length/2|128):``;return gC(e)+a+i+t},decode(e,t){let{Err:n}=ww;t=oC(t,void 0,`DER data`);let r=0;if(e<0||e>255)throw new n(`tlv.encode: wrong tag`);if(t.length<2||t[r++]!==e)throw new n(`tlv.decode: wrong tlv`);let i=t[r++],a=!!(i&128),o=0;if(!a)o=i;else{let e=i&127;if(!e)throw new n(`tlv.decode(long): indefinite length not supported`);if(e>4)throw new n(`tlv.decode(long): byte length is too big`);let a=t.subarray(r,r+e);if(a.length!==e)throw new n(`tlv.decode: length bytes not complete`);if(a[0]===0)throw new n(`tlv.decode(long): zero leftmost byte`);for(let e of a)o=o<<8|e;if(r+=e,o<128)throw new n(`tlv.decode(long): not minimal encoding`)}let s=t.subarray(r,r+o);if(s.length!==o)throw new n(`tlv.decode: wrong value length`);return{v:s,l:t.subarray(r+o)}}},_int:{encode(e){let{Err:t}=ww;if(mC(e),e<Tw)throw new t(`integer: negative integers are not allowed`);let n=gC(e);if(Number.parseInt(n[0],16)&8&&(n=`00`+n),n.length&1)throw new t(`unexpected DER parsing assertion: unpadded hex`);return n},decode(e){let{Err:t}=ww;if(e.length<1)throw new t(`invalid signature integer: empty`);if(e[0]&128)throw new t(`invalid signature integer: negative`);if(e.length>1&&e[0]===0&&!(e[1]&128))throw new t(`invalid signature integer: unnecessary leading zero`);return vC(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=ww,i=oC(e,void 0,`signature`),{v:a,l:o}=r.decode(48,i);if(o.length)throw new t(`invalid signature: left bytes after parsing`);let{v:s,l:c}=r.decode(2,a),{v:l,l:u}=r.decode(2,c);if(u.length)throw new t(`invalid signature: left bytes after parsing`);return{r:n.decode(s),s:n.decode(l)}},hexFromSig(e){let{_tlv:t,_int:n}=ww,r=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,r)}};Object.freeze(ww._tlv),Object.freeze(ww._int),Object.freeze(ww);var Tw=BigInt(0),Ew=BigInt(1),Dw=BigInt(2),Ow=BigInt(3),kw=BigInt(4);function Aw(e,t={}){let n=bw(`weierstrass`,e,t),r=n.Fp,i=n.Fn,a=n.CURVE,{h:o,n:s}=a;kC(t,{},{allowInfinityPoint:`boolean`,clearCofactor:`function`,isTorsionFree:`function`,fromBytes:`function`,toBytes:`function`,endo:`object`});let{endo:c,allowInfinityPoint:l}=t;if(c&&(!r.is0(a.a)||typeof c.beta!=`bigint`||!Array.isArray(c.basises)))throw Error(`invalid endo: expected "beta": bigint and "basises": array`);let u=Mw(r,i);function d(){if(!r.isOdd)throw Error(`compression is not supported: Field does not have .isOdd()`)}function f(e,t,n){if(l&&t.is0())return Uint8Array.of(0);let{x:i,y:a}=t.toAffine(),o=r.toBytes(i);return pC(n,`isCompressed`),n?(d(),lC(jw(!r.isOdd(a)),o)):lC(Uint8Array.of(4),o,r.toBytes(a))}function p(e){oC(e,void 0,`Point`);let{publicKey:t,publicKeyUncompressed:n}=u,i=e.length,a=e[0],o=e.subarray(1);if(l&&i===1&&a===0)return{x:r.ZERO,y:r.ZERO};if(i===t&&(a===2||a===3)){let e=r.fromBytes(o);if(!r.isValid(e))throw Error(`bad point: is not on curve, wrong x`);let t=g(e),n;try{n=r.sqrt(t)}catch(e){let t=e instanceof Error?`: `+e.message:``;throw Error(`bad point: is not on curve, sqrt error`+t)}d();let i=r.isOdd(n);return(a&1)==1!==i&&(n=r.neg(n)),{x:e,y:n}}else if(i===n&&a===4){let e=r.BYTES,t=r.fromBytes(o.subarray(0,e)),n=r.fromBytes(o.subarray(e,e*2));if(!_(t,n))throw Error(`bad point: is not on curve`);return{x:t,y:n}}else throw Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${n}`)}let m=t.toBytes===void 0?f:t.toBytes,h=t.fromBytes===void 0?p:t.fromBytes;function g(e){let t=r.sqr(e),n=r.mul(t,e);return r.add(r.add(n,r.mul(e,a.a)),a.b)}function _(e,t){let n=r.sqr(t),i=g(e);return r.eql(n,i)}if(!_(a.Gx,a.Gy))throw Error(`bad curve params: generator point`);let v=r.mul(r.pow(a.a,Ow),kw),y=r.mul(r.sqr(a.b),BigInt(27));if(r.is0(r.add(v,y)))throw Error(`bad curve params: a or b`);function b(e,t,n=!1){if(!r.isValid(t)||n&&r.is0(t))throw Error(`bad point coordinate ${e}`);return t}function x(e){if(!(e instanceof w))throw Error(`Weierstrass Point expected`)}function S(e){if(!c||!c.basises)throw Error(`no endo`);return Cw(e,c.basises,i.ORDER)}function C(e,t,n,i,a){return n=new w(r.mul(n.X,e),n.Y,n.Z),t=cw(i,t),n=cw(a,n),t.add(n)}class w{static BASE=new w(a.Gx,a.Gy,r.ONE);static ZERO=new w(r.ZERO,r.ONE,r.ZERO);static Fp=r;static Fn=i;X;Y;Z;constructor(e,t,n){this.X=b(`x`,e),this.Y=b(`y`,t,!0),this.Z=b(`z`,n),Object.freeze(this)}static CURVE(){return a}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error(`invalid affine point`);if(e instanceof w)throw Error(`projective point not allowed`);return r.is0(t)&&r.is0(n)?w.ZERO:new w(t,n,r.ONE)}static fromBytes(e){let t=w.fromAffine(h(oC(e,void 0,`point`)));return t.assertValidity(),t}static fromHex(e){return w.fromBytes(uC(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return E.createCache(this,e),t||this.multiply(Ow),this}assertValidity(){let e=this;if(e.is0()){if(t.allowInfinityPoint&&r.is0(e.X)&&r.eql(e.Y,r.ONE)&&r.is0(e.Z))return;throw Error(`bad point: ZERO`)}let{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw Error(`bad point: x or y not field elements`);if(!_(n,i))throw Error(`bad point: equation left != right`);if(!e.isTorsionFree())throw Error(`bad point: not in prime-order subgroup`)}hasEvenY(){let{y:e}=this.toAffine();if(!r.isOdd)throw Error(`Field doesn't support isOdd`);return!r.isOdd(e)}equals(e){x(e);let{X:t,Y:n,Z:i}=this,{X:a,Y:o,Z:s}=e,c=r.eql(r.mul(t,s),r.mul(a,i)),l=r.eql(r.mul(n,s),r.mul(o,i));return c&&l}negate(){return new w(this.X,r.neg(this.Y),this.Z)}double(){let{a:e,b:t}=a,n=r.mul(t,Ow),{X:i,Y:o,Z:s}=this,c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(i,i),f=r.mul(o,o),p=r.mul(s,s),m=r.mul(i,o);return m=r.add(m,m),u=r.mul(i,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(n,p),l=r.add(c,l),c=r.sub(f,l),l=r.add(f,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(n,u),p=r.mul(e,p),m=r.sub(d,p),m=r.mul(e,m),m=r.add(m,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,m),l=r.add(l,d),p=r.mul(o,s),p=r.add(p,p),d=r.mul(p,m),c=r.sub(c,d),u=r.mul(p,f),u=r.add(u,u),u=r.add(u,u),new w(c,l,u)}add(e){x(e);let{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:c}=e,l=r.ZERO,u=r.ZERO,d=r.ZERO,f=a.a,p=r.mul(a.b,Ow),m=r.mul(t,o),h=r.mul(n,s),g=r.mul(i,c),_=r.add(t,n),v=r.add(o,s);_=r.mul(_,v),v=r.add(m,h),_=r.sub(_,v),v=r.add(t,i);let y=r.add(o,c);return v=r.mul(v,y),y=r.add(m,g),v=r.sub(v,y),y=r.add(n,i),l=r.add(s,c),y=r.mul(y,l),l=r.add(h,g),y=r.sub(y,l),d=r.mul(f,v),l=r.mul(p,g),d=r.add(l,d),l=r.sub(h,d),d=r.add(h,d),u=r.mul(l,d),h=r.add(m,m),h=r.add(h,m),g=r.mul(f,g),v=r.mul(p,v),h=r.add(h,g),g=r.sub(m,g),g=r.mul(f,g),v=r.add(v,g),m=r.mul(h,v),u=r.add(u,m),m=r.mul(y,v),l=r.mul(_,l),l=r.sub(l,m),m=r.mul(_,h),d=r.mul(y,d),d=r.add(d,m),new w(l,u,d)}subtract(e){return x(e),this.add(e.negate())}is0(){return this.equals(w.ZERO)}multiply(e){let{endo:n}=t;if(!i.isValidNot0(e))throw RangeError(`invalid scalar: out of range`);let r,a,o=e=>E.cached(this,e,e=>lw(w,e));if(n){let{k1neg:t,k1:i,k2neg:s,k2:c}=S(e),{p:l,f:u}=o(i),{p:d,f}=o(c);a=u.add(f),r=C(n.beta,l,d,t,s)}else{let{p:t,f:n}=o(e);r=t,a=n}return lw(w,[r,a])[0]}multiplyUnsafe(e){let{endo:n}=t,r=this,a=e;if(!i.isValid(a))throw RangeError(`invalid scalar: out of range`);if(a===Tw||r.is0())return w.ZERO;if(a===Ew)return r;if(E.hasCache(this))return this.multiply(a);if(n){let{k1neg:e,k1:t,k2neg:i,k2:o}=S(a),{p1:s,p2:c}=vw(w,r,t,o);return C(n.beta,s,c,e,i)}else return E.unsafe(r,a)}toAffine(e){let t=this,n=e,{X:i,Y:a,Z:o}=t;if(r.eql(o,r.ONE))return{x:i,y:a};let s=t.is0();n??=s?r.ONE:r.inv(o);let c=r.mul(i,n),l=r.mul(a,n),u=r.mul(o,n);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw Error(`invZ was invalid`);return{x:c,y:l}}isTorsionFree(){let{isTorsionFree:e}=t;return o===Ew?!0:e?e(w,this):E.unsafe(this,s).is0()}clearCofactor(){let{clearCofactor:e}=t;return o===Ew?this:e?e(w,this):this.multiplyUnsafe(o)}isSmallOrder(){return o===Ew?this.is0():this.clearCofactor().is0()}toBytes(e=!0){return pC(e,`isCompressed`),this.assertValidity(),m(w,this,e)}toHex(e=!0){return cC(this.toBytes(e))}toString(){return`<Point ${this.is0()?`ZERO`:this.toHex()}>`}}let T=i.BITS,E=new _w(w,t.endo?Math.ceil(T/2):T);return T>=8&&w.BASE.precompute(8),Object.freeze(w.prototype),Object.freeze(w),w}function jw(e){return Uint8Array.of(e?2:3)}function Mw(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}var Nw={p:BigInt(`0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f`),n:BigInt(`0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141`),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt(`0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798`),Gy:BigInt(`0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8`)},Pw={beta:BigInt(`0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee`),basises:[[BigInt(`0x3086d221a7d46bcde86c90e49284eb15`),-BigInt(`0xe4437ed6010e88286f547fa90abfe4c3`)],[BigInt(`0x114ca50f7a8e2f3f657c1108d9d44cfd8`),BigInt(`0x3086d221a7d46bcde86c90e49284eb15`)]]},Fw=BigInt(0),Iw=BigInt(2);function Lw(e){let t=Nw.p,n=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),o=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=BC(BC(BC(u,n,t)*u%t,n,t)*u%t,Iw,t)*l%t,f=BC(d,i,t)*d%t,p=BC(f,a,t)*f%t,m=BC(p,s,t)*p%t,h=BC(BC(BC(BC(BC(BC(m,c,t)*m%t,s,t)*p%t,n,t)*u%t,o,t)*f%t,r,t)*l%t,Iw,t);if(!Rw.eql(Rw.sqr(h),e))throw Error(`Cannot find square root`);return h}var Rw=nw(Nw.p,{sqrt:Lw}),zw=Aw(Nw,{Fp:Rw,endo:Pw}),Bw={};function Vw(e,...t){let n=Bw[e];if(n===void 0){let t=aC(CC(e));n=lC(t,t),Bw[e]=n}return aC(lC(n,...t))}var Hw=e=>e.toBytes(!0).slice(1),Uw=e=>e%Iw===Fw;function Ww(e){let{Fn:t,BASE:n}=zw,r=t.fromBytes(e),i=n.multiply(r);return{scalar:Uw(i.y)?r:t.neg(r),bytes:Hw(i)}}function Gw(e){let t=Rw;if(!t.isValidNot0(e))throw Error(`invalid x: Fail if x ≥ p`);let n=t.create(e*e),r=t.create(n*e+BigInt(7)),i=t.sqrt(r);Uw(i)||(i=t.neg(i));let a=zw.fromAffine({x:e,y:i});return a.assertValidity(),a}var Kw=vC;function qw(...e){return zw.Fn.create(Kw(Vw(`BIP0340/challenge`,...e)))}function Jw(e){return Ww(e).bytes}function Yw(e,t,n=YS(32)){let{Fn:r,BASE:i}=zw,a=oC(e,void 0,`message`),{bytes:o,scalar:s}=Ww(t),c=oC(n,32,`auxRand`),l=Vw(`BIP0340/nonce`,r.toBytes(s^Kw(Vw(`BIP0340/aux`,c))),o,a),u=r.create(Kw(l));if(u===0n)throw Error(`sign failed: k is zero`);let d=i.multiply(u),f=Uw(d.y)?u:r.neg(u),p=Hw(d),m=qw(p,o,a),h=new Uint8Array(64);if(h.set(p,0),h.set(r.toBytes(r.create(f+m*s)),32),!Xw(h,a,o))throw Error(`sign: Invalid signature produced`);return h}function Xw(e,t,n){let{Fp:r,Fn:i,BASE:a}=zw,o=oC(e,64,`signature`),s=oC(t,void 0,`message`),c=oC(n,32,`publicKey`);try{let e=Gw(Kw(c)),t=Kw(o.subarray(0,32));if(!r.isValidNot0(t))return!1;let n=Kw(o.subarray(32,64));if(!i.isValidNot0(n))return!1;let l=qw(i.toBytes(t),Hw(e),s),u=a.multiplyUnsafe(n).add(e.multiplyUnsafe(i.neg(l))),{x:d,y:f}=u.toAffine();return!(u.is0()||!Uw(f)||d!==t)}catch{return!1}}var Zw=(()=>{let e=e=>(e=e===void 0?YS(48):e,aw(e,Nw.n));return Object.freeze({keygen:xw(e,Jw),getPublicKey:Jw,sign:Yw,verify:Xw,Point:zw,utils:Object.freeze({randomSecretKey:e,taggedHash:Vw,lift_x:Gw,pointToBytes:Hw}),lengths:Object.freeze({secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48})})})();new TextDecoder(`utf-8`);var Qw=new TextEncoder,$w=`https://w3id.org/security#`;function eT(){return{id:``,created:``,dateDeleted:``,content:``,maker:``,sig:``}}function tT(e){return JSON.stringify(e)}function nT(e){return US(aC(Qw.encode(tT(e))))}function rT(e,t,n){return Zw.verify(KS(e),KS(nT(t)),KS(n))}function iT(e,t){return US(Zw.sign(KS(nT(e)),KS(t)))}var aT=e=>{let t=n.store.any(e,I.space(`preferencesFile`),null,e.doc())?.value;if(t=t?.split(`/`).slice(0,-2).join(`/`),!t)throw Error(`prefererencesFile is expected to exist in ${e}`);return t},oT=e=>{let t;try{t=`${aT(e)}/profile/keys/publicKey.ttl`}catch(e){Y_(e)}return t},sT=e=>{let t;try{t=`${aT(e)}/settings/keys/privateKey.ttl`}catch(e){Y_(e)}return t};async function cT(e,t){return await uT(e,t,`publicKey`)}async function lT(e,t){return await uT(e,t,`privateKey`)}async function uT(e,t,r){try{return await n.store.fetcher.load(t),n.store.any(e,I.solid(r))?.value}catch(e){if(e.response.status===404){V(`createIfNotExists: doc does NOT exist, will create... `+t);try{await n.store.fetcher.webOperation(`PUT`,t,{data:``,contentType:`text/turtle`})}catch(e){throw V(`createIfNotExists doc FAILED: `+t+`: `+e),e}delete n.store.fetcher.requested[t];return}else throw V(`createIfNotExists doc FAILED: `+t+`: `+e),e}}async function dT(e,t){await n.store.fetcher.load(e);let r=n.store.any(n.store.sym(e),n.store.sym(`http://www.iana.org/assignments/link-relations/acl`));if(!r)throw Error(`Key ACL doc not found!`);try{await n.store.fetcher.webOperation(`PUT`,r.value,{data:t,contentType:`text/turtle`})}catch(e){if(e?.response?.status!==404)throw Error(e);V(`delete `+r.value+` `+e.response.status)}}var fT=e=>`
2035
+ It can be anywhere in solid world - this URI is just an idea.`;let _=c.appendChild(e.createElement(`input`));_.setAttribute(`type`,`text`),_.setAttribute(`style`,U.textInputStyle),_.size=80,_.label=`base URL`,_.autocomplete=`on`,f&&(_.value=f),r.baseField=_,c.appendChild(e.createElement(`br`));let v=c.appendChild(e.createElement(`button`));v.setAttribute(`style`,U.buttonStyle),v.textContent=`Start new ${a} at this URI`,v.addEventListener(`click`,function(e){let t=_.value.replace(` `,`%20`);t.slice(-1)!==`/`&&(t+=`/`),i(null,t)}),p=p.filter(function(e){return!n.solidLogicSingleton.store.holds(e,R.rdf(`type`),R.space(`MasterWorkspace`))});let y,b,x,S,C,w,T,E=`height: 3em; margin: 1em; padding: 1em white; border-radius: 0.3em;`,D=`${E}border: 0px;`;for(let t=0;t<p.length;t++){C=p[t],S=e.createElement(`tr`),t===0&&(y=e.createElement(`td`),y.setAttribute(`rowspan`,`${p.length}`),y.textContent=`Choose a workspace for this:`,y.setAttribute(`style`,`vertical-align:middle;`),S.appendChild(y)),b=e.createElement(`td`),w=n.solidLogicSingleton.store.anyValue(C,R.ui(`style`)),w||=`color: black ; background-color: ${`#${(function(e){return e.split(``).reduce(function(e,t){return e=(e<<5)-e+t.charCodeAt(0),e&e},0)}(C.uri)&16777215|12632256).toString(16)}`};`,b.setAttribute(`style`,D+w),S.target=C.uri;let r=n.solidLogicSingleton.store.any(C,R.rdfs(`label`));r||=C.uri.split(`/`).slice(-1)[0]||C.uri.split(`/`).slice(-2)[0],b.textContent=r||`???`,S.appendChild(b),t===0&&(x=e.createElement(`td`),x.setAttribute(`rowspan`,`${p.length}1`),x.setAttribute(`style`,`width:50%;`),S.appendChild(x)),h.appendChild(S),T=n.solidLogicSingleton.store.any(C,R.rdfs(`comment`)),T=T?T.value:`Use this workspace`,b.addEventListener(`click`,function(t){x.textContent=T?T.value:``,x.setAttribute(`style`,D+w);let n=e.createElement(`button`);n.textContent=`Continue`;let r=d(C);_.value=r,n.addEventListener(`click`,function(e){n.disabled=!0,i(C,r),n.textContent=`---->`},!0),x.appendChild(n)},!0)}let O=e.createElement(`tr`);b=e.createElement(`td`),b.setAttribute(`style`,E),b.textContent=`+ Make a new workspace`,b.addEventListener(`click`,o),O.appendChild(b),h.appendChild(O)}return YT(l).then(f).catch(e=>{c.appendChild(q(l.dom,e))}),c}function oE(e,t,n){let r=function(e,t){n(e,t)},i=e.createElement(`div`),a=e.createElement(`button`);return a.setAttribute(`type`,`button`),i.appendChild(a),a.innerHTML=`Make new ${t.noun}`,a.addEventListener(`click`,n=>{i.appendChild(aE(e,t,r))},!1),i.appendChild(a),i}async function sE(){try{let{me:e,preferencesFile:t,preferencesFileError:r}=await YT({});if(!t||r)throw Error(r);return n.solidLogicSingleton.store.each(e,R.rdf(`type`),null,t.doc())}catch(e){G(`Unable to fetch your preferences - this was the error: `,e)}return[]}async function cE(e){let t=await sE();return e.filter(e=>lE(e,t))}function lE(e,t){return(e.audience||[]).reduce((e,n)=>e&&!!t.find(e=>e.equals(n)),!0)}var uE=class{rootElement;barElement;isExpanded=!1;constructor(e){this.groupList=e,this.rootElement=e.controller.dom.createElement(`div`),this.barElement=e.controller.dom.createElement(`div`)}render(){return this.rootElement.innerHTML=``,this.rootElement.appendChild(this.renderAddButton()),this.rootElement.appendChild(this.barElement),this.rootElement}renderAddButton(){return X(this.groupList.controller.dom,`${J.iconBase}noun_34653_green.svg`,`Add ...`,()=>{this.toggleBar(),this.renderBar()})}renderBar(){this.barElement.innerHTML=``,this.isExpanded&&(this.barElement.appendChild(this.renderPersonButton()),this.barElement.appendChild(this.renderGroupButton()),this.barElement.appendChild(this.renderPublicButton()),this.barElement.appendChild(this.renderAuthenticatedAgentButton()),this.barElement.appendChild(this.renderBotButton()),this.barElement.appendChild(this.renderAppsButton()))}renderSimplifiedBar(e){Array.from(this.barElement.children).filter(t=>t!==e).forEach(e=>this.barElement.removeChild(e))}renderPersonButton(){return X(this.groupList.controller.dom,J.iconBase+EC[`vcard:Individual`],`Add Person`,e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(R.vcard(`Individual`),`person`).then(e=>this.addPerson(e)).then(()=>this.renderCleanup()).catch(e=>this.groupList.controller.renderStatus(e))})}renderGroupButton(){return X(this.groupList.controller.dom,J.iconBase+EC[`vcard:Group`],`Add Group`,e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(R.vcard(`Group`),`group`).then(e=>this.addGroup(e)).then(()=>this.renderCleanup()).catch(e=>this.groupList.controller.renderStatus(e))})}renderNameForm(e,t){return LC(this.groupList.controller.dom,this.groupList.store,this.barElement,R.vcard(`URI`),e,t)}renderPublicButton(){return X(this.groupList.controller.dom,J.iconBase+EC[`foaf:Agent`],`Add Everyone`,()=>this.addAgent(R.foaf(`Agent`).uri).then(()=>this.groupList.controller.renderTemporaryStatus(`Adding the general public to those who can read. Drag the globe to a different level to give them more access.`)).then(()=>this.renderCleanup()))}renderAuthenticatedAgentButton(){return X(this.groupList.controller.dom,`${J.iconBase}noun_99101.svg`,`Anyone logged In`,()=>this.addAgent(R.acl(`AuthenticatedAgent`).uri).then(()=>this.groupList.controller.renderTemporaryStatus(`Adding anyone logged in to those who can read. Drag the ID icon to a different level to give them more access.`)).then(()=>this.renderCleanup()))}renderBotButton(){return X(this.groupList.controller.dom,J.iconBase+`noun_Robot_849764.svg`,`A Software Agent (bot)`,e=>{this.renderSimplifiedBar(e.target),this.renderNameForm(R.schema(`Application`),`bot`).then(e=>this.addBot(e)).then(()=>this.renderCleanup())})}renderAppsButton(){return X(this.groupList.controller.dom,`${J.iconBase}noun_15177.svg`,`A Web App (origin)`,e=>{this.renderSimplifiedBar(e.target);let t={div:this.barElement,dom:this.groupList.controller.dom},n=this.renderAppsTable(t).catch(e=>this.groupList.controller.renderStatus(e));this.renderAppsView();let r=this.renderNameForm(R.schema(`WebApplication`),`webapp domain`).then(e=>this.getOriginFromName(e));Promise.race([n,r]).then(e=>{e&&this.groupList.addNewURI(e)}).then(()=>this.renderCleanup())})}renderAppsView(){let e=this.groupList.controller.context.session.paneRegistry.byName(`trustedApplications`);if(e){let t=e.render(null,this.groupList.controller.context);t.setAttribute(`style`,U.trustedAppController);let n=FC(this.groupList.controller.dom,()=>this.renderCleanup());n.setAttribute(`style`,U.trustedAppCancelButton),t.insertBefore(n,t.firstChild),this.barElement.appendChild(t)}}async renderAppsTable(e){await XT(e);let t=this.groupList.store.each(e.me,R.acl(`trustedApp`)),n=t.flatMap(e=>this.groupList.store.each(e,R.acl(`origin`)));return this.barElement.appendChild(this.groupList.controller.dom.createElement(`p`)).textContent=`You have ${n.length} selected web apps.`,new Promise((e,n)=>{let r=this.barElement.appendChild(this.groupList.controller.dom.createElement(`table`));r.setAttribute(`style`,U.trustedAppAddApplicationsTable),t.forEach(t=>{let i=this.groupList.store.any(t,R.acl(`origin`));i||n(Error(`Unable to pick app: ${t.value}`));let a=RC(this.groupList.controller.dom,R.acl(`origin`),i,{}),o=this.groupList.controller.dom.createElement(`table`),s=o.appendChild(this.groupList.controller.dom.createElement(`tr`));s.appendChild(this.groupList.controller.dom.createElement(`td`)).appendChild(a);let c=s.appendChild(this.groupList.controller.dom.createElement(`td`));c.textContent=`Give access to ${this.groupList.controller.noun} ${V(this.groupList.controller.subject)}?`,s.appendChild(this.groupList.controller.dom.createElement(`td`)).appendChild(IC(this.groupList.controller.dom,()=>e(i.value))),r.appendChild(o)})})}renderCleanup(){this.renderBar(),this.groupList.render()}async addPerson(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(Error(`Not a http URI`));W(`Adding to ACL person: ${e}`),await this.groupList.addNewURI(e),this.toggleBar()}async addGroup(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(Error(`Not a http URI`));W(`Adding to ACL group: `+e),await this.groupList.addNewURI(e),this.toggleBar()}async addAgent(e){await this.groupList.addNewURI(e),this.toggleBar()}async addBot(e){if(!e)return this.toggleBar();if(!e.match(/^https?:/i))return Promise.reject(Error(`Not a http URI`));W(`Adding to ACL bot: `+e),await this.groupList.addNewURI(e),this.toggleBar()}async getOriginFromName(e){if(!e)return Promise.resolve();if(!e.match(/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i))return Promise.reject(Error(`Not a domain name`));let t=`https://`+e;return W(`Adding to ACL origin: `+t),this.toggleBar(),t}toggleBar(){this.isExpanded=!this.isExpanded}},dE=R.acl,fE={13:`Owners`,9:`Owners (write locked)`,5:`Editors`,3:`Posters`,2:`Submitters`,1:`Viewers`},pE={13:!0,5:!0,3:!0,2:!0,1:!0},mE={13:`can read, write, and control sharing.`,9:`can read and control sharing, currently write-locked.`,5:`can read and change information`,3:`can add new information, and read but not change existing information`,2:`can add new information but not read any`,1:`can read but not change information`},hE=class{defaults;byCombo;aclMap;addAgentButton;rootElement;_store;constructor(e,t,n,r,i={}){this.doc=e,this.aclDoc=t,this.controller=n,this._options=i,this.defaults=this._options.defaults||!1,this._store=r,this.aclMap=mS(e,t,r,this.defaults),this.byCombo=vS(this.aclMap),this.addAgentButton=new uE(this),this.rootElement=this.controller.dom.createElement(`div`),this.rootElement.setAttribute(`style`,U.accessGroupList)}get store(){return this._store}set store(e){this._store=e,this.aclMap=mS(this.doc,this.aclDoc,e,this.defaults),this.byCombo=vS(this.aclMap)}render(){return this.rootElement.innerHTML=``,this.renderGroups().forEach(e=>this.rootElement.appendChild(e)),this.controller.isEditable&&this.rootElement.appendChild(this.addAgentButton.render()),this.rootElement}renderGroups(){let e=[];for(let t=15;t>0;t--){let n=gE(t);(this.controller.isEditable&&pE[t]||this.byCombo[n])&&e.push(this.renderGroup(t,n))}return e}renderGroup(e,t){let n=this.controller.dom.createElement(`div`);return n.setAttribute(`style`,U.accessGroupListItem),JS(n,e=>this.handleDroppedUris(e,t).then(()=>this.controller.render()).catch(e=>this.controller.renderStatus(e))),this.renderGroupElements(e,t).forEach(e=>n.appendChild(e)),n}renderGroupElements(e,t){let n=this.controller.dom.createElement(`div`);if(n.setAttribute(`style`,U.group),this.controller.isEditable)switch(e){case 1:n.setAttribute(`style`,U.group1);break;case 2:n.setAttribute(`style`,U.group2);break;case 3:n.setAttribute(`style`,U.group3);break;case 5:n.setAttribute(`style`,U.group5);break;case 9:n.setAttribute(`style`,U.group9);break;case 13:n.setAttribute(`style`,U.group13);break;default:n.setAttribute(`style`,U.group)}n.innerText=fE[e]||_E(e);let r=this.controller.dom.createElement(`div`);if(r.setAttribute(`style`,U.group),this.controller.isEditable)switch(e){case 1:r.setAttribute(`style`,U.group1);break;case 2:r.setAttribute(`style`,U.group2);break;case 3:r.setAttribute(`style`,U.group3);break;case 5:r.setAttribute(`style`,U.group5);break;case 9:r.setAttribute(`style`,U.group9);break;case 13:r.setAttribute(`style`,U.group13);break;default:r.setAttribute(`style`,U.group)}let i=r.appendChild(this.controller.dom.createElement(`table`));(this.byCombo[t]||[]).map(([e,n])=>this.renderAgent(i,t,e,n)).forEach(e=>i.appendChild(e));let a=this.controller.dom.createElement(`div`);if(a.setAttribute(`style`,U.group),this.controller.isEditable)switch(e){case 1:a.setAttribute(`style`,U.group1);break;case 2:a.setAttribute(`style`,U.group2);break;case 3:a.setAttribute(`style`,U.group3);break;case 5:a.setAttribute(`style`,U.group5);break;case 9:a.setAttribute(`style`,U.group9);break;case 13:a.setAttribute(`style`,U.group13);break;default:a.setAttribute(`style`,U.group)}return a.innerText=mE[e]||`Unusual combination`,[n,r,a]}renderAgent(e,n,r,i){let a=RC(this.controller.dom,dE(r),(0,t.sym)(i),this.controller.isEditable?{deleteFunction:()=>this.deleteAgent(n,r,i).then(()=>e.removeChild(a)).catch(e=>this.controller.renderStatus(e))}:{});return a}async deleteAgent(e,t,n){let r=this.byCombo[e]||[],i=r.find(([e,r])=>e===t&&r===n);i&&r.splice(r.indexOf(i),1),await this.controller.save()}async addNewURI(e){await this.handleDroppedUri(e,gE(1)),await this.controller.save()}async handleDroppedUris(e,t){try{await Promise.all(e.map(e=>this.handleDroppedUri(e,t))),await this.controller.save()}catch(e){return Promise.reject(e)}}async handleDroppedUri(e,n,r=!1){let i=vE(e,this.store),a=(0,t.sym)(e);if(!i&&!r){W(` Not obvious: looking up dropped thing ${a}`);try{await this._store?.fetcher?.load(a.doc())}catch(e){let t=`Ignore error looking up dropped thing: ${e}`;return dS(t),Promise.reject(Error(t))}return this.handleDroppedUri(e,n,!0)}if(!i){let t=Object.keys(this.store.findTypeURIs(a)),n=t.length>0?`Detected RDF types: ${t.join(`, `)}`:`No RDF type was detected for this URI.`,r=`Error: Failed to add access target: ${e} is not a recognized ACL target type. Expected one of: vcard:WebID, vcard:Group, foaf:Person, foaf:Agent, solid:AppProvider, solid:AppProviderClass, or recognized ACL classes. Hint: try dropping a WebID profile URI, a vcard:Group URI, or a web app origin.`+n;return dS(r),Promise.reject(Error(r))}this.setACLCombo(n,e,i,this.controller.subject)}setACLCombo(e,t,n,r){e in this.byCombo||(this.byCombo[e]=[]),this.removeAgentFromCombos(t),this.byCombo[e].push([n.pred,n.obj.uri]),W(`ACL: setting access to ${r} by ${n.pred}: ${n.obj}`)}removeAgentFromCombos(e){for(let t=0;t<16;t++){let n=this.byCombo[gE(t)];if(n)for(let t=0;t<n.length;t++)for(;t<n.length&&n[t][1]===e;)n.splice(t,1)}}};function gE(e){let t=[`Read`,`Append`,`Write`,`Control`],n=[];for(let r=0;r<4;r++)e&1<<r&&n.push(`http://www.w3.org/ns/auth/acl#`+t[r]);return n.sort(),n.join(`
2036
+ `)}function _E(e){let t=``,n=[`Read`,`Append`,`Write`,`Control`];for(let r=0;r<4;r++)e&1<<r&&(t+=n[r]);return t}function vE(e,n){let r=(0,t.sym)(e),i=n.findTypeURIs(r);for(let e in i)W(` drop object type includes: `+e);if(e.startsWith(`http`)&&e.split(`/`).length===3)return{pred:`origin`,obj:r};if(e.startsWith(`http`)&&e.split(`/`).length===4&&e.endsWith(`/`))return W(`Assuming final slash on dragged origin URI was unintended!`),{pred:`origin`,obj:(0,t.sym)(e.slice(0,-1))};if(R.vcard(`WebID`).uri in i)return{pred:`agent`,obj:r};if(R.vcard(`Group`).uri in i)return{pred:`agentGroup`,obj:r};if(r.sameTerm(R.foaf(`Agent`))||r.sameTerm(R.acl(`AuthenticatedAgent`))||r.sameTerm(R.rdf(`Resource`))||r.sameTerm(R.owl(`Thing`)))return{pred:`agentClass`,obj:r};if(R.vcard(`Individual`).uri in i||R.foaf(`Person`).uri in i||R.foaf(`Agent`).uri in i){let e=n.any(r,R.foaf(`preferredURI`));return e?{pred:`agent`,obj:(0,t.sym)(e)}:{pred:`agent`,obj:r}}return R.solid(`AppProvider`).uri in i?{pred:`origin`,obj:r}:R.solid(`AppProviderClass`).uri in i?{pred:`originClass`,obj:r}:(W(` Triage fails for `+e),null)}var yE=class{mainCombo;defaultsCombo;isContainer;defaultsDiffer;rootElement;isUsingDefaults;constructor(e,t,n,r,i,a,o,s,c,l,u,d){if(this.subject=e,this.noun=t,this.context=n,this.statusElement=r,this.targetIsProtected=i,this.targetDoc=a,this.targetACLDoc=o,this.defaultHolder=s,this.defaultACLDoc=c,this.prospectiveDefaultHolder=l,this.store=u,this.dom=d,this.rootElement=d.createElement(`div`),this.rootElement.setAttribute(`style`,U.aclGroupContent),this.isContainer=a.uri.slice(-1)===`/`,s&&c){this.isUsingDefaults=!0;let e=pS(this.targetDoc,o,s,c);this.mainCombo=new hE(a,o,this,e,{defaults:this.isContainer}),this.defaultsCombo=null,this.defaultsDiffer=!1}else this.isUsingDefaults=!1,this.mainCombo=new hE(a,o,this,u),this.defaultsCombo=new hE(a,o,this,u,{defaults:this.isContainer}),this.defaultsDiffer=!hS(this.mainCombo.aclMap,this.defaultsCombo.aclMap)}get isEditable(){return!this.isUsingDefaults}render(){if(this.rootElement.innerHTML=``,this.isUsingDefaults){if(this.renderStatus(`The sharing for this ${this.noun} is the default for folder `),this.defaultHolder){let e=this.statusElement.appendChild(this.dom.createElement(`a`));e.href=this.defaultHolder.uri,e.innerText=TE(this.defaultHolder)}}else!this.defaultsDiffer&&this.isContainer?this.renderStatus(`This is also the default for things in this folder.`):this.renderStatus(``);return this.rootElement.appendChild(this.mainCombo.render()),this.defaultsCombo&&this.defaultsDiffer?(this.rootElement.appendChild(this.renderRemoveDefaultsController()),this.rootElement.appendChild(this.defaultsCombo.render())):this.isEditable&&this.isContainer&&this.rootElement.appendChild(this.renderAddDefaultsController()),!this.targetIsProtected&&this.isUsingDefaults?this.rootElement.appendChild(this.renderAddAclsController()):this.targetIsProtected||this.rootElement.appendChild(this.renderRemoveAclsController()),this.rootElement}renderRemoveAclsController(){let e=this.dom.createElement(`button`);return e.innerText=`Remove custom sharing settings for this ${this.noun} -- just use default${this.prospectiveDefaultHolder?` for ${V(this.prospectiveDefaultHolder)}`:``}`,e.setAttribute(`style`,U.bigButton),e.addEventListener(`click`,()=>this.removeAcls().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderAddAclsController(){let e=this.dom.createElement(`button`);return e.innerText=`Set specific sharing for this ${this.noun}`,e.setAttribute(`style`,U.bigButton),e.addEventListener(`click`,()=>this.addAcls().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderAddDefaultsController(){let e=this.dom.createElement(`div`);e.setAttribute(`style`,U.defaultsController);let t=e.appendChild(this.dom.createElement(`div`));t.innerText=`Sharing for things within the folder currently tracks sharing for the folder.`,t.setAttribute(`style`,U.defaultsControllerNotice);let n=e.appendChild(this.dom.createElement(`button`));return n.innerText=`Set the sharing of folder contents separately from the sharing for the folder`,n.setAttribute(`style`,U.bigButton),n.addEventListener(`click`,()=>this.addDefaults().then(()=>this.render())),e}renderRemoveDefaultsController(){let e=this.dom.createElement(`div`);e.setAttribute(`style`,U.defaultsController);let t=e.appendChild(this.dom.createElement(`div`));t.innerText=`Access to things within this folder:`,t.setAttribute(`style`,U.defaultsControllerNotice);let n=e.appendChild(this.dom.createElement(`button`));return n.innerText=`Set default for folder contents to just track the sharing for the folder`,n.setAttribute(`style`,U.bigButton),n.addEventListener(`click`,()=>this.removeDefaults().then(()=>this.render()).catch(e=>this.renderStatus(e))),e}renderTemporaryStatus(e){this.statusElement.setAttribute(`style`,U.aclControlBoxStatusRevealed),this.statusElement.innerText=e,this.statusElement.setAttribute(`style`,U.temporaryStatusInit),setTimeout(()=>{this.statusElement.setAttribute(`style`,U.temporaryStatusEnd)}),setTimeout(()=>{this.statusElement.innerText=``},5e3)}renderStatus(e){e||this.statusElement.setAttribute(`style`,U.aclControlBoxStatusRevealed),this.statusElement.innerText=e}async addAcls(){if(!this.defaultHolder||!this.defaultACLDoc){let e=`Unable to find defaults to copy`;return dS(e),Promise.reject(e)}pS(this.targetDoc,this.targetACLDoc,this.defaultHolder,this.defaultACLDoc).statements.forEach(e=>this.store.add(e.subject,e.predicate,e.object,this.targetACLDoc));try{return await this.store.fetcher.putBack(this.targetACLDoc),this.isUsingDefaults=!1,Promise.resolve()}catch(e){let t=` Error writing back access control file! ${e}`;return dS(t),Promise.reject(t)}}async addDefaults(){this.defaultsCombo=new hE(this.targetDoc,this.targetACLDoc,this,this.store,{defaults:!0}),this.defaultsDiffer=!0}async removeAcls(){try{await this.store.fetcher.delete(this.targetACLDoc.uri,{}),this.isUsingDefaults=!0;try{this.prospectiveDefaultHolder=await jS(this.targetDoc.uri)}catch(e){G(e)}}catch(e){let t=`Error deleting access control file: ${this.targetACLDoc}: ${e}`;return dS(t),Promise.reject(t)}}async removeDefaults(){let e=this.defaultsCombo;try{this.defaultsCombo=null,this.defaultsDiffer=!1,await this.save()}catch(t){return this.defaultsCombo=e,this.defaultsDiffer=!0,dS(t),Promise.reject(t)}}save(){let e=(0,t.graph)();this.isContainer?this.defaultsCombo&&this.defaultsDiffer?(bS(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),bS(e,this.targetDoc,this.defaultsCombo.byCombo,this.targetACLDoc,!1,!0)):bS(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0,!0):bS(e,this.targetDoc,this.mainCombo.byCombo,this.targetACLDoc,!0),e.fetcher=(0,t.fetcher)(e,{fetch:this.store.fetcher._fetch});let n=e.updater||new t.UpdateManager(e);return new Promise((t,r)=>{n.put(this.targetACLDoc,e.statementsMatching(void 0,void 0,void 0,this.targetACLDoc),`text/turtle`,(n,i,a)=>{if(!i)return r(Error(`ACL file save failed: ${a}`));this.store.fetcher.unload(this.targetACLDoc),this.store.add(e.statements),this.store.fetcher.requested[this.targetACLDoc.uri]=`done`,this.mainCombo.store=this.store,this.defaultsCombo&&(this.defaultsCombo.store=this.store),this.defaultsDiffer=!!this.defaultsCombo&&!hS(this.mainCombo.aclMap,this.defaultsCombo.aclMap),W(`ACL modification: success!`),t()})})}},bE=window,xE=Symbol(`prevent double triggering of drop event`);function SE(e){if(W(`preventBrowserDropEvents called.`),bE!==void 0){if(bE[xE])return;bE[xE]=!0}e.addEventListener(`drop`,wE,!1),e.addEventListener(`dragenter`,CE,!1),e.addEventListener(`dragover`,CE,!1)}function CE(e){e.stopPropagation(),e.preventDefault()}function wE(e){e.dataTransfer.files.length>0&&(bE.confirm(`Are you sure you want to drop this file here? (Cancel opens it in a new tab)`)||(e.stopPropagation(),e.preventDefault(),W(`@@@@ document-level DROP suppressed: `+e.dataTransfer.dropEffect)))}function TE(e){let t=e.uri;t.slice(-1)===`/`&&(t=t.slice(0,-1));let n=t.lastIndexOf(`/`);return n>=0&&(t=t.slice(n+1)),t||`/`}function EE(e,t,n,r){let i=t.dom,a=e.doc(),o=i.createElement(`div`);o.setAttribute(`style`,U.aclControlBoxContainer);let s=o.appendChild(i.createElement(`h1`));s.textContent=`Sharing for ${n} ${V(e)}`,s.setAttribute(`style`,U.aclControlBoxHeader);let c=o.appendChild(i.createElement(`div`));c.setAttribute(`style`,U.aclControlBoxStatus);try{DE(a,r,e,n,t,i,c).then(e=>o.appendChild(e.render()))}catch(e){c.innerText=e}return o}async function DE(e,t,n,r,i,a,o){return new Promise((s,c)=>kS(e,async(e,l,u,d,f,p)=>{if(!e)return c(Error(`Error reading ${l?``:` default `}ACL. status ${u}: ${d}`));let m=OE(u),h=kE(u,d,t)||AE(u);if(!h&&m)try{return s(g(await jS(m)))}catch(e){G(e)}return s(g());function g(e){return new yE(n,r,i,o,h,u,d,f,p,e,t,a)}}))}function OE(e){let t=e.uri.split(`#`)[0],n=t.slice(0,-1).lastIndexOf(`/`),r=t.indexOf(`//`);return r>=0&&n<r+2||n<0?null:t.slice(0,n+1)}function kE(e,t,n){return n.holds(e,R.rdf(`type`),R.space(`Storage`),t)}function AE(e){return e.uri===e.site().uri}var jE={adoptACLDefault:pS,readACL:mS,sameACL:hS,ACLunion:gS,loadUnionACL:_S,ACLbyCombination:vS,makeACLGraph:yS,makeACLGraphbyCombo:bS,ACLToString:xS,comboToString:SS,makeACLString:CS,putACLObject:wS,putACLbyCombo:TS,fixIndividualCardACL:ES,fixIndividualACL:DS,setACL:OS,getACLorDefault:kS,getACL:AS},ME={preventBrowserDropEvents:SE,shortNameForFolder:TE,ACLControlBox5:EE},NE=n.solidLogicSingleton.store;function PE(e,t,n){let r=e.dom,i=e.div;if(e.me&&!e.me.uri)throw Error(`newThingUI: Invalid userid: `+e.me);let a=`padding: 0.7em; width: 2em; height: 2em;`,o=i.appendChild(r.createElement(`img`)),s=!1;o.setAttribute(`src`,J.iconBase+`noun_34653_green.svg`),o.setAttribute(`style`,a),o.setAttribute(`title`,`Add another tool`);let c=function(e){let t=i.appendChild(r.createElement(`pre`));t.setAttribute(`style`,`background-color: pink`),t.appendChild(r.createTextNode(e))};function l(e){for(let t=0;t<p.length;t++){let n=a+e;p[t].disabled&&(n+=`opacity: 0.3;`),p[t].setAttribute(`style`,n)}}function u(e){l(`display: none;`),e.setAttribute(`style`,`padding: 0.7em; width: 2em; height: 2em;background-color: yellow;`)}function d(e){s=!s,o.setAttribute(`style`,a+(s?`background-color: yellow;`:``)),l(s?``:`display: none;`)}o.addEventListener(`click`,d);function f(n){return new Promise(function(i,a){let o;function s(i,o){XT(e).then(e=>{let s=Object.assign({newBase:o,folder:n.folder||void 0,workspace:i},n);for(let e in n)s[e]=n[e];W(`newThingUI: Minting new ${s.pane.name} at ${s.newBase}`),n.pane.mintNew(t,s).then(function(e){if(!e||!e.newInstance)throw Error(`Cannot mint new - missing newInstance`);if(e.folder){let t=e.newInstance.uri.slice(e.folder.uri.length).includes(`/`);W(` new thing is packge? `+t),t?NE.add(e.folder,R.ldp(`contains`),NE.sym(e.newBase),e.folder.doc()):NE.add(e.folder,R.ldp(`contains`),e.newInstance,e.folder.doc()),e.refreshTarget&&e.refreshTarget.refresh&&e.refreshTarget.refresh()}else{let t=n.div.appendChild(r.createElement(`p`));t.setAttribute(`style`,`font-size: 120%;`),t.innerHTML=`Your <a target='_blank' href='`+e.newInstance.uri+`'><b>new `+n.noun+`</b></a> is ready to be set up. <br/><br/><a target='_blank' href='`+e.newInstance.uri+`'>Go to your new `+n.noun+`.</a>`}d()}).catch(function(e){c(e),a(e)})},e=>{c(`Error logging on: `+e)})}let l=n.pane;n.noun=l.mintClass?V(l.mintClass):l.name,n.appPathSegment=n.noun.slice(0,1).toUpperCase()+n.noun.slice(1),n.folder?LC(r,NE,n.div,R.foaf(`name`),null,n.noun).then(function(e){if(!e)d();else{let t=n.folder.uri;t.endsWith(`/`)||(t+=`/`),t=t+encodeURIComponent(e)+`/`,s(null,t)}}):(o=aE(r,{noun:n.noun,appPathSegment:n.appPathSegment},s),n.div.appendChild(o))})}let p=[],m=Object.values(n).filter(e=>e.mintNew),h=m.reduce((e,t)=>(t.mintClass&&(e[t.mintClass.uri]=(e[t.mintClass.uri]||0)+1),e),{});m.forEach(t=>{let n=e.div.appendChild(r.createElement(`img`));n.setAttribute(`src`,t.icon);let i=t.mintClass?h[t.mintClass.uri]>1?`${V(t.mintClass)} (using ${t.name} pane)`:V(t.mintClass):t.name+` @@`;n.setAttribute(`title`,`Make new `+i),n.setAttribute(`style`,`padding: 0.7em; width: 2em; height: 2em;display: none;`),p.push(n),n.disabled||n.addEventListener(`click`,function(r){u(n),f({event:r,folder:e.folder||null,iconEle:n,pane:t,noun:i,noIndexHTML:!0,div:e.div,me:e.me,dom:e.dom,refreshTarget:e.refreshTarget})})})}var FE={newThingUI:PE},IE=n.solidLogicSingleton.store;function LE(e,n,r,i,a,o,s){let c=e.createElement(`table`),l=e.createElement(`tr`);l.appendChild(e.createElement(`td`)).setAttribute(`class`,`MatrixCorner`),c.appendChild(l),c.lastHeader=l;let u=[],d=[],f=function(e,t,n,r){for(;e.firstChild;)e.removeChild(e.firstChild);e.setAttribute(`style`,``),e.style.textAlign=`center`,o.cellFunction?o.cellFunction(e,t,n,r):(e.textContent=V(r),e.setAttribute(`style`,`padding: 0.3em`)),delete e.old},p=function(n){let r=n.toNT();if(d[r])return d[r];let i=e.createElement(`tr`),a=i.appendChild(e.createElement(`td`));a.setAttribute(`style`,`padding: 0.3em;`),a.textContent=V(n),n.termType===`NamedNode`&&IE.fetcher.nowOrWhenFetched(n.uri.split(`#`)[0],void 0,function(e,t,r){e&&(a.textContent=V(n))});for(let r=0;r<u.length;r++)f(i.appendChild(e.createElement(`td`)),t.fromNT(u[r]),n,null);i.dataValueNT=r,d[r]=i;for(let e=c.lastHeader.nextSibling;e;e=e.nextSibling)if(r>e.dataValueNT&&o&&o.yDecreasing||r<e.dataValueNT&&!(o&&o.yDecreasing))return c.insertBefore(i,e);return c.appendChild(i)},m=function(n){let r=n.toNT(),i=null;for(let e=0;e<u.length;e++){if(u[e]===r)return e;if(r>u[e]&&o.xDecreasing||r<u[e]&&!o.xDecreasing){u=u.slice(0,e).concat([r]).concat(u.slice(e)),i=e;break}}i===null&&(i=u.length,u.push(r));for(let r=c.firstChild;r;r=r.nextSibling){let a=r.dataValueNT,o=e.createElement(`td`);if(o.style.textAlign=`center`,r===c.firstChild?o.textContent=V(n):f(o,n,t.fromNT(a),null),i===u.length-1)r.appendChild(o);else{let e=r.firstChild;for(let t=0;t<i+1;t++)e=e.nextSibling;r.insertBefore(o,e)}}return i},h=function(){for(let e=1;e<c.children.length;e++){let t=c.children[e];for(let e=1;e<t.children.length;e++)t.children[e].old=!0}},g=function(){let e,n,r=[],i=[];if(o.set_y)for(let e=0;e<o.set_y.length;e++)i[o.set_y[e]]=!0;if(o.set_x)for(let e=0;e<o.set_x.length;e++)r[m(o.set_x[e])+1]=!0;for(let a=1;a<c.children.length;a++){e=c.children[a];for(let a=1;a<e.children.length;a++)if(n=e.children[a],n.old){let r=t.fromNT(e.dataValueNT),i=t.fromNT(u[a-1]);f(n,i,r,null)}else i[e.dataValueNT]=!0,r[a]=!0}for(let t=0;t<c.children.length;t++)if(e=c.children[t],t>0&&!i[e.dataValueNT])delete d[e.dataValueNT],c.removeChild(e);else for(let t=e.children.length-1;t>0;t--){let n=e.children[t];r[t]||e.removeChild(n)}let a=[];for(let e=0;e<u.length;e++)r[e+1]&&a.push(u[e]);u=a};c.refresh=function(){h(),IE.query(n,_,void 0,g)};let _=function(e){let t=e[r.toString()],n=e[i.toString()],o=e[a.toString()],s=p(n),c=m(t),l=s.children[c+1];f(l,t,n,o)};if(o.set_y)for(let e=0;e<o.set_y.length;e++)p(o.set_y[e]);if(o.set_x)for(let e=0;e<o.set_x.length;e++)m(o.set_x[e]);return IE.query(n,_,void 0,s),c}var RE={matrixForQuery:LE},zE=J.iconBase+`noun_Camera_1618446_000000.svg`,BE=J.iconBase+`noun_479395.svg`,VE=`image/png`;function HE(e,t,n,r){let i=e.createElement(`div`),a,o,s,c,l=i.appendChild(e.createElement(`table`)),u=l.appendChild(e.createElement(`tr`)).appendChild(e.createElement(`td`));u.setAttribute(`colspan`,`4`);let d=l.appendChild(e.createElement(`tr`));d.appendChild(e.createElement(`td`)).appendChild(FC(e)).addEventListener(`click`,e=>{b(),r(null)});let f=d.appendChild(e.createElement(`td`)).appendChild(X(e,BE,`Retake`));f.addEventListener(`click`,e=>{_()}),f.style.visibility=`collapse`;let p=d.appendChild(e.createElement(`td`)).appendChild(X(e,J.iconBase+`noun_10636.svg`,`Snap`));p.addEventListener(`click`,v),p.style.visibility=`collapse`;let m=d.appendChild(e.createElement(`td`)).appendChild(IC(e));m.addEventListener(`click`,e=>{x(o,a)}),m.style.visibility=`collapse`;function h(){if(s=u.appendChild(e.createElement(`video`)),s.setAttribute(`controls`,`1`),s.setAttribute(`autoplay`,`1`),s.setAttribute(`style`,U.controlStyle),!navigator.mediaDevices)throw Error(`navigator.mediaDevices not available`);navigator.mediaDevices.getUserMedia(g).then(e=>{s.srcObject=e,p.style.visibility=`visible`,m.style.visibility=`collapse`,f.style.visibility=`collapse`})}let g={video:!0};function _(){u.removeChild(c),h()}function v(){c=e.createElement(`canvas`),c.setAttribute(`width`,U.canvasWidth),c.setAttribute(`height`,U.canvasHeight),c.setAttribute(`style`,U.controlStyle),u.appendChild(c),c.getContext(`2d`).drawImage(s,0,0,c.width,c.height),s.parentNode.removeChild(s),c.toBlob(e=>{W(`got blob type ${e.type} size ${e.size}`),a=n(),o=e,y()},VE)}function y(){m.style.visibility=`visible`,f.style.visibility=`visible`,p.style.visibility=`collapse`}function b(){s&&s.srcObject&&s.srcObject.getVideoTracks().forEach(e=>e.stop())}function x(e,n){let i=e.type;W(`Putting `+e.size+` bytes of `+i+` to `+n),t.fetcher.webOperation(`PUT`,n.uri,{data:e,contentType:i}).then(e=>{W(`ok saved `+n),b(),r(n)},e=>{b(),alert(e)})}return h(),i}function UE(e,t,n,r){let i=e.createElement(`div`),a=X(e,zE,`Take picture`),o;async function s(e){i.removeChild(o),i.appendChild(a),r(e)}return i.appendChild(a),a.addEventListener(`click`,r=>{i.removeChild(a),o=HE(e,t,n,s),i.appendChild(o)}),i}var WE={cameraCaptureControl:HE,cameraButton:UE},GE={icons:J,ns:R,rdf:t,style:U,widgets:IT};function KE(e,r,i,a,o){r||=n.solidLogicSingleton.store,a=a.doc();let s=GE.ns,c=t.Namespace(`http://www.w3.org/2005/01/wf/flow#`),l=t.Namespace(`http://purl.org/dc/terms/`);o||={};let u=!!o.newestFirst,d=e.createElement(`div`),f,p,m=n.solidLogicSingleton.store.updater,h=function(t,n){let r=e.createElement(`a`);return n&&n.uri&&(r.setAttribute(`href`,n.uri),r.addEventListener(`click`,GE.widgets.openHrefInOutlineMode,!0),r.setAttribute(`style`,`color: #3B5998; text-decoration: none; `)),r.textContent=t,r},g=function(t,n){let r=e.createElement(`pre`);return r.setAttribute(`style`,n||`color: grey`),d.appendChild(r),r.appendChild(e.createTextNode(t)),r},_={log:function(e){g(e,`color: #111;`)},warn:function(e){g(e,`color: #880;`)},error:function(e){g(e,`color: #800;`)}},v=function(){let n=e.createElement(`tr`),o=e.createElement(`td`),c=e.createElement(`td`),u=e.createElement(`td`);n.appendChild(o),n.appendChild(c),n.appendChild(u),n.AJAR_date=`9999-01-01T00:00:00Z`;let d=function(){f.setAttribute(`class`,`pendingedit`),f.disabled=!0;let o=[],c=new Date,u=``+c.getTime(),d=t.term(c),h=r.sym(a.uri+`#Msg`+u);o.push(new t.Statement(i,s.wf(`message`),h,a)),o.push(new t.Statement(h,s.sioc(`content`),r.literal(f.value),a)),o.push(new t.Statement(h,l(`created`),d,a)),p&&o.push(new t.Statement(h,s.foaf(`maker`),p,a)),m.update([],o,function(t,i,a){if(!i)n.appendChild(GE.widgets.errorMessageBlock(e,`Error writing message: `+a));else{let e={"?msg":h,"?content":r.literal(f.value),"?date":d,"?creator":p};w(e,!1),f.value=``,f.setAttribute(`class`,``),f.disabled=!1}})};n.appendChild(e.createElement(`br`));let f,h,g=function(){b(o,p,``,null),f=e.createElement(`textarea`),c.innerHTML=``,c.appendChild(f),f.rows=3,f.setAttribute(`style`,`white-space: pre-wrap; width: 90%; font-size:100%; border: 0.07em solid #eee; padding: .2em 0.5em; margin: 0.1em 1em 0.1em 1em;background-color: #eef;`),f.addEventListener(`keyup`,function(e){e.keyCode===13&&(e.altKey||d())},!1),u.innerHTML=``,h=GE.widgets.button(e,GE.icons.iconBase+`noun_383448.svg`,`Send`),h.setAttribute(`style`,GE.style.buttonStyle+`float: right;`),h.addEventListener(`click`,d,!1),u.appendChild(h)};return JT({div:c,dom:e}).then(e=>{p=e.me,g()}),n};function y(e){let t=n.solidLogicSingleton.store.any(e,GE.ns.foaf(`nick`));return t?``+t.value:``+V(e)}function b(t,r,i,a){let o=t.appendChild(h(y(r),r));r.uri&&n.solidLogicSingleton.store.fetcher.nowOrWhenFetched(r.doc(),void 0,function(e,t){o.textContent=y(r)}),t.appendChild(e.createElement(`br`)),t.appendChild(h(i,a))}function x(e,t){let n={},i,a;for(i=t.firstChild;i;i=i.nextSibling)i.AJAR_subject&&(n[i.AJAR_subject.uri]=!0);let o=r.each(e,s.wf(`message`)),c={};for(o.forEach(function(e){c[e.uri]=!0,n[e.uri]||C(e)}),i=t.firstChild;i;)a=i.nextSibling,i.AJAR_subject&&!c[i.AJAR_subject.uri]&&t.removeChild(i),i=a}let S=function(e){let t=r.statementsMatching(e).concat(r.statementsMatching(void 0,void 0,e));m.update(t,[],function(e,t,n){t?x(i,f):_.error(`Cant delete messages:`+n)})},C=function(e){let t={"?msg":e,"?creator":r.any(e,s.foaf(`maker`)),"?date":r.any(e,l(`created`)),"?content":r.any(e,s.sioc(`content`))};w(t,!0)},w=function(t,n){let r=t[`?creator`],i=t[`?msg`],a=t[`?date`],o=t[`?content`],s=a.value,c=e.createElement(`tr`);c.AJAR_date=s,c.AJAR_subject=i;let l=!1;for(let e=f.firstChild;e;e=e.nextSibling)if(s>e.AJAR_date&&u||s<e.AJAR_date&&!u){f.insertBefore(c,e),l=!0;break}l||f.appendChild(c);let d=e.createElement(`td`);c.appendChild(d),b(d,r,GE.widgets.shortDate(s),i);let p=e.createElement(`td`);c.appendChild(p);let m=e.createElement(`p`);m.setAttribute(`style`,`white-space: pre-wrap; width: 90%; font-size:100%; border: 0.07em solid #eee; padding: .2em 0.5em; margin: 0.1em 1em 0.1em 1em;`+(n?`background-color: #e8ffe8;`:`background-color: #white;`)),p.appendChild(m),m.textContent=o.value;let h=e.createElement(`td`);c.appendChild(h);let g=e.createElement(`button`);h.appendChild(g),g.textContent=`-`,c.setAttribute(`class`,`hoverControl`),g.setAttribute(`class`,`hoverControlHide`),g.setAttribute(`style`,`color: red;`),g.addEventListener(`click`,function(t){h.removeChild(g);let n=e.createElement(`button`);n.textContent=`cancel`,h.appendChild(n).addEventListener(`click`,function(e){h.removeChild(r),h.removeChild(n),h.appendChild(g)},!1);let r=e.createElement(`button`);r.textContent=`Delete message`,h.appendChild(r).addEventListener(`click`,function(e){h.removeChild(r),h.removeChild(n),S(i)},!1)},!1)};f=e.createElement(`table`),f.fresh=!1,d.appendChild(f),f.setAttribute(`style`,`width: 100%;`);let T=v();u?f.insertBefore(T,f.firstChild):f.appendChild(T);let E;if(o.query)E=o.query;else{E=new t.Query(`Messages`);let e={};[`msg`,`date`,`creator`,`content`].forEach(function(n){E.vars.push(e[n]=t.variable(n))}),E.pat.add(i,c(`message`),e.msg),E.pat.add(e.msg,s.dct(`created`),e.date),E.pat.add(e.msg,s.foaf(`maker`),e.creator),E.pat.add(e.msg,s.sioc(`content`),e.content)}function D(){f.fresh=!0}return r.query(E,w,void 0,D),d.refresh=function(){x(i,f)},d}async function qE(e){return await n.store.fetcher.load(e),!(n.store.statementsMatching(null,R.dct(`created`),null,e).length>0)}var JE=class{constructor(e,t,n){this.root=e,this.rootFolder=e.dir(),this.leafFileName=t||`index.ttl`,this.membershipProperty=n||R.wf(`leafObject`)}leafDocumentFromDate(e){let t=e.toISOString().split(`T`)[0].replace(/-/g,`/`);return t=this.root.dir().uri+t+`/`+this.leafFileName,n.store.sym(t)}dateFromLeafDocument(e){let t=this.rootFolder.uri.length,n=e.uri.slice(t,t+10).replace(/\//g,`-`);return new Date(n)}async loadPrevious(e,t){async function r(e,i){function a(n){return!(t?n.uri>=e.uri:n.uri<=e.uri)}function o(e){let t=e.uri.slice(0,-1).split(`/`).slice(-1)[0];return!!`0123456789`.includes(t[0])}function s(e){return e=e.filter(o),e.sort(),t||e.reverse(),e.pop()}let c=e.dir();try{await n.store.fetcher.load(c);let e=n.store.each(c,R.ldp(`contains`));e=e.filter(a);let t=s(e);if(t)return t}catch(e){if(e.response&&e.response.status&&e.response.status===404)W(`Error 404 for chat parent file `+c);else throw W(`*** Error NON 404 for chat parent file `+c),Error(`*** ${e.message} for chat folder ${c}`)}if(i===0)return null;let l=await r(c,i-1);return l?(await n.store.fetcher.load(l),s(n.store.each(l,R.ldp(`contains`)))):null}let i=this.leafDocumentFromDate(e).dir();for(;;){let t=await r(i,3);if(t){let r=n.store.sym(t.uri+this.leafFileName),a=this.dateFromLeafDocument(r);if(await qE(r))e=a,i=this.leafDocumentFromDate(e).dir();else return a}else return null}}async firstLeaf(e){let n=t.graph(),r=new t.Fetcher(n);async function i(t){function i(e){let t=e.uri.slice(0,-1).split(`/`).slice(-1)[0];return!!`0123456789`.includes(t[0])}delete r.requested[t.uri],await r.load(t,{force:!0});let a=n.each(t,R.ldp(`contains`));if(a=a.filter(i),a.length===0)throw Error(` @@@ No children to parent2 `+t);return a.sort(),e&&a.reverse(),a[0]}let a=await i(await i(await i(this.root.dir()))),o=t.sym(a.uri+`chat.ttl`);await r.load(o);let s=n.each(this.root,this.membershipProperty,null,o);if(s.length===0){let e=` INCONSISTENCY -- no chat leafObject in file `+o;throw fS(e),Error(e)}let c=s.map(e=>[n.any(e,R.dct(`created`)),e]);return c.sort(),e&&c.reverse(),c[0][1]}};function YE(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`&&`BYTES_PER_ELEMENT`in e&&e.BYTES_PER_ELEMENT===1}function XE(e,t=``){if(typeof e!=`number`){let n=t&&`"${t}" `;throw TypeError(`${n}expected number, got ${typeof e}`)}if(!Number.isSafeInteger(e)||e<0){let n=t&&`"${t}" `;throw RangeError(`${n}expected integer >= 0, got ${e}`)}}function ZE(e,t,n=``){let r=YE(e),i=e?.length,a=t!==void 0;if(!r||a&&i!==t){let o=n&&`"${n}" `,s=a?` of length ${t}`:``,c=r?`length=${i}`:`type=${typeof e}`,l=o+`expected Uint8Array`+s+`, got `+c;throw r?RangeError(l):TypeError(l)}return e}function QE(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function $E(e,t){ZE(e,void 0,`digestInto() output`);let n=t.outputLen;if(e.length<n)throw RangeError(`"digestInto() output" expected to be of length >=`+n)}function eD(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function tD(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function nD(e,t){return e<<32-t|e>>>t}var rD=typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`,iD=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function aD(e){if(ZE(e),rD)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=iD[e[n]];return t}var oD={_0:48,_9:57,A:65,F:70,a:97,f:102};function sD(e){if(e>=oD._0&&e<=oD._9)return e-oD._0;if(e>=oD.A&&e<=oD.F)return e-(oD.A-10);if(e>=oD.a&&e<=oD.f)return e-(oD.a-10)}function cD(e){if(typeof e!=`string`)throw TypeError(`hex string expected, got `+typeof e);if(rD)try{return Uint8Array.fromHex(e)}catch(e){throw e instanceof SyntaxError?RangeError(e.message):e}let t=e.length,n=t/2;if(t%2)throw RangeError(`hex string expected, got unpadded hex of length `+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=sD(e.charCodeAt(i)),a=sD(e.charCodeAt(i+1));if(n===void 0||a===void 0){let t=e[i]+e[i+1];throw RangeError(`hex string expected, got non-hex character "`+t+`" at index `+i)}r[t]=n*16+a}return r}function lD(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];ZE(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}function uD(e,t={}){let n=(t,n)=>e(n).update(t).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.canXOF=r.canXOF,n.create=t=>e(t),Object.assign(n,t),Object.freeze(n)}function dD(e=32){XE(e,`bytesLength`);let t=typeof globalThis==`object`?globalThis.crypto:null;if(typeof t?.getRandomValues!=`function`)throw Error(`crypto.getRandomValues must be defined`);if(e>65536)throw RangeError(`"bytesLength" expected <= 65536, got ${e}`);return t.getRandomValues(new Uint8Array(e))}var fD=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function pD(e,t,n){return e&t^~e&n}function mD(e,t,n){return e&t^e&n^t&n}var hD=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,n,r){this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=tD(this.buffer)}update(e){QE(this),ZE(e);let{view:t,buffer:n,blockLen:r}=this,i=e.length;for(let a=0;a<i;){let o=Math.min(r-this.pos,i-a);if(o===r){let t=tD(e);for(;r<=i-a;a+=r)this.process(t,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){QE(this),$E(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,eD(this.buffer.subarray(a)),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;n.setBigUint64(r-8,BigInt(this.length*8),i),this.process(n,0);let o=tD(e),s=this.outputLen;if(s%4)throw Error(`_sha2: outputLen must be aligned to 32bit`);let c=s/4,l=this.get();if(c>l.length)throw Error(`_sha2: outputLen bigger than state`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.destroyed=a,e.finished=i,e.length=r,e.pos=o,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}},gD=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_D=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),vD=new Uint32Array(64),yD=class extends hD{constructor(e){super(64,e,8,!1)}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let n=0;n<16;n++,t+=4)vD[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=vD[e-15],n=vD[e-2],r=nD(t,7)^nD(t,18)^t>>>3,i=nD(n,17)^nD(n,19)^n>>>10;vD[e]=i+vD[e-7]+r+vD[e-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=nD(o,6)^nD(o,11)^nD(o,25),u=l+t+pD(o,s,c)+_D[e]+vD[e]|0,d=(nD(n,2)^nD(n,13)^nD(n,22))+mD(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){eD(vD)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),eD(this.buffer)}},bD=class extends yD{A=gD[0]|0;B=gD[1]|0;C=gD[2]|0;D=gD[3]|0;E=gD[4]|0;F=gD[5]|0;G=gD[6]|0;H=gD[7]|0;constructor(){super(32)}},xD=uD(()=>new bD,fD(1)),SD=(e,t,n)=>ZE(e,t,n),CD=XE,wD=aD,TD=(...e)=>lD(...e),ED=e=>cD(e),DD=BigInt(0),OD=BigInt(1);function kD(e,t=``){if(typeof e!=`boolean`){let n=t&&`"${t}" `;throw TypeError(n+`expected boolean, got type=`+typeof e)}return e}function AD(e){if(typeof e==`bigint`){if(!BD(e))throw RangeError(`positive bigint expected, got `+e)}else CD(e);return e}function jD(e,t=``){if(typeof e!=`number`){let n=t&&`"${t}" `;throw TypeError(n+`expected number, got type=`+typeof e)}if(!Number.isSafeInteger(e)){let n=t&&`"${t}" `;throw RangeError(n+`expected safe integer, got `+e)}}function MD(e){let t=AD(e).toString(16);return t.length&1?`0`+t:t}function ND(e){if(typeof e!=`string`)throw TypeError(`hex string expected, got `+typeof e);return e===``?DD:BigInt(`0x`+e)}function PD(e){return ND(aD(e))}function FD(e){return ND(aD(RD(ZE(e)).reverse()))}function ID(e,t){if(XE(t),t===0)throw RangeError(`zero length`);e=AD(e);let n=e.toString(16);if(n.length>t*2)throw RangeError(`number too large`);return cD(n.padStart(t*2,`0`))}function LD(e,t){return ID(e,t).reverse()}function RD(e){return Uint8Array.from(SD(e))}function zD(e){if(typeof e!=`string`)throw TypeError(`ascii string expected, got `+typeof e);return Uint8Array.from(e,(t,n)=>{let r=t.charCodeAt(0);if(t.length!==1||r>127)throw RangeError(`string contains non-ASCII character "${e[n]}" with code ${r} at position ${n}`);return r})}var BD=e=>typeof e==`bigint`&&DD<=e;function VD(e,t,n){return BD(e)&&BD(t)&&BD(n)&&t<=e&&e<n}function HD(e,t,n,r){if(!VD(t,n,r))throw RangeError(`expected valid `+e+`: `+n+` <= n < `+r+`, got `+t)}function UD(e){if(e<DD)throw Error(`expected non-negative bigint, got `+e);let t;for(t=0;e>DD;e>>=OD,t+=1);return t}var WD=e=>(OD<<BigInt(e))-OD;function GD(e,t={},n={}){if(Object.prototype.toString.call(e)!==`[object Object]`)throw TypeError(`expected valid options object`);function r(t,n,r){if(!r&&n!==`function`&&!Object.hasOwn(e,t))throw TypeError(`param "${t}" is invalid: expected own property`);let i=e[t];if(r&&i===void 0)return;let a=typeof i;if(a!==n||i===null)throw TypeError(`param "${t}" is invalid: expected ${n}, got ${a}`)}let i=(e,t)=>Object.entries(e).forEach(([e,n])=>r(e,n,t));i(t,!1),i(n,!0)}var KD=BigInt(0),qD=BigInt(1),JD=BigInt(2),YD=BigInt(3),XD=BigInt(4),ZD=BigInt(5),QD=BigInt(7),$D=BigInt(8),eO=BigInt(9),tO=BigInt(16);function nO(e,t){if(t<=KD)throw Error(`mod: expected positive modulus, got `+t);let n=e%t;return n>=KD?n:t+n}function rO(e,t,n){if(t<KD)throw Error(`pow2: expected non-negative exponent, got `+t);let r=e;for(;t-->KD;)r*=r,r%=n;return r}function iO(e,t){if(e===KD)throw Error(`invert: expected non-zero number`);if(t<=KD)throw Error(`invert: expected positive modulus, got `+t);let n=nO(e,t),r=t,i=KD,a=qD,o=qD,s=KD;for(;n!==KD;){let e=r/n,t=r-n*e,c=i-o*e,l=a-s*e;r=n,n=t,i=o,a=s,o=c,s=l}if(r!==qD)throw Error(`invert: does not exist`);return nO(i,t)}function aO(e,t,n){let r=e;if(!r.eql(r.sqr(t),n))throw Error(`Cannot find square root`)}function oO(e,t){let n=e,r=(n.ORDER+qD)/XD,i=n.pow(t,r);return aO(n,i,t),i}function sO(e,t){let n=e,r=(n.ORDER-ZD)/$D,i=n.mul(t,JD),a=n.pow(i,r),o=n.mul(t,a),s=n.mul(n.mul(o,JD),a),c=n.mul(o,n.sub(s,n.ONE));return aO(n,c,t),c}function cO(e){let t=yO(e),n=lO(e),r=n(t,t.neg(t.ONE)),i=n(t,r),a=n(t,t.neg(r)),o=(e+QD)/tO;return((e,t)=>{let n=e,s=n.pow(t,o),c=n.mul(s,r),l=n.mul(s,i),u=n.mul(s,a),d=n.eql(n.sqr(c),t),f=n.eql(n.sqr(l),t);s=n.cmov(s,c,d),c=n.cmov(u,l,f);let p=n.eql(n.sqr(c),t),m=n.cmov(s,c,p);return aO(n,m,t),m})}function lO(e){if(e<YD)throw Error(`sqrt is not defined for small field`);let t=e-qD,n=0;for(;t%JD===KD;)t/=JD,n++;let r=JD,i=yO(e);for(;hO(i,r)===1;)if(r++>1e3)throw Error(`Cannot find square root: probably non-prime P`);if(n===1)return oO;let a=i.pow(r,t),o=(t+qD)/JD;return function(e,r){let i=e;if(i.is0(r))return r;if(hO(i,r)!==1)throw Error(`Cannot find square root`);let s=n,c=i.mul(i.ONE,a),l=i.pow(r,t),u=i.pow(r,o);for(;!i.eql(l,i.ONE);){if(i.is0(l))return i.ZERO;let e=1,t=i.sqr(l);for(;!i.eql(t,i.ONE);)if(e++,t=i.sqr(t),e===s)throw Error(`Cannot find square root`);let n=qD<<BigInt(s-e-1),r=i.pow(c,n);s=e,c=i.sqr(r),l=i.mul(l,c),u=i.mul(u,r)}return u}}function uO(e){return e%XD===YD?oO:e%$D===ZD?sO:e%tO===eO?cO(e):lO(e)}var dO=[`create`,`isValid`,`is0`,`neg`,`inv`,`sqrt`,`sqr`,`eql`,`add`,`sub`,`mul`,`pow`,`div`,`addN`,`subN`,`mulN`,`sqrN`];function fO(e){if(GD(e,dO.reduce((e,t)=>(e[t]=`function`,e),{ORDER:`bigint`,BYTES:`number`,BITS:`number`})),jD(e.BYTES,`BYTES`),jD(e.BITS,`BITS`),e.BYTES<1||e.BITS<1)throw Error(`invalid field: expected BYTES/BITS > 0`);if(e.ORDER<=qD)throw Error(`invalid field: expected ORDER > 1, got `+e.ORDER);return e}function pO(e,t,n){let r=e;if(n<KD)throw Error(`invalid exponent, negatives unsupported`);if(n===KD)return r.ONE;if(n===qD)return t;let i=r.ONE,a=t;for(;n>KD;)n&qD&&(i=r.mul(i,a)),a=r.sqr(a),n>>=qD;return i}function mO(e,t,n=!1){let r=e,i=Array(t.length).fill(n?r.ZERO:void 0),a=t.reduce((e,t,n)=>r.is0(t)?e:(i[n]=e,r.mul(e,t)),r.ONE),o=r.inv(a);return t.reduceRight((e,t,n)=>r.is0(t)?e:(i[n]=r.mul(e,i[n]),r.mul(e,t)),o),i}function hO(e,t){let n=e,r=(n.ORDER-qD)/JD,i=n.pow(t,r),a=n.eql(i,n.ONE),o=n.eql(i,n.ZERO),s=n.eql(i,n.neg(n.ONE));if(!a&&!o&&!s)throw Error(`invalid Legendre symbol result`);return a?1:o?0:-1}function gO(e,t){if(t!==void 0&&CD(t),e<=KD)throw Error(`invalid n length: expected positive n, got `+e);if(t!==void 0&&t<1)throw Error(`invalid n length: expected positive bit length, got `+t);let n=UD(e);if(t!==void 0&&t<n)throw Error(`invalid n length: expected bit length (${n}) >= n.length (${t})`);let r=t===void 0?n:t;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}var _O=new WeakMap,vO=class{ORDER;BITS;BYTES;isLE;ZERO=KD;ONE=qD;_lengths;_mod;constructor(e,t={}){if(e<=qD)throw Error(`invalid field: expected ORDER > 1, got `+e);let n;this.isLE=!1,typeof t==`object`&&t&&(typeof t.BITS==`number`&&(n=t.BITS),typeof t.sqrt==`function`&&Object.defineProperty(this,"sqrt",{value:t.sqrt,enumerable:!0}),typeof t.isLE==`boolean`&&(this.isLE=t.isLE),t.allowedLengths&&(this._lengths=Object.freeze(t.allowedLengths.slice())),typeof t.modFromBytes==`boolean`&&(this._mod=t.modFromBytes));let{nBitLength:r,nByteLength:i}=gO(e,n);if(i>2048)throw Error(`invalid field: expected ORDER of <= 2048 bytes`);this.ORDER=e,this.BITS=r,this.BYTES=i,Object.freeze(this)}create(e){return nO(e,this.ORDER)}isValid(e){if(typeof e!=`bigint`)throw TypeError(`invalid field element: expected bigint, got `+typeof e);return KD<=e&&e<this.ORDER}is0(e){return e===KD}isValidNot0(e){return!this.is0(e)&&this.isValid(e)}isOdd(e){return(e&qD)===qD}neg(e){return nO(-e,this.ORDER)}eql(e,t){return e===t}sqr(e){return nO(e*e,this.ORDER)}add(e,t){return nO(e+t,this.ORDER)}sub(e,t){return nO(e-t,this.ORDER)}mul(e,t){return nO(e*t,this.ORDER)}pow(e,t){return pO(this,e,t)}div(e,t){return nO(e*iO(t,this.ORDER),this.ORDER)}sqrN(e){return e*e}addN(e,t){return e+t}subN(e,t){return e-t}mulN(e,t){return e*t}inv(e){return iO(e,this.ORDER)}sqrt(e){let t=_O.get(this);return t||_O.set(this,t=uO(this.ORDER)),t(this,e)}toBytes(e){return this.isLE?LD(e,this.BYTES):ID(e,this.BYTES)}fromBytes(e,t=!1){SD(e);let{_lengths:n,BYTES:r,isLE:i,ORDER:a,_mod:o}=this;if(n){if(e.length<1||!n.includes(e.length)||e.length>r)throw Error(`Field.fromBytes: expected `+n+` bytes, got `+e.length);let t=new Uint8Array(r);t.set(e,i?0:t.length-e.length),e=t}if(e.length!==r)throw Error(`Field.fromBytes: expected `+r+` bytes, got `+e.length);let s=i?FD(e):PD(e);if(o&&(s=nO(s,a)),!t&&!this.isValid(s))throw Error(`invalid field element: outside of range 0..ORDER`);return s}invertBatch(e){return mO(this,e)}cmov(e,t,n){return kD(n,`condition`),n?t:e}};Object.freeze(vO.prototype);function yO(e,t={}){return new vO(e,t)}function bO(e){if(typeof e!=`bigint`)throw Error(`field order must be bigint`);if(e<=qD)throw Error(`field order must be greater than 1`);let t=UD(e-qD);return Math.ceil(t/8)}function xO(e){let t=bO(e);return t+Math.ceil(t/2)}function SO(e,t,n=!1){SD(e);let r=e.length,i=bO(t),a=Math.max(xO(t),16);if(r<a||r>1024)throw Error(`expected `+a+`-1024 bytes of input, got `+r);let o=nO(n?FD(e):PD(e),t-qD)+qD;return n?LD(o,i):ID(o,i)}var CO=BigInt(0),wO=BigInt(1);function TO(e,t){let n=t.negate();return e?n:t}function EO(e,t){let n=mO(e.Fp,t.map(e=>e.Z));return t.map((t,r)=>e.fromAffine(t.toAffine(n[r])))}function DO(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error(`invalid window size, expected [1..`+t+`], got W=`+e)}function OO(e,t){DO(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e;return{windows:n,windowSize:r,mask:WD(e),maxNumber:i,shiftBy:BigInt(e)}}function kO(e,t,n){let{windowSize:r,mask:i,maxNumber:a,shiftBy:o}=n,s=Number(e&i),c=e>>o;s>r&&(s-=a,c+=wO);let l=t*r,u=l+Math.abs(s)-1,d=s===0,f=s<0,p=t%2!=0;return{nextN:c,offset:u,isZero:d,isNeg:f,isNegF:p,offsetF:l}}var AO=new WeakMap,jO=new WeakMap;function MO(e){return jO.get(e)||1}function NO(e){if(e!==CO)throw Error(`invalid wNAF`)}var PO=class{BASE;ZERO;Fn;bits;constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,n=this.ZERO){let r=e;for(;t>CO;)t&wO&&(n=n.add(r)),r=r.double(),t>>=wO;return n}precomputeWindow(e,t){let{windows:n,windowSize:r}=OO(t,this.bits),i=[],a=e,o=a;for(let e=0;e<n;e++){o=a,i.push(o);for(let e=1;e<r;e++)o=o.add(a),i.push(o);a=o.double()}return i}wNAF(e,t,n){if(!this.Fn.isValid(n))throw Error(`invalid scalar`);let r=this.ZERO,i=this.BASE,a=OO(e,this.bits);for(let e=0;e<a.windows;e++){let{nextN:o,offset:s,isZero:c,isNeg:l,isNegF:u,offsetF:d}=kO(n,e,a);n=o,c?i=i.add(TO(u,t[d])):r=r.add(TO(l,t[s]))}return NO(n),{p:r,f:i}}wNAFUnsafe(e,t,n,r=this.ZERO){let i=OO(e,this.bits);for(let e=0;e<i.windows&&n!==CO;e++){let{nextN:a,offset:o,isZero:s,isNeg:c}=kO(n,e,i);if(n=a,!s){let e=t[o];r=r.add(c?e.negate():e)}}return NO(n),r}getPrecomputes(e,t,n){let r=AO.get(t);return r||(r=this.precomputeWindow(t,e),e!==1&&(typeof n==`function`&&(r=n(r)),AO.set(t,r))),r}cached(e,t,n){let r=MO(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)}unsafe(e,t,n,r){let i=MO(e);return i===1?this._unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)}createCache(e,t){DO(t,this.bits),jO.set(e,t),AO.delete(e)}hasCache(e){return MO(e)!==1}};function FO(e,t,n,r){let i=t,a=e.ZERO,o=e.ZERO;for(;n>CO||r>CO;)n&wO&&(a=a.add(i)),r&wO&&(o=o.add(i)),i=i.double(),n>>=wO,r>>=wO;return{p1:a,p2:o}}function IO(e,t,n){if(t){if(t.ORDER!==e)throw Error(`Field.ORDER must match order: Fp == p, Fn == n`);return fO(t),t}return yO(e,{isLE:n})}function LO(e,t,n={},r){if(r===void 0&&(r=e===`edwards`),!t||typeof t!=`object`)throw Error(`expected valid ${e} CURVE object`);for(let e of[`p`,`n`,`h`]){let n=t[e];if(!(typeof n==`bigint`&&n>CO))throw Error(`CURVE.${e} must be positive bigint`)}let i=IO(t.p,n.Fp,r),a=IO(t.n,n.Fn,r),o=[`Gx`,`Gy`,`a`,e===`weierstrass`?`b`:`d`];for(let e of o)if(!i.isValid(t[e]))throw Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:i,Fn:a}}function RO(e,t){return function(n){let r=e(n);return{secretKey:r,publicKey:t(r)}}}var zO=(e,t)=>(e+(e>=0?t:-t)/WO)/t;function BO(e,t,n){HD(`scalar`,e,HO,n);let[[r,i],[a,o]]=t,s=zO(o*e,n),c=zO(-i*e,n),l=e-s*r-c*a,u=-s*i-c*o,d=l<HO,f=u<HO;d&&(l=-l),f&&(u=-u);let p=WD(Math.ceil(UD(n)/2))+UO;if(l<HO||l>=p||u<HO||u>=p)throw Error(`splitScalar (endomorphism): failed for k`);return{k1neg:d,k1:l,k2neg:f,k2:u}}var VO={Err:class extends Error{constructor(e=``){super(e)}},_tlv:{encode:(e,t)=>{let{Err:n}=VO;if(jD(e,`tag`),e<0||e>255)throw new n(`tlv.encode: wrong tag`);if(typeof t!=`string`)throw TypeError(`"data" expected string, got type=`+typeof t);if(t.length&1)throw new n(`tlv.encode: unpadded data`);let r=t.length/2,i=MD(r);if(i.length/2&128)throw new n(`tlv.encode: long form length too big`);let a=r>127?MD(i.length/2|128):``;return MD(e)+a+i+t},decode(e,t){let{Err:n}=VO;t=SD(t,void 0,`DER data`);let r=0;if(e<0||e>255)throw new n(`tlv.encode: wrong tag`);if(t.length<2||t[r++]!==e)throw new n(`tlv.decode: wrong tlv`);let i=t[r++],a=!!(i&128),o=0;if(!a)o=i;else{let e=i&127;if(!e)throw new n(`tlv.decode(long): indefinite length not supported`);if(e>4)throw new n(`tlv.decode(long): byte length is too big`);let a=t.subarray(r,r+e);if(a.length!==e)throw new n(`tlv.decode: length bytes not complete`);if(a[0]===0)throw new n(`tlv.decode(long): zero leftmost byte`);for(let e of a)o=o<<8|e;if(r+=e,o<128)throw new n(`tlv.decode(long): not minimal encoding`)}let s=t.subarray(r,r+o);if(s.length!==o)throw new n(`tlv.decode: wrong value length`);return{v:s,l:t.subarray(r+o)}}},_int:{encode(e){let{Err:t}=VO;if(AD(e),e<HO)throw new t(`integer: negative integers are not allowed`);let n=MD(e);if(Number.parseInt(n[0],16)&8&&(n=`00`+n),n.length&1)throw new t(`unexpected DER parsing assertion: unpadded hex`);return n},decode(e){let{Err:t}=VO;if(e.length<1)throw new t(`invalid signature integer: empty`);if(e[0]&128)throw new t(`invalid signature integer: negative`);if(e.length>1&&e[0]===0&&!(e[1]&128))throw new t(`invalid signature integer: unnecessary leading zero`);return PD(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=VO,i=SD(e,void 0,`signature`),{v:a,l:o}=r.decode(48,i);if(o.length)throw new t(`invalid signature: left bytes after parsing`);let{v:s,l:c}=r.decode(2,a),{v:l,l:u}=r.decode(2,c);if(u.length)throw new t(`invalid signature: left bytes after parsing`);return{r:n.decode(s),s:n.decode(l)}},hexFromSig(e){let{_tlv:t,_int:n}=VO,r=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,r)}};Object.freeze(VO._tlv),Object.freeze(VO._int),Object.freeze(VO);var HO=BigInt(0),UO=BigInt(1),WO=BigInt(2),GO=BigInt(3),KO=BigInt(4);function qO(e,t={}){let n=LO(`weierstrass`,e,t),r=n.Fp,i=n.Fn,a=n.CURVE,{h:o,n:s}=a;GD(t,{},{allowInfinityPoint:`boolean`,clearCofactor:`function`,isTorsionFree:`function`,fromBytes:`function`,toBytes:`function`,endo:`object`});let{endo:c,allowInfinityPoint:l}=t;if(c&&(!r.is0(a.a)||typeof c.beta!=`bigint`||!Array.isArray(c.basises)))throw Error(`invalid endo: expected "beta": bigint and "basises": array`);let u=YO(r,i);function d(){if(!r.isOdd)throw Error(`compression is not supported: Field does not have .isOdd()`)}function f(e,t,n){if(l&&t.is0())return Uint8Array.of(0);let{x:i,y:a}=t.toAffine(),o=r.toBytes(i);return kD(n,`isCompressed`),n?(d(),TD(JO(!r.isOdd(a)),o)):TD(Uint8Array.of(4),o,r.toBytes(a))}function p(e){SD(e,void 0,`Point`);let{publicKey:t,publicKeyUncompressed:n}=u,i=e.length,a=e[0],o=e.subarray(1);if(l&&i===1&&a===0)return{x:r.ZERO,y:r.ZERO};if(i===t&&(a===2||a===3)){let e=r.fromBytes(o);if(!r.isValid(e))throw Error(`bad point: is not on curve, wrong x`);let t=g(e),n;try{n=r.sqrt(t)}catch(e){let t=e instanceof Error?`: `+e.message:``;throw Error(`bad point: is not on curve, sqrt error`+t)}d();let i=r.isOdd(n);return(a&1)==1!==i&&(n=r.neg(n)),{x:e,y:n}}if(i===n&&a===4){let e=r.BYTES,t=r.fromBytes(o.subarray(0,e)),n=r.fromBytes(o.subarray(e,e*2));if(!_(t,n))throw Error(`bad point: is not on curve`);return{x:t,y:n}}throw Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${n}`)}let m=t.toBytes===void 0?f:t.toBytes,h=t.fromBytes===void 0?p:t.fromBytes;function g(e){let t=r.sqr(e),n=r.mul(t,e);return r.add(r.add(n,r.mul(e,a.a)),a.b)}function _(e,t){let n=r.sqr(t),i=g(e);return r.eql(n,i)}if(!_(a.Gx,a.Gy))throw Error(`bad curve params: generator point`);let v=r.mul(r.pow(a.a,GO),KO),y=r.mul(r.sqr(a.b),BigInt(27));if(r.is0(r.add(v,y)))throw Error(`bad curve params: a or b`);function b(e,t,n=!1){if(!r.isValid(t)||n&&r.is0(t))throw Error(`bad point coordinate ${e}`);return t}function x(e){if(!(e instanceof w))throw Error(`Weierstrass Point expected`)}function S(e){if(!c||!c.basises)throw Error(`no endo`);return BO(e,c.basises,i.ORDER)}function C(e,t,n,i,a){return n=new w(r.mul(n.X,e),n.Y,n.Z),t=TO(i,t),n=TO(a,n),t.add(n)}class w{static BASE=new w(a.Gx,a.Gy,r.ONE);static ZERO=new w(r.ZERO,r.ONE,r.ZERO);static Fp=r;static Fn=i;X;Y;Z;constructor(e,t,n){this.X=b(`x`,e),this.Y=b(`y`,t,!0),this.Z=b(`z`,n),Object.freeze(this)}static CURVE(){return a}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error(`invalid affine point`);if(e instanceof w)throw Error(`projective point not allowed`);return r.is0(t)&&r.is0(n)?w.ZERO:new w(t,n,r.ONE)}static fromBytes(e){let t=w.fromAffine(h(SD(e,void 0,`point`)));return t.assertValidity(),t}static fromHex(e){return w.fromBytes(ED(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return E.createCache(this,e),t||this.multiply(GO),this}assertValidity(){let e=this;if(e.is0()){if(t.allowInfinityPoint&&r.is0(e.X)&&r.eql(e.Y,r.ONE)&&r.is0(e.Z))return;throw Error(`bad point: ZERO`)}let{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw Error(`bad point: x or y not field elements`);if(!_(n,i))throw Error(`bad point: equation left != right`);if(!e.isTorsionFree())throw Error(`bad point: not in prime-order subgroup`)}hasEvenY(){let{y:e}=this.toAffine();if(!r.isOdd)throw Error(`Field doesn't support isOdd`);return!r.isOdd(e)}equals(e){x(e);let{X:t,Y:n,Z:i}=this,{X:a,Y:o,Z:s}=e,c=r.eql(r.mul(t,s),r.mul(a,i)),l=r.eql(r.mul(n,s),r.mul(o,i));return c&&l}negate(){return new w(this.X,r.neg(this.Y),this.Z)}double(){let{a:e,b:t}=a,n=r.mul(t,GO),{X:i,Y:o,Z:s}=this,c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(i,i),f=r.mul(o,o),p=r.mul(s,s),m=r.mul(i,o);return m=r.add(m,m),u=r.mul(i,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(n,p),l=r.add(c,l),c=r.sub(f,l),l=r.add(f,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(n,u),p=r.mul(e,p),m=r.sub(d,p),m=r.mul(e,m),m=r.add(m,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,m),l=r.add(l,d),p=r.mul(o,s),p=r.add(p,p),d=r.mul(p,m),c=r.sub(c,d),u=r.mul(p,f),u=r.add(u,u),u=r.add(u,u),new w(c,l,u)}add(e){x(e);let{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:c}=e,l=r.ZERO,u=r.ZERO,d=r.ZERO,f=a.a,p=r.mul(a.b,GO),m=r.mul(t,o),h=r.mul(n,s),g=r.mul(i,c),_=r.add(t,n),v=r.add(o,s);_=r.mul(_,v),v=r.add(m,h),_=r.sub(_,v),v=r.add(t,i);let y=r.add(o,c);return v=r.mul(v,y),y=r.add(m,g),v=r.sub(v,y),y=r.add(n,i),l=r.add(s,c),y=r.mul(y,l),l=r.add(h,g),y=r.sub(y,l),d=r.mul(f,v),l=r.mul(p,g),d=r.add(l,d),l=r.sub(h,d),d=r.add(h,d),u=r.mul(l,d),h=r.add(m,m),h=r.add(h,m),g=r.mul(f,g),v=r.mul(p,v),h=r.add(h,g),g=r.sub(m,g),g=r.mul(f,g),v=r.add(v,g),m=r.mul(h,v),u=r.add(u,m),m=r.mul(y,v),l=r.mul(_,l),l=r.sub(l,m),m=r.mul(_,h),d=r.mul(y,d),d=r.add(d,m),new w(l,u,d)}subtract(e){return x(e),this.add(e.negate())}is0(){return this.equals(w.ZERO)}multiply(e){let{endo:n}=t;if(!i.isValidNot0(e))throw RangeError(`invalid scalar: out of range`);let r,a,o=e=>E.cached(this,e,e=>EO(w,e));if(n){let{k1neg:t,k1:i,k2neg:s,k2:c}=S(e),{p:l,f:u}=o(i),{p:d,f}=o(c);a=u.add(f),r=C(n.beta,l,d,t,s)}else{let{p:t,f:n}=o(e);r=t,a=n}return EO(w,[r,a])[0]}multiplyUnsafe(e){let{endo:n}=t,r=this,a=e;if(!i.isValid(a))throw RangeError(`invalid scalar: out of range`);if(a===HO||r.is0())return w.ZERO;if(a===UO)return r;if(E.hasCache(this))return this.multiply(a);if(n){let{k1neg:e,k1:t,k2neg:i,k2:o}=S(a),{p1:s,p2:c}=FO(w,r,t,o);return C(n.beta,s,c,e,i)}return E.unsafe(r,a)}toAffine(e){let t=this,n=e,{X:i,Y:a,Z:o}=t;if(r.eql(o,r.ONE))return{x:i,y:a};let s=t.is0();n??=s?r.ONE:r.inv(o);let c=r.mul(i,n),l=r.mul(a,n),u=r.mul(o,n);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw Error(`invZ was invalid`);return{x:c,y:l}}isTorsionFree(){let{isTorsionFree:e}=t;return o===UO?!0:e?e(w,this):E.unsafe(this,s).is0()}clearCofactor(){let{clearCofactor:e}=t;return o===UO?this:e?e(w,this):this.multiplyUnsafe(o)}isSmallOrder(){return o===UO?this.is0():this.clearCofactor().is0()}toBytes(e=!0){return kD(e,`isCompressed`),this.assertValidity(),m(w,this,e)}toHex(e=!0){return wD(this.toBytes(e))}toString(){return`<Point ${this.is0()?`ZERO`:this.toHex()}>`}}let T=i.BITS,E=new PO(w,t.endo?Math.ceil(T/2):T);return T>=8&&w.BASE.precompute(8),Object.freeze(w.prototype),Object.freeze(w),w}function JO(e){return Uint8Array.of(e?2:3)}function YO(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}var XO={p:BigInt(`0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f`),n:BigInt(`0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141`),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt(`0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798`),Gy:BigInt(`0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8`)},ZO={beta:BigInt(`0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee`),basises:[[BigInt(`0x3086d221a7d46bcde86c90e49284eb15`),-BigInt(`0xe4437ed6010e88286f547fa90abfe4c3`)],[BigInt(`0x114ca50f7a8e2f3f657c1108d9d44cfd8`),BigInt(`0x3086d221a7d46bcde86c90e49284eb15`)]]},QO=BigInt(0),$O=BigInt(2);function ek(e){let t=XO.p,n=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),o=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=rO(rO(rO(u,n,t)*u%t,n,t)*u%t,$O,t)*l%t,f=rO(d,i,t)*d%t,p=rO(f,a,t)*f%t,m=rO(p,s,t)*p%t,h=rO(rO(rO(rO(rO(rO(m,c,t)*m%t,s,t)*p%t,n,t)*u%t,o,t)*f%t,r,t)*l%t,$O,t);if(!tk.eql(tk.sqr(h),e))throw Error(`Cannot find square root`);return h}var tk=yO(XO.p,{sqrt:ek}),nk=qO(XO,{Fp:tk,endo:ZO}),rk={};function ik(e,...t){let n=rk[e];if(n===void 0){let t=xD(zD(e));n=TD(t,t),rk[e]=n}return xD(TD(n,...t))}var ak=e=>e.toBytes(!0).slice(1),ok=e=>e%$O===QO;function sk(e){let{Fn:t,BASE:n}=nk,r=t.fromBytes(e),i=n.multiply(r);return{scalar:ok(i.y)?r:t.neg(r),bytes:ak(i)}}function ck(e){let t=tk;if(!t.isValidNot0(e))throw Error(`invalid x: Fail if x ≥ p`);let n=t.create(e*e),r=t.create(n*e+BigInt(7)),i=t.sqrt(r);ok(i)||(i=t.neg(i));let a=nk.fromAffine({x:e,y:i});return a.assertValidity(),a}var lk=PD;function uk(...e){return nk.Fn.create(lk(ik(`BIP0340/challenge`,...e)))}function dk(e){return sk(e).bytes}function fk(e,t,n=dD(32)){let{Fn:r,BASE:i}=nk,a=SD(e,void 0,`message`),{bytes:o,scalar:s}=sk(t),c=SD(n,32,`auxRand`),l=ik(`BIP0340/nonce`,r.toBytes(s^lk(ik(`BIP0340/aux`,c))),o,a),u=r.create(lk(l));if(u===0n)throw Error(`sign failed: k is zero`);let d=i.multiply(u),f=ok(d.y)?u:r.neg(u),p=ak(d),m=uk(p,o,a),h=new Uint8Array(64);if(h.set(p,0),h.set(r.toBytes(r.create(f+m*s)),32),!pk(h,a,o))throw Error(`sign: Invalid signature produced`);return h}function pk(e,t,n){let{Fp:r,Fn:i,BASE:a}=nk,o=SD(e,64,`signature`),s=SD(t,void 0,`message`),c=SD(n,32,`publicKey`);try{let e=ck(lk(c)),t=lk(o.subarray(0,32));if(!r.isValidNot0(t))return!1;let n=lk(o.subarray(32,64));if(!i.isValidNot0(n))return!1;let l=uk(i.toBytes(t),ak(e),s),u=a.multiplyUnsafe(n).add(e.multiplyUnsafe(i.neg(l))),{x:d,y:f}=u.toAffine();return!(u.is0()||!ok(f)||d!==t)}catch{return!1}}var mk=(()=>{let e=e=>(e=e===void 0?dD(48):e,SO(e,XO.n));return Object.freeze({keygen:RO(e,dk),getPublicKey:dk,sign:fk,verify:pk,Point:nk,utils:Object.freeze({randomSecretKey:e,taggedHash:ik,lift_x:ck,pointToBytes:ak}),lengths:Object.freeze({secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48})})})();new TextDecoder(`utf-8`);var hk=new TextEncoder,gk=`https://w3id.org/security#`;function _k(){return{id:``,created:``,dateDeleted:``,content:``,maker:``,sig:``}}function vk(e){return JSON.stringify(e)}function yk(e){return aD(xD(hk.encode(vk(e))))}function bk(e,t,n){return mk.verify(cD(e),cD(yk(t)),cD(n))}function xk(e,t){return aD(mk.sign(cD(yk(e)),cD(t)))}var Sk=e=>{let t=n.store.any(e,R.space(`preferencesFile`),null,e.doc())?.value;if(t=t?.split(`/`).slice(0,-2).join(`/`),!t)throw Error(`prefererencesFile is expected to exist in ${e}`);return t},Ck=e=>{let t;try{t=`${Sk(e)}/profile/keys/publicKey.ttl`}catch(e){dS(e)}return t},wk=e=>{let t;try{t=`${Sk(e)}/settings/keys/privateKey.ttl`}catch(e){dS(e)}return t};async function Tk(e,t){return await Dk(e,t,`publicKey`)}async function Ek(e,t){return await Dk(e,t,`privateKey`)}async function Dk(e,t,r){try{return await n.store.fetcher.load(t),n.store.any(e,R.solid(r))?.value}catch(e){if(e.response.status===404){W(`createIfNotExists: doc does NOT exist, will create... `+t);try{await n.store.fetcher.webOperation(`PUT`,t,{data:``,contentType:`text/turtle`})}catch(e){throw W(`createIfNotExists doc FAILED: `+t+`: `+e),e}delete n.store.fetcher.requested[t];return}throw W(`createIfNotExists doc FAILED: `+t+`: `+e),e}}async function Ok(e,t){await n.store.fetcher.load(e);let r=n.store.any(n.store.sym(e),n.store.sym(`http://www.iana.org/assignments/link-relations/acl`));if(!r)throw Error(`Key ACL doc not found!`);try{await n.store.fetcher.webOperation(`PUT`,r.value,{data:t,contentType:`text/turtle`})}catch(e){if(e?.response?.status!==404)throw Error(e);W(`delete `+r.value+` `+e.response.status)}}var kk=e=>`
2342
2037
  @prefix : <#>.
2343
2038
  @prefix acl: <http://www.w3.org/ns/auth/acl#>.
2344
2039
  @prefix foaf: <http://xmlns.com/foaf/0.1/>.
@@ -2350,7 +2045,7 @@ optional { ?location wdt:P17 ?country }
2350
2045
  acl:default key:;
2351
2046
  acl:agent <${e}>;
2352
2047
  acl:mode acl:Read, acl:Write.
2353
- `,pT=(e,t)=>{let n=`acl:agentClass foaf:Agent`;return t?.length&&(n=`acl:agent <${t}>`),`
2048
+ `,Ak=(e,t)=>{let n=`acl:agentClass foaf:Agent`;return t?.length&&(n=`acl:agent <${t}>`),`
2354
2049
  @prefix foaf: <http://xmlns.com/foaf/0.1/>.
2355
2050
  @prefix acl: <http://www.w3.org/ns/auth/acl#>.
2356
2051
  <#Read>
@@ -2358,22 +2053,22 @@ optional { ?location wdt:P17 ?country }
2358
2053
  ${n};
2359
2054
  acl:accessTo <${e.split(`/`).pop()}>;
2360
2055
  acl:mode acl:Read.
2361
- `};function mT(){return US(Zw.utils.randomSecretKey())}function hT(e){return US(Zw.getPublicKey(KS(e)))}async function gT(e){await n.store.fetcher.load(e);let t=await oT(e);try{return await n.store.fetcher.load(t),n.store.any(e,I.solid(`publicKey`))?.value}catch{return}}async function _T(e){await n.store.fetcher.load(e);let r=await oT(e),i=await sT(e),a=await cT(e,r),o=await lT(e,i),s=!0;if(o&&a!==hT(o)&&confirm(`This is strange the publicKey is not valid for
2362
- `+e?.uri+`'shall we repair keeping the private key ?`)&&(s=!1),!o||!a||!s){let c=[],l=[];if(o||(o=mT(),l=[t.st(e,I.solid(`privateKey`),t.literal(o),n.store.sym(i))],await yT(i,[],l,e.uri)),!a||!s){c=[],a&&(c=[t.st(e,I.solid(`publicKey`),t.lit(a),n.store.sym(r))],V(`delete invalid publicKey `+c));let i=hT(o);l=[t.st(e,I.solid(`publicKey`),t.literal(i),n.store.sym(r))],await yT(r,c,l)}await dT(i.substring(0,i.lastIndexOf(`/`)+1),fT(e.uri))}return o}var vT=async e=>{await n.store.fetcher.load(e);let t=n.store.any(n.store.sym(e),n.store.sym(`http://www.iana.org/assignments/link-relations/acl`));if(t)try{let e=await n.store.fetcher.webOperation(`DELETE`,t.value);V(`delete keyAcl`+t.value+` `+e.status)}catch(e){if(e.response.status!==404)throw Error(e);V(`delete keyAcl`+t.value+` `+e.response.status)}};async function yT(e,t,r,i=``){await vT(e),await n.store.updater.updateMany(t,r),await dT(e,pT(e,i))}var bT=class{constructor(e,t){this.channel=e,this.channelRoot=e.doc(),this.options=t,this.dateFolder=new MS(this.channelRoot,`chat.ttl`),this.div=null}async createMessage(e){return this.updateMessage(e)}async updateMessage(e,r=null,i,a=null){let o=[],s=new Date,c=``+s.getTime(),l=t.term(s),u=r?r.doc():this.dateFolder.leafDocumentFromDate(s),d=n.store.sym(u.uri+`#Msg`+c),f=n.authn.currentUser(),p=eT();if(p.id=d.uri,r){let e=n.store.any(r,I.foaf(`maker`));if(e.uri===f.uri){let e=await CT(r);o.push(t.st(e,I.dct(`isReplacedBy`),d,u));let a=n.store.any(e,I.sioc(`has_reply`));a&&o.push(t.st(d,I.sioc(`has_reply`),a,u)),i&&o.push(t.st(d,I.schema(`dateDeleted`),l,u))}else{let t=`Error you cannot delete/edit a message from someone else :
2363
- `+e.uri;throw H(t),alert(t),Error(t)}}else o.push(t.st(this.channel,I.wf(`message`),d,u));if(o.push(t.st(d,I.sioc(`content`),n.store.literal(e),u)),p.content=e,o.push(t.st(d,I.dct(`created`),l,u)),p.created=l.value,f){o.push(t.st(d,I.foaf(`maker`),f,u)),p.maker=f.uri;let e=iT(p,await _T(f));o.push(t.st(d,t.sym(`${$w}proofValue`),t.lit(e),u))}a&&(o.push(t.st(a,I.sioc(`has_member`),d,u)),a.doc().sameTerm(d.doc())||o.push(t.st(a,I.sioc(`has_member`),d,a.doc())));try{await n.store.updater.updateMany([],o)}catch(e){let t=`Error saving chat message: `+e;throw H(t),alert(t),Error(t)}return d}async deleteMessage(e){return this.updateMessage(`(message deleted)`,e,!0)}async createThread(e){let r=n.store.each(e,I.sioc(`has_reply`),null,e.doc()).filter(e=>n.store.holds(e,I.rdf(`type`),I.sioc(`Thread`),e.doc()));if(r.length>0)return r[0];let i=t.sym(e.uri+`-thread`),a=[t.st(i,I.rdf(`type`),I.sioc(`Thread`),i.doc()),t.st(e,I.sioc(`has_reply`),i,i.doc())];return await n.store.updater.update([],a),i}};async function xT(e){let t=[e],r={};r[e.uri]=!0;let i=e;for(;;){let e=n.store.any(null,I.dct(`isReplacedBy`),i,i.doc());if(!e||r[e.uri])break;await n.store.fetcher.load(e),t.unshift(e),r[e.uri]=!0,i=e}for(i=e;;){let e=n.store.any(i,I.dct(`isReplacedBy`),null,i.doc());if(!e||r[e.uri])break;t.push(e),r[e.uri]=!0,i=e}return t}async function ST(e){let t=e,r={};for(;t;){if(r[t.uri])return Y_(`originalVersion: verion loop`+e),e;r[t.uri]=!0,e=t,await n.store.fetcher.load(e),t=n.store.any(null,I.dct(`isReplacedBy`),e,e.doc())}return e}async function CT(e){let t=e,r={};for(;t;){if(r[t.uri])return Y_(`mostRecentVersion: verion loop`+e),e;r[t.uri]=!0,e=t,await n.store.fetcher.load(e),t=n.store.any(e,I.dct(`isReplacedBy`),null,e.doc())}return e}function wT(e){return n.store.holds(e,I.schema(`dateDeleted`),null,e.doc())}var TT=d({manageParticipation:()=>AT,participationObject:()=>OT,recordParticipation:()=>kT,renderParticipants:()=>DT}),ET=n.solidLogicSingleton.store;function DT(e,t,n,r,i,a){t.setAttribute(`style`,G.participantsStyle);let o=function(n){let r=ET.any(n,I.wf(`participant`)),i;if(!r)return i=e.createElement(`tr`),i.textContent=`???`,i;let o=ET.anyValue(n,I.ui(`backgroundColor`))||W.participationDefaultBackground,s=e.createElement(`div`);s.setAttribute(`style`,G.participantsBlock),s.style.backgroundColor=o,i=Sy(e,null,r,a),t.appendChild(i);let c=e.createElement(`td`);return c.setAttribute(`style`,G.personTableTD),c.appendChild(s),i.insertBefore(c,i.firstChild),i},s=function(){let e=ET.each(r,I.wf(`participation`)).map(function(e){return V(`in participants`),[ET.anyValue(e,I.cal(`dtstart`))||`9999-12-31`,e]});e.sort(),E_(t,e.map(function(e){return e[1]}),o)};return t.refresh=s,s(),t}function OT(e,n,r){return new Promise(function(i,a){if(!r)throw Error(`No user id`);let o=ET.each(e,I.wf(`participation`)).filter(function(e){return ET.holds(e,I.wf(`participant`),r)});if(o.length>1){let e=[];for(let t of o){let n=ET.anyValue(t,I.cal(`dtstart`));n&&e.push([n,t])}e.sort(),H(`Multiple participation objects, picking earliest, in `+n),i(e[0][1])}if(o.length)i(o[0]);else{let o=gx(n),s=[(0,t.st)(e,I.wf(`participation`),o,n),(0,t.st)(o,I.wf(`participant`),r,n),(0,t.st)(o,I.cal(`dtstart`),new Date,n),(0,t.st)(o,I.ui(`backgroundColor`),PT(r),n)];ET.updater.update([],s,function(e,t,n){t?i(o):a(Error(`Error recording your participation: `+n))}),i(o)}})}function kT(e,r,i){let a=n.authn.currentUser();if(!a)return;let o=ET.each(e,I.wf(`participation`)).filter(function(e){return ET.holds(e,I.wf(`participant`),a)});if(o.length>1)throw Error(`Multiple records of your participation`);if(o.length)return o[0];{if(!ET.updater.editable(r))return V(`Not recording participation, as no write access as `+a+` to `+r),null;let n=gx(r),o=[(0,t.st)(e,I.wf(`participation`),n,r),(0,t.st)(n,I.wf(`participant`),a,r),(0,t.st)(n,I.cal(`dtstart`),new Date,r),(0,t.st)(n,I.ui(`backgroundColor`),PT(a),r)];return ET.updater.update([],o,function(e,t,n){if(!t)throw Error(`Error recording your participation: `+n);i&&i.refresh&&i.refresh()}),n}}function AT(e,t,n,r,i,a){let o=e.createElement(`table`);t.appendChild(o),DT(e,o,n,r,i,a);try{kT(r,n,o)}catch(n){t.appendChild(K(e,`Error recording your participation: `+n))}return o}var jT=d({getChunks:()=>IT,lightColorHash:()=>PT,manageParticipation:()=>AT,notepad:()=>FT,notepadToHTML:()=>RT,participationObject:()=>OT,recordParticipation:()=>kT,renderParticipants:()=>DT,xmlEncode:()=>LT}),MT=n.solidLogicSingleton.store,NT=(0,t.Namespace)(`http://www.w3.org/ns/pim/pad#`);function PT(e){return e&&e.uri?`#`+(function(e){return e.split(``).reduce(function(e,t){return e=(e<<5)-e+t.charCodeAt(0),e&e},0)}(e.uri)&16777215|12632256).toString(16):`#ffffff`}function FT(e,n,r,i,a){a||={};let o=a.exists,s=e.createElement(`table`),c=MT;if(i&&!i.uri)throw Error(`UI.pad.notepad: Invalid userid`);let l=MT.updater,u=(0,t.Namespace)(`http://www.w3.org/ns/pim/pad#`);s.setAttribute(`style`,G.notepadStyle);let d=null,f=null;if(a.statusArea){let t=a.statusArea.appendChild(e.createElement(`table`)).appendChild(e.createElement(`tr`));d=t.appendChild(e.createElement(`td`)),f=t.appendChild(e.createElement(`td`)),d&&d.setAttribute(`style`,G.upstreamStatus),f&&f.setAttribute(`style`,G.downstreamStatus)}let p=function(t,n=!1){V(t),a.statusArea&&(n?d:f).appendChild(K(e,t,`pink`))},m=function(e){a.statusArea&&(a.statusArea.innerHTML=``)},h=function(e,t,n){let r=e.subject;t||=``;let i=G.baseStyle,a=G.headingCore,o=G.headingStyle,s=c.any(r,I.dc(`author`));if(!t&&s){let e=PT(s);t=`color: `+(n?`#888`:`black`)+`; background-color: `+e+`;`}let l=c.any(r,u(`indent`));l=l?l.value:0;let d=l>=0?i+`text-indent: `+l*3+`em;`:a+o[-1-l];e.setAttribute(`style`,d+t)},g=function(e){let i=e.subject;if(!i)throw Error(`No chunk for line to be deleted!`);let a=c.any(void 0,u(`next`),i),o=c.any(i,u(`next`));if(a.sameTerm(r)&&o.sameTerm(r)){V(`You can't delete the only line.`);return}let s=c.statementsMatching(i,void 0,void 0,n).concat(c.statementsMatching(void 0,void 0,i,n)),d=[(0,t.st)(a,u(`next`),o,n)];if(i instanceof t.NamedNode&&V(`Deleting line `+i.uri.slice(-4)),!l)throw Error(`have no updater`);l.update(s,d,function(t,n,r,a){if(n){let t=e.parentNode;if(t){let e=t.previousSibling;t.parentNode&&t.parentNode.removeChild(t),e&&e.firstChild&&e.firstChild.focus()}}else if(a&&a.status===409)h(e,`color: black; background-color: #ffd;`),e.state=0,C_(.5,512),setTimeout(function(){E()},1e3);else{V(` removePart FAILED `+i+`: `+r),V(` removePart was deleting :'`+s),h(e,`color: black; background-color: #fdd;`);let t=a?a.status:` [no response field] `;p(`Error `+t+` saving changes: `+String(r))}})},_=function(e,r,i){let a=c.statementsMatching(r,u(`indent`)),o=a.length?Number(a[0].object.value):0;if(o+i<-3)return;let s=o+i,d=(0,t.st)(r,u(`indent`),s,n);if(!l)throw Error(`no updater`);l.update(a,d,function(t,r,i){r?h(e):(V(`Indent change FAILED '`+s+`' for `+n+`: `+i),h(e,`color: black; background-color: #fdd;`),l.requestDownstreamAction(n,E))})},v=function(e,r){let i=null;e.addEventListener(`keydown`,function(t){if(!l)throw Error(`no updater`);let i,a;switch(t.keyCode){case 13:{let n=t.shiftKey;if(V(`enter`),n?(a=c.any(void 0,u(`next`),r),i=`newlinesAfter`):(a=c.any(r,u(`next`)),i=`newlinesBefore`),a[i]=a[i]||0,a[i]+=1,a[i]>1){V(` queueing newline queue = `+a[i]);return}V(` go ahead line before `+a[i]),b(e,n);break}case 8:if(e.value.length===0)switch(V(`Delete key line `+r.uri.slice(-4)+` state `+e.state),e.state){case 1:case 2:e.state=4;return;case 3:case 4:return;case void 0:case 0:e.state=3,g(e),t.preventDefault();break;default:throw Error(`pad: Unexpected state `+e)}break;case 9:{let n=t.shiftKey?-1:1;_(e,r,n),t.preventDefault();break}case 27:V(`escape`),l.requestDownstreamAction(n,E),t.preventDefault();break;case 38:e.parentNode.previousSibling&&(e.parentNode.previousSibling.firstChild.focus(),t.preventDefault());break;case 40:e.parentNode.nextSibling&&(e.parentNode.nextSibling.firstChild.focus(),t.preventDefault());break;default:}});let a=function(e){let r=e.subject;h(e,void 0,!0);let i=c.any(r,I.sioc(`content`)).value,o=[(0,t.st)(r,I.sioc(`content`),i,n)],s;e.value&&(s=[(0,t.st)(r,I.sioc(`content`),e.value,n)]);let u=e.value;if(e.lastSent&&i!==e.lastSent&&console.warn(`Out of order, last sent expected '`+i+`' but found '`+e.lastSent+`'`),e.lastSent=u,!l)throw Error(`no updater`);l.update(o,s,function(t,r,o,s){if(r)m(!0),h(e),V(` Patch ok '`+i+`' -> '`+u+`' `),e.state===4?(e.state=3,g(e)):e.state===3||(e.state===2?(e.state=1,a(e)):e.state=0);else if(V(` patch FAILED `+s.status+` for '`+i+`' -> '`+u+`': `+o),s.status===409)h(e,`color: black; background-color: #fdd;`),e.state=0,C_(.5,512),setTimeout(function(){l.requestDownstreamAction(n,E)},1e3);else{h(e,`color: black; background-color: #fdd;`);let t=s?.status;!t||t===502||t===503?(e.lastSent=void 0,e.state=0,setTimeout(()=>{(e.state===0||e.state===void 0)&&(e.state=1,a(e))},2e3)):(e.state=0,p(` Error `+t+` sending data: `+o,!0),C_(1,128))}})};e.addEventListener(`input`,function(t){switch(h(e,void 0,!0),V(`Input event state `+e.state+` value '`+e.value+`'`),e.state){case 3:return;case 4:return;case 2:return;case 1:e.state=2;return;case 0:case void 0:i!==null&&clearTimeout(i),i=setTimeout(()=>{i=null,(e.state===0||e.state===void 0)&&(e.state=1,a(e))},400)}})},y=function(t,n,r){let a=c.any(n,I.sioc(`content`));a=a?a.value:``;let o=e.createElement(`tr`);r?s.insertBefore(o,t):t&&t.nextSibling?s.insertBefore(o,t.nextSibling):s.appendChild(o);let l=o.appendChild(e.createElement(`input`));return l.subject=n,l.setAttribute(`type`,`text`),l.value=a,i?(h(l,``),v(l,n)):(h(l,`color: #222; background-color: #fff`),V(`Note can't add listeners - not logged in`)),l},b=function(e,a){let o=MT,s=0,c=null,d,f,p,m,g;e?(e.tagName.toLowerCase()!==`input`&&V(`return pressed when current document is: `+e.tagName),d=e.subject,s=o.any(d,u(`indent`)),s=s?Number(s.value):0,a?(f=o.any(void 0,u(`next`),d),p=d,m=f,c=`newlinesAfter`):(f=d,p=o.any(d,u(`next`)),m=p,c=`newlinesBefore`),g=e.parentNode):(f=r,p=r,g=void 0);let _=gx(n),v=_.uri.slice(-4),x=[(0,t.st)(f,u(`next`),p,n)],S=[(0,t.st)(f,u(`next`),_,n),(0,t.st)(_,u(`next`),p,n),(0,t.st)(_,I.dc(`author`),i,n),(0,t.st)(_,I.sioc(`content`),``,n)];if(s>0&&S.push((0,t.st)(_,u(`indent`),s,n)),V(` Fresh chunk `+v+` proposed`),!l)throw Error(`no updater`);l.update(x,S,function(e,t,n,r){if(!t)V(` ERROR writing new line `+v+`: `+n);else{let e=y(g,_,a);h(e),e.focus(),c&&(V(` Fresh chunk `+v+` updated, queue = `+m[c]),--m[c],m[c]>0&&(V(` Implementing queued newlines = `+p.newLinesBefore),b(e,a)))}})},x=function(){let e={},t=0;function n(e){p(e),t++}if(!c.the(r,u(`next`)))return n(`No initial next pointer`),!1;let i=r,a;for(;a=c.the(i,u(`next`)),a||n(`No next pointer from `+i),!a.sameTerm(r);){i=a;let t=a.uri.split(`#`)[1];if(e[a.uri])return n(`Loop!`),!1;e[a.uri]=!0;let r=c.each(a,u(`next`)).length;r!==1&&n(`Should be 1 not `+r+` next pointer for `+t),r=c.each(a,u(`indent`)).length,r>1&&n(`Should be 0 or 1 not `+r+` indent for `+t),r=c.each(a,I.sioc(`content`)).length,r!==1&&n(`Should be 1 not `+r+` contents for `+t),r=c.each(a,I.dc(`author`)).length,r!==1&&n(`Should be 1 not `+r+` author for `+t),c.statementsMatching(void 0,I.sioc(`contents`)).forEach(function(t){e[t.subject.value]||n(`Loose chunk! `+t.subject.value)})}return!t},S=function(){if(c.each(r,u(`next`)).length!==1){let e=`Pad: Inconsistent data - NEXT pointers: `+c.each(r,u(`next`)).length;V(e),a.statusArea&&(a.statusArea.textContent+=e);return}let e,t=[];for(let e=c.the(r,u(`next`));!e.sameTerm(r);e=c.the(e,u(`next`)))for(let n=0;n<s.children.length;n++){let r=s.children[n];r.firstChild&&r.firstChild.subject.sameTerm(e)&&(t[e.uri]=r.firstChild)}for(let n=s.children.length-1;n>=0;n--)e=s.children[n],t[e.firstChild.subject.uri]||s.removeChild(e);e=s.firstChild;for(let n=c.the(r,u(`next`));!n.sameTerm(r);n=c.the(n,u(`next`))){let r=c.any(n,I.sioc(`content`)).value;if(e&&t[n.uri]){let t=e.firstChild;r!==t.value&&(t.value=r),h(t),t.state=0,delete t.lastSent,e=e.nextSibling}else y(e,n,!0)}},C=function(e){if(e.refresh){e.refresh();return}for(let t=0;t<e.children.length;t++)C(e.children[t])},w=!1,T=function(){V(` reloaded OK`),m(),x()?C(s):p(`CONSISTENCY CHECK FAILED`)},E=function(){if(w){V(` Already reloading - stop`);return}w=!0;let e=1e3,t=function(){if(V(`try reload - timeout = `+e),!l)throw Error(`no updater`);l.reload(l.store,n,function(r,i,a){w=!1,r?T():a.status===0?(p(`Network error refreshing the pad. Retrying in `+e/1e3),w=!0,e*=2,setTimeout(t,e)):p(`Error `+a.status+`refreshing the pad:`+i+`. Stopped. `+n)})};t()};if(s.refresh=S,s.reloadAndSync=E,i||V(`Warning: must be logged in for pad to be edited`),o)V(`Existing pad.`),x()?(S(),c.holds(r,u(`next`),r)&&b()):V(s.textContent=`Inconsistent data. Abort`);else{V(`No pad exists - making new one.`);let e=[(0,t.st)(r,I.rdf(`type`),u(`Notepad`),n),(0,t.st)(r,I.dc(`author`),i,n),(0,t.st)(r,I.dc(`created`),new Date,n),(0,t.st)(r,u(`next`),r,n)];if(!l)throw Error(`no updater`);l.update([],e,function(e,t,n){t?(V(`Initial pad created`),b()):p(n||``)})}return s}function IT(e,t){let n=[];for(let r=t.the(e,NT(`next`));!r.sameTerm(e);r=t.the(r,NT(`next`)))n.push(r);return n}function LT(e){return e.replace(`&`,`&amp;`).replace(`<`,`&lt;`).replace(`>`,`&gt;`)}function RT(e,t){let n=IT(e,t),r=`<html>
2056
+ `};function jk(){return aD(mk.utils.randomSecretKey())}function Mk(e){return aD(mk.getPublicKey(cD(e)))}async function Nk(e){await n.store.fetcher.load(e);let t=await Ck(e);try{return await n.store.fetcher.load(t),n.store.any(e,R.solid(`publicKey`))?.value}catch{return}}async function Pk(e){await n.store.fetcher.load(e);let r=await Ck(e),i=await wk(e),a=await Tk(e,r),o=await Ek(e,i),s=!0;if(o&&a!==Mk(o)&&confirm(`This is strange the publicKey is not valid for
2057
+ `+e?.uri+`'shall we repair keeping the private key ?`)&&(s=!1),!o||!a||!s){let c=[],l=[];if(o||(o=jk(),l=[t.st(e,R.solid(`privateKey`),t.literal(o),n.store.sym(i))],await Ik(i,[],l,e.uri)),!a||!s){c=[],a&&(c=[t.st(e,R.solid(`publicKey`),t.lit(a),n.store.sym(r))],W(`delete invalid publicKey `+c));let i=Mk(o);l=[t.st(e,R.solid(`publicKey`),t.literal(i),n.store.sym(r))],await Ik(r,c,l)}await Ok(i.substring(0,i.lastIndexOf(`/`)+1),kk(e.uri))}return o}var Fk=async e=>{await n.store.fetcher.load(e);let t=n.store.any(n.store.sym(e),n.store.sym(`http://www.iana.org/assignments/link-relations/acl`));if(t)try{let e=await n.store.fetcher.webOperation(`DELETE`,t.value);W(`delete keyAcl`+t.value+` `+e.status)}catch(e){if(e.response.status!==404)throw Error(e);W(`delete keyAcl`+t.value+` `+e.response.status)}};async function Ik(e,t,r,i=``){await Fk(e),await n.store.updater.updateMany(t,r),await Ok(e,Ak(e,i))}var Lk=class{constructor(e,t){this.channel=e,this.channelRoot=e.doc(),this.options=t,this.dateFolder=new JE(this.channelRoot,`chat.ttl`),this.div=null}async createMessage(e){return this.updateMessage(e)}async updateMessage(e,r=null,i,a=null){let o=[],s=new Date,c=``+s.getTime(),l=t.term(s),u=r?r.doc():this.dateFolder.leafDocumentFromDate(s),d=n.store.sym(u.uri+`#Msg`+c),f=n.authn.currentUser(),p=_k();if(p.id=d.uri,r){let e=n.store.any(r,R.foaf(`maker`));if(e.uri===f.uri){let e=await Bk(r);o.push(t.st(e,R.dct(`isReplacedBy`),d,u));let a=n.store.any(e,R.sioc(`has_reply`));a&&o.push(t.st(d,R.sioc(`has_reply`),a,u)),i&&o.push(t.st(d,R.schema(`dateDeleted`),l,u))}else{let t=`Error you cannot delete/edit a message from someone else :
2058
+ `+e.uri;throw G(t),alert(t),Error(t)}}else o.push(t.st(this.channel,R.wf(`message`),d,u));if(o.push(t.st(d,R.sioc(`content`),n.store.literal(e),u)),p.content=e,o.push(t.st(d,R.dct(`created`),l,u)),p.created=l.value,f){o.push(t.st(d,R.foaf(`maker`),f,u)),p.maker=f.uri;let e=xk(p,await Pk(f));o.push(t.st(d,t.sym(`${gk}proofValue`),t.lit(e),u))}a&&(o.push(t.st(a,R.sioc(`has_member`),d,u)),a.doc().sameTerm(d.doc())||o.push(t.st(a,R.sioc(`has_member`),d,a.doc())));try{await n.store.updater.updateMany([],o)}catch(e){let t=`Error saving chat message: `+e;throw G(t),alert(t),Error(t)}return d}async deleteMessage(e){return this.updateMessage(`(message deleted)`,e,!0)}async createThread(e){let r=n.store.each(e,R.sioc(`has_reply`),null,e.doc()).filter(e=>n.store.holds(e,R.rdf(`type`),R.sioc(`Thread`),e.doc()));if(r.length>0)return r[0];let i=t.sym(e.uri+`-thread`),a=[t.st(i,R.rdf(`type`),R.sioc(`Thread`),i.doc()),t.st(e,R.sioc(`has_reply`),i,i.doc())];return await n.store.updater.update([],a),i}};async function Rk(e){let t=[e],r={};r[e.uri]=!0;let i=e;for(;;){let e=n.store.any(null,R.dct(`isReplacedBy`),i,i.doc());if(!e||r[e.uri])break;await n.store.fetcher.load(e),t.unshift(e),r[e.uri]=!0,i=e}for(i=e;;){let e=n.store.any(i,R.dct(`isReplacedBy`),null,i.doc());if(!e||r[e.uri])break;t.push(e),r[e.uri]=!0,i=e}return t}async function zk(e){let t=e,r={};for(;t;){if(r[t.uri])return dS(`originalVersion: verion loop`+e),e;r[t.uri]=!0,e=t,await n.store.fetcher.load(e),t=n.store.any(null,R.dct(`isReplacedBy`),e,e.doc())}return e}async function Bk(e){let t=e,r={};for(;t;){if(r[t.uri])return dS(`mostRecentVersion: verion loop`+e),e;r[t.uri]=!0,e=t,await n.store.fetcher.load(e),t=n.store.any(e,R.dct(`isReplacedBy`),null,e.doc())}return e}function Vk(e){return n.store.holds(e,R.schema(`dateDeleted`),null,e.doc())}var Hk=d({manageParticipation:()=>qk,participationObject:()=>Gk,recordParticipation:()=>Kk,renderParticipants:()=>Wk}),Uk=n.solidLogicSingleton.store;function Wk(e,t,n,r,i,a){t.setAttribute(`style`,U.participantsStyle);let o=function(n){let r=Uk.any(n,R.wf(`participant`)),i;if(!r)return i=e.createElement(`tr`),i.textContent=`???`,i;let o=Uk.anyValue(n,R.ui(`backgroundColor`))||H.participationDefaultBackground,s=e.createElement(`div`);s.setAttribute(`style`,U.participantsBlock),s.style.backgroundColor=o,i=RC(e,null,r,a),t.appendChild(i);let c=e.createElement(`td`);return c.setAttribute(`style`,U.personTableTD),c.appendChild(s),i.insertBefore(c,i.firstChild),i},s=function(){let e=Uk.each(r,R.wf(`participation`)).map(function(e){return W(`in participants`),[Uk.anyValue(e,R.cal(`dtstart`))||`9999-12-31`,e]});e.sort(),uy(t,e.map(function(e){return e[1]}),o)};return t.refresh=s,s(),t}function Gk(e,n,r){return new Promise(function(i,a){if(!r)throw Error(`No user id`);let o=Uk.each(e,R.wf(`participation`)).filter(function(e){return Uk.holds(e,R.wf(`participant`),r)});if(o.length>1){let e=[];for(let t of o){let n=Uk.anyValue(t,R.cal(`dtstart`));n&&e.push([n,t])}e.sort(),G(`Multiple participation objects, picking earliest, in `+n),i(e[0][1])}if(o.length)i(o[0]);else{let o=MT(n),s=[(0,t.st)(e,R.wf(`participation`),o,n),(0,t.st)(o,R.wf(`participant`),r,n),(0,t.st)(o,R.cal(`dtstart`),new Date,n),(0,t.st)(o,R.ui(`backgroundColor`),Zk(r),n)];Uk.updater.update([],s,function(e,t,n){t?i(o):a(Error(`Error recording your participation: `+n))}),i(o)}})}function Kk(e,r,i){let a=n.authn.currentUser();if(!a)return;let o=Uk.each(e,R.wf(`participation`)).filter(function(e){return Uk.holds(e,R.wf(`participant`),a)});if(o.length>1)throw Error(`Multiple records of your participation`);if(o.length)return o[0];{if(!Uk.updater.editable(r))return W(`Not recording participation, as no write access as `+a+` to `+r),null;let n=MT(r),o=[(0,t.st)(e,R.wf(`participation`),n,r),(0,t.st)(n,R.wf(`participant`),a,r),(0,t.st)(n,R.cal(`dtstart`),new Date,r),(0,t.st)(n,R.ui(`backgroundColor`),Zk(a),r)];return Uk.updater.update([],o,function(e,t,n){if(!t)throw Error(`Error recording your participation: `+n);i&&i.refresh&&i.refresh()}),n}}function qk(e,t,n,r,i,a){let o=e.createElement(`table`);t.appendChild(o),Wk(e,o,n,r,i,a);try{Kk(r,n,o)}catch(n){t.appendChild(q(e,`Error recording your participation: `+n))}return o}var Jk=d({getChunks:()=>$k,lightColorHash:()=>Zk,manageParticipation:()=>qk,notepad:()=>Qk,notepadToHTML:()=>tA,participationObject:()=>Gk,recordParticipation:()=>Kk,renderParticipants:()=>Wk,xmlEncode:()=>eA}),Yk=n.solidLogicSingleton.store,Xk=(0,t.Namespace)(`http://www.w3.org/ns/pim/pad#`);function Zk(e){return e&&e.uri?`#`+(function(e){return e.split(``).reduce(function(e,t){return e=(e<<5)-e+t.charCodeAt(0),e&e},0)}(e.uri)&16777215|12632256).toString(16):`#ffffff`}function Qk(e,n,r,i,a){a||={};let o=a.exists,s=e.createElement(`table`),c=Yk;if(i&&!i.uri)throw Error(`UI.pad.notepad: Invalid userid`);let l=Yk.updater,u=(0,t.Namespace)(`http://www.w3.org/ns/pim/pad#`);s.setAttribute(`style`,U.notepadStyle);let d=null,f=null;if(a.statusArea){let t=a.statusArea.appendChild(e.createElement(`table`)).appendChild(e.createElement(`tr`));d=t.appendChild(e.createElement(`td`)),f=t.appendChild(e.createElement(`td`)),d&&d.setAttribute(`style`,U.upstreamStatus),f&&f.setAttribute(`style`,U.downstreamStatus)}let p=function(t,n=!1){W(t),a.statusArea&&(n?d:f).appendChild(q(e,t,`pink`))},m=function(e){a.statusArea&&(a.statusArea.innerHTML=``)},h=function(e,t,n){let r=e.subject;t||=``;let i=U.baseStyle,a=U.headingCore,o=U.headingStyle,s=c.any(r,R.dc(`author`));if(!t&&s){let e=Zk(s);t=`color: `+(n?`#888`:`black`)+`; background-color: `+e+`;`}let l=c.any(r,u(`indent`));l=l?l.value:0;let d=l>=0?i+`text-indent: `+l*3+`em;`:a+o[-1-l];e.setAttribute(`style`,d+t)},g=function(e){let i=e.subject;if(!i)throw Error(`No chunk for line to be deleted!`);let a=c.any(void 0,u(`next`),i),o=c.any(i,u(`next`));if(a.sameTerm(r)&&o.sameTerm(r)){W(`You can't delete the only line.`);return}let s=c.statementsMatching(i,void 0,void 0,n).concat(c.statementsMatching(void 0,void 0,i,n)),d=[(0,t.st)(a,u(`next`),o,n)];if(i instanceof t.NamedNode&&W(`Deleting line `+i.uri.slice(-4)),!l)throw Error(`have no updater`);l.update(s,d,function(t,n,r,a){if(n){let t=e.parentNode;if(t){let e=t.previousSibling;t.parentNode&&t.parentNode.removeChild(t),e&&e.firstChild&&e.firstChild.focus()}}else if(a&&a.status===409)h(e,`color: black; background-color: #ffd;`),e.state=0,sy(.5,512),setTimeout(function(){E()},1e3);else{W(` removePart FAILED `+i+`: `+r),W(` removePart was deleting :'`+s),h(e,`color: black; background-color: #fdd;`);let t=a?a.status:` [no response field] `;p(`Error `+t+` saving changes: `+String(r))}})},_=function(e,r,i){let a=c.statementsMatching(r,u(`indent`)),o=a.length?Number(a[0].object.value):0;if(o+i<-3)return;let s=o+i,d=(0,t.st)(r,u(`indent`),s,n);if(!l)throw Error(`no updater`);l.update(a,d,function(t,r,i){r?h(e):(W(`Indent change FAILED '`+s+`' for `+n+`: `+i),h(e,`color: black; background-color: #fdd;`),l.requestDownstreamAction(n,E))})},v=function(e,r){let i=null;e.addEventListener(`keydown`,function(t){if(!l)throw Error(`no updater`);let i,a;switch(t.keyCode){case 13:{let n=t.shiftKey;if(W(`enter`),n?(a=c.any(void 0,u(`next`),r),i=`newlinesAfter`):(a=c.any(r,u(`next`)),i=`newlinesBefore`),a[i]=a[i]||0,a[i]+=1,a[i]>1){W(` queueing newline queue = `+a[i]);return}W(` go ahead line before `+a[i]),b(e,n);break}case 8:if(e.value.length===0)switch(W(`Delete key line `+r.uri.slice(-4)+` state `+e.state),e.state){case 1:case 2:e.state=4;return;case 3:case 4:return;case void 0:case 0:e.state=3,g(e),t.preventDefault();break;default:throw Error(`pad: Unexpected state `+e)}break;case 9:{let n=t.shiftKey?-1:1;_(e,r,n),t.preventDefault();break}case 27:W(`escape`),l.requestDownstreamAction(n,E),t.preventDefault();break;case 38:e.parentNode.previousSibling&&(e.parentNode.previousSibling.firstChild.focus(),t.preventDefault());break;case 40:e.parentNode.nextSibling&&(e.parentNode.nextSibling.firstChild.focus(),t.preventDefault())}});let a=function(e){let r=e.subject;h(e,void 0,!0);let i=c.any(r,R.sioc(`content`)).value,o=[(0,t.st)(r,R.sioc(`content`),i,n)],s;e.value&&(s=[(0,t.st)(r,R.sioc(`content`),e.value,n)]);let u=e.value;if(e.lastSent&&i!==e.lastSent&&console.warn(`Out of order, last sent expected '`+i+`' but found '`+e.lastSent+`'`),e.lastSent=u,!l)throw Error(`no updater`);l.update(o,s,function(t,r,o,s){if(r)m(!0),h(e),W(` Patch ok '`+i+`' -> '`+u+`' `),e.state===4?(e.state=3,g(e)):e.state===3||(e.state===2?(e.state=1,a(e)):e.state=0);else if(W(` patch FAILED `+s.status+` for '`+i+`' -> '`+u+`': `+o),s.status===409)h(e,`color: black; background-color: #fdd;`),e.state=0,sy(.5,512),setTimeout(function(){l.requestDownstreamAction(n,E)},1e3);else{h(e,`color: black; background-color: #fdd;`);let t=s?.status;!t||t===502||t===503?(e.lastSent=void 0,e.state=0,setTimeout(()=>{(e.state===0||e.state===void 0)&&(e.state=1,a(e))},2e3)):(e.state=0,p(` Error `+t+` sending data: `+o,!0),sy(1,128))}})};e.addEventListener(`input`,function(t){switch(h(e,void 0,!0),W(`Input event state `+e.state+` value '`+e.value+`'`),e.state){case 3:return;case 4:return;case 2:return;case 1:e.state=2;return;case 0:case void 0:i!==null&&clearTimeout(i),i=setTimeout(()=>{i=null,(e.state===0||e.state===void 0)&&(e.state=1,a(e))},400)}})},y=function(t,n,r){let a=c.any(n,R.sioc(`content`));a=a?a.value:``;let o=e.createElement(`tr`);r?s.insertBefore(o,t):t&&t.nextSibling?s.insertBefore(o,t.nextSibling):s.appendChild(o);let l=o.appendChild(e.createElement(`input`));return l.subject=n,l.setAttribute(`type`,`text`),l.value=a,i?(h(l,``),v(l,n)):(h(l,`color: #222; background-color: #fff`),W(`Note can't add listeners - not logged in`)),l},b=function(e,a){let o=Yk,s=0,c=null,d,f,p,m,g;e?(e.tagName.toLowerCase()!==`input`&&W(`return pressed when current document is: `+e.tagName),d=e.subject,s=o.any(d,u(`indent`)),s=s?Number(s.value):0,a?(f=o.any(void 0,u(`next`),d),p=d,m=f,c=`newlinesAfter`):(f=d,p=o.any(d,u(`next`)),m=p,c=`newlinesBefore`),g=e.parentNode):(f=r,p=r,g=void 0);let _=MT(n),v=_.uri.slice(-4),x=[(0,t.st)(f,u(`next`),p,n)],S=[(0,t.st)(f,u(`next`),_,n),(0,t.st)(_,u(`next`),p,n),(0,t.st)(_,R.dc(`author`),i,n),(0,t.st)(_,R.sioc(`content`),``,n)];if(s>0&&S.push((0,t.st)(_,u(`indent`),s,n)),W(` Fresh chunk `+v+` proposed`),!l)throw Error(`no updater`);l.update(x,S,function(e,t,n,r){if(!t)W(` ERROR writing new line `+v+`: `+n);else{let e=y(g,_,a);h(e),e.focus(),c&&(W(` Fresh chunk `+v+` updated, queue = `+m[c]),--m[c],m[c]>0&&(W(` Implementing queued newlines = `+p.newLinesBefore),b(e,a)))}})},x=function(){let e={},t=0;function n(e){p(e),t++}if(!c.the(r,u(`next`)))return n(`No initial next pointer`),!1;let i=r,a;for(;a=c.the(i,u(`next`)),a||n(`No next pointer from `+i),!a.sameTerm(r);){i=a;let t=a.uri.split(`#`)[1];if(e[a.uri])return n(`Loop!`),!1;e[a.uri]=!0;let r=c.each(a,u(`next`)).length;r!==1&&n(`Should be 1 not `+r+` next pointer for `+t),r=c.each(a,u(`indent`)).length,r>1&&n(`Should be 0 or 1 not `+r+` indent for `+t),r=c.each(a,R.sioc(`content`)).length,r!==1&&n(`Should be 1 not `+r+` contents for `+t),r=c.each(a,R.dc(`author`)).length,r!==1&&n(`Should be 1 not `+r+` author for `+t),c.statementsMatching(void 0,R.sioc(`contents`)).forEach(function(t){e[t.subject.value]||n(`Loose chunk! `+t.subject.value)})}return!t},S=function(){if(c.each(r,u(`next`)).length!==1){let e=`Pad: Inconsistent data - NEXT pointers: `+c.each(r,u(`next`)).length;W(e),a.statusArea&&(a.statusArea.textContent+=e);return}let e,t=[];for(let e=c.the(r,u(`next`));!e.sameTerm(r);e=c.the(e,u(`next`)))for(let n=0;n<s.children.length;n++){let r=s.children[n];r.firstChild&&r.firstChild.subject.sameTerm(e)&&(t[e.uri]=r.firstChild)}for(let n=s.children.length-1;n>=0;n--)e=s.children[n],t[e.firstChild.subject.uri]||s.removeChild(e);e=s.firstChild;for(let n=c.the(r,u(`next`));!n.sameTerm(r);n=c.the(n,u(`next`))){let r=c.any(n,R.sioc(`content`)).value;if(e&&t[n.uri]){let t=e.firstChild;r!==t.value&&(t.value=r),h(t),t.state=0,delete t.lastSent,e=e.nextSibling}else y(e,n,!0)}},C=function(e){if(e.refresh){e.refresh();return}for(let t=0;t<e.children.length;t++)C(e.children[t])},w=!1,T=function(){W(` reloaded OK`),m(),x()?C(s):p(`CONSISTENCY CHECK FAILED`)},E=function(){if(w){W(` Already reloading - stop`);return}w=!0;let e=1e3,t=function(){if(W(`try reload - timeout = `+e),!l)throw Error(`no updater`);l.reload(l.store,n,function(r,i,a){w=!1,r?T():a.status===0?(p(`Network error refreshing the pad. Retrying in `+e/1e3),w=!0,e*=2,setTimeout(t,e)):p(`Error `+a.status+`refreshing the pad:`+i+`. Stopped. `+n)})};t()};if(s.refresh=S,s.reloadAndSync=E,i||W(`Warning: must be logged in for pad to be edited`),o)W(`Existing pad.`),x()?(S(),c.holds(r,u(`next`),r)&&b()):W(s.textContent=`Inconsistent data. Abort`);else{W(`No pad exists - making new one.`);let e=[(0,t.st)(r,R.rdf(`type`),u(`Notepad`),n),(0,t.st)(r,R.dc(`author`),i,n),(0,t.st)(r,R.dc(`created`),new Date,n),(0,t.st)(r,u(`next`),r,n)];if(!l)throw Error(`no updater`);l.update([],e,function(e,t,n){t?(W(`Initial pad created`),b()):p(n||``)})}return s}function $k(e,t){let n=[];for(let r=t.the(e,Xk(`next`));!r.sameTerm(e);r=t.the(r,Xk(`next`)))n.push(r);return n}function eA(e){return e.replace(`&`,`&amp;`).replace(`<`,`&lt;`).replace(`>`,`&gt;`)}function tA(e,t){let n=$k(e,t),r=`<html>
2364
2059
  <head>
2365
- `,i=t.anyValue(e,I.dct(`title`));i&&(r+=` <title>${LT(i)}</title>\n`),r+=` </head>
2060
+ `,i=t.anyValue(e,R.dct(`title`));i&&(r+=` <title>${eA(i)}</title>\n`),r+=` </head>
2366
2061
  <body>
2367
2062
  `;let a=0;function o(e){for(;a<e;a++)r+=`<ul>
2368
2063
  `}function s(e){for(;a>e;a--)r+=`</ul>
2369
- `}return n.forEach(e=>{let n=t.anyJS(e,NT(`indent`)),i=t.anyJS(e,I.sioc(`content`));if(!i)return;let a=LT(i);if(n<0){s(0);let e=n>=-3?4+n:1;r+=`\n<h${e}>${a}</h${e}>\n`}else n>0?(s(n),o(n),r+=`<li>${a}</li>\n`):(s(n),r+=`<p>${a}</p>\n`)}),s(0),r+=` </body>
2064
+ `}return n.forEach(e=>{let n=t.anyJS(e,Xk(`indent`)),i=t.anyJS(e,R.sioc(`content`));if(!i)return;let a=eA(i);if(n<0){s(0);let e=n>=-3?4+n:1;r+=`\n<h${e}>${a}</h${e}>\n`}else n>0?(s(n),o(n),r+=`<li>${a}</li>\n`):(s(n),r+=`<p>${a}</p>\n`)}),s(0),r+=` </body>
2370
2065
  </html>
2371
- `,r}var zT={icons:q,ns:I,media:OS,pad:jT,style:G,utils:__,widgets:bx},BT=t.Namespace(`http://www.w3.org/2002/01/bookmark#`),VT=`noun_45961.svg`,HT=B,UT=window.document||null;function WT(e,t){return new Promise(function(r,i){n.store.updater.update(e,t,function(e,t,n){t?r():i(Error(n))})})}async function GT(e){let r=BT(`Bookmark`);if(await Fx(e,r,!0),e.instances&&e.instances.length>0)e.bookmarkDocument=e.instances[0],e.instances.length>1&&H(`More than one bookmark file! `+e.instances);else if(e.publicProfile){let i=t.sym(e.publicProfile.dir().uri+`bookmarks.ttl`);try{V(`Creating new bookmark file `+i),await n.store.fetcher.createIfNotExists(i)}catch(t){return H(`Can't make fresh bookmark file:`+t),e}await n.createTypeIndexLogic.registerInTypeIndex(i,e.index,r),e.bookmarkDocument=i}else H(`You seem to have no bookmark file, nor even a profile file!`);return e}async function KT(e,r){let i=``,a=n.authn.currentUser();if(!a)throw Error(`Must be logged on to add Bookmark`);i=HT(n.store.any(r,I.foaf(`maker`)))+`: `+n.store.anyValue(r,I.sioc(`content`)).slice(0,80);let o=e.bookmarkDocument,s=zT.widgets.newThing(o,i),c=[t.st(o,zT.ns.dct(`references`),s,o),t.st(s,zT.ns.rdf(`type`),BT(`Bookmark`),o),t.st(s,zT.ns.dct(`created`),new Date,o),t.st(s,BT(`recalls`),r,o),t.st(s,zT.ns.foaf(`maker`),a,o),t.st(s,zT.ns.dct(`title`),i,o)];try{await WT([],c)}catch(e){return H(`Making bookmark: `+e),null}return s}async function qT(e,t,r){await n.store.fetcher.load(e.bookmarkDocument);let i=n.store.each(null,BT(`recalls`),t,e.bookmarkDocument);if(i.length){if(!confirm(`Delete bookmark on this?`+i.length))return;for(let e=0;e<i.length;e++)try{await WT(n.store.connectedStatements(i[e]),[]),r.style.backgroundColor=`white`,V(`Bookmark deleted: `+i[e])}catch(e){Y_(`Cant delete bookmark:`+e),H(`Cannot delete bookmark:`+e)}}else{let n=await KT(e,t);r.style.backgroundColor=`yellow`,V(`Bookmark added: `+n)}}async function JT(e,t){async function r(t){await n.store.fetcher.load(e.bookmarkDocument);let r=n.store.any(null,BT(`recalls`),t.target,e.bookmarkDocument);t.style=zT.style.buttonStyle,r&&(t.style.backgroundColor=`yellow`)}let i;if(e.bookmarkDocument)return i=zT.widgets.button(UT,zT.icons.iconBase+VT,HT(BT(`Bookmark`)),()=>{qT(e,t,i)}),i.target=t,await r(i),i}var YT=window.document,XT=`noun_253504.svg`,ZT=`noun_1384132.svg`,QT=`noun_1384135.svg`,$T=`noun-reply-5506924.svg`,eE={};eE[I.schema(`AgreeAction`)]=`👍`,eE[I.schema(`DisagreeAction`)]=`👎`,eE[I.schema(`EndorseAction`)]=`⭐️`,eE[I.schema(`LikeAction`)]=`❤️`;async function tE(e,t){let r=YT.createElement(`span`);async function i(){if(r.innerHTML=``,wT(e))return r;let i=(await xT(e)).map(e=>n.store.each(null,I.schema(`target`),e,t)).flat();if(i.length===0)return r;let a=i.map(e=>[n.store.any(e,I.rdf(`type`),null,t),n.store.any(e,I.sioc(`content`),null,t),n.store.any(e,I.schema(`agent`),null,t)]);a.sort(),a.forEach(e=>{let[t,n,i]=e,a;i?(a=YT.createElement(`a`),a.setAttribute(`href`,i.uri)):a=YT.createTextNode(``),a.textContent=n||eE[t]||`⬜️`,r.appendChild(a)})}return i().then(V(`sentimentStripLinked: sentimentStripLinked async refreshed`)),r.refresh=i,r}async function nE(e,r,i,a){async function o(){let t=n.store.any(e,I.foaf(`maker`));if(!f)alert(`You can't delete the message, you are not logged in.`);else if(f.sameTerm(t)){try{await a.deleteMessage(e)}catch(e){let t=`Error deleting messaage `+e;H(t),alert(t),(i.statusArea||r.parentNode).appendChild(K(YT,t))}r.parentNode.removeChild(r)}else alert(`You can't delete the message, you are not logged in as the author, `+t);u()}async function s(t){f.value===n.store.any(e,I.foaf(`maker`)).value&&(u(),await dE(t,e,a,i))}async function c(){let t=await a.createThread(e),n=i.chatOptions;if(!n)throw Error(`replyInThread: missing options`);n.showThread(t,n),u()}let l=YT.createElement(`div`);if(await CT(e).value===I.schema(`dateDeleted`).value)return l;function u(){l.parentElement.parentElement.removeChild(l.parentElement)}async function d(e){await n.store.updater.update(n.store.connectedStatements(e),[])}let f=n.authn.currentUser();f&&n.store.holds(e,I.foaf(`maker`),f)&&(l.appendChild(vy(YT,l,`message`,o)),l.appendChild(Y(YT,q.iconBase+XT,`edit`,()=>s(r)))),JT(i).then(e=>{e&&l.appendChild(e)});function p(e,i,a,o,s,c){function l(){u.style.backgroundColor=m?`yellow`:`white`}let u=Y(YT,a,B(o),async function(a){if(m)await d(m),m=null,l();else{m=gx(s);let a=[t.st(m,I.schema(`agent`),e.me,s),t.st(m,I.rdf(`type`),o,s),t.st(m,I.schema(`target`),i,s)];if(await n.store.updater.update([],a),l(),c){let e=!1;for(let t=0;t<c.length;t++){let n=f(c[t]);n&&(await d(n),e=!0)}e&&Dy(r)}}});function f(t){let r=n.store.each(null,I.schema(`agent`),e.me,s).filter(e=>n.store.holds(e,I.rdf(`type`),t,s)).filter(e=>n.store.holds(e,I.schema(`target`),i,s));return r.length?r[0]:null}function p(){m=f(o),l()}let m;return u.refresh=p,p(),u}if(f=n.authn.currentUser(),f&&await CT(e).value!==I.schema(`dateDeleted`).value){let t={me:f,dom:YT,div:l};l.appendChild(p(t,e,q.iconBase+ZT,I.schema(`AgreeAction`),e.doc(),[I.schema(`DisagreeAction`)])),l.appendChild(p(t,e,q.iconBase+QT,I.schema(`DisagreeAction`),e.doc(),[I.schema(`AgreeAction`)]))}n.store.any(e,I.dct(`created`))&&l.appendChild(Y(YT,q.iconBase+$T,`Reply in thread`,async()=>{await c()}));let m=l.appendChild(yy(YT));return m.style.float=`right`,m.firstChild.style.opacity=`0.3`,m.addEventListener(`click`,u),l}var $=window.document,rE=G.messageBodyStyle,iE=B;function aE(e,t){let n=$.createElement(`img`),r=`10`;t.inlineImageHeightEms&&(r=(``+t.inlineImageHeightEms).trim()),n.setAttribute(`style`,`max-height: `+r+`em; border-radius: 1em; margin: 0.7em;`),e&&n.setAttribute(`src`,e);let i=$.createElement(`a`);return i.setAttribute(`href`,e),i.setAttribute(`target`,`images`),i.appendChild(n),Nv(n,$rdf.sym(e)),i}var oE=function(e,t){let n=$.createElement(`a`);return t&&t.uri&&(n.setAttribute(`href`,t.uri),n.addEventListener(`click`,ky,!0),n.setAttribute(`style`,`color: #3B5998; text-decoration: none; `)),n.textContent=e,n};function sE(e){let t=n.store.any(e,I.foaf(`nick`));return t?``+t.value:``+iE(e)}function cE(e,t,r,i){let a=e.appendChild(oE(sE(t),t));t.uri&&n.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){a.textContent=sE(t)}),e.appendChild($.createElement(`br`)),e.appendChild(oE(r,i))}function lE(e,t,r,i){let a=e.appendChild(oE(iE(t),t));t.uri&&n.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){a.textContent=sE(t)});let o=e.appendChild(oE(r,i));o.style.fontSize=`80%`,o.style.marginLeft=`1em`,e.appendChild($.createElement(`br`))}async function uE(e,t,r,i,a){let o=!1,s=i.colorizeByAuthor===`1`||i.colorizeByAuthor===!0,c=n.store.any(t,I.foaf(`maker`)),l=n.store.any(t,I.dct(`created`)),u=await CT(t),d=n.store.any(u,I.foaf(`maker`)),f=c.uri===d?.uri?u:t,p=n.store.any(f,I.sioc(`content`)),m=await xT(f);m.length>1&&V(`renderMessageRow versions: `,m.join(`, `));let h=m.map(e=>n.store.each(e,I.sioc(`has_reply`))).flat(),g=null,_=[];for(let e of h)n.store.holds(e,I.rdf(`type`),I.sioc(`Thread`))?(g=e,V(`renderMessageRow: found thread: `+g)):_.push(e);_.length>1&&V(`renderMessageRow: found normal replies: `,_),g||=n.store.any(null,I.sioc(`has_member`),t);let v=n.store.any(f,$rdf.sym(`${$w}proofValue`)),y=eT();y.id=f.uri,y.created=n.store.any(f,I.dct(`created`)).value,y.content=p.value,y.maker=c.uri,v?.value?gT(c).then(e=>{e||H(`message is signed but `+c.uri+` is missing publicKey`),e?.match(/[0-9A-Fa-f]{6}/g)?v?.value&&!rT(v?.value,y,e)&&H(`invalid signature
2372
- `+y.id):H(`invalid publicKey hex string
2066
+ `,r}var nA={icons:J,ns:R,media:WE,pad:Jk,style:U,utils:ty,widgets:IT},rA=t.Namespace(`http://www.w3.org/2002/01/bookmark#`),iA=`noun_45961.svg`,aA=V,oA=window.document||null;function sA(e,t){return new Promise(function(r,i){n.store.updater.update(e,t,function(e,t,n){t?r():i(Error(n))})})}async function cA(e){let r=rA(`Bookmark`);if(await ZT(e,r,!0),e.instances&&e.instances.length>0)e.bookmarkDocument=e.instances[0],e.instances.length>1&&G(`More than one bookmark file! `+e.instances);else if(e.publicProfile){let i=t.sym(e.publicProfile.dir().uri+`bookmarks.ttl`);try{W(`Creating new bookmark file `+i),await n.store.fetcher.createIfNotExists(i)}catch(t){return G(`Can't make fresh bookmark file:`+t),e}await n.createTypeIndexLogic.registerInTypeIndex(i,e.index,r),e.bookmarkDocument=i}else G(`You seem to have no bookmark file, nor even a profile file!`);return e}async function lA(e,r){let i=``,a=n.authn.currentUser();if(!a)throw Error(`Must be logged on to add Bookmark`);i=aA(n.store.any(r,R.foaf(`maker`)))+`: `+n.store.anyValue(r,R.sioc(`content`)).slice(0,80);let o=e.bookmarkDocument,s=nA.widgets.newThing(o,i),c=[t.st(o,nA.ns.dct(`references`),s,o),t.st(s,nA.ns.rdf(`type`),rA(`Bookmark`),o),t.st(s,nA.ns.dct(`created`),new Date,o),t.st(s,rA(`recalls`),r,o),t.st(s,nA.ns.foaf(`maker`),a,o),t.st(s,nA.ns.dct(`title`),i,o)];try{await sA([],c)}catch(e){return G(`Making bookmark: `+e),null}return s}async function uA(e,t,r){await n.store.fetcher.load(e.bookmarkDocument);let i=n.store.each(null,rA(`recalls`),t,e.bookmarkDocument);if(i.length){if(!confirm(`Delete bookmark on this?`+i.length))return;for(let e=0;e<i.length;e++)try{await sA(n.store.connectedStatements(i[e]),[]),r.style.backgroundColor=`white`,W(`Bookmark deleted: `+i[e])}catch(e){dS(`Cant delete bookmark:`+e),G(`Cannot delete bookmark:`+e)}}else{let n=await lA(e,t);r.style.backgroundColor=`yellow`,W(`Bookmark added: `+n)}}async function dA(e,t){async function r(t){await n.store.fetcher.load(e.bookmarkDocument);let r=n.store.any(null,rA(`recalls`),t.target,e.bookmarkDocument);t.style=nA.style.buttonStyle,r&&(t.style.backgroundColor=`yellow`)}let i;if(e.bookmarkDocument)return i=nA.widgets.button(oA,nA.icons.iconBase+iA,aA(rA(`Bookmark`)),()=>{uA(e,t,i)}),i.target=t,await r(i),i}var fA=window.document,pA=`noun_253504.svg`,mA=`noun_1384132.svg`,hA=`noun_1384135.svg`,gA=`noun-reply-5506924.svg`,_A={};_A[R.schema(`AgreeAction`)]=`👍`,_A[R.schema(`DisagreeAction`)]=`👎`,_A[R.schema(`EndorseAction`)]=`⭐️`,_A[R.schema(`LikeAction`)]=`❤️`;async function vA(e,t){let r=fA.createElement(`span`);async function i(){if(r.innerHTML=``,Vk(e))return r;let i=(await Rk(e)).map(e=>n.store.each(null,R.schema(`target`),e,t)).flat();if(i.length===0)return r;let a=i.map(e=>[n.store.any(e,R.rdf(`type`),null,t),n.store.any(e,R.sioc(`content`),null,t),n.store.any(e,R.schema(`agent`),null,t)]);a.sort(),a.forEach(e=>{let[t,n,i]=e,a;i?(a=fA.createElement(`a`),a.setAttribute(`href`,i.uri)):a=fA.createTextNode(``),a.textContent=n||_A[t]||`⬜️`,r.appendChild(a)})}return i().then(W(`sentimentStripLinked: sentimentStripLinked async refreshed`)),r.refresh=i,r}async function yA(e,r,i,a){async function o(){let t=n.store.any(e,R.foaf(`maker`));if(!f)alert(`You can't delete the message, you are not logged in.`);else if(f.sameTerm(t)){try{await a.deleteMessage(e)}catch(e){let t=`Error deleting messaage `+e;G(t),alert(t),(i.statusArea||r.parentNode).appendChild(q(fA,t))}r.parentNode.removeChild(r)}else alert(`You can't delete the message, you are not logged in as the author, `+t);u()}async function s(t){f.value===n.store.any(e,R.foaf(`maker`)).value&&(u(),await OA(t,e,a,i))}async function c(){let t=await a.createThread(e),n=i.chatOptions;if(!n)throw Error(`replyInThread: missing options`);n.showThread(t,n),u()}let l=fA.createElement(`div`);if(await Bk(e).value===R.schema(`dateDeleted`).value)return l;function u(){l.parentElement.parentElement.removeChild(l.parentElement)}async function d(e){await n.store.updater.update(n.store.connectedStatements(e),[])}let f=n.authn.currentUser();f&&n.store.holds(e,R.foaf(`maker`),f)&&(l.appendChild(PC(fA,l,`message`,o)),l.appendChild(X(fA,J.iconBase+pA,`edit`,()=>s(r)))),dA(i).then(e=>{e&&l.appendChild(e)});function p(e,i,a,o,s,c){function l(){u.style.backgroundColor=m?`yellow`:`white`}let u=X(fA,a,V(o),async function(a){if(m)await d(m),m=null,l();else{m=MT(s);let a=[t.st(m,R.schema(`agent`),e.me,s),t.st(m,R.rdf(`type`),o,s),t.st(m,R.schema(`target`),i,s)];if(await n.store.updater.update([],a),l(),c){let e=!1;for(let t=0;t<c.length;t++){let n=f(c[t]);n&&(await d(n),e=!0)}e&&UC(r)}}});function f(t){let r=n.store.each(null,R.schema(`agent`),e.me,s).filter(e=>n.store.holds(e,R.rdf(`type`),t,s)).filter(e=>n.store.holds(e,R.schema(`target`),i,s));return r.length?r[0]:null}function p(){m=f(o),l()}let m;return u.refresh=p,p(),u}if(f=n.authn.currentUser(),f&&await Bk(e).value!==R.schema(`dateDeleted`).value){let t={me:f,dom:fA,div:l};l.appendChild(p(t,e,J.iconBase+mA,R.schema(`AgreeAction`),e.doc(),[R.schema(`DisagreeAction`)])),l.appendChild(p(t,e,J.iconBase+hA,R.schema(`DisagreeAction`),e.doc(),[R.schema(`AgreeAction`)]))}n.store.any(e,R.dct(`created`))&&l.appendChild(X(fA,J.iconBase+gA,`Reply in thread`,async()=>{await c()}));let m=l.appendChild(FC(fA));return m.style.float=`right`,m.firstChild.style.opacity=`0.3`,m.addEventListener(`click`,u),l}var $=window.document,bA=U.messageBodyStyle,xA=V;function SA(e,t){let n=$.createElement(`img`),r=`10`;t.inlineImageHeightEms&&(r=(``+t.inlineImageHeightEms).trim()),n.setAttribute(`style`,`max-height: `+r+`em; border-radius: 1em; margin: 0.7em;`),e&&n.setAttribute(`src`,e);let i=$.createElement(`a`);return i.setAttribute(`href`,e),i.setAttribute(`target`,`images`),i.appendChild(n),YS(n,$rdf.sym(e)),i}var CA=function(e,t){let n=$.createElement(`a`);return t&&t.uri&&(n.setAttribute(`href`,t.uri),n.addEventListener(`click`,GC,!0),n.setAttribute(`style`,`color: #3B5998; text-decoration: none; `)),n.textContent=e,n};function wA(e){let t=n.store.any(e,R.foaf(`nick`));return t?``+t.value:``+xA(e)}function TA(e,t,r,i){let a=e.appendChild(CA(wA(t),t));t.uri&&n.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){a.textContent=wA(t)}),e.appendChild($.createElement(`br`)),e.appendChild(CA(r,i))}function EA(e,t,r,i){let a=e.appendChild(CA(xA(t),t));t.uri&&n.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){a.textContent=wA(t)});let o=e.appendChild(CA(r,i));o.style.fontSize=`80%`,o.style.marginLeft=`1em`,e.appendChild($.createElement(`br`))}async function DA(e,t,r,i,a){let o=!1,s=i.colorizeByAuthor===`1`||i.colorizeByAuthor===!0,c=n.store.any(t,R.foaf(`maker`)),l=n.store.any(t,R.dct(`created`)),u=await Bk(t),d=n.store.any(u,R.foaf(`maker`)),f=c.uri===d?.uri?u:t,p=n.store.any(f,R.sioc(`content`)),m=await Rk(f);m.length>1&&W(`renderMessageRow versions: `,m.join(`, `));let h=m.map(e=>n.store.each(e,R.sioc(`has_reply`))).flat(),g=null,_=[];for(let e of h)n.store.holds(e,R.rdf(`type`),R.sioc(`Thread`))?(g=e,W(`renderMessageRow: found thread: `+g)):_.push(e);_.length>1&&W(`renderMessageRow: found normal replies: `,_),g||=n.store.any(null,R.sioc(`has_member`),t);let v=n.store.any(f,$rdf.sym(`${gk}proofValue`)),y=_k();y.id=f.uri,y.created=n.store.any(f,R.dct(`created`)).value,y.content=p.value,y.maker=c.uri,v?.value?Nk(c).then(e=>{e||G(`message is signed but `+c.uri+` is missing publicKey`),e?.match(/[0-9A-Fa-f]{6}/g)?v?.value&&!bk(v?.value,y,e)&&G(`invalid signature
2067
+ `+y.id):G(`invalid publicKey hex string
2373
2068
  `+c.uri+`
2374
- `+e)}):(o=!0,H(f.uri+` is unsigned`));let b=await ST(t),x=!t.sameTerm(b),S=n.store.the(b,I.dct(`created`),null,b.doc())||n.store.the(t,I.dct(`created`),null,t.doc()),C=$.createElement(`tr`);o&&C.setAttribute(`style`,`background-color: red`),C.AJAR_date=S.value,C.AJAR_subject=t;let w=$.createElement(`td`);if(C.appendChild(w),i.authorDateOnLeft)cE(w,c,iy(S.value),t);else{let e=$.createElement(`img`);e.setAttribute(`style`,`max-height: 2.5em; max-width: 2.5em; border-radius: 0.5em; margin: auto;`),hy(e,c),w.appendChild(e)}let T=iy(S.value);x&&(T+=` ... `+iy(l.value));let E=C.appendChild($.createElement(`td`));i.authorDateOnLeft||lE(E,c,T,t);let D=p?p.value.trim():`??? no content?`,O=/^https?:\/[^ <>]*$/i.test(D),k=null;if(O)if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(D)&&i.expandImagesInline){let e=aE(D,i);E.appendChild(e)}else{let e=E.appendChild($.createElement(`a`));k=e.appendChild($.createElement(`p`)),e.href=D,k.textContent=D,E.appendChild(e)}else k=$.createElement(`p`),E.appendChild(k),k.textContent=D;if(k){let e=s?PT(c):A(r);k.setAttribute(`style`,rE+`background-color: `+e+`;`)}function A(e){return e?`#e8ffe8`:`white`}let j=await tE(t,t.doc());j.children.length&&(E.appendChild($.createElement(`br`)),E.appendChild(j));let ee=$.createElement(`td`);C.appendChild(ee);let te=Y($,q.iconBase+`noun_243787.svg`,`...`);return ee.appendChild(te),te.addEventListener(`click`,async function(n){if(C.toolTR){C.parentNode.removeChild(C.toolTR),delete C.toolTR;return}let r=$.createElement(`tr`),o=await nE(t,C,{...a,chatOptions:i},e);o.style=`border: 0.05em solid #888; border-radius: 0 0 0.7em 0.7em; border-top: 0; height:3.5em; background-color: #fff;`,C.nextSibling?C.parentElement.insertBefore(r,C.nextSibling):C.parentElement.appendChild(r),C.toolTR=r,r.appendChild($.createElement(`td`));let s=r.appendChild($.createElement(`td`));r.appendChild($.createElement(`td`)),s.appendChild(o)}),g&&i.showThread&&ee.appendChild(Y($,q.iconBase+`noun_1180164.svg`,`see thread`,e=>{i.showThread(g,i)})),C}async function dE(e,t,n,r){let i=e.parentNode,a=fE(n,i,r,n.options,await CT(t));i.insertBefore(a,e),a.originalRow=e,e.style.visibility=`hidden`}function fE(e,t,r,i,a){function o(e){e.originalRow.style.visibility=`visible`,e.parentNode.removeChild(e)}async function s(e){await c(v.value,!0)}async function c(n,o){async function s(n,s){if(await mE(e,t,n,!1,i,r),a){let e=m.originalRow;e.parentNode?e.parentNode.removeChild(e):(H(`No parentNode on old message `+e.textContent),e.style.backgroundColor=`#fee`,e.style.visibility=`hidden`),m.parentNode.removeChild(m)}else o&&(v.value=``,v.setAttribute(`style`,rE),v.disabled=!1,v.scrollIntoView(i.newestFirst),v.focus(),v.select())}o&&(v.setAttribute(`style`,rE+`color: #bbb;`),v.disabled=!0);let c;try{c=await e.updateMessage(n,a,null,i.thread)}catch(e){(r.statusArea||m).appendChild(K($,`Error writing message: `+e));return}await s(c,n)}function l(e){let r=t.chatDocument.dir().uri;Pv(n.store.fetcher,e,r+`Files`,r+`Pictures`,async function(e,t){await c(t)})}let u=async function(e){for(let t of e)await c(t)};function d(){function t(){return b=$rdf.sym(f.dir().uri+`Image_`+Date.now()+`.png`),b}async function r(e){e&&await c(e.uri)}if(i.menuHandler){let e=Y($,q.iconBase+`noun_243787.svg`,`More`);e.setAttribute(`style`,G.buttonStyle+`float: right;`),_.appendChild(e)}i.menuHandler;let d=n.authn.currentUser();if(cE(h,d,``,null),v=$.createElement(`textarea`),g.innerHTML=``,g.appendChild(v),v.rows=3,a&&(v.value=n.store.anyValue(a,I.sioc(`content`),null,a.doc())),v.setAttribute(`style`,rE+`background-color: #eef;`),v.addEventListener(`keydown`,async function(e){e.code===`Enter`&&(!e.shiftKey&&!i.shiftEnterSendsMessage||e.shiftKey&&i.shiftEnterSendsMessage)&&await s(e)},!1),Mv(v,u,l),_.innerHTML=``,y=Y($,p,`Send`),y.style.float=`right`,y.addEventListener(`click`,e=>s(),!1),_.appendChild(y),a){let e=_.appendChild(yy($));e.style.float=`left`,e.addEventListener(`click`,e=>o(m),!1),_.appendChild(e)}let f=e.dateFolder.leafDocumentFromDate(new Date),b;g.appendChild(OS.cameraButton($,n.store,t,r)),kT(e.channel,e.channel.doc())}let f,p;a?(f=n.store.anyValue(a,I.dct(`created`),null,a.doc()),p=q.iconBase+`noun_1180158.svg`):(p=q.iconBase+`noun_383448.svg`,f=`9999-01-01T00:00:00Z`);let m=$.createElement(`tr`),h=$.createElement(`td`),g=$.createElement(`td`),_=$.createElement(`td`);m.appendChild(h),m.appendChild(g),m.appendChild(_),m.AJAR_date=f;let v,y;return Mx({div:g,dom:$}).then(e=>{d(),Object.assign(e,r),GT(e).then(e=>{})}),m}function pE(e){`Notification`in window?Notification.permission===`granted`?new Notification(e):Notification.permission!==`denied`&&Notification.requestPermission().then(function(t){t===`granted`&&new Notification(e)}):H(`This browser does no t support desktop notification`)}async function mE(e,t,n,r,i,a){let o=await uE(e,n,r,i,a);i.selectedMessage&&i.selectedMessage.sameTerm(n)&&(o.style.backgroundColor=`yellow`,i.selectedElement=o,t.selectedElement=o);let s=!1;for(let e=t.firstChild;e;e=e.nextSibling){let n=i.newestfirst===!0,r=o.AJAR_date;if(r>e.AJAR_date&&n||r<e.AJAR_date&&!n){t.insertBefore(o,e),s=!0;break}}s||t.appendChild(o)}async function hE(e,r,i,a){async function o(e,t){let r={},i,a;for(i=t.firstChild;i;i=i.nextSibling)i.AJAR_subject&&(r[i.AJAR_subject.uri]=!0);let o=n.store.each(e,I.wf(`message`),null,t.chatDocument),c={};for(let e of o)c[e.uri]=!0,r[e.uri]||await s(e,t);for(i=t.firstChild;i;)a=i.nextSibling,i.AJAR_subject&&!c[i.AJAR_subject.uri]&&t.removeChild(i),i=a;for(i=t.firstChild;i;i=i.nextSibling)i.AJAR_subject&&Dy(i)}async function s(e,t){if(wT(e)&&!a.showDeletedMessages)return;let r=n.store.any(null,I.sioc(`has_member`),e,e.doc()),i=n.store.any(e,I.sioc(`id`),null,e.doc());if(i&&!r&&(r=n.store.any(null,I.sioc(`has_member`),i,e.doc())),a.thread){if(!n.store.holds(e,I.sioc(`has_reply`),a.thread)&&!(r&&r.sameTerm(a.thread)))return}else if(r)return;t.fresh||await mE(g,t,e,t.fresh,a,b)}async function c(e){let t=e?C:w,n=t.messageTable.date;if(e&&C.limit&&n<=C.limit)return x||await f(),!0;if(n=await _.loadPrevious(n,e),!n&&!e&&!x&&await f(),!n)return!0;let r=!1;if(!e){let e=_.leafDocumentFromDate(new Date);r=_.leafDocumentFromDate(n).sameTerm(e)}let i=await l(n,r);return t.messageTable=i,(e?h:!h)?v.appendChild(i):v.insertBefore(i,v.firstChild),r}async function l(t,r){let i=_.leafDocumentFromDate(t);try{await n.store.fetcher.createIfNotExists(i)}catch(n){let a=e.createElement(`table`).appendChild(e.createElement(`tr`));return n.response&&n.response.status&&n.response.status===404?await u(t,r):(V(`*** Error NON 404 for chat file `+i),a.appendChild(K(e,n,`pink`)),a)}return await u(t,r)}async function u(t,r){async function i(){let e=await c(!0);return e?l.initial=!0:l.extendedBack=!0,e}async function o(){return await c(!1)}let l=e.createElement(`table`);l.style.width=`100%`,l.extendBackwards=i,l.extendForwards=o,l.date=t;let u=_.leafDocumentFromDate(t);if(l.chatDocument=u,l.fresh=!1,l.setAttribute(`style`,`width: 100%;`),r){l.final=!0,x=l,w.messageTable=l;let e=fE(g,l,b,a);h?l.insertBefore(e,l.firstChild):l.appendChild(e),l.inputRow=e}{let n=e.createElement(`tr`),r=n.appendChild(e.createElement(`td`));r.style=`text-align: center; vertical-align: middle; color: #888; font-style: italic;`,r.textContent=iy(t.toISOString(),!0);let i=n.appendChild(e.createElement(`td`));a.includeRemoveButton&&i.appendChild(yy(e,e=>{v.parentNode.removeChild(v)})),l.extendedForwards=!1,h?l.appendChild(n):l.insertBefore(n,l.firstChild)}let d=n.store.statementsMatching(null,I.wf(`message`),null,u);!r&&d.length;for(let e of d)await s(e.object,l);return l.fresh=!0,l}async function d(){let e=_.leafDocumentFromDate(new Date);if(!e.sameTerm(w.messageTable.chatDocument)){x.inputRow&&(x.removeChild(x.inputRow),delete x.inputRow);let r=w.messageTable.chatDocument;if(await f(),!n.store.holds(r,I.rdfs(`seeAlso`),e,r)){let i=[t.st(r,I.rdfs(`seeAlso`),e,r)];try{n.store.updater.update([],i)}catch(e){alert(`Unable to link old chat file to new one:`+e)}}}}async function f(){let e=new Date,t=_.leafDocumentFromDate(e),r=await l(e,!0);return v.appendChild(r),v.refresh=async function(){await d(new Date),await o(i,r),pE(i)},n.store.updater.addDownstreamChangeListener(t,v.refresh),x=r,w.messageTable=x,r}async function p(e,t){if(T)return;T=!0;let n=!t,r;for(;v.scrollTop<150&&C.messageTable&&!C.messageTable.initial&&C.messageTable.extendBackwards;){if(v.scrollHeight===0){setTimeout(p,2e3),T=!1;return}let e=v.scrollHeight-v.scrollTop;if(r=await C.messageTable.extendBackwards(),n&&(v.scrollTop=v.scrollHeight-e),t&&t(),r)break}for(;a.selectedMessage&&v.scrollHeight-v.scrollTop-v.clientHeight<150&&w.messageTable&&!w.messageTable.final&&w.messageTable.extendForwards;){let e=v.scrollTop;if(r=await w.messageTable.extendForwards(),n&&(v.scrollTop=e),t&&t(),r)break}T=!1}async function m(){function e(){s&&s.selectedElement&&s.selectedElement.scrollIntoView({block:`center`})}function t(){a.selectedElement?a.selectedElement.scrollIntoView({block:`center`}):x.inputRow.scrollIntoView&&x.inputRow.scrollIntoView(h)}let n,r,i;a.selectedMessage&&(r=a.selectedMessage.doc()),S&&(i=S.doc());let o=r||i;if(o){let e=new Date;n=_.leafDocumentFromDate(e).sameTerm(o)}let s;o&&!n?(s=await l(_.dateFromLeafDocument(o),n),v.appendChild(s),C.messageTable=s,w.messageTable=s,e(),setTimeout(e,1e3)):(await f(),C.messageTable=x,w.messageTable=x),await p(null,t),v.addEventListener(`scroll`,p),a.solo&&document.body.addEventListener(`scroll`,p)}a||={},a.authorDateOnLeft=!1;let h=a.newestFirst===`1`||a.newestFirst===!0,g=new bT(i,a),_=g.dateFolder,v=e.createElement(`div`);g.div=v;let y=v.appendChild(e.createElement(`div`)),b={dom:e,statusArea:y,div:y},x,S,C={messageTable:null},w={messageTable:null};if(a.thread){let e=a.thread;if(S=n.store.any(null,I.sioc(`has_reply`),e,e.doc()),S){let e=n.store.any(S,I.dct(`created`),null,S.doc());e&&(C.limit=new Date(e.value))}}let T=!1;return await m(),v}var gE=d({get:()=>yE,getPreferencesForClass:()=>TE,recordPersonalDefaults:()=>SE,recordSharedPreferences:()=>xE,renderPreferencesForm:()=>CE,set:()=>bE,value:()=>vE}),_E=n.store,vE=[];function yE(e){return vE[e]}function bE(e,t){if(typeof t!=`string`)throw V(`Non-string value of preference `+e+`: `+t),Error(`Non-string value of preference `+e+`: `+t);this.value[e]=t}function xE(e,n){return new Promise(function(r,i){let a=_E.any(e,I.ui(`sharedPreferences`));if(a)n.sharedPreferences=a,r(n);else{_E.updater.editable(e.doc())||(V(` Cant make shared preferences, may not change ${e.doc}`),r(n));let a=t.sym(e.doc().uri+`#SharedPreferences`),o=[t.st(e,I.ui(`sharedPreferences`),a,e.doc())];V(`Creating shared preferences `+a),_E.updater.update([],o,function(e,t,o){t?(n.sharedPreferences=a,r(n)):i(Error(`Error creating shared prefs: `+o))})}})}function SE(e,n){return new Promise(function(r,i){Nx(n).then(n=>{if(!n.preferencesFile){V(`Not doing private class preferences as no access to preferences file. `+n.preferencesFileError);return}let a=_E.each(null,I.solid(`forClass`),e,n.preferencesFile),o=[],s,c;if(a.length)if(a.forEach(e=>{s||=_E.any(e,I.solid(`personalDefaults`))}),s){n.personalDefaults=s,r(n);return}else s=gx(n.preferencesFile),c=a[0];else c=gx(n.preferencesFile),o=[t.st(c,I.rdf(`type`),I.solid(`TypeRegistration`),n.preferencesFile),t.st(c,I.solid(`forClass`),e,n.preferencesFile)];s=gx(n.preferencesFile),o.push(t.st(c,I.solid(`personalDefaults`),s,n.preferencesFile)),_E.updater.update([],o,function(t,a,o){a?(n.personalDefaults=s,r(n)):i(Error(`Setting preferences for `+e+`: `+o))})},e=>{i(e)})})}function CE(e,t,n,r){let i=r.dom.createElement(`div`);return OT(e,e.doc(),r.me).then(a=>{let o=r.dom;function s(e){i.appendChild(o.createElement(`h5`)).textContent=e}s(`My view of this `+r.noun),nx(o,i,{},a,n,e.doc(),(e,t)=>{e||ty(r,t)}),s(`Everyone's view of this `+r.noun),xE(e,r).then(r=>{let a=r.sharedPreferences;nx(o,i,{},a,n,e.doc(),(e,t)=>{e||ty(r,t)}),s(`My default view of any `+r.noun),SE(t,r).then(e=>{nx(o,i,{},e.personalDefaults,n,e.preferencesFile,(t,n)=>{t||ty(e,n)})},e=>{ty(r,e)})})},e=>{i.appendChild(K(r.dom,e))}),i}function wE(e){return e.datatype?e.datatype.equals(I.xsd(`boolean`))?e.value===`1`:e.datatype.equals(I.xsd(`dateTime`))||e.datatype.equals(I.xsd(`date`))?new Date(e.value):e.datatype.equals(I.xsd(`integer`))||e.datatype.equals(I.xsd(`float`))||e.datatype.equals(I.xsd(`decimal`))?Number(e.value):e.value:e}function TE(e,t,n,r){return new Promise(function(i,a){xE(e,r).then(r=>{let o=r.sharedPreferences;if(r.me)OT(e,e.doc(),r.me).then(e=>{SE(t,r).then(t=>{let r=[],a=t.personalDefaults;n.forEach(t=>{let n=_E.any(e,t)||_E.any(o,t)||_E.any(a,t);n&&(r[t.uri]=wE(n))}),i(r)},a)},a);else{let e=[];n.forEach(t=>{let n=_E.any(o,t);n&&(e[t.uri]=wE(n))}),i(e)}})})}var EE={icons:q,log:Vg,ns:I,utils:__,widgets:bx};function DE(e,r){let i=r.sourceDocument,a=r.tableClass,o=r.query,s=EE.ns,c=n.store,l={},u={"http://www.w3.org/2002/07/owl#sameAs":!0,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":!0},d={"http://www.w3.org/2001/XMLSchema#decimal":!0,"http://www.w3.org/2001/XMLSchema#float":!0,"http://www.w3.org/2001/XMLSchema#double":!0,"http://www.w3.org/2001/XMLSchema#integer":!0,"http://www.w3.org/2001/XMLSchema#nonNegativeInteger":!0,"http://www.w3.org/2001/XMLSchema#positiveInteger":!0,"http://www.w3.org/2001/XMLSchema#nonPositiveInteger":!0,"http://www.w3.org/2001/XMLSchema#negativeInteger":!0,"http://www.w3.org/2001/XMLSchema#long":!0,"http://www.w3.org/2001/XMLSchema#int":!0,"http://www.w3.org/2001/XMLSchema#short":!0,"http://www.w3.org/2001/XMLSchema#byte":!0,"http://www.w3.org/2001/XMLSchema#unsignedLong":!0,"http://www.w3.org/2001/XMLSchema#unsignedInt":!0,"http://www.w3.org/2001/XMLSchema#unsignedShort":!0,"http://www.w3.org/2001/XMLSchema#unsignedByte":!0},f={"http://www.w3.org/2001/XMLSchema#dateTime":!0,"http://www.w3.org/2001/XMLSchema#date":!0},p={"http://xmlns.com/foaf/0.1/Image":!0,"http://purl.org/dc/terms/Image":!0},m=r.keyVariable||`?_row`,h=0,g,_,v,y,b=null,x=null,S=e.createElement(`div`);S.className=`tableViewPane`,S.appendChild(T());let C=e.createElement(`div`);S.appendChild(C),S.refresh=function(){Fe(w.query,w.logicalRows,w.columns,w)};let w;if(o)w=Re(o),C.appendChild(w);else{let e=me();g=e[0],_=e[1],a||v.appendChild(ae(g,_)),x=ze(_),A(x||g)}return S;function T(){let t=e.createElement(`table`);t.setAttribute(`class`,`toolbar`);let n=e.createElement(`tr`);return v=e.createElement(`td`),n.appendChild(v),y=e.createElement(`td`),n.appendChild(y),t.appendChild(n),t}function E(e,t){let n=t.getColumns();for(let t=0;t<n.length;++t){let r=c.variable(`_col`+t);e.vars.push(r),n[t].setVariable(r)}}function D(e,t,n){let r=n.type;r||=c.variable(`_any`),e.pat.add(t,EE.ns.rdf(`type`),r)}function O(e,t,n){let r=n.getColumns();for(let n=0;n<r.length;++n){let i=r[n],a=c.formula();a.add(t,i.predicate,i.getVariable()),e.pat.optional.push(a)}}function k(e){let n=new t.Query,r=c.variable(m.slice(1));return E(n,e),D(n,r,e),O(n,r,e),n}function A(e){ee(y),y.appendChild(se(e)),j(k(e),e)}function j(e,t){b&&(b.running=!1);let n=Re(e,t);ee(C),C.appendChild(n),b=e}function ee(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function te(e){this.type=e,this.columns=null,this.allColumns=[],this.useCount=0,this.getAllColumns=function(){return this.allColumns},this.getColumns=function(){if(!this.columns){let e=this.getAllColumns();this.columns=e.slice(0,7)}return this.columns},this.getUnusedColumns=function(){let e=this.getAllColumns(),t=this.getColumns(),n=[];for(let r=0;r<e.length;++r)t.indexOf(e[r])===-1&&n.push(e[r]);return n},this.addColumn=function(e){this.columns.push(e)},this.removeColumn=function(e){this.columns=this.columns.filter(function(t){return t!==e})},this.getLabel=function(){return B(this.type)},this.addUse=function(){this.useCount+=1}}function ne(){this.useCount=0,this.checkedAnyValues=!1,this.possiblyLiteral=!0,this.possiblyNumber=!0,this.constraints=[],this.checkValue=function(e){let t=e.termType;this.possiblyLiteral&&t!==`Literal`&&t!==`NamedNode`?(this.possiblyNumber=!1,this.possiblyLiteral=!1):this.possiblyNumber&&(t===`Literal`&&e.value.match(/^-?\d+(\.\d*)?$/)||(this.possiblyNumber=!1)),this.checkedAnyValues=!0},this.getVariable=function(){return this.variable},this.setVariable=function(e){this.variable=e},this.getKey=function(){return this.variable.toString()},this.addUse=function(){this.useCount+=1},this.getHints=function(){return r&&r.hints&&this.variable&&r.hints[this.variable.toNT()]?r.hints[this.variable.toNT()]:{}},this.getLabel=function(){return this.getHints().label?this.getHints().label:this.predicate?this.predicate.sameTerm(s.rdf(`type`))&&this.superClass?B(this.superClass,!0):B(this.predicate):this.variable?this.variable.toString():`unlabeled column?`},this.setPredicate=function(e,t,n){t?(this.inverse=e,this.constraints=this.constraints.concat(c.each(e,EE.ns.rdfs(`domain`))),e.sameTerm(s.rdfs(`subClassOf`))&&n.termType===`NamedNode`&&(this.superClass=n,this.alternatives=c.each(void 0,s.rdfs(`subClassOf`),n))):(this.predicate=e,this.constraints=this.constraints.concat(c.each(e,EE.ns.rdfs(`range`))))},this.getConstraints=function(){return this.constraints},this.filterFunction=function(){return!0},this.sortKey=function(){return this.getLabel().toLowerCase()},this.isImageColumn=function(){for(let e=0;e<this.constraints.length;e++)if(this.constraints[e].uri in p)return!0;return!1}}function re(e,t){let n=[];for(let r in e){let i=e[r];(!t||t(r,i))&&n.push(i)}return n}function ie(t,n){let r=e.createElement(`option`);return r.setAttribute(`value`,n),r.appendChild(e.createTextNode(t)),r}function ae(t,n){let r=e.createElement(`div`);r.appendChild(e.createTextNode(`Select type: `));let i=e.createElement(`select`);i.appendChild(ie(`All types`,`null`));for(let e in n)i.appendChild(ie(n[e].getLabel(),e));return i.addEventListener(`click`,function(){let e;e=i.value===`null`?t:n[i.value],oe(e)},!1),r.appendChild(i),r}function oe(e){A(e)}function se(t){let n=e.createElement(`div`),r=t.getUnusedColumns();if(r.sort(function(e,t){let n=e.sortKey(),r=t.sortKey();return(n>r)-(n<r)}),r.length>0){n.appendChild(e.createTextNode(`Add column: `));let i=e.createElement(`select`);i.appendChild(ie(``,`-1`));for(let e=0;e<r.length;++e){let t=r[e];i.appendChild(ie(t.getLabel(),``+e))}n.appendChild(i),i.addEventListener(`click`,function(){let e=Number(i.value);e>=0&&(t.addColumn(r[e]),A(t))},!1)}return n}function ce(e,t){for(let n in e){let r=e[n];if(r.variable.toNT()===t)return r}throw Error(`getColumnForVariable: no column for variable ${t}`)}function le(e,t){let n;return t.uri in e?n=e[t.uri]:(n=new ne,n.setPredicate(t),e[t.uri]=n),n}function ue(e,t){let n;return t.uri in e?n=e[t.uri]:(n=new te(t),e[t.uri]=n),n}function de(){let e={},t=c.statementsMatching(void 0,EE.ns.rdf(`type`),a,i),n={};for(let r=0;r<t.length;++r){let i=t[r].object;if(i.termType!==`NamedNode`)continue;let a=ue(e,i);i.uri in n||(n[i.uri]=[]),n[i.uri].push(t[r].subject),a.addUse()}return[n,e]}function fe(e,t){let n=c.statementsMatching(e,void 0,void 0,i),r={};for(let e=0;e<n.length;++e){let i=n[e].predicate;if(i.uri in u)continue;let a=le(t,i);a.checkValue(n[e].object),r[i.uri]=a}return r}function pe(e,t){let n={};for(let e=0;e<t.length;++e){let r=fe(t[e],n);for(let e in r)r[e].addUse()}let r=re(n);he(r),e.allColumns=r}function me(){let e,t,n=de();e=n[0],t=n[1];for(let n in e){let r=e[n],i=t[n];pe(i,r)}return[new te(null),re(t)]}function he(e){function t(e,t){return(e.useCount<t.useCount)-(e.useCount>t.useCount)}e.sort(t)}function ge(t,n){let r=e.createElement(`a`);return r.appendChild(e.createTextNode(`[x]`)),r.addEventListener(`click`,function(){t.removeColumn(n),A(t)},!1),r}function _e(t,n){let r=e.createElement(`tr`),i=e.createElement(`th`);r.appendChild(i);for(let i=0;i<t.length;++i){let a=e.createElement(`th`),o=t[i];a.appendChild(e.createTextNode(o.getLabel())),n&&a.appendChild(ge(n,o)),r.appendChild(a)}return r}function ve(e,t,n,r){let i=t.getKey();if(e.sort(function(e,t){let a=null,o=null;i in e.values&&(a=e.values[i][0]),i in t.values&&(o=t.values[i][0]);let s=n(a,o);return r?-s:s}),e.length){let t=e[0]._htmlRow.parentNode;for(let n=0;n<e.length;++n)t.removeChild(e[n]._htmlRow);for(let n=0;n<e.length;++n)t.appendChild(e[n]._htmlRow)}}function ye(e,t){let n=!0;for(let r=0;r<t.length;++r){let i=t[r],a=i.getKey(),o=null;if(a in e.values&&(o=e.values[a][0]),!i.filterFunction(o)){n=!1;break}}let r=e._htmlRow;n?r.style.display=``:r.style.display=`none`}function be(e,t){for(let n=0;n<e.length;++n){let r=e[n];ye(r,t)}}function xe(e,t,n){function r(e){return e?e.termType===`Literal`?e.value.toLowerCase():e.termType===`NamedNode`?B(e).toLowerCase():e.value.toLowerCase():``}function i(e,t){let n=r(e),i=r(t);return n<i?-1:+(n>i)}ve(e,t,i,n)}function Se(t,n,r){let i=e.createElement(`div`),a=e.createElement(`input`);a.setAttribute(`type`,`text`),a.style.width=`70%`,i.appendChild(a);let o=e.createElement(`span`);o.appendChild(e.createTextNode(`▼`)),o.addEventListener(`click`,function(){xe(t,r,!1)},!1),i.appendChild(o);let s=e.createElement(`span`);s.appendChild(e.createTextNode(`▲`)),s.addEventListener(`click`,function(){xe(t,r,!0)},!1),i.appendChild(s);let c=null;return r.filterFunction=function(e){if(!c)return!0;if(e){let t;return t=e.termType===`Literal`?e.value:e.termType===`NamedNode`?B(e):``,t.toLowerCase().indexOf(c)>=0}else return!1},a.addEventListener(`keyup`,function(){c=a.value===``?null:a.value.toLowerCase(),be(t,n)},!1),i}function Ce(t,n,r,i){let a=e.createElement(`div`),o=e.createElement(`select`),s={};for(let e=0;e<i.length;++e){let t=i[e];s[t.uri]=!0}let c=M(r).initialSelection;c&&(s=c),o.setAttribute(`multiple`,`true`);for(let e=0;e<i.length;++e){let t=i[e],n=ie(B(t),e);s[t.uri]&&(n.selected=!0),o.appendChild(n)}return a.appendChild(o),r.filterFunction=function(e){return!s||e&&s[e.uri]},o.addEventListener(`click`,function(){{s={};let e=o.options;for(let t=0;t<e.length;t++){let n=e[t],r=Number(n.value);e[t].selected&&(s[i[r].uri]=!0)}}be(t,n)},!0),a}function we(t,n,r){let i=e.createElement(`div`),a=e.createElement(`input`);a.setAttribute(`type`,`text`),a.style.width=`40px`,i.appendChild(a);let o=e.createElement(`input`);o.setAttribute(`type`,`text`),o.style.width=`40px`,i.appendChild(o);let s=null,c=null;r.filterFunction=function(e){return e&&=Number(e),!(s&&(!e||e<s)||c&&(!e||e>c))};function l(){s=a.value===``?null:Number(a.value),c=o.value===``?null:Number(o.value),be(t,n)}return a.addEventListener(`keyup`,l,!1),o.addEventListener(`keyup`,l,!1),i}function Te(e,t,n){return n.checkedAnyValues&&n.possiblyNumber?we(e,t,n):n.possiblyLiteral?Se(e,t,n):null}function Ee(e,t,n){if(n.superClass&&n.alternatives.length>0)return Ce(e,t,n,n.alternatives);let r=n.getConstraints(),i;for(let a=0;a<r.length;a++){if(i=r[a],n.checkedAnyValues&&n.possiblyNumber||i.uri in d)return we(e,t,n);if(i.uri===`http://www.w3.org/2000/01/rdf-schema#Literal`)return Se(e,t,n);let o=c.each(i,EE.ns.owl(`oneOf`));if(o.length>0)return Ce(e,t,n,o.elements)}return Te(e,t,n)}function De(t,n){let r=e.createElement(`tr`);r.className=`selectors`,r.appendChild(e.createElement(`td`));for(let i=0;i<n.length;++i){let a=e.createElement(`td`),o=Ee(t,n,n[i]);o&&a.appendChild(o),r.appendChild(a)}return r}function Oe(t,n,r){r||={};let i=e.createElement(`a`),a=r.linkFunction;return i.setAttribute(`href`,t),i.appendChild(e.createTextNode(n)),a?i.addEventListener(`click`,function(e){e.preventDefault(),e.stopPropagation();let t=A_(e).getAttribute(`href`);t||V(`No href found
2375
- `),a(t)},!0):i.addEventListener(`click`,EE.widgets.openHrefInOutlineMode,!0),i}function ke(e,t){let n=!1;return e.uri&&(n=e.uri.match(/^mailto:(.*)/)),n?Oe(e.uri,n[1],t):Oe(e.uri,B(e),t)}function Ae(t){let n=e.createElement(`img`);return n.setAttribute(`src`,t.uri),n.style.height=`40px`,n}function M(e){return r&&r.hints&&e.variable&&r.hints[e.variable.toNT()]?r.hints[e.variable.toNT()]:{}}function je(t,n){let r=M(n),i=r.cellFormat;if(i)switch(i){case`shortDate`:return e.createTextNode(EE.widgets.shortDate(t.value));default:}else if(t.termType===`Literal`){if(t.datatype){if(f[t.datatype.uri])return e.createTextNode(EE.widgets.shortDate(t.value));if(d[t.datatype.uri]){let n=e.createElement(`span`);return n.textContent=t.value,n.setAttribute(`style`,`text-align: right`),n}}return e.createTextNode(t.value)}else if(t.termType===`NamedNode`&&n.isImageColumn())return Ae(t);else if(t.termType===`NamedNode`||t.termType===`BlankNode`)return ke(t,r);else if(t.termType===`Collection`){let r=e.createElement(`span`);return r.appendChild(e.createTextNode(`[`)),t.elements.forEach(function(t){r.appendChild(je(t,n)),r.appendChild(e.createTextNode(`, `))}),r.removeChild(r.lastChild),r.appendChild(e.createTextNode(`]`)),r}else return e.createTextNode(`unknown termtype '`+t.termType+`'!`)}function N(t,n,r,i){let a=e.createElement(`td`);n._subject&&`uri`in n._subject&&a.appendChild(Oe(n._subject.uri,`→`)),t.appendChild(a);for(let i=0;i<r.length;++i){let a=r[i],o=e.createElement(`td`),s,c=a.getKey();if(c in n.values){let t=n.values[c],r=!1;n.originalValues&&n.originalValues[c]&&t.length!==n.originalValues[c].length&&(r=!0);for(let i=0;i<t.length;++i){let l=t[i];n.originalValues&&n.originalValues[c]&&n.originalValues[c].length>i&&(s=n.originalValues[c][i],l.toString()!==s.toString()&&(r=!0)),o.appendChild(je(l,a)),i!==t.length-1&&o.appendChild(e.createTextNode(`,
2376
- `)),r&&(o.style.background=`#efe`)}}t.appendChild(o)}return n._htmlRow=t,t}function Me(e,t){let n=null;if(e.termType===`Literal`)n=`value`;else if(e.termType===`NamedNode`)n=`uri`;else return t.indexOf(e)>=0;let r;for(r=0;r<t.length;++r)if(t[r].termType===e.termType&&t[r][n]===e[n])return!0;return!1}function Ne(e,t,n){let r,i=!1;for(r in n){let t=n[r];r in e.values||(e.values[r]=[]),Me(t,e.values[r])||(e.values[r].push(t),i=!0)}i&&(ee(e._htmlRow),N(e._htmlRow,e,t)),ye(e,t)}function Pe(e){if(`uri`in e)return e.uri;if(`_subject_id`in e)return e._subject_id;{let t=``+h;return e._subject_id=t,++h,t}}function Fe(t,n,i,a){t.running=!0;let o=Date.now(),s=e.createElement(`tr`);a.appendChild(s),s.textContent=`Loading ...`;for(let e=0;e<n.length;e++)n[e].original=!0,n[e].originalValues||(n[e].originalValues=n[e].values),n[e].values={};c.query(t,function(r){if(!t.running)return;s.textContent+=`.`;let o=null,c=null,u;if(m in r&&(c=r[m],u=Pe(c),u in l&&(o=l[u])),!o){let t=e.createElement(`tr`);a.appendChild(t),o={_htmlRow:t,_subject:c,values:{}},n.push(o),c&&(l[u]=o)}delete o.original,Ne(o,i,r)},void 0,function(){s&&s.parentNode&&s.parentNode.removeChild&&(s.parentNode.removeChild(s),s=null);let e=Date.now()-o;V(`Query done: `+n.length+` rows, `+e+`ms`);for(let e=n.length-1;e>=0;e--)if(n[e].original){V(` deleting row `+n[e]._subject);let t=n[e]._htmlRow;t.parentNode.removeChild(t),delete l[Pe(n[e]._subject)],n.splice(e,1)}r.sortBy&&xe(n,ce(i,r.sortBy),r.sortReverse),r.onDone&&r.onDone(S)})}function Ie(e,t){EE.log.debug(`>> processing formula`);for(let n=0;n<t.statements.length;++n){let r=t.statements[n];if(r.predicate.termType===`NamedNode`&&r.object.termType===`Variable`){let t=r.object.toString();t in e&&e[t].setPredicate(r.predicate,!1,r.subject)}if(r.predicate.termType===`NamedNode`&&r.subject.termType===`Variable`){let t=r.subject.toString();t in e&&e[t].setPredicate(r.predicate,!0,r.object)}}for(let n=0;n<t.optional.length;++n)EE.log.debug(`recurse to optional subformula `+n),Ie(e,t.optional[n]);EE.log.debug(`<< finished processing formula`)}function Le(e){let t=[],n={};for(let r=0;r<e.vars.length;++r){let i=new ne,a=e.vars[r];EE.log.debug(`column `+r+` : `+a),i.setVariable(a),n[a]=i,t.push(i)}return Ie(n,e.pat),t}function Re(t,n){let r;r=o?Le(t):n.getColumns();let i=[],a=e.createElement(`table`);return a.appendChild(_e(r,n)),a.appendChild(De(i,r)),a.logicalRows=i,a.columns=r,a.query=t,Fe(t,i,r,a),a}function ze(e){let t=-1,n=null,r;for(r in e){let i=e[r];i.useCount>t&&(n=i,t=i.useCount)}return n}}var OE=d({TabWidgetElement:()=>kE,tabWidget:()=>jE}),kE=class extends HTMLElement{bodyContainer;refresh;tabContainer},AE=`#ddddcc`;function jE(e){let t=e.subject,r=e.dom||document,i=parseInt(e.orientation||`0`),a=e.backgroundColor||AE,o=i&2,s=i&1,c=e.onClose,[l,u]=ME(a),d=`display: grid; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ${l}; padding: 1em;`,f=r.createElement(`div`);f.setAttribute(`style`,G.tabsRootElement),f.style.flexDirection=(s?`row`:`column`)+(o?`-reverse`:``);let p=f.appendChild(r.createElement(`nav`));p.setAttribute(`style`,G.tabsNavElement);let m=f.appendChild(r.createElement(`div`));m.setAttribute(`style`,G.tabsMainElement);let h=p.appendChild(r.createElement(`ul`));h.setAttribute(`style`,G.tabContainer),h.style.flexDirection=`${s?`column`:`row`}`;let g=m;f.tabContainer=h,f.bodyContainer=g;let _=[`0.2em`,`0.2em`,`0`,`0`],v=`border-radius: ${_.concat(_).slice(i,i+4).join(` `)};`,y=[`0.3em`,`0.3em`,`0`,`0.3em`],b=y.concat(y).slice(i,i+4),x=`margin: ${b.join(` `)};`,S=`padding: ${b.join(` `)};`,C=v+`position: relative; padding: 0.7em; max-width: 20em; color: ${u};`,w=`${C+x} opacity: 50%; background-color: ${a};`,T=`${C+x} background-color: ${l};`,E=`height: 100%; width: 100%;`;if(f.refresh=A,A(),!e.startEmpty&&h.children.length&&e.selectedTab){let t=Array.from(h.children).map(e=>e.firstChild).find(t=>t.dataset.name===e.selectedTab),n=e.selectedTab.uri,r=Array.from(h.children).find(e=>e.subject&&e.subject.uri&&e.subject.uri===n)||t||h.children[0],i=r.firstChild;i?.click?i.click():r instanceof HTMLElement&&r.click()}else if(!e.startEmpty){let e=h.children[0],t=e?.firstChild;t?.click?t.click():e instanceof HTMLElement&&e.click()}return f;function D(e){if(e.dataset.onCloseSet){let t=e.querySelector(`.unstyled`);e.removeChild(t)}let t=r.createElement(`li`);t.classList.add(`unstyled`);let n=yy(r,c);n.setAttribute(`style`,n.getAttribute(`style`)+S),t.appendChild(n),e.appendChild(t),e.dataset.onCloseSet=`true`}function O(){return e.items?e.items:e.ordered===!1?n.store.each(t,e.predicate):n.store.the(t,e.predicate).elements}function k(t){let n=r.createElement(`li`);n.setAttribute(`style`,w),n.subject=t;let i=n.appendChild(r.createElement(`button`));if(i.setAttribute(`style`,G.makeNewSlot),i.onclick=function(){if(j(),ee(),n.setAttribute(`style`,T),!n.bodyTR)return;n.bodyTR.setAttribute(`style`,E);let r=a(n);e.renderMain&&n.subject&&r.asSettings!==!1&&(r.innerHTML=`loading item ...`+t,e.renderMain(r,n.subject),r.asSettings=!1)},e.renderTabSettings&&n.subject){let i=r.createElement(`button`);i.textContent=`...`,i.setAttribute(`style`,G.ellipsis),i.onclick=function(){if(j(),ee(),n.setAttribute(`style`,T),!n.bodyTR)return;n.bodyTR.setAttribute(`style`,E);let r=a(n);e.renderTabSettings&&n.subject&&r.asSettings!==!0&&(r.innerHTML=`loading settings ...`+t,e.renderTabSettings(r,n.subject),r.asSettings=!0)},n.appendChild(i)}return e.renderTab?e.renderTab(i,t):i.innerHTML=B(t),n;function a(e){let t=e.bodyTR?.children[0];if(t)return t;let n=e.bodyTR.appendChild(r.createElement(`div`));return n.setAttribute(`style`,d),n}}function A(){let e=O(),t,n,i,a,o,s=!1;for(a=0;a<h.children.length;a++)if(t=h.children[a],a>=e.length||t.subject&&!t.subject.sameTerm(e[a])){s=!0;break}if(!s&&e.length===h.children.length)return;for(o=h.children.length-1;o>=0&&(t=h.children[o],i=o-h.children.length+e.length,!(t.subject&&!t.subject.sameTerm(e[i])));o--);let l=e.slice(a,o-h.children.length+e.length+1);for(;o>=a;)h.removeChild(h.children[a]),g.removeChild(g.children[a]),--o;for(n=0;n<l.length;n++){let e=k(l[n]),t=r.createElement(`div`);e.bodyTR=t,a===h.children.length?(h.appendChild(e),g.appendChild(t)):(h.insertBefore(e,h.children[a+n]),g.insertBefore(t,g.children[a+n]))}c&&D(h)}function j(){for(let e=0;e<h.children.length;e++){let t=h.children[e];t.classList.contains(`unstyled`)||t.setAttribute(`style`,w)}}function ee(){for(let e=0;e<g.children.length;e++)g.children[e].setAttribute(`style`,`height: 100%; width: 100%;display: none;`)}}function ME(e){return PE(e)?[NE(e,`#ffffff`,.3),`#000000`]:[NE(e,`#000000`,.3),`#ffffff`]}function NE(e,t,n){let r,i,a,o=`#`,s=`0123456789abcdef`;for(let c=0;c<3;c++){r=parseInt(e.slice(c*2+1,c*2+3),16),i=parseInt(t.slice(c*2+1,c*2+3),16),a=r*(1-n)+i*n;let l=parseInt((``+a).split(`.`)[0]),u=parseInt((``+l/16).split(`.`)[0]),d=parseInt((``+l%16).split(`.`)[0]);o+=s[u]+s[d]}return o}function PE(e){let t=0;for(let n=0;n<3;n++)t+=parseInt(e.slice(n*2+1,n*2+3),16);return t>384}var FE=`
2069
+ `+e)}):(o=!0,G(f.uri+` is unsigned`));let b=await zk(t),x=!t.sameTerm(b),S=n.store.the(b,R.dct(`created`),null,b.doc())||n.store.the(t,R.dct(`created`),null,t.doc()),C=$.createElement(`tr`);o&&C.setAttribute(`style`,`background-color: red`),C.AJAR_date=S.value,C.AJAR_subject=t;let w=$.createElement(`td`);if(C.appendChild(w),i.authorDateOnLeft)TA(w,c,bC(S.value),t);else{let e=$.createElement(`img`);e.setAttribute(`style`,`max-height: 2.5em; max-width: 2.5em; border-radius: 0.5em; margin: auto;`),jC(e,c),w.appendChild(e)}let T=bC(S.value);x&&(T+=` ... `+bC(l.value));let E=C.appendChild($.createElement(`td`));i.authorDateOnLeft||EA(E,c,T,t);let D=p?p.value.trim():`??? no content?`,O=/^https?:\/[^ <>]*$/i.test(D),k=null;if(O)if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(D)&&i.expandImagesInline){let e=SA(D,i);E.appendChild(e)}else{let e=E.appendChild($.createElement(`a`));k=e.appendChild($.createElement(`p`)),e.href=D,k.textContent=D,E.appendChild(e)}else k=$.createElement(`p`),E.appendChild(k),k.textContent=D;if(k){let e=s?Zk(c):A(r);k.setAttribute(`style`,bA+`background-color: `+e+`;`)}function A(e){return e?`#e8ffe8`:`white`}let j=await vA(t,t.doc());j.children.length&&(E.appendChild($.createElement(`br`)),E.appendChild(j));let ee=$.createElement(`td`);C.appendChild(ee);let te=X($,J.iconBase+`noun_243787.svg`,`...`);return ee.appendChild(te),te.addEventListener(`click`,async function(n){if(C.toolTR){C.parentNode.removeChild(C.toolTR),delete C.toolTR;return}let r=$.createElement(`tr`),o=await yA(t,C,{...a,chatOptions:i},e);o.style=`border: 0.05em solid #888; border-radius: 0 0 0.7em 0.7em; border-top: 0; height:3.5em; background-color: #fff;`,C.nextSibling?C.parentElement.insertBefore(r,C.nextSibling):C.parentElement.appendChild(r),C.toolTR=r,r.appendChild($.createElement(`td`));let s=r.appendChild($.createElement(`td`));r.appendChild($.createElement(`td`)),s.appendChild(o)}),g&&i.showThread&&ee.appendChild(X($,J.iconBase+`noun_1180164.svg`,`see thread`,e=>{i.showThread(g,i)})),C}async function OA(e,t,n,r){let i=e.parentNode,a=kA(n,i,r,n.options,await Bk(t));i.insertBefore(a,e),a.originalRow=e,e.style.visibility=`hidden`}function kA(e,t,r,i,a){function o(e){e.originalRow.style.visibility=`visible`,e.parentNode.removeChild(e)}async function s(e){await c(v.value,!0)}async function c(n,o){async function s(n,s){if(await jA(e,t,n,!1,i,r),a){let e=m.originalRow;e.parentNode?e.parentNode.removeChild(e):(G(`No parentNode on old message `+e.textContent),e.style.backgroundColor=`#fee`,e.style.visibility=`hidden`),m.parentNode.removeChild(m)}else o&&(v.value=``,v.setAttribute(`style`,bA),v.disabled=!1,v.scrollIntoView(i.newestFirst),v.focus(),v.select())}o&&(v.setAttribute(`style`,bA+`color: #bbb;`),v.disabled=!0);let c;try{c=await e.updateMessage(n,a,null,i.thread)}catch(e){(r.statusArea||m).appendChild(q($,`Error writing message: `+e));return}await s(c,n)}function l(e){let r=t.chatDocument.dir().uri;XS(n.store.fetcher,e,r+`Files`,r+`Pictures`,async function(e,t){await c(t)})}let u=async function(e){for(let t of e)await c(t)};function d(){function t(){return b=$rdf.sym(f.dir().uri+`Image_`+Date.now()+`.png`),b}async function r(e){e&&await c(e.uri)}if(i.menuHandler){let e=X($,J.iconBase+`noun_243787.svg`,`More`);e.setAttribute(`style`,U.buttonStyle+`float: right;`),_.appendChild(e)}i.menuHandler;let d=n.authn.currentUser();if(TA(h,d,``,null),v=$.createElement(`textarea`),g.innerHTML=``,g.appendChild(v),v.rows=3,a&&(v.value=n.store.anyValue(a,R.sioc(`content`),null,a.doc())),v.setAttribute(`style`,bA+`background-color: #eef;`),v.addEventListener(`keydown`,async function(e){e.code===`Enter`&&(!e.shiftKey&&!i.shiftEnterSendsMessage||e.shiftKey&&i.shiftEnterSendsMessage)&&await s(e)},!1),JS(v,u,l),_.innerHTML=``,y=X($,p,`Send`),y.style.float=`right`,y.addEventListener(`click`,e=>s(),!1),_.appendChild(y),a){let e=_.appendChild(FC($));e.style.float=`left`,e.addEventListener(`click`,e=>o(m),!1),_.appendChild(e)}let f=e.dateFolder.leafDocumentFromDate(new Date),b;g.appendChild(WE.cameraButton($,n.store,t,r)),Kk(e.channel,e.channel.doc())}let f,p;a?(f=n.store.anyValue(a,R.dct(`created`),null,a.doc()),p=J.iconBase+`noun_1180158.svg`):(p=J.iconBase+`noun_383448.svg`,f=`9999-01-01T00:00:00Z`);let m=$.createElement(`tr`),h=$.createElement(`td`),g=$.createElement(`td`),_=$.createElement(`td`);m.appendChild(h),m.appendChild(g),m.appendChild(_),m.AJAR_date=f;let v,y;return JT({div:g,dom:$}).then(e=>{d(),Object.assign(e,r),cA(e).then(e=>{})}),m}function AA(e){`Notification`in window?Notification.permission===`granted`?new Notification(e):Notification.permission!==`denied`&&Notification.requestPermission().then(function(t){t===`granted`&&new Notification(e)}):G(`This browser does no t support desktop notification`)}async function jA(e,t,n,r,i,a){let o=await DA(e,n,r,i,a);i.selectedMessage&&i.selectedMessage.sameTerm(n)&&(o.style.backgroundColor=`yellow`,i.selectedElement=o,t.selectedElement=o);let s=!1;for(let e=t.firstChild;e;e=e.nextSibling){let n=i.newestfirst===!0,r=o.AJAR_date;if(r>e.AJAR_date&&n||r<e.AJAR_date&&!n){t.insertBefore(o,e),s=!0;break}}s||t.appendChild(o)}async function MA(e,r,i,a){async function o(e,t){let r={},i,a;for(i=t.firstChild;i;i=i.nextSibling)i.AJAR_subject&&(r[i.AJAR_subject.uri]=!0);let o=n.store.each(e,R.wf(`message`),null,t.chatDocument),c={};for(let e of o)c[e.uri]=!0,r[e.uri]||await s(e,t);for(i=t.firstChild;i;)a=i.nextSibling,i.AJAR_subject&&!c[i.AJAR_subject.uri]&&t.removeChild(i),i=a;for(i=t.firstChild;i;i=i.nextSibling)i.AJAR_subject&&UC(i)}async function s(e,t){if(Vk(e)&&!a.showDeletedMessages)return;let r=n.store.any(null,R.sioc(`has_member`),e,e.doc()),i=n.store.any(e,R.sioc(`id`),null,e.doc());if(i&&!r&&(r=n.store.any(null,R.sioc(`has_member`),i,e.doc())),a.thread){if(!n.store.holds(e,R.sioc(`has_reply`),a.thread)&&!(r&&r.sameTerm(a.thread)))return}else if(r)return;t.fresh||await jA(g,t,e,t.fresh,a,b)}async function c(e){let t=e?C:w,n=t.messageTable.date;if(e&&C.limit&&n<=C.limit)return x||await f(),!0;if(n=await _.loadPrevious(n,e),!n&&!e&&!x&&await f(),!n)return!0;let r=!1;if(!e){let e=_.leafDocumentFromDate(new Date);r=_.leafDocumentFromDate(n).sameTerm(e)}let i=await l(n,r);return t.messageTable=i,(e?h:!h)?v.appendChild(i):v.insertBefore(i,v.firstChild),r}async function l(t,r){let i=_.leafDocumentFromDate(t);try{await n.store.fetcher.createIfNotExists(i)}catch(n){let a=e.createElement(`table`).appendChild(e.createElement(`tr`));return n.response&&n.response.status&&n.response.status===404?await u(t,r):(W(`*** Error NON 404 for chat file `+i),a.appendChild(q(e,n,`pink`)),a)}return await u(t,r)}async function u(t,r){async function i(){let e=await c(!0);return e?l.initial=!0:l.extendedBack=!0,e}async function o(){return await c(!1)}let l=e.createElement(`table`);l.style.width=`100%`,l.extendBackwards=i,l.extendForwards=o,l.date=t;let u=_.leafDocumentFromDate(t);if(l.chatDocument=u,l.fresh=!1,l.setAttribute(`style`,`width: 100%;`),r){l.final=!0,x=l,w.messageTable=l;let e=kA(g,l,b,a);h?l.insertBefore(e,l.firstChild):l.appendChild(e),l.inputRow=e}{let n=e.createElement(`tr`),r=n.appendChild(e.createElement(`td`));r.style=`text-align: center; vertical-align: middle; color: #888; font-style: italic;`,r.textContent=bC(t.toISOString(),!0);let i=n.appendChild(e.createElement(`td`));a.includeRemoveButton&&i.appendChild(FC(e,e=>{v.parentNode.removeChild(v)})),l.extendedForwards=!1,h?l.appendChild(n):l.insertBefore(n,l.firstChild)}let d=n.store.statementsMatching(null,R.wf(`message`),null,u);!r&&d.length;for(let e of d)await s(e.object,l);return l.fresh=!0,l}async function d(){let e=_.leafDocumentFromDate(new Date);if(!e.sameTerm(w.messageTable.chatDocument)){x.inputRow&&(x.removeChild(x.inputRow),delete x.inputRow);let r=w.messageTable.chatDocument;if(await f(),!n.store.holds(r,R.rdfs(`seeAlso`),e,r)){let i=[t.st(r,R.rdfs(`seeAlso`),e,r)];try{n.store.updater.update([],i)}catch(e){alert(`Unable to link old chat file to new one:`+e)}}}}async function f(){let e=new Date,t=_.leafDocumentFromDate(e),r=await l(e,!0);return v.appendChild(r),v.refresh=async function(){await d(new Date),await o(i,r),AA(i)},n.store.updater.addDownstreamChangeListener(t,v.refresh),x=r,w.messageTable=x,r}async function p(e,t){if(T)return;T=!0;let n=!t,r;for(;v.scrollTop<150&&C.messageTable&&!C.messageTable.initial&&C.messageTable.extendBackwards;){if(v.scrollHeight===0){setTimeout(p,2e3),T=!1;return}let e=v.scrollHeight-v.scrollTop;if(r=await C.messageTable.extendBackwards(),n&&(v.scrollTop=v.scrollHeight-e),t&&t(),r)break}for(;a.selectedMessage&&v.scrollHeight-v.scrollTop-v.clientHeight<150&&w.messageTable&&!w.messageTable.final&&w.messageTable.extendForwards;){let e=v.scrollTop;if(r=await w.messageTable.extendForwards(),n&&(v.scrollTop=e),t&&t(),r)break}T=!1}async function m(){function e(){s&&s.selectedElement&&s.selectedElement.scrollIntoView({block:`center`})}function t(){a.selectedElement?a.selectedElement.scrollIntoView({block:`center`}):x.inputRow.scrollIntoView&&x.inputRow.scrollIntoView(h)}let n,r,i;a.selectedMessage&&(r=a.selectedMessage.doc()),S&&(i=S.doc());let o=r||i;if(o){let e=new Date;n=_.leafDocumentFromDate(e).sameTerm(o)}let s;o&&!n?(s=await l(_.dateFromLeafDocument(o),n),v.appendChild(s),C.messageTable=s,w.messageTable=s,e(),setTimeout(e,1e3)):(await f(),C.messageTable=x,w.messageTable=x),await p(null,t),v.addEventListener(`scroll`,p),a.solo&&document.body.addEventListener(`scroll`,p)}a||={},a.authorDateOnLeft=!1;let h=a.newestFirst===`1`||a.newestFirst===!0,g=new Lk(i,a),_=g.dateFolder,v=e.createElement(`div`);g.div=v;let y=v.appendChild(e.createElement(`div`)),b={dom:e,statusArea:y,div:y},x,S,C={messageTable:null},w={messageTable:null};if(a.thread){let e=a.thread;if(S=n.store.any(null,R.sioc(`has_reply`),e,e.doc()),S){let e=n.store.any(S,R.dct(`created`),null,S.doc());e&&(C.limit=new Date(e.value))}}let T=!1;return await m(),v}var NA=d({get:()=>IA,getPreferencesForClass:()=>HA,recordPersonalDefaults:()=>zA,recordSharedPreferences:()=>RA,renderPreferencesForm:()=>BA,set:()=>LA,value:()=>FA}),PA=n.store,FA=[];function IA(e){return FA[e]}function LA(e,t){if(typeof t!=`string`)throw W(`Non-string value of preference `+e+`: `+t),Error(`Non-string value of preference `+e+`: `+t);this.value[e]=t}function RA(e,n){return new Promise(function(r,i){let a=PA.any(e,R.ui(`sharedPreferences`));if(a)n.sharedPreferences=a,r(n);else{PA.updater.editable(e.doc())||(W(` Cant make shared preferences, may not change ${e.doc}`),r(n));let a=t.sym(e.doc().uri+`#SharedPreferences`),o=[t.st(e,R.ui(`sharedPreferences`),a,e.doc())];W(`Creating shared preferences `+a),PA.updater.update([],o,function(e,t,o){t?(n.sharedPreferences=a,r(n)):i(Error(`Error creating shared prefs: `+o))})}})}function zA(e,n){return new Promise(function(r,i){YT(n).then(n=>{if(!n.preferencesFile){W(`Not doing private class preferences as no access to preferences file. `+n.preferencesFileError);return}let a=PA.each(null,R.solid(`forClass`),e,n.preferencesFile),o=[],s,c;if(a.length){if(a.forEach(e=>{s||=PA.any(e,R.solid(`personalDefaults`))}),s){n.personalDefaults=s,r(n);return}s=MT(n.preferencesFile),c=a[0]}else c=MT(n.preferencesFile),o=[t.st(c,R.rdf(`type`),R.solid(`TypeRegistration`),n.preferencesFile),t.st(c,R.solid(`forClass`),e,n.preferencesFile)];s=MT(n.preferencesFile),o.push(t.st(c,R.solid(`personalDefaults`),s,n.preferencesFile)),PA.updater.update([],o,function(t,a,o){a?(n.personalDefaults=s,r(n)):i(Error(`Setting preferences for `+e+`: `+o))})},e=>{i(e)})})}function BA(e,t,n,r){let i=r.dom.createElement(`div`);return Gk(e,e.doc(),r.me).then(a=>{let o=r.dom;function s(e){i.appendChild(o.createElement(`h5`)).textContent=e}s(`My view of this `+r.noun),vT(o,i,{},a,n,e.doc(),(e,t)=>{e||_C(r,t)}),s(`Everyone's view of this `+r.noun),RA(e,r).then(r=>{let a=r.sharedPreferences;vT(o,i,{},a,n,e.doc(),(e,t)=>{e||_C(r,t)}),s(`My default view of any `+r.noun),zA(t,r).then(e=>{vT(o,i,{},e.personalDefaults,n,e.preferencesFile,(t,n)=>{t||_C(e,n)})},e=>{_C(r,e)})})},e=>{i.appendChild(q(r.dom,e))}),i}function VA(e){return e.datatype?e.datatype.equals(R.xsd(`boolean`))?e.value===`1`:e.datatype.equals(R.xsd(`dateTime`))||e.datatype.equals(R.xsd(`date`))?new Date(e.value):e.datatype.equals(R.xsd(`integer`))||e.datatype.equals(R.xsd(`float`))||e.datatype.equals(R.xsd(`decimal`))?Number(e.value):e.value:e}function HA(e,t,n,r){return new Promise(function(i,a){RA(e,r).then(r=>{let o=r.sharedPreferences;if(r.me)Gk(e,e.doc(),r.me).then(e=>{zA(t,r).then(t=>{let r=[],a=t.personalDefaults;n.forEach(t=>{let n=PA.any(e,t)||PA.any(o,t)||PA.any(a,t);n&&(r[t.uri]=VA(n))}),i(r)},a)},a);else{let e=[];n.forEach(t=>{let n=PA.any(o,t);n&&(e[t.uri]=VA(n))}),i(e)}})})}var UA={icons:J,log:wv,ns:R,utils:ty,widgets:IT};function WA(e,r){let i=r.sourceDocument,a=r.tableClass,o=r.query,s=UA.ns,c=n.store,l={},u={"http://www.w3.org/2002/07/owl#sameAs":!0,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":!0},d={"http://www.w3.org/2001/XMLSchema#decimal":!0,"http://www.w3.org/2001/XMLSchema#float":!0,"http://www.w3.org/2001/XMLSchema#double":!0,"http://www.w3.org/2001/XMLSchema#integer":!0,"http://www.w3.org/2001/XMLSchema#nonNegativeInteger":!0,"http://www.w3.org/2001/XMLSchema#positiveInteger":!0,"http://www.w3.org/2001/XMLSchema#nonPositiveInteger":!0,"http://www.w3.org/2001/XMLSchema#negativeInteger":!0,"http://www.w3.org/2001/XMLSchema#long":!0,"http://www.w3.org/2001/XMLSchema#int":!0,"http://www.w3.org/2001/XMLSchema#short":!0,"http://www.w3.org/2001/XMLSchema#byte":!0,"http://www.w3.org/2001/XMLSchema#unsignedLong":!0,"http://www.w3.org/2001/XMLSchema#unsignedInt":!0,"http://www.w3.org/2001/XMLSchema#unsignedShort":!0,"http://www.w3.org/2001/XMLSchema#unsignedByte":!0},f={"http://www.w3.org/2001/XMLSchema#dateTime":!0,"http://www.w3.org/2001/XMLSchema#date":!0},p={"http://xmlns.com/foaf/0.1/Image":!0,"http://purl.org/dc/terms/Image":!0},m=r.keyVariable||`?_row`,h=0,g,_,v,y,b=null,x=null,S=e.createElement(`div`);S.className=`tableViewPane`,S.appendChild(T());let C=e.createElement(`div`);S.appendChild(C),S.refresh=function(){Ie(w.query,w.logicalRows,w.columns,w)};let w;if(o)w=ze(o),C.appendChild(w);else{let e=pe();g=e[0],_=e[1],a||v.appendChild(ae(g,_)),x=Be(_),A(x||g)}return S;function T(){let t=e.createElement(`table`);t.setAttribute(`class`,`toolbar`);let n=e.createElement(`tr`);return v=e.createElement(`td`),n.appendChild(v),y=e.createElement(`td`),n.appendChild(y),t.appendChild(n),t}function E(e,t){let n=t.getColumns();for(let t=0;t<n.length;++t){let r=c.variable(`_col`+t);e.vars.push(r),n[t].setVariable(r)}}function D(e,t,n){let r=n.type;r||=c.variable(`_any`),e.pat.add(t,UA.ns.rdf(`type`),r)}function O(e,t,n){let r=n.getColumns();for(let n=0;n<r.length;++n){let i=r[n],a=c.formula();a.add(t,i.predicate,i.getVariable()),e.pat.optional.push(a)}}function k(e){let n=new t.Query,r=c.variable(m.slice(1));return E(n,e),D(n,r,e),O(n,r,e),n}function A(e){ee(y),y.appendChild(se(e)),j(k(e),e)}function j(e,t){b&&(b.running=!1);let n=ze(e,t);ee(C),C.appendChild(n),b=e}function ee(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function te(e){this.type=e,this.columns=null,this.allColumns=[],this.useCount=0,this.getAllColumns=function(){return this.allColumns},this.getColumns=function(){if(!this.columns){let e=this.getAllColumns();this.columns=e.slice(0,7)}return this.columns},this.getUnusedColumns=function(){let e=this.getAllColumns(),t=this.getColumns(),n=[];for(let r=0;r<e.length;++r)t.indexOf(e[r])===-1&&n.push(e[r]);return n},this.addColumn=function(e){this.columns.push(e)},this.removeColumn=function(e){this.columns=this.columns.filter(function(t){return t!==e})},this.getLabel=function(){return V(this.type)},this.addUse=function(){this.useCount+=1}}function ne(){this.useCount=0,this.checkedAnyValues=!1,this.possiblyLiteral=!0,this.possiblyNumber=!0,this.constraints=[],this.checkValue=function(e){let t=e.termType;this.possiblyLiteral&&t!==`Literal`&&t!==`NamedNode`?(this.possiblyNumber=!1,this.possiblyLiteral=!1):this.possiblyNumber&&(t===`Literal`&&e.value.match(/^-?\d+(\.\d*)?$/)||(this.possiblyNumber=!1)),this.checkedAnyValues=!0},this.getVariable=function(){return this.variable},this.setVariable=function(e){this.variable=e},this.getKey=function(){return this.variable.toString()},this.addUse=function(){this.useCount+=1},this.getHints=function(){return r&&r.hints&&this.variable&&r.hints[this.variable.toNT()]?r.hints[this.variable.toNT()]:{}},this.getLabel=function(){return this.getHints().label?this.getHints().label:this.predicate?this.predicate.sameTerm(s.rdf(`type`))&&this.superClass?V(this.superClass,!0):V(this.predicate):this.variable?this.variable.toString():`unlabeled column?`},this.setPredicate=function(e,t,n){t?(this.inverse=e,this.constraints=this.constraints.concat(c.each(e,UA.ns.rdfs(`domain`))),e.sameTerm(s.rdfs(`subClassOf`))&&n.termType===`NamedNode`&&(this.superClass=n,this.alternatives=c.each(void 0,s.rdfs(`subClassOf`),n))):(this.predicate=e,this.constraints=this.constraints.concat(c.each(e,UA.ns.rdfs(`range`))))},this.getConstraints=function(){return this.constraints},this.filterFunction=function(){return!0},this.sortKey=function(){return this.getLabel().toLowerCase()},this.isImageColumn=function(){for(let e=0;e<this.constraints.length;e++)if(this.constraints[e].uri in p)return!0;return!1}}function re(e,t){let n=[];for(let r in e){let i=e[r];(!t||t(r,i))&&n.push(i)}return n}function ie(t,n){let r=e.createElement(`option`);return r.setAttribute(`value`,n),r.appendChild(e.createTextNode(t)),r}function ae(t,n){let r=e.createElement(`div`);r.appendChild(e.createTextNode(`Select type: `));let i=e.createElement(`select`);i.appendChild(ie(`All types`,`null`));for(let e in n)i.appendChild(ie(n[e].getLabel(),e));return i.addEventListener(`click`,function(){let e;e=i.value===`null`?t:n[i.value],oe(e)},!1),r.appendChild(i),r}function oe(e){A(e)}function se(t){let n=e.createElement(`div`),r=t.getUnusedColumns();if(r.sort(function(e,t){let n=e.sortKey(),r=t.sortKey();return(n>r)-(n<r)}),r.length>0){n.appendChild(e.createTextNode(`Add column: `));let i=e.createElement(`select`);i.appendChild(ie(``,`-1`));for(let e=0;e<r.length;++e){let t=r[e];i.appendChild(ie(t.getLabel(),``+e))}n.appendChild(i),i.addEventListener(`click`,function(){let e=Number(i.value);e>=0&&(t.addColumn(r[e]),A(t))},!1)}return n}function M(e,t){for(let n in e){let r=e[n];if(r.variable.toNT()===t)return r}throw Error(`getColumnForVariable: no column for variable ${t}`)}function ce(e,t){let n;return t.uri in e?n=e[t.uri]:(n=new ne,n.setPredicate(t),e[t.uri]=n),n}function le(e,t){let n;return t.uri in e?n=e[t.uri]:(n=new te(t),e[t.uri]=n),n}function ue(){let e={},t=c.statementsMatching(void 0,UA.ns.rdf(`type`),a,i),n={};for(let r=0;r<t.length;++r){let i=t[r].object;if(i.termType!==`NamedNode`)continue;let a=le(e,i);i.uri in n||(n[i.uri]=[]),n[i.uri].push(t[r].subject),a.addUse()}return[n,e]}function de(e,t){let n=c.statementsMatching(e,void 0,void 0,i),r={};for(let e=0;e<n.length;++e){let i=n[e].predicate;if(i.uri in u)continue;let a=ce(t,i);a.checkValue(n[e].object),r[i.uri]=a}return r}function fe(e,t){let n={};for(let e=0;e<t.length;++e){let r=de(t[e],n);for(let e in r)r[e].addUse()}let r=re(n);me(r),e.allColumns=r}function pe(){let e,t,n=ue();e=n[0],t=n[1];for(let n in e){let r=e[n],i=t[n];fe(i,r)}return[new te(null),re(t)]}function me(e){function t(e,t){return(e.useCount<t.useCount)-(e.useCount>t.useCount)}e.sort(t)}function he(t,n){let r=e.createElement(`a`);return r.appendChild(e.createTextNode(`[x]`)),r.addEventListener(`click`,function(){t.removeColumn(n),A(t)},!1),r}function ge(t,n){let r=e.createElement(`tr`),i=e.createElement(`th`);r.appendChild(i);for(let i=0;i<t.length;++i){let a=e.createElement(`th`),o=t[i];a.appendChild(e.createTextNode(o.getLabel())),n&&a.appendChild(he(n,o)),r.appendChild(a)}return r}function _e(e,t,n,r){let i=t.getKey();if(e.sort(function(e,t){let a=null,o=null;i in e.values&&(a=e.values[i][0]),i in t.values&&(o=t.values[i][0]);let s=n(a,o);return r?-s:s}),e.length){let t=e[0]._htmlRow.parentNode;for(let n=0;n<e.length;++n)t.removeChild(e[n]._htmlRow);for(let n=0;n<e.length;++n)t.appendChild(e[n]._htmlRow)}}function ve(e,t){let n=!0;for(let r=0;r<t.length;++r){let i=t[r],a=i.getKey(),o=null;if(a in e.values&&(o=e.values[a][0]),!i.filterFunction(o)){n=!1;break}}let r=e._htmlRow;n?r.style.display=``:r.style.display=`none`}function ye(e,t){for(let n=0;n<e.length;++n){let r=e[n];ve(r,t)}}function be(e,t,n){function r(e){return e?e.termType===`Literal`?e.value.toLowerCase():e.termType===`NamedNode`?V(e).toLowerCase():e.value.toLowerCase():``}function i(e,t){let n=r(e),i=r(t);return n<i?-1:+(n>i)}_e(e,t,i,n)}function xe(t,n,r){let i=e.createElement(`div`),a=e.createElement(`input`);a.setAttribute(`type`,`text`),a.style.width=`70%`,i.appendChild(a);let o=e.createElement(`span`);o.appendChild(e.createTextNode(`▼`)),o.addEventListener(`click`,function(){be(t,r,!1)},!1),i.appendChild(o);let s=e.createElement(`span`);s.appendChild(e.createTextNode(`▲`)),s.addEventListener(`click`,function(){be(t,r,!0)},!1),i.appendChild(s);let c=null;return r.filterFunction=function(e){if(!c)return!0;if(e){let t;return t=e.termType===`Literal`?e.value:e.termType===`NamedNode`?V(e):``,t.toLowerCase().indexOf(c)>=0}return!1},a.addEventListener(`keyup`,function(){c=a.value===``?null:a.value.toLowerCase(),ye(t,n)},!1),i}function Se(t,n,r,i){let a=e.createElement(`div`),o=e.createElement(`select`),s={};for(let e=0;e<i.length;++e){let t=i[e];s[t.uri]=!0}let c=Ae(r).initialSelection;c&&(s=c),o.setAttribute(`multiple`,`true`);for(let e=0;e<i.length;++e){let t=i[e],n=ie(V(t),e);s[t.uri]&&(n.selected=!0),o.appendChild(n)}return a.appendChild(o),r.filterFunction=function(e){return!s||e&&s[e.uri]},o.addEventListener(`click`,function(){{s={};let e=o.options;for(let t=0;t<e.length;t++){let n=e[t],r=Number(n.value);e[t].selected&&(s[i[r].uri]=!0)}}ye(t,n)},!0),a}function Ce(t,n,r){let i=e.createElement(`div`),a=e.createElement(`input`);a.setAttribute(`type`,`text`),a.style.width=`40px`,i.appendChild(a);let o=e.createElement(`input`);o.setAttribute(`type`,`text`),o.style.width=`40px`,i.appendChild(o);let s=null,c=null;r.filterFunction=function(e){return e&&=Number(e),!(s&&(!e||e<s)||c&&(!e||e>c))};function l(){s=a.value===``?null:Number(a.value),c=o.value===``?null:Number(o.value),ye(t,n)}return a.addEventListener(`keyup`,l,!1),o.addEventListener(`keyup`,l,!1),i}function we(e,t,n){return n.checkedAnyValues&&n.possiblyNumber?Ce(e,t,n):n.possiblyLiteral?xe(e,t,n):null}function Te(e,t,n){if(n.superClass&&n.alternatives.length>0)return Se(e,t,n,n.alternatives);let r=n.getConstraints(),i;for(let a=0;a<r.length;a++){if(i=r[a],n.checkedAnyValues&&n.possiblyNumber||i.uri in d)return Ce(e,t,n);if(i.uri===`http://www.w3.org/2000/01/rdf-schema#Literal`)return xe(e,t,n);let o=c.each(i,UA.ns.owl(`oneOf`));if(o.length>0)return Se(e,t,n,o.elements)}return we(e,t,n)}function Ee(t,n){let r=e.createElement(`tr`);r.className=`selectors`,r.appendChild(e.createElement(`td`));for(let i=0;i<n.length;++i){let a=e.createElement(`td`),o=Te(t,n,n[i]);o&&a.appendChild(o),r.appendChild(a)}return r}function De(t,n,r){r||={};let i=e.createElement(`a`),a=r.linkFunction;return i.setAttribute(`href`,t),i.appendChild(e.createTextNode(n)),a?i.addEventListener(`click`,function(e){e.preventDefault(),e.stopPropagation();let t=my(e).getAttribute(`href`);t||W(`No href found
2070
+ `),a(t)},!0):i.addEventListener(`click`,UA.widgets.openHrefInOutlineMode,!0),i}function Oe(e,t){let n=!1;return e.uri&&(n=e.uri.match(/^mailto:(.*)/)),n?De(e.uri,n[1],t):De(e.uri,V(e),t)}function ke(t){let n=e.createElement(`img`);return n.setAttribute(`src`,t.uri),n.style.height=`40px`,n}function Ae(e){return r&&r.hints&&e.variable&&r.hints[e.variable.toNT()]?r.hints[e.variable.toNT()]:{}}function je(t,n){let r=Ae(n),i=r.cellFormat;if(i)switch(i){case`shortDate`:return e.createTextNode(UA.widgets.shortDate(t.value))}else if(t.termType===`Literal`){if(t.datatype){if(f[t.datatype.uri])return e.createTextNode(UA.widgets.shortDate(t.value));if(d[t.datatype.uri]){let n=e.createElement(`span`);return n.textContent=t.value,n.setAttribute(`style`,`text-align: right`),n}}return e.createTextNode(t.value)}else if(t.termType===`NamedNode`&&n.isImageColumn())return ke(t);else if(t.termType===`NamedNode`||t.termType===`BlankNode`)return Oe(t,r);else if(t.termType===`Collection`){let r=e.createElement(`span`);return r.appendChild(e.createTextNode(`[`)),t.elements.forEach(function(t){r.appendChild(je(t,n)),r.appendChild(e.createTextNode(`, `))}),r.removeChild(r.lastChild),r.appendChild(e.createTextNode(`]`)),r}else return e.createTextNode(`unknown termtype '`+t.termType+`'!`)}function Me(t,n,r,i){let a=e.createElement(`td`);n._subject&&`uri`in n._subject&&a.appendChild(De(n._subject.uri,`→`)),t.appendChild(a);for(let i=0;i<r.length;++i){let a=r[i],o=e.createElement(`td`),s,c=a.getKey();if(c in n.values){let t=n.values[c],r=!1;n.originalValues&&n.originalValues[c]&&t.length!==n.originalValues[c].length&&(r=!0);for(let i=0;i<t.length;++i){let l=t[i];n.originalValues&&n.originalValues[c]&&n.originalValues[c].length>i&&(s=n.originalValues[c][i],l.toString()!==s.toString()&&(r=!0)),o.appendChild(je(l,a)),i!==t.length-1&&o.appendChild(e.createTextNode(`,
2071
+ `)),r&&(o.style.background=`#efe`)}}t.appendChild(o)}return n._htmlRow=t,t}function Ne(e,t){let n=null;if(e.termType===`Literal`)n=`value`;else if(e.termType===`NamedNode`)n=`uri`;else return t.indexOf(e)>=0;let r;for(r=0;r<t.length;++r)if(t[r].termType===e.termType&&t[r][n]===e[n])return!0;return!1}function Pe(e,t,n){let r,i=!1;for(r in n){let t=n[r];r in e.values||(e.values[r]=[]),Ne(t,e.values[r])||(e.values[r].push(t),i=!0)}i&&(ee(e._htmlRow),Me(e._htmlRow,e,t)),ve(e,t)}function Fe(e){if(`uri`in e)return e.uri;if(`_subject_id`in e)return e._subject_id;{let t=``+h;return e._subject_id=t,++h,t}}function Ie(t,n,i,a){t.running=!0;let o=Date.now(),s=e.createElement(`tr`);a.appendChild(s),s.textContent=`Loading ...`;for(let e=0;e<n.length;e++)n[e].original=!0,n[e].originalValues||(n[e].originalValues=n[e].values),n[e].values={};c.query(t,function(r){if(!t.running)return;s.textContent+=`.`;let o=null,c=null,u;if(m in r&&(c=r[m],u=Fe(c),u in l&&(o=l[u])),!o){let t=e.createElement(`tr`);a.appendChild(t),o={_htmlRow:t,_subject:c,values:{}},n.push(o),c&&(l[u]=o)}delete o.original,Pe(o,i,r)},void 0,function(){s&&s.parentNode&&s.parentNode.removeChild&&(s.parentNode.removeChild(s),s=null);let e=Date.now()-o;W(`Query done: `+n.length+` rows, `+e+`ms`);for(let e=n.length-1;e>=0;e--)if(n[e].original){W(` deleting row `+n[e]._subject);let t=n[e]._htmlRow;t.parentNode.removeChild(t),delete l[Fe(n[e]._subject)],n.splice(e,1)}r.sortBy&&be(n,M(i,r.sortBy),r.sortReverse),r.onDone&&r.onDone(S)})}function Le(e,t){UA.log.debug(`>> processing formula`);for(let n=0;n<t.statements.length;++n){let r=t.statements[n];if(r.predicate.termType===`NamedNode`&&r.object.termType===`Variable`){let t=r.object.toString();t in e&&e[t].setPredicate(r.predicate,!1,r.subject)}if(r.predicate.termType===`NamedNode`&&r.subject.termType===`Variable`){let t=r.subject.toString();t in e&&e[t].setPredicate(r.predicate,!0,r.object)}}for(let n=0;n<t.optional.length;++n)UA.log.debug(`recurse to optional subformula `+n),Le(e,t.optional[n]);UA.log.debug(`<< finished processing formula`)}function Re(e){let t=[],n={};for(let r=0;r<e.vars.length;++r){let i=new ne,a=e.vars[r];UA.log.debug(`column `+r+` : `+a),i.setVariable(a),n[a]=i,t.push(i)}return Le(n,e.pat),t}function ze(t,n){let r;r=o?Re(t):n.getColumns();let i=[],a=e.createElement(`table`);return a.appendChild(ge(r,n)),a.appendChild(Ee(i,r)),a.logicalRows=i,a.columns=r,a.query=t,Ie(t,i,r,a),a}function Be(e){let t=-1,n=null,r;for(r in e){let i=e[r];i.useCount>t&&(n=i,t=i.useCount)}return n}}var GA=d({TabWidgetElement:()=>KA,tabWidget:()=>JA}),KA=class extends HTMLElement{bodyContainer;refresh;tabContainer},qA=`#ddddcc`;function JA(e){let t=e.subject,r=e.dom||document,i=parseInt(e.orientation||`0`),a=e.backgroundColor||qA,o=i&2,s=i&1,c=e.onClose,[l,u]=YA(a),d=`display: grid; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ${l}; padding: 1em;`,f=r.createElement(`div`);f.setAttribute(`style`,U.tabsRootElement),f.style.flexDirection=(s?`row`:`column`)+(o?`-reverse`:``);let p=f.appendChild(r.createElement(`nav`));p.setAttribute(`style`,U.tabsNavElement);let m=f.appendChild(r.createElement(`div`));m.setAttribute(`style`,U.tabsMainElement);let h=p.appendChild(r.createElement(`ul`));h.setAttribute(`style`,U.tabContainer),h.style.flexDirection=`${s?`column`:`row`}`;let g=m;f.tabContainer=h,f.bodyContainer=g;let _=[`0.2em`,`0.2em`,`0`,`0`],v=`border-radius: ${_.concat(_).slice(i,i+4).join(` `)};`,y=[`0.3em`,`0.3em`,`0`,`0.3em`],b=y.concat(y).slice(i,i+4),x=`margin: ${b.join(` `)};`,S=`padding: ${b.join(` `)};`,C=v+`position: relative; padding: 0.7em; max-width: 20em; color: ${u};`,w=`${C+x} opacity: 50%; background-color: ${a};`,T=`${C+x} background-color: ${l};`,E=`height: 100%; width: 100%;`;if(f.refresh=A,A(),!e.startEmpty&&h.children.length&&e.selectedTab){let t=Array.from(h.children).map(e=>e.firstChild).find(t=>t.dataset.name===e.selectedTab),n=e.selectedTab.uri,r=Array.from(h.children).find(e=>e.subject&&e.subject.uri&&e.subject.uri===n)||t||h.children[0],i=r.firstChild;i?.click?i.click():r instanceof HTMLElement&&r.click()}else if(!e.startEmpty){let e=h.children[0],t=e?.firstChild;t?.click?t.click():e instanceof HTMLElement&&e.click()}return f;function D(e){if(e.dataset.onCloseSet){let t=e.querySelector(`.unstyled`);e.removeChild(t)}let t=r.createElement(`li`);t.classList.add(`unstyled`);let n=FC(r,c);n.setAttribute(`style`,n.getAttribute(`style`)+S),t.appendChild(n),e.appendChild(t),e.dataset.onCloseSet=`true`}function O(){return e.items?e.items:e.ordered===!1?n.store.each(t,e.predicate):n.store.the(t,e.predicate).elements}function k(t){let n=r.createElement(`li`);n.setAttribute(`style`,w),n.subject=t;let i=n.appendChild(r.createElement(`button`));if(i.setAttribute(`style`,U.makeNewSlot),i.onclick=function(){if(j(),ee(),n.setAttribute(`style`,T),!n.bodyTR)return;n.bodyTR.setAttribute(`style`,E);let r=a(n);e.renderMain&&n.subject&&r.asSettings!==!1&&(r.innerHTML=`loading item ...`+t,e.renderMain(r,n.subject),r.asSettings=!1)},e.renderTabSettings&&n.subject){let i=r.createElement(`button`);i.textContent=`...`,i.setAttribute(`style`,U.ellipsis),i.onclick=function(){if(j(),ee(),n.setAttribute(`style`,T),!n.bodyTR)return;n.bodyTR.setAttribute(`style`,E);let r=a(n);e.renderTabSettings&&n.subject&&r.asSettings!==!0&&(r.innerHTML=`loading settings ...`+t,e.renderTabSettings(r,n.subject),r.asSettings=!0)},n.appendChild(i)}return e.renderTab?e.renderTab(i,t):i.innerHTML=V(t),n;function a(e){let t=e.bodyTR?.children[0];if(t)return t;let n=e.bodyTR.appendChild(r.createElement(`div`));return n.setAttribute(`style`,d),n}}function A(){let e=O(),t,n,i,a,o,s=!1;for(a=0;a<h.children.length;a++)if(t=h.children[a],a>=e.length||t.subject&&!t.subject.sameTerm(e[a])){s=!0;break}if(!s&&e.length===h.children.length)return;for(o=h.children.length-1;o>=0&&(t=h.children[o],i=o-h.children.length+e.length,!(t.subject&&!t.subject.sameTerm(e[i])));o--);let l=e.slice(a,o-h.children.length+e.length+1);for(;o>=a;)h.removeChild(h.children[a]),g.removeChild(g.children[a]),--o;for(n=0;n<l.length;n++){let e=k(l[n]),t=r.createElement(`div`);e.bodyTR=t,a===h.children.length?(h.appendChild(e),g.appendChild(t)):(h.insertBefore(e,h.children[a+n]),g.insertBefore(t,g.children[a+n]))}c&&D(h)}function j(){for(let e=0;e<h.children.length;e++){let t=h.children[e];t.classList.contains(`unstyled`)||t.setAttribute(`style`,w)}}function ee(){for(let e=0;e<g.children.length;e++)g.children[e].setAttribute(`style`,`height: 100%; width: 100%;display: none;`)}}function YA(e){return ZA(e)?[XA(e,`#ffffff`,.3),`#000000`]:[XA(e,`#000000`,.3),`#ffffff`]}function XA(e,t,n){let r,i,a,o=`#`,s=`0123456789abcdef`;for(let c=0;c<3;c++){r=parseInt(e.slice(c*2+1,c*2+3),16),i=parseInt(t.slice(c*2+1,c*2+3),16),a=r*(1-n)+i*n;let l=parseInt((``+a).split(`.`)[0]),u=parseInt((``+l/16).split(`.`)[0]),d=parseInt((``+l%16).split(`.`)[0]);o+=s[u]+s[d]}return o}function ZA(e){let t=0;for(let n=0;n<3;n++)t+=parseInt(e.slice(n*2+1,n*2+3),16);return t>384}var QA=`
2377
2072
  <svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26" fill="none">
2378
2073
  <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="#D8D8D8" stroke="#8B8B8B"/>
2379
2074
  <mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="26" height="26">
@@ -2382,5 +2077,5 @@ optional { ?location wdt:P17 ?country }
2382
2077
  <g mask="url(#mask0)">
2383
2078
  <path fill-rule="evenodd" clip-rule="evenodd" d="M17.0468 10.4586C17.0468 14.4979 15.4281 16.9214 12.9999 16.9214C10.5718 16.9214 8.95298 14.4979 8.95298 10.4586C8.95298 6.41931 12.9999 6.41931 12.9999 6.41931C12.9999 6.41931 17.0468 6.41931 17.0468 10.4586ZM4.09668 23.3842C6.52483 17.7293 12.9999 17.7293 12.9999 17.7293C12.9999 17.7293 19.475 17.7293 21.9031 23.3842C21.9031 23.3842 17.8481 25 12.9999 25C8.15169 25 4.09668 23.3842 4.09668 23.3842Z" fill="#8B8B8B"/>
2384
2079
  </g>
2385
- </svg>`,IE=q.iconBase+`noun_help.svg`,LE=`https://solidproject.org/assets/img/solid-emblem.svg`;async function RE(e,t,r){let i=document.getElementById(`PageHeader`);if(!i)return;let a=em();zE(i,e,a,t,r)(),n.authSession.events.on(`logout`,zE(i,e,a,t,r)),n.authSession.events.on(`login`,zE(i,e,a,t,r))}function zE(e,t,r,i,a){return async()=>{let o=n.authn.currentUser();e.innerHTML=``,e.appendChild(await BE(t,r,o,i,a))}}async function BE(e,t,n,r,i){let a=document.createElement(`a`);a.href=t.uri,a.setAttribute(`style`,G.headerBannerLink);let o=document.createElement(`img`);i&&(o.src=i.logo?i.logo:LE),o.setAttribute(`style`,G.headerBannerIcon),a.appendChild(o);let s=n?await GE(e,n,r):HE(),c=document.createElement(`div`);c.setAttribute(`style`,G.headerBanner),c.appendChild(a);let l=document.createElement(`div`);if(l.setAttribute(`style`,G.headerBannerRightMenu),l.appendChild(s),i&&i.helpMenuList){let e=VE(i,i.helpMenuList);l.appendChild(e)}return c.appendChild(l),c}function VE(e,t){if(!t)return;let n=document.createElement(`ul`);n.setAttribute(`style`,G.headerUserMenuList),t.forEach(function(e){(e.url?`url`:`onclick`)==`url`?n.appendChild(KE(WE(e.label,e.url,e.target))):n.appendChild(KE(UE(e.label,e.onclick)))});let r=document.createElement(`nav`);r.setAttribute(`style`,G.headerUserMenuNavigationMenuNotDisplayed),r.setAttribute(`aria-hidden`,`true`),r.setAttribute(`id`,`helperNav`),r.appendChild(n);let i=document.createElement(`div`);i.setAttribute(`style`,G.headerBannerUserMenu),i.appendChild(r);let a=document.createElement(`button`);a.setAttribute(`style`,G.headerUserMenuTrigger),a.type=`button`;let o=document.createElement(`img`);o.src=e&&e.helpIcon?e.helpIcon:q.iconBase+IE,o.setAttribute(`style`,G.headerUserMenuTriggerImg),i.appendChild(a),a.appendChild(o);let s=rm(e=>JE(e,a,r),50);a.addEventListener(`click`,s);let c=setTimeout(()=>null,0);return i.addEventListener(`mouseover`,e=>{clearTimeout(c),s(e),document.getElementById(`helperNav`)?.setAttribute(`style`,G.headerUserMenuNavigationMenu)}),i.addEventListener(`mouseout`,e=>{c=setTimeout(()=>s(e),200),document.getElementById(`helperNav`)?.setAttribute(`style`,G.headerUserMenuNavigationMenuNotDisplayed)}),i}function HE(){let e=document.createElement(`div`);return e.setAttribute(`style`,G.headerBannerLogin),e.appendChild(Hx(document,null,{})),e}function UE(e,t){let n=document.createElement(`button`);return n.setAttribute(`style`,G.headerUserMenuButton),n.onmouseover=function(){n.setAttribute(`style`,G.headerUserMenuButtonHover)},n.onmouseout=function(){n.setAttribute(`style`,G.headerUserMenuButton)},n.addEventListener(`click`,t),n.innerText=e,n}function WE(e,t,n){let r=document.createElement(`a`);return r.setAttribute(`style`,G.headerUserMenuLink),r.onmouseover=function(){r.setAttribute(`style`,G.headerUserMenuLinkHover)},r.onmouseout=function(){r.setAttribute(`style`,G.headerUserMenuLink)},r.href=t,r.innerText=e,n&&(r.target=n),r}async function GE(e,t,n){let r=e.fetcher;r&&await r.load(t);let i=document.createElement(`ul`);i.setAttribute(`style`,G.headerUserMenuList),n&&n.forEach(function(e){(e.url?`url`:`onclick`)==`url`?i.appendChild(KE(WE(e.label,e.url,e.target))):i.appendChild(KE(UE(e.label,e.onclick)))});let a=document.createElement(`nav`);a.setAttribute(`style`,G.headerUserMenuNavigationMenuNotDisplayed),a.setAttribute(`aria-hidden`,`true`),a.setAttribute(`id`,`loggedInNav`),a.appendChild(i);let o=document.createElement(`button`);o.setAttribute(`style`,G.headerUserMenuTrigger),o.type=`button`;let s=qE(e,t);typeof s==`string`?o.innerHTML=s:o.appendChild(s);let c=document.createElement(`div`);c.setAttribute(`style`,G.headerBannerUserMenuNotDisplayed),c.appendChild(o),c.appendChild(a);let l=rm(e=>JE(e,o,a),50);o.addEventListener(`click`,l);let u=setTimeout(()=>null,0);return c.addEventListener(`mouseover`,e=>{clearTimeout(u),l(e),document.getElementById(`loggedInNav`)?.setAttribute(`style`,G.headerUserMenuNavigationMenu)}),c.addEventListener(`mouseout`,e=>{u=setTimeout(()=>l(e),200),document.getElementById(`loggedInNav`)?.setAttribute(`style`,G.headerUserMenuNavigationMenuNotDisplayed)}),c}function KE(e){let t=document.createElement(`li`);return t.setAttribute(`style`,G.headerUserMenuListItem),t.appendChild(e),t}function qE(e,t){let n=null;try{if(n=py(t),!n)return FE}catch{return FE}let r=document.createElement(`div`);return r.setAttribute(`style`,G.headerUserMenuPhoto),r.style.backgroundImage=`url(${n})`,r}function JE(e,t,n){let r=t.getAttribute(`aria-expanded`)===`true`,i=e.type===`mouseover`,a=e.type===`mouseout`;r&&i||!r&&a||(t.setAttribute(`aria-expanded`,(!r).toString()),n.setAttribute(`aria-hidden`,r.toString()))}var YE=`https://solidproject.org`,XE=`solidproject.org`;async function ZE(e,t){let r=document.getElementById(`PageFooter`);if(!r)return;let i=em(),a=await tm(i,e);return QE(r,e,i,a,t),n.authSession.events.on(`login`,()=>QE(r,e,i,a,t)),n.authSession.events.on(`logout`,()=>QE(r,e,i,a,t)),r}async function QE(e,t,r,i,a){let o=n.authn.currentUser();return e.innerHTML=``,e.appendChild(await $E(t,o,r,i,a)),e}function $E(e,t,n,r,i){let a=document.createElement(`div`);a.setAttribute(`style`,G.footer);let o=document.createElement(`a`);if(o.href=i&&i.solidProjectUrl?i.solidProjectUrl:YE,o.innerText=i&&i.solidProjectName?i.solidProjectName:XE,!n||!r||t&&t.equals(r)){let e=document.createElement(`span`);return e.innerText=`Powered by `,a.appendChild(e),a.appendChild(o),a}let s=document.createElement(`span`);s.innerText=`You're visiting `;let c=document.createElement(`a`);c.href=n.uri,c.innerText=`the Pod`;let l=document.createElement(`span`);l.innerText=` controlled by `;let u=document.createElement(`a`);u.href=r.uri,u.innerText=nm(e,r);let d=document.createElement(`span`);d.innerText=`. For more info, check out `;let f=document.createElement(`span`);return f.innerText=`.`,a.appendChild(s),a.appendChild(c),a.appendChild(l),a.appendChild(u),a.appendChild(d),a.appendChild(o),a.appendChild(f),a}var eD=d({}),tD=typeof window<`u`?window.document:null;e.Account=gt,e.CloseDialogEvent=$e,e.DEFAULT_AUTH_CONTEXT=vt,e.DEFAULT_DIALOG_CONTEXT=bt,e.DEFAULT_SIGNUP_URL=Oc,e.Dialog=St,e.DialogTrait=et,e.FormControlTrait=tt,e.NoopAuth=_t,e.ShowDialogEvent=wt,e.SolidAuth=Ac,e.WebComponent=P,e.acl=hS,e.aclControl=gS,e.authContext=yt,e.create=yS,Object.defineProperty(e,"createTypes",{enumerable:!0,get:function(){return eD}}),e.customElement=g,e.dialogContext=xt,e.dom=tD,e.generateId=_,e.icons=q,e.infiniteMessageArea=hE,e.initFooter=ZE,e.initHeader=RE,Object.defineProperty(e,"language",{enumerable:!0,get:function(){return ib}}),Object.defineProperty(e,"log",{enumerable:!0,get:function(){return Vg}}),Object.defineProperty(e,"login",{enumerable:!0,get:function(){return Cx}}),e.matrix=SS,e.media=OS,e.messageArea=AS,e.ns=I,Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return jT}}),Object.defineProperty(e,"participation",{enumerable:!0,get:function(){return TT}}),Object.defineProperty(e,"preferences",{enumerable:!0,get:function(){return gE}}),e.showDialog=Tt,e.style=G,e.table=DE,Object.defineProperty(e,"tabs",{enumerable:!0,get:function(){return OE}}),Object.defineProperty(e,"utils",{enumerable:!0,get:function(){return __}}),Object.defineProperty(e,"widgets",{enumerable:!0,get:function(){return bx}})});
2080
+ </svg>`;function $A(){let{origin:e,pathname:n}=document.location,r=document.body?.dataset?.appShell===`databrowser`,i=n.split(`/`).filter(Boolean),a=i[i.length-1]||``,o=/\.[^/]+$/.test(a);return r&&i.length>0&&!o?(0,t.sym)(`${e}/${i[0]}/`):(0,t.sym)(e).site()}async function ej(e,n){try{if(!n.any(e,null,R.ldp(`Container`),e)){let r=(await n.fetcher.webOperation(`GET`,e.uri,n.fetcher.initFetchOptions(e.uri,{headers:{accept:`text/turtle`}}))).responseText;(0,t.parse)(r,n,e.uri,`text/turtle`)}}catch(t){return console.error(`Error loading pod `+e+`: `+t),null}if(!n.holds(e,R.rdf(`type`),R.space(`Storage`),e))return console.warn(`Pod `+e+` does not declare itself as a space:Storage`),null;let r=n.any(e,R.solid(`owner`),null,e)||n.any(null,R.space(`storage`),e,e);if(r){try{await n.fetcher.load(r.doc())}catch{return console.warn(`Unable to load profile of pod owner `+r),null}return n.holds(r,R.space(`storage`),e,r.doc())||console.warn(`Pod owner ${r} does NOT list pod ${e} as their storage`),r}{let r=(0,t.sym)(`${e.uri}profile/card#me`);try{await n.fetcher.load(r)}catch{return console.error(`Ooops. Guessed wrong pod owner webid {$guess} : can't load it.`),null}return n.holds(r,R.space(`storage`),e,r.doc())?(console.warn(`Using guessed pod owner webid but it links back.`),r):null}}function tj(e,t){return e.anyValue(t,R.vcard(`fn`),null,t.doc())||e.anyValue(t,R.foaf(`name`),null,t.doc())||t.uri}function nj(e,t,n={}){let r,i,a,o=null,s=0,c=function(){s=n.leading?Date.now():0,o=null,a=e.apply(r,i),o||(r=i=null)};return function(){let l=Date.now();!s&&!n.leading&&(s=l);let u=t-(l-s);return r=this,i=arguments,u<=0||u>t?(o&&=(clearTimeout(o),null),s=l,a=e.apply(r,i),o||(r=i=null)):!o&&n.trailing!==!1&&(o=setTimeout(c,u)),a}}var rj=J.iconBase+`noun_help.svg`,ij=`https://solidproject.org/assets/img/solid-emblem.svg`;async function aj(e,t,r){let i=document.getElementById(`PageHeader`);if(!i)return;let a=$A();oj(i,e,a,t,r)(),n.authSession.events.on(`logout`,oj(i,e,a,t,r)),n.authSession.events.on(`login`,oj(i,e,a,t,r))}function oj(e,t,r,i,a){return async()=>{let o=n.authn.currentUser();e.innerHTML=``,e.appendChild(await sj(t,r,o,i,a))}}async function sj(e,t,n,r,i){let a=document.createElement(`a`);a.href=t.uri,a.setAttribute(`style`,U.headerBannerLink);let o=document.createElement(`img`);i&&(o.src=i.logo?i.logo:ij),o.setAttribute(`style`,U.headerBannerIcon),a.appendChild(o);let s=n?await fj(e,n,r):lj(),c=document.createElement(`div`);c.setAttribute(`style`,U.headerBanner),c.appendChild(a);let l=document.createElement(`div`);if(l.setAttribute(`style`,U.headerBannerRightMenu),l.appendChild(s),i&&i.helpMenuList){let e=cj(i,i.helpMenuList);l.appendChild(e)}return c.appendChild(l),c}function cj(e,t){if(!t)return;let n=document.createElement(`ul`);n.setAttribute(`style`,U.headerUserMenuList),t.forEach(function(e){(e.url?`url`:`onclick`)==`url`?n.appendChild(pj(dj(e.label,e.url,e.target))):n.appendChild(pj(uj(e.label,e.onclick)))});let r=document.createElement(`nav`);r.setAttribute(`style`,U.headerUserMenuNavigationMenuNotDisplayed),r.setAttribute(`aria-hidden`,`true`),r.setAttribute(`id`,`helperNav`),r.appendChild(n);let i=document.createElement(`div`);i.setAttribute(`style`,U.headerBannerUserMenu),i.appendChild(r);let a=document.createElement(`button`);a.setAttribute(`style`,U.headerUserMenuTrigger),a.type=`button`;let o=document.createElement(`img`);o.src=e&&e.helpIcon?e.helpIcon:J.iconBase+rj,o.setAttribute(`style`,U.headerUserMenuTriggerImg),i.appendChild(a),a.appendChild(o);let s=nj(e=>hj(e,a,r),50);a.addEventListener(`click`,s);let c=setTimeout(()=>null,0);return i.addEventListener(`mouseover`,e=>{clearTimeout(c),s(e),document.getElementById(`helperNav`)?.setAttribute(`style`,U.headerUserMenuNavigationMenu)}),i.addEventListener(`mouseout`,e=>{c=setTimeout(()=>s(e),200),document.getElementById(`helperNav`)?.setAttribute(`style`,U.headerUserMenuNavigationMenuNotDisplayed)}),i}function lj(){let e=document.createElement(`div`);return e.setAttribute(`style`,U.headerBannerLogin),e.appendChild(iE(document,null,{})),e}function uj(e,t){let n=document.createElement(`button`);return n.setAttribute(`style`,U.headerUserMenuButton),n.onmouseover=function(){n.setAttribute(`style`,U.headerUserMenuButtonHover)},n.onmouseout=function(){n.setAttribute(`style`,U.headerUserMenuButton)},n.addEventListener(`click`,t),n.innerText=e,n}function dj(e,t,n){let r=document.createElement(`a`);return r.setAttribute(`style`,U.headerUserMenuLink),r.onmouseover=function(){r.setAttribute(`style`,U.headerUserMenuLinkHover)},r.onmouseout=function(){r.setAttribute(`style`,U.headerUserMenuLink)},r.href=t,r.innerText=e,n&&(r.target=n),r}async function fj(e,t,n){let r=e.fetcher;r&&await r.load(t);let i=document.createElement(`ul`);i.setAttribute(`style`,U.headerUserMenuList),n&&n.forEach(function(e){(e.url?`url`:`onclick`)==`url`?i.appendChild(pj(dj(e.label,e.url,e.target))):i.appendChild(pj(uj(e.label,e.onclick)))});let a=document.createElement(`nav`);a.setAttribute(`style`,U.headerUserMenuNavigationMenuNotDisplayed),a.setAttribute(`aria-hidden`,`true`),a.setAttribute(`id`,`loggedInNav`),a.appendChild(i);let o=document.createElement(`button`);o.setAttribute(`style`,U.headerUserMenuTrigger),o.type=`button`;let s=mj(e,t);typeof s==`string`?o.innerHTML=s:o.appendChild(s);let c=document.createElement(`div`);c.setAttribute(`style`,U.headerBannerUserMenuNotDisplayed),c.appendChild(o),c.appendChild(a);let l=nj(e=>hj(e,o,a),50);o.addEventListener(`click`,l);let u=setTimeout(()=>null,0);return c.addEventListener(`mouseover`,e=>{clearTimeout(u),l(e),document.getElementById(`loggedInNav`)?.setAttribute(`style`,U.headerUserMenuNavigationMenu)}),c.addEventListener(`mouseout`,e=>{u=setTimeout(()=>l(e),200),document.getElementById(`loggedInNav`)?.setAttribute(`style`,U.headerUserMenuNavigationMenuNotDisplayed)}),c}function pj(e){let t=document.createElement(`li`);return t.setAttribute(`style`,U.headerUserMenuListItem),t.appendChild(e),t}function mj(e,t){let n=null;try{if(n=kC(t),!n)return QA}catch{return QA}let r=document.createElement(`div`);return r.setAttribute(`style`,U.headerUserMenuPhoto),r.style.backgroundImage=`url(${n})`,r}function hj(e,t,n){let r=t.getAttribute(`aria-expanded`)===`true`,i=e.type===`mouseover`,a=e.type===`mouseout`;r&&i||!r&&a||(t.setAttribute(`aria-expanded`,(!r).toString()),n.setAttribute(`aria-hidden`,r.toString()))}var gj=`https://solidproject.org`,_j=`solidproject.org`;async function vj(e,t){let r=document.getElementById(`PageFooter`);if(!r)return;let i=$A(),a=await ej(i,e);return yj(r,e,i,a,t),n.authSession.events.on(`login`,()=>yj(r,e,i,a,t)),n.authSession.events.on(`logout`,()=>yj(r,e,i,a,t)),r}async function yj(e,t,r,i,a){let o=n.authn.currentUser();return e.innerHTML=``,e.appendChild(await bj(t,o,r,i,a)),e}function bj(e,t,n,r,i){let a=document.createElement(`div`);a.setAttribute(`style`,U.footer);let o=document.createElement(`a`);if(o.href=i&&i.solidProjectUrl?i.solidProjectUrl:gj,o.innerText=i&&i.solidProjectName?i.solidProjectName:_j,!n||!r||t&&t.equals(r)){let e=document.createElement(`span`);return e.innerText=`Powered by `,a.appendChild(e),a.appendChild(o),a}let s=document.createElement(`span`);s.innerText=`You're visiting `;let c=document.createElement(`a`);c.href=n.uri,c.innerText=`the Pod`;let l=document.createElement(`span`);l.innerText=` controlled by `;let u=document.createElement(`a`);u.href=r.uri,u.innerText=tj(e,r);let d=document.createElement(`span`);d.innerText=`. For more info, check out `;let f=document.createElement(`span`);return f.innerText=`.`,a.appendChild(s),a.appendChild(c),a.appendChild(l),a.appendChild(u),a.appendChild(d),a.appendChild(o),a.appendChild(f),a}var xj=d({}),Sj=typeof window<`u`?window.document:null;e.Account=wn,e.CloseDialogEvent=v,e.DEFAULT_AUTH_CONTEXT=En,e.DEFAULT_DIALOG_CONTEXT=ee,e.DEFAULT_SIGNUP_URL=Sl,e.Dialog=On,e.DialogComponent=Pt,e.DialogTrait=S,e.FormControlComponent=Cn,e.FormControlTrait=Ut,e.NoopAuth=Tn,e.ShowDialogEvent=An,e.SolidAuth=wl,e.WebComponent=F,e.acl=jE,e.aclControl=ME,e.authContext=Dn,e.create=FE,Object.defineProperty(e,"createTypes",{enumerable:!0,get:function(){return xj}}),e.customElement=g,e.dialogContext=te,e.dom=Sj,e.generateId=j,e.icons=J,e.infiniteMessageArea=MA,e.initFooter=vj,e.initHeader=aj,Object.defineProperty(e,"language",{enumerable:!0,get:function(){return bw}}),Object.defineProperty(e,"log",{enumerable:!0,get:function(){return wv}}),Object.defineProperty(e,"login",{enumerable:!0,get:function(){return zT}}),e.matrix=RE,e.media=WE,e.messageArea=KE,e.ns=R,Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return Jk}}),Object.defineProperty(e,"participation",{enumerable:!0,get:function(){return Hk}}),Object.defineProperty(e,"preferences",{enumerable:!0,get:function(){return NA}}),e.showDialog=jn,e.style=U,e.table=WA,Object.defineProperty(e,"tabs",{enumerable:!0,get:function(){return GA}}),Object.defineProperty(e,"utils",{enumerable:!0,get:function(){return ty}}),Object.defineProperty(e,"widgets",{enumerable:!0,get:function(){return IT}})});
2386
2081
  //# sourceMappingURL=solid-ui.min.js.map