@coffer-org/web 7.4.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (725) hide show
  1. package/dist/assets/ChatWidget-CLPg1SxK.js +90 -0
  2. package/dist/assets/DiagnosticsPage-DHIekD7O.js +1 -0
  3. package/dist/assets/GeoMap-D1ITCEvC.js +4 -0
  4. package/dist/assets/GeoMap-DvTUgzRd.css +661 -0
  5. package/dist/assets/NewRecordView-ypC2MiHy.js +1 -0
  6. package/dist/assets/PluginSettingsPage-CgEPe_jp.js +1 -0
  7. package/dist/assets/ScanSummary-BRELNnQZ.js +1 -0
  8. package/dist/assets/SettingsPage-CBdCKDm9.js +3 -0
  9. package/dist/assets/ThemeSwitcher-DoDwMSvt.js +21 -0
  10. package/dist/assets/api-CtTqq37J.js +1 -0
  11. package/dist/assets/auth-context-B7spbfSH.js +1 -0
  12. package/dist/assets/check-DSh5VTB0.js +6 -0
  13. package/dist/assets/compat-nvzWPAqF.js +1 -0
  14. package/dist/assets/createLucideIcon-0HK7VRhx.js +46 -0
  15. package/dist/assets/data-size-B_xeY3eQ.js +1 -0
  16. package/dist/assets/ical-BRrjpmRX.js +8 -0
  17. package/dist/assets/ilamy-view-CF9TS3xK.js +97 -0
  18. package/dist/assets/index-CBgj-dC3.css +10528 -0
  19. package/dist/assets/index-wtYuweqc.js +33 -0
  20. package/dist/assets/instance-CqF1ziBF.js +1 -0
  21. package/dist/assets/list-cache-DR8308dv.js +1 -0
  22. package/dist/assets/plugin-label-4X6iMcoh.js +1 -0
  23. package/dist/assets/preload-helper-DxWiKyOd.js +1 -0
  24. package/dist/assets/rolldown-runtime-B-1-B7_t.js +1 -0
  25. package/dist/assets/rotate-ccw-Cbig43Yp.js +21 -0
  26. package/dist/assets/rule-form-DY07mdut.js +1 -0
  27. package/dist/assets/schemas-Ddd48n1f.js +64 -0
  28. package/dist/assets/search-C7459FQa.js +6 -0
  29. package/dist/assets/src--TsXaQH2.js +1 -0
  30. package/dist/assets/src-B1GPEuhd.js +1 -0
  31. package/dist/assets/src-B2K2G_F62.js +1 -0
  32. package/dist/assets/src-BPc81uCu2.js +1 -0
  33. package/dist/assets/src-BXuWmEvN.js +1 -0
  34. package/dist/assets/src-BtrXVtpQ2.js +1 -0
  35. package/dist/assets/src-C12PVUBK.js +1 -0
  36. package/dist/assets/src-C1J8QrZx2.js +1 -0
  37. package/dist/assets/src-CLxiQy4N.js +1 -0
  38. package/dist/assets/src-CZlLKZuO.js +1 -0
  39. package/dist/assets/src-CgOvTEkQ.js +8 -0
  40. package/dist/assets/src-Chqh1dE0.js +1 -0
  41. package/dist/assets/src-Cma6wMwh2.js +1 -0
  42. package/dist/assets/src-CsBQ3OG5.js +1 -0
  43. package/dist/assets/src-CtRwEwa_2.js +1 -0
  44. package/dist/assets/src-CxZwGvOe.js +1 -0
  45. package/dist/assets/src-Cy8ITNFQ.js +1 -0
  46. package/dist/assets/src-CzL8eh1F.js +6 -0
  47. package/dist/assets/src-DHGaQhKT.js +1 -0
  48. package/dist/assets/src-DkeTKoaX.js +1 -0
  49. package/dist/assets/src-DotMprHS.js +6 -0
  50. package/dist/assets/src-DsJtEHxm.js +2 -0
  51. package/dist/assets/src-DvgJTIq7.js +1 -0
  52. package/dist/assets/src-KzYtcixM.js +1 -0
  53. package/dist/assets/src-YvA87f32.js +1 -0
  54. package/dist/assets/src-bO9mBc4E.js +1 -0
  55. package/dist/assets/src-nwl88J0b.js +4 -0
  56. package/dist/assets/task_details-3QyVdhd4.js +1 -0
  57. package/dist/assets/ui-BFQOH3UM.js +66 -0
  58. package/dist/assets/ui-C0deEcCk2.js +1 -0
  59. package/dist/assets/ui-C3DdDmuH.js +11 -0
  60. package/dist/assets/ui-CdfnLrpu.js +1 -0
  61. package/dist/assets/ui-vendor-Dz7FZUpP.js +41 -0
  62. package/dist/assets/x-Tw9OswUb.js +6 -0
  63. package/dist/index.html +101 -30
  64. package/dist-vendor/assets/MarkdownEditor-DEp3OKtv.js +191 -0
  65. package/dist-vendor/assets/Separator-BMm-ftCU.js +1 -0
  66. package/dist-vendor/assets/ae-CZRtWSox.svg +6 -0
  67. package/dist-vendor/assets/ae-CnWpkG7H.svg +6 -0
  68. package/dist-vendor/assets/ag-B50eCdjH.svg +14 -0
  69. package/dist-vendor/assets/ag-C8MykuG2.svg +14 -0
  70. package/dist-vendor/assets/ai-BhrGqTjA.svg +29 -0
  71. package/dist-vendor/assets/ai-Dmedkf4v.svg +29 -0
  72. package/dist-vendor/assets/al-10QRkakw.svg +5 -0
  73. package/dist-vendor/assets/al-CxA7yomf.svg +5 -0
  74. package/dist-vendor/assets/am-Brwuaa2u.svg +5 -0
  75. package/dist-vendor/assets/am-DMt4_dd4.svg +5 -0
  76. package/dist-vendor/assets/ao-CAGuVnyg.svg +13 -0
  77. package/dist-vendor/assets/ao-tXuRa6vm.svg +13 -0
  78. package/dist-vendor/assets/aq-CF5jO-0h.svg +5 -0
  79. package/dist-vendor/assets/aq-UDjN-zV6.svg +5 -0
  80. package/dist-vendor/assets/ar-Be8Ju1cG.svg +32 -0
  81. package/dist-vendor/assets/ar-NyCpd6W6.svg +32 -0
  82. package/dist-vendor/assets/asean-CmuWHvfA.svg +13 -0
  83. package/dist-vendor/assets/asean-WMtZ-US_.svg +13 -0
  84. package/dist-vendor/assets/at-D-LsLSdx.svg +4 -0
  85. package/dist-vendor/assets/at-DGA_6m5E.svg +4 -0
  86. package/dist-vendor/assets/au-DAHDIuPI.svg +8 -0
  87. package/dist-vendor/assets/au-kL8f0uMB.svg +8 -0
  88. package/dist-vendor/assets/ax-DvLIy84U.svg +18 -0
  89. package/dist-vendor/assets/ax-wECm_RRW.svg +18 -0
  90. package/dist-vendor/assets/az-Bk-bYNxy.svg +8 -0
  91. package/dist-vendor/assets/az-z2IthT8Q.svg +8 -0
  92. package/dist-vendor/assets/ba-CiiOt6u0.svg +12 -0
  93. package/dist-vendor/assets/ba-WdDiSMvP.svg +12 -0
  94. package/dist-vendor/assets/bb-DC5IaaX4.svg +6 -0
  95. package/dist-vendor/assets/bb-DJxbaxmT.svg +6 -0
  96. package/dist-vendor/assets/bd-BF9t1-60.svg +4 -0
  97. package/dist-vendor/assets/bd-DvPoLH3C.svg +4 -0
  98. package/dist-vendor/assets/be-CLLkK3PN.svg +7 -0
  99. package/dist-vendor/assets/be-Dtq4MkQz.svg +7 -0
  100. package/dist-vendor/assets/bf-DCbfaYlw.svg +7 -0
  101. package/dist-vendor/assets/bf-YclsoDuF.svg +7 -0
  102. package/dist-vendor/assets/bg-GUQenraa.svg +5 -0
  103. package/dist-vendor/assets/bg-cWragUdK.svg +5 -0
  104. package/dist-vendor/assets/bh-BQqEGq6F.svg +4 -0
  105. package/dist-vendor/assets/bh-DgfmyT2n.svg +4 -0
  106. package/dist-vendor/assets/bi-C8Dazs_i.svg +15 -0
  107. package/dist-vendor/assets/bi-CRmKY6RQ.svg +15 -0
  108. package/dist-vendor/assets/bj-14PhO9bM.svg +14 -0
  109. package/dist-vendor/assets/bj-BOF1aYv0.svg +14 -0
  110. package/dist-vendor/assets/bl-4CI2YcwX.svg +5 -0
  111. package/dist-vendor/assets/bl-Ci30-2xD.svg +7 -0
  112. package/dist-vendor/assets/bq-BYpdxEeT.svg +5 -0
  113. package/dist-vendor/assets/bq-SWpsjb2t.svg +5 -0
  114. package/dist-vendor/assets/bs-7Gd_oriM.svg +13 -0
  115. package/dist-vendor/assets/bs-CcXnDJaD.svg +13 -0
  116. package/dist-vendor/assets/bv-Jqog7euh.svg +13 -0
  117. package/dist-vendor/assets/bv-wM9JLv4R.svg +13 -0
  118. package/dist-vendor/assets/bw-DOFTOZyN.svg +7 -0
  119. package/dist-vendor/assets/bw-n5ZaAnGL.svg +7 -0
  120. package/dist-vendor/assets/by-C621sBpd.svg +18 -0
  121. package/dist-vendor/assets/by-u4o0VQKP.svg +18 -0
  122. package/dist-vendor/assets/ca-B8J8Wc6a.svg +4 -0
  123. package/dist-vendor/assets/ca-PYUrLVUV.svg +4 -0
  124. package/dist-vendor/assets/cc-BNT6Xjzk.svg +19 -0
  125. package/dist-vendor/assets/cc-Bl3UDHUt.svg +19 -0
  126. package/dist-vendor/assets/cd-BGclsrP6.svg +5 -0
  127. package/dist-vendor/assets/cd-CwCQH0-t.svg +12 -0
  128. package/dist-vendor/assets/cefta-2dDBYygd.svg +13 -0
  129. package/dist-vendor/assets/cefta-CdOByeeI.svg +13 -0
  130. package/dist-vendor/assets/cf-CvgcTRoz.svg +15 -0
  131. package/dist-vendor/assets/cf-DRetLmp-.svg +15 -0
  132. package/dist-vendor/assets/cg-CwIyG6SE.svg +12 -0
  133. package/dist-vendor/assets/cg-DxMYgdKd.svg +12 -0
  134. package/dist-vendor/assets/ch-Do8WoVrp.svg +9 -0
  135. package/dist-vendor/assets/ch-sfriZoF1.svg +9 -0
  136. package/dist-vendor/assets/chunk-KS7C4IRE-CUOVp-bd.js +34 -0
  137. package/dist-vendor/assets/ci-C8Q8IYTn.svg +7 -0
  138. package/dist-vendor/assets/ci-Cn5asHD7.svg +7 -0
  139. package/dist-vendor/assets/ck-DfXMUOTo.svg +9 -0
  140. package/dist-vendor/assets/ck-VjQ-vT4C.svg +9 -0
  141. package/dist-vendor/assets/cl-B2rf9gTF.svg +13 -0
  142. package/dist-vendor/assets/cl-BgYYb4qP.svg +13 -0
  143. package/dist-vendor/assets/cm-B0XEK3Gu.svg +15 -0
  144. package/dist-vendor/assets/cm-D4yjdmKT.svg +15 -0
  145. package/dist-vendor/assets/cn-DifnnI3t.svg +11 -0
  146. package/dist-vendor/assets/cn-sZmOitVP.svg +11 -0
  147. package/dist-vendor/assets/co-BRjxMuCM.svg +7 -0
  148. package/dist-vendor/assets/co-DV591zMm.svg +7 -0
  149. package/dist-vendor/assets/collection-diff-DfAYCE5v.js +64 -0
  150. package/dist-vendor/assets/cp-K_ay05Q_.svg +7 -0
  151. package/dist-vendor/assets/cp-k6oDAflT.svg +7 -0
  152. package/dist-vendor/assets/cr-BlYVN-_Q.svg +7 -0
  153. package/dist-vendor/assets/cr-CcuKkUIo.svg +7 -0
  154. package/dist-vendor/assets/cu-Bd4PmZCn.svg +13 -0
  155. package/dist-vendor/assets/cu-L6XVZNgo.svg +13 -0
  156. package/dist-vendor/assets/currencies-DKBTq4hu.js +1 -0
  157. package/dist-vendor/assets/cv-BYvkBxIi.svg +13 -0
  158. package/dist-vendor/assets/cv-CPsfcOfk.svg +13 -0
  159. package/dist-vendor/assets/cw-BbrnximR.svg +14 -0
  160. package/dist-vendor/assets/cw-DDrVSims.svg +14 -0
  161. package/dist-vendor/assets/cx-DpYD6n6U.svg +15 -0
  162. package/dist-vendor/assets/cx-zaaWd3zl.svg +15 -0
  163. package/dist-vendor/assets/cz-CgTuLLXv.svg +5 -0
  164. package/dist-vendor/assets/cz-WWBC5Aeb.svg +5 -0
  165. package/dist-vendor/assets/de-B-2o-4Z9.svg +5 -0
  166. package/dist-vendor/assets/de-D365bacb.svg +5 -0
  167. package/dist-vendor/assets/dist-BKeCzqrc.js +1 -0
  168. package/dist-vendor/assets/dj-C7tvpAUy.svg +13 -0
  169. package/dist-vendor/assets/dj-hp_BwbmO.svg +13 -0
  170. package/dist-vendor/assets/dk-2cglAULc.svg +5 -0
  171. package/dist-vendor/assets/dk-DmS9BCZB.svg +5 -0
  172. package/dist-vendor/assets/dz-Dytc1TFu.svg +5 -0
  173. package/dist-vendor/assets/dz-EwXBYPv9.svg +5 -0
  174. package/dist-vendor/assets/ee-B0tgUOEC.svg +5 -0
  175. package/dist-vendor/assets/ee-DufrxGIR.svg +5 -0
  176. package/dist-vendor/assets/eh-0awM4TVj.svg +16 -0
  177. package/dist-vendor/assets/eh-CsiwG8bE.svg +11 -0
  178. package/dist-vendor/assets/er-Cn365Y3V.svg +13 -0
  179. package/dist-vendor/assets/er-X83uml6t.svg +8 -0
  180. package/dist-vendor/assets/es-ct-CVyhLp7O.svg +4 -0
  181. package/dist-vendor/assets/es-ct-DdzobtBd.svg +4 -0
  182. package/dist-vendor/assets/es-pv-CO3NM2SE.svg +5 -0
  183. package/dist-vendor/assets/es-pv-DMotQiZd.svg +5 -0
  184. package/dist-vendor/assets/esm-DcxdDKtK.js +1 -0
  185. package/dist-vendor/assets/esm-DjwVeARy.js +23 -0
  186. package/dist-vendor/assets/esm-YFvMvTG9.css +1 -0
  187. package/dist-vendor/assets/et-DwdlzOIx.svg +14 -0
  188. package/dist-vendor/assets/et-cfPInayI.svg +14 -0
  189. package/dist-vendor/assets/eu-BE2G-Ars.svg +28 -0
  190. package/dist-vendor/assets/eu-Brdgz8ab.svg +28 -0
  191. package/dist-vendor/assets/fi-Brjq_KK6.svg +5 -0
  192. package/dist-vendor/assets/fi-DWUIkfjL.svg +5 -0
  193. package/dist-vendor/assets/flag-icons-CjdqQPWt.css +1 -0
  194. package/dist-vendor/assets/fm-B4Z83GL0.svg +11 -0
  195. package/dist-vendor/assets/fm-DwHuWFwM.svg +11 -0
  196. package/dist-vendor/assets/fo-ClIne8bc.svg +12 -0
  197. package/dist-vendor/assets/fo-DFjwyWur.svg +12 -0
  198. package/dist-vendor/assets/fr-C1eGzDWr.svg +5 -0
  199. package/dist-vendor/assets/fr-DVvUyOqI.svg +5 -0
  200. package/dist-vendor/assets/ga-BklUhLH_.svg +7 -0
  201. package/dist-vendor/assets/ga-CgNkrnfv.svg +7 -0
  202. package/dist-vendor/assets/gb-DSer7Jgn.svg +7 -0
  203. package/dist-vendor/assets/gb-DTXiLQoe.svg +7 -0
  204. package/dist-vendor/assets/gb-eng-C8iDhGHN.svg +5 -0
  205. package/dist-vendor/assets/gb-eng-DTHmDHq3.svg +5 -0
  206. package/dist-vendor/assets/gb-sct-D5L2FKKv.svg +4 -0
  207. package/dist-vendor/assets/gb-sct-fW5q01ek.svg +4 -0
  208. package/dist-vendor/assets/gd-CO-whzUe.svg +27 -0
  209. package/dist-vendor/assets/gd-m2vU81NR.svg +27 -0
  210. package/dist-vendor/assets/ge-B2RiL-Ih.svg +6 -0
  211. package/dist-vendor/assets/ge-DFOl98HB.svg +6 -0
  212. package/dist-vendor/assets/gf-DFQqfs-j.svg +5 -0
  213. package/dist-vendor/assets/gf-DWl5zcw0.svg +5 -0
  214. package/dist-vendor/assets/gg-jdOQS2nU.svg +9 -0
  215. package/dist-vendor/assets/gg-vhR8-Yxm.svg +9 -0
  216. package/dist-vendor/assets/gh-6yUjim7M.svg +6 -0
  217. package/dist-vendor/assets/gh-r3LP_X7q.svg +6 -0
  218. package/dist-vendor/assets/gi-BJKE9SzW.svg +32 -0
  219. package/dist-vendor/assets/gi-ZBwZ45zU.svg +32 -0
  220. package/dist-vendor/assets/gl-CHaBnMib.svg +4 -0
  221. package/dist-vendor/assets/gl-D6qP-fnE.svg +4 -0
  222. package/dist-vendor/assets/gm-Bu99atwn.svg +14 -0
  223. package/dist-vendor/assets/gm-DI7EpeCC.svg +9 -0
  224. package/dist-vendor/assets/gn-1dJNy9oQ.svg +7 -0
  225. package/dist-vendor/assets/gn-kt7YA1XT.svg +7 -0
  226. package/dist-vendor/assets/gp-BqGRs8a4.svg +5 -0
  227. package/dist-vendor/assets/gp-DNyt_wTA.svg +5 -0
  228. package/dist-vendor/assets/gr-C5PU0p9p.svg +16 -0
  229. package/dist-vendor/assets/gr-COThnT__.svg +16 -0
  230. package/dist-vendor/assets/group-field-DVQnXOEH.js +4 -0
  231. package/dist-vendor/assets/gw-BTWe96TV.svg +15 -0
  232. package/dist-vendor/assets/gw-D249VY33.svg +13 -0
  233. package/dist-vendor/assets/gy-CcVYUM2E.svg +9 -0
  234. package/dist-vendor/assets/gy-Dl6DrQIH.svg +9 -0
  235. package/dist-vendor/assets/hk-CUNIaSX0.svg +8 -0
  236. package/dist-vendor/assets/hk-omO_-Nil.svg +8 -0
  237. package/dist-vendor/assets/hm-Dh6t_Tj3.svg +8 -0
  238. package/dist-vendor/assets/hm-fgV6xItx.svg +8 -0
  239. package/dist-vendor/assets/hn-CRjyS_bm.svg +18 -0
  240. package/dist-vendor/assets/hn-GhlpqqjC.svg +18 -0
  241. package/dist-vendor/assets/hu-7Q5wwIIi.svg +7 -0
  242. package/dist-vendor/assets/hu-Bm8S5mAU.svg +7 -0
  243. package/dist-vendor/assets/i18next-HF060SlA.js +1 -0
  244. package/dist-vendor/assets/ic-CSo4d8tH.svg +7 -0
  245. package/dist-vendor/assets/ic-tiZZSA7Y.svg +7 -0
  246. package/dist-vendor/assets/id-CJiY5UnY.svg +4 -0
  247. package/dist-vendor/assets/id-DiSP6Fmm.svg +4 -0
  248. package/dist-vendor/assets/ie-ChAXClx3.svg +7 -0
  249. package/dist-vendor/assets/ie-DhxI4aJv.svg +7 -0
  250. package/dist-vendor/assets/il-CeFQotKl.svg +14 -0
  251. package/dist-vendor/assets/il-_56OEGLa.svg +14 -0
  252. package/dist-vendor/assets/in-BrINBvML.svg +25 -0
  253. package/dist-vendor/assets/in-Cdwu6Bq7.svg +25 -0
  254. package/dist-vendor/assets/index.dom-CA5INa_J.js +1 -0
  255. package/dist-vendor/assets/input-CbheVI3-.js +1 -0
  256. package/dist-vendor/assets/iq-CZIXYTmc.svg +10 -0
  257. package/dist-vendor/assets/iq-Dp8HDzo2.svg +10 -0
  258. package/dist-vendor/assets/is-CZjefTNV.svg +12 -0
  259. package/dist-vendor/assets/is-Cdq2ElPF.svg +12 -0
  260. package/dist-vendor/assets/it-Br7q0Zh6.svg +7 -0
  261. package/dist-vendor/assets/it-lvp2tGC_.svg +7 -0
  262. package/dist-vendor/assets/jm-CItSr3iX.svg +8 -0
  263. package/dist-vendor/assets/jm-CLL-w5oS.svg +8 -0
  264. package/dist-vendor/assets/jo-BAF1FGbm.svg +16 -0
  265. package/dist-vendor/assets/jo-CiGTAWEd.svg +16 -0
  266. package/dist-vendor/assets/jp-B5RfAVGb.svg +11 -0
  267. package/dist-vendor/assets/jp-BIMmfxpO.svg +11 -0
  268. package/dist-vendor/assets/jsx-runtime-By8HlURe.js +1 -0
  269. package/dist-vendor/assets/ke-C8foqndp.svg +23 -0
  270. package/dist-vendor/assets/ke-b02kYgZN.svg +23 -0
  271. package/dist-vendor/assets/km-B5tqtGG7.svg +16 -0
  272. package/dist-vendor/assets/km-D0jmlyBf.svg +16 -0
  273. package/dist-vendor/assets/kn-CHJJOZkG.svg +14 -0
  274. package/dist-vendor/assets/kn-DVPxDkNY.svg +14 -0
  275. package/dist-vendor/assets/kp-BsOq20Ii.svg +15 -0
  276. package/dist-vendor/assets/kp-CrDKzoxe.svg +15 -0
  277. package/dist-vendor/assets/kr-BCXH1Hao.svg +24 -0
  278. package/dist-vendor/assets/kr-KUIaWHQD.svg +17 -0
  279. package/dist-vendor/assets/kw-CIaYkhdM.svg +13 -0
  280. package/dist-vendor/assets/kw-fSBzmd30.svg +13 -0
  281. package/dist-vendor/assets/la-CuJflhIW.svg +12 -0
  282. package/dist-vendor/assets/la-cXlqIhGg.svg +12 -0
  283. package/dist-vendor/assets/lb-BSjpYEoo.svg +15 -0
  284. package/dist-vendor/assets/lb-DqFaKN7K.svg +15 -0
  285. package/dist-vendor/assets/lc-CNvab8Ae.svg +8 -0
  286. package/dist-vendor/assets/lc-DoQpaup4.svg +8 -0
  287. package/dist-vendor/assets/lr-B84vu3Ds.svg +14 -0
  288. package/dist-vendor/assets/lr-Zj2ZOITC.svg +14 -0
  289. package/dist-vendor/assets/ls-5Xk3Mxq5.svg +8 -0
  290. package/dist-vendor/assets/ls-B-MSA_Nj.svg +8 -0
  291. package/dist-vendor/assets/lt-CU4QmtZ-.svg +7 -0
  292. package/dist-vendor/assets/lt-DoukV-Sm.svg +7 -0
  293. package/dist-vendor/assets/lu-CCDqjGZj.svg +5 -0
  294. package/dist-vendor/assets/lu-DOI02Msy.svg +5 -0
  295. package/dist-vendor/assets/lv-C-KfY8Yc.svg +6 -0
  296. package/dist-vendor/assets/lv-DjyqV19Q.svg +6 -0
  297. package/dist-vendor/assets/ly-B0G7qBy-.svg +13 -0
  298. package/dist-vendor/assets/ly-BWpTK3ux.svg +13 -0
  299. package/dist-vendor/assets/ma-BNn_BSaU.svg +4 -0
  300. package/dist-vendor/assets/ma-BTRNTRUj.svg +4 -0
  301. package/dist-vendor/assets/mc-JhJMKfOk.svg +6 -0
  302. package/dist-vendor/assets/mc-PK078JHl.svg +6 -0
  303. package/dist-vendor/assets/mf-BaAGWwAq.svg +5 -0
  304. package/dist-vendor/assets/mf-DC-GBYih.svg +5 -0
  305. package/dist-vendor/assets/mg-C168LHXW.svg +7 -0
  306. package/dist-vendor/assets/mg-DDrNyYWg.svg +7 -0
  307. package/dist-vendor/assets/mh--hJdVdXy.svg +8 -0
  308. package/dist-vendor/assets/mh-gxuIp6Wk.svg +7 -0
  309. package/dist-vendor/assets/mk-Cx9Yf_ZD.svg +5 -0
  310. package/dist-vendor/assets/mk-D9SIMr-a.svg +5 -0
  311. package/dist-vendor/assets/ml-BBMGMlrT.svg +7 -0
  312. package/dist-vendor/assets/ml-DVf6ujpi.svg +7 -0
  313. package/dist-vendor/assets/mm-DB0gzm_2.svg +10 -0
  314. package/dist-vendor/assets/mm-lwT09MQ0.svg +12 -0
  315. package/dist-vendor/assets/mn-CNIDYiAG.svg +14 -0
  316. package/dist-vendor/assets/mn-CgXyw0O9.svg +14 -0
  317. package/dist-vendor/assets/mo-BAtCjuYA.svg +9 -0
  318. package/dist-vendor/assets/mo-CZPe8QjC.svg +9 -0
  319. package/dist-vendor/assets/mq-BFnJ22KI.svg +5 -0
  320. package/dist-vendor/assets/mq-Dt7FKNYb.svg +5 -0
  321. package/dist-vendor/assets/mr-Cqt475iO.svg +6 -0
  322. package/dist-vendor/assets/mr-D6G1wpeZ.svg +6 -0
  323. package/dist-vendor/assets/mu-B2mIIRce.svg +8 -0
  324. package/dist-vendor/assets/mu-mcq7cUFl.svg +8 -0
  325. package/dist-vendor/assets/mv-BXI4x8em.svg +6 -0
  326. package/dist-vendor/assets/mv-BynAllfM.svg +6 -0
  327. package/dist-vendor/assets/mw-C15nc1xZ.svg +10 -0
  328. package/dist-vendor/assets/mw-DkelfrL9.svg +15 -0
  329. package/dist-vendor/assets/my-BR3vHt6_.svg +18 -0
  330. package/dist-vendor/assets/my-Co4JeeyE.svg +26 -0
  331. package/dist-vendor/assets/mz-Bo6u1S_s.svg +21 -0
  332. package/dist-vendor/assets/mz-Drlr_USV.svg +21 -0
  333. package/dist-vendor/assets/na-0wFvily3.svg +16 -0
  334. package/dist-vendor/assets/na-D79ffb4Z.svg +16 -0
  335. package/dist-vendor/assets/nc-5j7wEmDR.svg +13 -0
  336. package/dist-vendor/assets/nc-Bw50_tBz.svg +12 -0
  337. package/dist-vendor/assets/ne-B1jPOYkl.svg +6 -0
  338. package/dist-vendor/assets/ne-Cium2f5G.svg +6 -0
  339. package/dist-vendor/assets/ng-CLL1nzMk.svg +6 -0
  340. package/dist-vendor/assets/ng-su4NM9If.svg +6 -0
  341. package/dist-vendor/assets/nl-BnOa6UiA.svg +5 -0
  342. package/dist-vendor/assets/nl-DKN85plC.svg +5 -0
  343. package/dist-vendor/assets/no-67wnnm5y.svg +7 -0
  344. package/dist-vendor/assets/no-qf2JPO73.svg +7 -0
  345. package/dist-vendor/assets/np-B4k6qJKf.svg +18 -0
  346. package/dist-vendor/assets/np-CIuq5GKd.svg +13 -0
  347. package/dist-vendor/assets/nr-DERIdzkN.svg +12 -0
  348. package/dist-vendor/assets/nr-SnI60Bgd.svg +12 -0
  349. package/dist-vendor/assets/nu-BfgWvGcd.svg +10 -0
  350. package/dist-vendor/assets/nu-Dm-LLXct.svg +10 -0
  351. package/dist-vendor/assets/nz-5vODdBjz.svg +36 -0
  352. package/dist-vendor/assets/nz-CaLnugvK.svg +36 -0
  353. package/dist-vendor/assets/pa-BLNN9G2-.svg +14 -0
  354. package/dist-vendor/assets/pa-BzRYvRsl.svg +13 -0
  355. package/dist-vendor/assets/pc-BJpYiA9b.svg +33 -0
  356. package/dist-vendor/assets/pc-D9OuqgOn.svg +33 -0
  357. package/dist-vendor/assets/pe--eye3JWr.svg +4 -0
  358. package/dist-vendor/assets/pe-BLqhuu1C.svg +4 -0
  359. package/dist-vendor/assets/pf-C8ahG68q.svg +19 -0
  360. package/dist-vendor/assets/pf-e6q_5ubr.svg +18 -0
  361. package/dist-vendor/assets/pg-BAYpbp9Z.svg +9 -0
  362. package/dist-vendor/assets/pg-nBvUkq7v.svg +16 -0
  363. package/dist-vendor/assets/ph-B10ogxgQ.svg +6 -0
  364. package/dist-vendor/assets/ph-BEzTn62K.svg +6 -0
  365. package/dist-vendor/assets/phone-input-impl-tGfTKVIJ.js +19 -0
  366. package/dist-vendor/assets/pk-BnahYzav.svg +15 -0
  367. package/dist-vendor/assets/pk-CWMEc3ad.svg +15 -0
  368. package/dist-vendor/assets/pl-jl6riBSr.svg +6 -0
  369. package/dist-vendor/assets/pl-o38JROoc.svg +6 -0
  370. package/dist-vendor/assets/pm-CHiP5UmZ.svg +5 -0
  371. package/dist-vendor/assets/pm-CatGySkp.svg +5 -0
  372. package/dist-vendor/assets/popover-Cg1zTBmw.js +1 -0
  373. package/dist-vendor/assets/pr-B4tMV0xm.svg +13 -0
  374. package/dist-vendor/assets/pr-DjaQzs0K.svg +13 -0
  375. package/dist-vendor/assets/ps-CEUcLi5W.svg +6 -0
  376. package/dist-vendor/assets/ps-DO8YKYeS.svg +6 -0
  377. package/dist-vendor/assets/pw-CQP52WMX.svg +11 -0
  378. package/dist-vendor/assets/pw-DOQyn2PV.svg +11 -0
  379. package/dist-vendor/assets/qa-CekFoc-3.svg +4 -0
  380. package/dist-vendor/assets/qa-Dkmpc78M.svg +4 -0
  381. package/dist-vendor/assets/re-Bg1MZWMt.svg +7 -0
  382. package/dist-vendor/assets/re-Bk4ipYK1.svg +5 -0
  383. package/dist-vendor/assets/react-CZI7_Jkm.js +1 -0
  384. package/dist-vendor/assets/react-dom-cJyBB_A4.js +1 -0
  385. package/dist-vendor/assets/registry-DBG9QhcD.js +66 -0
  386. package/dist-vendor/assets/ro-C2av9jVe.svg +7 -0
  387. package/dist-vendor/assets/ro-CoSeqKY1.svg +7 -0
  388. package/dist-vendor/assets/rolldown-runtime-QTnfLwEv.js +1 -0
  389. package/dist-vendor/assets/ru-D-4tNwXt.svg +5 -0
  390. package/dist-vendor/assets/ru-DbUtf_DX.svg +5 -0
  391. package/dist-vendor/assets/rw-CcIfVufE.svg +13 -0
  392. package/dist-vendor/assets/rw-D7nbSYKI.svg +13 -0
  393. package/dist-vendor/assets/sb-BDTYjcbk.svg +13 -0
  394. package/dist-vendor/assets/sb-Dv-Gc94i.svg +13 -0
  395. package/dist-vendor/assets/sc-CRNsSLg9.svg +7 -0
  396. package/dist-vendor/assets/sc-DFTNEfqs.svg +7 -0
  397. package/dist-vendor/assets/scroll-area-KiRIggDo.js +1 -0
  398. package/dist-vendor/assets/sd-BwHx54f9.svg +13 -0
  399. package/dist-vendor/assets/sd-ClziNjGr.svg +13 -0
  400. package/dist-vendor/assets/se-8C923vhy.svg +4 -0
  401. package/dist-vendor/assets/se-DHad7SFX.svg +4 -0
  402. package/dist-vendor/assets/sg-DGYIMG0G.svg +13 -0
  403. package/dist-vendor/assets/sg-DisnRdSe.svg +13 -0
  404. package/dist-vendor/assets/sh-DBww0RCW.svg +7 -0
  405. package/dist-vendor/assets/sh-DNImvbrE.svg +7 -0
  406. package/dist-vendor/assets/si-BDW--7ta.svg +18 -0
  407. package/dist-vendor/assets/si-BMKT-Tec.svg +18 -0
  408. package/dist-vendor/assets/sj-AM0BJ0qg.svg +7 -0
  409. package/dist-vendor/assets/sj-BFFEGknm.svg +7 -0
  410. package/dist-vendor/assets/sk-8lQCLAqV.svg +9 -0
  411. package/dist-vendor/assets/sk-K9BNIYAO.svg +9 -0
  412. package/dist-vendor/assets/sl-C0dI8IsG.svg +12 -0
  413. package/dist-vendor/assets/sl-DxLJY5vJ.svg +7 -0
  414. package/dist-vendor/assets/sn-C4abx9Xn.svg +8 -0
  415. package/dist-vendor/assets/sn-S8ipNF1U.svg +8 -0
  416. package/dist-vendor/assets/so-BpxKZJzu.svg +11 -0
  417. package/dist-vendor/assets/so-DlzA2Fco.svg +11 -0
  418. package/dist-vendor/assets/sort-rows-FW_ghcyz.js +1 -0
  419. package/dist-vendor/assets/sr-CfMKAfua.svg +6 -0
  420. package/dist-vendor/assets/sr-Co7OKBh3.svg +6 -0
  421. package/dist-vendor/assets/ss-C_PPJ8V2.svg +8 -0
  422. package/dist-vendor/assets/ss-CxVEpdPD.svg +8 -0
  423. package/dist-vendor/assets/st-AMcb9FhJ.svg +16 -0
  424. package/dist-vendor/assets/st-C1Nd1c3V.svg +16 -0
  425. package/dist-vendor/assets/sy-Dpn5i9ke.svg +6 -0
  426. package/dist-vendor/assets/sy-DwSud114.svg +6 -0
  427. package/dist-vendor/assets/td-BsuVhZpT.svg +7 -0
  428. package/dist-vendor/assets/td-Ddv_29rE.svg +7 -0
  429. package/dist-vendor/assets/tf-Co33RhQH.svg +15 -0
  430. package/dist-vendor/assets/tf-DSn8VxE3.svg +15 -0
  431. package/dist-vendor/assets/tg-BpRxi4F-.svg +14 -0
  432. package/dist-vendor/assets/tg-CP1-sc35.svg +14 -0
  433. package/dist-vendor/assets/th-DK2zZyMY.svg +7 -0
  434. package/dist-vendor/assets/th-tzq84hgd.svg +7 -0
  435. package/dist-vendor/assets/tj-BWWBVTk9.svg +26 -0
  436. package/dist-vendor/assets/tj-b-aWfOTb.svg +22 -0
  437. package/dist-vendor/assets/tk-CDucsEss.svg +5 -0
  438. package/dist-vendor/assets/tk-CZEI6mqd.svg +5 -0
  439. package/dist-vendor/assets/tl-wpo93AGk.svg +13 -0
  440. package/dist-vendor/assets/tl-zghdr7_K.svg +13 -0
  441. package/dist-vendor/assets/tn-BcKCZULf.svg +4 -0
  442. package/dist-vendor/assets/tn-DcO8DL80.svg +4 -0
  443. package/dist-vendor/assets/to-6m55WaQo.svg +10 -0
  444. package/dist-vendor/assets/to-D8uVsoxb.svg +10 -0
  445. package/dist-vendor/assets/tr-Cd6FO9Bg.svg +8 -0
  446. package/dist-vendor/assets/tr-Dgwi_nfe.svg +8 -0
  447. package/dist-vendor/assets/tt-CTnr7aY5.svg +5 -0
  448. package/dist-vendor/assets/tt-f6m2xq_2.svg +7 -0
  449. package/dist-vendor/assets/tv-DDqkVT-n.svg +9 -0
  450. package/dist-vendor/assets/tv-MqebyrVm.svg +9 -0
  451. package/dist-vendor/assets/tw-BGxVDCOL.svg +32 -0
  452. package/dist-vendor/assets/tw-d-Mf-0VT.svg +34 -0
  453. package/dist-vendor/assets/tz-BUVjlfC1.svg +15 -0
  454. package/dist-vendor/assets/tz-BjLtHeil.svg +13 -0
  455. package/dist-vendor/assets/ua-Bq0XgQqK.svg +6 -0
  456. package/dist-vendor/assets/ua-BquxXKta.svg +6 -0
  457. package/dist-vendor/assets/ug-ByL2ejGl.svg +30 -0
  458. package/dist-vendor/assets/ug-CQ8d5RQC.svg +30 -0
  459. package/dist-vendor/assets/um-Bhke9Eic.svg +9 -0
  460. package/dist-vendor/assets/um-DreQrsBl.svg +9 -0
  461. package/dist-vendor/assets/us-C73uVeEr.svg +9 -0
  462. package/dist-vendor/assets/us-DAM9Utrf.svg +9 -0
  463. package/dist-vendor/assets/useTranslation-RqY_bF-3.js +1 -0
  464. package/dist-vendor/assets/uy-B2Qs7aGx.svg +28 -0
  465. package/dist-vendor/assets/uy-DD6peej-.svg +28 -0
  466. package/dist-vendor/assets/uz-C2f-Cubn.svg +30 -0
  467. package/dist-vendor/assets/uz-rmSB_IKB.svg +30 -0
  468. package/dist-vendor/assets/vc-COpmFovN.svg +8 -0
  469. package/dist-vendor/assets/vc-DaYqUZD4.svg +8 -0
  470. package/dist-vendor/assets/ve-BSqnIB9l.svg +26 -0
  471. package/dist-vendor/assets/ve-L4X6NQ3q.svg +26 -0
  472. package/dist-vendor/assets/vn-BEAEijd0.svg +11 -0
  473. package/dist-vendor/assets/vn-CsUBJx2L.svg +11 -0
  474. package/dist-vendor/assets/vu-BIFa5Beu.svg +21 -0
  475. package/dist-vendor/assets/vu-D6k0NQlg.svg +21 -0
  476. package/dist-vendor/assets/wf-BC64oop4.svg +5 -0
  477. package/dist-vendor/assets/wf-DrxpOO_G.svg +5 -0
  478. package/dist-vendor/assets/ws-IVFNwTc1.svg +7 -0
  479. package/dist-vendor/assets/ws-vzJNwdVm.svg +7 -0
  480. package/dist-vendor/assets/xx-DHLZWhOc.svg +4 -0
  481. package/dist-vendor/assets/xx-zm_JmrXl.svg +4 -0
  482. package/dist-vendor/assets/ye-BwST9gXC.svg +7 -0
  483. package/dist-vendor/assets/ye-Ir8OtngQ.svg +7 -0
  484. package/dist-vendor/assets/yt-BGlbbiEn.svg +5 -0
  485. package/dist-vendor/assets/yt-DIfEG0ex.svg +5 -0
  486. package/dist-vendor/assets/za-BUKoH9qm.svg +17 -0
  487. package/dist-vendor/assets/za-Jz40JTrv.svg +17 -0
  488. package/dist-vendor/i18next.js +1 -1208
  489. package/dist-vendor/jsx-runtime.js +1 -6
  490. package/dist-vendor/react-dom-client.js +9 -0
  491. package/dist-vendor/react-dom.js +1 -6
  492. package/dist-vendor/react-i18next.js +1 -0
  493. package/dist-vendor/react-router-dom.js +6 -1705
  494. package/dist-vendor/react.js +1 -6
  495. package/dist-vendor/sdk.js +1 -0
  496. package/dist-vendor/web-ui/lib/oklch.js +1 -0
  497. package/dist-vendor/web-ui/render/blocks.js +1 -0
  498. package/dist-vendor/web-ui/render/core.js +11 -0
  499. package/dist-vendor/web-ui.js +1 -67943
  500. package/package.json +1 -1
  501. package/dist/assets/ChatWidget-BW8sd6S7.js +0 -5
  502. package/dist/assets/DiagnosticsPage-3Ci43gZY.js +0 -1
  503. package/dist/assets/GeoMap-BQoT3_cw.js +0 -1
  504. package/dist/assets/GeoMap-vh-t_kPv.css +0 -1
  505. package/dist/assets/MarkdownEditor-BYwRzrYg.js +0 -189
  506. package/dist/assets/NewRecordView-BMaNGbcK.js +0 -1
  507. package/dist/assets/PluginSettingsPage-DA7ghBJP.js +0 -1
  508. package/dist/assets/ScanSummary-TlkBfsiq.js +0 -1
  509. package/dist/assets/SettingsForm-DMvn412d.js +0 -1
  510. package/dist/assets/SettingsPage-CTxF2X4G.js +0 -3
  511. package/dist/assets/ThemeSwitcher-Dd8tYTor.js +0 -1
  512. package/dist/assets/api-QNHQU9to.js +0 -1
  513. package/dist/assets/auth-context-Bo2wqUzm.js +0 -1
  514. package/dist/assets/condition-B5taAXkb.js +0 -1
  515. package/dist/assets/countries-CoGvAZ5u.js +0 -1
  516. package/dist/assets/data-size-CO-LGHbN.js +0 -1
  517. package/dist/assets/development-ChLInqDF.js +0 -1
  518. package/dist/assets/dist-COeDLrWj.js +0 -1
  519. package/dist/assets/esm-CX8ST5Fv.js +0 -1
  520. package/dist/assets/esm-YFvMvTG9.css +0 -1
  521. package/dist/assets/esm-oGoWacTd.js +0 -24
  522. package/dist/assets/extend-CHOe1AVl.js +0 -1
  523. package/dist/assets/fields-Ce51pRua.js +0 -64
  524. package/dist/assets/file-text-CTdt_-uv.js +0 -1
  525. package/dist/assets/flag-icons-CTDpPZQq.css +0 -1
  526. package/dist/assets/i18n-vendor-T6EnJ_TL.js +0 -13
  527. package/dist/assets/ical-FRtCagm-.js +0 -8
  528. package/dist/assets/icons-0CjpO0K1.js +0 -6
  529. package/dist/assets/ilamy-view-CCdCZX7g.js +0 -7
  530. package/dist/assets/index-2id7xr9t.css +0 -2
  531. package/dist/assets/index-92nqE7hd.js +0 -22
  532. package/dist/assets/input-rjfudbd0.js +0 -1
  533. package/dist/assets/list-cache-wPeWyKg1.js +0 -1
  534. package/dist/assets/markdown-vendor-WSL3P01P.js +0 -56
  535. package/dist/assets/phone-input-Dbuvvup1.js +0 -1
  536. package/dist/assets/phone-input-u4b7_wtf.js +0 -21
  537. package/dist/assets/plugin-Cjr7lgQH.js +0 -1
  538. package/dist/assets/plugin-label-CfdhA4_L.js +0 -1
  539. package/dist/assets/popover-DCXlclK7.js +0 -1
  540. package/dist/assets/react-vendor-CzSUaSLk.js +0 -229
  541. package/dist/assets/registration-43gjHJ3X.js +0 -1
  542. package/dist/assets/rolldown-runtime-QTnfLwEv.js +0 -1
  543. package/dist/assets/settings-BEzSaRjz.js +0 -1
  544. package/dist/assets/shelf-DjiUBfgQ.js +0 -1
  545. package/dist/assets/showcase-BeBnutzT.js +0 -1
  546. package/dist/assets/src-B-FFwJ-G.js +0 -1
  547. package/dist/assets/src-B1LWYTOR.js +0 -2
  548. package/dist/assets/src-B7dY0wwO.js +0 -4
  549. package/dist/assets/src-BDP8FIN_.js +0 -1
  550. package/dist/assets/src-BPuTgDYD.js +0 -1
  551. package/dist/assets/src-BRP-DLVM2.js +0 -1
  552. package/dist/assets/src-BU56fYCH2.js +0 -1
  553. package/dist/assets/src-B_6cwa-v.js +0 -1
  554. package/dist/assets/src-BmgYgIDb.js +0 -1
  555. package/dist/assets/src-BpG7q6Ng.js +0 -1
  556. package/dist/assets/src-Bzgh6Ge5.js +0 -1
  557. package/dist/assets/src-C06O0ceD.js +0 -1
  558. package/dist/assets/src-CCeQIMl_.js +0 -1
  559. package/dist/assets/src-CXEKm9OW.js +0 -1
  560. package/dist/assets/src-CbyyWbeT.js +0 -1
  561. package/dist/assets/src-CgXkpslu.js +0 -1
  562. package/dist/assets/src-CtQWxdaS.js +0 -8
  563. package/dist/assets/src-Cz38tTr3.js +0 -1
  564. package/dist/assets/src-DDtMlZ03.js +0 -1
  565. package/dist/assets/src-DNx0vmvI.js +0 -1
  566. package/dist/assets/src-DfQ6cuPE.js +0 -7
  567. package/dist/assets/src-DjrjxzQu.js +0 -1
  568. package/dist/assets/src-Dsh4Yd_x.js +0 -6
  569. package/dist/assets/src-Du26RLvk.js +0 -1
  570. package/dist/assets/src-aPsTM6Fr.js +0 -1
  571. package/dist/assets/src-iJXhTwKd.js +0 -1
  572. package/dist/assets/src-rXsbV4Ce.js +0 -6
  573. package/dist/assets/ui-9Rp0TqUO.js +0 -2
  574. package/dist/assets/ui-ByltCpi4.js +0 -2
  575. package/dist/assets/ui-CFyjU_NB.js +0 -2
  576. package/dist/assets/ui-S_PopF4y.js +0 -2
  577. package/dist/assets/ui-vendor-ByG3otld.js +0 -44
  578. package/dist-vendor/chunk-KS7C4IRE-CACNl8KN.js +0 -6349
  579. package/dist-vendor/jsx-runtime-BiMSyZU3.js +0 -22
  580. package/dist-vendor/react-Be14ySWY.js +0 -293
  581. package/dist-vendor/react-dom-Dvp3Hdeu.js +0 -131
  582. package/dist-vendor/rolldown-runtime-Dqa2HsxW.js +0 -20
  583. package/dist-vendor/web.css +0 -2
  584. /package/{dist → dist-vendor}/assets/ad-B18i8NGa.svg +0 -0
  585. /package/{dist → dist-vendor}/assets/ad-Blhdm5jl.svg +0 -0
  586. /package/{dist → dist-vendor}/assets/af-Bc2fqp73.svg +0 -0
  587. /package/{dist → dist-vendor}/assets/af-C77Rf6cE.svg +0 -0
  588. /package/{dist → dist-vendor}/assets/arab-C-KgnQEz.svg +0 -0
  589. /package/{dist → dist-vendor}/assets/arab-C4CYPgyC.svg +0 -0
  590. /package/{dist → dist-vendor}/assets/as-BTEVCXG-.svg +0 -0
  591. /package/{dist → dist-vendor}/assets/as-Dekqy8Of.svg +0 -0
  592. /package/{dist → dist-vendor}/assets/aw-CLCX8uk5.svg +0 -0
  593. /package/{dist → dist-vendor}/assets/aw-W0PWLK5p.svg +0 -0
  594. /package/{dist → dist-vendor}/assets/bm-BeYgB2z9.svg +0 -0
  595. /package/{dist → dist-vendor}/assets/bm-DvNWWcPM.svg +0 -0
  596. /package/{dist → dist-vendor}/assets/bn-B6T3O78g.svg +0 -0
  597. /package/{dist → dist-vendor}/assets/bn-CPQcA8Ol.svg +0 -0
  598. /package/{dist → dist-vendor}/assets/bo-CcUiMqkJ.svg +0 -0
  599. /package/{dist → dist-vendor}/assets/bo-Dry0C6UA.svg +0 -0
  600. /package/{dist → dist-vendor}/assets/br-Cu5YU29T.svg +0 -0
  601. /package/{dist → dist-vendor}/assets/br-Dr5rMAMb.svg +0 -0
  602. /package/{dist → dist-vendor}/assets/bt-BTo4qm10.svg +0 -0
  603. /package/{dist → dist-vendor}/assets/bt-SxWnbWW0.svg +0 -0
  604. /package/{dist → dist-vendor}/assets/bz-BCKHR4_q.svg +0 -0
  605. /package/{dist → dist-vendor}/assets/bz-CoBdB-p8.svg +0 -0
  606. /package/{dist → dist-vendor}/assets/cy-DJKnEFYW.svg +0 -0
  607. /package/{dist → dist-vendor}/assets/cy-bZuP8hmf.svg +0 -0
  608. /package/{dist → dist-vendor}/assets/dg-CJPJrjiZ.svg +0 -0
  609. /package/{dist → dist-vendor}/assets/dg-DqkWLbnk.svg +0 -0
  610. /package/{dist → dist-vendor}/assets/dm-Cbhezfe1.svg +0 -0
  611. /package/{dist → dist-vendor}/assets/dm-DPPHwW2M.svg +0 -0
  612. /package/{dist → dist-vendor}/assets/do-B86d445t.svg +0 -0
  613. /package/{dist → dist-vendor}/assets/do-DeRnbj4d.svg +0 -0
  614. /package/{dist → dist-vendor}/assets/eac-CwGQsyAM.svg +0 -0
  615. /package/{dist → dist-vendor}/assets/eac-h4QKADRE.svg +0 -0
  616. /package/{dist → dist-vendor}/assets/ec-CaVOFQ3t.svg +0 -0
  617. /package/{dist → dist-vendor}/assets/ec-cwfBJlvF.svg +0 -0
  618. /package/{dist → dist-vendor}/assets/eg-DwOkwyQ0.svg +0 -0
  619. /package/{dist → dist-vendor}/assets/eg-YC70hswZ.svg +0 -0
  620. /package/{dist → dist-vendor}/assets/es-BuSGTZm_.svg +0 -0
  621. /package/{dist → dist-vendor}/assets/es-d5m8M5h8.svg +0 -0
  622. /package/{dist → dist-vendor}/assets/es-ga-D9xG2hYr.svg +0 -0
  623. /package/{dist → dist-vendor}/assets/es-ga-DXhVZ333.svg +0 -0
  624. /package/{dist → dist-vendor}/assets/fj-DEAVMg38.svg +0 -0
  625. /package/{dist → dist-vendor}/assets/fj-u3dAPoew.svg +0 -0
  626. /package/{dist → dist-vendor}/assets/fk-B-RvQ4Hz.svg +0 -0
  627. /package/{dist → dist-vendor}/assets/fk-nuUF_Ak3.svg +0 -0
  628. /package/{dist → dist-vendor}/assets/gb-nir-D4gikpNq.svg +0 -0
  629. /package/{dist → dist-vendor}/assets/gb-nir-vEp1ZXy6.svg +0 -0
  630. /package/{dist → dist-vendor}/assets/gb-wls-Bxz9hxvX.svg +0 -0
  631. /package/{dist → dist-vendor}/assets/gb-wls-CK0XlKT-.svg +0 -0
  632. /package/{dist → dist-vendor}/assets/gq-CPnMO1hT.svg +0 -0
  633. /package/{dist → dist-vendor}/assets/gq-Cag8QTk2.svg +0 -0
  634. /package/{dist → dist-vendor}/assets/gs-DOgYbHsY.svg +0 -0
  635. /package/{dist → dist-vendor}/assets/gs-DiiNa0F5.svg +0 -0
  636. /package/{dist → dist-vendor}/assets/gt-BLpn5qMn.svg +0 -0
  637. /package/{dist → dist-vendor}/assets/gt-CJo5DI-7.svg +0 -0
  638. /package/{dist → dist-vendor}/assets/gu-Di1JYREk.svg +0 -0
  639. /package/{dist → dist-vendor}/assets/gu-SbvrH0uZ.svg +0 -0
  640. /package/{dist → dist-vendor}/assets/hr-BpiVVBoV.svg +0 -0
  641. /package/{dist → dist-vendor}/assets/hr-fzLfaANM.svg +0 -0
  642. /package/{dist → dist-vendor}/assets/ht-DIMg4gti.svg +0 -0
  643. /package/{dist → dist-vendor}/assets/ht-pweRl6ZP.svg +0 -0
  644. /package/{dist → dist-vendor}/assets/im--VPIqfkF.svg +0 -0
  645. /package/{dist → dist-vendor}/assets/im-Dd9p-0-T.svg +0 -0
  646. /package/{dist → dist-vendor}/assets/io-13HOfeJD.svg +0 -0
  647. /package/{dist → dist-vendor}/assets/io-BImhNBcd.svg +0 -0
  648. /package/{dist → dist-vendor}/assets/ir-Q03Mij62.svg +0 -0
  649. /package/{dist → dist-vendor}/assets/ir-cCIgaNf6.svg +0 -0
  650. /package/{dist → dist-vendor}/assets/je-DyWbhIiC.svg +0 -0
  651. /package/{dist → dist-vendor}/assets/je-vXe0Dr49.svg +0 -0
  652. /package/{dist → dist-vendor}/assets/kg-B0FsxZiL.svg +0 -0
  653. /package/{dist → dist-vendor}/assets/kg-CjfitMyT.svg +0 -0
  654. /package/{dist → dist-vendor}/assets/kh-BBvObpUS.svg +0 -0
  655. /package/{dist → dist-vendor}/assets/kh-BeWfuE30.svg +0 -0
  656. /package/{dist → dist-vendor}/assets/ki-fuIMkEYQ.svg +0 -0
  657. /package/{dist → dist-vendor}/assets/ki-p_fAQGbS.svg +0 -0
  658. /package/{dist → dist-vendor}/assets/ky-BqaZHuhf.svg +0 -0
  659. /package/{dist → dist-vendor}/assets/ky-Dpsu1myA.svg +0 -0
  660. /package/{dist → dist-vendor}/assets/kz-CwKXYZ8s.svg +0 -0
  661. /package/{dist → dist-vendor}/assets/kz-Dkyx6q-p.svg +0 -0
  662. /package/{dist → dist-vendor}/assets/li-CHdhvNcr.svg +0 -0
  663. /package/{dist → dist-vendor}/assets/li-CMlf0YU8.svg +0 -0
  664. /package/{dist → dist-vendor}/assets/lk-DSQoDxn_.svg +0 -0
  665. /package/{dist → dist-vendor}/assets/lk-DUkgV9Tq.svg +0 -0
  666. /package/{dist → dist-vendor}/assets/md-DRlxvNwm.svg +0 -0
  667. /package/{dist → dist-vendor}/assets/md-DTi94M3M.svg +0 -0
  668. /package/{dist → dist-vendor}/assets/me-CfGorN3b.svg +0 -0
  669. /package/{dist → dist-vendor}/assets/me-Cv4Gwqah.svg +0 -0
  670. /package/{dist → dist-vendor}/assets/mp-CrOApEqW.svg +0 -0
  671. /package/{dist → dist-vendor}/assets/mp-CuaQmCLf.svg +0 -0
  672. /package/{dist → dist-vendor}/assets/ms-B-w7hFKu.svg +0 -0
  673. /package/{dist → dist-vendor}/assets/ms-DxciGbUu.svg +0 -0
  674. /package/{dist → dist-vendor}/assets/mt-YDa8zgzO.svg +0 -0
  675. /package/{dist → dist-vendor}/assets/mt-YqzKx9xl.svg +0 -0
  676. /package/{dist → dist-vendor}/assets/mx-Cc8Ccfe8.svg +0 -0
  677. /package/{dist → dist-vendor}/assets/mx-CvCwYHGF.svg +0 -0
  678. /package/{dist → dist-vendor}/assets/nf-DGrQb42O.svg +0 -0
  679. /package/{dist → dist-vendor}/assets/nf-Dl00mlk2.svg +0 -0
  680. /package/{dist → dist-vendor}/assets/ni-BX2WCaNt.svg +0 -0
  681. /package/{dist → dist-vendor}/assets/ni-CcFCSQxm.svg +0 -0
  682. /package/{dist → dist-vendor}/assets/om-DcqxRdQL.svg +0 -0
  683. /package/{dist → dist-vendor}/assets/om-nN8zP2Bu.svg +0 -0
  684. /package/{dist → dist-vendor}/assets/pn-BPAlH32D.svg +0 -0
  685. /package/{dist → dist-vendor}/assets/pn-DgxdtieE.svg +0 -0
  686. /package/{dist → dist-vendor}/assets/pt-BTevY6N2.svg +0 -0
  687. /package/{dist → dist-vendor}/assets/pt-DZ2ADgIR.svg +0 -0
  688. /package/{dist → dist-vendor}/assets/py-BKi5dxWt.svg +0 -0
  689. /package/{dist → dist-vendor}/assets/py-mNzh0mZC.svg +0 -0
  690. /package/{dist → dist-vendor}/assets/rs-BfwKwXtn.svg +0 -0
  691. /package/{dist → dist-vendor}/assets/rs-CnTO3ehk.svg +0 -0
  692. /package/{dist → dist-vendor}/assets/sa-Dh79zbT9.svg +0 -0
  693. /package/{dist → dist-vendor}/assets/sa-DnlyVVKx.svg +0 -0
  694. /package/{dist → dist-vendor}/assets/sh-ac-D-aE2xRW.svg +0 -0
  695. /package/{dist → dist-vendor}/assets/sh-ac-FjwY7RYr.svg +0 -0
  696. /package/{dist → dist-vendor}/assets/sh-hl-CgxUDvtv.svg +0 -0
  697. /package/{dist → dist-vendor}/assets/sh-hl-CqtQPzWZ.svg +0 -0
  698. /package/{dist → dist-vendor}/assets/sh-ta-BFo5zkKU.svg +0 -0
  699. /package/{dist → dist-vendor}/assets/sh-ta-CPJublpi.svg +0 -0
  700. /package/{dist → dist-vendor}/assets/sm-BKrUHzrq.svg +0 -0
  701. /package/{dist → dist-vendor}/assets/sm-DGBIRFB_.svg +0 -0
  702. /package/{dist → dist-vendor}/assets/sv-CJIHhYwF.svg +0 -0
  703. /package/{dist → dist-vendor}/assets/sv-RZ39q5hO.svg +0 -0
  704. /package/{dist → dist-vendor}/assets/sx-RKKs0ph6.svg +0 -0
  705. /package/{dist → dist-vendor}/assets/sx-nDhIaDNb.svg +0 -0
  706. /package/{dist → dist-vendor}/assets/sz-D39eIL5d.svg +0 -0
  707. /package/{dist → dist-vendor}/assets/sz-qxMwa2gs.svg +0 -0
  708. /package/{dist → dist-vendor}/assets/tc-CJHJmJj1.svg +0 -0
  709. /package/{dist → dist-vendor}/assets/tc-dtelpZmc.svg +0 -0
  710. /package/{dist → dist-vendor}/assets/tm-C_WSgUcv.svg +0 -0
  711. /package/{dist → dist-vendor}/assets/tm-DGBJvQay.svg +0 -0
  712. /package/{dist → dist-vendor}/assets/un-Bqg4Cbbh.svg +0 -0
  713. /package/{dist → dist-vendor}/assets/un-DabL4p35.svg +0 -0
  714. /package/{dist → dist-vendor}/assets/va-B9-hqIE-.svg +0 -0
  715. /package/{dist → dist-vendor}/assets/va-s7kyhqIM.svg +0 -0
  716. /package/{dist → dist-vendor}/assets/vg-C7xY6pic.svg +0 -0
  717. /package/{dist → dist-vendor}/assets/vg-ClZ-0KpG.svg +0 -0
  718. /package/{dist → dist-vendor}/assets/vi-BC_zcciE.svg +0 -0
  719. /package/{dist → dist-vendor}/assets/vi-BSdsyIxY.svg +0 -0
  720. /package/{dist → dist-vendor}/assets/xk-Bj15g7cp.svg +0 -0
  721. /package/{dist → dist-vendor}/assets/xk-Cdz2uTvR.svg +0 -0
  722. /package/{dist → dist-vendor}/assets/zm-BmsW91ne.svg +0 -0
  723. /package/{dist → dist-vendor}/assets/zm-D8B-0kdx.svg +0 -0
  724. /package/{dist → dist-vendor}/assets/zw-CSuuaw9K.svg +0 -0
  725. /package/{dist → dist-vendor}/assets/zw-U0m7oJ5e.svg +0 -0
