@abtnode/webapp 1.16.49-beta-20250812-040454-05aece54 → 1.16.49-beta-20250813-141500-f02b41b4

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 (204) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-Ct0VTXw3.js → AdapterDayjs-BjO18toV.js} +1 -1
  4. package/dist/assets/{Add-xsnJutmq.js → Add-D7FBmxz9.js} +1 -1
  5. package/dist/assets/ArrowDropDown-CGRxh8gD.js +1 -0
  6. package/dist/assets/{Autocomplete-B8LzLUZe.js → Autocomplete-Bj2hcqGf.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-BDzy2bld.js → Breadcrumbs-DwE835ah.js} +1 -1
  8. package/dist/assets/{ButtonGroup-2OIq-PXC.js → ButtonGroup-CToFieon.js} +1 -1
  9. package/dist/assets/{CSSTransition-RdSxc12C.js → CSSTransition-DG0p2bDc.js} +1 -1
  10. package/dist/assets/{CallMerge-DxChMRnd.js → CallMerge-DDDKPRmO.js} +1 -1
  11. package/dist/assets/{CardContent-D4kbuto4.js → CardContent-DXBw-i1o.js} +1 -1
  12. package/dist/assets/{ChevronLeft-KRG-fuZi.js → ChevronLeft-ClJUpIrX.js} +1 -1
  13. package/dist/assets/{ChevronRight-BmsIaZOg.js → ChevronRight-pNcrG18Z.js} +1 -1
  14. package/dist/assets/{Clear-ClOZ_U5s.js → Clear-wN_lM9i_.js} +1 -1
  15. package/dist/assets/{DeleteOutline-D00EO6C8.js → DeleteOutline-0Pjk0X04.js} +1 -1
  16. package/dist/assets/{Done-BTVTKjDk.js → Done-Bvnq95wW.js} +1 -1
  17. package/dist/assets/{Edit-DXMp4A9G.js → Edit-CVMHb0TK.js} +1 -1
  18. package/dist/assets/{ErrorOutline-C6AxgGOX.js → ErrorOutline-B2Mw_vUr.js} +1 -1
  19. package/dist/assets/{FilterList-TV3SGdIn.js → FilterList-agXhdRax.js} +1 -1
  20. package/dist/assets/{Google-BuIv4wD3.js → Google-CnSXuxho.js} +1 -1
  21. package/dist/assets/{HelpOutline-B7Ct-krn.js → HelpOutline-CNZGWmTU.js} +1 -1
  22. package/dist/assets/{Launch-BvjA_9TZ.js → Launch-CmazaRGZ.js} +1 -1
  23. package/dist/assets/{Link-Uzugo-zp.js → Link-DxObZpZX.js} +1 -1
  24. package/dist/assets/{ListItemButton-BBR__ebu.js → ListItemButton-Bk_S-24I.js} +1 -1
  25. package/dist/assets/{ListSubheader-CW_V4Z24.js → ListSubheader-CjL9mMf3.js} +1 -1
  26. package/dist/assets/{LoadingButton-Y_0rPcsy.js → LoadingButton-BTTKyDvk.js} +1 -1
  27. package/dist/assets/{MoreVert-DrzE5AUf.js → MoreVert-CpVaEDbL.js} +1 -1
  28. package/dist/assets/{OpenInNew-53sNi7bT.js → OpenInNew-zVEoRj2W.js} +1 -1
  29. package/dist/assets/{Refresh-02-oGzO6.js → Refresh-BZtduSQA.js} +1 -1
  30. package/dist/assets/{Search-7wyvQCyz.js → Search-C1hYBh2z.js} +1 -1
  31. package/dist/assets/{Slider-DACfJuWn.js → Slider-D41Gc6DM.js} +1 -1
  32. package/dist/assets/{Stepper-ZBVUR9pb.js → Stepper-Bax0qACN.js} +1 -1
  33. package/dist/assets/{Switch-D8Y_AkUP.js → Switch-BA5PH6p0.js} +1 -1
  34. package/dist/assets/{TableSearch-j7mUrdaA.js → TableSearch-BzANvfKC.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-CWiKD-9f.js → ToggleButtonGroup-BzxI_4Ka.js} +1 -1
  36. package/dist/assets/{Verified-COnwjqrJ.js → Verified-B9q95gmQ.js} +1 -1
  37. package/dist/assets/{VerifiedUser-DnX0aEPL.js → VerifiedUser-CPgjTUes.js} +1 -1
  38. package/dist/assets/{ViewList-_K538mHc.js → ViewList-CEZqTkZN.js} +1 -1
  39. package/dist/assets/{_createAggregator-Dt3Ih0i2.js → _createAggregator-6qCBlT2m.js} +1 -1
  40. package/dist/assets/{actions-DRuv-pyx.js → actions-CwHV7VOi.js} +1 -1
  41. package/dist/assets/{actions-Cxap2JOs.js → actions-Lc_gpmy_.js} +1 -1
  42. package/dist/assets/{agreement-DqRsm6CV.js → agreement-nMH2PwNa.js} +1 -1
  43. package/dist/assets/api-C4QD0LkR.js +1 -0
  44. package/dist/assets/{appearance-Bm7cllFQ.js → appearance-wME-EwFf.js} +1 -1
  45. package/dist/assets/{ar-BrkwppMS.js → ar-RVOyZ73G.js} +1 -1
  46. package/dist/assets/{audit-logs-ClrCXrBK.js → audit-logs-DQNniPIc.js} +1 -1
  47. package/dist/assets/{base-chart-vZbN8YRn.js → base-chart-DfzeqYgM.js} +1 -1
  48. package/dist/assets/{blocklet-CSWEnHbv.js → blocklet-CXBJcwmD.js} +1 -1
  49. package/dist/assets/chain-0epXNZTv.js +6 -0
  50. package/dist/assets/{click-to-copy-B94Iq4_S.js → click-to-copy-CCt7i81W.js} +1 -1
  51. package/dist/assets/client-BriPpb0D.js +1 -0
  52. package/dist/assets/cloneDeep-DZJaLQYA.js +1 -0
  53. package/dist/assets/{collapse-Dezh2CAn.js → collapse-UWItJur2.js} +1 -1
  54. package/dist/assets/{config-navigation-BXm4eTU9.js → config-navigation-D7hjrTsx.js} +3 -3
  55. package/dist/assets/{connect-to-Dyd-KizX.js → connect-to-DUMdqErZ.js} +1 -1
  56. package/dist/assets/{cssMode-B6wVTcZ6.js → cssMode-OQuv2wel.js} +1 -1
  57. package/dist/assets/{de-DjoPhrWS.js → de-BXIXPwxt.js} +1 -1
  58. package/dist/assets/{delete-confirm-BzjquUay.js → delete-confirm-i_RblorR.js} +1 -1
  59. package/dist/assets/{depsEqual-DIBRq7Fr.js → depsEqual-CLLXOjvx.js} +1 -1
  60. package/dist/assets/{detail-DFtAGu9W.js → detail-SmxG2E5W.js} +3 -3
  61. package/dist/assets/{domains-BKhbtqSe.js → domains-Bxk0d7jT.js} +2 -2
  62. package/dist/assets/{download-B60HlzLV.js → download-DtuXp01T.js} +12 -12
  63. package/dist/assets/{edit.svg-Ad7pR1Ko.js → edit.svg-BhSUheUT.js} +1 -1
  64. package/dist/assets/emotion-cache.browser.esm-BE8-ertk.js +1 -0
  65. package/dist/assets/engine-ByaR-FMJ.js +1 -0
  66. package/dist/assets/{es-BLM6BW2Z.js → es-DJvu101w.js} +1 -1
  67. package/dist/assets/{fr-DM9fauTH.js → fr-D9eGKSnG.js} +1 -1
  68. package/dist/assets/{freemarker2-sCWMHP7f.js → freemarker2-CSRF4Izm.js} +1 -1
  69. package/dist/assets/{get-safe-url-CXm2qbfD.js → get-safe-url-CO9heLC_.js} +1 -1
  70. package/dist/assets/getValidReactChildren-yMK1JaZz.js +1 -0
  71. package/dist/assets/{graphqlMode-NDLjYpwF.js → graphqlMode-Y3Syqq4-.js} +2 -2
  72. package/dist/assets/{handlebars-D5m3wM2h.js → handlebars-C5wgXGwl.js} +1 -1
  73. package/dist/assets/{hi-DgD0hgry.js → hi-CSHwUi_Z.js} +1 -1
  74. package/dist/assets/{html-CnanFkII.js → html-_LQ37iNF.js} +1 -1
  75. package/dist/assets/{html-title-Bv34eYvs.js → html-title-D7IA5_Dw.js} +1 -1
  76. package/dist/assets/{htmlMode-Dti9PEXK.js → htmlMode-CYNIx1xO.js} +1 -1
  77. package/dist/assets/{id-DRypmlkS.js → id-Dc-m_i57.js} +1 -1
  78. package/dist/assets/{iframe-B3SxZf1n.js → iframe-Cmb-t7Zd.js} +1 -1
  79. package/dist/assets/{index-DpI-XQ1l.js → index-50D2VUJd.js} +1 -1
  80. package/dist/assets/index-5CUDmo0b.js +11 -0
  81. package/dist/assets/{index-Blaj76Z0.js → index-7iaj_w93.js} +1 -1
  82. package/dist/assets/{index-CCbDqQl1.js → index-B4Clf5Is.js} +1 -1
  83. package/dist/assets/{index-D_KMww7L.js → index-B4M5fNtl.js} +1 -1
  84. package/dist/assets/{index-20ehiOeZ.js → index-BEosxyQ-.js} +1 -1
  85. package/dist/assets/{index-DiP98lQ7.js → index-BOJNvmUd.js} +1 -1
  86. package/dist/assets/{index-Cf_UuTrD.js → index-BQOJioXe.js} +11 -11
  87. package/dist/assets/{index-CFj27rKT.js → index-BTLRRIeH.js} +9 -9
  88. package/dist/assets/{index-9ZjKwjlW.js → index-BUYTK_02.js} +1 -1
  89. package/dist/assets/{index-efuh0Sux.js → index-BZaAN-VG.js} +1 -1
  90. package/dist/assets/{index-BvA1-xFo.js → index-BmtqDcN9.js} +1 -1
  91. package/dist/assets/{index-Bls5HB_P.js → index-Bs51pyjo.js} +1 -1
  92. package/dist/assets/{index-d42V1PV6.js → index-BxSe45Us.js} +1 -1
  93. package/dist/assets/{index-D4dcj0uz.js → index-C3GHA9Mq.js} +1 -1
  94. package/dist/assets/{index-B_2YBbna.js → index-C7AV4hRT.js} +1 -1
  95. package/dist/assets/{index-cjrclHNq.js → index-CAA85gOc.js} +1 -1
  96. package/dist/assets/{index-C_rTOaKu.js → index-CGgu2xDj.js} +3 -3
  97. package/dist/assets/index-CMuL6EA4.js +602 -0
  98. package/dist/assets/{index-DNRbXVNA.js → index-CPZEAvjw.js} +1 -1
  99. package/dist/assets/index-CR9frGrE.js +1 -0
  100. package/dist/assets/{index-PBerjRVW.js → index-CaxSNZzZ.js} +1 -1
  101. package/dist/assets/{index-D2dk65xX.js → index-CqD2fBUt.js} +97 -97
  102. package/dist/assets/{index-B9Ylk5Gm.js → index-CxHR01Rd.js} +3 -3
  103. package/dist/assets/{index-CWYVBDEB.js → index-D0H3PjUo.js} +1 -1
  104. package/dist/assets/{index-Bvj_iHG0.js → index-DBwi0mrP.js} +1 -1
  105. package/dist/assets/{index-kKVyr3jd.js → index-DDWxd2Ux.js} +1 -1
  106. package/dist/assets/{index-DFXj2mzy.js → index-DM9qDnRm.js} +1 -1
  107. package/dist/assets/{index-6PyJTHfC.js → index-DU2ssP7d.js} +3 -3
  108. package/dist/assets/{index-4YU_ikpW.js → index-DaPV0E1i.js} +1 -1
  109. package/dist/assets/{index-5QQWHLxz.js → index-DhjgCBSh.js} +1 -1
  110. package/dist/assets/{index-DBvsoi5Z.js → index-DpQcmMsP.js} +1 -1
  111. package/dist/assets/{index-DE8jtmRi.js → index-DuvpHuQS.js} +1 -1
  112. package/dist/assets/{index-BXeAZx39.js → index-DxXsj_BT.js} +1 -1
  113. package/dist/assets/{index-DHo8_7tw.js → index-DyXybTnU.js} +1 -1
  114. package/dist/assets/{index-DBGC5o42.js → index-KVQaYJ5Y.js} +1 -1
  115. package/dist/assets/{index-DiXR_x6S.js → index-OepyDXYU.js} +1 -1
  116. package/dist/assets/{index-BcnRn-Tc.js → index-S1_KC8Yl.js} +1 -1
  117. package/dist/assets/{index-k42VQ_AF.js → index-TFXeoKpv.js} +1 -1
  118. package/dist/assets/{index-DDnvl7tL.js → index-ZZeybSqq.js} +1 -1
  119. package/dist/assets/{index-HNAwOsYz.js → index-aZuZZsqe.js} +1 -1
  120. package/dist/assets/{index-JWFVT8uF.js → index-hHL_v0H9.js} +1 -1
  121. package/dist/assets/{index-B3l3haQa.js → index-kAJasXw_.js} +1 -1
  122. package/dist/assets/{index-DglyPV4Y.js → index-pskT-PqN.js} +2 -2
  123. package/dist/assets/{index-D-M7NZke.js → index-qOevQjkj.js} +1 -1
  124. package/dist/assets/{index.esm-DXYSp_08.js → index.esm-0YKGK8i_.js} +1 -1
  125. package/dist/assets/{install-from-url-CNnVXR83.js → install-from-url-xkTAZofh.js} +1 -1
  126. package/dist/assets/{invitation-DOJxBbSJ.js → invitation-COGTm43o.js} +1 -1
  127. package/dist/assets/{is-path-prefix-equal-DMtF094s.js → is-path-prefix-equal-8gdmSIzT.js} +1 -1
  128. package/dist/assets/{item-B5y2JEkY.js → item-DVoxQKtM.js} +1 -1
  129. package/dist/assets/{ja-BgI9SuxS.js → ja-DuWRl1OM.js} +1 -1
  130. package/dist/assets/{javascript-RMUsL7C4.js → javascript-9DHIuu8w.js} +1 -1
  131. package/dist/assets/{jsonMode-BdWDqW6d.js → jsonMode-DrQT0Rrg.js} +1 -1
  132. package/dist/assets/{ko-DxWYUlEG.js → ko-YalU3HfD.js} +1 -1
  133. package/dist/assets/{liquid-Br_d4nY3.js → liquid-1g4gJZY5.js} +1 -1
  134. package/dist/assets/{list-header-BKASZXQp.js → list-header-CNhWtGQP.js} +1 -1
  135. package/dist/assets/{log-DfyebCKD.js → log-Cv5rHloz.js} +1 -1
  136. package/dist/assets/{lottie-react.esm-DH7e7xCE.js → lottie-react.esm-C6YuAEWV.js} +1 -1
  137. package/dist/assets/{mdx-BWMokGXT.js → mdx-B-cv_j71.js} +1 -1
  138. package/dist/assets/{memory-EbVEVJ3v.js → memory-DPkaeOl7.js} +1 -1
  139. package/dist/assets/{metric-DF4CaZpP.js → metric-CiNgShR5.js} +1 -1
  140. package/dist/assets/omit-C5UyCO0S.js +1 -0
  141. package/dist/assets/{overview-Iijq_Ko4.js → overview-BA5biw-O.js} +1 -1
  142. package/dist/assets/{permission-Br1rNOjb.js → permission-DZQgH-wh.js} +1 -1
  143. package/dist/assets/{preference-DZ8p0ZAt.js → preference-auzdU7Dy.js} +3 -3
  144. package/dist/assets/{pt-DeehC2Gk.js → pt-B3IRBzK6.js} +1 -1
  145. package/dist/assets/{python-Drb_6EJR.js → python-tC148uh2.js} +1 -1
  146. package/dist/assets/{raf-schd.esm-DBpZPfTe.js → raf-schd.esm-2IIbMYWO.js} +1 -1
  147. package/dist/assets/{razor-CqhXoL3w.js → razor-DOE4a2El.js} +1 -1
  148. package/dist/assets/{rotate-session-key-sbLLFax2.js → rotate-session-key-Bdv8tRY6.js} +1 -1
  149. package/dist/assets/{ru-DGlqMwrt.js → ru-BEEcST35.js} +1 -1
  150. package/dist/assets/{runtime-Gcr9Fi-g.js → runtime-CQbc5vgt.js} +1 -1
  151. package/dist/assets/schema-ObohfjTu.js +1 -0
  152. package/dist/assets/sdk-Yo848YWX.js +1 -0
  153. package/dist/assets/{service-wMVBEYj5.js → service-mTfNIC7m.js} +1 -1
  154. package/dist/assets/{shorten-label-COTK-Aqe.js → shorten-label-B8e0Bk0t.js} +1 -1
  155. package/dist/assets/{simple-select-Jvgt7OyG.js → simple-select-IWkCsCtv.js} +1 -1
  156. package/dist/assets/{spaces-Ds86J12r.js → spaces-DrkRFkPj.js} +1 -1
  157. package/dist/assets/{status-CikSPd5y.js → status-BaKGKdEv.js} +1 -1
  158. package/dist/assets/{status-DSta50m1.js → status-L8y4a0he.js} +1 -1
  159. package/dist/assets/{switch-control-BcMqvX98.js → switch-control-DzVAWrsU.js} +1 -1
  160. package/dist/assets/{table-icons-BaaufujD.js → table-icons-CzZoaBLP.js} +1 -1
  161. package/dist/assets/{team-WiS8_opu.js → team-upwNpr8j.js} +1 -1
  162. package/dist/assets/{th-DH3YSYWo.js → th-DYSyn_pj.js} +1 -1
  163. package/dist/assets/{toLower-J-761LZs.js → toLower-By3wiYQ5.js} +1 -1
  164. package/dist/assets/toUpper-WFb-_EjO.js +1 -0
  165. package/dist/assets/{traffic-i-oajLGo.js → traffic-oApG71Gy.js} +1 -1
  166. package/dist/assets/{tsMode-BqPXeNK6.js → tsMode-3JYy3Rny.js} +1 -1
  167. package/dist/assets/{typescript-BeMpQ1cp.js → typescript-BpFSqCb2.js} +1 -1
  168. package/dist/assets/{url-evaluation-BHlD72Za.js → url-evaluation-CboxDo9a.js} +1 -1
  169. package/dist/assets/{url-join-Be8UMYxb.js → url-join-4f83ALpx.js} +1 -1
  170. package/dist/assets/{use-mobile-DKnUPYLh.js → use-mobile-ByGodlLU.js} +1 -1
  171. package/dist/assets/{use-mobile-CFKbUUod.js → use-mobile-DHBy85Ov.js} +1 -1
  172. package/dist/assets/{useAsync-BvyaX1xb.js → useAsync-DAJnGdBq.js} +1 -1
  173. package/dist/assets/{useAsyncRetry-COLHYiqH.js → useAsyncRetry-BFx8IbqU.js} +1 -1
  174. package/dist/assets/{useLocalStorage-CcnFSYKq.js → useLocalStorage-4sgI3E92.js} +1 -1
  175. package/dist/assets/{useThemeProps-12AJ9O-O.js → useThemeProps-ATydoH1u.js} +1 -1
  176. package/dist/assets/{util-BN8LJS24.js → util-DH4frn9i.js} +1 -1
  177. package/dist/assets/{vi-B-WRpo9V.js → vi-BvKqvojn.js} +1 -1
  178. package/dist/assets/{wait-container-BeVXHkhI.js → wait-container-CJvrIzPn.js} +1 -1
  179. package/dist/assets/{without-wallet-Ciw14vC_.js → without-wallet-BxHS9HA2.js} +1 -1
  180. package/dist/assets/wrap-locale-C7k7RLj9.js +1 -0
  181. package/dist/assets/{xml-CPmGSa9a.js → xml-9s8DQRAB.js} +1 -1
  182. package/dist/assets/{yaml-Bgt1uL1Q.js → yaml-D0a0z0M-.js} +1 -1
  183. package/dist/assets/{zh-jdBEl5u8.js → zh-BaEjqGHy.js} +1 -1
  184. package/dist/assets/{zh-tw-2esms75_.js → zh-tw-xcyHbP3V.js} +1 -1
  185. package/dist/index.html +1 -1
  186. package/dist/service-worker.js +1 -1
  187. package/package.json +1 -1
  188. package/dist/assets/ArrowDropDown-BKRskDGW.js +0 -1
  189. package/dist/assets/api-CNS9XStH.js +0 -1
  190. package/dist/assets/chain-DApQ_02_.js +0 -6
  191. package/dist/assets/client-CRwMqq4a.js +0 -1
  192. package/dist/assets/cloneDeep-XzHe1lBt.js +0 -1
  193. package/dist/assets/download-1sZ_L4eJ.css +0 -32
  194. package/dist/assets/emotion-cache.browser.esm-xd7x6o_F.js +0 -1
  195. package/dist/assets/engine-6r3-G42f.js +0 -1
  196. package/dist/assets/getValidReactChildren-Dx-rXSuI.js +0 -1
  197. package/dist/assets/index-BvZ7ueS0.js +0 -602
  198. package/dist/assets/index-Djt_Uvu7.js +0 -1
  199. package/dist/assets/index-DyWKbsNy.js +0 -11
  200. package/dist/assets/omit-DCOcIQME.js +0 -1
  201. package/dist/assets/schema-CtGZqsss.js +0 -1
  202. package/dist/assets/sdk-bmyf6_R7.js +0 -1
  203. package/dist/assets/toUpper-DndvmnJP.js +0 -1
  204. package/dist/assets/wrap-locale-B-zny1Rh.js +0 -1