@@ -0,0 +1,3 @@
1
+ import{A as le,I as re,N as ae,P as oe,h as de,y as ce}from"./api-CtTqq37J.js";import{t as ue}from"./ThemeSwitcher-DoDwMSvt.js";import{n as me}from"./auth-context-B7spbfSH.js";import{t as V}from"./plugin-label-4X6iMcoh.js";import{useEffect as ge,useState as p}from"react";import{Link as k}from"react-router-dom";import{useTranslation as F}from"react-i18next";import{Badge as H,Button as m,CHROME_LABEL_CLS as y,Card as $,Icon as N,Notice as q,PageBody as pe,PageHeader as he,Switch as fe,confirmDialog as C,formatInstant as be}from"@coffer-org/web-ui";import{Fragment as E,jsx as s,jsxs as n}from"react/jsx-runtime";import{isNewerVersion as z}from"@coffer-org/sdk/version";var h=null,b=null;function L(){h=null}function xe(e=!1){if(!e&&h)return Promise.resolve(h);if(!e&&b)return b;const r=Promise.all([ce(e?{refresh:!0}:void 0),de(e?{refresh:!0}:void 0)]).then(([v,x])=>{const c={plugins:v,runtime:x,checkedAt:Date.now()};return h=c,c});return e||(b=r,r.then(()=>{b===r&&(b=null)},()=>{b===r&&(b=null)})),r}async function U(){const e=Date.now();for(;Date.now()-e<6e4;){await new Promise(r=>setTimeout(r,1e3));try{if((await fetch("/health")).ok)return!0}catch{}}return!1}function Ne(){const{t:e,i18n:r}=F(),{role:v}=me(),x=v==="admin",[c,M]=p(()=>h?.plugins??[]),[j,G]=p(()=>h===null),[P,J]=p(()=>h?.checkedAt??null),[w,a]=p(null),[T,D]=p(!1),S=t=>w===t||w==="*",[d,K]=p(()=>h?.runtime??null),R=c.filter(t=>t.latestVersion&&z(t.latestVersion,t.installedVersion)),B=!!(d?.latestVersion&&d.installedVersion&&z(d.latestVersion,d.installedVersion)),f=R.length+(B?1:0),[_,l]=p(null),[Q,A]=p(!1),W=t=>{const i=c.find(o=>o.id===t);return i?V(e,i):t},X={has_dependents:t=>e("plugins.errors.has_dependents",{list:t.dependents.join(", ")}),missing_deps:t=>e("plugins.errors.missing_deps",{list:t.deps.join(", ")}),unknown_plugin:()=>e("plugins.errors.unknown_plugin")},O=(t=!1)=>xe(t).then(({plugins:i,runtime:o,checkedAt:g})=>{M(i),K(o),J(g),G(!1)});ge(()=>{O()},[]);async function Y(){D(!0),l(null);try{await O(!0)}catch{l(e("plugins.updateCheckError"))}finally{D(!1)}}async function Z(t){a(t.id),l(null);const i=await le(t.id,!t.enabled);if(!i.ok){a(null),l(X[i.error]?.(i.data??{})??e("plugins.genericError",{code:i.error}));return}window.location.reload()}async function ee(t){if(!t.latestVersion||!await C({title:e("plugins.updateTitle",{from:t.installedVersion,to:t.latestVersion}),description:e("plugins.confirmUpdate",{id:t.id,from:t.installedVersion,to:t.latestVersion}),confirmLabel:e("plugins.updateButton")}))return;a(t.id),l(null);const i=await oe(t.id);if(!i.ok){a(null),l(i.stderr?`${e("plugins.updateError")}: ${i.stderr}`:e("plugins.genericError",{code:i.error}));return}A(!0),await U()?(L(),window.location.reload()):(a(null),l(e("plugins.restartTimeout")))}async function te(){if(f===0)return;const t=R.map(g=>`${V(e,g)}: v${g.installedVersion} \u2192 v${g.latestVersion}`);B&&t.push(`${e("plugins.runtimeLabel")}: v${d.installedVersion} \u2192 v${d.latestVersion}`);const i=t.join(`
2
+ `);if(!await C({title:e("plugins.updateAllButton",{count:f}),description:e("plugins.confirmUpdateAll",{count:f,list:i}),confirmLabel:e("plugins.updateButton")}))return;a("*"),l(null);const o=await ae();if(!o.ok){a(null),l(o.stderr?`${e("plugins.updateError")}: ${o.stderr}`:e("plugins.genericError",{code:o.error}));return}A(!0),await U()?(L(),window.location.reload()):(a(null),l(e("plugins.restartTimeout")))}const se=B;async function ne(){const t=[];if(B&&t.push(`${e("plugins.runtimeLabel")}: v${d.installedVersion} \u2192 v${d.latestVersion}`),t.length===0||!await C({title:e("plugins.updateAllButton",{count:t.length}),description:e("plugins.confirmUpdateAll",{count:t.length,list:t.join(`
3
+ `)}),confirmLabel:e("plugins.updateButton")}))return;a("*"),l(null);const i=await re();if(!i.ok){a(null),l(i.stderr?`${e("plugins.updateError")}: ${i.stderr}`:e("plugins.genericError",{code:i.error}));return}A(!0),await U()?(L(),window.location.reload()):(a(null),l(e("plugins.restartTimeout")))}return n("div",{className:"flex flex-col h-full",children:[s(he,{overline:e("dashboard.title"),title:e("settings.title")}),n(pe,{children:[n("section",{className:"mb-6",children:[s("h2",{className:`mb-1 ${y}`,children:e("settings.appearance")}),s($,{className:"flex flex-row items-center gap-4 px-4 py-2",children:s("div",{className:"min-w-0 flex-1",children:s(ue,{})})})]}),n("section",{className:"mb-6",children:[s("h2",{className:`mb-1 ${y}`,children:e("settings.personalTitle")}),n($,{className:"flex flex-row items-center gap-4 px-4 py-3",children:[s("div",{className:"min-w-0 flex-1",children:s("span",{className:"font-semibold text-foreground",children:e("auth.accountTitle")})}),s(m,{variant:"ghost",size:"sm",className:"shrink-0 border border-border",nativeButton:!1,render:s(k,{to:"/settings/account",title:e("auth.accountTitle"),"aria-label":e("auth.accountTitle")}),children:s(N,{name:"lucide:settings",size:16})})]})]}),x&&n(E,{children:[n("section",{className:"mb-6",children:[s("h2",{className:`mb-1 ${y}`,children:e("settings.usersTitle")}),s("p",{className:"mb-3 text-sm text-muted-foreground",children:e("settings.usersDescription")}),n($,{className:"flex flex-row items-center gap-4 px-4 py-3",children:[s("div",{className:"min-w-0 flex-1",children:s("span",{className:"font-semibold text-foreground",children:e("settings.usersTitle")})}),s(m,{variant:"ghost",size:"sm",className:"shrink-0 border border-border",nativeButton:!1,render:s(k,{to:"/settings/users",title:e("settings.usersTitle"),"aria-label":e("settings.usersTitle")}),children:s(N,{name:"lucide:settings",size:16})})]})]}),n("section",{className:"mb-6",children:[s("h2",{className:`mb-1 ${y}`,children:e("settings.diagnosticsTitle")}),s("p",{className:"mb-3 text-sm text-muted-foreground",children:e("settings.diagnosticsDescription")}),n($,{className:"flex flex-row items-center gap-4 px-4 py-3",children:[s("div",{className:"min-w-0 flex-1",children:s("span",{className:"font-semibold text-foreground",children:e("diagnostics.title")})}),s(m,{variant:"ghost",size:"sm",className:"shrink-0 border border-border",nativeButton:!1,render:s(k,{to:"/settings/diagnostics",title:e("diagnostics.title"),"aria-label":e("diagnostics.title")}),children:s(N,{name:"lucide:activity",size:16})})]})]}),n("section",{children:[n("div",{className:"mb-1 flex items-center gap-3",children:[s("h2",{className:y,children:e("settings.componentsTitle")}),n(m,{variant:"ghost",size:"sm",type:"button",disabled:w!==null||T,onClick:Y,title:e("plugins.checkUpdates"),className:"shrink-0 border border-border",children:[s(N,{name:"lucide:refresh-cw",size:14,className:T?"animate-spin":void 0}),e(T?"plugins.checkingUpdates":"plugins.checkUpdates")]}),f>0&&s(m,{size:"sm",type:"button",disabled:w!==null,onClick:te,variant:"outline",className:"shrink-0",children:e("plugins.updateAllButton",{count:f})})]}),s("p",{className:"mb-3 text-sm text-muted-foreground",children:e("settings.componentsDescription")}),!j&&P!==null&&n("p",{className:"mb-3 text-xs text-muted-foreground","aria-live":"polite",children:[f>0?e("plugins.updatesAvailable",{count:f}):e("plugins.noUpdates")," ",e("plugins.lastChecked",{time:be(P,r.language,{date:!1})})]}),j?s("p",{className:"text-muted-foreground",children:e("plugins.loading")}):n(E,{children:[Q&&n(q,{tone:"info",className:"mb-5",children:[e("plugins.restartBannerBefore"),s("b",{children:e("plugins.restartBannerBold")}),e("plugins.restartBannerAfter")]}),_&&s(q,{tone:"danger",className:"mb-5",children:_}),n("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:[n("div",{className:"flex flex-col gap-3 border-b border-border px-4 py-3 sm:flex-row sm:items-center sm:gap-4",children:[n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex items-center gap-2",children:[s("span",{className:"font-semibold text-foreground",children:e("core.settings.label")}),d?.installedVersion&&n(H,{variant:"secondary",className:"text-[10px] font-medium",children:["v",d.installedVersion]}),se&&s(m,{size:"sm",type:"button",disabled:w!==null,onClick:ne,title:e("settings.systemUpdateTitle"),variant:"outline",className:"shrink-0",children:e("plugins.updateButton")})]}),s("div",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:e("settings.systemDescription")})]}),s("div",{className:"flex w-full shrink-0 justify-end border-t border-border pt-3 sm:w-auto sm:border-t-0 sm:pt-0",children:s(m,{variant:"ghost",size:"sm",className:"border border-border",nativeButton:!1,render:s(k,{to:"/settings/system",title:e("core.settings.label"),"aria-label":e("core.settings.label")}),children:s(N,{name:"lucide:settings",size:16})})})]}),c.map(t=>{const i=t.description?e(t.description):"",o=t.enabled?c.filter(u=>u.enabled&&u.id!==t.id&&u.dependsOn.includes(t.id)):[],g=o.length>0,I=g?e("plugins.blockedByDependents",{list:o.map(u=>V(e,u)).join(", ")}):t.enabled?e("plugins.switchDisable"):e("plugins.switchEnable"),ie=[t.dependsOn.length>0&&`${e("plugins.metaDepends")} ${t.dependsOn.map(W).join(", ")}`,t.libraries.length>0&&`${e("plugins.metaLibraries")} ${t.libraries.map(u=>e(u.label)).join(", ")}`,t.extends.length>0&&`${e("plugins.metaExtends")} ${t.extends.map(u=>e(u.label)).join(", ")}`].filter(Boolean).join(" \xB7 ")||"\u2014";return n("div",{className:"flex flex-col gap-3 border-b border-border px-4 py-3 last:border-b-0 sm:flex-row sm:items-center sm:gap-4",children:[n("div",{className:"min-w-0 flex-1",children:[n("div",{className:"flex flex-wrap items-center gap-2",children:[s("span",{className:"font-semibold text-foreground",children:V(e,t)}),s(ve,{plugin:t,busy:S(t.id),onUpdate:()=>ee(t)})]}),i&&s("div",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:i}),s("div",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:ie})]}),n("div",{className:"flex w-full shrink-0 items-center justify-end gap-2 border-t border-border pt-3 sm:w-auto sm:border-t-0 sm:pt-0",children:[t.hasSettings&&s(m,{variant:"ghost",size:"sm",className:"border border-border",nativeButton:!1,render:s(k,{to:`/settings/${t.id}`,title:e("plugins.settingsTitle"),"aria-label":e("plugins.settingsTitle")}),children:s(N,{name:"lucide:settings",size:16})}),s("span",{title:I,children:s(fe,{checked:t.enabled,disabled:S(t.id)||g,onCheckedChange:()=>Z(t),title:I})})]})]},t.id)})]})]})]})]})]})]})}function ve({plugin:e,busy:r,onUpdate:v}){const{t:x}=F(),c=!!(e.latestVersion&&z(e.latestVersion,e.installedVersion));return n(E,{children:[n(H,{variant:"secondary",className:"text-[11px] font-medium",children:["v",e.installedVersion]}),c&&s(m,{size:"sm",type:"button",disabled:r,onClick:v,title:x("plugins.updateTitle",{from:e.installedVersion,to:e.latestVersion}),variant:"outline",className:"shrink-0",children:x("plugins.updateButton")})]})}export{Ne as SettingsPage};
@@ -0,0 +1,21 @@
1
+ import{t as s}from"./createLucideIcon-0HK7VRhx.js";import{useCallback as y,useEffect as N,useState as g}from"react";import{useTranslation as C}from"react-i18next";import{Popover as S,PopoverContent as E,PopoverTrigger as A,cn as d}from"@coffer-org/web-ui";import{jsx as a,jsxs as i}from"react/jsx-runtime";import{chromaCeiling as K}from"@coffer-org/web-ui/lib/oklch";/**
2
+ * @license lucide-react v1.24.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */var P=s("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
7
+ * @license lucide-react v1.24.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */var M=s("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
12
+ * @license lucide-react v1.24.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */var T=s("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
17
+ * @license lucide-react v1.24.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */var I=s("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),m="coffer-theme";function f(t){return t==="light"||t==="dark"||t==="eink"?t:"auto"}function w(){try{return f(localStorage.getItem(m))}catch{return f(null)}}function z(t){if(t==="auto"){delete document.documentElement.dataset.theme;try{localStorage.removeItem(m)}catch{}}else{document.documentElement.dataset.theme=t;try{localStorage.setItem(m,t)}catch{}}}var u="coffer-accent",k="oklch(0.62 0.107 162)",$=[{titleKey:"appearance.colours",items:[[12,"red"],[42,"orange"],[72,"yellow"],[102,"lime"],[132,"green"],[162,"emerald"],[192,"teal"],[222,"azure"],[252,"blue"],[282,"violet"],[312,"purple"],[342,"pink"]].map(([t,e])=>({id:`oklch(0.62 0.107 ${t})`,titleKey:`appearance.hue.${e}`}))},{titleKey:"appearance.neutral",items:[{id:"oklch(0.5 0 0)",titleKey:"appearance.hue.grey"}]}],_=/^(#[0-9a-f]{6}|oklch\(\s*[\d.]+\s+[\d.]+\s+[\d.]+\s*\))$/i;function p(t){const e=t?.trim();return e&&_.test(e)?e:k}function h(){try{return p(localStorage.getItem(u))}catch{return k}}var O=.09,j=["panel","panel-raised"];function F(t){const e=/^oklch\(\s*[\d.]+\s+([\d.]+)\s+([\d.]+)\s*\)$/i.exec(t);return e?Number.parseFloat(e[1])===0?null:Number.parseFloat(e[2]):null}function b(t){const e=document.documentElement,l=F(p(t));for(const c of j){if(l===null){e.style.removeProperty(`--c-${c}-max`);continue}const r=Number.parseFloat(getComputedStyle(e).getPropertyValue(`--l-${c}`));Number.isFinite(r)&&e.style.setProperty(`--c-${c}-max`,String(Math.min(O,K(r,l))))}}function R(t){const e=p(t);document.documentElement.style.setProperty("--accent",e),b(e);try{e==="oklch(0.62 0.107 162)"?localStorage.removeItem(u):localStorage.setItem(u,e)}catch{}}function G(){const[t,e]=g(()=>w()),[l,c]=g(()=>h());return N(()=>{b(h())},[]),{choice:t,setChoice:y(r=>{z(r),b(h()),e(r)},[]),accent:l,setAccent:y(r=>{R(r),c(r)},[])}}var L=[{value:"auto",Icon:M,labelKey:"theme.auto"},{value:"light",Icon:I,labelKey:"theme.light"},{value:"dark",Icon:T,labelKey:"theme.dark"},{value:"eink",Icon:P,labelKey:"theme.eink"}];function H({compact:t=!1}){const{t:e}=C(),{choice:l,setChoice:c,accent:r,setAccent:x}=G();return i(S,{children:[i(A,{"aria-label":e("appearance.label"),className:d("flex min-h-11 touch-manipulation items-center rounded-xl text-sm text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",t?"w-full flex-col gap-0.5 py-2":"w-full gap-2 px-3 py-2"),children:[a("span",{className:"block size-4 shrink-0 rounded-full border border-border",style:{background:r}}),t?a("span",{className:"text-[10px] font-semibold",children:e("appearance.label")}):a("span",{className:"flex-1 text-left",children:e("appearance.label")})]}),i(E,{align:"end",className:"w-[292px] max-w-[calc(100vw-32px)] p-3",children:[i("section",{children:[a("h3",{className:"label mb-1.5 border-b border-border pb-1.5",children:e("appearance.theme")}),a("div",{className:"grid grid-cols-2 gap-1",children:L.map(({value:o,Icon:n,labelKey:v})=>i("button",{type:"button","aria-pressed":l===o,onClick:()=>c(o),className:d("flex min-h-11 touch-manipulation items-center gap-2 rounded-md border border-transparent px-2 text-sm hover:bg-background",l===o&&"border-border bg-background text-foreground"),children:[a(n,{size:15,className:"shrink-0"}),a("span",{className:"truncate",children:e(v)})]},o))})]}),$.map(o=>i("section",{className:"mt-3",children:[a("h3",{className:"label mb-1.5 border-b border-border pb-1.5",children:e(o.titleKey)}),a("div",{className:"grid grid-cols-3 gap-0.5",children:o.items.map(n=>i("button",{type:"button","aria-pressed":r===n.id,onClick:()=>x(n.id),className:d("flex min-w-0 touch-manipulation flex-col items-center gap-1.5 rounded-md border border-transparent px-1 py-2 hover:bg-background",r===n.id&&"border-text bg-background"),children:[a("span",{className:"block size-4 shrink-0 rounded-full border border-border",style:{background:n.id}}),a("span",{className:d("w-full truncate text-[11px] leading-tight",r===n.id?"text-foreground":"text-muted-foreground"),children:e(n.titleKey)})]},n.id))})]},o.titleKey))]})]})}export{H as t};
@@ -0,0 +1 @@
1
+ function d(t,n){return new Promise(e=>{const a=new XMLHttpRequest;a.open("POST","/api/upload"),a.upload.addEventListener("progress",i=>{i.lengthComputable&&n(Math.min(100,Math.round(i.loaded/i.total*100)))}),a.addEventListener("load",()=>{if(a.status<200||a.status>=300){e(null);return}try{const i=JSON.parse(a.responseText),c=i.name??i.filename;if(!c){e(null);return}n(100),e({name:c,...i.mime?{mime:i.mime}:{},...i.size!=null?{size:i.size}:{}})}catch{e(null)}}),a.addEventListener("error",()=>e(null)),a.addEventListener("abort",()=>e(null));const s=new FormData;s.append("file",t),a.send(s)})}async function p(t,n){if(n)return d(t,n);const e=new FormData;e.append("file",t);const a=await fetch("/api/upload",{method:"POST",body:e});if(!a.ok)return null;const s=await a.json(),i=s.name??s.filename;return i?{name:i,...s.mime?{mime:s.mime}:{},...s.size!=null?{size:s.size}:{}}:null}function f(t){return`/uploads/${t}`}async function h(t,n){const e=new URLSearchParams({path:t});n?.length&&e.set("exts",n.join(","));const a=await fetch(`/api/fs/list?${e.toString()}`);if(!a.ok)throw new Error(`fs_list_${a.status}`);return(await a.json()).entries??[]}async function l(t){const n=await fetch("/api/embed",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({url:t})});return n.ok?await n.json():null}var u=new Map;function o(t){const n=u.get(t);if(n)return n;const e=fetch(t).then(a=>{if(!a.ok)throw new Error(`GET ${t} \u2192 ${a.status}`);return a.json()}).finally(()=>{u.delete(t)});return u.set(t,e),e}function m(t,n,e){return o(`/api/${t}/${n}${e&&Object.keys(e).length?"?"+new URLSearchParams(e).toString():""}`)}async function y(t,n,e){const a=await fetch(`/api/${t}/${n}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)});return a.status===201?{ok:!0,row:await a.json()}:a.status===422?{ok:!1,issues:(await a.json()).issues}:{ok:!1,issues:[{field:"",code:"server",path:[]}]}}async function w(t,n,e,a){const s=await fetch(`/api/${t}/${n}/${e}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(a)});return s.ok?{ok:!0,row:await s.json()}:s.status===422?{ok:!1,issues:(await s.json()).issues}:{ok:!1,issues:[{field:"",code:"server",path:[]}]}}async function k(t,n,e){return(await fetch(`/api/${t}/${n}/${e}`,{method:"DELETE"})).status===204}async function g(t,n,e,a){const s=await fetch(`/api/${t}/${n}/${e}/activity`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({favorite:a})});return s.ok?(await s.json()).activity??null:null}function S(){return o("/api/trash")}async function $(t,n,e){return(await fetch(`/api/trash/${t}/${n}/${e}/restore`,{method:"POST"})).ok}async function T(t,n,e){return(await fetch(`/api/trash/${t}/${n}/${e}`,{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify({confirmed:!0})})).status===204}async function j(t={}){const n=t.refresh?"updates=1&refresh=1":"updates=1",e=await fetch(`/api/plugins?${n}`);if(!e.ok)throw new Error("plugins");return e.json()}async function O(t,n){const e=await fetch(`/api/plugins/${t}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({enabled:n})}),a=await e.json().catch(()=>({}));return e.ok?{ok:!0}:{ok:!1,error:a.error??String(e.status),data:a}}async function E(t){const n=await fetch(`/api/plugins/${t}/update`,{method:"POST"}),e=await n.json().catch(()=>({}));return n.ok?{ok:!0}:{ok:!1,error:e.error??String(n.status),stderr:e.stderr}}async function P(){const t=await fetch("/api/plugins/update-all",{method:"POST"}),n=await t.json().catch(()=>({}));return t.ok?{ok:!0,updated:n.updated}:{ok:!1,error:n.error??String(t.status),stderr:n.stderr}}async function b(){const t=await fetch("/api/system/update",{method:"POST"}),n=await t.json().catch(()=>({}));return t.ok?{ok:!0,updated:n.updated}:{ok:!1,error:n.error??String(t.status),stderr:n.stderr}}async function A(t={}){const n=await fetch(`/api/runtime${t.refresh?"?refresh=1":""}`);return n.ok?await n.json():{installedVersion:null,latestVersion:null}}async function L(){const t=await fetch("/api/system/orchestrator-diagnostics",{method:"POST",headers:{"content-type":"application/json"},body:"{}"});if(!t.ok)throw new Error("diagnostics");return await t.json()}async function r(t,n){const e=await fetch(t,{...n,headers:{...n?.body===void 0?{}:{"content-type":"application/json"},...n?.headers}}),a=await e.json().catch(()=>({}));return e.ok?{ok:!0,data:a}:{ok:!1,status:e.status,data:a}}function R(){return o("/api/auth/status")}function J(t,n,e){return r("/api/auth/setup",{method:"POST",body:JSON.stringify({login:t,password:n,displayName:e})})}function N(t,n){return r("/api/auth/login",{method:"POST",body:JSON.stringify({login:t,password:n})})}async function U(){await fetch("/api/auth/logout",{method:"POST"})}async function C(){const t=await fetch("/api/auth/me");return t.ok?t.json():null}function D(t){return r("/api/auth/me",{method:"PATCH",body:JSON.stringify(t)})}function v(t){return r(`/api/auth/users${t?`?q=${encodeURIComponent(t)}`:""}`)}function F(t){return r("/api/auth/users",{method:"POST",body:JSON.stringify(t)})}function I(t,n){return r(`/api/auth/users/${t}`,{method:"PATCH",body:JSON.stringify(n)})}function M(t){return r(`/api/auth/users/${t}`,{method:"DELETE"})}function z(){return r("/api/auth/tokens")}function H(t,n){return r("/api/auth/tokens",{method:"POST",body:JSON.stringify({name:t,token:n})})}function x(t){return r(`/api/auth/tokens/${t}`,{method:"DELETE"})}function G(){return r("/api/auth/links")}function _(t){return r(`/api/auth/links/${encodeURIComponent(t)}`,{method:"POST"})}function q(t,n){return r(`/api/auth/links/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,{method:"DELETE"})}function V(){return r("/api/oauth/grants")}function W(t){return r(`/api/oauth/grants/${encodeURIComponent(t)}`,{method:"DELETE"})}export{O as A,v as C,$ as D,l as E,w as F,b as I,I as L,q as M,P as N,W as O,E as P,p as R,S,T,V as _,R as a,m as b,y as c,k as d,M as f,h as g,A as h,J as i,g as j,x as k,H as l,L as m,U as n,D as o,o as p,C as r,_ as s,N as t,F as u,G as v,f as w,z as x,j as y};
@@ -0,0 +1 @@
1
+ import{a as l,r as s}from"./api-CtTqq37J.js";import{createContext as f,useContext as h,useEffect as a,useState as m}from"react";import{Navigate as d,useLocation as k}from"react-router-dom";import{jsx as n,jsxs as p}from"react/jsx-runtime";var c=f(null);function v(){const i=h(c);if(!i)throw new Error("useAuth() called outside <AuthGate>");return i}function g({children:i}){const[e,r]=m({kind:"loading"});return a(()=>{if(e.kind==="ready")return;let t=!1;return(async()=>{try{const o=await l();if(t)return;if(o.needsSetup)return r({kind:"needsSetup"});const u=await s();if(t)return;r(u?{kind:"ready",user:u}:{kind:"needsLogin"})}catch{t||r({kind:"error"})}})(),()=>{t=!0}},[k().pathname,e.kind]),a(()=>{if(e.kind!=="ready")return;const t=()=>{document.visibilityState==="visible"&&s().then(o=>{o||r({kind:"needsLogin"})}).catch(()=>{})};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},[e.kind]),e.kind==="loading"?null:e.kind==="needsSetup"?n(d,{to:"/setup",replace:!0}):e.kind==="needsLogin"?n(d,{to:"/login",replace:!0}):e.kind==="error"?p("div",{style:{display:"flex",minHeight:"100dvh",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"1rem"},children:[n("p",{children:"Could not check your session."}),n("button",{onClick:()=>window.location.reload(),children:"Reload"})]}):n(c.Provider,{value:e.user,children:i})}export{v as n,g as t};
@@ -0,0 +1,6 @@
1
+ import{t as c}from"./createLucideIcon-0HK7VRhx.js";/**
2
+ * @license lucide-react v1.24.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */var e=c("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);export{e as t};
@@ -0,0 +1 @@
1
+ var n={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"},i;i||(i={});export{n as t};
@@ -0,0 +1,46 @@
1
+ import{createContext as A,createElement as n,forwardRef as d,useContext as b}from"react";/**
2
+ * @license lucide-react v1.24.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */var C=(...t)=>t.filter((e,r,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===r).join(" ").trim();/**
7
+ * @license lucide-react v1.24.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */var L=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
12
+ * @license lucide-react v1.24.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */var W=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,o)=>o?o.toUpperCase():r.toLowerCase());/**
17
+ * @license lucide-react v1.24.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */var h=t=>{const e=W(t);return e.charAt(0).toUpperCase()+e.slice(1)};/**
22
+ * @license lucide-react v1.24.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
27
+ * @license lucide-react v1.24.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */var S=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/**
32
+ * @license lucide-react v1.24.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */var y=A({}),$=()=>b(y);/**
37
+ * @license lucide-react v1.24.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */var j=d(({color:t,size:e,strokeWidth:r,absoluteStrokeWidth:o,className:s="",children:a,iconNode:p,...l},m)=>{const{size:i=24,strokeWidth:u=2,absoluteStrokeWidth:v=!1,color:x="currentColor",className:w=""}=$()??{},f=o??v?Number(r??u)*24/Number(e??i):r??u;return n("svg",{ref:m,...c,width:e??i??c.width,height:e??i??c.height,stroke:t??x,strokeWidth:f,className:C("lucide",w,s),...!a&&!S(l)&&{"aria-hidden":"true"},...l},[...p.map(([k,g])=>n(k,g)),...Array.isArray(a)?a:[a]])});/**
42
+ * @license lucide-react v1.24.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */var B=(t,e)=>{const r=d(({className:o,...s},a)=>n(j,{ref:a,iconNode:e,className:C(`lucide-${L(h(t))}`,`lucide-${t}`,o),...s}));return r.displayName=h(t),r};export{B as t};
@@ -0,0 +1 @@
1
+ import{int as m,wrapKey as u}from"@coffer-org/sdk/fields";import{materialize as c}from"@coffer-org/sdk/materialize/pipeline";import{normalizeOpts as f}from"@coffer-org/sdk/fields/normalize";import{isDecl as l}from"@coffer-org/sdk/materialize/decl";var r={decimal:[["B",1],["KB",1e3],["MB",1e6],["GB",1e9],["TB",1e12]],binary:[["B",1],["KiB",1024],["MiB",1024**2],["GiB",1024**3],["TiB",1024**4]]},B=i=>i.hints.system??"decimal",d=(i,n)=>r[i].find(t=>t[0]===n)?.[1]??1;function o(i,n){const t=r[n];let e=t[0];for(const s of t)i>=s[1]&&(e=s);return e}function b(i,n="decimal"){if(i==null||i===""||Number.isNaN(Number(i)))return"";const t=Number(i),[e,s]=o(t,n);return`${Number((t/s).toFixed(2))} ${e}`}function a(i){const n=f(i),t=m({label:i.label,rules:{...i.rules,min:0},ui:{...i.ui}}),e=l(t)?c(t):t;return u(void 0,n,{...e,kind:"dataSize",hints:{...e.hints,system:i.system??"decimal",unit:i.unit??"GB"}})}function p(i){return a({...i,system:"binary",unit:"GiB"})}function y(i){return a({...i,system:"decimal",unit:"GB"})}export{d as a,B as c,y as i,o as n,b as o,a as r,p as s,r as t};
@@ -0,0 +1,8 @@
1
+ import{r as Qt,t as Gt}from"./rolldown-runtime-B-1-B7_t.js";var ye=Gt(((i,t)=>{(function(e,r){typeof i=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=r()})(i,(function(){"use strict";var e=1e3,r=6e4,n=36e5,s="millisecond",a="second",l="minute",o="hour",h="day",f="week",c="month",d="quarter",m="year",y="date",u="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var T=["th","st","nd","rd"],p=A%100;return"["+A+(T[(p-20)%10]||T[p]||T[0])+"]"}},L=function(A,T,p){var O=String(A);return!O||O.length>=T?A:""+Array(T+1-O.length).join(p)+A},W={s:L,z:function(A){var T=-A.utcOffset(),p=Math.abs(T),O=Math.floor(p/60),g=p%60;return(T<=0?"+":"-")+L(O,2,"0")+":"+L(g,2,"0")},m:function A(T,p){if(T.date()<p.date())return-A(p,T);var O=12*(p.year()-T.year())+(p.month()-T.month()),g=T.clone().add(O,c),v=p-g<0,E=T.clone().add(O+(v?-1:1),c);return+(-(O+(p-g)/(v?g-E:E-g))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:c,y:m,w:f,d:h,D:y,h:o,m:l,s:a,ms:s,Q:d}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},q="en",K={};K[q]=M;var it="$isDayjsObject",rt=function(A){return A instanceof nt||!(!A||!A[it])},Q=function A(T,p,O){var g;if(!T)return q;if(typeof T=="string"){var v=T.toLowerCase();K[v]&&(g=v),p&&(K[v]=p,g=v);var E=T.split("-");if(!g&&E.length>1)return A(E[0])}else{var z=T.name;K[z]=T,g=z}return!O&&g&&(q=g),g||!O&&q},B=function(A,T){if(rt(A))return A.clone();var p=typeof T=="object"?T:{};return p.date=A,p.args=arguments,new nt(p)},b=W;b.l=Q,b.i=rt,b.w=function(A,T){return B(A,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var nt=(function(){function A(p){this.$L=Q(p.locale,null,!0),this.parse(p),this.$x=this.$x||p.x||{},this[it]=!0}var T=A.prototype;return T.parse=function(p){this.$d=(function(O){var g=O.date,v=O.utc;if(g===null)return new Date(NaN);if(b.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var E=g.match(_);if(E){var z=E[2]-1||0,U=(E[7]||"0").substring(0,3);return v?new Date(Date.UTC(E[1],z,E[3]||1,E[4]||0,E[5]||0,E[6]||0,U)):new Date(E[1],z,E[3]||1,E[4]||0,E[5]||0,E[6]||0,U)}}return new Date(g)})(p),this.init()},T.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},T.$utils=function(){return b},T.isValid=function(){return this.$d.toString()!==u},T.isSame=function(p,O){var g=B(p);return this.startOf(O)<=g&&g<=this.endOf(O)},T.isAfter=function(p,O){return B(p)<this.startOf(O)},T.isBefore=function(p,O){return this.endOf(O)<B(p)},T.$g=function(p,O,g){return b.u(p)?this[O]:this.set(g,p)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(p,O){var g=this,v=!!b.u(O)||O,E=b.p(p),z=function(Tt,Z){var ft=b.w(g.$u?Date.UTC(g.$y,Z,Tt):new Date(g.$y,Z,Tt),g);return v?ft:ft.endOf(h)},U=function(Tt,Z){return b.w(g.toDate()[Tt].apply(g.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(Z)),g)},$=this.$W,H=this.$M,tt=this.$D,St="set"+(this.$u?"UTC":"");switch(E){case m:return v?z(1,0):z(31,11);case c:return v?z(1,H):z(0,H+1);case f:var _t=this.$locale().weekStart||0,It=($<_t?$+7:$)-_t;return z(v?tt-It:tt+(6-It),H);case h:case y:return U(St+"Hours",0);case o:return U(St+"Minutes",1);case l:return U(St+"Seconds",2);case a:return U(St+"Milliseconds",3);default:return this.clone()}},T.endOf=function(p){return this.startOf(p,!1)},T.$set=function(p,O){var g,v=b.p(p),E="set"+(this.$u?"UTC":""),z=(g={},g[h]=E+"Date",g[y]=E+"Date",g[c]=E+"Month",g[m]=E+"FullYear",g[o]=E+"Hours",g[l]=E+"Minutes",g[a]=E+"Seconds",g[s]=E+"Milliseconds",g)[v],U=v===h?this.$D+(O-this.$W):O;if(v===c||v===m){var $=this.clone().set(y,1);$.$d[z](U),$.init(),this.$d=$.set(y,Math.min(this.$D,$.daysInMonth())).$d}else z&&this.$d[z](U);return this.init(),this},T.set=function(p,O){return this.clone().$set(p,O)},T.get=function(p){return this[b.p(p)]()},T.add=function(p,O){var g,v=this;p=Number(p);var E=b.p(O),z=function(H){var tt=B(v);return b.w(tt.date(tt.date()+Math.round(H*p)),v)};if(E===c)return this.set(c,this.$M+p);if(E===m)return this.set(m,this.$y+p);if(E===h)return z(1);if(E===f)return z(7);var U=(g={},g[l]=r,g[o]=n,g[a]=e,g)[E]||1,$=this.$d.getTime()+p*U;return b.w($,this)},T.subtract=function(p,O){return this.add(-1*p,O)},T.format=function(p){var O=this,g=this.$locale();if(!this.isValid())return g.invalidDate||u;var v=p||"YYYY-MM-DDTHH:mm:ssZ",E=b.z(this),z=this.$H,U=this.$m,$=this.$M,H=g.weekdays,tt=g.months,St=g.meridiem,_t=function(Z,ft,xt,Pt){return Z&&(Z[ft]||Z(O,v))||xt[ft].slice(0,Pt)},It=function(Z){return b.s(z%12||12,Z,"0")},Tt=St||function(Z,ft,xt){var Pt=Z<12?"AM":"PM";return xt?Pt.toLowerCase():Pt};return v.replace(w,(function(Z,ft){return ft||(function(xt){switch(xt){case"YY":return String(O.$y).slice(-2);case"YYYY":return b.s(O.$y,4,"0");case"M":return $+1;case"MM":return b.s($+1,2,"0");case"MMM":return _t(g.monthsShort,$,tt,3);case"MMMM":return _t(tt,$);case"D":return O.$D;case"DD":return b.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return _t(g.weekdaysMin,O.$W,H,2);case"ddd":return _t(g.weekdaysShort,O.$W,H,3);case"dddd":return H[O.$W];case"H":return String(z);case"HH":return b.s(z,2,"0");case"h":return It(1);case"hh":return It(2);case"a":return Tt(z,U,!0);case"A":return Tt(z,U,!1);case"m":return String(U);case"mm":return b.s(U,2,"0");case"s":return String(O.$s);case"ss":return b.s(O.$s,2,"0");case"SSS":return b.s(O.$ms,3,"0");case"Z":return E}return null})(Z)||E.replace(":","")}))},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(p,O,g){var v,E=this,z=b.p(O),U=B(p),$=(U.utcOffset()-this.utcOffset())*r,H=this-U,tt=function(){return b.m(E,U)};switch(z){case m:v=tt()/12;break;case c:v=tt();break;case d:v=tt()/3;break;case f:v=(H-$)/6048e5;break;case h:v=(H-$)/864e5;break;case o:v=H/n;break;case l:v=H/r;break;case a:v=H/e;break;default:v=H}return g?v:b.a(v)},T.daysInMonth=function(){return this.endOf(c).$D},T.$locale=function(){return K[this.$L]},T.locale=function(p,O){if(!p)return this.$L;var g=this.clone(),v=Q(p,O,!0);return v&&(g.$L=v),g},T.clone=function(){return b.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},A})(),bt=nt.prototype;return B.prototype=bt,[["$ms",s],["$s",a],["$m",l],["$H",o],["$W",h],["$M",c],["$y",m],["$D",y]].forEach((function(A){bt[A[1]]=function(T){return this.$g(T,A[0],A[1])}})),B.extend=function(A,T){return A.$i||(A(T,nt,B),A.$i=!0),B},B.locale=Q,B.isDayjs=rt,B.unix=function(A){return B(1e3*A)},B.en=K[q],B.Ls=K,B.p={},B}))})),pe=Gt(((i,t)=>{(function(e,r){typeof i=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_timezone=r()})(i,(function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(n,s,a){var l,o=function(d,m,y){y===void 0&&(y={});var u=new Date(d);return(function(_,w){w===void 0&&(w={});var M=w.timeZoneName||"short",L=_+"|"+M,W=r[L];return W||(W=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:_,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),r[L]=W),W})(m,y).formatToParts(u)},h=function(d,m){for(var y=o(d,m),u=[],_=0;_<y.length;_+=1){var w=y[_],M=w.type,L=w.value,W=e[M];W>=0&&(u[W]=parseInt(L,10))}var q=u[3],K=q===24?0:q,it=u[0]+"-"+u[1]+"-"+u[2]+" "+K+":"+u[4]+":"+u[5]+":000",rt=+d;return(a.utc(it).valueOf()-(rt-=rt%1e3))/6e4},f=s.prototype;f.tz=function(d,m){if(d===void 0&&(d=l),!this.isValid())return this;var y,u=this.utcOffset(),_=this.toDate(),w=_.toLocaleString("en-US",{timeZone:d}),M=h(+_,d);if(!Number(M))y=this.utcOffset(0,m);else if(y=a(w,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(M,!0),m){var L=y.utcOffset();y=y.add(u-L,"minute")}return y.$x.$timezone=d,y},f.offsetName=function(d){var m=this.$x.$timezone||a.tz.guess(),y=o(this.valueOf(),m,{timeZoneName:d}).find((function(u){return u.type.toLowerCase()==="timezonename"}));return y&&y.value};var c=f.startOf;f.startOf=function(d,m){if(!this.$x||!this.$x.$timezone)return c.call(this,d,m);var y=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(y,d,m).tz(this.$x.$timezone,!0)},a.tz=function(d,m,y){var u=y&&m,_=y||m||l,w=h(+a(),_);if(typeof d!="string")return a(d).tz(_);var M=a.utc(d,u).valueOf();if(Number.isNaN(M)){var L=a(NaN);return L.$x.$timezone=_,L}var W=(function(rt,Q,B){var b=rt-60*Q*1e3,nt=h(b,B);if(Q===nt)return[b,Q];var bt=h(b-=60*(nt-Q)*1e3,B);return nt===bt?[b,nt]:[rt-60*Math.min(nt,bt)*1e3,Math.max(nt,bt)]})(M,w,_),q=W[0],K=W[1],it=a(q).utcOffset(K);return it.$x.$timezone=_,it},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(d){l=d}}}))})),ge=Gt(((i,t)=>{(function(e,r){typeof i=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_utc=r()})(i,(function(){"use strict";var e="minute",r=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(s,a,l){var o=a.prototype;l.utc=function(u){return new a({date:u,utc:!0,args:arguments})},o.utc=function(u){var _=l(this.toDate(),{locale:this.$L,utc:!0});return u?_.add(this.utcOffset(),e):_},o.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var h=o.parse;o.parse=function(u){u.utc&&(this.$u=!0),this.$utils().u(u.$offset)||(this.$offset=u.$offset),h.call(this,u)};var f=o.init;o.init=function(){if(this.$u){var u=this.$d;this.$y=u.getUTCFullYear(),this.$M=u.getUTCMonth(),this.$D=u.getUTCDate(),this.$W=u.getUTCDay(),this.$H=u.getUTCHours(),this.$m=u.getUTCMinutes(),this.$s=u.getUTCSeconds(),this.$ms=u.getUTCMilliseconds()}else f.call(this)};var c=o.utcOffset;o.utcOffset=function(u,_){var w=this.$utils().u;if(w(u))return this.$u?0:w(this.$offset)?c.call(this):this.$offset;if(typeof u=="string"&&(u=(function(q){q===void 0&&(q="");var K=q.match(r);if(!K)return null;var it=(""+K[0]).match(n)||["-",0,0],rt=it[0],Q=60*+it[1]+ +it[2];return Q===0?0:rt==="+"?Q:-Q})(u),u===null))return this;var M=Math.abs(u)<=16?60*u:u;if(M===0)return this.utc(_);var L=this.clone();if(_)return L.$offset=M,L.$u=!1,L;var W=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(L=this.local().add(M+W,e)).$offset=M,L.$x.$localOffset=W,L};var d=o.format;o.format=function(u){var _=u||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,_)},o.valueOf=function(){var u=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*u},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var m=o.toDate;o.toDate=function(u){return u==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var y=o.diff;o.diff=function(u,_,w){if(u&&this.$u===u.$u)return y.call(this,u,_,w);var M=this.local(),L=l(u).local();return y.call(M,L,_,w)}}}))})),_e=class Re{static fromString(t){return new Re(t)}constructor(t){this.value=t}icaltype="binary";decodeValue(){return this._b64_decode(this.value)}setEncodedValue(t){this.value=this._b64_encode(t)}_b64_encode(t){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,s,a,l,o,h,f,c=0,d=0,m="",y=[];if(!t)return t;do r=t.charCodeAt(c++),n=t.charCodeAt(c++),s=t.charCodeAt(c++),f=r<<16|n<<8|s,a=f>>18&63,l=f>>12&63,o=f>>6&63,h=f&63,y[d++]=e.charAt(a)+e.charAt(l)+e.charAt(o)+e.charAt(h);while(c<t.length);m=y.join("");let u=t.length%3;return(u?m.slice(0,u-3):m)+"===".slice(u||3)}_b64_decode(t){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,s,a,l,o,h,f,c=0,d=0,m="",y=[];if(!t)return t;t+="";do a=e.indexOf(t.charAt(c++)),l=e.indexOf(t.charAt(c++)),o=e.indexOf(t.charAt(c++)),h=e.indexOf(t.charAt(c++)),f=a<<18|l<<12|o<<6|h,r=f>>16&255,n=f>>8&255,s=f&255,o==64?y[d++]=String.fromCharCode(r):h==64?y[d++]=String.fromCharCode(r,n):y[d++]=String.fromCharCode(r,n,s);while(c<t.length);return m=y.join(""),m}toString(){return this.value}},je=/([PDWHMTS]{1,1})/,We=["weeks","days","hours","minutes","seconds","isNegative"],st=class Ut{static fromSeconds(t){return new Ut().fromSeconds(t)}static isValueString(t){return t[0]==="P"||t[1]==="P"}static fromString(t){let e=0,r=Object.create(null),n=0;for(;(e=t.search(je))!==-1;){let s=t[e],a=t.slice(0,Math.max(0,e));t=t.slice(e+1),n+=Fe(s,a,r)}if(n<2)throw new Error('invalid duration value: Not enough duration components in "'+t+'"');return new Ut(r)}static fromData(t){return new Ut(t)}constructor(t){this.wrappedJSObject=this,this.fromData(t)}weeks=0;days=0;hours=0;minutes=0;seconds=0;isNegative=!1;icalclass="icalduration";icaltype="duration";clone(){return Ut.fromData(this)}toSeconds(){let t=this.seconds+60*this.minutes+3600*this.hours+86400*this.days+604800*this.weeks;return this.isNegative?-t:t}fromSeconds(t){let e=Math.abs(t);return this.isNegative=t<0,this.days=R(e/86400),this.days%7==0?(this.weeks=this.days/7,this.days=0):this.weeks=0,e-=(this.days+7*this.weeks)*86400,this.hours=R(e/3600),e-=this.hours*3600,this.minutes=R(e/60),e-=this.minutes*60,this.seconds=e,this}fromData(t){for(let e of We)t&&e in t?this[e]=t[e]:this[e]=0}reset(){this.isNegative=!1,this.weeks=0,this.days=0,this.hours=0,this.minutes=0,this.seconds=0}compare(t){let e=this.toSeconds(),r=t.toSeconds();return(e>r)-(e<r)}normalize(){this.fromSeconds(this.toSeconds())}toString(){if(this.toSeconds()==0)return"PT0S";{let t="";this.isNegative&&(t+="-"),t+="P";let e=!1;return this.weeks?this.days||this.hours||this.minutes||this.seconds?t+=this.weeks*7+this.days+"D":(t+=this.weeks+"W",e=!0):this.days&&(t+=this.days+"D"),e||(this.hours||this.minutes||this.seconds)&&(t+="T",this.hours&&(t+=this.hours+"H"),this.minutes&&(t+=this.minutes+"M"),this.seconds&&(t+=this.seconds+"S")),t}}toICALString(){return this.toString()}};function Fe(i,t,e){let r;switch(i){case"P":t&&t==="-"?e.isNegative=!0:e.isNegative=!1;break;case"D":r="days";break;case"W":r="weeks";break;case"H":r="hours";break;case"M":r="minutes";break;case"S":r="seconds";break;default:return 0}if(r){if(!t&&t!==0)throw new Error('invalid duration value: Missing number before "'+i+'"');let n=parseInt(t,10);if(Ct(n))throw new Error('invalid duration value: Invalid number "'+t+'" before "'+i+'"');e[r]=n}return 1}var te=class Nt{static fromString(t,e){let r=t.split("/");if(r.length!==2)throw new Error('Invalid string value: "'+t+'" must contain a "/" char.');let n={start:D.fromDateTimeString(r[0],e)},s=r[1];return st.isValueString(s)?n.duration=st.fromString(s):n.end=D.fromDateTimeString(s,e),new Nt(n)}static fromData(t){return new Nt(t)}static fromJSON(t,e,r){function n(s,a){return r?D.fromString(s,a):D.fromDateTimeString(s,a)}return st.isValueString(t[1])?Nt.fromData({start:n(t[0],e),duration:st.fromString(t[1])}):Nt.fromData({start:n(t[0],e),end:n(t[1],e)})}constructor(t){if(this.wrappedJSObject=this,t&&"start"in t){if(t.start&&!(t.start instanceof D))throw new TypeError(".start must be an instance of ICAL.Time");this.start=t.start}if(t&&t.end&&t.duration)throw new Error("cannot accept both end and duration");if(t&&"end"in t){if(t.end&&!(t.end instanceof D))throw new TypeError(".end must be an instance of ICAL.Time");this.end=t.end}if(t&&"duration"in t){if(t.duration&&!(t.duration instanceof st))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=t.duration}}start=null;end=null;duration=null;icalclass="icalperiod";icaltype="period";clone(){return Nt.fromData({start:this.start?this.start.clone():null,end:this.end?this.end.clone():null,duration:this.duration?this.duration.clone():null})}getDuration(){return this.duration?this.duration:this.end.subtractDate(this.start)}getEnd(){if(this.end)return this.end;{let t=this.start.clone();return t.addDuration(this.duration),t}}compare(t){return t.compare(this.start)<0?1:t.compare(this.getEnd())>0?-1:0}toString(){return this.start+"/"+(this.end||this.duration)}toJSON(){return[this.start.toString(),(this.end||this.duration).toString()]}toICALString(){return this.start.toICALString()+"/"+(this.end||this.duration).toICALString()}},D=class Y{static _dowCache={};static _wnCache={};static daysInMonth(t,e){let r=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=30;return t<1||t>12||(n=r[t],t==2&&(n+=Y.isLeapYear(e))),n}static isLeapYear(t){return t<=1752?t%4==0:t%4==0&&t%100!=0||t%400==0}static fromDayOfYear(t,e){let r=e,n=t,s=new Y;s.auto_normalize=!1;let a=Y.isLeapYear(r)?1:0;if(n<1)return r--,a=Y.isLeapYear(r)?1:0,n+=Y.daysInYearPassedMonth[a][12],Y.fromDayOfYear(n,r);if(n>Y.daysInYearPassedMonth[a][12])return a=Y.isLeapYear(r)?1:0,n-=Y.daysInYearPassedMonth[a][12],r++,Y.fromDayOfYear(n,r);s.year=r,s.isDate=!0;for(let l=11;l>=0;l--)if(n>Y.daysInYearPassedMonth[a][l]){s.month=l+1,s.day=n-Y.daysInYearPassedMonth[a][l];break}return s.auto_normalize=!0,s}static fromStringv2(t){return new Y({year:parseInt(t.slice(0,4),10),month:parseInt(t.slice(5,7),10),day:parseInt(t.slice(8,10),10),isDate:!0})}static fromDateString(t){return new Y({year:j(t.slice(0,4)),month:j(t.slice(5,7)),day:j(t.slice(8,10)),isDate:!0})}static fromDateTimeString(t,e){if(t.length<19)throw new Error('invalid date-time value: "'+t+'"');let r,n;t.slice(-1)==="Z"?r=x.utcTimezone:e&&(n=e.getParameter("tzid"),e.parent&&(e.parent.name==="standard"||e.parent.name==="daylight"?r=x.localTimezone:n&&(r=e.parent.getTimeZoneByID(n))));const s={year:j(t.slice(0,4)),month:j(t.slice(5,7)),day:j(t.slice(8,10)),hour:j(t.slice(11,13)),minute:j(t.slice(14,16)),second:j(t.slice(17,19))};return n&&!r&&(s.timezone=n),new Y(s,r)}static fromString(t,e){return t.length>10?Y.fromDateTimeString(t,e):Y.fromDateString(t)}static fromJSDate(t,e){return new Y().fromJSDate(t,e)}static fromData=function(e,r){return new Y().fromData(e,r)};static now(){return Y.fromJSDate(new Date,!1)}static weekOneStarts(t,e){let r=Y.fromData({year:t,month:1,day:1,isDate:!0}),n=r.dayOfWeek(),s=e||Y.DEFAULT_WEEK_START;return n>Y.THURSDAY&&(r.day+=7),s>Y.THURSDAY&&(r.day-=7),r.day-=n-s,r}static getDominicalLetter(t){let e="GFEDCBA",r=(t+(t/4|0)+(t/400|0)-(t/100|0)-1)%7;return Y.isLeapYear(t)?e[(r+6)%7]+e[r]:e[r]}static#t=null;static get epochTime(){return this.#t||(this.#t=Y.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"})),this.#t}static _cmp_attr(t,e,r){return t[r]>e[r]?1:t[r]<e[r]?-1:0}static daysInYearPassedMonth=[[0,31,59,90,120,151,181,212,243,273,304,334,365],[0,31,60,91,121,152,182,213,244,274,305,335,366]];static SUNDAY=1;static MONDAY=2;static TUESDAY=3;static WEDNESDAY=4;static THURSDAY=5;static FRIDAY=6;static SATURDAY=7;static DEFAULT_WEEK_START=2;constructor(t,e){this.wrappedJSObject=this,this._time=Object.create(null),this._time.year=0,this._time.month=1,this._time.day=1,this._time.hour=0,this._time.minute=0,this._time.second=0,this._time.isDate=!1,this.fromData(t,e)}icalclass="icaltime";_cachedUnixTime=null;get icaltype(){return this.isDate?"date":"date-time"}zone=null;_pendingNormalization=!1;get year(){return this._getTimeAttr("year")}set year(t){this._setTimeAttr("year",t)}get month(){return this._getTimeAttr("month")}set month(t){this._setTimeAttr("month",t)}get day(){return this._getTimeAttr("day")}set day(t){this._setTimeAttr("day",t)}get hour(){return this._getTimeAttr("hour")}set hour(t){this._setTimeAttr("hour",t)}get minute(){return this._getTimeAttr("minute")}set minute(t){this._setTimeAttr("minute",t)}get second(){return this._getTimeAttr("second")}set second(t){this._setTimeAttr("second",t)}get isDate(){return this._getTimeAttr("isDate")}set isDate(t){this._setTimeAttr("isDate",t)}_getTimeAttr(t){return this._pendingNormalization&&(this._normalize(),this._pendingNormalization=!1),this._time[t]}_setTimeAttr(t,e){t==="isDate"&&e&&!this._time.isDate&&this.adjust(0,0,0,0),this._cachedUnixTime=null,this._pendingNormalization=!0,this._time[t]=e}clone(){return new Y(this._time,this.zone)}reset(){this.fromData(Y.epochTime),this.zone=x.utcTimezone}resetTo(t,e,r,n,s,a,l){this.fromData({year:t,month:e,day:r,hour:n,minute:s,second:a,zone:l})}fromJSDate(t,e){return t?e?(this.zone=x.utcTimezone,this.year=t.getUTCFullYear(),this.month=t.getUTCMonth()+1,this.day=t.getUTCDate(),this.hour=t.getUTCHours(),this.minute=t.getUTCMinutes(),this.second=t.getUTCSeconds()):(this.zone=x.localTimezone,this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate(),this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds()):this.reset(),this._cachedUnixTime=null,this}fromData(t,e){if(t)for(let[r,n]of Object.entries(t))r!=="icaltype"&&(this[r]=n);if(e&&(this.zone=e),t&&!("isDate"in t)?this.isDate=!("hour"in t):t&&"isDate"in t&&(this.isDate=t.isDate),t&&"timezone"in t){let r=Rt.get(t.timezone);this.zone=r||x.localTimezone}return t&&"zone"in t&&(this.zone=t.zone),this.zone||(this.zone=x.localTimezone),this._cachedUnixTime=null,this}dayOfWeek(t){let e=t||Y.SUNDAY,r=(this.year<<12)+(this.month<<8)+(this.day<<3)+e;if(r in Y._dowCache)return Y._dowCache[r];let n=this.day,s=this.month+(this.month<3?12:0),a=this.year-(this.month<3?1:0),l=n+a+R((s+1)*26/10)+R(a/4);return l+=R(a/100)*6+R(a/400),l=(l+7-e)%7+1,Y._dowCache[r]=l,l}dayOfYear(){let t=Y.isLeapYear(this.year)?1:0;return Y.daysInYearPassedMonth[t][this.month-1]+this.day}startOfWeek(t){let e=t||Y.SUNDAY,r=this.clone();return r.day-=(this.dayOfWeek()+7-e)%7,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r}endOfWeek(t){let e=t||Y.SUNDAY,r=this.clone();return r.day+=(7-this.dayOfWeek()+e-Y.SUNDAY)%7,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r}startOfMonth(){let t=this.clone();return t.day=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t}endOfMonth(){let t=this.clone();return t.day=Y.daysInMonth(t.month,t.year),t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t}startOfYear(){let t=this.clone();return t.day=1,t.month=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t}endOfYear(){let t=this.clone();return t.day=31,t.month=12,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t}startDoyWeek(t){let e=t||Y.SUNDAY,r=this.dayOfWeek()-e;return r<0&&(r+=7),this.dayOfYear()-r}getDominicalLetter(){return Y.getDominicalLetter(this.year)}nthWeekDay(t,e){let r=Y.daysInMonth(this.month,this.year),n,s=e,a=0,l=this.clone();if(s>=0){l.day=1,s!=0&&s--,a=l.day;let o=t-l.dayOfWeek();o<0&&(o+=7),a+=o,a-=t,n=t}else{l.day=r;let o=l.dayOfWeek();s++,n=o-t,n<0&&(n+=7),n=r-n}return n+=s*7,a+n}isNthWeekDay(t,e){let r=this.dayOfWeek();return e===0&&r===t||this.nthWeekDay(t,e)===this.day}weekNumber(t){let e=(this.year<<12)+(this.month<<8)+(this.day<<3)+t;if(e in Y._wnCache)return Y._wnCache[e];let r,n=this.clone();n.isDate=!0;let s=this.year;n.month==12&&n.day>25?(r=Y.weekOneStarts(s+1,t),n.compare(r)<0?r=Y.weekOneStarts(s,t):s++):(r=Y.weekOneStarts(s,t),n.compare(r)<0&&(r=Y.weekOneStarts(--s,t)));let a=R(n.subtractDate(r).toSeconds()/86400/7)+1;return Y._wnCache[e]=a,a}addDuration(t){let e=t.isNegative?-1:1,r=this.second,n=this.minute,s=this.hour,a=this.day;r+=e*t.seconds,n+=e*t.minutes,s+=e*t.hours,a+=e*t.days,a+=e*7*t.weeks,this.second=r,this.minute=n,this.hour=s,this.day=a,this._cachedUnixTime=null}subtractDate(t){let e=this.toUnixTime()+this.utcOffset(),r=t.toUnixTime()+t.utcOffset();return st.fromSeconds(e-r)}subtractDateTz(t){let e=this.toUnixTime(),r=t.toUnixTime();return st.fromSeconds(e-r)}compare(t){if(t instanceof te)return-1*t.compare(this);{let e=this.toUnixTime(),r=t.toUnixTime();return e>r?1:r>e?-1:0}}compareDateOnlyTz(t,e){let r=this.convertToZone(e),n=t.convertToZone(e),s=0;return(s=Y._cmp_attr(r,n,"year"))!=0||(s=Y._cmp_attr(r,n,"month"))!=0||(s=Y._cmp_attr(r,n,"day"))!=0,s}convertToZone(t){let e=this.clone(),r=this.zone.tzid==t.tzid;return!this.isDate&&!r&&x.convert_time(e,this.zone,t),e.zone=t,e}utcOffset(){return this.zone==x.localTimezone||this.zone==x.utcTimezone?0:this.zone.utcOffset(this)}toICALString(){let t=this.toString();return t.length>10?I.icalendar.value["date-time"].toICAL(t):I.icalendar.value.date.toICAL(t)}toString(){let t=this.year+"-"+J(this.month)+"-"+J(this.day);return this.isDate||(t+="T"+J(this.hour)+":"+J(this.minute)+":"+J(this.second),this.zone===x.utcTimezone&&(t+="Z")),t}toJSDate(){return this.zone==x.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(this.toUnixTime()*1e3)}_normalize(){return this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this}adjust(t,e,r,n,s){let a,l,o=0,h=0,f,c,d,m,y,u=s||this._time;if(u.isDate||(f=u.second+n,u.second=f%60,a=R(f/60),u.second<0&&(u.second+=60,a--),c=u.minute+r+a,u.minute=c%60,l=R(c/60),u.minute<0&&(u.minute+=60,l--),d=u.hour+e+l,u.hour=d%24,o=R(d/24),u.hour<0&&(u.hour+=24,o--)),u.month>12?h=R((u.month-1)/12):u.month<1&&(h=R(u.month/12)-1),u.year+=h,u.month-=12*h,m=u.day+t+o,m>0)for(;y=Y.daysInMonth(u.month,u.year),!(m<=y);)u.month++,u.month>12&&(u.year++,u.month=1),m-=y;else for(;m<=0;)u.month==1?(u.year--,u.month=12):u.month--,m+=Y.daysInMonth(u.month,u.year);return u.day=m,this._cachedUnixTime=null,this}fromUnixTime(t){this.zone=x.utcTimezone;let e=new Date(t*1e3);this.year=e.getUTCFullYear(),this.month=e.getUTCMonth()+1,this.day=e.getUTCDate(),this._time.isDate?(this.hour=0,this.minute=0,this.second=0):(this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds()),this._cachedUnixTime=null}toUnixTime(){if(this._cachedUnixTime!==null)return this._cachedUnixTime;let t=this.utcOffset(),e=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-t);return this._cachedUnixTime=e/1e3,this._cachedUnixTime}toJSON(){let t=["year","month","day","hour","minute","second","isDate"],e=Object.create(null),r=0,n=t.length,s;for(;r<n;r++)s=t[r],e[s]=this[s];return this.zone&&(e.timezone=this.zone.tzid),e}},Ve=/[^ \t]/,$t=":",ee=";",qe="=",Ke="unknown",Ze="text",Je={"^'":'"',"^n":`
2
+ `,"^^":"^"};function N(i){let t={},e=t.component=[];if(t.stack=[e],N._eachLine(i,function(r,n){N._handleContentLine(n,t)}),t.stack.length>1)throw new Dt("invalid ical body. component began but did not end");return t=null,e.length==1?e[0]:e}N.property=function(i,t){let e={component:[[],[]],designSet:t||I.defaultSet};return N._handleContentLine(i,e),e.component[1][0]},N.component=function(i){return N(i)};var Dt=class extends Error{name=this.constructor.name};N.ParserError=Dt,N._handleContentLine=function(i,t){let e=i.indexOf($t),r=i.indexOf(ee),n,s,a,l,o={};r!==-1&&e!==-1&&r>e&&(r=-1);let h;if(r!==-1){if(a=i.slice(0,Math.max(0,r)).toLowerCase(),h=N._parseParameters(i.slice(Math.max(0,r)),0,t.designSet),h[2]==-1)throw new Dt("Invalid parameters in '"+i+"'");o=h[0];let w;if(typeof h[1]=="string"?w=h[1].length:w=h[1].reduce((M,L)=>M+L.length,0),n=w+h[2]+r,(s=i.slice(Math.max(0,n)).indexOf($t))!==-1)l=i.slice(Math.max(0,n+s+1));else throw new Dt("Missing parameter value in '"+i+"'")}else if(e!==-1){if(a=i.slice(0,Math.max(0,e)).toLowerCase(),l=i.slice(Math.max(0,e+1)),a==="begin"){let w=[l.toLowerCase(),[],[]];t.stack.length===1?t.component.push(w):t.component[2].push(w),t.stack.push(t.component),t.component=w,t.designSet||(t.designSet=I.getDesignSet(t.component[0]));return}else if(a==="end"){t.component=t.stack.pop();return}}else throw new Dt('invalid line (no token ";" or ":") "'+i+'"');let f,c=!1,d=!1,m,y,u;t.designSet.propertyGroups&&a.indexOf(".")!==-1?(y=a.split("."),o.group=y[0],u=y[1]):u=a,u in t.designSet.property&&(m=t.designSet.property[u],"multiValue"in m&&(c=m.multiValue),"structuredValue"in m&&(d=m.structuredValue),l&&"detectType"in m&&(f=m.detectType(l))),f||("value"in o?f=o.value.toLowerCase():m?f=m.defaultType:f=Ke),delete o.value;let _;c&&d?(l=N._parseMultiValue(l,d,f,[],c,t.designSet,d),_=[u,o,f,l]):c?(_=[u,o,f],N._parseMultiValue(l,c,f,_,null,t.designSet,!1)):d?(l=N._parseMultiValue(l,d,f,[],null,t.designSet,d),_=[u,o,f,l]):(l=N._parseValue(l,f,t.designSet,!1),_=[u,o,f,l]),t.component[0]==="vcard"&&t.component[1].length===0&&!(a==="version"&&l==="4.0")&&(t.designSet=I.getDesignSet("vcard3")),t.component[1].push(_)},N._parseValue=function(i,t,e,r){return t in e.value&&"fromICAL"in e.value[t]?e.value[t].fromICAL(i,r):i},N._parseParameters=function(i,t,e){let r=t,n=0,s=qe,a={},l,o,h,f=-1,c,d,m;for(;n!==!1&&(n=i.indexOf(s,n+1))!==-1;){if(l=i.slice(r+1,n),l.length==0)throw new Dt("Empty parameter name in '"+i+"'");if(o=l.toLowerCase(),m=!1,d=!1,o in e.param&&e.param[o].valueType?c=e.param[o].valueType:c=Ze,o in e.param&&(d=e.param[o].multiValue,e.param[o].multiValueSeparateDQuote&&(m=N._rfc6868Escape('"'+d+'"'))),i[n+1]==='"'){if(f=n+2,n=i.indexOf('"',f),d&&n!=-1){let _=!0;for(;_;)i[n+1]==d&&i[n+2]=='"'?n=i.indexOf('"',n+3):_=!1}if(n===-1)throw new Dt('invalid line (no matching double quote) "'+i+'"');h=i.slice(f,n),r=i.indexOf(ee,n);let u=i.indexOf($t,n);(r===-1||u!==-1&&r>u)&&(n=!1)}else{f=n+1;let u=i.indexOf(ee,f),_=i.indexOf($t,f);_!==-1&&u>_?(u=_,n=!1):u===-1?(_===-1?u=i.length:u=_,n=!1):(r=u,n=u),h=i.slice(f,u)}const y=h.length;if(h=N._rfc6868Escape(h),f+=y-h.length,d){let u=m||d;h=N._parseMultiValue(h,u,c,[],null,e)}else h=N._parseValue(h,c,e);d&&o in a?Array.isArray(a[o])?a[o].push(h):a[o]=[a[o],h]:a[o]=h}return[a,h,f]},N._rfc6868Escape=function(i){return i.replace(/\^['n^]/g,function(t){return Je[t]})},N._parseMultiValue=function(i,t,e,r,n,s,a){let l=0,o=0,h;if(t.length===0)return i;for(;(l=Te(i,t,o))!==-1;)h=i.slice(o,l),n?h=N._parseMultiValue(h,n,e,[],null,s,a):h=N._parseValue(h,e,s,a),r.push(h),o=l+t.length;return h=i.slice(o),n?h=N._parseMultiValue(h,n,e,[],null,s,a):h=N._parseValue(h,e,s,a),r.push(h),r.length==1?r[0]:r},N._eachLine=function(i,t){let e=i.length,r=i.search(Ve),n=r,s,a,l;do n=i.indexOf(`
3
+ `,r)+1,n>1&&i[n-2]==="\r"?l=2:l=1,n===0&&(n=e,l=0),a=i[r],a===" "||a===" "?s+=i.slice(r+1,n-l):(s&&t(null,s),s=i.slice(r,n-l)),r=n;while(n!==e);s=s.trim(),s.length&&t(null,s)};var Xe=["tzid","location","tznames","latitude","longitude"],x=class C{static _compare_change_fn(t,e){return t.year<e.year?-1:t.year>e.year?1:t.month<e.month?-1:t.month>e.month?1:t.day<e.day?-1:t.day>e.day?1:t.hour<e.hour?-1:t.hour>e.hour?1:t.minute<e.minute?-1:t.minute>e.minute?1:t.second<e.second?-1:t.second>e.second?1:0}static convert_time(t,e,r){if(t.isDate||e.tzid==r.tzid||e==C.localTimezone||r==C.localTimezone)return t.zone=r,t;let n=e.utcOffset(t);return t.adjust(0,0,0,-n),n=r.utcOffset(t),t.adjust(0,0,0,n),null}static fromData(t){return new C().fromData(t)}static#t=null;static get utcTimezone(){return this.#t||(this.#t=C.fromData({tzid:"UTC"})),this.#t}static#e=null;static get localTimezone(){return this.#e||(this.#e=C.fromData({tzid:"floating"})),this.#e}static adjust_change(t,e,r,n,s){return D.prototype.adjust.call(t,e,r,n,s,t)}static _minimumExpansionYear=-1;static EXTRA_COVERAGE=5;constructor(t){this.wrappedJSObject=this,this.fromData(t)}tzid="";location="";tznames="";latitude=0;longitude=0;component=null;expandedUntilYear=0;icalclass="icaltimezone";fromData(t){if(this.expandedUntilYear=0,this.changes=[],t instanceof ot)this.component=t;else{if(t&&"component"in t)if(typeof t.component=="string"){let e=N(t.component);this.component=new ot(e)}else t.component instanceof ot?this.component=t.component:this.component=null;for(let e of Xe)t&&e in t&&(this[e]=t[e])}return this.component instanceof ot&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this}utcOffset(t){if(this==C.utcTimezone||this==C.localTimezone||(this._ensureCoverage(t.year),!this.changes.length))return 0;let e={year:t.year,month:t.month,day:t.day,hour:t.hour,minute:t.minute,second:t.second},r=this._findNearbyChange(e),n=-1,s=1;for(;;){let l=Ot(this.changes[r],!0);if(l.utcOffset<l.prevUtcOffset?C.adjust_change(l,0,0,0,l.utcOffset):C.adjust_change(l,0,0,0,l.prevUtcOffset),C._compare_change_fn(e,l)>=0?n=r:s=-1,s==-1&&n!=-1)break;if(r+=s,r<0)return 0;if(r>=this.changes.length)break}let a=this.changes[n];if(a.utcOffset-a.prevUtcOffset<0&&n>0){let l=Ot(a,!0);if(C.adjust_change(l,0,0,0,l.prevUtcOffset),C._compare_change_fn(e,l)<0){let o=this.changes[n-1],h=!1;a.is_daylight!=h&&o.is_daylight==h&&(a=o)}}return a.utcOffset}_findNearbyChange(t){let e=Yt(this.changes,t,C._compare_change_fn);return e>=this.changes.length?this.changes.length-1:e}_ensureCoverage(t){if(C._minimumExpansionYear==-1){let r=D.now();C._minimumExpansionYear=r.year}let e=t;if(e<C._minimumExpansionYear&&(e=C._minimumExpansionYear),e+=C.EXTRA_COVERAGE,!this.changes.length||this.expandedUntilYear<t){let r=this.component.getAllSubcomponents(),n=r.length,s=0;for(;s<n;s++)this._expandComponent(r[s],e,this.changes);this.changes.sort(C._compare_change_fn),this.expandedUntilYear=e}}_expandComponent(t,e,r){if(!t.hasProperty("dtstart")||!t.hasProperty("tzoffsetto")||!t.hasProperty("tzoffsetfrom"))return null;let n=t.getFirstProperty("dtstart").getFirstValue(),s;function a(o){return o.factor*(o.hours*3600+o.minutes*60)}function l(){let o={};return o.is_daylight=t.name=="daylight",o.utcOffset=a(t.getFirstProperty("tzoffsetto").getFirstValue()),o.prevUtcOffset=a(t.getFirstProperty("tzoffsetfrom").getFirstValue()),o}if(!t.hasProperty("rrule")&&!t.hasProperty("rdate"))s=l(),s.year=n.year,s.month=n.month,s.day=n.day,s.hour=n.hour,s.minute=n.minute,s.second=n.second,C.adjust_change(s,0,0,0,-s.prevUtcOffset),r.push(s);else{let o=t.getAllProperties("rdate");for(let f of o){let c=f.getFirstValue();s=l(),s.year=c.year,s.month=c.month,s.day=c.day,c.isDate?(s.hour=n.hour,s.minute=n.minute,s.second=n.second,n.zone!=C.utcTimezone&&C.adjust_change(s,0,0,0,-s.prevUtcOffset)):(s.hour=c.hour,s.minute=c.minute,s.second=c.second,c.zone!=C.utcTimezone&&C.adjust_change(s,0,0,0,-s.prevUtcOffset)),r.push(s)}let h=t.getFirstProperty("rrule");if(h){h=h.getFirstValue(),s=l(),h.until&&h.until.zone==C.utcTimezone&&(h.until.adjust(0,0,0,s.prevUtcOffset),h.until.zone=C.localTimezone);let f=h.iterator(n),c;for(;(c=f.next())&&(s=l(),!(c.year>e||!c));)s.year=c.year,s.month=c.month,s.day=c.day,s.hour=c.hour,s.minute=c.minute,s.second=c.second,s.isDate=c.isDate,C.adjust_change(s,0,0,0,-s.prevUtcOffset),r.push(s)}}return r}toString(){return this.tznames?this.tznames:this.tzid}},F=null,Rt={get count(){return F===null?0:Object.keys(F).length},reset:function(){F=Object.create(null);let i=x.utcTimezone;F.Z=i,F.UTC=i,F.GMT=i},_hard_reset:function(){F=null},has:function(i){return F===null?!1:!!F[i]},get:function(i){return F===null&&this.reset(),F[i]},register:function(i,t){if(F===null&&this.reset(),typeof i=="string"&&t instanceof x&&([i,t]=[t,i]),t||(i instanceof x?t=i.tzid:i.name==="vtimezone"&&(i=new x(i),t=i.tzid)),!t)throw new TypeError("Neither a timezone nor a name was passed");if(i instanceof x)F[t]=i;else throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component")},remove:function(i){return F===null?null:delete F[i]}};function Qe(i){let t,e,r,n,s;if(!i||i.name!=="vcalendar")return i;for(t=i.getAllSubcomponents(),e=[],r={},s=0;s<t.length;s++)if(t[s].name==="vtimezone"){let a=t[s].getFirstProperty("tzid").getFirstValue();r[a]=t[s]}else e=e.concat(t[s].getAllProperties());for(n={},s=0;s<e.length;s++){let a=e[s].getParameter("tzid");a&&(n[a]=!0)}for(let[a,l]of Object.entries(r))n[a]||i.removeSubcomponent(l);for(let a of Object.keys(n))!r[a]&&Rt.has(a)&&i.addSubcomponent(Rt.get(a).component);return i}function Ct(i){return typeof i=="number"&&isNaN(i)}function j(i){let t=parseInt(i,10);if(Ct(t))throw new Error('Could not extract integer from "'+i+'"');return t}function lt(i,t){if(!(typeof i>"u"))return i instanceof t?i:new t(i)}function Te(i,t,e){for(;(e=i.indexOf(t,e))!==-1;)if(e>0&&i[e-1]==="\\")e+=1;else return e;return-1}function Yt(i,t,e){if(!i.length)return 0;let r=0,n=i.length-1,s,a;for(;r<=n;)if(s=r+Math.floor((n-r)/2),a=e(t,i[s]),a<0)n=s-1;else if(a>0)r=s+1;else break;return a<0?s:a>0?s+1:s}function Ot(i,t){if(!i||typeof i!="object")return i;if(i instanceof Date)return new Date(i.getTime());if("clone"in i)return i.clone();if(Array.isArray(i)){let e=[];for(let r=0;r<i.length;r++)e.push(t?Ot(i[r],!0):i[r]);return e}else{let e={};for(let[r,n]of Object.entries(i))t?e[r]=Ot(n,!0):e[r]=n;return e}}function De(i){let t="",e=i||"",r=0,n=0;for(;e.length;){let s=e.codePointAt(r);s<128?++n:s<2048?n+=2:s<65536?n+=3:n+=4,n<ct.foldLength+1?r+=s>65535?2:1:(t+=ct.newLineChar+" "+e.slice(0,Math.max(0,r)),e=e.slice(Math.max(0,r)),r=n=0)}return t.slice(ct.newLineChar.length+1)}function J(i){switch(typeof i!="string"&&(typeof i=="number"&&(i=parseInt(i)),i=String(i)),i.length){case 0:return"00";case 1:return"0"+i;default:return i}}function R(i){return i<0?Math.ceil(i):Math.floor(i)}function At(i,t){for(let e in i){let r=Object.getOwnPropertyDescriptor(i,e);r&&!Object.getOwnPropertyDescriptor(t,e)&&Object.defineProperty(t,e,r)}return t}var Ge=Object.freeze({__proto__:null,binsearchInsert:Yt,clone:Ot,extend:At,foldline:De,formatClassType:lt,isStrictlyNaN:Ct,pad2:J,strictParseInt:j,trunc:R,unescapedIndexOf:Te,updateTimezones:Qe}),vt=class Xt{static fromString(t){let e={};return e.factor=t[0]==="+"?1:-1,e.hours=j(t.slice(1,3)),e.minutes=j(t.slice(4,6)),new Xt(e)}static fromSeconds(t){let e=new Xt;return e.fromSeconds(t),e}constructor(t){this.fromData(t)}hours=0;minutes=0;factor=1;icaltype="utc-offset";clone(){return Xt.fromSeconds(this.toSeconds())}fromData(t){if(t)for(let[e,r]of Object.entries(t))this[e]=r;this._normalize()}fromSeconds(t){let e=Math.abs(t);return this.factor=t<0?-1:1,this.hours=R(e/3600),e-=this.hours*3600,this.minutes=R(e/60),this}toSeconds(){return this.factor*(60*this.minutes+3600*this.hours)}compare(t){let e=this.toSeconds(),r=t.toSeconds();return(e>r)-(r>e)}_normalize(){let t=this.toSeconds(),e=this.factor;for(;t<-43200;)t+=97200;for(;t>50400;)t-=97200;this.fromSeconds(t),t==0&&(this.factor=e)}toICALString(){return I.icalendar.value["utc-offset"].toICAL(this.toString())}toString(){return(this.factor==1?"+":"-")+J(this.hours)+":"+J(this.minutes)}},Mt=class fe extends D{static fromDateAndOrTimeString(t,e){function r(u,_,w){return u?j(u.slice(_,_+w)):null}let n=t.split("T"),s=n[0],a=n[1],l=a?I.vcard.value.time._splitZone(a):[],o=l[0],h=l[1],f=s?s.length:0,c=h?h.length:0,d=s&&s[0]=="-"&&s[1]=="-",m=h&&h[0]=="-",y={year:d?null:r(s,0,4),month:d&&(f==4||f==7)?r(s,2,2):f==7||f==10?r(s,5,2):null,day:f==5?r(s,3,2):f==7&&d?r(s,5,2):f==10?r(s,8,2):null,hour:m?null:r(h,0,2),minute:m&&c==3?r(h,1,2):c>4?m?r(h,1,2):r(h,3,2):null,second:c==4?r(h,2,2):c==6?r(h,4,2):c==8?r(h,6,2):null};return o=="Z"?o=x.utcTimezone:o&&o[3]==":"?o=vt.fromString(o):o=null,new fe(y,o,e)}constructor(t,e,r){super(t,e),this.icaltype=r||"date-and-or-time"}icalclass="vcardtime";icaltype="date-and-or-time";clone(){return new fe(this._time,this.zone,this.icaltype)}_normalize(){return this}utcOffset(){return this.zone instanceof vt?this.zone.toSeconds():D.prototype.utcOffset.apply(this,arguments)}toICALString(){return I.vcard.value[this.icaltype].toICAL(this.toString())}toString(){let t=this.year,e=this.month,r=this.day,n=this.hour,s=this.minute,a=this.second,l=t!==null,o=e!==null,h=r!==null,f=n!==null,c=s!==null,d=a!==null,m=(l?J(t)+(o||h?"-":""):o||h?"--":"")+(o?J(e):"")+(h?"-"+J(r):""),y=(f?J(n):"-")+(f&&c?":":"")+(c?J(s):"")+(!f&&!c?"-":"")+(c&&d?":":"")+(d?J(a):""),u;switch(this.zone===x.utcTimezone?u="Z":this.zone instanceof vt?u=this.zone.toString():this.zone===x.localTimezone?u="":this.zone instanceof x?u=vt.fromSeconds(this.zone.utcOffset(this)).toString():u="",this.icaltype){case"time":return y+u;case"date-and-or-time":case"date-time":return m+(y=="--"?"":"T"+y+u);case"date":return m}return null}},ie=class Et{static _indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8};static _expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]};static UNKNOWN=0;static CONTRACT=1;static EXPAND=2;static ILLEGAL=3;constructor(t){this.fromData(t)}completed=!1;rule=null;dtstart=null;last=null;occurrence_number=0;by_indices=null;initialized=!1;by_data=null;days=null;days_index=0;fromData(t){if(this.rule=lt(t.rule,ut),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=lt(t.dtstart,D),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");if(t.by_data?this.by_data=t.by_data:this.by_data=Ot(this.rule.parts,!0),t.occurrence_number&&(this.occurrence_number=t.occurrence_number),this.days=t.days||[],t.last&&(this.last=lt(t.last,D)),this.by_indices=t.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=t.initialized||!1,!this.initialized)try{this.init()}catch(e){if(e instanceof Ht)this.completed=!0;else throw e}}init(){this.initialized=!0,this.last=this.dtstart.clone();let t=this.by_data;if("BYDAY"in t&&this.sort_byday_rules(t.BYDAY),"BYYEARDAY"in t&&("BYMONTH"in t||"BYWEEKNO"in t||"BYMONTHDAY"in t))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in t&&"BYMONTHDAY"in t)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if(this.rule.freq=="MONTHLY"&&("BYYEARDAY"in t||"BYWEEKNO"in t))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if(this.rule.freq=="WEEKLY"&&("BYYEARDAY"in t||"BYMONTHDAY"in t))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if(this.rule.freq!="YEARLY"&&"BYYEARDAY"in t)throw new Error("BYYEARDAY may only appear in YEARLY rules");if(this.last.second=this.setup_defaults("BYSECOND","SECONDLY",this.dtstart.second),this.last.minute=this.setup_defaults("BYMINUTE","MINUTELY",this.dtstart.minute),this.last.hour=this.setup_defaults("BYHOUR","HOURLY",this.dtstart.hour),this.last.day=this.setup_defaults("BYMONTHDAY","DAILY",this.dtstart.day),this.last.month=this.setup_defaults("BYMONTH","MONTHLY",this.dtstart.month),this.rule.freq=="WEEKLY")if("BYDAY"in t){let[,e]=this.ruleDayOfWeek(t.BYDAY[0],this.rule.wkst),r=e-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)<e&&r>=0||r<0)&&(this.last.day+=r)}else t.BYDAY=[ut.numericDayToIcalDay(this.dtstart.dayOfWeek())];if(this.rule.freq=="YEARLY"){const e=this.rule.until?this.rule.until.year:2e4;for(;this.last.year<=e&&(this.expand_year_days(this.last.year),!(this.days.length>0));)this.increment_year(this.rule.interval);if(this.days.length==0)throw new Ht;if(!this._nextByYearDay()&&!this.next_year()&&!this.next_year()&&!this.next_year())throw new Ht}if(this.rule.freq=="MONTHLY"){if(this.has_by_data("BYDAY")){let e=null,r=this.last.clone(),n=D.daysInMonth(this.last.month,this.last.year);for(let s of this.by_data.BYDAY){this.last=r.clone();let[a,l]=this.ruleDayOfWeek(s),o=this.last.nthWeekDay(l,a);if(a>=6||a<=-6)throw new Error("Malformed values in BYDAY part");if(o>n||o<=0){if(e&&e.month==r.month)continue;for(;o>n||o<=0;)this.increment_month(),n=D.daysInMonth(this.last.month,this.last.year),o=this.last.nthWeekDay(l,a)}this.last.day=o,(!e||this.last.compare(e)<0)&&(e=this.last.clone())}if(this.last=e.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>n||this.last.day==0)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")){this.last.day=1;let e=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY).filter(r=>r>=this.last.day);if(e.length)this.last.day=e[0],this.by_data.BYMONTHDAY=e;else if(!this.next_month()&&!this.next_month()&&!this.next_month())throw new Ht}}}next(t=!1){let e=this.last?this.last.clone():null;if((this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)&&(this.completed=!0),this.completed)return null;if(this.occurrence_number==0&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;let r,n=0;do switch(r=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":if(r=this.next_month(),r)n=0;else if(++n==336)return this.completed=!0,null;break;case"YEARLY":if(r=this.next_year(),r)n=0;else if(++n==28)return this.completed=!0,null;break;default:return null}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!r);if(this.last.compare(e)==0){if(t)throw new Error("Same occurrence found twice, protecting you from death by recursion");this.next(!0)}return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)}next_second(){return this.next_generic("BYSECOND","SECONDLY","second","minute")}increment_second(t){return this.increment_generic(t,"second",60,"minute")}next_minute(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")}increment_minute(t){return this.increment_generic(t,"minute",60,"hour")}next_hour(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")}increment_hour(t){this.increment_generic(t,"hour",24,"monthday")}next_day(){let t=this.rule.freq=="DAILY";return this.next_hour()==0||(t?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0}next_week(){let t=0;if(this.next_weekday_by_week()==0)return t;if(this.has_by_data("BYWEEKNO")){this.by_indices.BYWEEKNO++,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,t=1),this.last.month=1,this.last.day=1;let e=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*e,t&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return t}normalizeByMonthDayRules(t,e,r){let n=D.daysInMonth(e,t),s=[],a=0,l=r.length,o;for(;a<l;a++){if(o=parseInt(r[a],10),isNaN(o))throw new Error("Invalid BYMONTHDAY value");if(!(Math.abs(o)>n)){if(o<0)o=n+(o+1);else if(o===0)continue;s.indexOf(o)===-1&&s.push(o)}}return s.sort(function(h,f){return h-f})}_byDayAndMonthDay(t){let e,r=this.by_data.BYDAY,n,s=0,a,l=r.length,o=0,h,f=this,c=this.last.day;function d(){for(h=D.daysInMonth(f.last.month,f.last.year),e=f.normalizeByMonthDayRules(f.last.year,f.last.month,f.by_data.BYMONTHDAY),a=e.length;e[s]<=c&&!(t&&e[s]==c)&&s<a-1;)s++}function m(){c=0,f.increment_month(),s=0,d()}d(),t&&(c-=1);let y=48;for(;!o&&y;){if(y--,n=c+1,n>h){m();continue}let u=e[s++];if(u>=n)c=u;else{m();continue}for(let _=0;_<l;_++){let w=this.ruleDayOfWeek(r[_]),M=w[0],L=w[1];if(this.last.day=c,this.last.isNthWeekDay(L,M)){o=1;break}}if(!o&&s===a){m();continue}}if(y<=0)throw new Error("Malformed values in BYDAY combined with BYMONTHDAY parts");return o}next_month(){let t=1;if(this.next_hour()==0)return t;if(this.has_by_data("BYDAY")&&this.has_by_data("BYMONTHDAY"))t=this._byDayAndMonthDay();else if(this.has_by_data("BYDAY")){let e=D.daysInMonth(this.last.month,this.last.year),r=0,n=0;if(this.has_by_data("BYSETPOS")){let a=this.last.day;for(let l=1;l<=e;l++)this.last.day=l,this.is_day_in_byday(this.last)&&(n++,l<=a&&r++);this.last.day=a}t=0;let s;for(s=this.last.day+1;s<=e;s++)if(this.last.day=s,this.is_day_in_byday(this.last)&&(!this.has_by_data("BYSETPOS")||this.check_set_position(++r)||this.check_set_position(r-n-1))){t=1;break}s>e&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(t=1):t=0)}else if(this.has_by_data("BYMONTHDAY")){if(this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month(),this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length))return 0;let e=D.daysInMonth(this.last.month,this.last.year),r=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];r<0&&(r=e+r+1),r>e?(this.last.day=1,t=this.is_day_in_byday(this.last)):this.last.day=r}else{this.increment_month();let e=D.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>e?t=0:this.last.day=this.by_data.BYMONTHDAY[0]}return t}next_weekday_by_week(){let t=0;if(this.next_hour()==0)return t;if(!this.has_by_data("BYDAY"))return 1;for(;;){let e=new D;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,t=1);let r=this.by_data.BYDAY[this.by_indices.BYDAY],n=this.ruleDayOfWeek(r)[1];n-=this.rule.wkst,n<0&&(n+=7),e.year=this.last.year,e.month=this.last.month,e.day=this.last.day;let s=e.startDoyWeek(this.rule.wkst);if(n+s<1&&!t)continue;let a=D.fromDayOfYear(s+n,this.last.year);return this.last.year=a.year,this.last.month=a.month,this.last.day=a.day,t}}next_year(){return this.next_hour()==0||(this.days.length==0||++this.days_index==this.days.length)&&(this.days_index=0,this.increment_year(this.rule.interval),this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY)),this.expand_year_days(this.last.year),this.days.length==0)?0:this._nextByYearDay()}_nextByYearDay(){let t=this.days[this.days_index],e=this.last.year;if(Math.abs(t)==366&&!D.isLeapYear(this.last.year))return 0;t<1&&(t+=1,e+=1);let r=D.fromDayOfYear(t,e);return this.last.day=r.day,this.last.month=r.month,1}ruleDayOfWeek(t,e){let r=t.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(r){let n=parseInt(r[1]||0,10);return t=ut.icalDayToNumericDay(r[2],e),[n,t]}else return[0,0]}next_generic(t,e,r,n,s){let a=t in this.by_data,l=this.rule.freq==e,o=0;if(s&&this[s]()==0)return o;if(a){this.by_indices[t]++;let h=this.by_data[t];this.by_indices[t]==h.length&&(this.by_indices[t]=0,o=1),this.last[r]=h[this.by_indices[t]]}else l&&this["increment_"+r](this.rule.interval);return a&&o&&l&&this["increment_"+n](1),o}increment_monthday(t){for(let e=0;e<t;e++){let r=D.daysInMonth(this.last.month,this.last.year);this.last.day++,this.last.day>r&&(this.last.day-=r,this.increment_month())}}increment_month(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{this.rule.freq=="MONTHLY"?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;let t=R(this.last.month/12);this.last.month%=12,this.last.month++,t!=0&&this.increment_year(t)}this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY))}increment_year(t){this.last.day=1,this.last.year+=t}increment_generic(t,e,r,n){this.last[e]+=t;let s=R(this.last[e]/r);this.last[e]%=r,s!=0&&this["increment_"+n](s)}has_by_data(t){return t in this.rule.parts}expand_year_days(t){let e=new D;this.days=[];let r={};for(let a of["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"])a in this.rule.parts&&(r[a]=this.rule.parts[a]);if("BYMONTH"in r&&"BYWEEKNO"in r){let a=1,l={};e.year=t,e.isDate=!0;for(let o=0;o<this.by_data.BYMONTH.length;o++){let h=this.by_data.BYMONTH[o];e.month=h,e.day=1;let f=e.weekNumber(this.rule.wkst);e.day=D.daysInMonth(h,t);let c=e.weekNumber(this.rule.wkst);for(o=f;o<c;o++)l[o]=1}for(let o=0;o<this.by_data.BYWEEKNO.length&&a;o++)this.by_data.BYWEEKNO[o]<52?a&=l[o]:a=0;a?delete r.BYMONTH:delete r.BYWEEKNO}let n=Object.keys(r).length;if(n==0){let a=this.dtstart.clone();a.year=this.last.year,this.days.push(a.dayOfYear())}else if(n==1&&"BYMONTH"in r)for(let a of this.by_data.BYMONTH){let l=this.dtstart.clone();l.year=t,l.month=a,l.isDate=!0,this.days.push(l.dayOfYear())}else if(n==1&&"BYMONTHDAY"in r)for(let a of this.by_data.BYMONTHDAY){let l=this.dtstart.clone();if(a<0){let o=D.daysInMonth(l.month,t);a=a+o+1}l.day=a,l.year=t,l.isDate=!0,this.days.push(l.dayOfYear())}else if(n==2&&"BYMONTHDAY"in r&&"BYMONTH"in r)for(let a of this.by_data.BYMONTH){let l=D.daysInMonth(a,t);for(let o of this.by_data.BYMONTHDAY)o<0&&(o=o+l+1),e.day=o,e.month=a,e.year=t,e.isDate=!0,this.days.push(e.dayOfYear())}else if(!(n==1&&"BYWEEKNO"in r)){if(!(n==2&&"BYWEEKNO"in r&&"BYMONTHDAY"in r)){if(n==1&&"BYDAY"in r)this.days=this.days.concat(this.expand_by_day(t));else if(n==2&&"BYDAY"in r&&"BYMONTH"in r){for(let a of this.by_data.BYMONTH){let l=D.daysInMonth(a,t);e.year=t,e.month=a,e.day=1,e.isDate=!0;let o=e.dayOfWeek(),h=e.dayOfYear()-1;e.day=l;let f=e.dayOfWeek();if(this.has_by_data("BYSETPOS")){let c=[];for(let d=1;d<=l;d++)e.day=d,this.is_day_in_byday(e)&&c.push(d);for(let d=0;d<c.length;d++)(this.check_set_position(d+1)||this.check_set_position(d-c.length))&&this.days.push(h+c[d])}else for(let c of this.by_data.BYDAY){let d=this.ruleDayOfWeek(c),m=d[0],y=d[1],u,_=(y+7-o)%7+1,w=l-(f+7-y)%7;if(m==0)for(let M=_;M<=l;M+=7)this.days.push(h+M);else m>0?(u=_+(m-1)*7,u<=l&&this.days.push(h+u)):(u=w+(m+1)*7,u>0&&this.days.push(h+u))}}this.days.sort(function(a,l){return a-l})}else if(n==2&&"BYDAY"in r&&"BYMONTHDAY"in r){let a=this.expand_by_day(t);for(let l of a){let o=D.fromDayOfYear(l,t);this.by_data.BYMONTHDAY.indexOf(o.day)>=0&&this.days.push(l)}}else if(n==3&&"BYDAY"in r&&"BYMONTHDAY"in r&&"BYMONTH"in r){let a=this.expand_by_day(t);for(let l of a){let o=D.fromDayOfYear(l,t);this.by_data.BYMONTH.indexOf(o.month)>=0&&this.by_data.BYMONTHDAY.indexOf(o.day)>=0&&this.days.push(l)}}else if(n==2&&"BYDAY"in r&&"BYWEEKNO"in r){let a=this.expand_by_day(t);for(let l of a){let o=D.fromDayOfYear(l,t).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(o)&&this.days.push(l)}}else if(!(n==3&&"BYDAY"in r&&"BYWEEKNO"in r&&"BYMONTHDAY"in r))if(n==1&&"BYYEARDAY"in r)this.days=this.days.concat(this.by_data.BYYEARDAY);else if(n==2&&"BYYEARDAY"in r&&"BYDAY"in r){let a=D.isLeapYear(t)?366:365,l=new Set(this.expand_by_day(t));for(let o of this.by_data.BYYEARDAY)o<0&&(o+=a+1),l.has(o)&&this.days.push(o)}else this.days=[]}}let s=D.isLeapYear(t)?366:365;return this.days.sort((a,l)=>(a<0&&(a+=s+1),l<0&&(l+=s+1),a-l)),0}expand_by_day(t){let e=[],r=this.last.clone();r.year=t,r.month=1,r.day=1,r.isDate=!0;let n=r.dayOfWeek();r.month=12,r.day=31,r.isDate=!0;let s=r.dayOfWeek(),a=r.dayOfYear();for(let l of this.by_data.BYDAY){let o=this.ruleDayOfWeek(l),h=o[0],f=o[1];if(h==0){let c=(f+7-n)%7+1;for(let d=c;d<=a;d+=7)e.push(d)}else if(h>0){let c;f>=n?c=f-n+1:c=f-n+8,e.push(c+(h-1)*7)}else{let c;h=-h,f<=s?c=a-s+f:c=a-s+f-7,e.push(c-(h-1)*7)}}return e}is_day_in_byday(t){if(this.by_data.BYDAY)for(let e of this.by_data.BYDAY){let r=this.ruleDayOfWeek(e),n=r[0],s=r[1],a=t.dayOfWeek();if(n==0&&s==a||t.nthWeekDay(s,n)==t.day)return 1}return 0}check_set_position(t){return this.has_by_data("BYSETPOS")?this.by_data.BYSETPOS.indexOf(t)!==-1:!1}sort_byday_rules(t){for(let e=0;e<t.length;e++)for(let r=0;r<e;r++)if(this.ruleDayOfWeek(t[r],this.rule.wkst)[1]>this.ruleDayOfWeek(t[e],this.rule.wkst)[1]){let n=t[e];t[e]=t[r],t[r]=n}}check_contract_restriction(t,e){let r=Et._indexMap[t],n=Et._expandMap[this.rule.freq][r],s=!1;if(t in this.by_data&&n==Et.CONTRACT){let a=this.by_data[t];for(let l of a)if(l==e){s=!0;break}}else s=!0;return s}check_contracting_rules(){let t=this.last.dayOfWeek(),e=this.last.weekNumber(this.rule.wkst),r=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",ut.numericDayToIcalDay(t))&&this.check_contract_restriction("BYWEEKNO",e)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",r)}setup_defaults(t,e,r){let n=Et._indexMap[t];return Et._expandMap[this.rule.freq][n]!=Et.CONTRACT&&(t in this.by_data||(this.by_data[t]=[r]),this.rule.freq!=e)?this.by_data[t][0]:r}toJSON(){let t=Object.create(null);return t.initialized=this.initialized,t.rule=this.rule.toJSON(),t.dtstart=this.dtstart.toJSON(),t.by_data=this.by_data,t.days=this.days,t.last=this.last.toJSON(),t.by_indices=this.by_indices,t.occurrence_number=this.occurrence_number,t}},Ht=class extends Error{constructor(){super("Recurrence rule has no valid occurrences")}},ti=/^(SU|MO|TU|WE|TH|FR|SA)$/,ei=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,Ye={SU:D.SUNDAY,MO:D.MONDAY,TU:D.TUESDAY,WE:D.WEDNESDAY,TH:D.THURSDAY,FR:D.FRIDAY,SA:D.SATURDAY},ii=Object.fromEntries(Object.entries(Ye).map(i=>i.reverse())),Oe=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],ut=class wt{static fromString(t){let e=this._stringToData(t,!1);return new wt(e)}static fromData(t){return new wt(t)}static _stringToData(t,e){let r=Object.create(null),n=t.split(";"),s=n.length;for(let a=0;a<s;a++){let l=n[a].split("="),o=l[0].toUpperCase(),h=l[0].toLowerCase(),f=e?h:o,c=l[1];if(o in ne){let d=c.split(","),m=new Set;for(let y of d)m.add(ne[o](y));d=[...m],r[f]=d.length==1?d[0]:d}else o in re?re[o](c,r,e):r[h]=c}return r}static icalDayToNumericDay(t,e){let r=e||D.SUNDAY;return(Ye[t]-r+7)%7+1}static numericDayToIcalDay(t,e){let r=t+(e||D.SUNDAY)-D.SUNDAY;return r>7&&(r-=7),ii[r]}constructor(t){this.wrappedJSObject=this,this.parts={},t&&typeof t=="object"&&this.fromData(t)}parts=null;interval=1;wkst=D.MONDAY;until=null;count=null;freq=null;icalclass="icalrecur";icaltype="recur";iterator(t){return new ie({rule:this,dtstart:t})}clone(){return new wt(this.toJSON())}isFinite(){return!!(this.count||this.until)}isByCount(){return!!(this.count&&!this.until)}addComponent(t,e){let r=t.toUpperCase();r in this.parts?this.parts[r].push(e):this.parts[r]=[e]}setComponent(t,e){this.parts[t.toUpperCase()]=e.slice()}getComponent(t){let e=t.toUpperCase();return e in this.parts?this.parts[e].slice():[]}getNextOccurrence(t,e){let r=this.iterator(t),n;do n=r.next();while(n&&n.compare(e)<=0);return n&&e.zone&&(n.zone=e.zone),n}fromData(t){for(let e in t){let r=e.toUpperCase();r in ne?Array.isArray(t[e])?this.parts[r]=t[e]:this.parts[r]=[t[e]]:this[e]=t[e]}this.interval&&typeof this.interval!="number"&&re.INTERVAL(this.interval,this),this.wkst&&typeof this.wkst!="number"&&(this.wkst=wt.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof D)&&(this.until=D.fromString(this.until))}toJSON(){let t=Object.create(null);t.freq=this.freq,this.count&&(t.count=this.count),this.interval>1&&(t.interval=this.interval);for(let[e,r]of Object.entries(this.parts))Array.isArray(r)&&r.length==1?t[e.toLowerCase()]=r[0]:t[e.toLowerCase()]=Ot(r);return this.until&&(t.until=this.until.toString()),"wkst"in this&&this.wkst!==D.DEFAULT_WEEK_START&&(t.wkst=wt.numericDayToIcalDay(this.wkst)),t}toString(){let t="FREQ="+this.freq;this.count&&(t+=";COUNT="+this.count),this.interval>1&&(t+=";INTERVAL="+this.interval);for(let[e,r]of Object.entries(this.parts))t+=";"+e+"="+r;return this.until&&(t+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==D.DEFAULT_WEEK_START&&(t+=";WKST="+wt.numericDayToIcalDay(this.wkst)),t}};function dt(i,t,e,r){let n=r;if(r[0]==="+"&&(n=r.slice(1)),n=j(n),t!==void 0&&r<t)throw new Error(i+': invalid value "'+r+'" must be > '+t);if(e!==void 0&&r>e)throw new Error(i+': invalid value "'+r+'" must be < '+t);return n}var re={FREQ:function(i,t,e){if(Oe.indexOf(i)!==-1)t.freq=i;else throw new Error('invalid frequency "'+i+'" expected: "'+Oe.join(", ")+'"')},COUNT:function(i,t,e){t.count=j(i)},INTERVAL:function(i,t,e){t.interval=j(i),t.interval<1&&(t.interval=1)},UNTIL:function(i,t,e){i.length>10?t.until=I.icalendar.value["date-time"].fromICAL(i):t.until=I.icalendar.value.date.fromICAL(i),e||(t.until=D.fromString(t.until))},WKST:function(i,t,e){if(ti.test(i))t.wkst=ut.icalDayToNumericDay(i);else throw new Error('invalid WKST value "'+i+'"')}},ne={BYSECOND:dt.bind(void 0,"BYSECOND",0,60),BYMINUTE:dt.bind(void 0,"BYMINUTE",0,59),BYHOUR:dt.bind(void 0,"BYHOUR",0,23),BYDAY:function(i){if(ei.test(i))return i;throw new Error('invalid BYDAY value "'+i+'"')},BYMONTHDAY:dt.bind(void 0,"BYMONTHDAY",-31,31),BYYEARDAY:dt.bind(void 0,"BYYEARDAY",-366,366),BYWEEKNO:dt.bind(void 0,"BYWEEKNO",-53,53),BYMONTH:dt.bind(void 0,"BYMONTH",1,12),BYSETPOS:dt.bind(void 0,"BYSETPOS",-366,366)},ri=/\\\\|\\;|\\,|\\[Nn]/g,ni=/\\|;|,|\n/g,Ae=/\\\\|\\,|\\[Nn]/g,ve=/\\|,|\n/g;function se(i,t){return{matches:/.*/,fromICAL:function(e,r){return ai(e,i,r)},toICAL:function(e,r){let n=t;return r&&(n=new RegExp(n.source+"|"+r,n.flags)),e.replace(n,function(s){switch(s){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case`
4
+ `:return"\\n";default:return s}})}}}var S={defaultType:"text"},Lt={defaultType:"text",multiValue:","},jt={defaultType:"text",structuredValue:";"},Wt={defaultType:"integer"},Ft={defaultType:"date-time",allowedTypes:["date-time","date"]},Vt={defaultType:"date-time"},X={defaultType:"uri"},Ee={defaultType:"utc-offset"},we={defaultType:"recur"},be={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function si(i){switch(i){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return`
5
+ `;default:return i}}function ai(i,t,e){return i.indexOf("\\")===-1?i:(e&&(t=new RegExp(t.source+"|\\\\"+e,t.flags)),i.replace(t,si))}var ae={categories:Lt,url:X,version:S,uid:S},oe={boolean:{values:["TRUE","FALSE"],fromICAL:function(i){switch(i){case"TRUE":return!0;case"FALSE":return!1;default:return!1}},toICAL:function(i){return i?"TRUE":"FALSE"}},float:{matches:/^[+-]?\d+\.\d+$/,fromICAL:function(i){let t=parseFloat(i);return Ct(t)?0:t},toICAL:function(i){return String(i)}},integer:{fromICAL:function(i){let t=parseInt(i);return Ct(t)?0:t},toICAL:function(i){return String(i)}},"utc-offset":{toICAL:function(i){return i.length<7?i.slice(0,3)+i.slice(4,6):i.slice(0,3)+i.slice(4,6)+i.slice(7,9)},fromICAL:function(i){return i.length<6?i.slice(0,3)+":"+i.slice(3,5):i.slice(0,3)+":"+i.slice(3,5)+":"+i.slice(5,7)},decorate:function(i){return vt.fromString(i)},undecorate:function(i){return i.toString()}}},oi={cutype:{values:["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"],allowXName:!0,allowIanaToken:!0},"delegated-from":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},"delegated-to":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},encoding:{values:["8BIT","BASE64"]},fbtype:{values:["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],allowXName:!0,allowIanaToken:!0},member:{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},partstat:{values:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"],allowXName:!0,allowIanaToken:!0},range:{values:["THISANDFUTURE"]},related:{values:["START","END"]},reltype:{values:["PARENT","CHILD","SIBLING"],allowXName:!0,allowIanaToken:!0},role:{values:["REQ-PARTICIPANT","CHAIR","OPT-PARTICIPANT","NON-PARTICIPANT"],allowXName:!0,allowIanaToken:!0},rsvp:{values:["TRUE","FALSE"]},"sent-by":{valueType:"cal-address"},tzid:{matches:/^\//},value:{values:["binary","boolean","cal-address","date","date-time","duration","float","integer","period","recur","text","time","uri","utc-offset"],allowXName:!0,allowIanaToken:!0}},P=At(oe,{text:se(ri,ni),uri:{},binary:{decorate:function(i){return _e.fromString(i)},undecorate:function(i){return i.toString()}},"cal-address":{},date:{decorate:function(i,t){return I.strict?D.fromDateString(i,t):D.fromString(i,t)},undecorate:function(i){return i.toString()},fromICAL:function(i){return!I.strict&&i.length>=15?P["date-time"].fromICAL(i):i.slice(0,4)+"-"+i.slice(4,6)+"-"+i.slice(6,8)},toICAL:function(i){let t=i.length;return t==10?i.slice(0,4)+i.slice(5,7)+i.slice(8,10):t>=19?P["date-time"].toICAL(i):i}},"date-time":{fromICAL:function(i){if(!I.strict&&i.length==8)return P.date.fromICAL(i);{let t=i.slice(0,4)+"-"+i.slice(4,6)+"-"+i.slice(6,8)+"T"+i.slice(9,11)+":"+i.slice(11,13)+":"+i.slice(13,15);return i[15]&&i[15]==="Z"&&(t+="Z"),t}},toICAL:function(i){let t=i.length;if(t==10&&!I.strict)return P.date.toICAL(i);if(t>=19){let e=i.slice(0,4)+i.slice(5,7)+i.slice(8,13)+i.slice(14,16)+i.slice(17,19);return i[19]&&i[19]==="Z"&&(e+="Z"),e}else return i},decorate:function(i,t){return I.strict?D.fromDateTimeString(i,t):D.fromString(i,t)},undecorate:function(i){return i.toString()}},duration:{decorate:function(i){return st.fromString(i)},undecorate:function(i){return i.toString()}},period:{fromICAL:function(i){let t=i.split("/");return t[0]=P["date-time"].fromICAL(t[0]),st.isValueString(t[1])||(t[1]=P["date-time"].fromICAL(t[1])),t},toICAL:function(i){return i=i.slice(),!I.strict&&i[0].length==10?i[0]=P.date.toICAL(i[0]):i[0]=P["date-time"].toICAL(i[0]),st.isValueString(i[1])||(!I.strict&&i[1].length==10?i[1]=P.date.toICAL(i[1]):i[1]=P["date-time"].toICAL(i[1])),i.join("/")},decorate:function(i,t){return te.fromJSON(i,t,!I.strict)},undecorate:function(i){return i.toJSON()}},recur:{fromICAL:function(i){return ut._stringToData(i,!0)},toICAL:function(i){let t="";for(let[e,r]of Object.entries(i))e=="until"?r.length>10?r=P["date-time"].toICAL(r):r=P.date.toICAL(r):e=="wkst"?typeof r=="number"&&(r=ut.numericDayToIcalDay(r)):Array.isArray(r)&&(r=r.join(",")),t+=e.toUpperCase()+"="+r+";";return t.slice(0,Math.max(0,t.length-1))},decorate:function(t){return ut.fromData(t)},undecorate:function(i){return i.toJSON()}},time:{fromICAL:function(i){if(i.length<6)return i;let t=i.slice(0,2)+":"+i.slice(2,4)+":"+i.slice(4,6);return i[6]==="Z"&&(t+="Z"),t},toICAL:function(i){if(i.length<8)return i;let t=i.slice(0,2)+i.slice(3,5)+i.slice(6,8);return i[8]==="Z"&&(t+="Z"),t}}}),li=At(ae,{action:S,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:S,class:S,comment:S,completed:Vt,contact:S,created:Vt,description:S,dtend:Ft,dtstamp:Vt,dtstart:Ft,due:Ft,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:we,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":Vt,location:S,method:S,organizer:{defaultType:"cal-address"},"percent-complete":Wt,priority:Wt,prodid:S,"related-to":S,repeat:Wt,rdate:{defaultType:"date-time",allowedTypes:["date-time","date","period"],multiValue:",",detectType:function(i){return i.indexOf("/")!==-1?"period":i.indexOf("T")===-1?"date":"date-time"}},"recurrence-id":Ft,resources:Lt,"request-status":jt,rrule:we,sequence:Wt,status:S,summary:S,transp:S,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:Ee,tzoffsetto:Ee,tzurl:X,tzid:S,tzname:S}),G=At(oe,{text:se(Ae,ve),uri:se(Ae,ve),date:{decorate:function(i){return Mt.fromDateAndOrTimeString(i,"date")},undecorate:function(i){return i.toString()},fromICAL:function(i){return i.length==8?P.date.fromICAL(i):i[0]=="-"&&i.length==6?i.slice(0,4)+"-"+i.slice(4):i},toICAL:function(i){return i.length==10?P.date.toICAL(i):i[0]=="-"&&i.length==7?i.slice(0,4)+i.slice(5):i}},time:{decorate:function(i){return Mt.fromDateAndOrTimeString("T"+i,"time")},undecorate:function(i){return i.toString()},fromICAL:function(i){let t=G.time._splitZone(i,!0),e=t[0],r=t[1];return r.length==6?r=r.slice(0,2)+":"+r.slice(2,4)+":"+r.slice(4,6):r.length==4&&r[0]!="-"?r=r.slice(0,2)+":"+r.slice(2,4):r.length==5&&(r=r.slice(0,3)+":"+r.slice(3,5)),e.length==5&&(e[0]=="-"||e[0]=="+")&&(e=e.slice(0,3)+":"+e.slice(3)),r+e},toICAL:function(i){let t=G.time._splitZone(i),e=t[0],r=t[1];return r.length==8?r=r.slice(0,2)+r.slice(3,5)+r.slice(6,8):r.length==5&&r[0]!="-"?r=r.slice(0,2)+r.slice(3,5):r.length==6&&(r=r.slice(0,3)+r.slice(4,6)),e.length==6&&(e[0]=="-"||e[0]=="+")&&(e=e.slice(0,3)+e.slice(4)),r+e},_splitZone:function(i,t){let e=i.length-1,r=i.length-(t?5:6),n=i[r],s,a;return i[e]=="Z"?(s=i[e],a=i.slice(0,Math.max(0,e))):i.length>6&&(n=="-"||n=="+")?(s=i.slice(r),a=i.slice(0,Math.max(0,r))):(s="",a=i),[s,a]}},"date-time":{decorate:function(i){return Mt.fromDateAndOrTimeString(i,"date-time")},undecorate:function(i){return i.toString()},fromICAL:function(i){return G["date-and-or-time"].fromICAL(i)},toICAL:function(i){return G["date-and-or-time"].toICAL(i)}},"date-and-or-time":{decorate:function(i){return Mt.fromDateAndOrTimeString(i,"date-and-or-time")},undecorate:function(i){return i.toString()},fromICAL:function(i){let t=i.split("T");return(t[0]?G.date.fromICAL(t[0]):"")+(t[1]?"T"+G.time.fromICAL(t[1]):"")},toICAL:function(i){let t=i.split("T");return G.date.toICAL(t[0])+(t[1]?"T"+G.time.toICAL(t[1]):"")}},timestamp:P["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/},"phone-number":{fromICAL:function(i){return Array.from(i).filter(function(t){return t==="\\"?void 0:t}).join("")},toICAL:function(i){return Array.from(i).map(function(t){return t===","||t===";"?"\\"+t:t}).join("")}}}),ui={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","time","date-time","date-and-or-time","timestamp","boolean","integer","float","utc-offset","language-tag"],allowXName:!0,allowIanaToken:!0}},hi=At(ae,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:be,bday:be,caladruri:X,caluri:X,clientpidmap:jt,email:S,fburl:X,fn:S,gender:jt,geo:X,impp:X,key:X,kind:S,lang:{defaultType:"language-tag"},logo:X,member:X,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:Lt,note:S,org:{defaultType:"text",structuredValue:";"},photo:X,related:X,rev:{defaultType:"timestamp"},role:S,sound:X,source:X,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:S,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:S}),ci=At(oe,{binary:P.binary,date:G.date,"date-time":G["date-time"],"phone-number":G["phone-number"],uri:P.uri,text:G.text,time:P.time,vcard:P.text,"utc-offset":{toICAL:function(i){return i.slice(0,7)},fromICAL:function(i){return i.slice(0,7)},decorate:function(i){return vt.fromString(i)},undecorate:function(i){return i.toString()}}}),fi={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","date-time","phone-number","time","boolean","integer","float","utc-offset","vcard","binary"],allowXName:!0,allowIanaToken:!0}},di=At(ae,{fn:S,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:Lt,photo:{defaultType:"binary",allowedTypes:["binary","uri"]},bday:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(i){return i.indexOf("T")===-1?"date":"date-time"}},adr:{defaultType:"text",structuredValue:";",multiValue:","},label:S,tel:{defaultType:"phone-number"},email:S,mailer:S,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:S,role:S,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:jt,note:Lt,prodid:S,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(i){return i.indexOf("T")===-1?"date":"date-time"}},"sort-string":S,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:S,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),ht={name:"ical",value:P,param:oi,property:li,propertyGroups:!1},Se={name:"vcard4",value:G,param:ui,property:hi,propertyGroups:!0},Ne={name:"vcard3",value:ci,param:fi,property:di,propertyGroups:!0},I={strict:!0,defaultSet:ht,defaultType:"unknown",components:{vcard:Se,vcard3:Ne,vevent:ht,vtodo:ht,vjournal:ht,valarm:ht,vtimezone:ht,daylight:ht,standard:ht},icalendar:ht,vcard:Se,vcard3:Ne,getDesignSet:function(i){return i&&i in I.components?I.components[i]:I.defaultSet}},qt=`\r
6
+ `,Ie="unknown",mi={'"':"^'","\n":"^n","^":"^^"};function k(i){typeof i[0]=="string"&&(i=[i]);let t=0,e=i.length,r="";for(;t<e;t++)r+=k.component(i[t])+qt;return r}k.component=function(i,t){let e=i[0].toUpperCase(),r="BEGIN:"+e+qt,n=i[1],s=0,a=n.length,l=i[0];for(l==="vcard"&&i[1].length>0&&!(i[1][0][0]==="version"&&i[1][0][3]==="4.0")&&(l="vcard3"),t=t||I.getDesignSet(l);s<a;s++)r+=k.property(n[s],t)+qt;let o=i[2]||[],h=0,f=o.length;for(;h<f;h++)r+=k.component(o[h],t)+qt;return r+="END:"+e,r},k.property=function(i,t,e){let r=i[0].toUpperCase(),n=i[0],s=i[1];t||(t=I.defaultSet);let a=s.group,l;t.propertyGroups&&a?l=a.toUpperCase()+"."+r:l=r;for(let[m,y]of Object.entries(s)){if(t.propertyGroups&&m=="group")continue;let u=t.param[m],_=u&&u.multiValue;_&&Array.isArray(y)?(y=y.map(function(w){return w=k._rfc6868Unescape(w),w=k.paramPropertyValue(w,u.multiValueSeparateDQuote),w}),y=k.multiValue(y,_,"unknown",null,t)):(y=k._rfc6868Unescape(y),y=k.paramPropertyValue(y)),l+=";"+m.toUpperCase()+"="+y}if(i.length===3)return l+":";let o=i[2],h,f=!1,c=!1,d=!1;return n in t.property?(h=t.property[n],"multiValue"in h&&(f=h.multiValue),"structuredValue"in h&&Array.isArray(i[3])&&(c=h.structuredValue),"defaultType"in h?o===h.defaultType&&(d=!0):o===Ie&&(d=!0)):o===Ie&&(d=!0),d||(l+=";VALUE="+o.toUpperCase()),l+=":",f&&c?l+=k.multiValue(i[3],c,o,f,t,c):f?l+=k.multiValue(i.slice(3),f,o,null,t,!1):c?l+=k.multiValue(i[3],c,o,null,t,c):l+=k.value(i[3],o,t,!1),e?l:De(l)},k.paramPropertyValue=function(i,t){return!t&&i.indexOf(",")===-1&&i.indexOf(":")===-1&&i.indexOf(";")===-1?i:'"'+i+'"'},k.multiValue=function(i,t,e,r,n,s){let a="",l=i.length,o=0;for(;o<l;o++)r&&Array.isArray(i[o])?a+=k.multiValue(i[o],r,e,null,n,s):a+=k.value(i[o],e,n,s),o!==l-1&&(a+=t);return a},k.value=function(i,t,e,r){return t in e.value&&"toICAL"in e.value[t]?e.value[t].toICAL(i,r):i},k._rfc6868Unescape=function(i){return i.replace(/[\n^"]/g,function(t){return mi[t]})};var xe=0,Kt=1,Zt=2,mt=3,zt=class He{static fromString(t,e){return new He(N.property(t,e))}constructor(t,e){this._parent=e||null,typeof t=="string"?(this.jCal=[t,{},I.defaultType],this.jCal[Zt]=this.getDefaultType()):this.jCal=t,this._updateType()}get type(){return this.jCal[Zt]}get name(){return this.jCal[xe]}get parent(){return this._parent}set parent(t){let e=!this._parent||t&&t._designSet!=this._parent._designSet;this._parent=t,this.type==I.defaultType&&e&&(this.jCal[Zt]=this.getDefaultType(),this._updateType())}get _designSet(){return this.parent?this.parent._designSet:I.defaultSet}_updateType(){let t=this._designSet;this.type in t.value&&("decorate"in t.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in t.property&&(this.isMultiValue="multiValue"in t.property[this.name],this.isStructuredValue="structuredValue"in t.property[this.name]))}_hydrateValue(t){return this._values&&this._values[t]?this._values[t]:this.jCal.length<=mt+t?null:this.isDecorated?(this._values||(this._values=[]),this._values[t]=this._decorate(this.jCal[mt+t])):this.jCal[mt+t]}_decorate(t){return this._designSet.value[this.type].decorate(t,this)}_undecorate(t){return this._designSet.value[this.type].undecorate(t,this)}_setDecoratedValue(t,e){this._values||(this._values=[]),typeof t=="object"&&"icaltype"in t?(this.jCal[mt+e]=this._undecorate(t),this._values[e]=t):(this.jCal[mt+e]=t,this._values[e]=this._decorate(t))}getParameter(t){if(t in this.jCal[Kt])return this.jCal[Kt][t]}getFirstParameter(t){let e=this.getParameter(t);return Array.isArray(e)?e[0]:e}setParameter(t,e){let r=t.toLowerCase();typeof e=="string"&&r in this._designSet.param&&"multiValue"in this._designSet.param[r]&&(e=[e]),this.jCal[Kt][t]=e}removeParameter(t){delete this.jCal[Kt][t]}getDefaultType(){let t=this.jCal[xe],e=this._designSet;if(t in e.property){let r=e.property[t];if("defaultType"in r)return r.defaultType}return I.defaultType}resetType(t){this.removeAllValues(),this.jCal[Zt]=t,this._updateType()}getFirstValue(){return this._hydrateValue(0)}getValues(){let t=this.jCal.length-mt;if(t<1)return[];let e=0,r=[];for(;e<t;e++)r[e]=this._hydrateValue(e);return r}removeAllValues(){this._values&&(this._values.length=0),this.jCal.length=3}setValues(t){if(!this.isMultiValue)throw new Error(this.name+`: does not not support mulitValue.
7
+ override isMultiValue`);let e=t.length,r=0;if(this.removeAllValues(),e>0&&typeof t[0]=="object"&&"icaltype"in t[0]&&this.resetType(t[0].icaltype),this.isDecorated)for(;r<e;r++)this._setDecoratedValue(t[r],r);else for(;r<e;r++)this.jCal[mt+r]=t[r]}setValue(t){this.removeAllValues(),typeof t=="object"&&"icaltype"in t&&this.resetType(t.icaltype),this.isDecorated?this._setDecoratedValue(t,0):this.jCal[mt]=t}toJSON(){return this.jCal}toICALString(){return k.property(this.jCal,this._designSet,!0)}},yt=0,at=1,pt=2,yi=0,pi=3,ot=class de{static fromString(t){return new de(N.component(t))}constructor(t,e){typeof t=="string"&&(t=[t,[],[]]),this.jCal=t,this.parent=e||null,!this.parent&&this.name==="vcalendar"&&(this._timezoneCache=new Map)}_hydratedPropertyCount=0;_hydratedComponentCount=0;_timezoneCache=null;_components=null;_properties=null;get name(){return this.jCal[yt]}get _designSet(){let t=this.parent&&this.parent._designSet;if(!t&&this.name=="vcard"){let e=this.jCal[at]?.[0];if(e&&e[yi]=="version"&&e[pi]=="3.0")return I.getDesignSet("vcard3")}return t||I.getDesignSet(this.name)}_hydrateComponent(t){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[t])return this._components[t];let e=new de(this.jCal[pt][t],this);return this._hydratedComponentCount++,this._components[t]=e}_hydrateProperty(t){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[t])return this._properties[t];let e=new zt(this.jCal[at][t],this);return this._hydratedPropertyCount++,this._properties[t]=e}getFirstSubcomponent(t){if(t){let e=0,r=this.jCal[pt],n=r.length;for(;e<n;e++)if(r[e][yt]===t)return this._hydrateComponent(e)}else if(this.jCal[pt].length)return this._hydrateComponent(0);return null}getAllSubcomponents(t){let e=this.jCal[pt].length,r=0;if(t){let n=this.jCal[pt],s=[];for(;r<e;r++)t===n[r][yt]&&s.push(this._hydrateComponent(r));return s}else{if(!this._components||this._hydratedComponentCount!==e)for(;r<e;r++)this._hydrateComponent(r);return this._components||[]}}hasProperty(t){let e=this.jCal[at],r=e.length,n=0;for(;n<r;n++)if(e[n][yt]===t)return!0;return!1}getFirstProperty(t){if(t){let e=0,r=this.jCal[at],n=r.length;for(;e<n;e++)if(r[e][yt]===t)return this._hydrateProperty(e)}else if(this.jCal[at].length)return this._hydrateProperty(0);return null}getFirstPropertyValue(t){let e=this.getFirstProperty(t);return e?e.getFirstValue():null}getAllProperties(t){let e=this.jCal[at].length,r=0;if(t){let n=this.jCal[at],s=[];for(;r<e;r++)t===n[r][yt]&&s.push(this._hydrateProperty(r));return s}else{if(!this._properties||this._hydratedPropertyCount!==e)for(;r<e;r++)this._hydrateProperty(r);return this._properties||[]}}_removeObjectByIndex(t,e,r){if(e=e||[],e[r]){let n=e[r];"parent"in n&&(n.parent=null)}e.splice(r,1),this.jCal[t].splice(r,1)}_removeObject(t,e,r){let n=0,s=this.jCal[t],a=s.length,l=this[e];if(typeof r=="string"){for(;n<a;n++)if(s[n][yt]===r)return this._removeObjectByIndex(t,l,n),!0}else if(l){for(;n<a;n++)if(l[n]&&l[n]===r)return this._removeObjectByIndex(t,l,n),!0}return!1}_removeAllObjects(t,e,r){let n=this[e],s=this.jCal[t],a=s.length-1;for(;a>=0;a--)(!r||s[a][yt]===r)&&this._removeObjectByIndex(t,n,a)}addSubcomponent(t){this._components||(this._components=[],this._hydratedComponentCount=0),t.parent&&t.parent.removeSubcomponent(t);let e=this.jCal[pt].push(t.jCal);return this._components[e-1]=t,this._hydratedComponentCount++,t.parent=this,t}removeSubcomponent(t){let e=this._removeObject(pt,"_components",t);return e&&this._hydratedComponentCount--,e}removeAllSubcomponents(t){let e=this._removeAllObjects(pt,"_components",t);return this._hydratedComponentCount=0,e}addProperty(t){if(!(t instanceof zt))throw new TypeError("must be instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),t.parent&&t.parent.removeProperty(t);let e=this.jCal[at].push(t.jCal);return this._properties[e-1]=t,this._hydratedPropertyCount++,t.parent=this,t}addPropertyWithValue(t,e){let r=new zt(t);return r.setValue(e),this.addProperty(r),r}updatePropertyWithValue(t,e){let r=this.getFirstProperty(t);return r?r.setValue(e):r=this.addPropertyWithValue(t,e),r}removeProperty(t){let e=this._removeObject(at,"_properties",t);return e&&this._hydratedPropertyCount--,e}removeAllProperties(t){let e=this._removeAllObjects(at,"_properties",t);return this._hydratedPropertyCount=0,e}toJSON(){return this.jCal}toString(){return k.component(this.jCal,this._designSet)}getTimeZoneByID(t){if(this.parent)return this.parent.getTimeZoneByID(t);if(!this._timezoneCache)return null;if(this._timezoneCache.has(t))return this._timezoneCache.get(t);const e=this.getAllSubcomponents("vtimezone");for(const r of e)if(r.getFirstProperty("tzid").getFirstValue()===t){const n=new x({component:r,tzid:t});return this._timezoneCache.set(t,n),n}return null}},Ce=class{constructor(i){this.ruleDates=[],this.exDates=[],this.fromData(i)}complete=!1;ruleIterators=null;ruleDates=null;exDates=null;ruleDateInc=0;exDateInc=0;exDate=null;ruleDate=null;dtstart=null;last=null;fromData(i){let t=lt(i.dtstart,D);if(t)this.dtstart=t;else throw new Error(".dtstart (ICAL.Time) must be given");if(i.component)this._init(i.component);else{if(this.last=lt(i.last,D)||t.clone(),!i.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=i.ruleIterators.map(function(e){return lt(e,ie)}),this.ruleDateInc=i.ruleDateInc,this.exDateInc=i.exDateInc,i.ruleDates&&(this.ruleDates=i.ruleDates.map(e=>lt(e,D)),this.ruleDate=this.ruleDates[this.ruleDateInc]),i.exDates&&(this.exDates=i.exDates.map(e=>lt(e,D)),this.exDate=this.exDates[this.exDateInc]),typeof i.complete<"u"&&(this.complete=i.complete)}}_compare_special(i,t){return!i.isDate&&t.isDate?new D({year:i.year,month:i.month,day:i.day}).compare(t):i.compare(t)}next(){let i,t,e,r=500,n=0;for(;;){if(n++>r)throw new Error("max tries have occurred, rule may be impossible to fulfill.");if(t=this.ruleDate,i=this._nextRecurrenceIter(this.last),!t&&!i){this.complete=!0;break}if((!t||i&&t.compare(i.last)>0)&&(t=i.last.clone(),i.next()),this.ruleDate===t&&this._nextRuleDay(),this.last=t,this.exDate&&(e=this._compare_special(this.last,this.exDate),e>0&&this._nextExDay(),e===0)){this._nextExDay();continue}return this.last}}toJSON(){function i(e){return e.toJSON()}let t=Object.create(null);return t.ruleIterators=this.ruleIterators.map(i),this.ruleDates&&(t.ruleDates=this.ruleDates.map(i)),this.exDates&&(t.exDates=this.exDates.map(i)),t.ruleDateInc=this.ruleDateInc,t.exDateInc=this.exDateInc,t.last=this.last.toJSON(),t.dtstart=this.dtstart.toJSON(),t.complete=this.complete,t}_extractDates(i,t){let e=[],r=i.getAllProperties(t);for(let n=0,s=r.length;n<s;n++)for(let a of r[n].getValues()){let l=Yt(e,a,(o,h)=>o.compare(h));e.splice(l,0,a)}return e}_init(i){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!i.hasProperty("rdate")&&!i.hasProperty("rrule")&&!i.hasProperty("recurrence-id")){this.ruleDate=this.last.clone(),this.complete=!0;return}if(i.hasProperty("rdate")&&(this.ruleDates=this._extractDates(i,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=Yt(this.ruleDates,this.last,(t,e)=>t.compare(e)),this.ruleDate=this.ruleDates[this.ruleDateInc]),i.hasProperty("rrule")){let t=i.getAllProperties("rrule"),e=0,r=t.length,n,s;for(;e<r;e++)n=t[e].getFirstValue(),s=n.iterator(this.dtstart),this.ruleIterators.push(s),s.next()}i.hasProperty("exdate")&&(this.exDates=this._extractDates(i,"exdate"),this.exDateInc=Yt(this.exDates,this.last,this._compare_special),this.exDate=this.exDates[this.exDateInc])}_nextExDay(){this.exDate=this.exDates[++this.exDateInc]}_nextRuleDay(){this.ruleDate=this.ruleDates[++this.ruleDateInc]}_nextRecurrenceIter(){let i=this.ruleIterators;if(i.length===0)return null;let t=i.length,e,r,n=0,s;for(;n<t;n++){if(e=i[n],r=e.last,e.completed){t--,n!==0&&n--,i.splice(n,1);continue}(!s||s.last.compare(r)>0)&&(s=e)}return s}},Me=class me{constructor(t,e){t instanceof ot||(e=t,t=null),t?this.component=t:this.component=new ot("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],e&&e.strictExceptions&&(this.strictExceptions=e.strictExceptions),e&&e.exceptions?e.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach(function(r){r.hasProperty("recurrence-id")&&this.relateException(r)},this)}static THISANDFUTURE="THISANDFUTURE";exceptions=null;strictExceptions=!1;relateException(t){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(t instanceof ot&&(t=new me(t)),this.strictExceptions&&t.uid!==this.uid)throw new Error("attempted to relate unrelated exception");let e=t.recurrenceId.toString();if(this.exceptions[e]=t,t.modifiesFuture()){let r=[t.recurrenceId.toUnixTime(),e],n=Yt(this.rangeExceptions,r,Le);this.rangeExceptions.splice(n,0,r)}}modifiesFuture(){return this.component.hasProperty("recurrence-id")?this.component.getFirstProperty("recurrence-id").getParameter("range")===me.THISANDFUTURE:!1}findRangeException(t){if(!this.rangeExceptions.length)return null;let e=t.toUnixTime(),r=Yt(this.rangeExceptions,[e],Le);if(r-=1,r<0)return null;let n=this.rangeExceptions[r];return e<n[0]?null:n[1]}getOccurrenceDetails(t){let e=t.toString(),r=t.convertToZone(x.utcTimezone).toString(),n,s={recurrenceId:t};if(e in this.exceptions)n=s.item=this.exceptions[e],s.startDate=n.startDate,s.endDate=n.endDate,s.item=n;else if(r in this.exceptions)n=this.exceptions[r],s.startDate=n.startDate,s.endDate=n.endDate,s.item=n;else{let a=this.findRangeException(t),l;if(a){let o=this.exceptions[a];s.item=o;let h=this._rangeExceptionCache[a];if(!h){let c=o.recurrenceId.clone(),d=o.startDate.clone();c.zone=d.zone,h=d.subtractDate(c),this._rangeExceptionCache[a]=h}let f=t.clone();f.zone=o.startDate.zone,f.addDuration(h),l=f.clone(),l.addDuration(o.duration),s.startDate=f,s.endDate=l}else l=t.clone(),l.addDuration(this.duration),s.endDate=l,s.startDate=t,s.item=this}return s}iterator(t){return new Ce({component:this.component,dtstart:t||this.startDate})}isRecurring(){let t=this.component;return t.hasProperty("rrule")||t.hasProperty("rdate")}isRecurrenceException(){return this.component.hasProperty("recurrence-id")}getRecurrenceTypes(){let t=this.component.getAllProperties("rrule"),e=0,r=t.length,n=Object.create(null);for(;e<r;e++){let s=t[e].getFirstValue();n[s.freq]=!0}return n}get uid(){return this._firstProp("uid")}set uid(t){this._setProp("uid",t)}get startDate(){return this._firstProp("dtstart")}set startDate(t){this._setTime("dtstart",t)}get endDate(){let t=this._firstProp("dtend");if(!t){let e=this._firstProp("duration");t=this.startDate.clone(),e?t.addDuration(e):t.isDate&&(t.day+=1)}return t}set endDate(t){this.component.hasProperty("duration")&&this.component.removeProperty("duration"),this._setTime("dtend",t)}get duration(){let t=this._firstProp("duration");return t||this.endDate.subtractDateTz(this.startDate)}set duration(t){this.component.hasProperty("dtend")&&this.component.removeProperty("dtend"),this._setProp("duration",t)}get location(){return this._firstProp("location")}set location(t){this._setProp("location",t)}get attendees(){return this.component.getAllProperties("attendee")}get summary(){return this._firstProp("summary")}set summary(t){this._setProp("summary",t)}get description(){return this._firstProp("description")}set description(t){this._setProp("description",t)}get color(){return this._firstProp("color")}set color(t){this._setProp("color",t)}get organizer(){return this._firstProp("organizer")}set organizer(t){this._setProp("organizer",t)}get sequence(){return this._firstProp("sequence")}set sequence(t){this._setProp("sequence",t)}get recurrenceId(){return this._firstProp("recurrence-id")}set recurrenceId(t){this._setTime("recurrence-id",t)}_setTime(t,e){let r=this.component.getFirstProperty(t);r||(r=new zt(t),this.component.addProperty(r)),e.zone===x.localTimezone||e.zone===x.utcTimezone?r.removeParameter("tzid"):r.setParameter("tzid",e.zone.tzid),r.setValue(e)}_setProp(t,e){this.component.updatePropertyWithValue(t,e)}_firstProp(t){return this.component.getFirstPropertyValue(t)}toString(){return this.component.toString()}};function Le(i,t){return i[0]>t[0]?1:t[0]>i[0]?-1:0}var gi=class{constructor(i){typeof i>"u"&&(i={});for(let[t,e]of Object.entries(i))this[t]=e}parseEvent=!0;parseTimezone=!0;oncomplete=function(){};onerror=function(i){};ontimezone=function(i){};onevent=function(i){};process(i){typeof i=="string"&&(i=N(i)),i instanceof ot||(i=new ot(i));let t=i.getAllSubcomponents(),e=0,r=t.length,n;for(;e<r;e++)switch(n=t[e],n.name){case"vtimezone":if(this.parseTimezone){let s=n.getFirstPropertyValue("tzid");s&&this.ontimezone(new x({tzid:s,component:n}))}break;case"vevent":this.parseEvent&&this.onevent(new Me(n));break;default:continue}this.oncomplete()}},ct={foldLength:75,debug:!1,newLineChar:`\r
8
+ `,Binary:_e,Component:ot,ComponentParser:gi,Duration:st,Event:Me,Period:te,Property:zt,Recur:ut,RecurExpansion:Ce,RecurIterator:ie,Time:D,Timezone:x,TimezoneService:Rt,UtcOffset:vt,VCardTime:Mt,parse:N,stringify:k,design:I,helpers:Ge},kt=Qt(ye(),1),_i=Qt(ge(),1),Ti=Qt(pe(),1);kt.default.extend(_i.default),kt.default.extend(Ti.default);var Di="YYYY-MM-DDTHH:mm:ss";function Yi(i){try{return new Intl.DateTimeFormat("en",{timeZone:i}),!0}catch{return!1}}function Oi(){return kt.default.tz.guess()}function Jt(i,t,e){return t===e?i:kt.default.tz(i,t).tz(e).format(Di)}function Ai(i,t){return(0,kt.default)(i.slice(0,10)).add(t,"day").format("YYYY-MM-DD")}var le={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const i in le)Object.freeze(le[i]);Object.freeze(le);var et=i=>String(i).padStart(2,"0");function Bt(i){if(i.isDate)return`${i.year}-${et(i.month)}-${et(i.day)}`;if(i.zone===ct.Timezone.localTimezone||i.zone?.tzid==="floating")return`${i.year}-${et(i.month)}-${et(i.day)}T${et(i.hour)}:${et(i.minute)}:${et(i.second)}`;const t=i.toJSDate();return`${t.getFullYear()}-${et(t.getMonth()+1)}-${et(t.getDate())}T${et(t.getHours())}:${et(t.getMinutes())}:${et(t.getSeconds())}`}function V(i){const t=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2}))?)?/.exec(i);if(!t)throw new Error(`[ical] not a date: ${i}`);const e=t[4]===void 0;return new ct.Time({year:+t[1],month:+t[2],day:+t[3],hour:e?0:+t[4],minute:e?0:+t[5],second:e?0:+(t[6]??0),isDate:e},ct.Timezone.localTimezone)}function vi(i){if(!(!i.start||!i.end))return V(i.end).toUnixTime()-V(i.start).toUnixTime()}function Ei(i,t,e){if(t===void 0)return;const r=V(i);return e?(r.fromUnixTime(r.toUnixTime()+t),Bt(r).slice(0,10)):(r.adjust(0,0,0,t),Bt(r))}function gt(i){const t=/^(\d{4}-\d{2}-\d{2})(?:T(\d{2})(?::(\d{2}))?)?/.exec(i);return t?t[2]===void 0?t[1]:`${t[1]}T${t[2]}:${t[3]??"00"}`:i}function ue(i,t,e,r){const n=V(i).toUnixTime(),s=t?V(t).toUnixTime():n+1;return n<V(r).toUnixTime()&&s>V(e).toUnixTime()}var wi=1e4;function ze(i,t,e){if(!t||e)return i;const r=/UNTIL=(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z/i.exec(i);if(!r)return i;const[n,s,a,l,o,h,f]=r,c=Jt(`${s}-${a}-${l}T${o}:${h}:${f}`,"UTC",t).replace(/[-:]/g,"");return i.replace(n,`UNTIL=${c}`)}function bi(i,t){const e=V(t),r=a=>i.allDay?a.slice(0,10):a,n=[];if(i.rrule){const a=ct.Recur.fromString(ze(i.rrule,i.tz,i.allDay)).iterator(V(i.start));for(let l=a.next(),o=0;l&&o<1e4&&!(l.compare(e)>=0);l=a.next(),o++)n.push(r(Bt(l)))}else n.push(i.start);for(const a of i.rdates??[])V(a).compare(e)<0&&n.push(r(a));const s=new Set;return n.filter(a=>{const l=gt(a);return s.has(l)?!1:(s.add(l),!0)}).sort((a,l)=>V(a).compare(V(l)))}function ke(i,t){const e=t.recurrenceId;return gt(t.tz&&i.tz&&t.tz!==i.tz&&e.includes("T")?Jt(e,t.tz,i.tz):e)}function Si(i,t,e,r){if(!i.start)return[];const n=(o,h,f)=>({uid:o.uid,recurrenceId:f,start:h,end:o.end&&o.start?Ei(h,vi(o),o.allDay):void 0,allDay:o.allDay});if(!i.rrule&&!i.rdates?.length)return ue(i.start,i.end,e,r)?[n(i,i.start)]:[];const s=new Map(t.filter(o=>o.recurrenceId).map(o=>[ke(i,o),o])),a=new Set(i.exdates.map(gt)),l=[];for(const o of bi(i,r)){const h=gt(o);if(a.has(h))continue;const f=s.get(h);if(f){f.start&&ue(f.start,f.end,e,r)&&l.push({...n(f,f.start,o),end:f.end});continue}const c=n(i,o);ue(c.start,c.end,e,r)&&l.push(c)}return l}var Ni=new Set(["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"]),Ii=new Set(["SECONDLY","MINUTELY"]);function xi(i){if(!i)return null;const t=Object.fromEntries(i.split(";").map(e=>e.split("=")));if(!t.FREQ)return"RRULE needs a FREQ";if(!Ni.has(t.FREQ))return`unknown FREQ '${t.FREQ}'`;if(Ii.has(t.FREQ))return`FREQ '${t.FREQ}' is finer than a calendar entry supports`;try{return ct.Recur.fromString(i),null}catch(e){return e.message}}function Ci(i){if(!i)return null;const t=Object.fromEntries(i.split(";").map(n=>n.split("="))),e=t.FREQ;if(!e||!["DAILY","WEEKLY","MONTHLY","YEARLY"].includes(e))return null;const r={freq:e,interval:Number(t.INTERVAL??1),days:(t.BYDAY??"").split(",").filter(Boolean).map(n=>n.slice(-2))};return t.COUNT&&(r.count=Number(t.COUNT)),t.UNTIL&&(r.until=`${t.UNTIL.slice(0,4)}-${t.UNTIL.slice(4,6)}-${t.UNTIL.slice(6,8)}`),r}var Be=1e4,he=(i,t)=>V(i).compare(V(t))<0,ce=i=>i.replace(/[-:]/g,"");function Mi(i,t){if(t.allDay)return ce(i.slice(0,10));const e=i.length===16?`${i}:00`:i.slice(0,19);return t.tz?`${ce(Jt(e,t.tz,"UTC"))}Z`:ce(e)}function Li(i){return i.split(";").filter(Boolean).map(t=>{const e=t.indexOf("=");return[t.slice(0,e).toUpperCase(),t.slice(e+1)]})}var Ue=i=>i.map(([t,e])=>`${t}=${e}`).join(";"),Pe=class extends Error{constructor(i){super(`[ical] '${i}' is not a generated instance of this series`),this.name="NotAnInstanceError"}},$e=class extends Error{constructor(i){super(`[ical] did not reach '${i}' within ${Be} generated instances`),this.name="SeriesTooLongError"}};function zi(i,t){const e=ct.Recur.fromString(ze(i.rrule,i.tz,i.allDay)).iterator(V(i.start)),r=u=>i.allDay?Bt(u).slice(0,10):Bt(u);let n=0,s,a=e.next();for(;a&&he(r(a),t);){if(n>=Be)throw new $e(t);n++,s=r(a),a=e.next()}if(!a||gt(r(a))!==gt(t))throw new Pe(t);if(n===0||!s)return null;const l=Li(i.rrule),o=[...l.filter(([u])=>u!=="COUNT"&&u!=="UNTIL"),["UNTIL",Mi(s,i)]],h=l.map(([u,_])=>u==="COUNT"?[u,String(Number(_)-n)]:[u,_]),f=u=>[u.filter(_=>he(_,t)),u.filter(_=>!he(_,t))],[c,d]=f(i.exdates),[m,y]=f(i.rdates);return{head:{rrule:Ue(o),exdates:c,rdates:m},tail:{rrule:Ue(h),exdates:d,rdates:y},consumed:n}}function ki(i,t,e){const r=e?t.slice(0,10):t,n=s=>e?s.slice(0,10):gt(s);return i.some(s=>n(s)===n(r))?i:[...i,r]}export{ye as _,wi as a,ke as c,Jt as d,Yi as f,pe as g,ge as h,zi as i,Ci as l,Ai as m,$e as n,Si as o,Oi as p,ki as r,gt as s,Pe as t,xi as u};