@@ -1,4 +1,4 @@
1
- import{c0 as ze,r as L,cq as xt,ba as yo,bb as vo,cR as Ot,f6 as tt,cr as ht,f7 as xo,f8 as wo,f9 as br,aG as $t,j as o,be as We,dg as So,dv as Ct,bd as ko,f as Ve,fa as jo,a2 as To,f1 as Oo,fb as Yr,aB as Co,aC as _n,N as H,aV as ve,fc as Eo,fd as tn,c_ as yr,cv as Io,T as Q,fe as Po,f4 as Qr,C as Re,dH as Oe,ff as Jr,fg as _o,fh as Zr,dJ as ei,fi as nn,t as ti,U as Ft,y as rt,at as Wt,fj as Ro,F as nt,aU as ni,V as ri,z as Rn,dn as Fe,G as vr,aP as Mo,eN as xr,cF as Lo,fk as Do,fl as zo,fm as Fo,cD as Wo,O as Ao,dK as No,fn as Bo,dI as $o,bu as Uo,_ as Ko,fo as Ho,fp as wr,dd as Ne,m as qe,az as Mn,aO as Sr,o as R,bk as Vo,fq as ii,b2 as qo,aE as Et,v as At,a7 as Go,a8 as oi,aF as Xo,fr as kr,a9 as Yo,bn as Ln,$ as Qo,D as Jo,X as Zo,cL as es,Y as ft,eC as ts,H as Ke,b as ns,n as rs,a$ as is,ad as os,E as si,cw as ss,b8 as as,W as ls}from"./index-D2dk65xX.js";import{P as cs}from"./ChevronLeft-KRG-fuZi.js";import{N as us}from"./ChevronRight-BmsIaZOg.js";import{S as ds}from"./Search-7wyvQCyz.js";import{y as hs}from"./index-JWFVT8uF.js";import{o as fs,u as ps}from"./blocklet-CSWEnHbv.js";import{A as ms}from"./Autocomplete-B8LzLUZe.js";import{V as gs}from"./Verified-COnwjqrJ.js";import{S as bs,V as ys}from"./VerifiedUser-DnX0aEPL.js";import{A as vs}from"./Add-xsnJutmq.js";import{L as ai}from"./Launch-BvjA_9TZ.js";import{D as xs}from"./Done-BTVTKjDk.js";import{D as li}from"./DeleteOutline-D00EO6C8.js";import{D as ws}from"./delete-confirm-BzjquUay.js";import{I as Ss}from"./MoreVert-DrzE5AUf.js";import{g as gt}from"./get-safe-url-CXm2qbfD.js";import{B as jr}from"./ButtonGroup-2OIq-PXC.js";var ks=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Tr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},js=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Ts=function(e,t){t===void 0&&(t={});var n=t.target,r=t.isNoMore,i=t.threshold,s=i===void 0?100:i,h=t.direction,u=h===void 0?"bottom":h,p=t.reloadDeps,g=p===void 0?[]:p,m=t.manual,v=t.onBefore,j=t.onSuccess,w=t.onError,k=t.onFinally,x=ze(L.useState(),2),C=x[0],_=x[1],T=ze(L.useState(!1),2),W=T[0],X=T[1],J=u==="top",A=L.useRef(void 0),V=L.useRef(0),Z=L.useMemo(function(){return r?r(C):!1},[C]),re=xt(function(ie){return yo(void 0,void 0,void 0,function(){var ee,me,Ie,Pe;return vo(this,function(wt){switch(wt.label){case 0:return[4,e(ie)];case 1:return ee=wt.sent(),_(ie?Ot(Ot({},ee),{list:J?tt(tt([],ze(ee.list),!1),ze((Ie=ie.list)!==null&&Ie!==void 0?Ie:[]),!1):tt(tt([],ze((Pe=ie.list)!==null&&Pe!==void 0?Pe:[]),!1),ze(ee.list),!1)}):Ot(Ot({},ee),{list:tt([],ze((me=ee.list)!==null&&me!==void 0?me:[]),!1)})),[2,ee]}})})},{manual:m,onFinally:function(ie,ee,me){X(!1),k?.(ee,me)},onBefore:function(){return v?.()},onSuccess:function(ie){setTimeout(function(){if(J){var ee=br(n);if(ee=ee===document?document.documentElement:ee,ee){var me=Tr(ee);ee.scrollTo(0,me-V.current)}}else ue()}),j?.(ie)},onError:function(ie){return w?.(ie)}}),$=re.loading,Ee=re.error,ge=re.run,Se=re.runAsync,pe=re.cancel,be=ht(function(){Z||(X(!0),ge(C))}),D=ht(function(){return Z?Promise.reject():(X(!0),Se(C))}),ae=function(){return X(!1),ge()},Te=function(){return X(!1),Se()},ue=function(){var ie=br(n);if(ie){var ee=ie===document?document.documentElement:ie,me=ks(ee),Ie=Tr(ee),Pe=js(ee);J?(A.current!==void 0&&A.current>me&&me<=s&&be(),A.current=me,V.current=Ie-me):Ie-me<=Pe+s&&be()}};return xo("scroll",function(){$||W||ue()},{target:n}),wo(function(){ge()},tt([],ze(g),!1)),{data:C,loading:!W&&$,error:Ee,loadingMore:W,noMore:Z,loadMore:be,loadMoreAsync:D,reload:ht(ae),reloadAsync:ht(Te),mutate:_,cancel:pe}};const Os=$t(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"})),Cs=$t(o.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),Es=$t(o.jsx("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"})),Is=$t(o.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),gc="blocklet-add-component-registry",bc="server-add-registry",Ps={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 16l2-6l6-2l-2 6l-6 2"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-9v2m0 14v2m-9-9h2m14 0h2"/></g>'},pt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ut=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const u=i.pop(),p=i.pop(),g={provider:i.length>0?i[0]:r,prefix:p,name:u};return t&&!Lt(g)?null:g}const s=i[0],h=s.split("-");if(h.length>1){const u={provider:r,prefix:h.shift(),name:h.join("-")};return t&&!Lt(u)?null:u}if(n&&r===""){const u={provider:r,prefix:"",name:s};return t&&!Lt(u,n)?null:u}return null},Lt=(e,t)=>e?!!((e.provider===""||e.provider.match(pt))&&(t&&e.prefix===""||e.prefix.match(pt))&&e.name.match(pt)):!1,ci=Object.freeze({left:0,top:0,width:16,height:16}),Nt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Dn=Object.freeze({...ci,...Nt}),yn=Object.freeze({...Dn,body:"",hidden:!1});function _s(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Or(e,t){const n=_s(e,t);for(const r in yn)r in Nt?r in e&&!(r in n)&&(n[r]=Nt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Rs(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(h){if(n[h])return i[h]=[];if(!(h in i)){i[h]=null;const u=r[h]&&r[h].parent,p=u&&s(u);p&&(i[h]=[u].concat(p))}return i[h]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Ms(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function h(u){s=Or(r[u]||i[u],s)}return h(t),n.forEach(h),Or(e,s)}function ui(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=Rs(e);for(const i in r){const s=r[i];s&&(t(i,Ms(e,i,s)),n.push(i))}return n}const Ls={provider:"",aliases:{},not_found:{},...ci};function rn(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function di(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!rn(e,Ls))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(pt)||typeof s.body!="string"||!rn(s,yn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],h=s.parent;if(!i.match(pt)||typeof h!="string"||!n[h]&&!r[h]||!rn(s,yn))return null}return t}const Cr=Object.create(null);function Ds(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function He(e,t){const n=Cr[e]||(Cr[e]=Object.create(null));return n[t]||(n[t]=Ds(e,t))}function zn(e,t){return di(t)?ui(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function zs(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let bt=!1;function hi(e){return typeof e=="boolean"&&(bt=e),bt}function Fs(e){const t=typeof e=="string"?Ut(e,!0,bt):e;if(t){const n=He(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Ws(e,t){const n=Ut(e,!0,bt);if(!n)return!1;const r=He(n.provider,n.prefix);return zs(r,n.name,t)}function As(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),bt&&!t&&!e.prefix){let i=!1;return di(e)&&(e.prefix="",ui(e,(s,h)=>{h&&Ws(s,h)&&(i=!0)})),i}const n=e.prefix;if(!Lt({provider:t,prefix:n,name:"a"}))return!1;const r=He(t,n);return!!zn(r,e)}const fi=Object.freeze({width:null,height:null}),pi=Object.freeze({...fi,...Nt}),Ns=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Bs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Er(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Ns);if(r===null||!r.length)return e;const i=[];let s=r.shift(),h=Bs.test(s);for(;;){if(h){const u=parseFloat(s);isNaN(u)?i.push(s):i.push(Math.ceil(u*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");h=!h}}const $s=e=>e==="unset"||e==="undefined"||e==="none";function Us(e,t){const n={...Dn,...e},r={...pi,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(k=>{const x=[],C=k.hFlip,_=k.vFlip;let T=k.rotate;C?_?T+=2:(x.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),x.push("scale(-1 1)"),i.top=i.left=0):_&&(x.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),x.push("scale(1 -1)"),i.top=i.left=0);let W;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:W=i.height/2+i.top,x.unshift("rotate(90 "+W.toString()+" "+W.toString()+")");break;case 2:x.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:W=i.width/2+i.left,x.unshift("rotate(-90 "+W.toString()+" "+W.toString()+")");break}T%2===1&&(i.left!==i.top&&(W=i.left,i.left=i.top,i.top=W),i.width!==i.height&&(W=i.width,i.width=i.height,i.height=W)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const h=r.width,u=r.height,p=i.width,g=i.height;let m,v;h===null?(v=u===null?"1em":u==="auto"?g:u,m=Er(v,p/g)):(m=h==="auto"?p:h,v=u===null?Er(m,g/p):u==="auto"?g:u);const j={},w=(k,x)=>{$s(x)||(j[k]=x.toString())};return w("width",m),w("height",v),j.viewBox=i.left.toString()+" "+i.top.toString()+" "+p.toString()+" "+g.toString(),{attributes:j,body:s}}const Ks=/\sid="(\S+)"/g,Hs="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Vs=0;function qs(e,t=Hs){const n=[];let r;for(;r=Ks.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const h=typeof t=="function"?t(s):t+(Vs++).toString(),u=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+u+')([")]|\\.[a-z])',"g"),"$1"+h+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const vn=Object.create(null);function Gs(e,t){vn[e]=t}function xn(e){return vn[e]||vn[""]}function Fn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Wn=Object.create(null),dt=["https://api.simplesvg.com","https://api.unisvg.com"],Dt=[];for(;dt.length>0;)dt.length===1||Math.random()>.5?Dt.push(dt.shift()):Dt.push(dt.pop());Wn[""]=Fn({resources:["https://api.iconify.design"].concat(Dt)});function Xs(e,t){const n=Fn(t);return n===null?!1:(Wn[e]=n,!0)}function An(e){return Wn[e]}const Ys=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ir=Ys();function Qs(e,t){const n=An(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(h=>{i=Math.max(i,h.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Js(e){return e===404}const Zs=(e,t,n)=>{const r=[],i=Qs(e,t),s="icons";let h={type:s,provider:e,prefix:t,icons:[]},u=0;return n.forEach((p,g)=>{u+=p.length+1,u>=i&&g>0&&(r.push(h),h={type:s,provider:e,prefix:t,icons:[]},u=p.length),h.icons.push(p)}),r.push(h),r};function ea(e){if(typeof e=="string"){const t=An(e);if(t)return t.path}return"/"}const ta=(e,t,n)=>{if(!Ir){n("abort",424);return}let r=ea(t.provider);switch(t.type){case"icons":{const s=t.prefix,u=t.icons.join(","),p=new URLSearchParams({icons:u});r+=s+".json?"+p.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;Ir(e+r).then(s=>{const h=s.status;if(h!==200){setTimeout(()=>{n(Js(h)?"abort":"next",h)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},na={prepare:Zs,send:ta};function ra(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,h=i.prefix,u=i.name,p=n[s]||(n[s]=Object.create(null)),g=p[h]||(p[h]=He(s,h));let m;u in g.icons?m=t.loaded:h===""||g.missing.has(u)?m=t.missing:m=t.pending;const v={provider:s,prefix:h,name:u};m.push(v)}),t}function mi(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function ia(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const h=s.icons,u=h.pending.length;h.pending=h.pending.filter(p=>{if(p.prefix!==i)return!0;const g=p.name;if(e.icons[g])h.loaded.push({provider:r,prefix:i,name:g});else if(e.missing.has(g))h.missing.push({provider:r,prefix:i,name:g});else return n=!0,!0;return!1}),h.pending.length!==u&&(n||mi([e],s.id),s.callback(h.loaded.slice(0),h.missing.slice(0),h.pending.slice(0),s.abort))})}))}let oa=0;function sa(e,t,n){const r=oa++,i=mi.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(h=>{(h.loaderCallbacks||(h.loaderCallbacks=[])).push(s)}),i}function aa(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Ut(i,t,n):i;s&&r.push(s)}),r}var la={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ca(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let h;if(e.random){let A=e.resources.slice(0);for(h=[];A.length>1;){const V=Math.floor(Math.random()*A.length);h.push(A[V]),A=A.slice(0,V).concat(A.slice(V+1))}h=h.concat(A)}else h=e.resources.slice(s).concat(e.resources.slice(0,s));const u=Date.now();let p="pending",g=0,m,v=null,j=[],w=[];typeof r=="function"&&w.push(r);function k(){v&&(clearTimeout(v),v=null)}function x(){p==="pending"&&(p="aborted"),k(),j.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),j=[]}function C(A,V){V&&(w=[]),typeof A=="function"&&w.push(A)}function _(){return{startTime:u,payload:t,status:p,queriesSent:g,queriesPending:j.length,subscribe:C,abort:x}}function T(){p="failed",w.forEach(A=>{A(void 0,m)})}function W(){j.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),j=[]}function X(A,V,Z){const re=V!=="success";switch(j=j.filter($=>$!==A),p){case"pending":break;case"failed":if(re||!e.dataAfterTimeout)return;break;default:return}if(V==="abort"){m=Z,T();return}if(re){m=Z,j.length||(h.length?J():T());return}if(k(),W(),!e.random){const $=e.resources.indexOf(A.resource);$!==-1&&$!==e.index&&(e.index=$)}p="completed",w.forEach($=>{$(Z)})}function J(){if(p!=="pending")return;k();const A=h.shift();if(A===void 0){if(j.length){v=setTimeout(()=>{k(),p==="pending"&&(W(),T())},e.timeout);return}T();return}const V={status:"pending",resource:A,callback:(Z,re)=>{X(V,Z,re)}};j.push(V),g++,v=setTimeout(J,e.rotate),n(A,t,V.callback)}return setTimeout(J),_}function gi(e){const t={...la,...e};let n=[];function r(){n=n.filter(u=>u().status==="pending")}function i(u,p,g){const m=ca(t,u,p,(v,j)=>{r(),g&&g(v,j)});return n.push(m),m}function s(u){return n.find(p=>u(p))||null}return{query:i,find:s,setIndex:u=>{t.index=u},getIndex:()=>t.index,cleanup:r}}function Pr(){}const on=Object.create(null);function ua(e){if(!on[e]){const t=An(e);if(!t)return;const n=gi(t),r={config:t,redundancy:n};on[e]=r}return on[e]}function da(e,t,n){let r,i;if(typeof e=="string"){const s=xn(e);if(!s)return n(void 0,424),Pr;i=s.send;const h=ua(e);h&&(r=h.redundancy)}else{const s=Fn(e);if(s){r=gi(s);const h=e.resources?e.resources[0]:"",u=xn(h);u&&(i=u.send)}}return!r||!i?(n(void 0,424),Pr):r.query(t,i,n)().abort}const _r="iconify2",yt="iconify",bi=yt+"-count",Rr=yt+"-version",yi=36e5,ha=168;function wn(e,t){try{return e.getItem(t)}catch{}}function Nn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Mr(e,t){try{e.removeItem(t)}catch{}}function Sn(e,t){return Nn(e,bi,t.toString())}function kn(e){return parseInt(wn(e,bi))||0}const Kt={local:!0,session:!0},vi={local:new Set,session:new Set};let Bn=!1;function fa(e){Bn=e}let It=typeof window>"u"?{}:window;function xi(e){const t=e+"Storage";try{if(It&&It[t]&&typeof It[t].length=="number")return It[t]}catch{}Kt[e]=!1}function wi(e,t){const n=xi(e);if(!n)return;const r=wn(n,Rr);if(r!==_r){if(r){const u=kn(n);for(let p=0;p<u;p++)Mr(n,yt+p.toString())}Nn(n,Rr,_r),Sn(n,0);return}const i=Math.floor(Date.now()/yi)-ha,s=u=>{const p=yt+u.toString(),g=wn(n,p);if(typeof g=="string"){try{const m=JSON.parse(g);if(typeof m=="object"&&typeof m.cached=="number"&&m.cached>i&&typeof m.provider=="string"&&typeof m.data=="object"&&typeof m.data.prefix=="string"&&t(m,u))return!0}catch{}Mr(n,p)}};let h=kn(n);for(let u=h-1;u>=0;u--)s(u)||(u===h-1?(h--,Sn(n,h)):vi[e].add(u))}function Si(){if(!Bn){fa(!0);for(const e in Kt)wi(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=He(r,i);if(!zn(s,n).length)return!1;const h=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,h):h,!0})}}function pa(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Kt)wi(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function ma(e,t){Bn||Si();function n(r){let i;if(!Kt[r]||!(i=xi(r)))return;const s=vi[r];let h;if(s.size)s.delete(h=Array.from(s).shift());else if(h=kn(i),!Sn(i,h+1))return;const u={cached:Math.floor(Date.now()/yi),provider:e.provider,data:t};return Nn(i,yt+h.toString(),JSON.stringify(u))}t.lastModified&&!pa(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Lr(){}function ga(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ia(e)}))}function ba(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let s;if(!i||!(s=xn(n)))return;s.prepare(n,r,i).forEach(u=>{da(n,u,p=>{if(typeof p!="object")u.icons.forEach(g=>{e.missing.add(g)});else try{const g=zn(e,p);if(!g.length)return;const m=e.pendingIcons;m&&g.forEach(v=>{m.delete(v)}),ma(e,p)}catch(g){console.error(g)}ga(e)})})}))}const ya=(e,t)=>{const n=aa(e,!0,hi()),r=ra(n);if(!r.pending.length){let p=!0;return t&&setTimeout(()=>{p&&t(r.loaded,r.missing,r.pending,Lr)}),()=>{p=!1}}const i=Object.create(null),s=[];let h,u;return r.pending.forEach(p=>{const{provider:g,prefix:m}=p;if(m===u&&g===h)return;h=g,u=m,s.push(He(g,m));const v=i[g]||(i[g]=Object.create(null));v[m]||(v[m]=[])}),r.pending.forEach(p=>{const{provider:g,prefix:m,name:v}=p,j=He(g,m),w=j.pendingIcons||(j.pendingIcons=new Set);w.has(v)||(w.add(v),i[g][m].push(v))}),s.forEach(p=>{const{provider:g,prefix:m}=p;i[g][m].length&&ba(p,i[g][m])}),t?sa(t,r,s):Lr};function va(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in fi?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const xa=/[\s,]+/;function wa(e,t){t.split(xa).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Sa(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function ka(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function ja(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ta(e){return"data:image/svg+xml,"+ja(e)}function Oa(e){return'url("'+Ta(e)+'")'}let mt;function Ca(){try{mt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{mt=null}}function Ea(e){return mt===void 0&&Ca(),mt?mt.createHTML(e):e}const ki={...pi,inline:!1},Ia={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pa={display:"inline-block"},jn={backgroundColor:"currentColor"},ji={backgroundColor:"transparent"},Dr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},zr={WebkitMask:jn,mask:jn,background:ji};for(const e in zr){const t=zr[e];for(const n in Dr)t[e+n]=Dr[n]}const _a={...ki,inline:!0};function Fr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ra=(e,t,n,r)=>{const i=n?_a:ki,s=va(i,t),h=t.mode||"svg",u={},p=t.style||{},g={...h==="svg"?Ia:{},ref:r};for(let _ in t){const T=t[_];if(T!==void 0)switch(_){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":s[_]=T===!0||T==="true"||T===1;break;case"flip":typeof T=="string"&&wa(s,T);break;case"color":u.color=T;break;case"rotate":typeof T=="string"?s[_]=Sa(T):typeof T=="number"&&(s[_]=T);break;case"ariaHidden":case"aria-hidden":T!==!0&&T!=="true"&&delete g["aria-hidden"];break;default:i[_]===void 0&&(g[_]=T)}}const m=Us(e,s),v=m.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),h==="svg"){g.style={...u,...p},Object.assign(g,v);let _=0,T=t.id;return typeof T=="string"&&(T=T.replace(/-/g,"_")),g.dangerouslySetInnerHTML={__html:Ea(qs(m.body,T?()=>T+"ID"+_++:"iconifyReact"))},We.createElement("svg",g)}const{body:j,width:w,height:k}=e,x=h==="mask"||(h==="bg"?!1:j.indexOf("currentColor")!==-1),C=ka(j,{...v,width:w+"",height:k+""});return g.style={...u,"--svg":Oa(C),width:Fr(v.width),height:Fr(v.height),...Pa,...x?jn:ji,...p},We.createElement("span",g)};hi(!0);Gs("",na);if(typeof document<"u"&&typeof window<"u"){Si();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!As(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Xs(n,i)||console.error(r)}catch{console.error(r)}}}}class Ti extends We.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=Ut(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Fs(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:ya([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const h=["iconify"];i.prefix!==""&&h.push("iconify--"+i.prefix),i.provider!==""&&h.push("iconify--"+i.provider),this._setData({data:s,classes:h}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:We.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),Ra({...Dn,...n.data},r,t._inline,t._ref)}}const Le=We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return We.createElement(Ti,r)});We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return We.createElement(Ti,r)});const Oi={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 18a3.5 3.5 0 0 0 0-7h-1A5 4.5 0 0 0 7 9a4.6 4.4 0 0 0-2.1 8.4M12 13v9m-3-3l3 3l3-3"/>'};var zt={exports:{}},Ma=zt.exports,Wr;function La(){return Wr||(Wr=1,function(e,t){(function(n,r){e.exports=r(So())})(Ma,n=>(()=>{var r={703:(u,p,g)=>{var m=g(414);function v(){}function j(){}j.resetWarningCache=v,u.exports=function(){function w(C,_,T,W,X,J){if(J!==m){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}function k(){return w}w.isRequired=w;var x={array:w,bool:w,func:w,number:w,object:w,string:w,symbol:w,any:w,arrayOf:k,element:w,elementType:w,instanceOf:k,node:w,objectOf:k,oneOf:k,oneOfType:k,shape:k,exact:k,checkPropTypes:j,resetWarningCache:v};return x.PropTypes=x,x}},697:(u,p,g)=>{u.exports=g(703)()},414:u=>{u.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:u=>{var p=typeof Element<"u",g=typeof Map=="function",m=typeof Set=="function",v=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function j(w,k){if(w===k)return!0;if(w&&k&&typeof w=="object"&&typeof k=="object"){if(w.constructor!==k.constructor)return!1;var x,C,_,T;if(Array.isArray(w)){if((x=w.length)!=k.length)return!1;for(C=x;C--!=0;)if(!j(w[C],k[C]))return!1;return!0}if(g&&w instanceof Map&&k instanceof Map){if(w.size!==k.size)return!1;for(T=w.entries();!(C=T.next()).done;)if(!k.has(C.value[0]))return!1;for(T=w.entries();!(C=T.next()).done;)if(!j(C.value[1],k.get(C.value[0])))return!1;return!0}if(m&&w instanceof Set&&k instanceof Set){if(w.size!==k.size)return!1;for(T=w.entries();!(C=T.next()).done;)if(!k.has(C.value[0]))return!1;return!0}if(v&&ArrayBuffer.isView(w)&&ArrayBuffer.isView(k)){if((x=w.length)!=k.length)return!1;for(C=x;C--!=0;)if(w[C]!==k[C])return!1;return!0}if(w.constructor===RegExp)return w.source===k.source&&w.flags===k.flags;if(w.valueOf!==Object.prototype.valueOf)return w.valueOf()===k.valueOf();if(w.toString!==Object.prototype.toString)return w.toString()===k.toString();if((x=(_=Object.keys(w)).length)!==Object.keys(k).length)return!1;for(C=x;C--!=0;)if(!Object.prototype.hasOwnProperty.call(k,_[C]))return!1;if(p&&w instanceof Element)return!1;for(C=x;C--!=0;)if((_[C]!=="_owner"&&_[C]!=="__v"&&_[C]!=="__o"||!w.$$typeof)&&!j(w[_[C]],k[_[C]]))return!1;return!0}return w!=w&&k!=k}u.exports=function(w,k){try{return j(w,k)}catch(x){if((x.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw x}}},359:u=>{u.exports=n}},i={};function s(u){var p=i[u];if(p!==void 0)return p.exports;var g=i[u]={exports:{}};return r[u](g,g.exports,s),g.exports}s.n=u=>{var p=u&&u.__esModule?()=>u.default:()=>u;return s.d(p,{a:p}),p},s.d=(u,p)=>{for(var g in p)s.o(p,g)&&!s.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:p[g]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(u,p)=>Object.prototype.hasOwnProperty.call(u,p),s.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var h={};return(()=>{function u(d){var a,f,b="";if(typeof d=="string"||typeof d=="number")b+=d;else if(typeof d=="object")if(Array.isArray(d))for(a=0;a<d.length;a++)d[a]&&(f=u(d[a]))&&(b&&(b+=" "),b+=f);else for(a in d)d[a]&&(b&&(b+=" "),b+=a);return b}function p(){for(var d,a,f=0,b="";f<arguments.length;)(d=arguments[f++])&&(a=u(d))&&(b&&(b+=" "),b+=a);return b}s.r(h),s.d(h,{default:()=>go});var g=s(359),m=s.n(g);const v=function(d){var a=typeof d;return d!=null&&(a=="object"||a=="function")},j=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct;var w=typeof self=="object"&&self&&self.Object===Object&&self;const k=j||w||Function("return this")(),x=function(){return k.Date.now()};var C=/\s/,_=/^\s+/;const T=function(d){return d&&d.slice(0,function(a){for(var f=a.length;f--&&C.test(a.charAt(f)););return f}(d)+1).replace(_,"")},W=k.Symbol;var X=Object.prototype,J=X.hasOwnProperty,A=X.toString,V=W?W.toStringTag:void 0,Z=Object.prototype.toString,re=W?W.toStringTag:void 0;const $=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":re&&re in Object(d)?function(a){var f=J.call(a,V),b=a[V];try{a[V]=void 0;var I=!0}catch{}var N=A.call(a);return I&&(f?a[V]=b:delete a[V]),N}(d):function(a){return Z.call(a)}(d)};var Ee=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,Se=/^0o[0-7]+$/i,pe=parseInt;const be=function(d){if(typeof d=="number")return d;if(function(b){return typeof b=="symbol"||function(I){return I!=null&&typeof I=="object"}(b)&&$(b)=="[object Symbol]"}(d))return NaN;if(v(d)){var a=typeof d.valueOf=="function"?d.valueOf():d;d=v(a)?a+"":a}if(typeof d!="string")return d===0?d:+d;d=T(d);var f=ge.test(d);return f||Se.test(d)?pe(d.slice(2),f?2:8):Ee.test(d)?NaN:+d};var D=Math.max,ae=Math.min;const Te=function(d,a,f){var b,I,N,Y,c,l,y=0,O=!1,P=!1,E=!0;if(typeof d!="function")throw new TypeError("Expected a function");function K(B){var G=b,te=I;return b=I=void 0,y=B,Y=d.apply(te,G)}function U(B){return y=B,c=setTimeout(M,a),O?K(B):Y}function q(B){var G=B-l;return l===void 0||G>=a||G<0||P&&B-y>=N}function M(){var B=x();if(q(B))return z(B);c=setTimeout(M,function(G){var te=a-(G-l);return P?ae(te,N-(G-y)):te}(B))}function z(B){return c=void 0,E&&b?K(B):(b=I=void 0,Y)}function F(){var B=x(),G=q(B);if(b=arguments,I=this,l=B,G){if(c===void 0)return U(l);if(P)return clearTimeout(c),c=setTimeout(M,a),K(l)}return c===void 0&&(c=setTimeout(M,a)),Y}return a=be(a)||0,v(f)&&(O=!!f.leading,N=(P="maxWait"in f)?D(be(f.maxWait)||0,a):N,E="trailing"in f?!!f.trailing:E),F.cancel=function(){c!==void 0&&clearTimeout(c),y=0,b=l=I=c=void 0},F.flush=function(){return c===void 0?Y:z(x())},F},ue=function(d,a,f){var b=!0,I=!0;if(typeof d!="function")throw new TypeError("Expected a function");return v(f)&&(b="leading"in f?!!f.leading:b,I="trailing"in f?!!f.trailing:I),Te(d,a,{leading:b,maxWait:a,trailing:I})};var ie=s(590),ee=s.n(ie),me=function(){if(typeof Map<"u")return Map;function d(a,f){var b=-1;return a.some(function(I,N){return I[0]===f&&(b=N,!0)}),b}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(f){var b=d(this.__entries__,f),I=this.__entries__[b];return I&&I[1]},a.prototype.set=function(f,b){var I=d(this.__entries__,f);~I?this.__entries__[I][1]=b:this.__entries__.push([f,b])},a.prototype.delete=function(f){var b=this.__entries__,I=d(b,f);~I&&b.splice(I,1)},a.prototype.has=function(f){return!!~d(this.__entries__,f)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(f,b){b===void 0&&(b=null);for(var I=0,N=this.__entries__;I<N.length;I++){var Y=N[I];f.call(b,Y[1],Y[0])}},a}()}(),Ie=typeof window<"u"&&typeof document<"u"&&window.document===document,Pe=s.g!==void 0&&s.g.Math===Math?s.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),wt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Pe):function(d){return setTimeout(function(){return d(Date.now())},1e3/60)},Hi=["top","right","bottom","left","width","height","size","weight"],Vi=typeof MutationObserver<"u",qi=function(){function d(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(a,f){var b=!1,I=!1,N=0;function Y(){b&&(b=!1,a()),I&&l()}function c(){wt(Y)}function l(){var y=Date.now();if(b){if(y-N<2)return;I=!0}else b=!0,I=!1,setTimeout(c,20);N=y}return l}(this.refresh.bind(this))}return d.prototype.addObserver=function(a){~this.observers_.indexOf(a)||this.observers_.push(a),this.connected_||this.connect_()},d.prototype.removeObserver=function(a){var f=this.observers_,b=f.indexOf(a);~b&&f.splice(b,1),!f.length&&this.connected_&&this.disconnect_()},d.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},d.prototype.updateObservers_=function(){var a=this.observers_.filter(function(f){return f.gatherActive(),f.hasActive()});return a.forEach(function(f){return f.broadcastActive()}),a.length>0},d.prototype.connect_=function(){Ie&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Vi?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},d.prototype.disconnect_=function(){Ie&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},d.prototype.onTransitionEnd_=function(a){var f=a.propertyName,b=f===void 0?"":f;Hi.some(function(I){return!!~b.indexOf(I)})&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d}(),qn=function(d,a){for(var f=0,b=Object.keys(a);f<b.length;f++){var I=b[f];Object.defineProperty(d,I,{value:a[I],enumerable:!1,writable:!1,configurable:!0})}return d},Ge=function(d){return d&&d.ownerDocument&&d.ownerDocument.defaultView||Pe},Gn=kt(0,0,0,0);function St(d){return parseFloat(d)||0}function Xn(d){for(var a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];return a.reduce(function(b,I){return b+St(d["border-"+I+"-width"])},0)}var Gi=typeof SVGGraphicsElement<"u"?function(d){return d instanceof Ge(d).SVGGraphicsElement}:function(d){return d instanceof Ge(d).SVGElement&&typeof d.getBBox=="function"};function Xi(d){return Ie?Gi(d)?function(a){var f=a.getBBox();return kt(0,0,f.width,f.height)}(d):function(a){var f=a.clientWidth,b=a.clientHeight;if(!f&&!b)return Gn;var I=Ge(a).getComputedStyle(a),N=function(E){for(var K={},U=0,q=["top","right","bottom","left"];U<q.length;U++){var M=q[U],z=E["padding-"+M];K[M]=St(z)}return K}(I),Y=N.left+N.right,c=N.top+N.bottom,l=St(I.width),y=St(I.height);if(I.boxSizing==="border-box"&&(Math.round(l+Y)!==f&&(l-=Xn(I,"left","right")+Y),Math.round(y+c)!==b&&(y-=Xn(I,"top","bottom")+c)),!function(E){return E===Ge(E).document.documentElement}(a)){var O=Math.round(l+Y)-f,P=Math.round(y+c)-b;Math.abs(O)!==1&&(l-=O),Math.abs(P)!==1&&(y-=P)}return kt(N.left,N.top,l,y)}(d):Gn}function kt(d,a,f,b){return{x:d,y:a,width:f,height:b}}var Yi=function(){function d(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=kt(0,0,0,0),this.target=a}return d.prototype.isActive=function(){var a=Xi(this.target);return this.contentRect_=a,a.width!==this.broadcastWidth||a.height!==this.broadcastHeight},d.prototype.broadcastRect=function(){var a=this.contentRect_;return this.broadcastWidth=a.width,this.broadcastHeight=a.height,a},d}(),Qi=function(d,a){var f,b,I,N,Y,c,l,y=(b=(f=a).x,I=f.y,N=f.width,Y=f.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),qn(l,{x:b,y:I,width:N,height:Y,top:I,right:b+N,bottom:Y+I,left:b}),l);qn(this,{target:d,contentRect:y})},Ji=function(){function d(a,f,b){if(this.activeObservations_=[],this.observations_=new me,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=f,this.callbackCtx_=b}return d.prototype.observe=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)||(f.set(a,new Yi(a)),this.controller_.addObserver(this),this.controller_.refresh())}},d.prototype.unobserve=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)&&(f.delete(a),f.size||this.controller_.removeObserver(this))}},d.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},d.prototype.gatherActive=function(){var a=this;this.clearActive(),this.observations_.forEach(function(f){f.isActive()&&a.activeObservations_.push(f)})},d.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,f=this.activeObservations_.map(function(b){return new Qi(b.target,b.broadcastRect())});this.callback_.call(a,f,a),this.clearActive()}},d.prototype.clearActive=function(){this.activeObservations_.splice(0)},d.prototype.hasActive=function(){return this.activeObservations_.length>0},d}(),Yn=typeof WeakMap<"u"?new WeakMap:new me,Qn=function d(a){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var f=qi.getInstance(),b=new Ji(a,f,this);Yn.set(this,b)};["observe","unobserve","disconnect"].forEach(function(d){Qn.prototype[d]=function(){var a;return(a=Yn.get(this))[d].apply(a,arguments)}});const Jn=Pe.ResizeObserver!==void 0?Pe.ResizeObserver:Qn,Xe="Left",Be="Right",Ye="Up",$e="Down",Qe={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Vt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Zn="mousemove",er="mouseup";function tr(d,a){if(a===0)return d;const f=Math.PI/180*a;return[d[0]*Math.cos(f)+d[1]*Math.sin(f),d[1]*Math.cos(f)-d[0]*Math.sin(f)]}function Zi(d){const{trackMouse:a}=d,f=g.useRef(Object.assign({},Vt)),b=g.useRef(Object.assign({},Qe)),I=g.useRef(Object.assign({},b.current));let N;for(N in I.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},Qe),d),Qe)b.current[N]===void 0&&(b.current[N]=Qe[N]);const[Y,c]=g.useMemo(()=>function(l,y){const O=M=>{const z="touches"in M;z&&M.touches.length>1||l((F,B)=>{B.trackMouse&&!z&&(document.addEventListener(Zn,P),document.addEventListener(er,K));const{clientX:G,clientY:te}=z?M.touches[0]:M,le=tr([G,te],B.rotationAngle);return B.onTouchStartOrOnMouseDown&&B.onTouchStartOrOnMouseDown({event:M}),Object.assign(Object.assign(Object.assign({},F),Vt),{initial:le.slice(),xy:le,start:M.timeStamp||0})})},P=M=>{l((z,F)=>{const B="touches"in M;if(B&&M.touches.length>1)return z;if(M.timeStamp-z.start>F.swipeDuration)return z.swiping?Object.assign(Object.assign({},z),{swiping:!1}):z;const{clientX:G,clientY:te}=B?M.touches[0]:M,[le,we]=tr([G,te],F.rotationAngle),ye=le-z.xy[0],he=we-z.xy[1],se=Math.abs(ye),ne=Math.abs(he),De=(M.timeStamp||0)-z.start,at=Math.sqrt(se*se+ne*ne)/(De||1),lt=[ye/(De||1),he/(De||1)],Me=function(ct,et,ut,ke){return ct>et?ut>0?Be:Xe:ke>0?$e:Ye}(se,ne,ye,he),Ue=typeof F.delta=="number"?F.delta:F.delta[Me.toLowerCase()]||Qe.delta;if(se<Ue&&ne<Ue&&!z.swiping)return z;const _e={absX:se,absY:ne,deltaX:ye,deltaY:he,dir:Me,event:M,first:z.first,initial:z.initial,velocity:at,vxvy:lt};_e.first&&F.onSwipeStart&&F.onSwipeStart(_e),F.onSwiping&&F.onSwiping(_e);let Ze=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Me}`])&&(Ze=!0),Ze&&F.preventScrollOnSwipe&&F.trackTouch&&M.cancelable&&M.preventDefault(),Object.assign(Object.assign({},z),{first:!1,eventData:_e,swiping:!0})})},E=M=>{l((z,F)=>{let B;if(z.swiping&&z.eventData){if(M.timeStamp-z.start<F.swipeDuration){B=Object.assign(Object.assign({},z.eventData),{event:M}),F.onSwiped&&F.onSwiped(B);const G=F[`onSwiped${B.dir}`];G&&G(B)}}else F.onTap&&F.onTap({event:M});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:M}),Object.assign(Object.assign(Object.assign({},z),Vt),{eventData:B})})},K=M=>{document.removeEventListener(Zn,P),document.removeEventListener(er,K),E(M)},U=(M,z)=>{let F=()=>{};if(M&&M.addEventListener){const B=Object.assign(Object.assign({},Qe.touchEventOptions),z.touchEventOptions),G=[["touchstart",O,B],["touchmove",P,Object.assign(Object.assign({},B),z.preventScrollOnSwipe?{passive:!1}:{})],["touchend",E,B]];G.forEach(([te,le,we])=>M.addEventListener(te,le,we)),F=()=>G.forEach(([te,le])=>M.removeEventListener(te,le))}return F},q={ref:M=>{M!==null&&l((z,F)=>{if(z.el===M)return z;const B={};return z.el&&z.el!==M&&z.cleanUpTouch&&(z.cleanUpTouch(),B.cleanUpTouch=void 0),F.trackTouch&&M&&(B.cleanUpTouch=U(M,F)),Object.assign(Object.assign(Object.assign({},z),{el:M}),B)})}};return y.trackMouse&&(q.onMouseDown=O),[q,U]}(l=>f.current=l(f.current,b.current),{trackMouse:a}),[a]);return f.current=function(l,y,O,P){return y.trackTouch&&l.el?l.cleanUpTouch?y.preventScrollOnSwipe!==O.preventScrollOnSwipe||y.touchEventOptions.passive!==O.touchEventOptions.passive?(l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:P(l.el,y)})):l:Object.assign(Object.assign({},l),{cleanUpTouch:P(l.el,y)}):(l.cleanUpTouch&&l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:void 0}))}(f.current,b.current,I.current,c),Y}var S=s(697);function it(d){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},it(d)}function nr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function rr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?nr(Object(f),!0).forEach(function(b){eo(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):nr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function eo(d,a,f){return(a=function(b){var I=function(N,Y){if(it(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(it(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return it(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var to={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},qt=m().memo(function(d){var a=rr(rr({},to),d),f=a.description,b=a.fullscreen,I=a.handleImageLoaded,N=a.isFullscreen,Y=a.onImageError,c=a.original,l=a.originalAlt,y=a.originalHeight,O=a.originalWidth,P=a.originalTitle,E=a.sizes,K=a.srcSet,U=a.loading,q=N&&b||c;return m().createElement(m().Fragment,null,m().createElement("img",{className:"image-gallery-image",src:q,alt:l,srcSet:K,height:y,width:O,sizes:E,title:P,onLoad:function(M){return I(M,c)},onError:Y,loading:U}),f&&m().createElement("span",{className:"image-gallery-description"},f))});qt.displayName="Item",qt.propTypes={description:S.string,fullscreen:S.string,handleImageLoaded:S.func.isRequired,isFullscreen:S.bool,onImageError:S.func.isRequired,original:S.string.isRequired,originalAlt:S.string,originalHeight:S.string,originalWidth:S.string,originalTitle:S.string,sizes:S.string,srcSet:S.string,loading:S.string};const no=qt;function ot(d){return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ot(d)}function ir(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function or(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?ir(Object(f),!0).forEach(function(b){ro(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):ir(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function ro(d,a,f){return(a=function(b){var I=function(N,Y){if(ot(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(ot(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return ot(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var io={left:m().createElement("polyline",{points:"15 18 9 12 15 6"}),right:m().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:m().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:m().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:m().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:m().createElement(m().Fragment,null,m().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),m().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},oo={strokeWidth:1,viewBox:"0 0 24 24"},sr=function(d){var a=or(or({},oo),d),f=a.strokeWidth,b=a.viewBox,I=a.icon;return m().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:b,fill:"none",stroke:"currentColor",strokeWidth:f,strokeLinecap:"round",strokeLinejoin:"round"},io[I])};sr.propTypes={strokeWidth:S.number,viewBox:S.string,icon:(0,S.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const jt=sr;var Gt=m().memo(function(d){var a=d.isFullscreen,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:f,"aria-label":"Open Fullscreen"},m().createElement(jt,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Gt.displayName="Fullscreen",Gt.propTypes={isFullscreen:S.bool.isRequired,onClick:S.func.isRequired};const so=Gt;var Xt=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:a,onClick:f,"aria-label":"Previous Slide"},m().createElement(jt,{icon:"left",viewBox:"6 0 12 24"}))});Xt.displayName="LeftNav",Xt.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const ao=Xt;var Yt=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:a,onClick:f,"aria-label":"Next Slide"},m().createElement(jt,{icon:"right",viewBox:"6 0 12 24"}))});Yt.displayName="RightNav",Yt.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const lo=Yt;var Qt=m().memo(function(d){var a=d.isPlaying,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:f,"aria-label":"Play or Pause Slideshow"},m().createElement(jt,{strokeWidth:2,icon:a?"pause":"play"}))});Qt.displayName="PlayPause",Qt.propTypes={isPlaying:S.bool.isRequired,onClick:S.func.isRequired};const co=Qt;function st(d){return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},st(d)}function Jt(){return Jt=Object.assign?Object.assign.bind():function(d){for(var a=1;a<arguments.length;a++){var f=arguments[a];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(d[b]=f[b])}return d},Jt.apply(this,arguments)}function ar(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function lr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?ar(Object(f),!0).forEach(function(b){uo(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):ar(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function uo(d,a,f){return(a=function(b){var I=function(N,Y){if(st(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(st(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return st(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var ho={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},cr=function(d){var a=lr(lr({},ho),d),f=a.children,b=a.className,I=Zi({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return m().createElement("div",Jt({},I,{className:b}),f)};cr.propTypes={children:S.node.isRequired,className:S.string,delta:S.number,onSwiped:S.func,onSwiping:S.func};const ur=cr;function Je(d){return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Je(d)}function dr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function hr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?dr(Object(f),!0).forEach(function(b){fr(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):dr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function fo(d,a){for(var f=0;f<a.length;f++){var b=a[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,pr(b.key),b)}}function Zt(d,a){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,b){return f.__proto__=b,f},Zt(d,a)}function po(d,a){if(a&&(Je(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ce(d)}function ce(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Tt(d){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Tt(d)}function fr(d,a,f){return(a=pr(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}function pr(d){var a=function(f,b){if(Je(f)!=="object"||f===null)return f;var I=f[Symbol.toPrimitive];if(I!==void 0){var N=I.call(f,b);if(Je(N)!=="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(d,"string");return Je(a)==="symbol"?a:String(a)}var mr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],mo=(0,S.arrayOf)((0,S.shape)({srcSet:S.string,media:S.string}));function gr(d){var a=parseInt(d.keyCode||d.which||0,10);return a===66||a===62}var en=function(d){(function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),l&&Zt(c,l)})(Y,d);var a,f,b,I,N=(b=Y,I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var c,l=Tt(b);if(I){var y=Tt(this).constructor;c=Reflect.construct(l,arguments,y)}else c=l.apply(this,arguments);return po(this,c)});function Y(c){var l;return function(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}(this,Y),fr(ce(l=N.call(this,c)),"onBulletClick",function(y,O){var P=l.props,E=P.onBulletClick,K=P.items,U=l.state.currentIndex;y.target.blur(),U!==O&&(K.length===2?l.slideToIndexWithStyleReset(O,y):l.slideToIndex(O,y)),E&&E(y,O)}),l.state={currentIndex:c.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(c.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},l.loadedImages={},l.imageGallery=m().createRef(),l.thumbnailsWrapper=m().createRef(),l.thumbnails=m().createRef(),l.imageGallerySlideWrapper=m().createRef(),l.handleImageLoaded=l.handleImageLoaded.bind(ce(l)),l.handleKeyDown=l.handleKeyDown.bind(ce(l)),l.handleMouseDown=l.handleMouseDown.bind(ce(l)),l.handleResize=l.handleResize.bind(ce(l)),l.handleTouchMove=l.handleTouchMove.bind(ce(l)),l.handleOnSwiped=l.handleOnSwiped.bind(ce(l)),l.handleScreenChange=l.handleScreenChange.bind(ce(l)),l.handleSwiping=l.handleSwiping.bind(ce(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(ce(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(ce(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(ce(l)),l.handleImageError=l.handleImageError.bind(ce(l)),l.pauseOrPlay=l.pauseOrPlay.bind(ce(l)),l.renderThumbInner=l.renderThumbInner.bind(ce(l)),l.renderItem=l.renderItem.bind(ce(l)),l.slideLeft=l.slideLeft.bind(ce(l)),l.slideRight=l.slideRight.bind(ce(l)),l.toggleFullScreen=l.toggleFullScreen.bind(ce(l)),l.togglePlay=l.togglePlay.bind(ce(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=ue(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=Y,f=[{key:"componentDidMount",value:function(){var c=this.props,l=c.autoPlay,y=c.useWindowKeyDown;l&&this.play(),y?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(c,l){var y=this.props,O=y.items,P=y.lazyLoad,E=y.slideDuration,K=y.slideInterval,U=y.startIndex,q=y.thumbnailPosition,M=y.showThumbnails,z=y.useWindowKeyDown,F=this.state,B=F.currentIndex,G=F.isPlaying,te=c.items.length!==O.length,le=!ee()(c.items,O),we=c.startIndex!==U,ye=c.thumbnailPosition!==q,he=c.showThumbnails!==M;K===c.slideInterval&&E===c.slideDuration||G&&(this.pause(),this.play()),ye&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),he&&M&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),he&&!M&&this.removeThumbnailsResizeObserver(),(te||he)&&this.handleResize(),l.currentIndex!==B&&this.slideThumbnailBar(),c.slideDuration!==E&&(this.slideToIndex=ue(this.unthrottledSlideToIndex,E,{trailing:!1})),!P||c.lazyLoad&&!le||(this.lazyLoaded=[]),z!==c.useWindowKeyDown&&(z?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(we||le)&&this.setState({currentIndex:U,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var c=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),c?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var c=this,l=this.state,y=l.currentIndex,O=l.isTransitioning,P=this.props,E=P.onSlide,K=P.slideDuration;this.transitionTimer=window.setTimeout(function(){O&&(c.setState({isTransitioning:!O,isSwipingThumbnail:!1}),E&&E(y))},K+50)}},{key:"onThumbnailClick",value:function(c,l){var y=this.props,O=y.onThumbnailClick,P=y.items,E=this.state.currentIndex;c.target.parentNode.parentNode.blur(),E!==l&&(P.length===2?this.slideToIndexWithStyleReset(l,c):this.slideToIndex(l,c)),O&&O(c,l)}},{key:"onThumbnailMouseOver",value:function(c,l){var y=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){y.slideToIndex(l),y.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var c=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,c&&this.play()}}},{key:"setThumbsTranslate",value:function(c){this.setState({thumbsTranslate:c})}},{key:"setModalFullscreen",value:function(c){var l=this.props.onScreenChange;this.setState({modalFullscreen:c}),l&&l(c)}},{key:"getThumbsTranslate",value:function(c){var l,y=this.props,O=y.disableThumbnailScroll,P=y.items,E=this.state,K=E.thumbnailsWrapperWidth,U=E.thumbnailsWrapperHeight,q=this.thumbnails&&this.thumbnails.current;if(O)return 0;if(q){if(this.isThumbnailVertical()){if(q.scrollHeight<=U)return 0;l=q.scrollHeight-U}else{if(q.scrollWidth<=K||K<=0)return 0;l=q.scrollWidth-K}return c*(l/(P.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(c){switch(c){case"left":c=" ".concat("image-gallery-thumbnails-left");break;case"right":c=" ".concat("image-gallery-thumbnails-right");break;case"bottom":c=" ".concat("image-gallery-thumbnails-bottom");break;case"top":c=" ".concat("image-gallery-thumbnails-top")}return c}},{key:"getAlignmentClassName",value:function(c){var l=this.state.currentIndex,y=this.props,O=y.infinite,P=y.items,E="",K="image-gallery-left",U="image-gallery-right";switch(c){case l-1:E=" ".concat(K);break;case l:E=" ".concat("image-gallery-center");break;case l+1:E=" ".concat(U)}return P.length>=3&&O&&(c===0&&l===P.length-1?E=" ".concat(U):c===P.length-1&&l===0&&(E=" ".concat(K))),E}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,P=l.previousIndex,E=y!==P,K=c===0&&P===0,U=c===1&&P===1,q=c===0&&y===1,M=c===1&&y===0,z=O===0,F=-100*y+100*c+O;return O>0?this.direction="left":O<0&&(this.direction="right"),M&&O>0&&(F=-100+O),q&&O<0&&(F=100+O),E?K&&z&&this.direction==="left"?F=100:U&&z&&this.direction==="right"&&(F=-100):(M&&z&&this.direction==="left"&&(F=-100),q&&z&&this.direction==="right"&&(F=100)),F}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,P=l.slideStyle,E=this.props,K=E.infinite,U=E.items,q=E.useTranslate3D,M=E.isRTL,z=-100*y,F=U.length-1,B=(z+100*c)*(M?-1:1)+O;K&&U.length>2&&(y===0&&c===F?B=-100*(M?-1:1)+O:y===F&&c===0&&(B=100*(M?-1:1)+O)),K&&U.length===2&&(B=this.getTranslateXForTwoSlide(c));var G="translate(".concat(B,"%, 0)");return q&&(G="translate3d(".concat(B,"%, 0, 0)")),hr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:G,MozTransform:G,msTransform:G,OTransform:G,transform:G},P)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var c,l=this.props,y=l.useTranslate3D,O=l.isRTL,P=this.state,E=P.thumbsTranslate,K=P.thumbsStyle,U=O?-1*E:E;return this.isThumbnailVertical()?(c="translate(0, ".concat(E,"px)"),y&&(c="translate3d(0, ".concat(E,"px, 0)"))):(c="translate(".concat(U,"px, 0)"),y&&(c="translate3d(".concat(U,"px, 0, 0)"))),hr({WebkitTransform:c,MozTransform:c,msTransform:c,OTransform:c,transform:c},K)}},{key:"getSlideItems",value:function(){var c=this,l=this.state.currentIndex,y=this.props,O=y.items,P=y.slideOnThumbnailOver,E=y.onClick,K=y.lazyLoad,U=y.onTouchMove,q=y.onTouchEnd,M=y.onTouchStart,z=y.onMouseOver,F=y.onMouseLeave,B=y.renderItem,G=y.renderThumbInner,te=y.showThumbnails,le=y.showBullets,we=[],ye=[],he=[];return O.forEach(function(se,ne){var De=c.getAlignmentClassName(ne),at=se.originalClass?" ".concat(se.originalClass):"",lt=se.thumbnailClass?" ".concat(se.thumbnailClass):"",Me=se.renderItem||B||c.renderItem,Ue=se.renderThumbInner||G||c.renderThumbInner,_e=!K||De||c.lazyLoaded[ne];_e&&K&&!c.lazyLoaded[ne]&&(c.lazyLoaded[ne]=!0);var Ze=c.getSlideStyle(ne),ct=m().createElement("div",{"aria-label":"Go to Slide ".concat(ne+1),key:"slide-".concat(ne),tabIndex:"-1",className:"image-gallery-slide ".concat(De," ").concat(at),style:Ze,onClick:E,onKeyUp:c.handleSlideKeyUp,onTouchMove:U,onTouchEnd:q,onTouchStart:M,onMouseOver:z,onFocus:z,onMouseLeave:F,role:"button"},_e?Me(se):m().createElement("div",{style:{height:"100%"}}));if(we.push(ct),te&&se.thumbnail){var et=p("image-gallery-thumbnail",lt,{active:l===ne});ye.push(m().createElement("button",{key:"thumbnail-".concat(ne),type:"button",tabIndex:"0","aria-pressed":l===ne?"true":"false","aria-label":"Go to Slide ".concat(ne+1),className:et,onMouseLeave:P?c.onThumbnailMouseLeave:null,onMouseOver:function(ke){return c.handleThumbnailMouseOver(ke,ne)},onFocus:function(ke){return c.handleThumbnailMouseOver(ke,ne)},onKeyUp:function(ke){return c.handleThumbnailKeyUp(ke,ne)},onClick:function(ke){return c.onThumbnailClick(ke,ne)}},Ue(se)))}if(le){var ut=p("image-gallery-bullet",se.bulletClass,{active:l===ne});he.push(m().createElement("button",{type:"button",key:"bullet-".concat(ne),className:ut,onClick:function(ke){return c.onBulletClick(ke,ne)},"aria-pressed":l===ne?"true":"false","aria-label":"Go to Slide ".concat(ne+1)}))}}),{slides:we,thumbnails:ye,bullets:he}}},{key:"ignoreIsTransitioning",value:function(){var c=this.props.items,l=this.state,y=l.previousIndex,O=l.currentIndex,P=c.length-1;return Math.abs(y-O)>1&&!(y===0&&O===P)&&!(y===P&&O===0)}},{key:"isFirstOrLastSlide",value:function(c){return c===this.props.items.length-1||c===0}},{key:"slideIsTransitioning",value:function(c){var l=this.state,y=l.isTransitioning,O=l.previousIndex,P=l.currentIndex;return y&&!(c===O||c===P)}},{key:"isSlideVisible",value:function(c){return!this.slideIsTransitioning(c)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(c)}},{key:"slideThumbnailBar",value:function(){var c=this.state,l=c.currentIndex,y=c.isSwipingThumbnail,O=-this.getThumbsTranslate(l);y||(l===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:O,thumbsSwipedTranslate:O}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){return this.props.infinite||this.canSlidePrevious()}},{key:"canSlideRight",value:function(){return this.props.infinite||this.canSlideNext()}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(c){var l=c.event,y=c.absX,O=c.dir,P=this.props,E=P.disableSwipe,K=P.stopPropagation,U=this.state,q=U.galleryWidth,M=U.isTransitioning,z=U.swipingUpDown,F=U.swipingLeftRight;if(O!==Ye&&O!==$e&&!z||F){if(O!==Xe&&O!==Be||F||this.setState({swipingLeftRight:!0}),!E){var B=this.props.swipingTransitionDuration;if(K&&l.preventDefault(),M)this.setState({currentSlideOffset:0});else{var G=O===Be?1:-1,te=y/q*100;Math.abs(te)>=100&&(te=100);var le={transition:"transform ".concat(B,"ms ease-out")};this.setState({currentSlideOffset:G*te,slideStyle:le})}}}else z||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,y=c.absX,O=c.absY,P=c.dir,E=this.props,K=E.stopPropagation,U=E.swipingThumbnailTransitionDuration,q=this.state,M=q.thumbsSwipedTranslate,z=q.thumbnailsWrapperHeight,F=q.thumbnailsWrapperWidth,B=q.swipingUpDown,G=q.swipingLeftRight;if(this.isThumbnailVertical()){if((P===Xe||P===Be||G)&&!B)return void(G||this.setState({swipingLeftRight:!0}));P!==Ye&&P!==$e||B||this.setState({swipingUpDown:!0})}else{if((P===Ye||P===$e||B)&&!G)return void(B||this.setState({swipingUpDown:!0}));P!==Xe&&P!==Be||G||this.setState({swipingLeftRight:!0})}var te,le,we,ye,he,se=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(te=M+(P===$e?O:-O),le=se.scrollHeight-z+20,we=Math.abs(te)>le,ye=te>20,he=se.scrollHeight<=z):(te=M+(P===Be?y:-y),le=se.scrollWidth-F+20,we=Math.abs(te)>le,ye=te>20,he=se.scrollWidth<=F),!he&&(P!==Xe&&P!==Ye||!we)&&(P!==Be&&P!==$e||!ye)){K&&l.stopPropagation();var ne={transition:"transform ".concat(U,"ms ease-out")};this.setState({thumbsTranslate:te,thumbsStyle:ne})}}},{key:"handleOnThumbnailSwiped",value:function(){var c=this.state.thumbsTranslate,l=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:c,thumbsStyle:{transition:"all ".concat(l,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var c=this.state.currentSlideOffset,l=this.props.swipeThreshold;return Math.abs(c)>l}},{key:"resetSwipingDirection",value:function(){var c=this.state,l=c.swipingUpDown,y=c.swipingLeftRight;l&&this.setState({swipingUpDown:!1}),y&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(c){var l=c.event,y=c.dir,O=c.velocity,P=this.props,E=P.disableSwipe,K=P.stopPropagation,U=P.flickThreshold;if(!E){var q=this.props.isRTL;K&&l.stopPropagation(),this.resetSwipingDirection();var M=(y===Xe?1:-1)*(q?-1:1),z=O>U&&!(y===Ye||y===$e);this.handleOnSwipedTo(M,z)}}},{key:"handleOnSwipedTo",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=O;!this.sufficientSwipe()&&!l||P||(E+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(E=O),this.unthrottledSlideToIndex(E)}},{key:"handleTouchMove",value:function(c){this.state.swipingLeftRight&&c.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(c){var l=this.props,y=l.disableKeyDown,O=l.useBrowserFullscreen,P=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!y)switch(parseInt(c.keyCode||c.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(c);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(c);break;case 27:P&&!O&&this.exitFullScreen()}}},{key:"handleImageError",value:function(c){var l=this.props.onErrorImageURL;l&&c.target.src.indexOf(l)===-1&&(c.target.src=l)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var c=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(c)))}},{key:"initSlideWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeSlideWrapperObserver=new Jn(Te(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperWidth:O.contentRect.width},l.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(c.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeThumbnailWrapperObserver=new Jn(Te(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperHeight:O.contentRect.height},l.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(c.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var c=this.props,l=c.onScreenChange,y=c.useBrowserFullscreen,O=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,P=this.imageGallery.current===O;l&&l(P),y&&this.setState({isFullscreen:P})}},{key:"slideToIndex",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=this.props,K=E.items,U=E.slideDuration,q=E.onBeforeSlide;if(!P){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var M=K.length-1,z=c;c<0?z=M:c>M&&(z=0),q&&z!==O&&q(z),this.setState({previousIndex:O,currentIndex:z,isTransitioning:z!==O,currentSlideOffset:0,slideStyle:{transition:"all ".concat(U,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"right":"left")}},{key:"slideRight",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"left":"right")}},{key:"slideTo",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=this.props.items,K=O+(l==="left"?-1:1);P||(E.length===2?this.slideToIndexWithStyleReset(K,c):this.slideToIndex(K,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var y=this,O=this.state,P=O.currentIndex,E=O.currentSlideOffset;this.setState({currentSlideOffset:E+(P>c?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return y.slideToIndex(c,l)},25)})}},{key:"handleThumbnailMouseOver",value:function(c,l){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(c,l)}},{key:"handleThumbnailKeyUp",value:function(c,l){gr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){gr(c)&&(0,this.props.onClick)(c)}},{key:"isThumbnailVertical",value:function(){var c=this.props.thumbnailPosition;return c==="left"||c==="right"}},{key:"addScreenChangeEvent",value:function(){var c=this;mr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;mr.forEach(function(l){document.removeEventListener(l,c.handleScreenChange)})}},{key:"fullScreen",value:function(){var c=this.props.useBrowserFullscreen,l=this.imageGallery.current;c?l.requestFullscreen?l.requestFullscreen():l.msRequestFullscreen?l.msRequestFullscreen():l.mozRequestFullScreen?l.mozRequestFullScreen():l.webkitRequestFullscreen?l.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var c=this.state.isFullscreen,l=this.props.useBrowserFullscreen;c&&(l?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var c=this.props.infinite,l=this.state.currentIndex;c||this.canSlideRight()?this.slideToIndex(l+1):this.pause()}},{key:"play",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props,y=l.onPlay,O=l.slideInterval,P=l.slideDuration,E=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(O,P)),y&&c&&y(E))}},{key:"pause",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props.onPause,y=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),l&&c&&l(y))}},{key:"isImageLoaded",value:function(c){return!!this.loadedImages[c.original]||(this.loadedImages[c.original]=!0,!1)}},{key:"handleImageLoaded",value:function(c,l){var y=this.props.onImageLoad;!this.loadedImages[l]&&y&&(this.loadedImages[l]=!0,y(c))}},{key:"renderItem",value:function(c){var l=this.state.isFullscreen,y=this.props.onImageError||this.handleImageError;return m().createElement(no,{description:c.description,fullscreen:c.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:l,onImageError:y,original:c.original,originalAlt:c.originalAlt,originalHeight:c.originalHeight,originalWidth:c.originalWidth,originalTitle:c.originalTitle,sizes:c.sizes,loading:c.loading,srcSet:c.srcSet})}},{key:"renderThumbInner",value:function(c){var l=this.props.onThumbnailError||this.handleImageError;return m().createElement("span",{className:"image-gallery-thumbnail-inner"},m().createElement("img",{className:"image-gallery-thumbnail-image",src:c.thumbnail,height:c.thumbnailHeight,width:c.thumbnailWidth,alt:c.thumbnailAlt,title:c.thumbnailTitle,loading:c.thumbnailLoading,onError:l}),c.thumbnailLabel&&m().createElement("div",{className:"image-gallery-thumbnail-label"},c.thumbnailLabel))}},{key:"render",value:function(){var c=this.state,l=c.currentIndex,y=c.isFullscreen,O=c.modalFullscreen,P=c.isPlaying,E=this.props,K=E.additionalClass,U=E.disableThumbnailSwipe,q=E.indexSeparator,M=E.isRTL,z=E.items,F=E.thumbnailPosition,B=E.renderFullscreenButton,G=E.renderCustomControls,te=E.renderLeftNav,le=E.renderRightNav,we=E.showBullets,ye=E.showFullscreenButton,he=E.showIndex,se=E.showThumbnails,ne=E.showNav,De=E.showPlayButton,at=E.renderPlayPauseButton,lt=this.getThumbnailStyle(),Me=this.getSlideItems(),Ue=Me.slides,_e=Me.thumbnails,Ze=Me.bullets,ct=p("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(F),{"image-gallery-rtl":M}),et=m().createElement("div",{ref:this.imageGallerySlideWrapper,className:ct},G&&G(),this.canSlide()?m().createElement(m().Fragment,null,ne&&m().createElement(m().Fragment,null,te(this.slideLeft,!this.canSlideLeft()),le(this.slideRight,!this.canSlideRight())),m().createElement(ur,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},m().createElement("div",{className:"image-gallery-slides"},Ue))):m().createElement("div",{className:"image-gallery-slides"},Ue),De&&at(this.togglePlay,P),we&&m().createElement("div",{className:"image-gallery-bullets"},m().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Ze)),ye&&B(this.toggleFullScreen,y),he&&m().createElement("div",{className:"image-gallery-index"},m().createElement("span",{className:"image-gallery-index-current"},l+1),m().createElement("span",{className:"image-gallery-index-separator"},q),m().createElement("span",{className:"image-gallery-index-total"},z.length))),ut=p("image-gallery",K,{"fullscreen-modal":O}),ke=p("image-gallery-content",this.getThumbnailPositionClassName(F),{fullscreen:y}),bo=p("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(F),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&M},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!U},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!U});return m().createElement("div",{ref:this.imageGallery,className:ut,"aria-live":"polite"},m().createElement("div",{className:ke},(F==="bottom"||F==="right")&&et,se&&_e.length>0?m().createElement(ur,{className:bo,delta:0,onSwiping:!U&&this.handleThumbnailSwiping,onSwiped:!U&&this.handleOnThumbnailSwiped},m().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},m().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:lt,"aria-label":"Thumbnail Navigation"},_e))):null,(F==="top"||F==="left")&&et))}}],f&&fo(a.prototype,f),Object.defineProperty(a,"prototype",{writable:!1}),Y}(m().Component);en.propTypes={flickThreshold:S.number,items:(0,S.arrayOf)((0,S.shape)({bulletClass:S.string,bulletOnClick:S.func,description:S.string,original:S.string,originalHeight:S.number,originalWidth:S.number,loading:S.string,thumbnailHeight:S.number,thumbnailWidth:S.number,thumbnailLoading:S.string,fullscreen:S.string,originalAlt:S.string,originalTitle:S.string,thumbnail:S.string,thumbnailAlt:S.string,thumbnailLabel:S.string,thumbnailTitle:S.string,originalClass:S.string,thumbnailClass:S.string,renderItem:S.func,renderThumbInner:S.func,imageSet:mo,srcSet:S.string,sizes:S.string})).isRequired,showNav:S.bool,autoPlay:S.bool,lazyLoad:S.bool,infinite:S.bool,showIndex:S.bool,showBullets:S.bool,showThumbnails:S.bool,showPlayButton:S.bool,showFullscreenButton:S.bool,disableThumbnailScroll:S.bool,disableKeyDown:S.bool,disableSwipe:S.bool,disableThumbnailSwipe:S.bool,useBrowserFullscreen:S.bool,onErrorImageURL:S.string,indexSeparator:S.string,thumbnailPosition:(0,S.oneOf)(["top","bottom","left","right"]),startIndex:S.number,slideDuration:S.number,slideInterval:S.number,slideOnThumbnailOver:S.bool,swipeThreshold:S.number,swipingTransitionDuration:S.number,swipingThumbnailTransitionDuration:S.number,onSlide:S.func,onBeforeSlide:S.func,onScreenChange:S.func,onPause:S.func,onPlay:S.func,onClick:S.func,onImageLoad:S.func,onImageError:S.func,onTouchMove:S.func,onTouchEnd:S.func,onTouchStart:S.func,onMouseOver:S.func,onMouseLeave:S.func,onBulletClick:S.func,onThumbnailError:S.func,onThumbnailClick:S.func,renderCustomControls:S.func,renderLeftNav:S.func,renderRightNav:S.func,renderPlayPauseButton:S.func,renderFullscreenButton:S.func,renderItem:S.func,renderThumbInner:S.func,stopPropagation:S.bool,additionalClass:S.string,useTranslate3D:S.bool,isRTL:S.bool,useWindowKeyDown:S.bool},en.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onBulletClick:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(d,a){return m().createElement(ao,{onClick:d,disabled:a})},renderRightNav:function(d,a){return m().createElement(lo,{onClick:d,disabled:a})},renderPlayPauseButton:function(d,a){return m().createElement(co,{onClick:d,isPlaying:a})},renderFullscreenButton:function(d,a){return m().createElement(so,{onClick:d,isFullscreen:a})},useWindowKeyDown:!0};const go=en})(),h})())}(zt)),zt.exports}var Da=La();const za=ko(Da);function Fa(){var e=new Map;function t(n){var r=n.root,i=n.rootMargin,s=n.threshold,h=e.get(r);h||(h=new Map,e.set(r,h));var u=JSON.stringify({rootMargin:i,threshold:s}),p=h.get(u);if(!p){var g=new Map,m=new IntersectionObserver(function(v){v.forEach(function(j){var w=g.get(j.target);w?.(j)})},{root:r,rootMargin:i,threshold:s});p={observer:m,entryCallbacks:g},h.set(u,p)}return{observe:function(j,w){var k,x;(k=p)==null||k.entryCallbacks.set(j,w),(x=p)==null||x.observer.observe(j)},unobserve:function(j){var w,k;(w=p)==null||w.entryCallbacks.delete(j),(k=p)==null||k.observer.unobserve(j)}}}return{getObserver:t}}var Wa="0px",Aa=[0],Na=Fa();function Ba(e){var t,n,r=(t=e?.rootMargin)!=null?t:Wa,i=(n=e?.threshold)!=null?n:Aa,s=L.useRef(null),h=L.useRef(null),u=L.useRef(null),p=L.useState(),g=p[0],m=p[1],v=L.useCallback(function(){var x=s.current;if(!x){m(void 0);return}var C=Na.getObserver({root:h.current,rootMargin:r,threshold:i});C.observe(x,function(_){m(_)}),u.current=C},[r,i]),j=L.useCallback(function(){var x=u.current,C=s.current;C&&x?.unobserve(C),u.current=null},[]),w=L.useCallback(function(x){j(),s.current=x,v()},[v,j]),k=L.useCallback(function(x){j(),h.current=x,v()},[v,j]);return[w,{entry:g,rootRef:k}]}function Tn(){return Tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn.apply(this,arguments)}function $a(e){var t,n=Ba(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),h=L.useState(s),u=h[0],p=h[1];return s&&!u&&p(!0),[r,Tn({},i,{isVisible:s,wasEverVisible:u})]}var Ua=100;function Ka(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,h=e.delayInMs,u=h===void 0?Ua:h,p=$a({rootMargin:i}),g=p[0],m=p[1],v=m.rootRef,j=m.isVisible,w=!s&&!t&&j&&n;return L.useEffect(function(){if(w){var k=setTimeout(function(){r()},u);return function(){clearTimeout(k)}}},[r,w,u]),[g,{rootRef:v}]}const Ha={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>'},Va={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005.195v12.666c0 1.96-1.537 3.56-3.472 3.662l-.195.005H5.667a3.667 3.667 0 0 1-3.662-3.472L2 18.333V5.667c0-1.96 1.537-3.56 3.472-3.662L5.667 2h12.666zm-2.626 7.293a1 1 0 0 0-1.414 0L11 12.585l-1.293-1.292l-.094-.083a1 1 0 0 0-1.32 1.497l2 2l.094.083a1 1 0 0 0 1.32-.083l4-4l.083-.094a1 1 0 0 0-.083-1.32z"/></g>'},qa={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/>'};var sn=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function an(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Ci(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Ei(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Ga(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(i=!1);return i}var $n={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":sn?173:189,"=":sn?61:187,";":sn?59:186,"'":222,"[":219,"]":221,"\\":220},Ae={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},On={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},fe={16:!1,18:!1,17:!1,91:!1},de={};for(var Pt=1;Pt<20;Pt++)$n["f".concat(Pt)]=111+Pt;var oe=[],Ar=!1,Ii="all",Pi=[],Ht=function(t){return $n[t.toLowerCase()]||Ae[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function _i(e){Ii=e||"all"}function vt(){return Ii||"all"}function Xa(){return oe.slice(0)}function Ya(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function Qa(e){return typeof e=="string"&&(e=Ht(e)),oe.indexOf(e)!==-1}function Ja(e,t){var n,r;e||(e=vt());for(var i in de)if(Object.prototype.hasOwnProperty.call(de,i))for(n=de[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;vt()===e&&_i(t||"all")}function Za(e){var t=e.keyCode||e.which||e.charCode,n=oe.indexOf(t);if(n>=0&&oe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&oe.splice(0,oe.length),(t===93||t===224)&&(t=91),t in fe){fe[t]=!1;for(var r in Ae)Ae[r]===t&&(je[r]=!1)}}function el(e){if(typeof e>"u")Object.keys(de).forEach(function(h){return delete de[h]});else if(Array.isArray(e))e.forEach(function(h){h.key&&ln(h)});else if(typeof e=="object")e.key&&ln(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],s=n[1];typeof i=="function"&&(s=i,i=""),ln({key:e,scope:i,method:s,splitKey:"+"})}}var ln=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,h=s===void 0?"+":s,u=Ei(n);u.forEach(function(p){var g=p.split(h),m=g.length,v=g[m-1],j=v==="*"?"*":Ht(v);if(de[j]){r||(r=vt());var w=m>1?Ci(Ae,g):[];de[j]=de[j].filter(function(k){var x=i?k.method===i:!0;return!(x&&k.scope===r&&Ga(k.mods,w))})}})};function Nr(e,t,n,r){if(t.element===r){var i;if(t.scope===n||t.scope==="all"){i=t.mods.length>0;for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&(!fe[s]&&t.mods.indexOf(+s)>-1||fe[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!fe[16]&&!fe[18]&&!fe[17]&&!fe[91]||i||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Br(e,t){var n=de["*"],r=e.keyCode||e.which||e.charCode;if(je.filter.call(this,e)){if((r===93||r===224)&&(r=91),oe.indexOf(r)===-1&&r!==229&&oe.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(k){var x=On[k];e[k]&&oe.indexOf(x)===-1?oe.push(x):!e[k]&&oe.indexOf(x)>-1?oe.splice(oe.indexOf(x),1):k==="metaKey"&&e[k]&&oe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(oe=oe.slice(oe.indexOf(x))))}),r in fe){fe[r]=!0;for(var i in Ae)Ae[i]===r&&(je[i]=!0);if(!n)return}for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&(fe[s]=e[On[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(oe.indexOf(17)===-1&&oe.push(17),oe.indexOf(18)===-1&&oe.push(18),fe[17]=!0,fe[18]=!0);var h=vt();if(n)for(var u=0;u<n.length;u++)n[u].scope===h&&(e.type==="keydown"&&n[u].keydown||e.type==="keyup"&&n[u].keyup)&&Nr(e,n[u],h,t);if(r in de){for(var p=0;p<de[r].length;p++)if((e.type==="keydown"&&de[r][p].keydown||e.type==="keyup"&&de[r][p].keyup)&&de[r][p].key){for(var g=de[r][p],m=g.splitKey,v=g.key.split(m),j=[],w=0;w<v.length;w++)j.push(Ht(v[w]));j.sort().join("")===oe.sort().join("")&&Nr(e,g,h,t)}}}}function tl(e){return Pi.indexOf(e)>-1}function je(e,t,n){oe=[];var r=Ei(e),i=[],s="all",h=document,u=0,p=!1,g=!0,m="+",v=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(h=t.element),t.keyup&&(p=t.keyup),t.keydown!==void 0&&(g=t.keydown),t.capture!==void 0&&(v=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey)),typeof t=="string"&&(s=t);u<r.length;u++)e=r[u].split(m),i=[],e.length>1&&(i=Ci(Ae,e)),e=e[e.length-1],e=e==="*"?"*":Ht(e),e in de||(de[e]=[]),de[e].push({keyup:p,keydown:g,scope:s,mods:i,shortcut:r[u],method:n,key:r[u],splitKey:m,element:h});typeof h<"u"&&!tl(h)&&window&&(Pi.push(h),an(h,"keydown",function(j){Br(j,h)},v),Ar||(Ar=!0,an(window,"focus",function(){oe=[]},v)),an(h,"keyup",function(j){Br(j,h),Za(j)},v))}function nl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(de).forEach(function(n){var r=de[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var cn={setScope:_i,getScope:vt,deleteScope:Ja,getPressedKeyCodes:Xa,isPressed:Qa,filter:Ya,trigger:nl,unbind:el,keyMap:$n,modifier:Ae,modifierMap:On};for(var un in cn)Object.prototype.hasOwnProperty.call(cn,un)&&(je[un]=cn[un]);if(typeof window<"u"){var rl=window.hotkeys;je.noConflict=function(e){return e&&window.hotkeys===je&&(window.hotkeys=rl),je},window.hotkeys=je}je.filter=function(){return!0};var Ri=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},il=function(t){return Ri(t,["INPUT","TEXTAREA","SELECT"])};function ol(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,h=i.filter,u=i.keyup,p=i.keydown,g=i.filterPreventDefault,m=g===void 0?!0:g,v=i.enabled,j=v===void 0?!0:v,w=i.enableOnContentEditable,k=w===void 0?!1:w,x=L.useRef(null),C=L.useCallback(function(_,T){var W,X;return h&&!h(_)?!m:il(_)&&!Ri(_,s)||(W=_.target)!=null&&W.isContentEditable&&!k?!0:x.current===null||document.activeElement===x.current||(X=x.current)!=null&&X.contains(document.activeElement)?(t(_,T),!0):!1},r?[x,s,h].concat(r):[x,s,h]);return L.useEffect(function(){if(!j){je.unbind(e,C);return}return u&&p!==!0&&(n.keydown=!1),je(e,n||{},C),function(){return je.unbind(e,C)}},[C,e,j]),x}je.isPressed;const Mi=L.createContext({open:!1,toggleOpen:e=>{}});function sl({children:e}){const[t,n]=L.useState(!1),r=s=>{n(s??!s)},i=L.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx(Mi.Provider,{value:i,children:e})}function Un(){return L.useContext(Mi)}const Ce={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,currentPage:1,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",explorePath:"/api/blocklets/explore",exploreDidsPath:"/api/blocklets/dids",cacheSize:100},al=e=>xt(async()=>{const{data:t}=await e.get(Ce.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function ll(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...Eo(e,["sortBy","sortDirection","showResources"])}:{sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:r,onSearchSelect:i=u=>{t.onFilterChange({...n,keyword:u.title})},emptyCategory:s}=t;!n.category&&!s&&(n.category="All");const h=u=>{const p={...n,...u};r(tn(p,g=>g===""||g===void 0))};return{filters:e,cleanFilter:u=>{const p=u?tn(n,(g,m)=>u.includes(m)):{};r(tn(p,g=>g===""||g===void 0))},handleActiveMenu:u=>{u!==e.menu&&r({menu:u})},handleSort:(u,p)=>{h({sortBy:u,sortDirection:p||u==="nameAsc"?"asc":"desc"})},handleKeyword:u=>{h({category:void 0,keyword:u||void 0})},handlePrice:u=>{h({price:u===e.price?void 0:u})},handleCategory:u=>{h({category:u===e.category?"":u})},handleDeveloper:u=>{h({owner:u||void 0})},handlePage:u=>{h({currentPage:u})},handleSwitchShowResources:u=>{h({showResources:u})},handleSearchSelect:u=>{i(u)}}}const cl=(e,t,n)=>e&&t||!n,Li=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Di=(e,t,n)=>{const r=Lo(e),i=Do(r.search);if(zo(e)?.endsWith(".gif"))return i.imageFilter?Fo({...r,search:""}):e;if(i.imageFilter)return e;const s=n||window.blocklet?.version,{w:h,h:u}=typeof t=="object"?{w:t.w,h:t.h}:{w:t,h:t};return Rn(e,{...h||u?{imageFilter:"resize",w:h,h:u}:{},v:s})},ul=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],dl=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),hl=e=>Array.isArray(e)?e.map(t=>t.message).join(`
1
+ import{c0 as ze,r as L,cq as xt,ba as yo,bb as vo,cR as Ot,f6 as tt,cr as ht,f7 as xo,f8 as wo,f9 as br,aG as $t,j as o,be as We,dg as So,dv as Ct,bd as ko,f as Ve,fa as jo,a2 as To,f1 as Oo,fb as Yr,aB as Co,aC as _n,N as H,aV as ve,fc as Eo,fd as tn,c_ as yr,cv as Io,T as Q,fe as Po,f4 as Qr,C as Re,dH as Oe,ff as Jr,fg as _o,fh as Zr,dJ as ei,fi as nn,t as ti,U as Ft,y as rt,at as Wt,fj as Ro,F as nt,aU as ni,V as ri,z as Rn,dn as Fe,G as vr,aP as Mo,eN as xr,cF as Lo,fk as Do,fl as zo,fm as Fo,cD as Wo,O as Ao,dK as No,fn as Bo,dI as $o,bu as Uo,_ as Ko,fo as Ho,fp as wr,dd as Ne,m as qe,az as Mn,aO as Sr,o as R,bk as Vo,fq as ii,b2 as qo,aE as Et,v as At,a7 as Go,a8 as oi,aF as Xo,fr as kr,a9 as Yo,bn as Ln,$ as Qo,D as Jo,X as Zo,cL as es,Y as ft,eC as ts,H as Ke,b as ns,n as rs,a$ as is,ad as os,E as si,cw as ss,b8 as as,W as ls}from"./index-CqD2fBUt.js";import{P as cs}from"./ChevronLeft-ClJUpIrX.js";import{N as us}from"./ChevronRight-pNcrG18Z.js";import{S as ds}from"./Search-C1hYBh2z.js";import{y as hs}from"./index-hHL_v0H9.js";import{o as fs,u as ps}from"./blocklet-CXBJcwmD.js";import{A as ms}from"./Autocomplete-Bj2hcqGf.js";import{V as gs}from"./Verified-B9q95gmQ.js";import{S as bs,V as ys}from"./VerifiedUser-CPgjTUes.js";import{A as vs}from"./Add-D7FBmxz9.js";import{L as ai}from"./Launch-CmazaRGZ.js";import{D as xs}from"./Done-Bvnq95wW.js";import{D as li}from"./DeleteOutline-0Pjk0X04.js";import{D as ws}from"./delete-confirm-i_RblorR.js";import{I as Ss}from"./MoreVert-CpVaEDbL.js";import{g as gt}from"./get-safe-url-CO9heLC_.js";import{B as jr}from"./ButtonGroup-CToFieon.js";var ks=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Tr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},js=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Ts=function(e,t){t===void 0&&(t={});var n=t.target,r=t.isNoMore,i=t.threshold,s=i===void 0?100:i,h=t.direction,u=h===void 0?"bottom":h,p=t.reloadDeps,g=p===void 0?[]:p,m=t.manual,v=t.onBefore,j=t.onSuccess,w=t.onError,k=t.onFinally,x=ze(L.useState(),2),C=x[0],_=x[1],T=ze(L.useState(!1),2),W=T[0],X=T[1],J=u==="top",A=L.useRef(void 0),V=L.useRef(0),Z=L.useMemo(function(){return r?r(C):!1},[C]),re=xt(function(ie){return yo(void 0,void 0,void 0,function(){var ee,me,Ie,Pe;return vo(this,function(wt){switch(wt.label){case 0:return[4,e(ie)];case 1:return ee=wt.sent(),_(ie?Ot(Ot({},ee),{list:J?tt(tt([],ze(ee.list),!1),ze((Ie=ie.list)!==null&&Ie!==void 0?Ie:[]),!1):tt(tt([],ze((Pe=ie.list)!==null&&Pe!==void 0?Pe:[]),!1),ze(ee.list),!1)}):Ot(Ot({},ee),{list:tt([],ze((me=ee.list)!==null&&me!==void 0?me:[]),!1)})),[2,ee]}})})},{manual:m,onFinally:function(ie,ee,me){X(!1),k?.(ee,me)},onBefore:function(){return v?.()},onSuccess:function(ie){setTimeout(function(){if(J){var ee=br(n);if(ee=ee===document?document.documentElement:ee,ee){var me=Tr(ee);ee.scrollTo(0,me-V.current)}}else ue()}),j?.(ie)},onError:function(ie){return w?.(ie)}}),$=re.loading,Ee=re.error,ge=re.run,Se=re.runAsync,pe=re.cancel,be=ht(function(){Z||(X(!0),ge(C))}),D=ht(function(){return Z?Promise.reject():(X(!0),Se(C))}),ae=function(){return X(!1),ge()},Te=function(){return X(!1),Se()},ue=function(){var ie=br(n);if(ie){var ee=ie===document?document.documentElement:ie,me=ks(ee),Ie=Tr(ee),Pe=js(ee);J?(A.current!==void 0&&A.current>me&&me<=s&&be(),A.current=me,V.current=Ie-me):Ie-me<=Pe+s&&be()}};return xo("scroll",function(){$||W||ue()},{target:n}),wo(function(){ge()},tt([],ze(g),!1)),{data:C,loading:!W&&$,error:Ee,loadingMore:W,noMore:Z,loadMore:be,loadMoreAsync:D,reload:ht(ae),reloadAsync:ht(Te),mutate:_,cancel:pe}};const Os=$t(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"})),Cs=$t(o.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),Es=$t(o.jsx("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"})),Is=$t(o.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),gc="blocklet-add-component-registry",bc="server-add-registry",Ps={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 16l2-6l6-2l-2 6l-6 2"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-9v2m0 14v2m-9-9h2m14 0h2"/></g>'},pt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ut=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const u=i.pop(),p=i.pop(),g={provider:i.length>0?i[0]:r,prefix:p,name:u};return t&&!Lt(g)?null:g}const s=i[0],h=s.split("-");if(h.length>1){const u={provider:r,prefix:h.shift(),name:h.join("-")};return t&&!Lt(u)?null:u}if(n&&r===""){const u={provider:r,prefix:"",name:s};return t&&!Lt(u,n)?null:u}return null},Lt=(e,t)=>e?!!((e.provider===""||e.provider.match(pt))&&(t&&e.prefix===""||e.prefix.match(pt))&&e.name.match(pt)):!1,ci=Object.freeze({left:0,top:0,width:16,height:16}),Nt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Dn=Object.freeze({...ci,...Nt}),yn=Object.freeze({...Dn,body:"",hidden:!1});function _s(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Or(e,t){const n=_s(e,t);for(const r in yn)r in Nt?r in e&&!(r in n)&&(n[r]=Nt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Rs(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(h){if(n[h])return i[h]=[];if(!(h in i)){i[h]=null;const u=r[h]&&r[h].parent,p=u&&s(u);p&&(i[h]=[u].concat(p))}return i[h]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Ms(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function h(u){s=Or(r[u]||i[u],s)}return h(t),n.forEach(h),Or(e,s)}function ui(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=Rs(e);for(const i in r){const s=r[i];s&&(t(i,Ms(e,i,s)),n.push(i))}return n}const Ls={provider:"",aliases:{},not_found:{},...ci};function rn(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function di(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!rn(e,Ls))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(pt)||typeof s.body!="string"||!rn(s,yn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],h=s.parent;if(!i.match(pt)||typeof h!="string"||!n[h]&&!r[h]||!rn(s,yn))return null}return t}const Cr=Object.create(null);function Ds(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function He(e,t){const n=Cr[e]||(Cr[e]=Object.create(null));return n[t]||(n[t]=Ds(e,t))}function zn(e,t){return di(t)?ui(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function zs(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let bt=!1;function hi(e){return typeof e=="boolean"&&(bt=e),bt}function Fs(e){const t=typeof e=="string"?Ut(e,!0,bt):e;if(t){const n=He(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Ws(e,t){const n=Ut(e,!0,bt);if(!n)return!1;const r=He(n.provider,n.prefix);return zs(r,n.name,t)}function As(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),bt&&!t&&!e.prefix){let i=!1;return di(e)&&(e.prefix="",ui(e,(s,h)=>{h&&Ws(s,h)&&(i=!0)})),i}const n=e.prefix;if(!Lt({provider:t,prefix:n,name:"a"}))return!1;const r=He(t,n);return!!zn(r,e)}const fi=Object.freeze({width:null,height:null}),pi=Object.freeze({...fi,...Nt}),Ns=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Bs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Er(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Ns);if(r===null||!r.length)return e;const i=[];let s=r.shift(),h=Bs.test(s);for(;;){if(h){const u=parseFloat(s);isNaN(u)?i.push(s):i.push(Math.ceil(u*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");h=!h}}const $s=e=>e==="unset"||e==="undefined"||e==="none";function Us(e,t){const n={...Dn,...e},r={...pi,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(k=>{const x=[],C=k.hFlip,_=k.vFlip;let T=k.rotate;C?_?T+=2:(x.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),x.push("scale(-1 1)"),i.top=i.left=0):_&&(x.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),x.push("scale(1 -1)"),i.top=i.left=0);let W;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:W=i.height/2+i.top,x.unshift("rotate(90 "+W.toString()+" "+W.toString()+")");break;case 2:x.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:W=i.width/2+i.left,x.unshift("rotate(-90 "+W.toString()+" "+W.toString()+")");break}T%2===1&&(i.left!==i.top&&(W=i.left,i.left=i.top,i.top=W),i.width!==i.height&&(W=i.width,i.width=i.height,i.height=W)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const h=r.width,u=r.height,p=i.width,g=i.height;let m,v;h===null?(v=u===null?"1em":u==="auto"?g:u,m=Er(v,p/g)):(m=h==="auto"?p:h,v=u===null?Er(m,g/p):u==="auto"?g:u);const j={},w=(k,x)=>{$s(x)||(j[k]=x.toString())};return w("width",m),w("height",v),j.viewBox=i.left.toString()+" "+i.top.toString()+" "+p.toString()+" "+g.toString(),{attributes:j,body:s}}const Ks=/\sid="(\S+)"/g,Hs="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Vs=0;function qs(e,t=Hs){const n=[];let r;for(;r=Ks.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const h=typeof t=="function"?t(s):t+(Vs++).toString(),u=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+u+')([")]|\\.[a-z])',"g"),"$1"+h+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const vn=Object.create(null);function Gs(e,t){vn[e]=t}function xn(e){return vn[e]||vn[""]}function Fn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Wn=Object.create(null),dt=["https://api.simplesvg.com","https://api.unisvg.com"],Dt=[];for(;dt.length>0;)dt.length===1||Math.random()>.5?Dt.push(dt.shift()):Dt.push(dt.pop());Wn[""]=Fn({resources:["https://api.iconify.design"].concat(Dt)});function Xs(e,t){const n=Fn(t);return n===null?!1:(Wn[e]=n,!0)}function An(e){return Wn[e]}const Ys=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ir=Ys();function Qs(e,t){const n=An(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(h=>{i=Math.max(i,h.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Js(e){return e===404}const Zs=(e,t,n)=>{const r=[],i=Qs(e,t),s="icons";let h={type:s,provider:e,prefix:t,icons:[]},u=0;return n.forEach((p,g)=>{u+=p.length+1,u>=i&&g>0&&(r.push(h),h={type:s,provider:e,prefix:t,icons:[]},u=p.length),h.icons.push(p)}),r.push(h),r};function ea(e){if(typeof e=="string"){const t=An(e);if(t)return t.path}return"/"}const ta=(e,t,n)=>{if(!Ir){n("abort",424);return}let r=ea(t.provider);switch(t.type){case"icons":{const s=t.prefix,u=t.icons.join(","),p=new URLSearchParams({icons:u});r+=s+".json?"+p.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;Ir(e+r).then(s=>{const h=s.status;if(h!==200){setTimeout(()=>{n(Js(h)?"abort":"next",h)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},na={prepare:Zs,send:ta};function ra(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,h=i.prefix,u=i.name,p=n[s]||(n[s]=Object.create(null)),g=p[h]||(p[h]=He(s,h));let m;u in g.icons?m=t.loaded:h===""||g.missing.has(u)?m=t.missing:m=t.pending;const v={provider:s,prefix:h,name:u};m.push(v)}),t}function mi(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function ia(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const h=s.icons,u=h.pending.length;h.pending=h.pending.filter(p=>{if(p.prefix!==i)return!0;const g=p.name;if(e.icons[g])h.loaded.push({provider:r,prefix:i,name:g});else if(e.missing.has(g))h.missing.push({provider:r,prefix:i,name:g});else return n=!0,!0;return!1}),h.pending.length!==u&&(n||mi([e],s.id),s.callback(h.loaded.slice(0),h.missing.slice(0),h.pending.slice(0),s.abort))})}))}let oa=0;function sa(e,t,n){const r=oa++,i=mi.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(h=>{(h.loaderCallbacks||(h.loaderCallbacks=[])).push(s)}),i}function aa(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Ut(i,t,n):i;s&&r.push(s)}),r}var la={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ca(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let h;if(e.random){let A=e.resources.slice(0);for(h=[];A.length>1;){const V=Math.floor(Math.random()*A.length);h.push(A[V]),A=A.slice(0,V).concat(A.slice(V+1))}h=h.concat(A)}else h=e.resources.slice(s).concat(e.resources.slice(0,s));const u=Date.now();let p="pending",g=0,m,v=null,j=[],w=[];typeof r=="function"&&w.push(r);function k(){v&&(clearTimeout(v),v=null)}function x(){p==="pending"&&(p="aborted"),k(),j.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),j=[]}function C(A,V){V&&(w=[]),typeof A=="function"&&w.push(A)}function _(){return{startTime:u,payload:t,status:p,queriesSent:g,queriesPending:j.length,subscribe:C,abort:x}}function T(){p="failed",w.forEach(A=>{A(void 0,m)})}function W(){j.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),j=[]}function X(A,V,Z){const re=V!=="success";switch(j=j.filter($=>$!==A),p){case"pending":break;case"failed":if(re||!e.dataAfterTimeout)return;break;default:return}if(V==="abort"){m=Z,T();return}if(re){m=Z,j.length||(h.length?J():T());return}if(k(),W(),!e.random){const $=e.resources.indexOf(A.resource);$!==-1&&$!==e.index&&(e.index=$)}p="completed",w.forEach($=>{$(Z)})}function J(){if(p!=="pending")return;k();const A=h.shift();if(A===void 0){if(j.length){v=setTimeout(()=>{k(),p==="pending"&&(W(),T())},e.timeout);return}T();return}const V={status:"pending",resource:A,callback:(Z,re)=>{X(V,Z,re)}};j.push(V),g++,v=setTimeout(J,e.rotate),n(A,t,V.callback)}return setTimeout(J),_}function gi(e){const t={...la,...e};let n=[];function r(){n=n.filter(u=>u().status==="pending")}function i(u,p,g){const m=ca(t,u,p,(v,j)=>{r(),g&&g(v,j)});return n.push(m),m}function s(u){return n.find(p=>u(p))||null}return{query:i,find:s,setIndex:u=>{t.index=u},getIndex:()=>t.index,cleanup:r}}function Pr(){}const on=Object.create(null);function ua(e){if(!on[e]){const t=An(e);if(!t)return;const n=gi(t),r={config:t,redundancy:n};on[e]=r}return on[e]}function da(e,t,n){let r,i;if(typeof e=="string"){const s=xn(e);if(!s)return n(void 0,424),Pr;i=s.send;const h=ua(e);h&&(r=h.redundancy)}else{const s=Fn(e);if(s){r=gi(s);const h=e.resources?e.resources[0]:"",u=xn(h);u&&(i=u.send)}}return!r||!i?(n(void 0,424),Pr):r.query(t,i,n)().abort}const _r="iconify2",yt="iconify",bi=yt+"-count",Rr=yt+"-version",yi=36e5,ha=168;function wn(e,t){try{return e.getItem(t)}catch{}}function Nn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Mr(e,t){try{e.removeItem(t)}catch{}}function Sn(e,t){return Nn(e,bi,t.toString())}function kn(e){return parseInt(wn(e,bi))||0}const Kt={local:!0,session:!0},vi={local:new Set,session:new Set};let Bn=!1;function fa(e){Bn=e}let It=typeof window>"u"?{}:window;function xi(e){const t=e+"Storage";try{if(It&&It[t]&&typeof It[t].length=="number")return It[t]}catch{}Kt[e]=!1}function wi(e,t){const n=xi(e);if(!n)return;const r=wn(n,Rr);if(r!==_r){if(r){const u=kn(n);for(let p=0;p<u;p++)Mr(n,yt+p.toString())}Nn(n,Rr,_r),Sn(n,0);return}const i=Math.floor(Date.now()/yi)-ha,s=u=>{const p=yt+u.toString(),g=wn(n,p);if(typeof g=="string"){try{const m=JSON.parse(g);if(typeof m=="object"&&typeof m.cached=="number"&&m.cached>i&&typeof m.provider=="string"&&typeof m.data=="object"&&typeof m.data.prefix=="string"&&t(m,u))return!0}catch{}Mr(n,p)}};let h=kn(n);for(let u=h-1;u>=0;u--)s(u)||(u===h-1?(h--,Sn(n,h)):vi[e].add(u))}function Si(){if(!Bn){fa(!0);for(const e in Kt)wi(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=He(r,i);if(!zn(s,n).length)return!1;const h=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,h):h,!0})}}function pa(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Kt)wi(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function ma(e,t){Bn||Si();function n(r){let i;if(!Kt[r]||!(i=xi(r)))return;const s=vi[r];let h;if(s.size)s.delete(h=Array.from(s).shift());else if(h=kn(i),!Sn(i,h+1))return;const u={cached:Math.floor(Date.now()/yi),provider:e.provider,data:t};return Nn(i,yt+h.toString(),JSON.stringify(u))}t.lastModified&&!pa(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Lr(){}function ga(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ia(e)}))}function ba(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let s;if(!i||!(s=xn(n)))return;s.prepare(n,r,i).forEach(u=>{da(n,u,p=>{if(typeof p!="object")u.icons.forEach(g=>{e.missing.add(g)});else try{const g=zn(e,p);if(!g.length)return;const m=e.pendingIcons;m&&g.forEach(v=>{m.delete(v)}),ma(e,p)}catch(g){console.error(g)}ga(e)})})}))}const ya=(e,t)=>{const n=aa(e,!0,hi()),r=ra(n);if(!r.pending.length){let p=!0;return t&&setTimeout(()=>{p&&t(r.loaded,r.missing,r.pending,Lr)}),()=>{p=!1}}const i=Object.create(null),s=[];let h,u;return r.pending.forEach(p=>{const{provider:g,prefix:m}=p;if(m===u&&g===h)return;h=g,u=m,s.push(He(g,m));const v=i[g]||(i[g]=Object.create(null));v[m]||(v[m]=[])}),r.pending.forEach(p=>{const{provider:g,prefix:m,name:v}=p,j=He(g,m),w=j.pendingIcons||(j.pendingIcons=new Set);w.has(v)||(w.add(v),i[g][m].push(v))}),s.forEach(p=>{const{provider:g,prefix:m}=p;i[g][m].length&&ba(p,i[g][m])}),t?sa(t,r,s):Lr};function va(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in fi?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const xa=/[\s,]+/;function wa(e,t){t.split(xa).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Sa(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function ka(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function ja(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ta(e){return"data:image/svg+xml,"+ja(e)}function Oa(e){return'url("'+Ta(e)+'")'}let mt;function Ca(){try{mt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{mt=null}}function Ea(e){return mt===void 0&&Ca(),mt?mt.createHTML(e):e}const ki={...pi,inline:!1},Ia={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pa={display:"inline-block"},jn={backgroundColor:"currentColor"},ji={backgroundColor:"transparent"},Dr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},zr={WebkitMask:jn,mask:jn,background:ji};for(const e in zr){const t=zr[e];for(const n in Dr)t[e+n]=Dr[n]}const _a={...ki,inline:!0};function Fr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ra=(e,t,n,r)=>{const i=n?_a:ki,s=va(i,t),h=t.mode||"svg",u={},p=t.style||{},g={...h==="svg"?Ia:{},ref:r};for(let _ in t){const T=t[_];if(T!==void 0)switch(_){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":s[_]=T===!0||T==="true"||T===1;break;case"flip":typeof T=="string"&&wa(s,T);break;case"color":u.color=T;break;case"rotate":typeof T=="string"?s[_]=Sa(T):typeof T=="number"&&(s[_]=T);break;case"ariaHidden":case"aria-hidden":T!==!0&&T!=="true"&&delete g["aria-hidden"];break;default:i[_]===void 0&&(g[_]=T)}}const m=Us(e,s),v=m.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),h==="svg"){g.style={...u,...p},Object.assign(g,v);let _=0,T=t.id;return typeof T=="string"&&(T=T.replace(/-/g,"_")),g.dangerouslySetInnerHTML={__html:Ea(qs(m.body,T?()=>T+"ID"+_++:"iconifyReact"))},We.createElement("svg",g)}const{body:j,width:w,height:k}=e,x=h==="mask"||(h==="bg"?!1:j.indexOf("currentColor")!==-1),C=ka(j,{...v,width:w+"",height:k+""});return g.style={...u,"--svg":Oa(C),width:Fr(v.width),height:Fr(v.height),...Pa,...x?jn:ji,...p},We.createElement("span",g)};hi(!0);Gs("",na);if(typeof document<"u"&&typeof window<"u"){Si();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!As(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Xs(n,i)||console.error(r)}catch{console.error(r)}}}}class Ti extends We.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=Ut(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Fs(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:ya([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const h=["iconify"];i.prefix!==""&&h.push("iconify--"+i.prefix),i.provider!==""&&h.push("iconify--"+i.provider),this._setData({data:s,classes:h}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:We.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),Ra({...Dn,...n.data},r,t._inline,t._ref)}}const Le=We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return We.createElement(Ti,r)});We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return We.createElement(Ti,r)});const Oi={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 18a3.5 3.5 0 0 0 0-7h-1A5 4.5 0 0 0 7 9a4.6 4.4 0 0 0-2.1 8.4M12 13v9m-3-3l3 3l3-3"/>'};var zt={exports:{}},Ma=zt.exports,Wr;function La(){return Wr||(Wr=1,function(e,t){(function(n,r){e.exports=r(So())})(Ma,n=>(()=>{var r={703:(u,p,g)=>{var m=g(414);function v(){}function j(){}j.resetWarningCache=v,u.exports=function(){function w(C,_,T,W,X,J){if(J!==m){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}function k(){return w}w.isRequired=w;var x={array:w,bool:w,func:w,number:w,object:w,string:w,symbol:w,any:w,arrayOf:k,element:w,elementType:w,instanceOf:k,node:w,objectOf:k,oneOf:k,oneOfType:k,shape:k,exact:k,checkPropTypes:j,resetWarningCache:v};return x.PropTypes=x,x}},697:(u,p,g)=>{u.exports=g(703)()},414:u=>{u.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:u=>{var p=typeof Element<"u",g=typeof Map=="function",m=typeof Set=="function",v=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function j(w,k){if(w===k)return!0;if(w&&k&&typeof w=="object"&&typeof k=="object"){if(w.constructor!==k.constructor)return!1;var x,C,_,T;if(Array.isArray(w)){if((x=w.length)!=k.length)return!1;for(C=x;C--!=0;)if(!j(w[C],k[C]))return!1;return!0}if(g&&w instanceof Map&&k instanceof Map){if(w.size!==k.size)return!1;for(T=w.entries();!(C=T.next()).done;)if(!k.has(C.value[0]))return!1;for(T=w.entries();!(C=T.next()).done;)if(!j(C.value[1],k.get(C.value[0])))return!1;return!0}if(m&&w instanceof Set&&k instanceof Set){if(w.size!==k.size)return!1;for(T=w.entries();!(C=T.next()).done;)if(!k.has(C.value[0]))return!1;return!0}if(v&&ArrayBuffer.isView(w)&&ArrayBuffer.isView(k)){if((x=w.length)!=k.length)return!1;for(C=x;C--!=0;)if(w[C]!==k[C])return!1;return!0}if(w.constructor===RegExp)return w.source===k.source&&w.flags===k.flags;if(w.valueOf!==Object.prototype.valueOf)return w.valueOf()===k.valueOf();if(w.toString!==Object.prototype.toString)return w.toString()===k.toString();if((x=(_=Object.keys(w)).length)!==Object.keys(k).length)return!1;for(C=x;C--!=0;)if(!Object.prototype.hasOwnProperty.call(k,_[C]))return!1;if(p&&w instanceof Element)return!1;for(C=x;C--!=0;)if((_[C]!=="_owner"&&_[C]!=="__v"&&_[C]!=="__o"||!w.$$typeof)&&!j(w[_[C]],k[_[C]]))return!1;return!0}return w!=w&&k!=k}u.exports=function(w,k){try{return j(w,k)}catch(x){if((x.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw x}}},359:u=>{u.exports=n}},i={};function s(u){var p=i[u];if(p!==void 0)return p.exports;var g=i[u]={exports:{}};return r[u](g,g.exports,s),g.exports}s.n=u=>{var p=u&&u.__esModule?()=>u.default:()=>u;return s.d(p,{a:p}),p},s.d=(u,p)=>{for(var g in p)s.o(p,g)&&!s.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:p[g]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(u,p)=>Object.prototype.hasOwnProperty.call(u,p),s.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var h={};return(()=>{function u(d){var a,f,b="";if(typeof d=="string"||typeof d=="number")b+=d;else if(typeof d=="object")if(Array.isArray(d))for(a=0;a<d.length;a++)d[a]&&(f=u(d[a]))&&(b&&(b+=" "),b+=f);else for(a in d)d[a]&&(b&&(b+=" "),b+=a);return b}function p(){for(var d,a,f=0,b="";f<arguments.length;)(d=arguments[f++])&&(a=u(d))&&(b&&(b+=" "),b+=a);return b}s.r(h),s.d(h,{default:()=>go});var g=s(359),m=s.n(g);const v=function(d){var a=typeof d;return d!=null&&(a=="object"||a=="function")},j=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct;var w=typeof self=="object"&&self&&self.Object===Object&&self;const k=j||w||Function("return this")(),x=function(){return k.Date.now()};var C=/\s/,_=/^\s+/;const T=function(d){return d&&d.slice(0,function(a){for(var f=a.length;f--&&C.test(a.charAt(f)););return f}(d)+1).replace(_,"")},W=k.Symbol;var X=Object.prototype,J=X.hasOwnProperty,A=X.toString,V=W?W.toStringTag:void 0,Z=Object.prototype.toString,re=W?W.toStringTag:void 0;const $=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":re&&re in Object(d)?function(a){var f=J.call(a,V),b=a[V];try{a[V]=void 0;var I=!0}catch{}var N=A.call(a);return I&&(f?a[V]=b:delete a[V]),N}(d):function(a){return Z.call(a)}(d)};var Ee=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,Se=/^0o[0-7]+$/i,pe=parseInt;const be=function(d){if(typeof d=="number")return d;if(function(b){return typeof b=="symbol"||function(I){return I!=null&&typeof I=="object"}(b)&&$(b)=="[object Symbol]"}(d))return NaN;if(v(d)){var a=typeof d.valueOf=="function"?d.valueOf():d;d=v(a)?a+"":a}if(typeof d!="string")return d===0?d:+d;d=T(d);var f=ge.test(d);return f||Se.test(d)?pe(d.slice(2),f?2:8):Ee.test(d)?NaN:+d};var D=Math.max,ae=Math.min;const Te=function(d,a,f){var b,I,N,Y,c,l,y=0,O=!1,P=!1,E=!0;if(typeof d!="function")throw new TypeError("Expected a function");function K(B){var G=b,te=I;return b=I=void 0,y=B,Y=d.apply(te,G)}function U(B){return y=B,c=setTimeout(M,a),O?K(B):Y}function q(B){var G=B-l;return l===void 0||G>=a||G<0||P&&B-y>=N}function M(){var B=x();if(q(B))return z(B);c=setTimeout(M,function(G){var te=a-(G-l);return P?ae(te,N-(G-y)):te}(B))}function z(B){return c=void 0,E&&b?K(B):(b=I=void 0,Y)}function F(){var B=x(),G=q(B);if(b=arguments,I=this,l=B,G){if(c===void 0)return U(l);if(P)return clearTimeout(c),c=setTimeout(M,a),K(l)}return c===void 0&&(c=setTimeout(M,a)),Y}return a=be(a)||0,v(f)&&(O=!!f.leading,N=(P="maxWait"in f)?D(be(f.maxWait)||0,a):N,E="trailing"in f?!!f.trailing:E),F.cancel=function(){c!==void 0&&clearTimeout(c),y=0,b=l=I=c=void 0},F.flush=function(){return c===void 0?Y:z(x())},F},ue=function(d,a,f){var b=!0,I=!0;if(typeof d!="function")throw new TypeError("Expected a function");return v(f)&&(b="leading"in f?!!f.leading:b,I="trailing"in f?!!f.trailing:I),Te(d,a,{leading:b,maxWait:a,trailing:I})};var ie=s(590),ee=s.n(ie),me=function(){if(typeof Map<"u")return Map;function d(a,f){var b=-1;return a.some(function(I,N){return I[0]===f&&(b=N,!0)}),b}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(f){var b=d(this.__entries__,f),I=this.__entries__[b];return I&&I[1]},a.prototype.set=function(f,b){var I=d(this.__entries__,f);~I?this.__entries__[I][1]=b:this.__entries__.push([f,b])},a.prototype.delete=function(f){var b=this.__entries__,I=d(b,f);~I&&b.splice(I,1)},a.prototype.has=function(f){return!!~d(this.__entries__,f)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(f,b){b===void 0&&(b=null);for(var I=0,N=this.__entries__;I<N.length;I++){var Y=N[I];f.call(b,Y[1],Y[0])}},a}()}(),Ie=typeof window<"u"&&typeof document<"u"&&window.document===document,Pe=s.g!==void 0&&s.g.Math===Math?s.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),wt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Pe):function(d){return setTimeout(function(){return d(Date.now())},1e3/60)},Hi=["top","right","bottom","left","width","height","size","weight"],Vi=typeof MutationObserver<"u",qi=function(){function d(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(a,f){var b=!1,I=!1,N=0;function Y(){b&&(b=!1,a()),I&&l()}function c(){wt(Y)}function l(){var y=Date.now();if(b){if(y-N<2)return;I=!0}else b=!0,I=!1,setTimeout(c,20);N=y}return l}(this.refresh.bind(this))}return d.prototype.addObserver=function(a){~this.observers_.indexOf(a)||this.observers_.push(a),this.connected_||this.connect_()},d.prototype.removeObserver=function(a){var f=this.observers_,b=f.indexOf(a);~b&&f.splice(b,1),!f.length&&this.connected_&&this.disconnect_()},d.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},d.prototype.updateObservers_=function(){var a=this.observers_.filter(function(f){return f.gatherActive(),f.hasActive()});return a.forEach(function(f){return f.broadcastActive()}),a.length>0},d.prototype.connect_=function(){Ie&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Vi?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},d.prototype.disconnect_=function(){Ie&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},d.prototype.onTransitionEnd_=function(a){var f=a.propertyName,b=f===void 0?"":f;Hi.some(function(I){return!!~b.indexOf(I)})&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d}(),qn=function(d,a){for(var f=0,b=Object.keys(a);f<b.length;f++){var I=b[f];Object.defineProperty(d,I,{value:a[I],enumerable:!1,writable:!1,configurable:!0})}return d},Ge=function(d){return d&&d.ownerDocument&&d.ownerDocument.defaultView||Pe},Gn=kt(0,0,0,0);function St(d){return parseFloat(d)||0}function Xn(d){for(var a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];return a.reduce(function(b,I){return b+St(d["border-"+I+"-width"])},0)}var Gi=typeof SVGGraphicsElement<"u"?function(d){return d instanceof Ge(d).SVGGraphicsElement}:function(d){return d instanceof Ge(d).SVGElement&&typeof d.getBBox=="function"};function Xi(d){return Ie?Gi(d)?function(a){var f=a.getBBox();return kt(0,0,f.width,f.height)}(d):function(a){var f=a.clientWidth,b=a.clientHeight;if(!f&&!b)return Gn;var I=Ge(a).getComputedStyle(a),N=function(E){for(var K={},U=0,q=["top","right","bottom","left"];U<q.length;U++){var M=q[U],z=E["padding-"+M];K[M]=St(z)}return K}(I),Y=N.left+N.right,c=N.top+N.bottom,l=St(I.width),y=St(I.height);if(I.boxSizing==="border-box"&&(Math.round(l+Y)!==f&&(l-=Xn(I,"left","right")+Y),Math.round(y+c)!==b&&(y-=Xn(I,"top","bottom")+c)),!function(E){return E===Ge(E).document.documentElement}(a)){var O=Math.round(l+Y)-f,P=Math.round(y+c)-b;Math.abs(O)!==1&&(l-=O),Math.abs(P)!==1&&(y-=P)}return kt(N.left,N.top,l,y)}(d):Gn}function kt(d,a,f,b){return{x:d,y:a,width:f,height:b}}var Yi=function(){function d(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=kt(0,0,0,0),this.target=a}return d.prototype.isActive=function(){var a=Xi(this.target);return this.contentRect_=a,a.width!==this.broadcastWidth||a.height!==this.broadcastHeight},d.prototype.broadcastRect=function(){var a=this.contentRect_;return this.broadcastWidth=a.width,this.broadcastHeight=a.height,a},d}(),Qi=function(d,a){var f,b,I,N,Y,c,l,y=(b=(f=a).x,I=f.y,N=f.width,Y=f.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),qn(l,{x:b,y:I,width:N,height:Y,top:I,right:b+N,bottom:Y+I,left:b}),l);qn(this,{target:d,contentRect:y})},Ji=function(){function d(a,f,b){if(this.activeObservations_=[],this.observations_=new me,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=f,this.callbackCtx_=b}return d.prototype.observe=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)||(f.set(a,new Yi(a)),this.controller_.addObserver(this),this.controller_.refresh())}},d.prototype.unobserve=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)&&(f.delete(a),f.size||this.controller_.removeObserver(this))}},d.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},d.prototype.gatherActive=function(){var a=this;this.clearActive(),this.observations_.forEach(function(f){f.isActive()&&a.activeObservations_.push(f)})},d.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,f=this.activeObservations_.map(function(b){return new Qi(b.target,b.broadcastRect())});this.callback_.call(a,f,a),this.clearActive()}},d.prototype.clearActive=function(){this.activeObservations_.splice(0)},d.prototype.hasActive=function(){return this.activeObservations_.length>0},d}(),Yn=typeof WeakMap<"u"?new WeakMap:new me,Qn=function d(a){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var f=qi.getInstance(),b=new Ji(a,f,this);Yn.set(this,b)};["observe","unobserve","disconnect"].forEach(function(d){Qn.prototype[d]=function(){var a;return(a=Yn.get(this))[d].apply(a,arguments)}});const Jn=Pe.ResizeObserver!==void 0?Pe.ResizeObserver:Qn,Xe="Left",Be="Right",Ye="Up",$e="Down",Qe={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Vt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Zn="mousemove",er="mouseup";function tr(d,a){if(a===0)return d;const f=Math.PI/180*a;return[d[0]*Math.cos(f)+d[1]*Math.sin(f),d[1]*Math.cos(f)-d[0]*Math.sin(f)]}function Zi(d){const{trackMouse:a}=d,f=g.useRef(Object.assign({},Vt)),b=g.useRef(Object.assign({},Qe)),I=g.useRef(Object.assign({},b.current));let N;for(N in I.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},Qe),d),Qe)b.current[N]===void 0&&(b.current[N]=Qe[N]);const[Y,c]=g.useMemo(()=>function(l,y){const O=M=>{const z="touches"in M;z&&M.touches.length>1||l((F,B)=>{B.trackMouse&&!z&&(document.addEventListener(Zn,P),document.addEventListener(er,K));const{clientX:G,clientY:te}=z?M.touches[0]:M,le=tr([G,te],B.rotationAngle);return B.onTouchStartOrOnMouseDown&&B.onTouchStartOrOnMouseDown({event:M}),Object.assign(Object.assign(Object.assign({},F),Vt),{initial:le.slice(),xy:le,start:M.timeStamp||0})})},P=M=>{l((z,F)=>{const B="touches"in M;if(B&&M.touches.length>1)return z;if(M.timeStamp-z.start>F.swipeDuration)return z.swiping?Object.assign(Object.assign({},z),{swiping:!1}):z;const{clientX:G,clientY:te}=B?M.touches[0]:M,[le,we]=tr([G,te],F.rotationAngle),ye=le-z.xy[0],he=we-z.xy[1],se=Math.abs(ye),ne=Math.abs(he),De=(M.timeStamp||0)-z.start,at=Math.sqrt(se*se+ne*ne)/(De||1),lt=[ye/(De||1),he/(De||1)],Me=function(ct,et,ut,ke){return ct>et?ut>0?Be:Xe:ke>0?$e:Ye}(se,ne,ye,he),Ue=typeof F.delta=="number"?F.delta:F.delta[Me.toLowerCase()]||Qe.delta;if(se<Ue&&ne<Ue&&!z.swiping)return z;const _e={absX:se,absY:ne,deltaX:ye,deltaY:he,dir:Me,event:M,first:z.first,initial:z.initial,velocity:at,vxvy:lt};_e.first&&F.onSwipeStart&&F.onSwipeStart(_e),F.onSwiping&&F.onSwiping(_e);let Ze=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Me}`])&&(Ze=!0),Ze&&F.preventScrollOnSwipe&&F.trackTouch&&M.cancelable&&M.preventDefault(),Object.assign(Object.assign({},z),{first:!1,eventData:_e,swiping:!0})})},E=M=>{l((z,F)=>{let B;if(z.swiping&&z.eventData){if(M.timeStamp-z.start<F.swipeDuration){B=Object.assign(Object.assign({},z.eventData),{event:M}),F.onSwiped&&F.onSwiped(B);const G=F[`onSwiped${B.dir}`];G&&G(B)}}else F.onTap&&F.onTap({event:M});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:M}),Object.assign(Object.assign(Object.assign({},z),Vt),{eventData:B})})},K=M=>{document.removeEventListener(Zn,P),document.removeEventListener(er,K),E(M)},U=(M,z)=>{let F=()=>{};if(M&&M.addEventListener){const B=Object.assign(Object.assign({},Qe.touchEventOptions),z.touchEventOptions),G=[["touchstart",O,B],["touchmove",P,Object.assign(Object.assign({},B),z.preventScrollOnSwipe?{passive:!1}:{})],["touchend",E,B]];G.forEach(([te,le,we])=>M.addEventListener(te,le,we)),F=()=>G.forEach(([te,le])=>M.removeEventListener(te,le))}return F},q={ref:M=>{M!==null&&l((z,F)=>{if(z.el===M)return z;const B={};return z.el&&z.el!==M&&z.cleanUpTouch&&(z.cleanUpTouch(),B.cleanUpTouch=void 0),F.trackTouch&&M&&(B.cleanUpTouch=U(M,F)),Object.assign(Object.assign(Object.assign({},z),{el:M}),B)})}};return y.trackMouse&&(q.onMouseDown=O),[q,U]}(l=>f.current=l(f.current,b.current),{trackMouse:a}),[a]);return f.current=function(l,y,O,P){return y.trackTouch&&l.el?l.cleanUpTouch?y.preventScrollOnSwipe!==O.preventScrollOnSwipe||y.touchEventOptions.passive!==O.touchEventOptions.passive?(l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:P(l.el,y)})):l:Object.assign(Object.assign({},l),{cleanUpTouch:P(l.el,y)}):(l.cleanUpTouch&&l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:void 0}))}(f.current,b.current,I.current,c),Y}var S=s(697);function it(d){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},it(d)}function nr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function rr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?nr(Object(f),!0).forEach(function(b){eo(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):nr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function eo(d,a,f){return(a=function(b){var I=function(N,Y){if(it(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(it(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return it(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var to={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},qt=m().memo(function(d){var a=rr(rr({},to),d),f=a.description,b=a.fullscreen,I=a.handleImageLoaded,N=a.isFullscreen,Y=a.onImageError,c=a.original,l=a.originalAlt,y=a.originalHeight,O=a.originalWidth,P=a.originalTitle,E=a.sizes,K=a.srcSet,U=a.loading,q=N&&b||c;return m().createElement(m().Fragment,null,m().createElement("img",{className:"image-gallery-image",src:q,alt:l,srcSet:K,height:y,width:O,sizes:E,title:P,onLoad:function(M){return I(M,c)},onError:Y,loading:U}),f&&m().createElement("span",{className:"image-gallery-description"},f))});qt.displayName="Item",qt.propTypes={description:S.string,fullscreen:S.string,handleImageLoaded:S.func.isRequired,isFullscreen:S.bool,onImageError:S.func.isRequired,original:S.string.isRequired,originalAlt:S.string,originalHeight:S.string,originalWidth:S.string,originalTitle:S.string,sizes:S.string,srcSet:S.string,loading:S.string};const no=qt;function ot(d){return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ot(d)}function ir(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function or(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?ir(Object(f),!0).forEach(function(b){ro(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):ir(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function ro(d,a,f){return(a=function(b){var I=function(N,Y){if(ot(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(ot(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return ot(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var io={left:m().createElement("polyline",{points:"15 18 9 12 15 6"}),right:m().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:m().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:m().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:m().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:m().createElement(m().Fragment,null,m().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),m().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},oo={strokeWidth:1,viewBox:"0 0 24 24"},sr=function(d){var a=or(or({},oo),d),f=a.strokeWidth,b=a.viewBox,I=a.icon;return m().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:b,fill:"none",stroke:"currentColor",strokeWidth:f,strokeLinecap:"round",strokeLinejoin:"round"},io[I])};sr.propTypes={strokeWidth:S.number,viewBox:S.string,icon:(0,S.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const jt=sr;var Gt=m().memo(function(d){var a=d.isFullscreen,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:f,"aria-label":"Open Fullscreen"},m().createElement(jt,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Gt.displayName="Fullscreen",Gt.propTypes={isFullscreen:S.bool.isRequired,onClick:S.func.isRequired};const so=Gt;var Xt=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:a,onClick:f,"aria-label":"Previous Slide"},m().createElement(jt,{icon:"left",viewBox:"6 0 12 24"}))});Xt.displayName="LeftNav",Xt.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const ao=Xt;var Yt=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:a,onClick:f,"aria-label":"Next Slide"},m().createElement(jt,{icon:"right",viewBox:"6 0 12 24"}))});Yt.displayName="RightNav",Yt.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const lo=Yt;var Qt=m().memo(function(d){var a=d.isPlaying,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:f,"aria-label":"Play or Pause Slideshow"},m().createElement(jt,{strokeWidth:2,icon:a?"pause":"play"}))});Qt.displayName="PlayPause",Qt.propTypes={isPlaying:S.bool.isRequired,onClick:S.func.isRequired};const co=Qt;function st(d){return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},st(d)}function Jt(){return Jt=Object.assign?Object.assign.bind():function(d){for(var a=1;a<arguments.length;a++){var f=arguments[a];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(d[b]=f[b])}return d},Jt.apply(this,arguments)}function ar(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function lr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?ar(Object(f),!0).forEach(function(b){uo(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):ar(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function uo(d,a,f){return(a=function(b){var I=function(N,Y){if(st(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(st(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return st(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var ho={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},cr=function(d){var a=lr(lr({},ho),d),f=a.children,b=a.className,I=Zi({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return m().createElement("div",Jt({},I,{className:b}),f)};cr.propTypes={children:S.node.isRequired,className:S.string,delta:S.number,onSwiped:S.func,onSwiping:S.func};const ur=cr;function Je(d){return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Je(d)}function dr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function hr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?dr(Object(f),!0).forEach(function(b){fr(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):dr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function fo(d,a){for(var f=0;f<a.length;f++){var b=a[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,pr(b.key),b)}}function Zt(d,a){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,b){return f.__proto__=b,f},Zt(d,a)}function po(d,a){if(a&&(Je(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ce(d)}function ce(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Tt(d){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Tt(d)}function fr(d,a,f){return(a=pr(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}function pr(d){var a=function(f,b){if(Je(f)!=="object"||f===null)return f;var I=f[Symbol.toPrimitive];if(I!==void 0){var N=I.call(f,b);if(Je(N)!=="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(d,"string");return Je(a)==="symbol"?a:String(a)}var mr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],mo=(0,S.arrayOf)((0,S.shape)({srcSet:S.string,media:S.string}));function gr(d){var a=parseInt(d.keyCode||d.which||0,10);return a===66||a===62}var en=function(d){(function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),l&&Zt(c,l)})(Y,d);var a,f,b,I,N=(b=Y,I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var c,l=Tt(b);if(I){var y=Tt(this).constructor;c=Reflect.construct(l,arguments,y)}else c=l.apply(this,arguments);return po(this,c)});function Y(c){var l;return function(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}(this,Y),fr(ce(l=N.call(this,c)),"onBulletClick",function(y,O){var P=l.props,E=P.onBulletClick,K=P.items,U=l.state.currentIndex;y.target.blur(),U!==O&&(K.length===2?l.slideToIndexWithStyleReset(O,y):l.slideToIndex(O,y)),E&&E(y,O)}),l.state={currentIndex:c.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(c.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},l.loadedImages={},l.imageGallery=m().createRef(),l.thumbnailsWrapper=m().createRef(),l.thumbnails=m().createRef(),l.imageGallerySlideWrapper=m().createRef(),l.handleImageLoaded=l.handleImageLoaded.bind(ce(l)),l.handleKeyDown=l.handleKeyDown.bind(ce(l)),l.handleMouseDown=l.handleMouseDown.bind(ce(l)),l.handleResize=l.handleResize.bind(ce(l)),l.handleTouchMove=l.handleTouchMove.bind(ce(l)),l.handleOnSwiped=l.handleOnSwiped.bind(ce(l)),l.handleScreenChange=l.handleScreenChange.bind(ce(l)),l.handleSwiping=l.handleSwiping.bind(ce(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(ce(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(ce(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(ce(l)),l.handleImageError=l.handleImageError.bind(ce(l)),l.pauseOrPlay=l.pauseOrPlay.bind(ce(l)),l.renderThumbInner=l.renderThumbInner.bind(ce(l)),l.renderItem=l.renderItem.bind(ce(l)),l.slideLeft=l.slideLeft.bind(ce(l)),l.slideRight=l.slideRight.bind(ce(l)),l.toggleFullScreen=l.toggleFullScreen.bind(ce(l)),l.togglePlay=l.togglePlay.bind(ce(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=ue(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=Y,f=[{key:"componentDidMount",value:function(){var c=this.props,l=c.autoPlay,y=c.useWindowKeyDown;l&&this.play(),y?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(c,l){var y=this.props,O=y.items,P=y.lazyLoad,E=y.slideDuration,K=y.slideInterval,U=y.startIndex,q=y.thumbnailPosition,M=y.showThumbnails,z=y.useWindowKeyDown,F=this.state,B=F.currentIndex,G=F.isPlaying,te=c.items.length!==O.length,le=!ee()(c.items,O),we=c.startIndex!==U,ye=c.thumbnailPosition!==q,he=c.showThumbnails!==M;K===c.slideInterval&&E===c.slideDuration||G&&(this.pause(),this.play()),ye&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),he&&M&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),he&&!M&&this.removeThumbnailsResizeObserver(),(te||he)&&this.handleResize(),l.currentIndex!==B&&this.slideThumbnailBar(),c.slideDuration!==E&&(this.slideToIndex=ue(this.unthrottledSlideToIndex,E,{trailing:!1})),!P||c.lazyLoad&&!le||(this.lazyLoaded=[]),z!==c.useWindowKeyDown&&(z?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(we||le)&&this.setState({currentIndex:U,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var c=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),c?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var c=this,l=this.state,y=l.currentIndex,O=l.isTransitioning,P=this.props,E=P.onSlide,K=P.slideDuration;this.transitionTimer=window.setTimeout(function(){O&&(c.setState({isTransitioning:!O,isSwipingThumbnail:!1}),E&&E(y))},K+50)}},{key:"onThumbnailClick",value:function(c,l){var y=this.props,O=y.onThumbnailClick,P=y.items,E=this.state.currentIndex;c.target.parentNode.parentNode.blur(),E!==l&&(P.length===2?this.slideToIndexWithStyleReset(l,c):this.slideToIndex(l,c)),O&&O(c,l)}},{key:"onThumbnailMouseOver",value:function(c,l){var y=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){y.slideToIndex(l),y.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var c=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,c&&this.play()}}},{key:"setThumbsTranslate",value:function(c){this.setState({thumbsTranslate:c})}},{key:"setModalFullscreen",value:function(c){var l=this.props.onScreenChange;this.setState({modalFullscreen:c}),l&&l(c)}},{key:"getThumbsTranslate",value:function(c){var l,y=this.props,O=y.disableThumbnailScroll,P=y.items,E=this.state,K=E.thumbnailsWrapperWidth,U=E.thumbnailsWrapperHeight,q=this.thumbnails&&this.thumbnails.current;if(O)return 0;if(q){if(this.isThumbnailVertical()){if(q.scrollHeight<=U)return 0;l=q.scrollHeight-U}else{if(q.scrollWidth<=K||K<=0)return 0;l=q.scrollWidth-K}return c*(l/(P.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(c){switch(c){case"left":c=" ".concat("image-gallery-thumbnails-left");break;case"right":c=" ".concat("image-gallery-thumbnails-right");break;case"bottom":c=" ".concat("image-gallery-thumbnails-bottom");break;case"top":c=" ".concat("image-gallery-thumbnails-top")}return c}},{key:"getAlignmentClassName",value:function(c){var l=this.state.currentIndex,y=this.props,O=y.infinite,P=y.items,E="",K="image-gallery-left",U="image-gallery-right";switch(c){case l-1:E=" ".concat(K);break;case l:E=" ".concat("image-gallery-center");break;case l+1:E=" ".concat(U)}return P.length>=3&&O&&(c===0&&l===P.length-1?E=" ".concat(U):c===P.length-1&&l===0&&(E=" ".concat(K))),E}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,P=l.previousIndex,E=y!==P,K=c===0&&P===0,U=c===1&&P===1,q=c===0&&y===1,M=c===1&&y===0,z=O===0,F=-100*y+100*c+O;return O>0?this.direction="left":O<0&&(this.direction="right"),M&&O>0&&(F=-100+O),q&&O<0&&(F=100+O),E?K&&z&&this.direction==="left"?F=100:U&&z&&this.direction==="right"&&(F=-100):(M&&z&&this.direction==="left"&&(F=-100),q&&z&&this.direction==="right"&&(F=100)),F}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,P=l.slideStyle,E=this.props,K=E.infinite,U=E.items,q=E.useTranslate3D,M=E.isRTL,z=-100*y,F=U.length-1,B=(z+100*c)*(M?-1:1)+O;K&&U.length>2&&(y===0&&c===F?B=-100*(M?-1:1)+O:y===F&&c===0&&(B=100*(M?-1:1)+O)),K&&U.length===2&&(B=this.getTranslateXForTwoSlide(c));var G="translate(".concat(B,"%, 0)");return q&&(G="translate3d(".concat(B,"%, 0, 0)")),hr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:G,MozTransform:G,msTransform:G,OTransform:G,transform:G},P)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var c,l=this.props,y=l.useTranslate3D,O=l.isRTL,P=this.state,E=P.thumbsTranslate,K=P.thumbsStyle,U=O?-1*E:E;return this.isThumbnailVertical()?(c="translate(0, ".concat(E,"px)"),y&&(c="translate3d(0, ".concat(E,"px, 0)"))):(c="translate(".concat(U,"px, 0)"),y&&(c="translate3d(".concat(U,"px, 0, 0)"))),hr({WebkitTransform:c,MozTransform:c,msTransform:c,OTransform:c,transform:c},K)}},{key:"getSlideItems",value:function(){var c=this,l=this.state.currentIndex,y=this.props,O=y.items,P=y.slideOnThumbnailOver,E=y.onClick,K=y.lazyLoad,U=y.onTouchMove,q=y.onTouchEnd,M=y.onTouchStart,z=y.onMouseOver,F=y.onMouseLeave,B=y.renderItem,G=y.renderThumbInner,te=y.showThumbnails,le=y.showBullets,we=[],ye=[],he=[];return O.forEach(function(se,ne){var De=c.getAlignmentClassName(ne),at=se.originalClass?" ".concat(se.originalClass):"",lt=se.thumbnailClass?" ".concat(se.thumbnailClass):"",Me=se.renderItem||B||c.renderItem,Ue=se.renderThumbInner||G||c.renderThumbInner,_e=!K||De||c.lazyLoaded[ne];_e&&K&&!c.lazyLoaded[ne]&&(c.lazyLoaded[ne]=!0);var Ze=c.getSlideStyle(ne),ct=m().createElement("div",{"aria-label":"Go to Slide ".concat(ne+1),key:"slide-".concat(ne),tabIndex:"-1",className:"image-gallery-slide ".concat(De," ").concat(at),style:Ze,onClick:E,onKeyUp:c.handleSlideKeyUp,onTouchMove:U,onTouchEnd:q,onTouchStart:M,onMouseOver:z,onFocus:z,onMouseLeave:F,role:"button"},_e?Me(se):m().createElement("div",{style:{height:"100%"}}));if(we.push(ct),te&&se.thumbnail){var et=p("image-gallery-thumbnail",lt,{active:l===ne});ye.push(m().createElement("button",{key:"thumbnail-".concat(ne),type:"button",tabIndex:"0","aria-pressed":l===ne?"true":"false","aria-label":"Go to Slide ".concat(ne+1),className:et,onMouseLeave:P?c.onThumbnailMouseLeave:null,onMouseOver:function(ke){return c.handleThumbnailMouseOver(ke,ne)},onFocus:function(ke){return c.handleThumbnailMouseOver(ke,ne)},onKeyUp:function(ke){return c.handleThumbnailKeyUp(ke,ne)},onClick:function(ke){return c.onThumbnailClick(ke,ne)}},Ue(se)))}if(le){var ut=p("image-gallery-bullet",se.bulletClass,{active:l===ne});he.push(m().createElement("button",{type:"button",key:"bullet-".concat(ne),className:ut,onClick:function(ke){return c.onBulletClick(ke,ne)},"aria-pressed":l===ne?"true":"false","aria-label":"Go to Slide ".concat(ne+1)}))}}),{slides:we,thumbnails:ye,bullets:he}}},{key:"ignoreIsTransitioning",value:function(){var c=this.props.items,l=this.state,y=l.previousIndex,O=l.currentIndex,P=c.length-1;return Math.abs(y-O)>1&&!(y===0&&O===P)&&!(y===P&&O===0)}},{key:"isFirstOrLastSlide",value:function(c){return c===this.props.items.length-1||c===0}},{key:"slideIsTransitioning",value:function(c){var l=this.state,y=l.isTransitioning,O=l.previousIndex,P=l.currentIndex;return y&&!(c===O||c===P)}},{key:"isSlideVisible",value:function(c){return!this.slideIsTransitioning(c)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(c)}},{key:"slideThumbnailBar",value:function(){var c=this.state,l=c.currentIndex,y=c.isSwipingThumbnail,O=-this.getThumbsTranslate(l);y||(l===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:O,thumbsSwipedTranslate:O}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){return this.props.infinite||this.canSlidePrevious()}},{key:"canSlideRight",value:function(){return this.props.infinite||this.canSlideNext()}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(c){var l=c.event,y=c.absX,O=c.dir,P=this.props,E=P.disableSwipe,K=P.stopPropagation,U=this.state,q=U.galleryWidth,M=U.isTransitioning,z=U.swipingUpDown,F=U.swipingLeftRight;if(O!==Ye&&O!==$e&&!z||F){if(O!==Xe&&O!==Be||F||this.setState({swipingLeftRight:!0}),!E){var B=this.props.swipingTransitionDuration;if(K&&l.preventDefault(),M)this.setState({currentSlideOffset:0});else{var G=O===Be?1:-1,te=y/q*100;Math.abs(te)>=100&&(te=100);var le={transition:"transform ".concat(B,"ms ease-out")};this.setState({currentSlideOffset:G*te,slideStyle:le})}}}else z||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,y=c.absX,O=c.absY,P=c.dir,E=this.props,K=E.stopPropagation,U=E.swipingThumbnailTransitionDuration,q=this.state,M=q.thumbsSwipedTranslate,z=q.thumbnailsWrapperHeight,F=q.thumbnailsWrapperWidth,B=q.swipingUpDown,G=q.swipingLeftRight;if(this.isThumbnailVertical()){if((P===Xe||P===Be||G)&&!B)return void(G||this.setState({swipingLeftRight:!0}));P!==Ye&&P!==$e||B||this.setState({swipingUpDown:!0})}else{if((P===Ye||P===$e||B)&&!G)return void(B||this.setState({swipingUpDown:!0}));P!==Xe&&P!==Be||G||this.setState({swipingLeftRight:!0})}var te,le,we,ye,he,se=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(te=M+(P===$e?O:-O),le=se.scrollHeight-z+20,we=Math.abs(te)>le,ye=te>20,he=se.scrollHeight<=z):(te=M+(P===Be?y:-y),le=se.scrollWidth-F+20,we=Math.abs(te)>le,ye=te>20,he=se.scrollWidth<=F),!he&&(P!==Xe&&P!==Ye||!we)&&(P!==Be&&P!==$e||!ye)){K&&l.stopPropagation();var ne={transition:"transform ".concat(U,"ms ease-out")};this.setState({thumbsTranslate:te,thumbsStyle:ne})}}},{key:"handleOnThumbnailSwiped",value:function(){var c=this.state.thumbsTranslate,l=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:c,thumbsStyle:{transition:"all ".concat(l,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var c=this.state.currentSlideOffset,l=this.props.swipeThreshold;return Math.abs(c)>l}},{key:"resetSwipingDirection",value:function(){var c=this.state,l=c.swipingUpDown,y=c.swipingLeftRight;l&&this.setState({swipingUpDown:!1}),y&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(c){var l=c.event,y=c.dir,O=c.velocity,P=this.props,E=P.disableSwipe,K=P.stopPropagation,U=P.flickThreshold;if(!E){var q=this.props.isRTL;K&&l.stopPropagation(),this.resetSwipingDirection();var M=(y===Xe?1:-1)*(q?-1:1),z=O>U&&!(y===Ye||y===$e);this.handleOnSwipedTo(M,z)}}},{key:"handleOnSwipedTo",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=O;!this.sufficientSwipe()&&!l||P||(E+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(E=O),this.unthrottledSlideToIndex(E)}},{key:"handleTouchMove",value:function(c){this.state.swipingLeftRight&&c.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(c){var l=this.props,y=l.disableKeyDown,O=l.useBrowserFullscreen,P=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!y)switch(parseInt(c.keyCode||c.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(c);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(c);break;case 27:P&&!O&&this.exitFullScreen()}}},{key:"handleImageError",value:function(c){var l=this.props.onErrorImageURL;l&&c.target.src.indexOf(l)===-1&&(c.target.src=l)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var c=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(c)))}},{key:"initSlideWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeSlideWrapperObserver=new Jn(Te(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperWidth:O.contentRect.width},l.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(c.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeThumbnailWrapperObserver=new Jn(Te(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperHeight:O.contentRect.height},l.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(c.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var c=this.props,l=c.onScreenChange,y=c.useBrowserFullscreen,O=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,P=this.imageGallery.current===O;l&&l(P),y&&this.setState({isFullscreen:P})}},{key:"slideToIndex",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=this.props,K=E.items,U=E.slideDuration,q=E.onBeforeSlide;if(!P){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var M=K.length-1,z=c;c<0?z=M:c>M&&(z=0),q&&z!==O&&q(z),this.setState({previousIndex:O,currentIndex:z,isTransitioning:z!==O,currentSlideOffset:0,slideStyle:{transition:"all ".concat(U,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"right":"left")}},{key:"slideRight",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"left":"right")}},{key:"slideTo",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=this.props.items,K=O+(l==="left"?-1:1);P||(E.length===2?this.slideToIndexWithStyleReset(K,c):this.slideToIndex(K,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var y=this,O=this.state,P=O.currentIndex,E=O.currentSlideOffset;this.setState({currentSlideOffset:E+(P>c?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return y.slideToIndex(c,l)},25)})}},{key:"handleThumbnailMouseOver",value:function(c,l){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(c,l)}},{key:"handleThumbnailKeyUp",value:function(c,l){gr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){gr(c)&&(0,this.props.onClick)(c)}},{key:"isThumbnailVertical",value:function(){var c=this.props.thumbnailPosition;return c==="left"||c==="right"}},{key:"addScreenChangeEvent",value:function(){var c=this;mr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;mr.forEach(function(l){document.removeEventListener(l,c.handleScreenChange)})}},{key:"fullScreen",value:function(){var c=this.props.useBrowserFullscreen,l=this.imageGallery.current;c?l.requestFullscreen?l.requestFullscreen():l.msRequestFullscreen?l.msRequestFullscreen():l.mozRequestFullScreen?l.mozRequestFullScreen():l.webkitRequestFullscreen?l.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var c=this.state.isFullscreen,l=this.props.useBrowserFullscreen;c&&(l?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var c=this.props.infinite,l=this.state.currentIndex;c||this.canSlideRight()?this.slideToIndex(l+1):this.pause()}},{key:"play",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props,y=l.onPlay,O=l.slideInterval,P=l.slideDuration,E=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(O,P)),y&&c&&y(E))}},{key:"pause",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props.onPause,y=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),l&&c&&l(y))}},{key:"isImageLoaded",value:function(c){return!!this.loadedImages[c.original]||(this.loadedImages[c.original]=!0,!1)}},{key:"handleImageLoaded",value:function(c,l){var y=this.props.onImageLoad;!this.loadedImages[l]&&y&&(this.loadedImages[l]=!0,y(c))}},{key:"renderItem",value:function(c){var l=this.state.isFullscreen,y=this.props.onImageError||this.handleImageError;return m().createElement(no,{description:c.description,fullscreen:c.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:l,onImageError:y,original:c.original,originalAlt:c.originalAlt,originalHeight:c.originalHeight,originalWidth:c.originalWidth,originalTitle:c.originalTitle,sizes:c.sizes,loading:c.loading,srcSet:c.srcSet})}},{key:"renderThumbInner",value:function(c){var l=this.props.onThumbnailError||this.handleImageError;return m().createElement("span",{className:"image-gallery-thumbnail-inner"},m().createElement("img",{className:"image-gallery-thumbnail-image",src:c.thumbnail,height:c.thumbnailHeight,width:c.thumbnailWidth,alt:c.thumbnailAlt,title:c.thumbnailTitle,loading:c.thumbnailLoading,onError:l}),c.thumbnailLabel&&m().createElement("div",{className:"image-gallery-thumbnail-label"},c.thumbnailLabel))}},{key:"render",value:function(){var c=this.state,l=c.currentIndex,y=c.isFullscreen,O=c.modalFullscreen,P=c.isPlaying,E=this.props,K=E.additionalClass,U=E.disableThumbnailSwipe,q=E.indexSeparator,M=E.isRTL,z=E.items,F=E.thumbnailPosition,B=E.renderFullscreenButton,G=E.renderCustomControls,te=E.renderLeftNav,le=E.renderRightNav,we=E.showBullets,ye=E.showFullscreenButton,he=E.showIndex,se=E.showThumbnails,ne=E.showNav,De=E.showPlayButton,at=E.renderPlayPauseButton,lt=this.getThumbnailStyle(),Me=this.getSlideItems(),Ue=Me.slides,_e=Me.thumbnails,Ze=Me.bullets,ct=p("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(F),{"image-gallery-rtl":M}),et=m().createElement("div",{ref:this.imageGallerySlideWrapper,className:ct},G&&G(),this.canSlide()?m().createElement(m().Fragment,null,ne&&m().createElement(m().Fragment,null,te(this.slideLeft,!this.canSlideLeft()),le(this.slideRight,!this.canSlideRight())),m().createElement(ur,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},m().createElement("div",{className:"image-gallery-slides"},Ue))):m().createElement("div",{className:"image-gallery-slides"},Ue),De&&at(this.togglePlay,P),we&&m().createElement("div",{className:"image-gallery-bullets"},m().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Ze)),ye&&B(this.toggleFullScreen,y),he&&m().createElement("div",{className:"image-gallery-index"},m().createElement("span",{className:"image-gallery-index-current"},l+1),m().createElement("span",{className:"image-gallery-index-separator"},q),m().createElement("span",{className:"image-gallery-index-total"},z.length))),ut=p("image-gallery",K,{"fullscreen-modal":O}),ke=p("image-gallery-content",this.getThumbnailPositionClassName(F),{fullscreen:y}),bo=p("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(F),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&M},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!U},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!U});return m().createElement("div",{ref:this.imageGallery,className:ut,"aria-live":"polite"},m().createElement("div",{className:ke},(F==="bottom"||F==="right")&&et,se&&_e.length>0?m().createElement(ur,{className:bo,delta:0,onSwiping:!U&&this.handleThumbnailSwiping,onSwiped:!U&&this.handleOnThumbnailSwiped},m().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},m().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:lt,"aria-label":"Thumbnail Navigation"},_e))):null,(F==="top"||F==="left")&&et))}}],f&&fo(a.prototype,f),Object.defineProperty(a,"prototype",{writable:!1}),Y}(m().Component);en.propTypes={flickThreshold:S.number,items:(0,S.arrayOf)((0,S.shape)({bulletClass:S.string,bulletOnClick:S.func,description:S.string,original:S.string,originalHeight:S.number,originalWidth:S.number,loading:S.string,thumbnailHeight:S.number,thumbnailWidth:S.number,thumbnailLoading:S.string,fullscreen:S.string,originalAlt:S.string,originalTitle:S.string,thumbnail:S.string,thumbnailAlt:S.string,thumbnailLabel:S.string,thumbnailTitle:S.string,originalClass:S.string,thumbnailClass:S.string,renderItem:S.func,renderThumbInner:S.func,imageSet:mo,srcSet:S.string,sizes:S.string})).isRequired,showNav:S.bool,autoPlay:S.bool,lazyLoad:S.bool,infinite:S.bool,showIndex:S.bool,showBullets:S.bool,showThumbnails:S.bool,showPlayButton:S.bool,showFullscreenButton:S.bool,disableThumbnailScroll:S.bool,disableKeyDown:S.bool,disableSwipe:S.bool,disableThumbnailSwipe:S.bool,useBrowserFullscreen:S.bool,onErrorImageURL:S.string,indexSeparator:S.string,thumbnailPosition:(0,S.oneOf)(["top","bottom","left","right"]),startIndex:S.number,slideDuration:S.number,slideInterval:S.number,slideOnThumbnailOver:S.bool,swipeThreshold:S.number,swipingTransitionDuration:S.number,swipingThumbnailTransitionDuration:S.number,onSlide:S.func,onBeforeSlide:S.func,onScreenChange:S.func,onPause:S.func,onPlay:S.func,onClick:S.func,onImageLoad:S.func,onImageError:S.func,onTouchMove:S.func,onTouchEnd:S.func,onTouchStart:S.func,onMouseOver:S.func,onMouseLeave:S.func,onBulletClick:S.func,onThumbnailError:S.func,onThumbnailClick:S.func,renderCustomControls:S.func,renderLeftNav:S.func,renderRightNav:S.func,renderPlayPauseButton:S.func,renderFullscreenButton:S.func,renderItem:S.func,renderThumbInner:S.func,stopPropagation:S.bool,additionalClass:S.string,useTranslate3D:S.bool,isRTL:S.bool,useWindowKeyDown:S.bool},en.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onBulletClick:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(d,a){return m().createElement(ao,{onClick:d,disabled:a})},renderRightNav:function(d,a){return m().createElement(lo,{onClick:d,disabled:a})},renderPlayPauseButton:function(d,a){return m().createElement(co,{onClick:d,isPlaying:a})},renderFullscreenButton:function(d,a){return m().createElement(so,{onClick:d,isFullscreen:a})},useWindowKeyDown:!0};const go=en})(),h})())}(zt)),zt.exports}var Da=La();const za=ko(Da);function Fa(){var e=new Map;function t(n){var r=n.root,i=n.rootMargin,s=n.threshold,h=e.get(r);h||(h=new Map,e.set(r,h));var u=JSON.stringify({rootMargin:i,threshold:s}),p=h.get(u);if(!p){var g=new Map,m=new IntersectionObserver(function(v){v.forEach(function(j){var w=g.get(j.target);w?.(j)})},{root:r,rootMargin:i,threshold:s});p={observer:m,entryCallbacks:g},h.set(u,p)}return{observe:function(j,w){var k,x;(k=p)==null||k.entryCallbacks.set(j,w),(x=p)==null||x.observer.observe(j)},unobserve:function(j){var w,k;(w=p)==null||w.entryCallbacks.delete(j),(k=p)==null||k.observer.unobserve(j)}}}return{getObserver:t}}var Wa="0px",Aa=[0],Na=Fa();function Ba(e){var t,n,r=(t=e?.rootMargin)!=null?t:Wa,i=(n=e?.threshold)!=null?n:Aa,s=L.useRef(null),h=L.useRef(null),u=L.useRef(null),p=L.useState(),g=p[0],m=p[1],v=L.useCallback(function(){var x=s.current;if(!x){m(void 0);return}var C=Na.getObserver({root:h.current,rootMargin:r,threshold:i});C.observe(x,function(_){m(_)}),u.current=C},[r,i]),j=L.useCallback(function(){var x=u.current,C=s.current;C&&x?.unobserve(C),u.current=null},[]),w=L.useCallback(function(x){j(),s.current=x,v()},[v,j]),k=L.useCallback(function(x){j(),h.current=x,v()},[v,j]);return[w,{entry:g,rootRef:k}]}function Tn(){return Tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn.apply(this,arguments)}function $a(e){var t,n=Ba(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),h=L.useState(s),u=h[0],p=h[1];return s&&!u&&p(!0),[r,Tn({},i,{isVisible:s,wasEverVisible:u})]}var Ua=100;function Ka(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,h=e.delayInMs,u=h===void 0?Ua:h,p=$a({rootMargin:i}),g=p[0],m=p[1],v=m.rootRef,j=m.isVisible,w=!s&&!t&&j&&n;return L.useEffect(function(){if(w){var k=setTimeout(function(){r()},u);return function(){clearTimeout(k)}}},[r,w,u]),[g,{rootRef:v}]}const Ha={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>'},Va={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005.195v12.666c0 1.96-1.537 3.56-3.472 3.662l-.195.005H5.667a3.667 3.667 0 0 1-3.662-3.472L2 18.333V5.667c0-1.96 1.537-3.56 3.472-3.662L5.667 2h12.666zm-2.626 7.293a1 1 0 0 0-1.414 0L11 12.585l-1.293-1.292l-.094-.083a1 1 0 0 0-1.32 1.497l2 2l.094.083a1 1 0 0 0 1.32-.083l4-4l.083-.094a1 1 0 0 0-.083-1.32z"/></g>'},qa={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/>'};var sn=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function an(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Ci(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Ei(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Ga(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(i=!1);return i}var $n={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":sn?173:189,"=":sn?61:187,";":sn?59:186,"'":222,"[":219,"]":221,"\\":220},Ae={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},On={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},fe={16:!1,18:!1,17:!1,91:!1},de={};for(var Pt=1;Pt<20;Pt++)$n["f".concat(Pt)]=111+Pt;var oe=[],Ar=!1,Ii="all",Pi=[],Ht=function(t){return $n[t.toLowerCase()]||Ae[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function _i(e){Ii=e||"all"}function vt(){return Ii||"all"}function Xa(){return oe.slice(0)}function Ya(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function Qa(e){return typeof e=="string"&&(e=Ht(e)),oe.indexOf(e)!==-1}function Ja(e,t){var n,r;e||(e=vt());for(var i in de)if(Object.prototype.hasOwnProperty.call(de,i))for(n=de[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;vt()===e&&_i(t||"all")}function Za(e){var t=e.keyCode||e.which||e.charCode,n=oe.indexOf(t);if(n>=0&&oe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&oe.splice(0,oe.length),(t===93||t===224)&&(t=91),t in fe){fe[t]=!1;for(var r in Ae)Ae[r]===t&&(je[r]=!1)}}function el(e){if(typeof e>"u")Object.keys(de).forEach(function(h){return delete de[h]});else if(Array.isArray(e))e.forEach(function(h){h.key&&ln(h)});else if(typeof e=="object")e.key&&ln(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],s=n[1];typeof i=="function"&&(s=i,i=""),ln({key:e,scope:i,method:s,splitKey:"+"})}}var ln=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,h=s===void 0?"+":s,u=Ei(n);u.forEach(function(p){var g=p.split(h),m=g.length,v=g[m-1],j=v==="*"?"*":Ht(v);if(de[j]){r||(r=vt());var w=m>1?Ci(Ae,g):[];de[j]=de[j].filter(function(k){var x=i?k.method===i:!0;return!(x&&k.scope===r&&Ga(k.mods,w))})}})};function Nr(e,t,n,r){if(t.element===r){var i;if(t.scope===n||t.scope==="all"){i=t.mods.length>0;for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&(!fe[s]&&t.mods.indexOf(+s)>-1||fe[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!fe[16]&&!fe[18]&&!fe[17]&&!fe[91]||i||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Br(e,t){var n=de["*"],r=e.keyCode||e.which||e.charCode;if(je.filter.call(this,e)){if((r===93||r===224)&&(r=91),oe.indexOf(r)===-1&&r!==229&&oe.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(k){var x=On[k];e[k]&&oe.indexOf(x)===-1?oe.push(x):!e[k]&&oe.indexOf(x)>-1?oe.splice(oe.indexOf(x),1):k==="metaKey"&&e[k]&&oe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(oe=oe.slice(oe.indexOf(x))))}),r in fe){fe[r]=!0;for(var i in Ae)Ae[i]===r&&(je[i]=!0);if(!n)return}for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&(fe[s]=e[On[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(oe.indexOf(17)===-1&&oe.push(17),oe.indexOf(18)===-1&&oe.push(18),fe[17]=!0,fe[18]=!0);var h=vt();if(n)for(var u=0;u<n.length;u++)n[u].scope===h&&(e.type==="keydown"&&n[u].keydown||e.type==="keyup"&&n[u].keyup)&&Nr(e,n[u],h,t);if(r in de){for(var p=0;p<de[r].length;p++)if((e.type==="keydown"&&de[r][p].keydown||e.type==="keyup"&&de[r][p].keyup)&&de[r][p].key){for(var g=de[r][p],m=g.splitKey,v=g.key.split(m),j=[],w=0;w<v.length;w++)j.push(Ht(v[w]));j.sort().join("")===oe.sort().join("")&&Nr(e,g,h,t)}}}}function tl(e){return Pi.indexOf(e)>-1}function je(e,t,n){oe=[];var r=Ei(e),i=[],s="all",h=document,u=0,p=!1,g=!0,m="+",v=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(h=t.element),t.keyup&&(p=t.keyup),t.keydown!==void 0&&(g=t.keydown),t.capture!==void 0&&(v=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey)),typeof t=="string"&&(s=t);u<r.length;u++)e=r[u].split(m),i=[],e.length>1&&(i=Ci(Ae,e)),e=e[e.length-1],e=e==="*"?"*":Ht(e),e in de||(de[e]=[]),de[e].push({keyup:p,keydown:g,scope:s,mods:i,shortcut:r[u],method:n,key:r[u],splitKey:m,element:h});typeof h<"u"&&!tl(h)&&window&&(Pi.push(h),an(h,"keydown",function(j){Br(j,h)},v),Ar||(Ar=!0,an(window,"focus",function(){oe=[]},v)),an(h,"keyup",function(j){Br(j,h),Za(j)},v))}function nl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(de).forEach(function(n){var r=de[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var cn={setScope:_i,getScope:vt,deleteScope:Ja,getPressedKeyCodes:Xa,isPressed:Qa,filter:Ya,trigger:nl,unbind:el,keyMap:$n,modifier:Ae,modifierMap:On};for(var un in cn)Object.prototype.hasOwnProperty.call(cn,un)&&(je[un]=cn[un]);if(typeof window<"u"){var rl=window.hotkeys;je.noConflict=function(e){return e&&window.hotkeys===je&&(window.hotkeys=rl),je},window.hotkeys=je}je.filter=function(){return!0};var Ri=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},il=function(t){return Ri(t,["INPUT","TEXTAREA","SELECT"])};function ol(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,h=i.filter,u=i.keyup,p=i.keydown,g=i.filterPreventDefault,m=g===void 0?!0:g,v=i.enabled,j=v===void 0?!0:v,w=i.enableOnContentEditable,k=w===void 0?!1:w,x=L.useRef(null),C=L.useCallback(function(_,T){var W,X;return h&&!h(_)?!m:il(_)&&!Ri(_,s)||(W=_.target)!=null&&W.isContentEditable&&!k?!0:x.current===null||document.activeElement===x.current||(X=x.current)!=null&&X.contains(document.activeElement)?(t(_,T),!0):!1},r?[x,s,h].concat(r):[x,s,h]);return L.useEffect(function(){if(!j){je.unbind(e,C);return}return u&&p!==!0&&(n.keydown=!1),je(e,n||{},C),function(){return je.unbind(e,C)}},[C,e,j]),x}je.isPressed;const Mi=L.createContext({open:!1,toggleOpen:e=>{}});function sl({children:e}){const[t,n]=L.useState(!1),r=s=>{n(s??!s)},i=L.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx(Mi.Provider,{value:i,children:e})}function Un(){return L.useContext(Mi)}const Ce={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,currentPage:1,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",explorePath:"/api/blocklets/explore",exploreDidsPath:"/api/blocklets/dids",cacheSize:100},al=e=>xt(async()=>{const{data:t}=await e.get(Ce.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function ll(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...Eo(e,["sortBy","sortDirection","showResources"])}:{sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:r,onSearchSelect:i=u=>{t.onFilterChange({...n,keyword:u.title})},emptyCategory:s}=t;!n.category&&!s&&(n.category="All");const h=u=>{const p={...n,...u};r(tn(p,g=>g===""||g===void 0))};return{filters:e,cleanFilter:u=>{const p=u?tn(n,(g,m)=>u.includes(m)):{};r(tn(p,g=>g===""||g===void 0))},handleActiveMenu:u=>{u!==e.menu&&r({menu:u})},handleSort:(u,p)=>{h({sortBy:u,sortDirection:p||u==="nameAsc"?"asc":"desc"})},handleKeyword:u=>{h({category:void 0,keyword:u||void 0})},handlePrice:u=>{h({price:u===e.price?void 0:u})},handleCategory:u=>{h({category:u===e.category?"":u})},handleDeveloper:u=>{h({owner:u||void 0})},handlePage:u=>{h({currentPage:u})},handleSwitchShowResources:u=>{h({showResources:u})},handleSearchSelect:u=>{i(u)}}}const cl=(e,t,n)=>e&&t||!n,Li=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Di=(e,t,n)=>{const r=Lo(e),i=Do(r.search);if(zo(e)?.endsWith(".gif"))return i.imageFilter?Fo({...r,search:""}):e;if(i.imageFilter)return e;const s=n||window.blocklet?.version,{w:h,h:u}=typeof t=="object"?{w:t.w,h:t.h}:{w:t,h:t};return Rn(e,{...h||u?{imageFilter:"resize",w:h,h:u}:{},v:s})},ul=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],dl=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),hl=e=>Array.isArray(e)?e.map(t=>t.message).join(`
2
2
  `):e.response?.data?.error?e.response.data.error.message||e.response.data.error:e.message||e,fl=(e,t)=>e?.replace(/{(\w*)}/g,(n,r)=>t.hasOwnProperty(r)?t[r]:""),pl=()=>window.innerWidth<=600,ml={common:{title:"Blocklet Store",searchStore:"Search Blocklet",showResources:"Show extensions",price:"Price",category:"Category",categories:"Categories",resourceType:"Resource Type",clear:"Clear",cancel:"Cancel",search:"Search",fetchError:"Failed to fetch data, please try again later",searchPlaceholder:"Search blocklet"},explore:{title:"Explore",trending:"Trending",topRated:"Top Rated",recentlyUpdated:"Recently Updated",viewDetail:"View Details"},sort:{sort:"Sort",rating:"Rating",popularity:"Most Popular",lastPublished:"Latest Published"},category:{all:"All",placeholder:"Category name",helperText:"Please select a category"},blocklet:{noResults:"No blocklet found.",free:"Free",search:'Results for "{keyword}"',authorTag:"Blocklet by {name}",resourceTag:"Extensions for {name}",resultCount:"{count} Blocklets",emptyTip:"Tips:",filterTip:"Appropriately reduce the filter conditions",keywordTip:"Try other keywords",owner:"Blocklets from {name}",noBlockletPart1:'No Blocklets associated with"',noBlockletPart2:'"were found',noCategoryResults1:'No "',noCategoryResults2:'" Blocklets'},autocomplete:{expandResult:'View all search results for "{name}"'}},gl={common:{title:"Blocklet 商店",searchStore:"搜索 Blocklet",showResources:"显示扩展",price:"价格",category:"类别",categories:"类别",resourceType:"资源类型",clear:"清除",cancel:"取消",search:"搜索",fetchError:"获取数据失败, 请稍后再试",searchPlaceholder:"搜索 Blocklet"},explore:{title:"探索",trending:"趋势",topRated:"评分最高",recentlyUpdated:"最近更新",viewDetail:"查看详情"},sort:{sort:"排序",rating:"评分",popularity:"最热门",lastPublished:"最新发布"},category:{all:"全部",placeholder:"分类名称",helperText:"请选择分类"},blocklet:{noResults:"未搜索到 Blocklet",free:"免费",search:'搜索 "{keyword}" 的结果',authorTag:"{name} 的 Blocklet",resourceTag:"{name} 的拓展",resultCount:"{count} 个 Blocklet",emptyTip:"建议:",filterTip:"适当减少筛选条件",keywordTip:"尝试其他关键字",owner:"来自 {name} 的 Blocklets",noBlockletPart1:'没有找到与"',noBlockletPart2:'"相关的 Blocklets',noCategoryResults1:'无 "',noCategoryResults2:'" 类别的 Blocklets'},autocomplete:{expandResult:"查看 “{name}” 的所有搜索结果"}},dn={en:yr(ml),zh:yr(gl)},zi=(e,t)=>{const n={};return e&&(n["x-blocklet-server-version"]=e),t&&(n["x-blocklet-store-version"]=t),n},bl=e=>(t,n)=>{const r=dn[e]?dn[e][t]:dn.en[t];return fl(r,n)||t},Fi={errors:{fetchCategoriesError:null},loadings:{fetchCategoriesLoading:!1},compact:!1,endpoint:"",wrapChildren:()=>null,t:e=>e,storeVersion:"",minItemWidth:350,serverVersion:"",layout:{},selectedCategory:void 0,categoryList:[],blockletRender:()=>null,locale:"en",categoryOptions:[],priceOptions:[],storeApi:null,baseSearch:!1,showResourcesSwitch:!1,showCategory:!1,tagFilters:[],developerName:"",onFilterChange:()=>{},updateDeveloperName:()=>{},getCategoryLocale:()=>null,search:{filters:{},cleanFilter:()=>{},handleActiveMenu:()=>{},handleSort:()=>{},handleKeyword:()=>{},handlePrice:()=>{},handleCategory:()=>{},handleDeveloper:()=>{},handleSwitchShowResources:()=>{},handleSearchSelect:()=>{},handlePage:()=>{}}},Wi=L.createContext(Fi),{Provider:yl,Consumer:yc}=Wi;function vl(e){const{locale:t="zh",filters:n={},serverVersion:r="",onFilterChange:i=()=>{},minItemWidth:s=350,queryFilter:h=!0,layout:u={},wrapChildren:p=ue=>ue,extraFilter:g=ue=>ue,baseSearch:m=!1,fetchCategoryDelay:v=0,showResourcesSwitch:j=!1,showCategory:w=!0,tagFilters:k=[],children:x,storeVersion:C,onSearchSelect:_=()=>{},endpoint:T,blockletRender:W,compact:X=!1}=e,J=zi(r,C),A=L.useMemo(()=>Yr({baseURL:T,headers:J}),[T]),V=ll(n,{onFilterChange:i,emptyCategory:!u.showExplore,onSearchSelect:_}),[Z,re]=L.useState(""),{data:$=[],error:Ee,loading:ge,run:Se}=al(A),pe=L.useMemo(()=>{const ue=fs($,[ee=>ee.name],["asc"]),ie=ue.findIndex(ee=>ee.name==="All"||ee.locales.en==="All");return ie>-1?[{...ue[ie],_id:"All"},...ue.slice(0,ie),...ue.slice(ie+1)]:ue},[$]),be=L.useCallback(bl(t),[t]),D=L.useMemo(()=>dl(pe,t),[pe,t]),ae=ul(be),Te={search:V,compact:X,errors:{fetchCategoriesError:Ee},loadings:{fetchCategoriesLoading:ge},extraFilter:g,endpoint:T,queryFilter:h,layout:{showExplore:u.showExplore??!1,showCategory:u.showCategory??!0,showTitle:u.showTitle??!0,showSearch:u.showSearch??!0},minItemWidth:s,wrapChildren:p,t:be,storeVersion:C,serverVersion:r,selectedCategory:V.filters.category||(u.showExplore?"":"All"),categoryList:pe,blockletRender:W,locale:t,categoryOptions:D,priceOptions:ae,storeApi:A,baseSearch:m,showResourcesSwitch:j,showCategory:w,tagFilters:k,onFilterChange:i,getCategoryLocale:ue=>{if(!ue)return null;const ie=$.find(ee=>ee._id===ue||ee.locales.en==="All");return ie?ie.locales[t]||ie.locales.en:null},get developerName(){return Z},updateDeveloperName:re};return L.useEffect(()=>{setTimeout(Se,v||0)},[T,Se,v]),o.jsx(yl,{value:Te,children:x})}function xe(){return L.useContext(Wi)||Fi}function Ai({children:e,onClick:t,size:n=32,...r}){return o.jsx(Oe,{...r,onClick:t,variant:"outlined",sx:[{minWidth:n,height:n,p:0,borderColor:"divider","&:hover":{borderColor:"divider"},borderRadius:2,color:"text.secondary"},...Array.isArray(r.sx)?r.sx:[r.sx]],children:e})}function _t(e,t){return e===void 0?t:e}function Kn({xs:e=void 0,sm:t=void 0,md:n=void 0,lg:r=void 0,xl:i=void 0,exact:s=!1}){const h=Ve(),u=nt(h.breakpoints.down("sm")),p=nt(h.breakpoints.between("sm","md")),g=nt(h.breakpoints.between("md","lg")),m=nt(h.breakpoints.between("lg","xl"));if(s)return u?e||null:p?t||null:g?n||null:m?r||null:i||null;let v=e;return u||(v=_t(t,v),p)||(v=_t(n,v),g)||(v=_t(r,v),m)?v:_t(i,v)}function xl({children:e}){const{open:t,toggleOpen:n}=Un();return o.jsx(Kn,{xs:o.jsx(Ro,{open:t,onClose:()=>n(!1),children:e}),md:o.jsx(H,{children:e})})}function wl({loading:e=!1,disabled:t,...n}){return o.jsx(Oe,{disableElevation:!0,disabled:t||e===!0,...n,sx:[{borderRadius:"4px"},...Array.isArray(n.sx)?n.sx:[n.sx]],startIcon:e&&o.jsx(Re,{size:"1em"})})}function Cn({value:e,options:t,onChange:n,placeholder:r="",...i}){const s=L.useRef(null),h=Ve(),[u,p]=L.useState(!1),[g,m]=L.useState(e!==null?e:""),v=nt(h.breakpoints.down("sm"));L.useEffect(()=>{m(e!==null?e:"")},[e]);const j=L.useCallback(()=>{p(!1)},[]),w=L.useCallback(()=>{p(!0)},[]);function k(C){m(C.value),n(C.value),v&&j()}function x(C){return C===g}return o.jsxs(o.Fragment,{children:[o.jsxs(Sl,{ref:s,onClick:w,variant:"outlined",size:"medium",className:["my-select__selector",Ao(g)?"":"my-select__selector--active"].join(" "),sx:{minWidth:{xs:"100px",md:"auto"},color:"text.primary",borderRadius:"8px"},...i,children:[t.find(C=>C.value===g)?.name||r,o.jsx(Wo,{className:"my-select__arrowdown",component:Cs,sx:{width:18,height:18}})]}),o.jsx(No,{open:u,anchorEl:s.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:C,placement:_})=>o.jsx(Bo,{...C,style:{transformOrigin:_==="bottom"?"center top":"center bottom"},children:o.jsx($o,{children:o.jsx(Uo,{onClickAway:j,children:o.jsx(kl,{autoFocusItem:u,onMouseEnter:w,onMouseLeave:j,children:t.map(T=>o.jsxs(Ft,{onClick:()=>k(T),sx:{fontSize:14},children:[o.jsx(Ko,{sx:{mr:1,fontSize:16,visibility:x(T.value)?"visible":"hidden"}}),T.name]},T.value))})})})})})]})}const Sl=Ne(wl)`
3
3
  border: 1px solid ${e=>e.theme.palette.divider};
4
4
  padding: 6px 8px 6px 12px;