@abtnode/webapp 1.16.43-beta-20250425-130658-8da18f4d → 1.16.43-beta-20250427-132304-6da95c55

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 (221) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-CiB9toI9.js → AdapterDayjs-wkD3dP7G.js} +1 -1
  4. package/dist/assets/{Add-jEZFTiQU.js → Add-XHvNq2xc.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-CT-4P1KC.js → ArrowDropDown-By-Lbyos.js} +1 -1
  6. package/dist/assets/{Autocomplete-Bs7d-YbL.js → Autocomplete-Bafup0UA.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-BaQf5vA9.js → Breadcrumbs-BLLVv40a.js} +1 -1
  8. package/dist/assets/{ButtonGroup-CXxrSIV0.js → ButtonGroup-BcCzG3de.js} +1 -1
  9. package/dist/assets/{CSSTransition-BP8Rhpxg.js → CSSTransition-BI6H1mbd.js} +1 -1
  10. package/dist/assets/{CallMerge-Cglc7qj4.js → CallMerge-8a7XXxNe.js} +1 -1
  11. package/dist/assets/{CardContent-7kMksoLZ.js → CardContent-D2fq5off.js} +1 -1
  12. package/dist/assets/{ChevronLeft-D0cz-2NS.js → ChevronLeft-CU0-sRba.js} +1 -1
  13. package/dist/assets/{ChevronRight-ByKIlh_D.js → ChevronRight-w8XPzcNg.js} +1 -1
  14. package/dist/assets/{Clear-CzcbL8Ae.js → Clear-ynVb1Ixw.js} +1 -1
  15. package/dist/assets/{Close-C7TOtk9p.js → Close-Ck0zxEK2.js} +1 -1
  16. package/dist/assets/{Community-1Q3DqT_w.js → Community-26DJGhow.js} +1 -1
  17. package/dist/assets/{Delete-CoHU08w5.js → Delete-BLM_yy8k.js} +1 -1
  18. package/dist/assets/{Delete-DosVyBLR.js → Delete-DtfbH9YW.js} +1 -1
  19. package/dist/assets/{DeleteOutline-BOT28g3_.js → DeleteOutline-Chg7XAC_.js} +1 -1
  20. package/dist/assets/{Done-D-DP22Cm.js → Done-CnWoMrlj.js} +1 -1
  21. package/dist/assets/{Edit-CC4z5k1g.js → Edit-Ca8tqL9A.js} +1 -1
  22. package/dist/assets/{ErrorOutline-DjYrwQ38.js → ErrorOutline-BeczG2kx.js} +1 -1
  23. package/dist/assets/{HelpOutline-bgVW4YK3.js → HelpOutline-B6JIewba.js} +1 -1
  24. package/dist/assets/{Holiday-DIaowIan.js → Holiday-vMWmyzs5.js} +1 -1
  25. package/dist/assets/{Launch-JGrFRNfl.js → Launch-CDb-SfqU.js} +1 -1
  26. package/dist/assets/{Link-C2QoHwsl.js → Link-BZFlIWum.js} +1 -1
  27. package/dist/assets/{ListItemButton-CbFcdXgo.js → ListItemButton-CFljVsmz.js} +1 -1
  28. package/dist/assets/{ListSubheader-BiYgsVLH.js → ListSubheader-o4xBvThX.js} +1 -1
  29. package/dist/assets/{LoadingButton-Cq4u8ov0.js → LoadingButton-V9CSomoP.js} +1 -1
  30. package/dist/assets/{LockIcon-Cze-ShJ1.js → LockIcon-UGSvND0B.js} +1 -1
  31. package/dist/assets/{Meeting-BGFEJhQX.js → Meeting-DHpmogl9.js} +1 -1
  32. package/dist/assets/{MoreHoriz-DzKDzUVs.js → MoreHoriz-BytsNanA.js} +1 -1
  33. package/dist/assets/{MoreVert-3cneIjbG.js → MoreVert-e5gpRJAz.js} +1 -1
  34. package/dist/assets/{OffSick-BUmXwL3A.js → OffSick-DlWFqCRf.js} +1 -1
  35. package/dist/assets/{OpenInNew-BjHMRNtt.js → OpenInNew-sbV0XJRS.js} +1 -1
  36. package/dist/assets/{Public-CUgb9aF1.js → Public-4d1VyXac.js} +1 -1
  37. package/dist/assets/{Refresh-Dv_hYlcX.js → Refresh-BBGp5aHa.js} +1 -1
  38. package/dist/assets/{SchemaReference.es-zp5UNeP-.js → SchemaReference.es-cZ9Nl5XA.js} +1 -1
  39. package/dist/assets/{Search-SdD3jiMC.js → Search-DPU7D_vd.js} +1 -1
  40. package/dist/assets/{Slider-Crvk4gHf.js → Slider-DmkvWTWP.js} +1 -1
  41. package/dist/assets/{Stepper-BWlWum42.js → Stepper-wlx1v948.js} +1 -1
  42. package/dist/assets/{TableRow-CPvAPoKO.js → TableRow-Cv-6NOk1.js} +1 -1
  43. package/dist/assets/{TableSearch-BSpNs5yI.js → TableSearch-DYVZ5aqQ.js} +1 -1
  44. package/dist/assets/{ToggleButtonGroup-DKfUnWAC.js → ToggleButtonGroup-hgY0kty7.js} +1 -1
  45. package/dist/assets/{Verified-ll8KM-RV.js → Verified-Bdl_ndo3.js} +1 -1
  46. package/dist/assets/{VerifiedUser-89OpS-O0.js → VerifiedUser-BndujtmX.js} +1 -1
  47. package/dist/assets/{ViewColumn-DYzQrfKK.js → ViewColumn-DKv-qUwc.js} +1 -1
  48. package/dist/assets/{ViewList-B0GgaL9_.js → ViewList-CWmdbP5p.js} +1 -1
  49. package/dist/assets/{WorkingRemotely-DvjI3J2w.js → WorkingRemotely-B7jwhTSh.js} +1 -1
  50. package/dist/assets/{_createAggregator-B68eDEEs.js → _createAggregator-Cvd257df.js} +1 -1
  51. package/dist/assets/{actions-BzctLrRJ.js → actions-BEDRHTnd.js} +1 -1
  52. package/dist/assets/{actions-4GlzmDRv.js → actions-DQCOrU0b.js} +1 -1
  53. package/dist/assets/{agreement-CL0yNId5.js → agreement-BiGRI9I8.js} +1 -1
  54. package/dist/assets/api-CiMDQVlx.js +1 -0
  55. package/dist/assets/{appearance-DWpHxRQY.js → appearance-CR8F4hGm.js} +1 -1
  56. package/dist/assets/{ar-mN5tHF4O.js → ar-DupP3pla.js} +1 -1
  57. package/dist/assets/{audit-logs-Bqt3mjwc.js → audit-logs-C2zXvlil.js} +2 -2
  58. package/dist/assets/{blocklet-C1daQzB9.js → blocklet-CnI_D77p.js} +1 -1
  59. package/dist/assets/{brace-fold.es-BHIReLqK.js → brace-fold.es-Bz5obJ53.js} +1 -1
  60. package/dist/assets/{chain-D_7KXr7d.js → chain-CAsU-eqx.js} +1 -1
  61. package/dist/assets/{click-to-copy-CD44pMYS.js → click-to-copy-DDkq0THS.js} +1 -1
  62. package/dist/assets/cloneDeep-Q6BiomR8.js +1 -0
  63. package/dist/assets/{closebrackets.es--lhPx3rt.js → closebrackets.es-KzwBDVgE.js} +1 -1
  64. package/dist/assets/{codemirror.es-Bj74ewYY.js → codemirror.es-B-7h28_e.js} +1 -1
  65. package/dist/assets/{comment.es-BYggArDY.js → comment.es-D6o8i1AV.js} +1 -1
  66. package/dist/assets/{config-navigation-D-Xbnbfs.js → config-navigation-kwsS4NZa.js} +3 -3
  67. package/dist/assets/{connect-to-C5zcVOc7.js → connect-to-BjhNwzKb.js} +1 -1
  68. package/dist/assets/{de-BP5gdcKp.js → de-TcDcBkI0.js} +1 -1
  69. package/dist/assets/{delete-confirm-DAmIANxQ.js → delete-confirm-DbGSv6E0.js} +1 -1
  70. package/dist/assets/{detail-PsKOtV5O.js → detail-C6r6YN99.js} +3 -3
  71. package/dist/assets/{dialog.es-BS5SePjL.js → dialog.es-D-kj0llM.js} +1 -1
  72. package/dist/assets/{domains-BTKIPvpd.js → domains-DsFJ0gOD.js} +2 -2
  73. package/dist/assets/{download-C6Z56Tt6.js → download-DNEgFuMn.js} +1 -1
  74. package/dist/assets/emotion-react.browser.esm-BCIOwSlJ.js +1 -0
  75. package/dist/assets/{es-CBFvWN06.js → es-CDD0y3ur.js} +1 -1
  76. package/dist/assets/{foldgutter.es-CHhOPKEu.js → foldgutter.es-B8D-8mWs.js} +1 -1
  77. package/dist/assets/{fr-CmHa1dCv.js → fr-zYSSKlBw.js} +1 -1
  78. package/dist/assets/{get-safe-url-BBqla3I1.js → get-safe-url-ggr9AF6e.js} +1 -1
  79. package/dist/assets/{get-safe-url-DK1HRb36.js → get-safe-url-m-Vt3x1Y.js} +1 -1
  80. package/dist/assets/getValidReactChildren-DSge38x6.js +1 -0
  81. package/dist/assets/{hi-CWyDCXYI.js → hi-BsP-0YrU.js} +1 -1
  82. package/dist/assets/{hint.es-DQgFgx7u.js → hint.es-CmhnctJS.js} +1 -1
  83. package/dist/assets/{hint.es2-CfBCBz7B.js → hint.es2-BoDURRqI.js} +1 -1
  84. package/dist/assets/{id-3xH3q-wr.js → id-CY2FWdMB.js} +1 -1
  85. package/dist/assets/{iframe-BHKiJ7ZC.js → iframe-BlVSzQs1.js} +1 -1
  86. package/dist/assets/index-43c6p_A4.js +138 -0
  87. package/dist/assets/index-B1mohDxN.js +1 -0
  88. package/dist/assets/{index-CMmF_Q73.js → index-BCIc2WIx.js} +1 -1
  89. package/dist/assets/{index-bPPx_Hv9.js → index-BPPhYLuk.js} +5 -5
  90. package/dist/assets/{index-d_P1tmBi.js → index-BaZ5mDK5.js} +1 -1
  91. package/dist/assets/{index-CERbZ-Ks.js → index-Bd-wSrok.js} +1 -1
  92. package/dist/assets/{index-Ct3Cv88N.js → index-BdGuHH0I.js} +1 -1
  93. package/dist/assets/{index-D1FTf6L1.js → index-BhHhvd-c.js} +1 -1
  94. package/dist/assets/{index-OQgc2aM9.js → index-Boy4lqmh.js} +1 -1
  95. package/dist/assets/{index-Ca_AI8Ja.js → index-Bqz2OZ45.js} +1 -1
  96. package/dist/assets/{index-DAa8fCLv.js → index-Bwv1Nuxc.js} +1 -1
  97. package/dist/assets/{index-BfmQayrS.js → index-Bz9vhuxD.js} +1 -1
  98. package/dist/assets/{index-BYFWgS3C.js → index-C85gMte0.js} +1 -1
  99. package/dist/assets/{index-Ci13pE37.js → index-CAGvDRHc.js} +1 -1
  100. package/dist/assets/{index-Cv4rDcLo.js → index-CBbC5UjK.js} +1 -1
  101. package/dist/assets/{index-V69Rm1MZ.js → index-CCcwQi2Q.js} +1 -1
  102. package/dist/assets/index-CGMeHQxr.js +327 -0
  103. package/dist/assets/{index-DdA20T3i.js → index-CGi4OvWL.js} +1 -1
  104. package/dist/assets/{index-CFhvSgL3.js → index-CSRFbGOC.js} +1 -1
  105. package/dist/assets/{index-CawbsPlQ.js → index-CShb7ynj.js} +1 -1
  106. package/dist/assets/{index-C1Dkbnu6.js → index-CWjcepMj.js} +3 -3
  107. package/dist/assets/{index-I20LchFz.js → index-CX5Vl_ef.js} +1 -1
  108. package/dist/assets/{index-oaL4Rv1j.js → index-CcZQM-61.js} +1 -1
  109. package/dist/assets/{index-lKfM6BZT.js → index-CcxZpTQ0.js} +1 -1
  110. package/dist/assets/{index-BNQdv6p6.js → index-CpUDZoh_.js} +1 -1
  111. package/dist/assets/{index-DZOoKZ79.js → index-CrRuVPII.js} +1 -1
  112. package/dist/assets/{index-YM5g10d2.js → index-CtvATcqE.js} +2 -2
  113. package/dist/assets/{index-CsApEyBI.js → index-CwbFhhz1.js} +1 -1
  114. package/dist/assets/{index-CbyzO-bB.js → index-D1gzkczN.js} +1 -1
  115. package/dist/assets/{index-BlumH6IJ.js → index-D78nH5zB.js} +5 -5
  116. package/dist/assets/{index-VKNa-9d8.js → index-DFdbqm_n.js} +1 -1
  117. package/dist/assets/{index-uP4E64Y9.js → index-DMSU_j13.js} +1 -1
  118. package/dist/assets/{index-Cb5vovQV.js → index-D_DY5bLE.js} +1 -1
  119. package/dist/assets/{index-BTA7w00_.js → index-DbQGncbi.js} +1 -1
  120. package/dist/assets/{index-BbPyYcY_.js → index-DjS15L-I.js} +1 -1
  121. package/dist/assets/{index-_5yUL6f2.js → index-Dkrq4VYv.js} +1 -1
  122. package/dist/assets/{index-VfvLvsbm.js → index-DkyC-QIp.js} +1 -1
  123. package/dist/assets/{index-CMRLl9mx.js → index-IpHPsNbl.js} +1 -1
  124. package/dist/assets/index-IvW6aNxJ.js +1 -0
  125. package/dist/assets/{index-2OLC7QPg.js → index-P0BZgyB_.js} +1 -1
  126. package/dist/assets/{index-BNPQGzJY.js → index-PNKemmYN.js} +2 -2
  127. package/dist/assets/index-WFhNZSHm.js +1 -0
  128. package/dist/assets/index-a5PDviOQ.js +109 -0
  129. package/dist/assets/index-cTcDEID3.js +1 -0
  130. package/dist/assets/{index-Da29Cj1G.js → index-ch8D4zca.js} +3 -3
  131. package/dist/assets/{index-CDZ-Hu0o.js → index-lxr0z-b2.js} +5 -5
  132. package/dist/assets/{index-F-rIOXkO.js → index-stJAb77w.js} +7 -7
  133. package/dist/assets/{index-D4kEYYxp.js → index-tTWNx2iK.js} +1 -1
  134. package/dist/assets/{index.esm-zouKPS5y.js → index.esm-CA9DrYdn.js} +1 -1
  135. package/dist/assets/{info-addon.es-CXIyNQaL.js → info-addon.es-gbetknjr.js} +1 -1
  136. package/dist/assets/{info.es-B4cU8Aqj.js → info.es-CmoAr9f2.js} +1 -1
  137. package/dist/assets/{install-from-url-DQ7AcK35.js → install-from-url-C2Vxwjje.js} +1 -1
  138. package/dist/assets/{invitation-BN8GOT5e.js → invitation-DKYMcD3r.js} +4 -4
  139. package/dist/assets/is-path-prefix-equal-rpfJCCji.js +1 -0
  140. package/dist/assets/{item-DhcUqUC3.js → item-BCGpDm0x.js} +1 -1
  141. package/dist/assets/{ja-Dlm9gbED.js → ja-BLPXqHM4.js} +1 -1
  142. package/dist/assets/{javascript.es-DmC-LVTH.js → javascript.es-CcGSBERp.js} +1 -1
  143. package/dist/assets/{jump-to-line.es-CiRJzQAS.js → jump-to-line.es-CUxBVdAH.js} +1 -1
  144. package/dist/assets/{jump.es-Cr1rsr6r.js → jump.es-BDuvIZQ0.js} +1 -1
  145. package/dist/assets/{ko-JYKwx9PY.js → ko-Cxgk34co.js} +1 -1
  146. package/dist/assets/{lint.es-Cao4W6is.js → lint.es-tyfA_YoN.js} +1 -1
  147. package/dist/assets/{lint.es2-BmO3ym_D.js → lint.es2-btMNy2T5.js} +1 -1
  148. package/dist/assets/{lint.es3-Bw8E5ZSP.js → lint.es3-CsgKY2qO.js} +1 -1
  149. package/dist/assets/{list-header-CLvwP9eV.js → list-header-cCDMj2dv.js} +1 -1
  150. package/dist/assets/{log-DIqg0luc.js → log-BHrJgU1u.js} +2 -2
  151. package/dist/assets/{lottie-react.esm-CXxqofKx.js → lottie-react.esm-CZOhkpuG.js} +1 -1
  152. package/dist/assets/{matchbrackets.es-YBQDutU-.js → matchbrackets.es-CMt6lmtZ.js} +1 -1
  153. package/dist/assets/{memory-y0A5NqJK.js → memory-BEtjWKXR.js} +1 -1
  154. package/dist/assets/{mode.es-CL9LdSgs.js → mode.es-wTI9mJn4.js} +1 -1
  155. package/dist/assets/{mode.es2-Bn-R4bKM.js → mode.es2-G_cgJMTw.js} +1 -1
  156. package/dist/assets/{mode.es3-qCeL57xO.js → mode.es3-C-MqyF_8.js} +1 -1
  157. package/dist/assets/omit-D0lCrFB2.js +1 -0
  158. package/dist/assets/{onlineParser.es-CyI9Q_d0.js → onlineParser.es-CoaYBVr3.js} +1 -1
  159. package/dist/assets/{overview-mjgztvpK.js → overview-CeMM_m15.js} +2 -2
  160. package/dist/assets/{permission-Bvs2yqp1.js → permission-CuhAVOte.js} +1 -1
  161. package/dist/assets/{preference-DfKjVX7Q.js → preference-Ba4CS1au.js} +4 -4
  162. package/dist/assets/{pt-BgyGyT44.js → pt-BINIHul4.js} +1 -1
  163. package/dist/assets/{raf-schd.esm-BhbXYYe6.js → raf-schd.esm-BDGVTO2K.js} +1 -1
  164. package/dist/assets/refType-BmHggJBp.js +1 -0
  165. package/dist/assets/{resource-dialog-DQHi5__f.js → resource-dialog-BaqABFdk.js} +4 -4
  166. package/dist/assets/{ru-CEVWIKf9.js → ru-BifF7u-P.js} +1 -1
  167. package/dist/assets/{runtime-DEyoNLVz.js → runtime-B1_2AN1V.js} +1 -1
  168. package/dist/assets/{schema-BxmPumwx.js → schema-CtI14cMZ.js} +1 -1
  169. package/dist/assets/{search.es-Bq_Otaio.js → search.es-DwqFABKC.js} +1 -1
  170. package/dist/assets/{searchcursor.es-S4pYTGPm.js → searchcursor.es-CR5dgXQU.js} +1 -1
  171. package/dist/assets/{service-R5kw_ant.js → service-DZ6ZhVQa.js} +1 -1
  172. package/dist/assets/session-Bla-5Vji.js +1 -0
  173. package/dist/assets/{shorten-label-9dS8Ib5c.js → shorten-label-CgVEqYB3.js} +1 -1
  174. package/dist/assets/{show-hint.es-PvtNb65c.js → show-hint.es-D7fU1Ez2.js} +1 -1
  175. package/dist/assets/{simple-select-DscPnnca.js → simple-select-BF_-vP70.js} +1 -1
  176. package/dist/assets/{spaces-DEZPSf7q.js → spaces-FtV1YkmK.js} +1 -1
  177. package/dist/assets/{status-BEg3LYaU.js → status-DyDB_CSf.js} +1 -1
  178. package/dist/assets/{status-D-4k6JPe.js → status-FtzbbmFC.js} +1 -1
  179. package/dist/assets/{sublime.es-CaqfX_z-.js → sublime.es-Czrimmvo.js} +1 -1
  180. package/dist/assets/{switch-control-D3y8OKM4.js → switch-control-CDSckg1t.js} +1 -1
  181. package/dist/assets/{table-icons-Br74wkXv.js → table-icons-D3zUEXzX.js} +1 -1
  182. package/dist/assets/{team-BOaKaF7d.js → team-C8t3W7Ja.js} +1 -1
  183. package/dist/assets/{th-y94pKVk7.js → th-CBxM23U5.js} +1 -1
  184. package/dist/assets/{toLower-BZi61gAb.js → toLower-D98_Pc5b.js} +1 -1
  185. package/dist/assets/toUpper-CUy0HuBI.js +1 -0
  186. package/dist/assets/{traffic-BDBSkRtU.js → traffic-CGHM6lB_.js} +2 -2
  187. package/dist/assets/{url-evaluation-CiLjXBIq.js → url-evaluation-xo9lvqFa.js} +1 -1
  188. package/dist/assets/{url-join-BQni1DFo.js → url-join-CKwBmKCh.js} +1 -1
  189. package/dist/assets/{use-mobile-d8ioRwmr.js → use-mobile-CLhWBgxx.js} +1 -1
  190. package/dist/assets/{use-mobile-Bj4lPhGz.js → use-mobile-DGw04Mhi.js} +1 -1
  191. package/dist/assets/{useAsync-BHK_lRzo.js → useAsync-DqwLtJm6.js} +1 -1
  192. package/dist/assets/{useLocalStorage-i7GWvl8p.js → useLocalStorage-CDAjr9R_.js} +1 -1
  193. package/dist/assets/{useThemeProps-DAMDTLAO.js → useThemeProps-DnBwSoet.js} +1 -1
  194. package/dist/assets/{util-DJYSIyMs.js → util-DpWiktIA.js} +1 -1
  195. package/dist/assets/{vi-Dw7W2UPp.js → vi-DY_Y13jR.js} +1 -1
  196. package/dist/assets/{wait-container-Dzs1AE0W.js → wait-container-XiTQUm3z.js} +1 -1
  197. package/dist/assets/withStyles-BTPwd_4H.js +1 -0
  198. package/dist/assets/wrap-locale-IgxujkkJ.js +1 -0
  199. package/dist/assets/{zh-Dag6w2Z7.js → zh-BYRCoK6F.js} +1 -1
  200. package/dist/assets/{zh-tw-CMYkmBeh.js → zh-tw-BG0rlH8p.js} +1 -1
  201. package/dist/index.html +1 -1
  202. package/dist/service-worker.js +1 -1
  203. package/package.json +1 -1
  204. package/dist/assets/api-CgfGaMAh.js +0 -1
  205. package/dist/assets/cloneDeep-BRXk7foF.js +0 -1
  206. package/dist/assets/emotion-react.browser.esm-OA9QfV18.js +0 -1
  207. package/dist/assets/getValidReactChildren-C4Batt3I.js +0 -1
  208. package/dist/assets/index-B9NwQ4fV.js +0 -327
  209. package/dist/assets/index-BBLfRaSi.js +0 -109
  210. package/dist/assets/index-Bp1Uuyts.js +0 -1
  211. package/dist/assets/index-BpN-knDJ.js +0 -1
  212. package/dist/assets/index-CIibWbQo.js +0 -138
  213. package/dist/assets/index-CilDVWw4.js +0 -1
  214. package/dist/assets/index-D3lDDkys.js +0 -1
  215. package/dist/assets/is-path-prefix-equal-BjsJ5xBH.js +0 -1
  216. package/dist/assets/omit-DsCs9CP1.js +0 -1
  217. package/dist/assets/refType-CmlNeQNS.js +0 -1
  218. package/dist/assets/session-DUPXykbA.js +0 -1
  219. package/dist/assets/toUpper-DCgW1QYY.js +0 -1
  220. package/dist/assets/withStyles-cMFGSpYF.js +0 -1
  221. package/dist/assets/wrap-locale-DF7IwF4o.js +0 -1
@@ -1,4 +1,4 @@
1
- import{c0 as xr,a7 as zt,b_ as st,dc as Oo,r as z,c5 as wr,j as o,bg as Me,aP as Ft,aQ as Nt,d4 as at,bk as Co,cY as Sr,el as xe,C as Ce,s as ze,M as V,am as Ke,dC as Io,a4 as Eo,dP as _o,fM as Qr,fh as Jr,fN as Zr,fO as Cn,aD as Ro,aE as In,aZ as pe,bs as Bt,fP as Po,fQ as en,k as J,fR as Mo,E as Je,fS as Lo,aY as ei,V as ti,fL as En,fE as Pe,aw as _t,G as kr,ef as jr,aT as Do,fT as zo,fU as Fo,fV as No,fW as Bo,N as Ao,fj as Wo,fi as $o,ey as Ko,e7 as Uo,fg as Ho,U as Rt,a0 as qo,fX as ni,fY as Vo,t as ri,a3 as Le,fZ as Tr,f_ as Go,P as M,m as Ue,aB as _n,aS as Or,eR as ii,b6 as Yo,aH as wt,B as Pt,a9 as Xo,aa as oi,aI as Qo,f$ as Cr,ab as Jo,bq as Rn,D as Zo,q as es,X as ts,cL as ns,Y as ct,A as si,y as Ae,b as rs,b3 as is,af as os,fl as ai,cv as ss,cB as as,W as ls}from"./index-F-rIOXkO.js";import{u as cs}from"./index-Bp1Uuyts.js";import{d as us}from"./ChevronLeft-D0cz-2NS.js";import{d as ds}from"./ChevronRight-ByKIlh_D.js";import{d as Ct}from"./Search-SdD3jiMC.js";import{E as hs}from"./index-lKfM6BZT.js";import{o as fs,u as ps}from"./blocklet-C1daQzB9.js";import{A as ms}from"./Autocomplete-Bs7d-YbL.js";import{d as gs}from"./Verified-ll8KM-RV.js";import{d as bs,a as ys}from"./VerifiedUser-89OpS-O0.js";import{d as vs}from"./Add-jEZFTiQU.js";import{d as li}from"./Launch-JGrFRNfl.js";import{d as xs}from"./Done-D-DP22Cm.js";import{d as ci}from"./DeleteOutline-BOT28g3_.js";import{D as ws}from"./delete-confirm-DAmIANxQ.js";import{d as Ss}from"./MoreVert-3cneIjbG.js";import{u as ks}from"./session-DUPXykbA.js";import{g as We}from"./get-safe-url-BBqla3I1.js";import{B as Ir}from"./ButtonGroup-CXxrSIV0.js";const js=["name"],Ts=["children","className","clone","component"];function Os(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function Cs(e){return(n,r={})=>{const{name:i}=r,s=xr(r,js);let u=i;const m=zt(typeof n=="function"?v=>({root:w=>n(st({theme:v},w))}):{root:n},st({Component:e,name:i||e.displayName,classNamePrefix:u},s));let g;n.filterProps&&(g=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);const f=z.forwardRef(function(w,x){const{children:S,className:k,clone:R,component:T}=w,O=xr(w,Ts),P=m(w),A=wr(P.root,k);let X=O;if(g&&(X=Os(X,g)),R)return z.cloneElement(S,st({className:wr(S.props.className,A)},X));if(typeof S=="function")return S(st({className:A},X));const H=T||e;return o.jsx(H,st({ref:x,className:A},X,{children:S}))});return Oo(f,e),f}}const Oc="blocklet-add-component-registry",Cc="server-add-registry",Is={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>'},ut=/^[a-z0-9]+(-[a-z0-9]+)*$/,At=(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 h=i.pop(),m=i.pop(),g={provider:i.length>0?i[0]:r,prefix:m,name:h};return t&&!It(g)?null:g}const s=i[0],u=s.split("-");if(u.length>1){const h={provider:r,prefix:u.shift(),name:u.join("-")};return t&&!It(h)?null:h}if(n&&r===""){const h={provider:r,prefix:"",name:s};return t&&!It(h,n)?null:h}return null},It=(e,t)=>e?!!((e.provider===""||e.provider.match(ut))&&(t&&e.prefix===""||e.prefix.match(ut))&&e.name.match(ut)):!1,ui=Object.freeze({left:0,top:0,width:16,height:16}),Mt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Pn=Object.freeze({...ui,...Mt}),mn=Object.freeze({...Pn,body:"",hidden:!1});function Es(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 Er(e,t){const n=Es(e,t);for(const r in mn)r in Mt?r in e&&!(r in n)&&(n[r]=Mt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function _s(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(u){if(n[u])return i[u]=[];if(!(u in i)){i[u]=null;const h=r[u]&&r[u].parent,m=h&&s(h);m&&(i[u]=[h].concat(m))}return i[u]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Rs(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function u(h){s=Er(r[h]||i[h],s)}return u(t),n.forEach(u),Er(e,s)}function di(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=_s(e);for(const i in r){const s=r[i];s&&(t(i,Rs(e,i,s)),n.push(i))}return n}const Ps={provider:"",aliases:{},not_found:{},...ui};function tn(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function hi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!tn(e,Ps))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(ut)||typeof s.body!="string"||!tn(s,mn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],u=s.parent;if(!i.match(ut)||typeof u!="string"||!n[u]&&!r[u]||!tn(s,mn))return null}return t}const _r=Object.create(null);function Ms(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function $e(e,t){const n=_r[e]||(_r[e]=Object.create(null));return n[t]||(n[t]=Ms(e,t))}function Mn(e,t){return hi(t)?di(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Ls(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let ht=!1;function fi(e){return typeof e=="boolean"&&(ht=e),ht}function Ds(e){const t=typeof e=="string"?At(e,!0,ht):e;if(t){const n=$e(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function zs(e,t){const n=At(e,!0,ht);if(!n)return!1;const r=$e(n.provider,n.prefix);return Ls(r,n.name,t)}function Fs(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),ht&&!t&&!e.prefix){let i=!1;return hi(e)&&(e.prefix="",di(e,(s,u)=>{u&&zs(s,u)&&(i=!0)})),i}const n=e.prefix;if(!It({provider:t,prefix:n,name:"a"}))return!1;const r=$e(t,n);return!!Mn(r,e)}const pi=Object.freeze({width:null,height:null}),mi=Object.freeze({...pi,...Mt}),Ns=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Bs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Rr(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(),u=Bs.test(s);for(;;){if(u){const h=parseFloat(s);isNaN(h)?i.push(s):i.push(Math.ceil(h*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");u=!u}}const As=e=>e==="unset"||e==="undefined"||e==="none";function Ws(e,t){const n={...Pn,...e},r={...mi,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(S=>{const k=[],R=S.hFlip,T=S.vFlip;let O=S.rotate;R?T?O+=2:(k.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),k.push("scale(-1 1)"),i.top=i.left=0):T&&(k.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),k.push("scale(1 -1)"),i.top=i.left=0);let P;switch(O<0&&(O-=Math.floor(O/4)*4),O=O%4,O){case 1:P=i.height/2+i.top,k.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:k.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:P=i.width/2+i.left,k.unshift("rotate(-90 "+P.toString()+" "+P.toString()+")");break}O%2===1&&(i.left!==i.top&&(P=i.left,i.left=i.top,i.top=P),i.width!==i.height&&(P=i.width,i.width=i.height,i.height=P)),k.length&&(s='<g transform="'+k.join(" ")+'">'+s+"</g>")});const u=r.width,h=r.height,m=i.width,g=i.height;let f,v;u===null?(v=h===null?"1em":h==="auto"?g:h,f=Rr(v,m/g)):(f=u==="auto"?m:u,v=h===null?Rr(f,g/m):h==="auto"?g:h);const w={},x=(S,k)=>{As(k)||(w[S]=k.toString())};return x("width",f),x("height",v),w.viewBox=i.left.toString()+" "+i.top.toString()+" "+m.toString()+" "+g.toString(),{attributes:w,body:s}}const $s=/\sid="(\S+)"/g,Ks="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Us=0;function Hs(e,t=Ks){const n=[];let r;for(;r=$s.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 u=typeof t=="function"?t(s):t+(Us++).toString(),h=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+h+')([")]|\\.[a-z])',"g"),"$1"+u+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const gn=Object.create(null);function qs(e,t){gn[e]=t}function bn(e){return gn[e]||gn[""]}function Ln(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 Dn=Object.create(null),lt=["https://api.simplesvg.com","https://api.unisvg.com"],Et=[];for(;lt.length>0;)lt.length===1||Math.random()>.5?Et.push(lt.shift()):Et.push(lt.pop());Dn[""]=Ln({resources:["https://api.iconify.design"].concat(Et)});function Vs(e,t){const n=Ln(t);return n===null?!1:(Dn[e]=n,!0)}function zn(e){return Dn[e]}const Gs=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Pr=Gs();function Ys(e,t){const n=zn(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(u=>{i=Math.max(i,u.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Xs(e){return e===404}const Qs=(e,t,n)=>{const r=[],i=Ys(e,t),s="icons";let u={type:s,provider:e,prefix:t,icons:[]},h=0;return n.forEach((m,g)=>{h+=m.length+1,h>=i&&g>0&&(r.push(u),u={type:s,provider:e,prefix:t,icons:[]},h=m.length),u.icons.push(m)}),r.push(u),r};function Js(e){if(typeof e=="string"){const t=zn(e);if(t)return t.path}return"/"}const Zs=(e,t,n)=>{if(!Pr){n("abort",424);return}let r=Js(t.provider);switch(t.type){case"icons":{const s=t.prefix,h=t.icons.join(","),m=new URLSearchParams({icons:h});r+=s+".json?"+m.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;Pr(e+r).then(s=>{const u=s.status;if(u!==200){setTimeout(()=>{n(Xs(u)?"abort":"next",u)});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)})},ea={prepare:Qs,send:Zs};function ta(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,u=i.prefix,h=i.name,m=n[s]||(n[s]=Object.create(null)),g=m[u]||(m[u]=$e(s,u));let f;h in g.icons?f=t.loaded:u===""||g.missing.has(h)?f=t.missing:f=t.pending;const v={provider:s,prefix:u,name:h};f.push(v)}),t}function gi(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function na(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 u=s.icons,h=u.pending.length;u.pending=u.pending.filter(m=>{if(m.prefix!==i)return!0;const g=m.name;if(e.icons[g])u.loaded.push({provider:r,prefix:i,name:g});else if(e.missing.has(g))u.missing.push({provider:r,prefix:i,name:g});else return n=!0,!0;return!1}),u.pending.length!==h&&(n||gi([e],s.id),s.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),s.abort))})}))}let ra=0;function ia(e,t,n){const r=ra++,i=gi.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(u=>{(u.loaderCallbacks||(u.loaderCallbacks=[])).push(s)}),i}function oa(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?At(i,t,n):i;s&&r.push(s)}),r}var sa={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function aa(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let u;if(e.random){let H=e.resources.slice(0);for(u=[];H.length>1;){const $=Math.floor(Math.random()*H.length);u.push(H[$]),H=H.slice(0,$).concat(H.slice($+1))}u=u.concat(H)}else u=e.resources.slice(s).concat(e.resources.slice(0,s));const h=Date.now();let m="pending",g=0,f,v=null,w=[],x=[];typeof r=="function"&&x.push(r);function S(){v&&(clearTimeout(v),v=null)}function k(){m==="pending"&&(m="aborted"),S(),w.forEach(H=>{H.status==="pending"&&(H.status="aborted")}),w=[]}function R(H,$){$&&(x=[]),typeof H=="function"&&x.push(H)}function T(){return{startTime:h,payload:t,status:m,queriesSent:g,queriesPending:w.length,subscribe:R,abort:k}}function O(){m="failed",x.forEach(H=>{H(void 0,f)})}function P(){w.forEach(H=>{H.status==="pending"&&(H.status="aborted")}),w=[]}function A(H,$,te){const ce=$!=="success";switch(w=w.filter(K=>K!==H),m){case"pending":break;case"failed":if(ce||!e.dataAfterTimeout)return;break;default:return}if($==="abort"){f=te,O();return}if(ce){f=te,w.length||(u.length?X():O());return}if(S(),P(),!e.random){const K=e.resources.indexOf(H.resource);K!==-1&&K!==e.index&&(e.index=K)}m="completed",x.forEach(K=>{K(te)})}function X(){if(m!=="pending")return;S();const H=u.shift();if(H===void 0){if(w.length){v=setTimeout(()=>{S(),m==="pending"&&(P(),O())},e.timeout);return}O();return}const $={status:"pending",resource:H,callback:(te,ce)=>{A($,te,ce)}};w.push($),g++,v=setTimeout(X,e.rotate),n(H,t,$.callback)}return setTimeout(X),T}function bi(e){const t={...sa,...e};let n=[];function r(){n=n.filter(h=>h().status==="pending")}function i(h,m,g){const f=aa(t,h,m,(v,w)=>{r(),g&&g(v,w)});return n.push(f),f}function s(h){return n.find(m=>h(m))||null}return{query:i,find:s,setIndex:h=>{t.index=h},getIndex:()=>t.index,cleanup:r}}function Mr(){}const nn=Object.create(null);function la(e){if(!nn[e]){const t=zn(e);if(!t)return;const n=bi(t),r={config:t,redundancy:n};nn[e]=r}return nn[e]}function ca(e,t,n){let r,i;if(typeof e=="string"){const s=bn(e);if(!s)return n(void 0,424),Mr;i=s.send;const u=la(e);u&&(r=u.redundancy)}else{const s=Ln(e);if(s){r=bi(s);const u=e.resources?e.resources[0]:"",h=bn(u);h&&(i=h.send)}}return!r||!i?(n(void 0,424),Mr):r.query(t,i,n)().abort}const Lr="iconify2",ft="iconify",yi=ft+"-count",Dr=ft+"-version",vi=36e5,ua=168;function yn(e,t){try{return e.getItem(t)}catch{}}function Fn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function zr(e,t){try{e.removeItem(t)}catch{}}function vn(e,t){return Fn(e,yi,t.toString())}function xn(e){return parseInt(yn(e,yi))||0}const Wt={local:!0,session:!0},xi={local:new Set,session:new Set};let Nn=!1;function da(e){Nn=e}let St=typeof window>"u"?{}:window;function wi(e){const t=e+"Storage";try{if(St&&St[t]&&typeof St[t].length=="number")return St[t]}catch{}Wt[e]=!1}function Si(e,t){const n=wi(e);if(!n)return;const r=yn(n,Dr);if(r!==Lr){if(r){const h=xn(n);for(let m=0;m<h;m++)zr(n,ft+m.toString())}Fn(n,Dr,Lr),vn(n,0);return}const i=Math.floor(Date.now()/vi)-ua,s=h=>{const m=ft+h.toString(),g=yn(n,m);if(typeof g=="string"){try{const f=JSON.parse(g);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>i&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,h))return!0}catch{}zr(n,m)}};let u=xn(n);for(let h=u-1;h>=0;h--)s(h)||(h===u-1?(u--,vn(n,u)):xi[e].add(h))}function ki(){if(!Nn){da(!0);for(const e in Wt)Si(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=$e(r,i);if(!Mn(s,n).length)return!1;const u=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,u):u,!0})}}function ha(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Wt)Si(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function fa(e,t){Nn||ki();function n(r){let i;if(!Wt[r]||!(i=wi(r)))return;const s=xi[r];let u;if(s.size)s.delete(u=Array.from(s).shift());else if(u=xn(i),!vn(i,u+1))return;const h={cached:Math.floor(Date.now()/vi),provider:e.provider,data:t};return Fn(i,ft+u.toString(),JSON.stringify(h))}t.lastModified&&!ha(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fr(){}function pa(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,na(e)}))}function ma(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=bn(n)))return;s.prepare(n,r,i).forEach(h=>{ca(n,h,m=>{if(typeof m!="object")h.icons.forEach(g=>{e.missing.add(g)});else try{const g=Mn(e,m);if(!g.length)return;const f=e.pendingIcons;f&&g.forEach(v=>{f.delete(v)}),fa(e,m)}catch(g){console.error(g)}pa(e)})})}))}const ga=(e,t)=>{const n=oa(e,!0,fi()),r=ta(n);if(!r.pending.length){let m=!0;return t&&setTimeout(()=>{m&&t(r.loaded,r.missing,r.pending,Fr)}),()=>{m=!1}}const i=Object.create(null),s=[];let u,h;return r.pending.forEach(m=>{const{provider:g,prefix:f}=m;if(f===h&&g===u)return;u=g,h=f,s.push($e(g,f));const v=i[g]||(i[g]=Object.create(null));v[f]||(v[f]=[])}),r.pending.forEach(m=>{const{provider:g,prefix:f,name:v}=m,w=$e(g,f),x=w.pendingIcons||(w.pendingIcons=new Set);x.has(v)||(x.add(v),i[g][f].push(v))}),s.forEach(m=>{const{provider:g,prefix:f}=m;i[g][f].length&&ma(m,i[g][f])}),t?ia(t,r,s):Fr};function ba(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in pi?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const ya=/[\s,]+/;function va(e,t){t.split(ya).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function xa(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 wa(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 Sa(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ka(e){return"data:image/svg+xml,"+Sa(e)}function ja(e){return'url("'+ka(e)+'")'}let dt;function Ta(){try{dt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{dt=null}}function Oa(e){return dt===void 0&&Ta(),dt?dt.createHTML(e):e}const ji={...mi,inline:!1},Ca={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ia={display:"inline-block"},wn={backgroundColor:"currentColor"},Ti={backgroundColor:"transparent"},Nr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Br={WebkitMask:wn,mask:wn,background:Ti};for(const e in Br){const t=Br[e];for(const n in Nr)t[e+n]=Nr[n]}const Ea={...ji,inline:!0};function Ar(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const _a=(e,t,n,r)=>{const i=n?Ea:ji,s=ba(i,t),u=t.mode||"svg",h={},m=t.style||{},g={...u==="svg"?Ca:{},ref:r};for(let T in t){const O=t[T];if(O!==void 0)switch(T){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":s[T]=O===!0||O==="true"||O===1;break;case"flip":typeof O=="string"&&va(s,O);break;case"color":h.color=O;break;case"rotate":typeof O=="string"?s[T]=xa(O):typeof O=="number"&&(s[T]=O);break;case"ariaHidden":case"aria-hidden":O!==!0&&O!=="true"&&delete g["aria-hidden"];break;default:i[T]===void 0&&(g[T]=O)}}const f=Ws(e,s),v=f.attributes;if(s.inline&&(h.verticalAlign="-0.125em"),u==="svg"){g.style={...h,...m},Object.assign(g,v);let T=0,O=t.id;return typeof O=="string"&&(O=O.replace(/-/g,"_")),g.dangerouslySetInnerHTML={__html:Oa(Hs(f.body,O?()=>O+"ID"+T++:"iconifyReact"))},Me.createElement("svg",g)}const{body:w,width:x,height:S}=e,k=u==="mask"||(u==="bg"?!1:w.indexOf("currentColor")!==-1),R=wa(w,{...v,width:x+"",height:S+""});return g.style={...h,"--svg":ja(R),width:Ar(v.width),height:Ar(v.height),...Ia,...k?wn:Ti,...m},Me.createElement("span",g)};fi(!0);qs("",ea);if(typeof document<"u"&&typeof window<"u"){ki();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"||!Fs(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;Vs(n,i)||console.error(r)}catch{console.error(r)}}}}class Oi extends Me.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=At(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Ds(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:ga([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const u=["iconify"];i.prefix!==""&&u.push("iconify--"+i.prefix),i.provider!==""&&u.push("iconify--"+i.provider),this._setData({data:s,classes:u}),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:Me.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),_a({...Pn,...n.data},r,t._inline,t._ref)}}const pt=Me.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return Me.createElement(Oi,r)});Me.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return Me.createElement(Oi,r)});var Bn={},Ra=Nt;Object.defineProperty(Bn,"__esModule",{value:!0});var Ci=Bn.default=void 0,Pa=Ra(Ft()),Ma=o;Ci=Bn.default=(0,Pa.default)((0,Ma.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Ii={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 Ei={exports:{}};(function(e,t){(function(n,r){e.exports=r(z)})(at,n=>(()=>{var r={703:(h,m,g)=>{var f=g(414);function v(){}function w(){}w.resetWarningCache=v,h.exports=function(){function x(R,T,O,P,A,X){if(X!==f){var H=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 H.name="Invariant Violation",H}}function S(){return x}x.isRequired=x;var k={array:x,bool:x,func:x,number:x,object:x,string:x,symbol:x,any:x,arrayOf:S,element:x,elementType:x,instanceOf:S,node:x,objectOf:S,oneOf:S,oneOfType:S,shape:S,exact:S,checkPropTypes:w,resetWarningCache:v};return k.PropTypes=k,k}},697:(h,m,g)=>{h.exports=g(703)()},414:h=>{h.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:h=>{var m=typeof Element<"u",g=typeof Map=="function",f=typeof Set=="function",v=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function w(x,S){if(x===S)return!0;if(x&&S&&typeof x=="object"&&typeof S=="object"){if(x.constructor!==S.constructor)return!1;var k,R,T,O;if(Array.isArray(x)){if((k=x.length)!=S.length)return!1;for(R=k;R--!=0;)if(!w(x[R],S[R]))return!1;return!0}if(g&&x instanceof Map&&S instanceof Map){if(x.size!==S.size)return!1;for(O=x.entries();!(R=O.next()).done;)if(!S.has(R.value[0]))return!1;for(O=x.entries();!(R=O.next()).done;)if(!w(R.value[1],S.get(R.value[0])))return!1;return!0}if(f&&x instanceof Set&&S instanceof Set){if(x.size!==S.size)return!1;for(O=x.entries();!(R=O.next()).done;)if(!S.has(R.value[0]))return!1;return!0}if(v&&ArrayBuffer.isView(x)&&ArrayBuffer.isView(S)){if((k=x.length)!=S.length)return!1;for(R=k;R--!=0;)if(x[R]!==S[R])return!1;return!0}if(x.constructor===RegExp)return x.source===S.source&&x.flags===S.flags;if(x.valueOf!==Object.prototype.valueOf)return x.valueOf()===S.valueOf();if(x.toString!==Object.prototype.toString)return x.toString()===S.toString();if((k=(T=Object.keys(x)).length)!==Object.keys(S).length)return!1;for(R=k;R--!=0;)if(!Object.prototype.hasOwnProperty.call(S,T[R]))return!1;if(m&&x instanceof Element)return!1;for(R=k;R--!=0;)if((T[R]!=="_owner"&&T[R]!=="__v"&&T[R]!=="__o"||!x.$$typeof)&&!w(x[T[R]],S[T[R]]))return!1;return!0}return x!=x&&S!=S}h.exports=function(x,S){try{return w(x,S)}catch(k){if((k.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw k}}},359:h=>{h.exports=n}},i={};function s(h){var m=i[h];if(m!==void 0)return m.exports;var g=i[h]={exports:{}};return r[h](g,g.exports,s),g.exports}s.n=h=>{var m=h&&h.__esModule?()=>h.default:()=>h;return s.d(m,{a:m}),m},s.d=(h,m)=>{for(var g in m)s.o(m,g)&&!s.o(h,g)&&Object.defineProperty(h,g,{enumerable:!0,get:m[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=(h,m)=>Object.prototype.hasOwnProperty.call(h,m),s.r=h=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})};var u={};return(()=>{function h(d){var a,p,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]&&(p=h(d[a]))&&(b&&(b+=" "),b+=p);else for(a in d)d[a]&&(b&&(b+=" "),b+=a);return b}function m(){for(var d,a,p=0,b="";p<arguments.length;)(d=arguments[p++])&&(a=h(d))&&(b&&(b+=" "),b+=a);return b}s.r(u),s.d(u,{default:()=>jo});var g=s(359),f=s.n(g);const v=function(d){var a=typeof d;return d!=null&&(a=="object"||a=="function")},w=typeof at=="object"&&at&&at.Object===Object&&at;var x=typeof self=="object"&&self&&self.Object===Object&&self;const S=w||x||Function("return this")(),k=function(){return S.Date.now()};var R=/\s/,T=/^\s+/;const O=function(d){return d&&d.slice(0,function(a){for(var p=a.length;p--&&R.test(a.charAt(p)););return p}(d)+1).replace(T,"")},P=S.Symbol;var A=Object.prototype,X=A.hasOwnProperty,H=A.toString,$=P?P.toStringTag:void 0,te=Object.prototype.toString,ce=P?P.toStringTag:void 0;const K=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":ce&&ce in Object(d)?function(a){var p=X.call(a,$),b=a[$];try{a[$]=void 0;var E=!0}catch{}var B=H.call(a);return E&&(p?a[$]=b:delete a[$]),B}(d):function(a){return te.call(a)}(d)};var Ie=/^[-+]0x[0-9a-f]+$/i,Se=/^0b[01]+$/i,je=/^0o[0-7]+$/i,ge=parseInt;const ke=function(d){if(typeof d=="number")return d;if(function(b){return typeof b=="symbol"||function(E){return E!=null&&typeof E=="object"}(b)&&K(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=O(d);var p=Se.test(d);return p||je.test(d)?ge(d.slice(2),p?2:8):Ie.test(d)?NaN:+d};var F=Math.max,ne=Math.min;const le=function(d,a,p){var b,E,B,Q,c,l,y=0,C=!1,_=!1,I=!0;if(typeof d!="function")throw new TypeError("Expected a function");function q(W){var Y=b,Z=E;return b=E=void 0,y=W,Q=d.apply(Z,Y)}function U(W){return y=W,c=setTimeout(L,a),C?q(W):Q}function G(W){var Y=W-l;return l===void 0||Y>=a||Y<0||_&&W-y>=B}function L(){var W=k();if(G(W))return D(W);c=setTimeout(L,function(Y){var Z=a-(Y-l);return _?ne(Z,B-(Y-y)):Z}(W))}function D(W){return c=void 0,I&&b?q(W):(b=E=void 0,Q)}function N(){var W=k(),Y=G(W);if(b=arguments,E=this,l=W,Y){if(c===void 0)return U(l);if(_)return clearTimeout(c),c=setTimeout(L,a),q(l)}return c===void 0&&(c=setTimeout(L,a)),Q}return a=ke(a)||0,v(p)&&(C=!!p.leading,B=(_="maxWait"in p)?F(ke(p.maxWait)||0,a):B,I="trailing"in p?!!p.trailing:I),N.cancel=function(){c!==void 0&&clearTimeout(c),y=0,b=l=E=c=void 0},N.flush=function(){return c===void 0?Q:D(k())},N},ue=function(d,a,p){var b=!0,E=!0;if(typeof d!="function")throw new TypeError("Expected a function");return v(p)&&(b="leading"in p?!!p.leading:b,E="trailing"in p?!!p.trailing:E),le(d,a,{leading:b,maxWait:a,trailing:E})};var Te=s(590),Ee=s.n(Te),Yn=function(){if(typeof Map<"u")return Map;function d(a,p){var b=-1;return a.some(function(E,B){return E[0]===p&&(b=B,!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(p){var b=d(this.__entries__,p),E=this.__entries__[b];return E&&E[1]},a.prototype.set=function(p,b){var E=d(this.__entries__,p);~E?this.__entries__[E][1]=b:this.__entries__.push([p,b])},a.prototype.delete=function(p){var b=this.__entries__,E=d(b,p);~E&&b.splice(E,1)},a.prototype.has=function(p){return!!~d(this.__entries__,p)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(p,b){b===void 0&&(b=null);for(var E=0,B=this.__entries__;E<B.length;E++){var Q=B[E];p.call(b,Q[1],Q[0])}},a}()}(),Ut=typeof window<"u"&&typeof document<"u"&&window.document===document,gt=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")(),Ji=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(gt):function(d){return setTimeout(function(){return d(Date.now())},1e3/60)},Zi=["top","right","bottom","left","width","height","size","weight"],eo=typeof MutationObserver<"u",to=function(){function d(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(a,p){var b=!1,E=!1,B=0;function Q(){b&&(b=!1,a()),E&&l()}function c(){Ji(Q)}function l(){var y=Date.now();if(b){if(y-B<2)return;E=!0}else b=!0,E=!1,setTimeout(c,20);B=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 p=this.observers_,b=p.indexOf(a);~b&&p.splice(b,1),!p.length&&this.connected_&&this.disconnect_()},d.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},d.prototype.updateObservers_=function(){var a=this.observers_.filter(function(p){return p.gatherActive(),p.hasActive()});return a.forEach(function(p){return p.broadcastActive()}),a.length>0},d.prototype.connect_=function(){Ut&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),eo?(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(){Ut&&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 p=a.propertyName,b=p===void 0?"":p;Zi.some(function(E){return!!~b.indexOf(E)})&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d}(),Xn=function(d,a){for(var p=0,b=Object.keys(a);p<b.length;p++){var E=b[p];Object.defineProperty(d,E,{value:a[E],enumerable:!1,writable:!1,configurable:!0})}return d},He=function(d){return d&&d.ownerDocument&&d.ownerDocument.defaultView||gt},Qn=yt(0,0,0,0);function bt(d){return parseFloat(d)||0}function Jn(d){for(var a=[],p=1;p<arguments.length;p++)a[p-1]=arguments[p];return a.reduce(function(b,E){return b+bt(d["border-"+E+"-width"])},0)}var no=typeof SVGGraphicsElement<"u"?function(d){return d instanceof He(d).SVGGraphicsElement}:function(d){return d instanceof He(d).SVGElement&&typeof d.getBBox=="function"};function ro(d){return Ut?no(d)?function(a){var p=a.getBBox();return yt(0,0,p.width,p.height)}(d):function(a){var p=a.clientWidth,b=a.clientHeight;if(!p&&!b)return Qn;var E=He(a).getComputedStyle(a),B=function(I){for(var q={},U=0,G=["top","right","bottom","left"];U<G.length;U++){var L=G[U],D=I["padding-"+L];q[L]=bt(D)}return q}(E),Q=B.left+B.right,c=B.top+B.bottom,l=bt(E.width),y=bt(E.height);if(E.boxSizing==="border-box"&&(Math.round(l+Q)!==p&&(l-=Jn(E,"left","right")+Q),Math.round(y+c)!==b&&(y-=Jn(E,"top","bottom")+c)),!function(I){return I===He(I).document.documentElement}(a)){var C=Math.round(l+Q)-p,_=Math.round(y+c)-b;Math.abs(C)!==1&&(l-=C),Math.abs(_)!==1&&(y-=_)}return yt(B.left,B.top,l,y)}(d):Qn}function yt(d,a,p,b){return{x:d,y:a,width:p,height:b}}var io=function(){function d(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yt(0,0,0,0),this.target=a}return d.prototype.isActive=function(){var a=ro(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}(),oo=function(d,a){var p,b,E,B,Q,c,l,y=(b=(p=a).x,E=p.y,B=p.width,Q=p.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),Xn(l,{x:b,y:E,width:B,height:Q,top:E,right:b+B,bottom:Q+E,left:b}),l);Xn(this,{target:d,contentRect:y})},so=function(){function d(a,p,b){if(this.activeObservations_=[],this.observations_=new Yn,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=p,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 He(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var p=this.observations_;p.has(a)||(p.set(a,new io(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 He(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var p=this.observations_;p.has(a)&&(p.delete(a),p.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(p){p.isActive()&&a.activeObservations_.push(p)})},d.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,p=this.activeObservations_.map(function(b){return new oo(b.target,b.broadcastRect())});this.callback_.call(a,p,a),this.clearActive()}},d.prototype.clearActive=function(){this.activeObservations_.splice(0)},d.prototype.hasActive=function(){return this.activeObservations_.length>0},d}(),Zn=typeof WeakMap<"u"?new WeakMap:new Yn,er=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 p=to.getInstance(),b=new so(a,p,this);Zn.set(this,b)};["observe","unobserve","disconnect"].forEach(function(d){er.prototype[d]=function(){var a;return(a=Zn.get(this))[d].apply(a,arguments)}});const tr=gt.ResizeObserver!==void 0?gt.ResizeObserver:er,qe="Left",Fe="Right",Ve="Up",Ne="Down",Ge={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Ht={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},nr="mousemove",rr="mouseup";function ir(d,a){if(a===0)return d;const p=Math.PI/180*a;return[d[0]*Math.cos(p)+d[1]*Math.sin(p),d[1]*Math.cos(p)-d[0]*Math.sin(p)]}function ao(d){const{trackMouse:a}=d,p=g.useRef(Object.assign({},Ht)),b=g.useRef(Object.assign({},Ge)),E=g.useRef(Object.assign({},b.current));let B;for(B in E.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},Ge),d),Ge)b.current[B]===void 0&&(b.current[B]=Ge[B]);const[Q,c]=g.useMemo(()=>function(l,y){const C=L=>{const D="touches"in L;D&&L.touches.length>1||l((N,W)=>{W.trackMouse&&!D&&(document.addEventListener(nr,_),document.addEventListener(rr,q));const{clientX:Y,clientY:Z}=D?L.touches[0]:L,oe=ir([Y,Z],W.rotationAngle);return W.onTouchStartOrOnMouseDown&&W.onTouchStartOrOnMouseDown({event:L}),Object.assign(Object.assign(Object.assign({},N),Ht),{initial:oe.slice(),xy:oe,start:L.timeStamp||0})})},_=L=>{l((D,N)=>{const W="touches"in L;if(W&&L.touches.length>1)return D;if(L.timeStamp-D.start>N.swipeDuration)return D.swiping?Object.assign(Object.assign({},D),{swiping:!1}):D;const{clientX:Y,clientY:Z}=W?L.touches[0]:L,[oe,be]=ir([Y,Z],N.rotationAngle),fe=oe-D.xy[0],de=be-D.xy[1],ie=Math.abs(fe),ee=Math.abs(de),Re=(L.timeStamp||0)-D.start,nt=Math.sqrt(ie*ie+ee*ee)/(Re||1),rt=[fe/(Re||1),de/(Re||1)],_e=function(it,Qe,ot,ye){return it>Qe?ot>0?Fe:qe:ye>0?Ne:Ve}(ie,ee,fe,de),Be=typeof N.delta=="number"?N.delta:N.delta[_e.toLowerCase()]||Ge.delta;if(ie<Be&&ee<Be&&!D.swiping)return D;const Oe={absX:ie,absY:ee,deltaX:fe,deltaY:de,dir:_e,event:L,first:D.first,initial:D.initial,velocity:nt,vxvy:rt};Oe.first&&N.onSwipeStart&&N.onSwipeStart(Oe),N.onSwiping&&N.onSwiping(Oe);let Xe=!1;return(N.onSwiping||N.onSwiped||N[`onSwiped${_e}`])&&(Xe=!0),Xe&&N.preventScrollOnSwipe&&N.trackTouch&&L.cancelable&&L.preventDefault(),Object.assign(Object.assign({},D),{first:!1,eventData:Oe,swiping:!0})})},I=L=>{l((D,N)=>{let W;if(D.swiping&&D.eventData){if(L.timeStamp-D.start<N.swipeDuration){W=Object.assign(Object.assign({},D.eventData),{event:L}),N.onSwiped&&N.onSwiped(W);const Y=N[`onSwiped${W.dir}`];Y&&Y(W)}}else N.onTap&&N.onTap({event:L});return N.onTouchEndOrOnMouseUp&&N.onTouchEndOrOnMouseUp({event:L}),Object.assign(Object.assign(Object.assign({},D),Ht),{eventData:W})})},q=L=>{document.removeEventListener(nr,_),document.removeEventListener(rr,q),I(L)},U=(L,D)=>{let N=()=>{};if(L&&L.addEventListener){const W=Object.assign(Object.assign({},Ge.touchEventOptions),D.touchEventOptions),Y=[["touchstart",C,W],["touchmove",_,Object.assign(Object.assign({},W),D.preventScrollOnSwipe?{passive:!1}:{})],["touchend",I,W]];Y.forEach(([Z,oe,be])=>L.addEventListener(Z,oe,be)),N=()=>Y.forEach(([Z,oe])=>L.removeEventListener(Z,oe))}return N},G={ref:L=>{L!==null&&l((D,N)=>{if(D.el===L)return D;const W={};return D.el&&D.el!==L&&D.cleanUpTouch&&(D.cleanUpTouch(),W.cleanUpTouch=void 0),N.trackTouch&&L&&(W.cleanUpTouch=U(L,N)),Object.assign(Object.assign(Object.assign({},D),{el:L}),W)})}};return y.trackMouse&&(G.onMouseDown=C),[G,U]}(l=>p.current=l(p.current,b.current),{trackMouse:a}),[a]);return p.current=function(l,y,C,_){return y.trackTouch&&l.el?l.cleanUpTouch?y.preventScrollOnSwipe!==C.preventScrollOnSwipe||y.touchEventOptions.passive!==C.touchEventOptions.passive?(l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:_(l.el,y)})):l:Object.assign(Object.assign({},l),{cleanUpTouch:_(l.el,y)}):(l.cleanUpTouch&&l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:void 0}))}(p.current,b.current,E.current,c),Q}var j=s(697);function Ze(d){return Ze=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},Ze(d)}function or(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(E){return Object.getOwnPropertyDescriptor(d,E).enumerable})),p.push.apply(p,b)}return p}function sr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?or(Object(p),!0).forEach(function(b){lo(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):or(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function lo(d,a,p){return(a=function(b){var E=function(B,Q){if(Ze(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,Q);if(Ze(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return Ze(E)==="symbol"?E:String(E)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var co={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},qt=f().memo(function(d){var a=sr(sr({},co),d),p=a.description,b=a.fullscreen,E=a.handleImageLoaded,B=a.isFullscreen,Q=a.onImageError,c=a.original,l=a.originalAlt,y=a.originalHeight,C=a.originalWidth,_=a.originalTitle,I=a.sizes,q=a.srcSet,U=a.loading,G=B&&b||c;return f().createElement(f().Fragment,null,f().createElement("img",{className:"image-gallery-image",src:G,alt:l,srcSet:q,height:y,width:C,sizes:I,title:_,onLoad:function(L){return E(L,c)},onError:Q,loading:U}),p&&f().createElement("span",{className:"image-gallery-description"},p))});qt.displayName="Item",qt.propTypes={description:j.string,fullscreen:j.string,handleImageLoaded:j.func.isRequired,isFullscreen:j.bool,onImageError:j.func.isRequired,original:j.string.isRequired,originalAlt:j.string,originalHeight:j.string,originalWidth:j.string,originalTitle:j.string,sizes:j.string,srcSet:j.string,loading:j.string};const uo=qt;function et(d){return et=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},et(d)}function ar(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(E){return Object.getOwnPropertyDescriptor(d,E).enumerable})),p.push.apply(p,b)}return p}function lr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?ar(Object(p),!0).forEach(function(b){ho(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):ar(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function ho(d,a,p){return(a=function(b){var E=function(B,Q){if(et(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,Q);if(et(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return et(E)==="symbol"?E:String(E)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var fo={left:f().createElement("polyline",{points:"15 18 9 12 15 6"}),right:f().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:f().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:f().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:f().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:f().createElement(f().Fragment,null,f().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),f().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},po={strokeWidth:1,viewBox:"0 0 24 24"},cr=function(d){var a=lr(lr({},po),d),p=a.strokeWidth,b=a.viewBox,E=a.icon;return f().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:b,fill:"none",stroke:"currentColor",strokeWidth:p,strokeLinecap:"round",strokeLinejoin:"round"},fo[E])};cr.propTypes={strokeWidth:j.number,viewBox:j.string,icon:(0,j.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const vt=cr;var Vt=f().memo(function(d){var a=d.isFullscreen,p=d.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:p,"aria-label":"Open Fullscreen"},f().createElement(vt,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Vt.displayName="Fullscreen",Vt.propTypes={isFullscreen:j.bool.isRequired,onClick:j.func.isRequired};const mo=Vt;var Gt=f().memo(function(d){var a=d.disabled,p=d.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:a,onClick:p,"aria-label":"Previous Slide"},f().createElement(vt,{icon:"left",viewBox:"6 0 12 24"}))});Gt.displayName="LeftNav",Gt.propTypes={disabled:j.bool.isRequired,onClick:j.func.isRequired};const go=Gt;var Yt=f().memo(function(d){var a=d.disabled,p=d.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:a,onClick:p,"aria-label":"Next Slide"},f().createElement(vt,{icon:"right",viewBox:"6 0 12 24"}))});Yt.displayName="RightNav",Yt.propTypes={disabled:j.bool.isRequired,onClick:j.func.isRequired};const bo=Yt;var Xt=f().memo(function(d){var a=d.isPlaying,p=d.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:p,"aria-label":"Play or Pause Slideshow"},f().createElement(vt,{strokeWidth:2,icon:a?"pause":"play"}))});Xt.displayName="PlayPause",Xt.propTypes={isPlaying:j.bool.isRequired,onClick:j.func.isRequired};const yo=Xt;function tt(d){return tt=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},tt(d)}function Qt(){return Qt=Object.assign?Object.assign.bind():function(d){for(var a=1;a<arguments.length;a++){var p=arguments[a];for(var b in p)Object.prototype.hasOwnProperty.call(p,b)&&(d[b]=p[b])}return d},Qt.apply(this,arguments)}function ur(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(E){return Object.getOwnPropertyDescriptor(d,E).enumerable})),p.push.apply(p,b)}return p}function dr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?ur(Object(p),!0).forEach(function(b){vo(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):ur(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function vo(d,a,p){return(a=function(b){var E=function(B,Q){if(tt(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,Q);if(tt(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return tt(E)==="symbol"?E:String(E)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var xo={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},hr=function(d){var a=dr(dr({},xo),d),p=a.children,b=a.className,E=ao({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return f().createElement("div",Qt({},E,{className:b}),p)};hr.propTypes={children:j.node.isRequired,className:j.string,delta:j.number,onSwiped:j.func,onSwiping:j.func};const fr=hr;function Ye(d){return Ye=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},Ye(d)}function pr(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(E){return Object.getOwnPropertyDescriptor(d,E).enumerable})),p.push.apply(p,b)}return p}function mr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?pr(Object(p),!0).forEach(function(b){gr(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):pr(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function wo(d,a){for(var p=0;p<a.length;p++){var b=a[p];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,br(b.key),b)}}function Jt(d,a){return Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,b){return p.__proto__=b,p},Jt(d,a)}function So(d,a){if(a&&(Ye(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return se(d)}function se(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function xt(d){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},xt(d)}function gr(d,a,p){return(a=br(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}function br(d){var a=function(p,b){if(Ye(p)!=="object"||p===null)return p;var E=p[Symbol.toPrimitive];if(E!==void 0){var B=E.call(p,b);if(Ye(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(d,"string");return Ye(a)==="symbol"?a:String(a)}var yr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],ko=(0,j.arrayOf)((0,j.shape)({srcSet:j.string,media:j.string}));function vr(d){var a=parseInt(d.keyCode||d.which||0,10);return a===66||a===62}var Zt=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&&Jt(c,l)})(Q,d);var a,p,b,E,B=(b=Q,E=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=xt(b);if(E){var y=xt(this).constructor;c=Reflect.construct(l,arguments,y)}else c=l.apply(this,arguments);return So(this,c)});function Q(c){var l;return function(y,C){if(!(y instanceof C))throw new TypeError("Cannot call a class as a function")}(this,Q),gr(se(l=B.call(this,c)),"onBulletClick",function(y,C){var _=l.props,I=_.onBulletClick,q=_.items,U=l.state.currentIndex;y.target.blur(),U!==C&&(q.length===2?l.slideToIndexWithStyleReset(C,y):l.slideToIndex(C,y)),I&&I(y,C)}),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=f().createRef(),l.thumbnailsWrapper=f().createRef(),l.thumbnails=f().createRef(),l.imageGallerySlideWrapper=f().createRef(),l.handleImageLoaded=l.handleImageLoaded.bind(se(l)),l.handleKeyDown=l.handleKeyDown.bind(se(l)),l.handleMouseDown=l.handleMouseDown.bind(se(l)),l.handleResize=l.handleResize.bind(se(l)),l.handleTouchMove=l.handleTouchMove.bind(se(l)),l.handleOnSwiped=l.handleOnSwiped.bind(se(l)),l.handleScreenChange=l.handleScreenChange.bind(se(l)),l.handleSwiping=l.handleSwiping.bind(se(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(se(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(se(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(se(l)),l.handleImageError=l.handleImageError.bind(se(l)),l.pauseOrPlay=l.pauseOrPlay.bind(se(l)),l.renderThumbInner=l.renderThumbInner.bind(se(l)),l.renderItem=l.renderItem.bind(se(l)),l.slideLeft=l.slideLeft.bind(se(l)),l.slideRight=l.slideRight.bind(se(l)),l.toggleFullScreen=l.toggleFullScreen.bind(se(l)),l.togglePlay=l.togglePlay.bind(se(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=ue(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=Q,p=[{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,C=y.items,_=y.lazyLoad,I=y.slideDuration,q=y.slideInterval,U=y.startIndex,G=y.thumbnailPosition,L=y.showThumbnails,D=y.useWindowKeyDown,N=this.state,W=N.currentIndex,Y=N.isPlaying,Z=c.items.length!==C.length,oe=!Ee()(c.items,C),be=c.startIndex!==U,fe=c.thumbnailPosition!==G,de=c.showThumbnails!==L;q===c.slideInterval&&I===c.slideDuration||Y&&(this.pause(),this.play()),fe&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),de&&L&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),de&&!L&&this.removeThumbnailsResizeObserver(),(Z||de)&&this.handleResize(),l.currentIndex!==W&&this.slideThumbnailBar(),c.slideDuration!==I&&(this.slideToIndex=ue(this.unthrottledSlideToIndex,I,{trailing:!1})),!_||c.lazyLoad&&!oe||(this.lazyLoaded=[]),D!==c.useWindowKeyDown&&(D?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(be||oe)&&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,C=l.isTransitioning,_=this.props,I=_.onSlide,q=_.slideDuration;this.transitionTimer=window.setTimeout(function(){C&&(c.setState({isTransitioning:!C,isSwipingThumbnail:!1}),I&&I(y))},q+50)}},{key:"onThumbnailClick",value:function(c,l){var y=this.props,C=y.onThumbnailClick,_=y.items,I=this.state.currentIndex;c.target.parentNode.parentNode.blur(),I!==l&&(_.length===2?this.slideToIndexWithStyleReset(l,c):this.slideToIndex(l,c)),C&&C(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,C=y.disableThumbnailScroll,_=y.items,I=this.state,q=I.thumbnailsWrapperWidth,U=I.thumbnailsWrapperHeight,G=this.thumbnails&&this.thumbnails.current;if(C)return 0;if(G){if(this.isThumbnailVertical()){if(G.scrollHeight<=U)return 0;l=G.scrollHeight-U}else{if(G.scrollWidth<=q||q<=0)return 0;l=G.scrollWidth-q}return c*(l/(_.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,C=y.infinite,_=y.items,I="",q="image-gallery-left",U="image-gallery-right";switch(c){case l-1:I=" ".concat(q);break;case l:I=" ".concat("image-gallery-center");break;case l+1:I=" ".concat(U)}return _.length>=3&&C&&(c===0&&l===_.length-1?I=" ".concat(U):c===_.length-1&&l===0&&(I=" ".concat(q))),I}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,y=l.currentIndex,C=l.currentSlideOffset,_=l.previousIndex,I=y!==_,q=c===0&&_===0,U=c===1&&_===1,G=c===0&&y===1,L=c===1&&y===0,D=C===0,N=-100*y+100*c+C;return C>0?this.direction="left":C<0&&(this.direction="right"),L&&C>0&&(N=-100+C),G&&C<0&&(N=100+C),I?q&&D&&this.direction==="left"?N=100:U&&D&&this.direction==="right"&&(N=-100):(L&&D&&this.direction==="left"&&(N=-100),G&&D&&this.direction==="right"&&(N=100)),N}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(c){var l=this.state,y=l.currentIndex,C=l.currentSlideOffset,_=l.slideStyle,I=this.props,q=I.infinite,U=I.items,G=I.useTranslate3D,L=I.isRTL,D=-100*y,N=U.length-1,W=(D+100*c)*(L?-1:1)+C;q&&U.length>2&&(y===0&&c===N?W=-100*(L?-1:1)+C:y===N&&c===0&&(W=100*(L?-1:1)+C)),q&&U.length===2&&(W=this.getTranslateXForTwoSlide(c));var Y="translate(".concat(W,"%, 0)");return G&&(Y="translate3d(".concat(W,"%, 0, 0)")),mr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:Y,MozTransform:Y,msTransform:Y,OTransform:Y,transform:Y},_)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var c,l=this.props,y=l.useTranslate3D,C=l.isRTL,_=this.state,I=_.thumbsTranslate,q=_.thumbsStyle,U=C?-1*I:I;return this.isThumbnailVertical()?(c="translate(0, ".concat(I,"px)"),y&&(c="translate3d(0, ".concat(I,"px, 0)"))):(c="translate(".concat(U,"px, 0)"),y&&(c="translate3d(".concat(U,"px, 0, 0)"))),mr({WebkitTransform:c,MozTransform:c,msTransform:c,OTransform:c,transform:c},q)}},{key:"getSlideItems",value:function(){var c=this,l=this.state.currentIndex,y=this.props,C=y.items,_=y.slideOnThumbnailOver,I=y.onClick,q=y.lazyLoad,U=y.onTouchMove,G=y.onTouchEnd,L=y.onTouchStart,D=y.onMouseOver,N=y.onMouseLeave,W=y.renderItem,Y=y.renderThumbInner,Z=y.showThumbnails,oe=y.showBullets,be=[],fe=[],de=[];return C.forEach(function(ie,ee){var Re=c.getAlignmentClassName(ee),nt=ie.originalClass?" ".concat(ie.originalClass):"",rt=ie.thumbnailClass?" ".concat(ie.thumbnailClass):"",_e=ie.renderItem||W||c.renderItem,Be=ie.renderThumbInner||Y||c.renderThumbInner,Oe=!q||Re||c.lazyLoaded[ee];Oe&&q&&!c.lazyLoaded[ee]&&(c.lazyLoaded[ee]=!0);var Xe=c.getSlideStyle(ee),it=f().createElement("div",{"aria-label":"Go to Slide ".concat(ee+1),key:"slide-".concat(ee),tabIndex:"-1",className:"image-gallery-slide ".concat(Re," ").concat(nt),style:Xe,onClick:I,onKeyUp:c.handleSlideKeyUp,onTouchMove:U,onTouchEnd:G,onTouchStart:L,onMouseOver:D,onFocus:D,onMouseLeave:N,role:"button"},Oe?_e(ie):f().createElement("div",{style:{height:"100%"}}));if(be.push(it),Z&&ie.thumbnail){var Qe=m("image-gallery-thumbnail",rt,{active:l===ee});fe.push(f().createElement("button",{key:"thumbnail-".concat(ee),type:"button",tabIndex:"0","aria-pressed":l===ee?"true":"false","aria-label":"Go to Slide ".concat(ee+1),className:Qe,onMouseLeave:_?c.onThumbnailMouseLeave:null,onMouseOver:function(ye){return c.handleThumbnailMouseOver(ye,ee)},onFocus:function(ye){return c.handleThumbnailMouseOver(ye,ee)},onKeyUp:function(ye){return c.handleThumbnailKeyUp(ye,ee)},onClick:function(ye){return c.onThumbnailClick(ye,ee)}},Be(ie)))}if(oe){var ot=m("image-gallery-bullet",ie.bulletClass,{active:l===ee});de.push(f().createElement("button",{type:"button",key:"bullet-".concat(ee),className:ot,onClick:function(ye){return c.onBulletClick(ye,ee)},"aria-pressed":l===ee?"true":"false","aria-label":"Go to Slide ".concat(ee+1)}))}}),{slides:be,thumbnails:fe,bullets:de}}},{key:"ignoreIsTransitioning",value:function(){var c=this.props.items,l=this.state,y=l.previousIndex,C=l.currentIndex,_=c.length-1;return Math.abs(y-C)>1&&!(y===0&&C===_)&&!(y===_&&C===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,C=l.previousIndex,_=l.currentIndex;return y&&!(c===C||c===_)}},{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,C=-this.getThumbsTranslate(l);y||(l===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:C,thumbsSwipedTranslate:C}))}},{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,C=c.dir,_=this.props,I=_.disableSwipe,q=_.stopPropagation,U=this.state,G=U.galleryWidth,L=U.isTransitioning,D=U.swipingUpDown,N=U.swipingLeftRight;if(C!==Ve&&C!==Ne&&!D||N){if(C!==qe&&C!==Fe||N||this.setState({swipingLeftRight:!0}),!I){var W=this.props.swipingTransitionDuration;if(q&&l.preventDefault(),L)this.setState({currentSlideOffset:0});else{var Y=C===Fe?1:-1,Z=y/G*100;Math.abs(Z)>=100&&(Z=100);var oe={transition:"transform ".concat(W,"ms ease-out")};this.setState({currentSlideOffset:Y*Z,slideStyle:oe})}}}else D||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,y=c.absX,C=c.absY,_=c.dir,I=this.props,q=I.stopPropagation,U=I.swipingThumbnailTransitionDuration,G=this.state,L=G.thumbsSwipedTranslate,D=G.thumbnailsWrapperHeight,N=G.thumbnailsWrapperWidth,W=G.swipingUpDown,Y=G.swipingLeftRight;if(this.isThumbnailVertical()){if((_===qe||_===Fe||Y)&&!W)return void(Y||this.setState({swipingLeftRight:!0}));_!==Ve&&_!==Ne||W||this.setState({swipingUpDown:!0})}else{if((_===Ve||_===Ne||W)&&!Y)return void(W||this.setState({swipingUpDown:!0}));_!==qe&&_!==Fe||Y||this.setState({swipingLeftRight:!0})}var Z,oe,be,fe,de,ie=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(Z=L+(_===Ne?C:-C),oe=ie.scrollHeight-D+20,be=Math.abs(Z)>oe,fe=Z>20,de=ie.scrollHeight<=D):(Z=L+(_===Fe?y:-y),oe=ie.scrollWidth-N+20,be=Math.abs(Z)>oe,fe=Z>20,de=ie.scrollWidth<=N),!de&&(_!==qe&&_!==Ve||!be)&&(_!==Fe&&_!==Ne||!fe)){q&&l.stopPropagation();var ee={transition:"transform ".concat(U,"ms ease-out")};this.setState({thumbsTranslate:Z,thumbsStyle:ee})}}},{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,C=c.velocity,_=this.props,I=_.disableSwipe,q=_.stopPropagation,U=_.flickThreshold;if(!I){var G=this.props.isRTL;q&&l.stopPropagation(),this.resetSwipingDirection();var L=(y===qe?1:-1)*(G?-1:1),D=C>U&&!(y===Ve||y===Ne);this.handleOnSwipedTo(L,D)}}},{key:"handleOnSwipedTo",value:function(c,l){var y=this.state,C=y.currentIndex,_=y.isTransitioning,I=C;!this.sufficientSwipe()&&!l||_||(I+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(I=C),this.unthrottledSlideToIndex(I)}},{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,C=l.useBrowserFullscreen,_=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:_&&!C&&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 tr(le(function(y){y&&y.forEach(function(C){l.setState({thumbnailsWrapperWidth:C.contentRect.width},l.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(c.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeThumbnailWrapperObserver=new tr(le(function(y){y&&y.forEach(function(C){l.setState({thumbnailsWrapperHeight:C.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,C=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,_=this.imageGallery.current===C;l&&l(_),y&&this.setState({isFullscreen:_})}},{key:"slideToIndex",value:function(c,l){var y=this.state,C=y.currentIndex,_=y.isTransitioning,I=this.props,q=I.items,U=I.slideDuration,G=I.onBeforeSlide;if(!_){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var L=q.length-1,D=c;c<0?D=L:c>L&&(D=0),G&&D!==C&&G(D),this.setState({previousIndex:C,currentIndex:D,isTransitioning:D!==C,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,C=y.currentIndex,_=y.isTransitioning,I=this.props.items,q=C+(l==="left"?-1:1);_||(I.length===2?this.slideToIndexWithStyleReset(q,c):this.slideToIndex(q,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var y=this,C=this.state,_=C.currentIndex,I=C.currentSlideOffset;this.setState({currentSlideOffset:I+(_>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){vr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){vr(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;yr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;yr.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,C=l.slideInterval,_=l.slideDuration,I=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(C,_)),y&&c&&y(I))}},{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 f().createElement(uo,{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 f().createElement("span",{className:"image-gallery-thumbnail-inner"},f().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&&f().createElement("div",{className:"image-gallery-thumbnail-label"},c.thumbnailLabel))}},{key:"render",value:function(){var c=this.state,l=c.currentIndex,y=c.isFullscreen,C=c.modalFullscreen,_=c.isPlaying,I=this.props,q=I.additionalClass,U=I.disableThumbnailSwipe,G=I.indexSeparator,L=I.isRTL,D=I.items,N=I.thumbnailPosition,W=I.renderFullscreenButton,Y=I.renderCustomControls,Z=I.renderLeftNav,oe=I.renderRightNav,be=I.showBullets,fe=I.showFullscreenButton,de=I.showIndex,ie=I.showThumbnails,ee=I.showNav,Re=I.showPlayButton,nt=I.renderPlayPauseButton,rt=this.getThumbnailStyle(),_e=this.getSlideItems(),Be=_e.slides,Oe=_e.thumbnails,Xe=_e.bullets,it=m("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(N),{"image-gallery-rtl":L}),Qe=f().createElement("div",{ref:this.imageGallerySlideWrapper,className:it},Y&&Y(),this.canSlide()?f().createElement(f().Fragment,null,ee&&f().createElement(f().Fragment,null,Z(this.slideLeft,!this.canSlideLeft()),oe(this.slideRight,!this.canSlideRight())),f().createElement(fr,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},f().createElement("div",{className:"image-gallery-slides"},Be))):f().createElement("div",{className:"image-gallery-slides"},Be),Re&&nt(this.togglePlay,_),be&&f().createElement("div",{className:"image-gallery-bullets"},f().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Xe)),fe&&W(this.toggleFullScreen,y),de&&f().createElement("div",{className:"image-gallery-index"},f().createElement("span",{className:"image-gallery-index-current"},l+1),f().createElement("span",{className:"image-gallery-index-separator"},G),f().createElement("span",{className:"image-gallery-index-total"},D.length))),ot=m("image-gallery",q,{"fullscreen-modal":C}),ye=m("image-gallery-content",this.getThumbnailPositionClassName(N),{fullscreen:y}),To=m("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(N),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&L},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!U},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!U});return f().createElement("div",{ref:this.imageGallery,className:ot,"aria-live":"polite"},f().createElement("div",{className:ye},(N==="bottom"||N==="right")&&Qe,ie&&Oe.length>0?f().createElement(fr,{className:To,delta:0,onSwiping:!U&&this.handleThumbnailSwiping,onSwiped:!U&&this.handleOnThumbnailSwiped},f().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},f().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:rt,"aria-label":"Thumbnail Navigation"},Oe))):null,(N==="top"||N==="left")&&Qe))}}],p&&wo(a.prototype,p),Object.defineProperty(a,"prototype",{writable:!1}),Q}(f().Component);Zt.propTypes={flickThreshold:j.number,items:(0,j.arrayOf)((0,j.shape)({bulletClass:j.string,bulletOnClick:j.func,description:j.string,original:j.string,originalHeight:j.number,originalWidth:j.number,loading:j.string,thumbnailHeight:j.number,thumbnailWidth:j.number,thumbnailLoading:j.string,fullscreen:j.string,originalAlt:j.string,originalTitle:j.string,thumbnail:j.string,thumbnailAlt:j.string,thumbnailLabel:j.string,thumbnailTitle:j.string,originalClass:j.string,thumbnailClass:j.string,renderItem:j.func,renderThumbInner:j.func,imageSet:ko,srcSet:j.string,sizes:j.string})).isRequired,showNav:j.bool,autoPlay:j.bool,lazyLoad:j.bool,infinite:j.bool,showIndex:j.bool,showBullets:j.bool,showThumbnails:j.bool,showPlayButton:j.bool,showFullscreenButton:j.bool,disableThumbnailScroll:j.bool,disableKeyDown:j.bool,disableSwipe:j.bool,disableThumbnailSwipe:j.bool,useBrowserFullscreen:j.bool,onErrorImageURL:j.string,indexSeparator:j.string,thumbnailPosition:(0,j.oneOf)(["top","bottom","left","right"]),startIndex:j.number,slideDuration:j.number,slideInterval:j.number,slideOnThumbnailOver:j.bool,swipeThreshold:j.number,swipingTransitionDuration:j.number,swipingThumbnailTransitionDuration:j.number,onSlide:j.func,onBeforeSlide:j.func,onScreenChange:j.func,onPause:j.func,onPlay:j.func,onClick:j.func,onImageLoad:j.func,onImageError:j.func,onTouchMove:j.func,onTouchEnd:j.func,onTouchStart:j.func,onMouseOver:j.func,onMouseLeave:j.func,onBulletClick:j.func,onThumbnailError:j.func,onThumbnailClick:j.func,renderCustomControls:j.func,renderLeftNav:j.func,renderRightNav:j.func,renderPlayPauseButton:j.func,renderFullscreenButton:j.func,renderItem:j.func,renderThumbInner:j.func,stopPropagation:j.bool,additionalClass:j.string,useTranslate3D:j.bool,isRTL:j.bool,useWindowKeyDown:j.bool},Zt.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 f().createElement(go,{onClick:d,disabled:a})},renderRightNav:function(d,a){return f().createElement(bo,{onClick:d,disabled:a})},renderPlayPauseButton:function(d,a){return f().createElement(yo,{onClick:d,isPlaying:a})},renderFullscreenButton:function(d,a){return f().createElement(mo,{onClick:d,isFullscreen:a})},useWindowKeyDown:!0};const jo=Zt})(),u})())})(Ei);var La=Ei.exports;const Da=Co(La);function za(){var e=new Map;function t(n){var r=n.root,i=n.rootMargin,s=n.threshold,u=e.get(r);u||(u=new Map,e.set(r,u));var h=JSON.stringify({rootMargin:i,threshold:s}),m=u.get(h);if(!m){var g=new Map,f=new IntersectionObserver(function(v){v.forEach(function(w){var x=g.get(w.target);x==null||x(w)})},{root:r,rootMargin:i,threshold:s});m={observer:f,entryCallbacks:g},u.set(h,m)}return{observe:function(w,x){var S,k;(S=m)==null||S.entryCallbacks.set(w,x),(k=m)==null||k.observer.observe(w)},unobserve:function(w){var x,S;(x=m)==null||x.entryCallbacks.delete(w),(S=m)==null||S.observer.unobserve(w)}}}return{getObserver:t}}var Fa="0px",Na=[0],Ba=za();function Aa(e){var t,n,r=(t=e==null?void 0:e.rootMargin)!=null?t:Fa,i=(n=e==null?void 0:e.threshold)!=null?n:Na,s=z.useRef(null),u=z.useRef(null),h=z.useRef(null),m=z.useState(),g=m[0],f=m[1],v=z.useCallback(function(){var k=s.current;if(!k){f(void 0);return}var R=Ba.getObserver({root:u.current,rootMargin:r,threshold:i});R.observe(k,function(T){f(T)}),h.current=R},[r,i]),w=z.useCallback(function(){var k=h.current,R=s.current;R&&(k==null||k.unobserve(R)),h.current=null},[]),x=z.useCallback(function(k){w(),s.current=k,v()},[v,w]),S=z.useCallback(function(k){w(),u.current=k,v()},[v,w]);return[x,{entry:g,rootRef:S}]}function Sn(){return Sn=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},Sn.apply(this,arguments)}function Wa(e){var t,n=Aa(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),u=z.useState(s),h=u[0],m=u[1];return s&&!h&&m(!0),[r,Sn({},i,{isVisible:s,wasEverVisible:h})]}var $a=100;function Ka(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,u=e.delayInMs,h=u===void 0?$a:u,m=Wa({rootMargin:i}),g=m[0],f=m[1],v=f.rootRef,w=f.isVisible,x=!s&&!t&&w&&n;return z.useEffect(function(){if(x){var S=setTimeout(function(){r()},h);return function(){clearTimeout(S)}}},[r,x,h]),[g,{rootRef:v}]}const Ua={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"/>'},Ha={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>'};var rn=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function on(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function _i(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 Ri(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 qa(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 An={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,"-":rn?173:189,"=":rn?61:187,";":rn?59:186,"'":222,"[":219,"]":221,"\\":220},De={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},kn={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},he={16:!1,18:!1,17:!1,91:!1},ae={};for(var kt=1;kt<20;kt++)An["f".concat(kt)]=111+kt;var re=[],Wr=!1,Pi="all",Mi=[],$t=function(t){return An[t.toLowerCase()]||De[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Li(e){Pi=e||"all"}function mt(){return Pi||"all"}function Va(){return re.slice(0)}function Ga(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 Ya(e){return typeof e=="string"&&(e=$t(e)),re.indexOf(e)!==-1}function Xa(e,t){var n,r;e||(e=mt());for(var i in ae)if(Object.prototype.hasOwnProperty.call(ae,i))for(n=ae[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;mt()===e&&Li(t||"all")}function Qa(e){var t=e.keyCode||e.which||e.charCode,n=re.indexOf(t);if(n>=0&&re.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&re.splice(0,re.length),(t===93||t===224)&&(t=91),t in he){he[t]=!1;for(var r in De)De[r]===t&&(ve[r]=!1)}}function Ja(e){if(typeof e>"u")Object.keys(ae).forEach(function(u){return delete ae[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&sn(u)});else if(typeof e=="object")e.key&&sn(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=""),sn({key:e,scope:i,method:s,splitKey:"+"})}}var sn=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,u=s===void 0?"+":s,h=Ri(n);h.forEach(function(m){var g=m.split(u),f=g.length,v=g[f-1],w=v==="*"?"*":$t(v);if(ae[w]){r||(r=mt());var x=f>1?_i(De,g):[];ae[w]=ae[w].filter(function(S){var k=i?S.method===i:!0;return!(k&&S.scope===r&&qa(S.mods,x))})}})};function $r(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 he)Object.prototype.hasOwnProperty.call(he,s)&&(!he[s]&&t.mods.indexOf(+s)>-1||he[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!he[16]&&!he[18]&&!he[17]&&!he[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 Kr(e,t){var n=ae["*"],r=e.keyCode||e.which||e.charCode;if(ve.filter.call(this,e)){if((r===93||r===224)&&(r=91),re.indexOf(r)===-1&&r!==229&&re.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var k=kn[S];e[S]&&re.indexOf(k)===-1?re.push(k):!e[S]&&re.indexOf(k)>-1?re.splice(re.indexOf(k),1):S==="metaKey"&&e[S]&&re.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(re=re.slice(re.indexOf(k))))}),r in he){he[r]=!0;for(var i in De)De[i]===r&&(ve[i]=!0);if(!n)return}for(var s in he)Object.prototype.hasOwnProperty.call(he,s)&&(he[s]=e[kn[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(re.indexOf(17)===-1&&re.push(17),re.indexOf(18)===-1&&re.push(18),he[17]=!0,he[18]=!0);var u=mt();if(n)for(var h=0;h<n.length;h++)n[h].scope===u&&(e.type==="keydown"&&n[h].keydown||e.type==="keyup"&&n[h].keyup)&&$r(e,n[h],u,t);if(r in ae){for(var m=0;m<ae[r].length;m++)if((e.type==="keydown"&&ae[r][m].keydown||e.type==="keyup"&&ae[r][m].keyup)&&ae[r][m].key){for(var g=ae[r][m],f=g.splitKey,v=g.key.split(f),w=[],x=0;x<v.length;x++)w.push($t(v[x]));w.sort().join("")===re.sort().join("")&&$r(e,g,u,t)}}}}function Za(e){return Mi.indexOf(e)>-1}function ve(e,t,n){re=[];var r=Ri(e),i=[],s="all",u=document,h=0,m=!1,g=!0,f="+",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&&(u=t.element),t.keyup&&(m=t.keyup),t.keydown!==void 0&&(g=t.keydown),t.capture!==void 0&&(v=t.capture),typeof t.splitKey=="string"&&(f=t.splitKey)),typeof t=="string"&&(s=t);h<r.length;h++)e=r[h].split(f),i=[],e.length>1&&(i=_i(De,e)),e=e[e.length-1],e=e==="*"?"*":$t(e),e in ae||(ae[e]=[]),ae[e].push({keyup:m,keydown:g,scope:s,mods:i,shortcut:r[h],method:n,key:r[h],splitKey:f,element:u});typeof u<"u"&&!Za(u)&&window&&(Mi.push(u),on(u,"keydown",function(w){Kr(w,u)},v),Wr||(Wr=!0,on(window,"focus",function(){re=[]},v)),on(u,"keyup",function(w){Kr(w,u),Qa(w)},v))}function el(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ae).forEach(function(n){var r=ae[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var an={setScope:Li,getScope:mt,deleteScope:Xa,getPressedKeyCodes:Va,isPressed:Ya,filter:Ga,trigger:el,unbind:Ja,keyMap:An,modifier:De,modifierMap:kn};for(var ln in an)Object.prototype.hasOwnProperty.call(an,ln)&&(ve[ln]=an[ln]);if(typeof window<"u"){var tl=window.hotkeys;ve.noConflict=function(e){return e&&window.hotkeys===ve&&(window.hotkeys=tl),ve},window.hotkeys=ve}ve.filter=function(){return!0};var Di=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},nl=function(t){return Di(t,["INPUT","TEXTAREA","SELECT"])};function rl(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,u=i.filter,h=i.keyup,m=i.keydown,g=i.filterPreventDefault,f=g===void 0?!0:g,v=i.enabled,w=v===void 0?!0:v,x=i.enableOnContentEditable,S=x===void 0?!1:x,k=z.useRef(null),R=z.useCallback(function(T,O){var P,A;return u&&!u(T)?!f:nl(T)&&!Di(T,s)||(P=T.target)!=null&&P.isContentEditable&&!S?!0:k.current===null||document.activeElement===k.current||(A=k.current)!=null&&A.contains(document.activeElement)?(t(T,O),!0):!1},r?[k,s,u].concat(r):[k,s,u]);return z.useEffect(function(){if(!w){ve.unbind(e,R);return}return h&&m!==!0&&(n.keydown=!1),ve(e,n||{},R),function(){return ve.unbind(e,R)}},[R,e,w]),k}ve.isPressed;const zi=z.createContext({open:!1,toggleOpen:e=>{}});function il({children:e}){const[t,n]=z.useState(!1),r=s=>{n(s??!s)},i=z.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx(zi.Provider,{value:i,children:e})}function Wn(){return z.useContext(zi)}const we={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},ol=e=>Bt(async()=>{const{data:t}=await e.get(we.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function sl(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...Po(e,["sortBy","sortDirection","showResources"])}:{sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:r,onSearchSelect:i=h=>{t.onFilterChange({...n,keyword:h.title})},emptyCategory:s}=t;!n.category&&!s&&(n.category="All");const u=h=>{const m={...n,...h};r(en(m,g=>g===""||g===void 0))};return{filters:e,cleanFilter:h=>{const m=h?en(n,(g,f)=>h.includes(f)):{};r(en(m,g=>g===""||g===void 0))},handleActiveMenu:h=>{h!==e.menu&&r({menu:h})},handleSort:(h,m)=>{u({sortBy:h,sortDirection:m||h==="nameAsc"?"asc":"desc"})},handleKeyword:h=>{u({category:void 0,keyword:h||void 0})},handlePrice:h=>{u({price:h===e.price?void 0:h})},handleCategory:h=>{u({category:h===e.category?"":h})},handleDeveloper:h=>{u({owner:h||void 0})},handlePage:h=>{u({currentPage:h})},handleSwitchShowResources:h=>{u({showResources:h})},handleSearchSelect:h=>{i(h)}}}const al=(e,t,n)=>e&&t||!n,Fi=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Ni=(e,t,n)=>{var r,i;const s=zo(e),u=Fo(s.search);if((r=No(e,{strict:!0}))!=null&&r.endsWith(".gif"))return u.imageFilter?Bo({...s,search:""}):e;if(u.imageFilter)return e;const h=n||((i=window.blocklet)==null?void 0:i.version),{w:m,h:g}=typeof t=="object"?{w:t.w,h:t.h}:{w:t,h:t};return En(e,{...m||g?{imageFilter:"resize",w:m,h:g}:{},v:h})},ll=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],cl=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),ul=e=>{var t,n;return Array.isArray(e)?e.map(r=>r.message).join(`
1
+ import{c1 as xr,a7 as zt,b$ as st,dc as Oo,r as z,c6 as wr,j as o,bg as Me,aP as Ft,aQ as Nt,d4 as at,bk as Co,cY as Sr,el as xe,C as Ce,s as ze,M as V,am as Ke,dC as Io,a4 as Eo,dP as _o,fM as Qr,fh as Jr,fN as Zr,fO as Cn,aD as Ro,aE as In,aZ as pe,bt as Bt,fP as Po,fQ as en,k as J,fR as Mo,E as Je,fS as Lo,aY as ei,V as ti,fL as En,fE as Pe,aw as _t,G as kr,ef as jr,aT as Do,fT as zo,fU as Fo,fV as No,fW as Bo,N as Ao,fj as Wo,fi as $o,ey as Ko,e7 as Uo,fg as Ho,U as Rt,a0 as qo,fX as ni,fY as Vo,t as ri,a3 as Le,fZ as Tr,f_ as Go,P as M,m as Ue,aB as _n,aS as Or,eR as ii,b6 as Yo,aH as wt,B as Pt,a9 as Xo,aa as oi,aI as Qo,f$ as Cr,ab as Jo,br as Rn,D as Zo,q as es,X as ts,cL as ns,Y as ct,A as si,y as Ae,b as rs,b3 as is,af as os,fl as ai,cv as ss,cB as as,W as ls}from"./index-stJAb77w.js";import{u as cs}from"./index-B1mohDxN.js";import{d as us}from"./ChevronLeft-CU0-sRba.js";import{d as ds}from"./ChevronRight-w8XPzcNg.js";import{d as Ct}from"./Search-DPU7D_vd.js";import{E as hs}from"./index-CcxZpTQ0.js";import{o as fs,u as ps}from"./blocklet-CnI_D77p.js";import{A as ms}from"./Autocomplete-Bafup0UA.js";import{d as gs}from"./Verified-Bdl_ndo3.js";import{d as bs,a as ys}from"./VerifiedUser-BndujtmX.js";import{d as vs}from"./Add-XHvNq2xc.js";import{d as li}from"./Launch-CDb-SfqU.js";import{d as xs}from"./Done-CnWoMrlj.js";import{d as ci}from"./DeleteOutline-Chg7XAC_.js";import{D as ws}from"./delete-confirm-DbGSv6E0.js";import{d as Ss}from"./MoreVert-e5gpRJAz.js";import{u as ks}from"./session-Bla-5Vji.js";import{g as We}from"./get-safe-url-m-Vt3x1Y.js";import{B as Ir}from"./ButtonGroup-BcCzG3de.js";const js=["name"],Ts=["children","className","clone","component"];function Os(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function Cs(e){return(n,r={})=>{const{name:i}=r,s=xr(r,js);let u=i;const m=zt(typeof n=="function"?v=>({root:w=>n(st({theme:v},w))}):{root:n},st({Component:e,name:i||e.displayName,classNamePrefix:u},s));let g;n.filterProps&&(g=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);const f=z.forwardRef(function(w,x){const{children:S,className:k,clone:R,component:T}=w,O=xr(w,Ts),P=m(w),A=wr(P.root,k);let X=O;if(g&&(X=Os(X,g)),R)return z.cloneElement(S,st({className:wr(S.props.className,A)},X));if(typeof S=="function")return S(st({className:A},X));const H=T||e;return o.jsx(H,st({ref:x,className:A},X,{children:S}))});return Oo(f,e),f}}const Oc="blocklet-add-component-registry",Cc="server-add-registry",Is={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>'},ut=/^[a-z0-9]+(-[a-z0-9]+)*$/,At=(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 h=i.pop(),m=i.pop(),g={provider:i.length>0?i[0]:r,prefix:m,name:h};return t&&!It(g)?null:g}const s=i[0],u=s.split("-");if(u.length>1){const h={provider:r,prefix:u.shift(),name:u.join("-")};return t&&!It(h)?null:h}if(n&&r===""){const h={provider:r,prefix:"",name:s};return t&&!It(h,n)?null:h}return null},It=(e,t)=>e?!!((e.provider===""||e.provider.match(ut))&&(t&&e.prefix===""||e.prefix.match(ut))&&e.name.match(ut)):!1,ui=Object.freeze({left:0,top:0,width:16,height:16}),Mt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Pn=Object.freeze({...ui,...Mt}),mn=Object.freeze({...Pn,body:"",hidden:!1});function Es(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 Er(e,t){const n=Es(e,t);for(const r in mn)r in Mt?r in e&&!(r in n)&&(n[r]=Mt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function _s(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(u){if(n[u])return i[u]=[];if(!(u in i)){i[u]=null;const h=r[u]&&r[u].parent,m=h&&s(h);m&&(i[u]=[h].concat(m))}return i[u]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Rs(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function u(h){s=Er(r[h]||i[h],s)}return u(t),n.forEach(u),Er(e,s)}function di(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=_s(e);for(const i in r){const s=r[i];s&&(t(i,Rs(e,i,s)),n.push(i))}return n}const Ps={provider:"",aliases:{},not_found:{},...ui};function tn(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function hi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!tn(e,Ps))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(ut)||typeof s.body!="string"||!tn(s,mn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],u=s.parent;if(!i.match(ut)||typeof u!="string"||!n[u]&&!r[u]||!tn(s,mn))return null}return t}const _r=Object.create(null);function Ms(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function $e(e,t){const n=_r[e]||(_r[e]=Object.create(null));return n[t]||(n[t]=Ms(e,t))}function Mn(e,t){return hi(t)?di(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Ls(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let ht=!1;function fi(e){return typeof e=="boolean"&&(ht=e),ht}function Ds(e){const t=typeof e=="string"?At(e,!0,ht):e;if(t){const n=$e(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function zs(e,t){const n=At(e,!0,ht);if(!n)return!1;const r=$e(n.provider,n.prefix);return Ls(r,n.name,t)}function Fs(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),ht&&!t&&!e.prefix){let i=!1;return hi(e)&&(e.prefix="",di(e,(s,u)=>{u&&zs(s,u)&&(i=!0)})),i}const n=e.prefix;if(!It({provider:t,prefix:n,name:"a"}))return!1;const r=$e(t,n);return!!Mn(r,e)}const pi=Object.freeze({width:null,height:null}),mi=Object.freeze({...pi,...Mt}),Ns=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Bs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Rr(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(),u=Bs.test(s);for(;;){if(u){const h=parseFloat(s);isNaN(h)?i.push(s):i.push(Math.ceil(h*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");u=!u}}const As=e=>e==="unset"||e==="undefined"||e==="none";function Ws(e,t){const n={...Pn,...e},r={...mi,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(S=>{const k=[],R=S.hFlip,T=S.vFlip;let O=S.rotate;R?T?O+=2:(k.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),k.push("scale(-1 1)"),i.top=i.left=0):T&&(k.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),k.push("scale(1 -1)"),i.top=i.left=0);let P;switch(O<0&&(O-=Math.floor(O/4)*4),O=O%4,O){case 1:P=i.height/2+i.top,k.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:k.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:P=i.width/2+i.left,k.unshift("rotate(-90 "+P.toString()+" "+P.toString()+")");break}O%2===1&&(i.left!==i.top&&(P=i.left,i.left=i.top,i.top=P),i.width!==i.height&&(P=i.width,i.width=i.height,i.height=P)),k.length&&(s='<g transform="'+k.join(" ")+'">'+s+"</g>")});const u=r.width,h=r.height,m=i.width,g=i.height;let f,v;u===null?(v=h===null?"1em":h==="auto"?g:h,f=Rr(v,m/g)):(f=u==="auto"?m:u,v=h===null?Rr(f,g/m):h==="auto"?g:h);const w={},x=(S,k)=>{As(k)||(w[S]=k.toString())};return x("width",f),x("height",v),w.viewBox=i.left.toString()+" "+i.top.toString()+" "+m.toString()+" "+g.toString(),{attributes:w,body:s}}const $s=/\sid="(\S+)"/g,Ks="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Us=0;function Hs(e,t=Ks){const n=[];let r;for(;r=$s.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 u=typeof t=="function"?t(s):t+(Us++).toString(),h=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+h+')([")]|\\.[a-z])',"g"),"$1"+u+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const gn=Object.create(null);function qs(e,t){gn[e]=t}function bn(e){return gn[e]||gn[""]}function Ln(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 Dn=Object.create(null),lt=["https://api.simplesvg.com","https://api.unisvg.com"],Et=[];for(;lt.length>0;)lt.length===1||Math.random()>.5?Et.push(lt.shift()):Et.push(lt.pop());Dn[""]=Ln({resources:["https://api.iconify.design"].concat(Et)});function Vs(e,t){const n=Ln(t);return n===null?!1:(Dn[e]=n,!0)}function zn(e){return Dn[e]}const Gs=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Pr=Gs();function Ys(e,t){const n=zn(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(u=>{i=Math.max(i,u.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Xs(e){return e===404}const Qs=(e,t,n)=>{const r=[],i=Ys(e,t),s="icons";let u={type:s,provider:e,prefix:t,icons:[]},h=0;return n.forEach((m,g)=>{h+=m.length+1,h>=i&&g>0&&(r.push(u),u={type:s,provider:e,prefix:t,icons:[]},h=m.length),u.icons.push(m)}),r.push(u),r};function Js(e){if(typeof e=="string"){const t=zn(e);if(t)return t.path}return"/"}const Zs=(e,t,n)=>{if(!Pr){n("abort",424);return}let r=Js(t.provider);switch(t.type){case"icons":{const s=t.prefix,h=t.icons.join(","),m=new URLSearchParams({icons:h});r+=s+".json?"+m.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;Pr(e+r).then(s=>{const u=s.status;if(u!==200){setTimeout(()=>{n(Xs(u)?"abort":"next",u)});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)})},ea={prepare:Qs,send:Zs};function ta(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,u=i.prefix,h=i.name,m=n[s]||(n[s]=Object.create(null)),g=m[u]||(m[u]=$e(s,u));let f;h in g.icons?f=t.loaded:u===""||g.missing.has(h)?f=t.missing:f=t.pending;const v={provider:s,prefix:u,name:h};f.push(v)}),t}function gi(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function na(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 u=s.icons,h=u.pending.length;u.pending=u.pending.filter(m=>{if(m.prefix!==i)return!0;const g=m.name;if(e.icons[g])u.loaded.push({provider:r,prefix:i,name:g});else if(e.missing.has(g))u.missing.push({provider:r,prefix:i,name:g});else return n=!0,!0;return!1}),u.pending.length!==h&&(n||gi([e],s.id),s.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),s.abort))})}))}let ra=0;function ia(e,t,n){const r=ra++,i=gi.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(u=>{(u.loaderCallbacks||(u.loaderCallbacks=[])).push(s)}),i}function oa(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?At(i,t,n):i;s&&r.push(s)}),r}var sa={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function aa(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let u;if(e.random){let H=e.resources.slice(0);for(u=[];H.length>1;){const $=Math.floor(Math.random()*H.length);u.push(H[$]),H=H.slice(0,$).concat(H.slice($+1))}u=u.concat(H)}else u=e.resources.slice(s).concat(e.resources.slice(0,s));const h=Date.now();let m="pending",g=0,f,v=null,w=[],x=[];typeof r=="function"&&x.push(r);function S(){v&&(clearTimeout(v),v=null)}function k(){m==="pending"&&(m="aborted"),S(),w.forEach(H=>{H.status==="pending"&&(H.status="aborted")}),w=[]}function R(H,$){$&&(x=[]),typeof H=="function"&&x.push(H)}function T(){return{startTime:h,payload:t,status:m,queriesSent:g,queriesPending:w.length,subscribe:R,abort:k}}function O(){m="failed",x.forEach(H=>{H(void 0,f)})}function P(){w.forEach(H=>{H.status==="pending"&&(H.status="aborted")}),w=[]}function A(H,$,te){const ce=$!=="success";switch(w=w.filter(K=>K!==H),m){case"pending":break;case"failed":if(ce||!e.dataAfterTimeout)return;break;default:return}if($==="abort"){f=te,O();return}if(ce){f=te,w.length||(u.length?X():O());return}if(S(),P(),!e.random){const K=e.resources.indexOf(H.resource);K!==-1&&K!==e.index&&(e.index=K)}m="completed",x.forEach(K=>{K(te)})}function X(){if(m!=="pending")return;S();const H=u.shift();if(H===void 0){if(w.length){v=setTimeout(()=>{S(),m==="pending"&&(P(),O())},e.timeout);return}O();return}const $={status:"pending",resource:H,callback:(te,ce)=>{A($,te,ce)}};w.push($),g++,v=setTimeout(X,e.rotate),n(H,t,$.callback)}return setTimeout(X),T}function bi(e){const t={...sa,...e};let n=[];function r(){n=n.filter(h=>h().status==="pending")}function i(h,m,g){const f=aa(t,h,m,(v,w)=>{r(),g&&g(v,w)});return n.push(f),f}function s(h){return n.find(m=>h(m))||null}return{query:i,find:s,setIndex:h=>{t.index=h},getIndex:()=>t.index,cleanup:r}}function Mr(){}const nn=Object.create(null);function la(e){if(!nn[e]){const t=zn(e);if(!t)return;const n=bi(t),r={config:t,redundancy:n};nn[e]=r}return nn[e]}function ca(e,t,n){let r,i;if(typeof e=="string"){const s=bn(e);if(!s)return n(void 0,424),Mr;i=s.send;const u=la(e);u&&(r=u.redundancy)}else{const s=Ln(e);if(s){r=bi(s);const u=e.resources?e.resources[0]:"",h=bn(u);h&&(i=h.send)}}return!r||!i?(n(void 0,424),Mr):r.query(t,i,n)().abort}const Lr="iconify2",ft="iconify",yi=ft+"-count",Dr=ft+"-version",vi=36e5,ua=168;function yn(e,t){try{return e.getItem(t)}catch{}}function Fn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function zr(e,t){try{e.removeItem(t)}catch{}}function vn(e,t){return Fn(e,yi,t.toString())}function xn(e){return parseInt(yn(e,yi))||0}const Wt={local:!0,session:!0},xi={local:new Set,session:new Set};let Nn=!1;function da(e){Nn=e}let St=typeof window>"u"?{}:window;function wi(e){const t=e+"Storage";try{if(St&&St[t]&&typeof St[t].length=="number")return St[t]}catch{}Wt[e]=!1}function Si(e,t){const n=wi(e);if(!n)return;const r=yn(n,Dr);if(r!==Lr){if(r){const h=xn(n);for(let m=0;m<h;m++)zr(n,ft+m.toString())}Fn(n,Dr,Lr),vn(n,0);return}const i=Math.floor(Date.now()/vi)-ua,s=h=>{const m=ft+h.toString(),g=yn(n,m);if(typeof g=="string"){try{const f=JSON.parse(g);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>i&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,h))return!0}catch{}zr(n,m)}};let u=xn(n);for(let h=u-1;h>=0;h--)s(h)||(h===u-1?(u--,vn(n,u)):xi[e].add(h))}function ki(){if(!Nn){da(!0);for(const e in Wt)Si(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=$e(r,i);if(!Mn(s,n).length)return!1;const u=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,u):u,!0})}}function ha(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Wt)Si(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function fa(e,t){Nn||ki();function n(r){let i;if(!Wt[r]||!(i=wi(r)))return;const s=xi[r];let u;if(s.size)s.delete(u=Array.from(s).shift());else if(u=xn(i),!vn(i,u+1))return;const h={cached:Math.floor(Date.now()/vi),provider:e.provider,data:t};return Fn(i,ft+u.toString(),JSON.stringify(h))}t.lastModified&&!ha(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fr(){}function pa(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,na(e)}))}function ma(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=bn(n)))return;s.prepare(n,r,i).forEach(h=>{ca(n,h,m=>{if(typeof m!="object")h.icons.forEach(g=>{e.missing.add(g)});else try{const g=Mn(e,m);if(!g.length)return;const f=e.pendingIcons;f&&g.forEach(v=>{f.delete(v)}),fa(e,m)}catch(g){console.error(g)}pa(e)})})}))}const ga=(e,t)=>{const n=oa(e,!0,fi()),r=ta(n);if(!r.pending.length){let m=!0;return t&&setTimeout(()=>{m&&t(r.loaded,r.missing,r.pending,Fr)}),()=>{m=!1}}const i=Object.create(null),s=[];let u,h;return r.pending.forEach(m=>{const{provider:g,prefix:f}=m;if(f===h&&g===u)return;u=g,h=f,s.push($e(g,f));const v=i[g]||(i[g]=Object.create(null));v[f]||(v[f]=[])}),r.pending.forEach(m=>{const{provider:g,prefix:f,name:v}=m,w=$e(g,f),x=w.pendingIcons||(w.pendingIcons=new Set);x.has(v)||(x.add(v),i[g][f].push(v))}),s.forEach(m=>{const{provider:g,prefix:f}=m;i[g][f].length&&ma(m,i[g][f])}),t?ia(t,r,s):Fr};function ba(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in pi?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const ya=/[\s,]+/;function va(e,t){t.split(ya).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function xa(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 wa(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 Sa(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ka(e){return"data:image/svg+xml,"+Sa(e)}function ja(e){return'url("'+ka(e)+'")'}let dt;function Ta(){try{dt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{dt=null}}function Oa(e){return dt===void 0&&Ta(),dt?dt.createHTML(e):e}const ji={...mi,inline:!1},Ca={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ia={display:"inline-block"},wn={backgroundColor:"currentColor"},Ti={backgroundColor:"transparent"},Nr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Br={WebkitMask:wn,mask:wn,background:Ti};for(const e in Br){const t=Br[e];for(const n in Nr)t[e+n]=Nr[n]}const Ea={...ji,inline:!0};function Ar(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const _a=(e,t,n,r)=>{const i=n?Ea:ji,s=ba(i,t),u=t.mode||"svg",h={},m=t.style||{},g={...u==="svg"?Ca:{},ref:r};for(let T in t){const O=t[T];if(O!==void 0)switch(T){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":s[T]=O===!0||O==="true"||O===1;break;case"flip":typeof O=="string"&&va(s,O);break;case"color":h.color=O;break;case"rotate":typeof O=="string"?s[T]=xa(O):typeof O=="number"&&(s[T]=O);break;case"ariaHidden":case"aria-hidden":O!==!0&&O!=="true"&&delete g["aria-hidden"];break;default:i[T]===void 0&&(g[T]=O)}}const f=Ws(e,s),v=f.attributes;if(s.inline&&(h.verticalAlign="-0.125em"),u==="svg"){g.style={...h,...m},Object.assign(g,v);let T=0,O=t.id;return typeof O=="string"&&(O=O.replace(/-/g,"_")),g.dangerouslySetInnerHTML={__html:Oa(Hs(f.body,O?()=>O+"ID"+T++:"iconifyReact"))},Me.createElement("svg",g)}const{body:w,width:x,height:S}=e,k=u==="mask"||(u==="bg"?!1:w.indexOf("currentColor")!==-1),R=wa(w,{...v,width:x+"",height:S+""});return g.style={...h,"--svg":ja(R),width:Ar(v.width),height:Ar(v.height),...Ia,...k?wn:Ti,...m},Me.createElement("span",g)};fi(!0);qs("",ea);if(typeof document<"u"&&typeof window<"u"){ki();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"||!Fs(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;Vs(n,i)||console.error(r)}catch{console.error(r)}}}}class Oi extends Me.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=At(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Ds(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:ga([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const u=["iconify"];i.prefix!==""&&u.push("iconify--"+i.prefix),i.provider!==""&&u.push("iconify--"+i.provider),this._setData({data:s,classes:u}),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:Me.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),_a({...Pn,...n.data},r,t._inline,t._ref)}}const pt=Me.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return Me.createElement(Oi,r)});Me.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return Me.createElement(Oi,r)});var Bn={},Ra=Nt;Object.defineProperty(Bn,"__esModule",{value:!0});var Ci=Bn.default=void 0,Pa=Ra(Ft()),Ma=o;Ci=Bn.default=(0,Pa.default)((0,Ma.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Ii={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 Ei={exports:{}};(function(e,t){(function(n,r){e.exports=r(z)})(at,n=>(()=>{var r={703:(h,m,g)=>{var f=g(414);function v(){}function w(){}w.resetWarningCache=v,h.exports=function(){function x(R,T,O,P,A,X){if(X!==f){var H=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 H.name="Invariant Violation",H}}function S(){return x}x.isRequired=x;var k={array:x,bool:x,func:x,number:x,object:x,string:x,symbol:x,any:x,arrayOf:S,element:x,elementType:x,instanceOf:S,node:x,objectOf:S,oneOf:S,oneOfType:S,shape:S,exact:S,checkPropTypes:w,resetWarningCache:v};return k.PropTypes=k,k}},697:(h,m,g)=>{h.exports=g(703)()},414:h=>{h.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:h=>{var m=typeof Element<"u",g=typeof Map=="function",f=typeof Set=="function",v=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function w(x,S){if(x===S)return!0;if(x&&S&&typeof x=="object"&&typeof S=="object"){if(x.constructor!==S.constructor)return!1;var k,R,T,O;if(Array.isArray(x)){if((k=x.length)!=S.length)return!1;for(R=k;R--!=0;)if(!w(x[R],S[R]))return!1;return!0}if(g&&x instanceof Map&&S instanceof Map){if(x.size!==S.size)return!1;for(O=x.entries();!(R=O.next()).done;)if(!S.has(R.value[0]))return!1;for(O=x.entries();!(R=O.next()).done;)if(!w(R.value[1],S.get(R.value[0])))return!1;return!0}if(f&&x instanceof Set&&S instanceof Set){if(x.size!==S.size)return!1;for(O=x.entries();!(R=O.next()).done;)if(!S.has(R.value[0]))return!1;return!0}if(v&&ArrayBuffer.isView(x)&&ArrayBuffer.isView(S)){if((k=x.length)!=S.length)return!1;for(R=k;R--!=0;)if(x[R]!==S[R])return!1;return!0}if(x.constructor===RegExp)return x.source===S.source&&x.flags===S.flags;if(x.valueOf!==Object.prototype.valueOf)return x.valueOf()===S.valueOf();if(x.toString!==Object.prototype.toString)return x.toString()===S.toString();if((k=(T=Object.keys(x)).length)!==Object.keys(S).length)return!1;for(R=k;R--!=0;)if(!Object.prototype.hasOwnProperty.call(S,T[R]))return!1;if(m&&x instanceof Element)return!1;for(R=k;R--!=0;)if((T[R]!=="_owner"&&T[R]!=="__v"&&T[R]!=="__o"||!x.$$typeof)&&!w(x[T[R]],S[T[R]]))return!1;return!0}return x!=x&&S!=S}h.exports=function(x,S){try{return w(x,S)}catch(k){if((k.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw k}}},359:h=>{h.exports=n}},i={};function s(h){var m=i[h];if(m!==void 0)return m.exports;var g=i[h]={exports:{}};return r[h](g,g.exports,s),g.exports}s.n=h=>{var m=h&&h.__esModule?()=>h.default:()=>h;return s.d(m,{a:m}),m},s.d=(h,m)=>{for(var g in m)s.o(m,g)&&!s.o(h,g)&&Object.defineProperty(h,g,{enumerable:!0,get:m[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=(h,m)=>Object.prototype.hasOwnProperty.call(h,m),s.r=h=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})};var u={};return(()=>{function h(d){var a,p,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]&&(p=h(d[a]))&&(b&&(b+=" "),b+=p);else for(a in d)d[a]&&(b&&(b+=" "),b+=a);return b}function m(){for(var d,a,p=0,b="";p<arguments.length;)(d=arguments[p++])&&(a=h(d))&&(b&&(b+=" "),b+=a);return b}s.r(u),s.d(u,{default:()=>jo});var g=s(359),f=s.n(g);const v=function(d){var a=typeof d;return d!=null&&(a=="object"||a=="function")},w=typeof at=="object"&&at&&at.Object===Object&&at;var x=typeof self=="object"&&self&&self.Object===Object&&self;const S=w||x||Function("return this")(),k=function(){return S.Date.now()};var R=/\s/,T=/^\s+/;const O=function(d){return d&&d.slice(0,function(a){for(var p=a.length;p--&&R.test(a.charAt(p)););return p}(d)+1).replace(T,"")},P=S.Symbol;var A=Object.prototype,X=A.hasOwnProperty,H=A.toString,$=P?P.toStringTag:void 0,te=Object.prototype.toString,ce=P?P.toStringTag:void 0;const K=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":ce&&ce in Object(d)?function(a){var p=X.call(a,$),b=a[$];try{a[$]=void 0;var E=!0}catch{}var B=H.call(a);return E&&(p?a[$]=b:delete a[$]),B}(d):function(a){return te.call(a)}(d)};var Ie=/^[-+]0x[0-9a-f]+$/i,Se=/^0b[01]+$/i,je=/^0o[0-7]+$/i,ge=parseInt;const ke=function(d){if(typeof d=="number")return d;if(function(b){return typeof b=="symbol"||function(E){return E!=null&&typeof E=="object"}(b)&&K(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=O(d);var p=Se.test(d);return p||je.test(d)?ge(d.slice(2),p?2:8):Ie.test(d)?NaN:+d};var F=Math.max,ne=Math.min;const le=function(d,a,p){var b,E,B,Q,c,l,y=0,C=!1,_=!1,I=!0;if(typeof d!="function")throw new TypeError("Expected a function");function q(W){var Y=b,Z=E;return b=E=void 0,y=W,Q=d.apply(Z,Y)}function U(W){return y=W,c=setTimeout(L,a),C?q(W):Q}function G(W){var Y=W-l;return l===void 0||Y>=a||Y<0||_&&W-y>=B}function L(){var W=k();if(G(W))return D(W);c=setTimeout(L,function(Y){var Z=a-(Y-l);return _?ne(Z,B-(Y-y)):Z}(W))}function D(W){return c=void 0,I&&b?q(W):(b=E=void 0,Q)}function N(){var W=k(),Y=G(W);if(b=arguments,E=this,l=W,Y){if(c===void 0)return U(l);if(_)return clearTimeout(c),c=setTimeout(L,a),q(l)}return c===void 0&&(c=setTimeout(L,a)),Q}return a=ke(a)||0,v(p)&&(C=!!p.leading,B=(_="maxWait"in p)?F(ke(p.maxWait)||0,a):B,I="trailing"in p?!!p.trailing:I),N.cancel=function(){c!==void 0&&clearTimeout(c),y=0,b=l=E=c=void 0},N.flush=function(){return c===void 0?Q:D(k())},N},ue=function(d,a,p){var b=!0,E=!0;if(typeof d!="function")throw new TypeError("Expected a function");return v(p)&&(b="leading"in p?!!p.leading:b,E="trailing"in p?!!p.trailing:E),le(d,a,{leading:b,maxWait:a,trailing:E})};var Te=s(590),Ee=s.n(Te),Yn=function(){if(typeof Map<"u")return Map;function d(a,p){var b=-1;return a.some(function(E,B){return E[0]===p&&(b=B,!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(p){var b=d(this.__entries__,p),E=this.__entries__[b];return E&&E[1]},a.prototype.set=function(p,b){var E=d(this.__entries__,p);~E?this.__entries__[E][1]=b:this.__entries__.push([p,b])},a.prototype.delete=function(p){var b=this.__entries__,E=d(b,p);~E&&b.splice(E,1)},a.prototype.has=function(p){return!!~d(this.__entries__,p)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(p,b){b===void 0&&(b=null);for(var E=0,B=this.__entries__;E<B.length;E++){var Q=B[E];p.call(b,Q[1],Q[0])}},a}()}(),Ut=typeof window<"u"&&typeof document<"u"&&window.document===document,gt=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")(),Ji=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(gt):function(d){return setTimeout(function(){return d(Date.now())},1e3/60)},Zi=["top","right","bottom","left","width","height","size","weight"],eo=typeof MutationObserver<"u",to=function(){function d(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(a,p){var b=!1,E=!1,B=0;function Q(){b&&(b=!1,a()),E&&l()}function c(){Ji(Q)}function l(){var y=Date.now();if(b){if(y-B<2)return;E=!0}else b=!0,E=!1,setTimeout(c,20);B=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 p=this.observers_,b=p.indexOf(a);~b&&p.splice(b,1),!p.length&&this.connected_&&this.disconnect_()},d.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},d.prototype.updateObservers_=function(){var a=this.observers_.filter(function(p){return p.gatherActive(),p.hasActive()});return a.forEach(function(p){return p.broadcastActive()}),a.length>0},d.prototype.connect_=function(){Ut&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),eo?(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(){Ut&&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 p=a.propertyName,b=p===void 0?"":p;Zi.some(function(E){return!!~b.indexOf(E)})&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d}(),Xn=function(d,a){for(var p=0,b=Object.keys(a);p<b.length;p++){var E=b[p];Object.defineProperty(d,E,{value:a[E],enumerable:!1,writable:!1,configurable:!0})}return d},He=function(d){return d&&d.ownerDocument&&d.ownerDocument.defaultView||gt},Qn=yt(0,0,0,0);function bt(d){return parseFloat(d)||0}function Jn(d){for(var a=[],p=1;p<arguments.length;p++)a[p-1]=arguments[p];return a.reduce(function(b,E){return b+bt(d["border-"+E+"-width"])},0)}var no=typeof SVGGraphicsElement<"u"?function(d){return d instanceof He(d).SVGGraphicsElement}:function(d){return d instanceof He(d).SVGElement&&typeof d.getBBox=="function"};function ro(d){return Ut?no(d)?function(a){var p=a.getBBox();return yt(0,0,p.width,p.height)}(d):function(a){var p=a.clientWidth,b=a.clientHeight;if(!p&&!b)return Qn;var E=He(a).getComputedStyle(a),B=function(I){for(var q={},U=0,G=["top","right","bottom","left"];U<G.length;U++){var L=G[U],D=I["padding-"+L];q[L]=bt(D)}return q}(E),Q=B.left+B.right,c=B.top+B.bottom,l=bt(E.width),y=bt(E.height);if(E.boxSizing==="border-box"&&(Math.round(l+Q)!==p&&(l-=Jn(E,"left","right")+Q),Math.round(y+c)!==b&&(y-=Jn(E,"top","bottom")+c)),!function(I){return I===He(I).document.documentElement}(a)){var C=Math.round(l+Q)-p,_=Math.round(y+c)-b;Math.abs(C)!==1&&(l-=C),Math.abs(_)!==1&&(y-=_)}return yt(B.left,B.top,l,y)}(d):Qn}function yt(d,a,p,b){return{x:d,y:a,width:p,height:b}}var io=function(){function d(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yt(0,0,0,0),this.target=a}return d.prototype.isActive=function(){var a=ro(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}(),oo=function(d,a){var p,b,E,B,Q,c,l,y=(b=(p=a).x,E=p.y,B=p.width,Q=p.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),Xn(l,{x:b,y:E,width:B,height:Q,top:E,right:b+B,bottom:Q+E,left:b}),l);Xn(this,{target:d,contentRect:y})},so=function(){function d(a,p,b){if(this.activeObservations_=[],this.observations_=new Yn,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=p,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 He(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var p=this.observations_;p.has(a)||(p.set(a,new io(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 He(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var p=this.observations_;p.has(a)&&(p.delete(a),p.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(p){p.isActive()&&a.activeObservations_.push(p)})},d.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,p=this.activeObservations_.map(function(b){return new oo(b.target,b.broadcastRect())});this.callback_.call(a,p,a),this.clearActive()}},d.prototype.clearActive=function(){this.activeObservations_.splice(0)},d.prototype.hasActive=function(){return this.activeObservations_.length>0},d}(),Zn=typeof WeakMap<"u"?new WeakMap:new Yn,er=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 p=to.getInstance(),b=new so(a,p,this);Zn.set(this,b)};["observe","unobserve","disconnect"].forEach(function(d){er.prototype[d]=function(){var a;return(a=Zn.get(this))[d].apply(a,arguments)}});const tr=gt.ResizeObserver!==void 0?gt.ResizeObserver:er,qe="Left",Fe="Right",Ve="Up",Ne="Down",Ge={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Ht={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},nr="mousemove",rr="mouseup";function ir(d,a){if(a===0)return d;const p=Math.PI/180*a;return[d[0]*Math.cos(p)+d[1]*Math.sin(p),d[1]*Math.cos(p)-d[0]*Math.sin(p)]}function ao(d){const{trackMouse:a}=d,p=g.useRef(Object.assign({},Ht)),b=g.useRef(Object.assign({},Ge)),E=g.useRef(Object.assign({},b.current));let B;for(B in E.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},Ge),d),Ge)b.current[B]===void 0&&(b.current[B]=Ge[B]);const[Q,c]=g.useMemo(()=>function(l,y){const C=L=>{const D="touches"in L;D&&L.touches.length>1||l((N,W)=>{W.trackMouse&&!D&&(document.addEventListener(nr,_),document.addEventListener(rr,q));const{clientX:Y,clientY:Z}=D?L.touches[0]:L,oe=ir([Y,Z],W.rotationAngle);return W.onTouchStartOrOnMouseDown&&W.onTouchStartOrOnMouseDown({event:L}),Object.assign(Object.assign(Object.assign({},N),Ht),{initial:oe.slice(),xy:oe,start:L.timeStamp||0})})},_=L=>{l((D,N)=>{const W="touches"in L;if(W&&L.touches.length>1)return D;if(L.timeStamp-D.start>N.swipeDuration)return D.swiping?Object.assign(Object.assign({},D),{swiping:!1}):D;const{clientX:Y,clientY:Z}=W?L.touches[0]:L,[oe,be]=ir([Y,Z],N.rotationAngle),fe=oe-D.xy[0],de=be-D.xy[1],ie=Math.abs(fe),ee=Math.abs(de),Re=(L.timeStamp||0)-D.start,nt=Math.sqrt(ie*ie+ee*ee)/(Re||1),rt=[fe/(Re||1),de/(Re||1)],_e=function(it,Qe,ot,ye){return it>Qe?ot>0?Fe:qe:ye>0?Ne:Ve}(ie,ee,fe,de),Be=typeof N.delta=="number"?N.delta:N.delta[_e.toLowerCase()]||Ge.delta;if(ie<Be&&ee<Be&&!D.swiping)return D;const Oe={absX:ie,absY:ee,deltaX:fe,deltaY:de,dir:_e,event:L,first:D.first,initial:D.initial,velocity:nt,vxvy:rt};Oe.first&&N.onSwipeStart&&N.onSwipeStart(Oe),N.onSwiping&&N.onSwiping(Oe);let Xe=!1;return(N.onSwiping||N.onSwiped||N[`onSwiped${_e}`])&&(Xe=!0),Xe&&N.preventScrollOnSwipe&&N.trackTouch&&L.cancelable&&L.preventDefault(),Object.assign(Object.assign({},D),{first:!1,eventData:Oe,swiping:!0})})},I=L=>{l((D,N)=>{let W;if(D.swiping&&D.eventData){if(L.timeStamp-D.start<N.swipeDuration){W=Object.assign(Object.assign({},D.eventData),{event:L}),N.onSwiped&&N.onSwiped(W);const Y=N[`onSwiped${W.dir}`];Y&&Y(W)}}else N.onTap&&N.onTap({event:L});return N.onTouchEndOrOnMouseUp&&N.onTouchEndOrOnMouseUp({event:L}),Object.assign(Object.assign(Object.assign({},D),Ht),{eventData:W})})},q=L=>{document.removeEventListener(nr,_),document.removeEventListener(rr,q),I(L)},U=(L,D)=>{let N=()=>{};if(L&&L.addEventListener){const W=Object.assign(Object.assign({},Ge.touchEventOptions),D.touchEventOptions),Y=[["touchstart",C,W],["touchmove",_,Object.assign(Object.assign({},W),D.preventScrollOnSwipe?{passive:!1}:{})],["touchend",I,W]];Y.forEach(([Z,oe,be])=>L.addEventListener(Z,oe,be)),N=()=>Y.forEach(([Z,oe])=>L.removeEventListener(Z,oe))}return N},G={ref:L=>{L!==null&&l((D,N)=>{if(D.el===L)return D;const W={};return D.el&&D.el!==L&&D.cleanUpTouch&&(D.cleanUpTouch(),W.cleanUpTouch=void 0),N.trackTouch&&L&&(W.cleanUpTouch=U(L,N)),Object.assign(Object.assign(Object.assign({},D),{el:L}),W)})}};return y.trackMouse&&(G.onMouseDown=C),[G,U]}(l=>p.current=l(p.current,b.current),{trackMouse:a}),[a]);return p.current=function(l,y,C,_){return y.trackTouch&&l.el?l.cleanUpTouch?y.preventScrollOnSwipe!==C.preventScrollOnSwipe||y.touchEventOptions.passive!==C.touchEventOptions.passive?(l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:_(l.el,y)})):l:Object.assign(Object.assign({},l),{cleanUpTouch:_(l.el,y)}):(l.cleanUpTouch&&l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:void 0}))}(p.current,b.current,E.current,c),Q}var j=s(697);function Ze(d){return Ze=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},Ze(d)}function or(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(E){return Object.getOwnPropertyDescriptor(d,E).enumerable})),p.push.apply(p,b)}return p}function sr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?or(Object(p),!0).forEach(function(b){lo(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):or(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function lo(d,a,p){return(a=function(b){var E=function(B,Q){if(Ze(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,Q);if(Ze(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return Ze(E)==="symbol"?E:String(E)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var co={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},qt=f().memo(function(d){var a=sr(sr({},co),d),p=a.description,b=a.fullscreen,E=a.handleImageLoaded,B=a.isFullscreen,Q=a.onImageError,c=a.original,l=a.originalAlt,y=a.originalHeight,C=a.originalWidth,_=a.originalTitle,I=a.sizes,q=a.srcSet,U=a.loading,G=B&&b||c;return f().createElement(f().Fragment,null,f().createElement("img",{className:"image-gallery-image",src:G,alt:l,srcSet:q,height:y,width:C,sizes:I,title:_,onLoad:function(L){return E(L,c)},onError:Q,loading:U}),p&&f().createElement("span",{className:"image-gallery-description"},p))});qt.displayName="Item",qt.propTypes={description:j.string,fullscreen:j.string,handleImageLoaded:j.func.isRequired,isFullscreen:j.bool,onImageError:j.func.isRequired,original:j.string.isRequired,originalAlt:j.string,originalHeight:j.string,originalWidth:j.string,originalTitle:j.string,sizes:j.string,srcSet:j.string,loading:j.string};const uo=qt;function et(d){return et=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},et(d)}function ar(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(E){return Object.getOwnPropertyDescriptor(d,E).enumerable})),p.push.apply(p,b)}return p}function lr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?ar(Object(p),!0).forEach(function(b){ho(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):ar(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function ho(d,a,p){return(a=function(b){var E=function(B,Q){if(et(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,Q);if(et(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return et(E)==="symbol"?E:String(E)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var fo={left:f().createElement("polyline",{points:"15 18 9 12 15 6"}),right:f().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:f().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:f().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:f().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:f().createElement(f().Fragment,null,f().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),f().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},po={strokeWidth:1,viewBox:"0 0 24 24"},cr=function(d){var a=lr(lr({},po),d),p=a.strokeWidth,b=a.viewBox,E=a.icon;return f().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:b,fill:"none",stroke:"currentColor",strokeWidth:p,strokeLinecap:"round",strokeLinejoin:"round"},fo[E])};cr.propTypes={strokeWidth:j.number,viewBox:j.string,icon:(0,j.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const vt=cr;var Vt=f().memo(function(d){var a=d.isFullscreen,p=d.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:p,"aria-label":"Open Fullscreen"},f().createElement(vt,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Vt.displayName="Fullscreen",Vt.propTypes={isFullscreen:j.bool.isRequired,onClick:j.func.isRequired};const mo=Vt;var Gt=f().memo(function(d){var a=d.disabled,p=d.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:a,onClick:p,"aria-label":"Previous Slide"},f().createElement(vt,{icon:"left",viewBox:"6 0 12 24"}))});Gt.displayName="LeftNav",Gt.propTypes={disabled:j.bool.isRequired,onClick:j.func.isRequired};const go=Gt;var Yt=f().memo(function(d){var a=d.disabled,p=d.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:a,onClick:p,"aria-label":"Next Slide"},f().createElement(vt,{icon:"right",viewBox:"6 0 12 24"}))});Yt.displayName="RightNav",Yt.propTypes={disabled:j.bool.isRequired,onClick:j.func.isRequired};const bo=Yt;var Xt=f().memo(function(d){var a=d.isPlaying,p=d.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:p,"aria-label":"Play or Pause Slideshow"},f().createElement(vt,{strokeWidth:2,icon:a?"pause":"play"}))});Xt.displayName="PlayPause",Xt.propTypes={isPlaying:j.bool.isRequired,onClick:j.func.isRequired};const yo=Xt;function tt(d){return tt=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},tt(d)}function Qt(){return Qt=Object.assign?Object.assign.bind():function(d){for(var a=1;a<arguments.length;a++){var p=arguments[a];for(var b in p)Object.prototype.hasOwnProperty.call(p,b)&&(d[b]=p[b])}return d},Qt.apply(this,arguments)}function ur(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(E){return Object.getOwnPropertyDescriptor(d,E).enumerable})),p.push.apply(p,b)}return p}function dr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?ur(Object(p),!0).forEach(function(b){vo(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):ur(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function vo(d,a,p){return(a=function(b){var E=function(B,Q){if(tt(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,Q);if(tt(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return tt(E)==="symbol"?E:String(E)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var xo={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},hr=function(d){var a=dr(dr({},xo),d),p=a.children,b=a.className,E=ao({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return f().createElement("div",Qt({},E,{className:b}),p)};hr.propTypes={children:j.node.isRequired,className:j.string,delta:j.number,onSwiped:j.func,onSwiping:j.func};const fr=hr;function Ye(d){return Ye=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},Ye(d)}function pr(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(E){return Object.getOwnPropertyDescriptor(d,E).enumerable})),p.push.apply(p,b)}return p}function mr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?pr(Object(p),!0).forEach(function(b){gr(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):pr(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function wo(d,a){for(var p=0;p<a.length;p++){var b=a[p];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,br(b.key),b)}}function Jt(d,a){return Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,b){return p.__proto__=b,p},Jt(d,a)}function So(d,a){if(a&&(Ye(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return se(d)}function se(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function xt(d){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},xt(d)}function gr(d,a,p){return(a=br(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}function br(d){var a=function(p,b){if(Ye(p)!=="object"||p===null)return p;var E=p[Symbol.toPrimitive];if(E!==void 0){var B=E.call(p,b);if(Ye(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(d,"string");return Ye(a)==="symbol"?a:String(a)}var yr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],ko=(0,j.arrayOf)((0,j.shape)({srcSet:j.string,media:j.string}));function vr(d){var a=parseInt(d.keyCode||d.which||0,10);return a===66||a===62}var Zt=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&&Jt(c,l)})(Q,d);var a,p,b,E,B=(b=Q,E=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=xt(b);if(E){var y=xt(this).constructor;c=Reflect.construct(l,arguments,y)}else c=l.apply(this,arguments);return So(this,c)});function Q(c){var l;return function(y,C){if(!(y instanceof C))throw new TypeError("Cannot call a class as a function")}(this,Q),gr(se(l=B.call(this,c)),"onBulletClick",function(y,C){var _=l.props,I=_.onBulletClick,q=_.items,U=l.state.currentIndex;y.target.blur(),U!==C&&(q.length===2?l.slideToIndexWithStyleReset(C,y):l.slideToIndex(C,y)),I&&I(y,C)}),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=f().createRef(),l.thumbnailsWrapper=f().createRef(),l.thumbnails=f().createRef(),l.imageGallerySlideWrapper=f().createRef(),l.handleImageLoaded=l.handleImageLoaded.bind(se(l)),l.handleKeyDown=l.handleKeyDown.bind(se(l)),l.handleMouseDown=l.handleMouseDown.bind(se(l)),l.handleResize=l.handleResize.bind(se(l)),l.handleTouchMove=l.handleTouchMove.bind(se(l)),l.handleOnSwiped=l.handleOnSwiped.bind(se(l)),l.handleScreenChange=l.handleScreenChange.bind(se(l)),l.handleSwiping=l.handleSwiping.bind(se(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(se(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(se(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(se(l)),l.handleImageError=l.handleImageError.bind(se(l)),l.pauseOrPlay=l.pauseOrPlay.bind(se(l)),l.renderThumbInner=l.renderThumbInner.bind(se(l)),l.renderItem=l.renderItem.bind(se(l)),l.slideLeft=l.slideLeft.bind(se(l)),l.slideRight=l.slideRight.bind(se(l)),l.toggleFullScreen=l.toggleFullScreen.bind(se(l)),l.togglePlay=l.togglePlay.bind(se(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=ue(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=Q,p=[{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,C=y.items,_=y.lazyLoad,I=y.slideDuration,q=y.slideInterval,U=y.startIndex,G=y.thumbnailPosition,L=y.showThumbnails,D=y.useWindowKeyDown,N=this.state,W=N.currentIndex,Y=N.isPlaying,Z=c.items.length!==C.length,oe=!Ee()(c.items,C),be=c.startIndex!==U,fe=c.thumbnailPosition!==G,de=c.showThumbnails!==L;q===c.slideInterval&&I===c.slideDuration||Y&&(this.pause(),this.play()),fe&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),de&&L&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),de&&!L&&this.removeThumbnailsResizeObserver(),(Z||de)&&this.handleResize(),l.currentIndex!==W&&this.slideThumbnailBar(),c.slideDuration!==I&&(this.slideToIndex=ue(this.unthrottledSlideToIndex,I,{trailing:!1})),!_||c.lazyLoad&&!oe||(this.lazyLoaded=[]),D!==c.useWindowKeyDown&&(D?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(be||oe)&&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,C=l.isTransitioning,_=this.props,I=_.onSlide,q=_.slideDuration;this.transitionTimer=window.setTimeout(function(){C&&(c.setState({isTransitioning:!C,isSwipingThumbnail:!1}),I&&I(y))},q+50)}},{key:"onThumbnailClick",value:function(c,l){var y=this.props,C=y.onThumbnailClick,_=y.items,I=this.state.currentIndex;c.target.parentNode.parentNode.blur(),I!==l&&(_.length===2?this.slideToIndexWithStyleReset(l,c):this.slideToIndex(l,c)),C&&C(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,C=y.disableThumbnailScroll,_=y.items,I=this.state,q=I.thumbnailsWrapperWidth,U=I.thumbnailsWrapperHeight,G=this.thumbnails&&this.thumbnails.current;if(C)return 0;if(G){if(this.isThumbnailVertical()){if(G.scrollHeight<=U)return 0;l=G.scrollHeight-U}else{if(G.scrollWidth<=q||q<=0)return 0;l=G.scrollWidth-q}return c*(l/(_.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,C=y.infinite,_=y.items,I="",q="image-gallery-left",U="image-gallery-right";switch(c){case l-1:I=" ".concat(q);break;case l:I=" ".concat("image-gallery-center");break;case l+1:I=" ".concat(U)}return _.length>=3&&C&&(c===0&&l===_.length-1?I=" ".concat(U):c===_.length-1&&l===0&&(I=" ".concat(q))),I}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,y=l.currentIndex,C=l.currentSlideOffset,_=l.previousIndex,I=y!==_,q=c===0&&_===0,U=c===1&&_===1,G=c===0&&y===1,L=c===1&&y===0,D=C===0,N=-100*y+100*c+C;return C>0?this.direction="left":C<0&&(this.direction="right"),L&&C>0&&(N=-100+C),G&&C<0&&(N=100+C),I?q&&D&&this.direction==="left"?N=100:U&&D&&this.direction==="right"&&(N=-100):(L&&D&&this.direction==="left"&&(N=-100),G&&D&&this.direction==="right"&&(N=100)),N}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(c){var l=this.state,y=l.currentIndex,C=l.currentSlideOffset,_=l.slideStyle,I=this.props,q=I.infinite,U=I.items,G=I.useTranslate3D,L=I.isRTL,D=-100*y,N=U.length-1,W=(D+100*c)*(L?-1:1)+C;q&&U.length>2&&(y===0&&c===N?W=-100*(L?-1:1)+C:y===N&&c===0&&(W=100*(L?-1:1)+C)),q&&U.length===2&&(W=this.getTranslateXForTwoSlide(c));var Y="translate(".concat(W,"%, 0)");return G&&(Y="translate3d(".concat(W,"%, 0, 0)")),mr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:Y,MozTransform:Y,msTransform:Y,OTransform:Y,transform:Y},_)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var c,l=this.props,y=l.useTranslate3D,C=l.isRTL,_=this.state,I=_.thumbsTranslate,q=_.thumbsStyle,U=C?-1*I:I;return this.isThumbnailVertical()?(c="translate(0, ".concat(I,"px)"),y&&(c="translate3d(0, ".concat(I,"px, 0)"))):(c="translate(".concat(U,"px, 0)"),y&&(c="translate3d(".concat(U,"px, 0, 0)"))),mr({WebkitTransform:c,MozTransform:c,msTransform:c,OTransform:c,transform:c},q)}},{key:"getSlideItems",value:function(){var c=this,l=this.state.currentIndex,y=this.props,C=y.items,_=y.slideOnThumbnailOver,I=y.onClick,q=y.lazyLoad,U=y.onTouchMove,G=y.onTouchEnd,L=y.onTouchStart,D=y.onMouseOver,N=y.onMouseLeave,W=y.renderItem,Y=y.renderThumbInner,Z=y.showThumbnails,oe=y.showBullets,be=[],fe=[],de=[];return C.forEach(function(ie,ee){var Re=c.getAlignmentClassName(ee),nt=ie.originalClass?" ".concat(ie.originalClass):"",rt=ie.thumbnailClass?" ".concat(ie.thumbnailClass):"",_e=ie.renderItem||W||c.renderItem,Be=ie.renderThumbInner||Y||c.renderThumbInner,Oe=!q||Re||c.lazyLoaded[ee];Oe&&q&&!c.lazyLoaded[ee]&&(c.lazyLoaded[ee]=!0);var Xe=c.getSlideStyle(ee),it=f().createElement("div",{"aria-label":"Go to Slide ".concat(ee+1),key:"slide-".concat(ee),tabIndex:"-1",className:"image-gallery-slide ".concat(Re," ").concat(nt),style:Xe,onClick:I,onKeyUp:c.handleSlideKeyUp,onTouchMove:U,onTouchEnd:G,onTouchStart:L,onMouseOver:D,onFocus:D,onMouseLeave:N,role:"button"},Oe?_e(ie):f().createElement("div",{style:{height:"100%"}}));if(be.push(it),Z&&ie.thumbnail){var Qe=m("image-gallery-thumbnail",rt,{active:l===ee});fe.push(f().createElement("button",{key:"thumbnail-".concat(ee),type:"button",tabIndex:"0","aria-pressed":l===ee?"true":"false","aria-label":"Go to Slide ".concat(ee+1),className:Qe,onMouseLeave:_?c.onThumbnailMouseLeave:null,onMouseOver:function(ye){return c.handleThumbnailMouseOver(ye,ee)},onFocus:function(ye){return c.handleThumbnailMouseOver(ye,ee)},onKeyUp:function(ye){return c.handleThumbnailKeyUp(ye,ee)},onClick:function(ye){return c.onThumbnailClick(ye,ee)}},Be(ie)))}if(oe){var ot=m("image-gallery-bullet",ie.bulletClass,{active:l===ee});de.push(f().createElement("button",{type:"button",key:"bullet-".concat(ee),className:ot,onClick:function(ye){return c.onBulletClick(ye,ee)},"aria-pressed":l===ee?"true":"false","aria-label":"Go to Slide ".concat(ee+1)}))}}),{slides:be,thumbnails:fe,bullets:de}}},{key:"ignoreIsTransitioning",value:function(){var c=this.props.items,l=this.state,y=l.previousIndex,C=l.currentIndex,_=c.length-1;return Math.abs(y-C)>1&&!(y===0&&C===_)&&!(y===_&&C===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,C=l.previousIndex,_=l.currentIndex;return y&&!(c===C||c===_)}},{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,C=-this.getThumbsTranslate(l);y||(l===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:C,thumbsSwipedTranslate:C}))}},{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,C=c.dir,_=this.props,I=_.disableSwipe,q=_.stopPropagation,U=this.state,G=U.galleryWidth,L=U.isTransitioning,D=U.swipingUpDown,N=U.swipingLeftRight;if(C!==Ve&&C!==Ne&&!D||N){if(C!==qe&&C!==Fe||N||this.setState({swipingLeftRight:!0}),!I){var W=this.props.swipingTransitionDuration;if(q&&l.preventDefault(),L)this.setState({currentSlideOffset:0});else{var Y=C===Fe?1:-1,Z=y/G*100;Math.abs(Z)>=100&&(Z=100);var oe={transition:"transform ".concat(W,"ms ease-out")};this.setState({currentSlideOffset:Y*Z,slideStyle:oe})}}}else D||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,y=c.absX,C=c.absY,_=c.dir,I=this.props,q=I.stopPropagation,U=I.swipingThumbnailTransitionDuration,G=this.state,L=G.thumbsSwipedTranslate,D=G.thumbnailsWrapperHeight,N=G.thumbnailsWrapperWidth,W=G.swipingUpDown,Y=G.swipingLeftRight;if(this.isThumbnailVertical()){if((_===qe||_===Fe||Y)&&!W)return void(Y||this.setState({swipingLeftRight:!0}));_!==Ve&&_!==Ne||W||this.setState({swipingUpDown:!0})}else{if((_===Ve||_===Ne||W)&&!Y)return void(W||this.setState({swipingUpDown:!0}));_!==qe&&_!==Fe||Y||this.setState({swipingLeftRight:!0})}var Z,oe,be,fe,de,ie=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(Z=L+(_===Ne?C:-C),oe=ie.scrollHeight-D+20,be=Math.abs(Z)>oe,fe=Z>20,de=ie.scrollHeight<=D):(Z=L+(_===Fe?y:-y),oe=ie.scrollWidth-N+20,be=Math.abs(Z)>oe,fe=Z>20,de=ie.scrollWidth<=N),!de&&(_!==qe&&_!==Ve||!be)&&(_!==Fe&&_!==Ne||!fe)){q&&l.stopPropagation();var ee={transition:"transform ".concat(U,"ms ease-out")};this.setState({thumbsTranslate:Z,thumbsStyle:ee})}}},{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,C=c.velocity,_=this.props,I=_.disableSwipe,q=_.stopPropagation,U=_.flickThreshold;if(!I){var G=this.props.isRTL;q&&l.stopPropagation(),this.resetSwipingDirection();var L=(y===qe?1:-1)*(G?-1:1),D=C>U&&!(y===Ve||y===Ne);this.handleOnSwipedTo(L,D)}}},{key:"handleOnSwipedTo",value:function(c,l){var y=this.state,C=y.currentIndex,_=y.isTransitioning,I=C;!this.sufficientSwipe()&&!l||_||(I+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(I=C),this.unthrottledSlideToIndex(I)}},{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,C=l.useBrowserFullscreen,_=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:_&&!C&&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 tr(le(function(y){y&&y.forEach(function(C){l.setState({thumbnailsWrapperWidth:C.contentRect.width},l.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(c.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeThumbnailWrapperObserver=new tr(le(function(y){y&&y.forEach(function(C){l.setState({thumbnailsWrapperHeight:C.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,C=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,_=this.imageGallery.current===C;l&&l(_),y&&this.setState({isFullscreen:_})}},{key:"slideToIndex",value:function(c,l){var y=this.state,C=y.currentIndex,_=y.isTransitioning,I=this.props,q=I.items,U=I.slideDuration,G=I.onBeforeSlide;if(!_){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var L=q.length-1,D=c;c<0?D=L:c>L&&(D=0),G&&D!==C&&G(D),this.setState({previousIndex:C,currentIndex:D,isTransitioning:D!==C,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,C=y.currentIndex,_=y.isTransitioning,I=this.props.items,q=C+(l==="left"?-1:1);_||(I.length===2?this.slideToIndexWithStyleReset(q,c):this.slideToIndex(q,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var y=this,C=this.state,_=C.currentIndex,I=C.currentSlideOffset;this.setState({currentSlideOffset:I+(_>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){vr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){vr(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;yr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;yr.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,C=l.slideInterval,_=l.slideDuration,I=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(C,_)),y&&c&&y(I))}},{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 f().createElement(uo,{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 f().createElement("span",{className:"image-gallery-thumbnail-inner"},f().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&&f().createElement("div",{className:"image-gallery-thumbnail-label"},c.thumbnailLabel))}},{key:"render",value:function(){var c=this.state,l=c.currentIndex,y=c.isFullscreen,C=c.modalFullscreen,_=c.isPlaying,I=this.props,q=I.additionalClass,U=I.disableThumbnailSwipe,G=I.indexSeparator,L=I.isRTL,D=I.items,N=I.thumbnailPosition,W=I.renderFullscreenButton,Y=I.renderCustomControls,Z=I.renderLeftNav,oe=I.renderRightNav,be=I.showBullets,fe=I.showFullscreenButton,de=I.showIndex,ie=I.showThumbnails,ee=I.showNav,Re=I.showPlayButton,nt=I.renderPlayPauseButton,rt=this.getThumbnailStyle(),_e=this.getSlideItems(),Be=_e.slides,Oe=_e.thumbnails,Xe=_e.bullets,it=m("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(N),{"image-gallery-rtl":L}),Qe=f().createElement("div",{ref:this.imageGallerySlideWrapper,className:it},Y&&Y(),this.canSlide()?f().createElement(f().Fragment,null,ee&&f().createElement(f().Fragment,null,Z(this.slideLeft,!this.canSlideLeft()),oe(this.slideRight,!this.canSlideRight())),f().createElement(fr,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},f().createElement("div",{className:"image-gallery-slides"},Be))):f().createElement("div",{className:"image-gallery-slides"},Be),Re&&nt(this.togglePlay,_),be&&f().createElement("div",{className:"image-gallery-bullets"},f().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Xe)),fe&&W(this.toggleFullScreen,y),de&&f().createElement("div",{className:"image-gallery-index"},f().createElement("span",{className:"image-gallery-index-current"},l+1),f().createElement("span",{className:"image-gallery-index-separator"},G),f().createElement("span",{className:"image-gallery-index-total"},D.length))),ot=m("image-gallery",q,{"fullscreen-modal":C}),ye=m("image-gallery-content",this.getThumbnailPositionClassName(N),{fullscreen:y}),To=m("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(N),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&L},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!U},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!U});return f().createElement("div",{ref:this.imageGallery,className:ot,"aria-live":"polite"},f().createElement("div",{className:ye},(N==="bottom"||N==="right")&&Qe,ie&&Oe.length>0?f().createElement(fr,{className:To,delta:0,onSwiping:!U&&this.handleThumbnailSwiping,onSwiped:!U&&this.handleOnThumbnailSwiped},f().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},f().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:rt,"aria-label":"Thumbnail Navigation"},Oe))):null,(N==="top"||N==="left")&&Qe))}}],p&&wo(a.prototype,p),Object.defineProperty(a,"prototype",{writable:!1}),Q}(f().Component);Zt.propTypes={flickThreshold:j.number,items:(0,j.arrayOf)((0,j.shape)({bulletClass:j.string,bulletOnClick:j.func,description:j.string,original:j.string,originalHeight:j.number,originalWidth:j.number,loading:j.string,thumbnailHeight:j.number,thumbnailWidth:j.number,thumbnailLoading:j.string,fullscreen:j.string,originalAlt:j.string,originalTitle:j.string,thumbnail:j.string,thumbnailAlt:j.string,thumbnailLabel:j.string,thumbnailTitle:j.string,originalClass:j.string,thumbnailClass:j.string,renderItem:j.func,renderThumbInner:j.func,imageSet:ko,srcSet:j.string,sizes:j.string})).isRequired,showNav:j.bool,autoPlay:j.bool,lazyLoad:j.bool,infinite:j.bool,showIndex:j.bool,showBullets:j.bool,showThumbnails:j.bool,showPlayButton:j.bool,showFullscreenButton:j.bool,disableThumbnailScroll:j.bool,disableKeyDown:j.bool,disableSwipe:j.bool,disableThumbnailSwipe:j.bool,useBrowserFullscreen:j.bool,onErrorImageURL:j.string,indexSeparator:j.string,thumbnailPosition:(0,j.oneOf)(["top","bottom","left","right"]),startIndex:j.number,slideDuration:j.number,slideInterval:j.number,slideOnThumbnailOver:j.bool,swipeThreshold:j.number,swipingTransitionDuration:j.number,swipingThumbnailTransitionDuration:j.number,onSlide:j.func,onBeforeSlide:j.func,onScreenChange:j.func,onPause:j.func,onPlay:j.func,onClick:j.func,onImageLoad:j.func,onImageError:j.func,onTouchMove:j.func,onTouchEnd:j.func,onTouchStart:j.func,onMouseOver:j.func,onMouseLeave:j.func,onBulletClick:j.func,onThumbnailError:j.func,onThumbnailClick:j.func,renderCustomControls:j.func,renderLeftNav:j.func,renderRightNav:j.func,renderPlayPauseButton:j.func,renderFullscreenButton:j.func,renderItem:j.func,renderThumbInner:j.func,stopPropagation:j.bool,additionalClass:j.string,useTranslate3D:j.bool,isRTL:j.bool,useWindowKeyDown:j.bool},Zt.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 f().createElement(go,{onClick:d,disabled:a})},renderRightNav:function(d,a){return f().createElement(bo,{onClick:d,disabled:a})},renderPlayPauseButton:function(d,a){return f().createElement(yo,{onClick:d,isPlaying:a})},renderFullscreenButton:function(d,a){return f().createElement(mo,{onClick:d,isFullscreen:a})},useWindowKeyDown:!0};const jo=Zt})(),u})())})(Ei);var La=Ei.exports;const Da=Co(La);function za(){var e=new Map;function t(n){var r=n.root,i=n.rootMargin,s=n.threshold,u=e.get(r);u||(u=new Map,e.set(r,u));var h=JSON.stringify({rootMargin:i,threshold:s}),m=u.get(h);if(!m){var g=new Map,f=new IntersectionObserver(function(v){v.forEach(function(w){var x=g.get(w.target);x==null||x(w)})},{root:r,rootMargin:i,threshold:s});m={observer:f,entryCallbacks:g},u.set(h,m)}return{observe:function(w,x){var S,k;(S=m)==null||S.entryCallbacks.set(w,x),(k=m)==null||k.observer.observe(w)},unobserve:function(w){var x,S;(x=m)==null||x.entryCallbacks.delete(w),(S=m)==null||S.observer.unobserve(w)}}}return{getObserver:t}}var Fa="0px",Na=[0],Ba=za();function Aa(e){var t,n,r=(t=e==null?void 0:e.rootMargin)!=null?t:Fa,i=(n=e==null?void 0:e.threshold)!=null?n:Na,s=z.useRef(null),u=z.useRef(null),h=z.useRef(null),m=z.useState(),g=m[0],f=m[1],v=z.useCallback(function(){var k=s.current;if(!k){f(void 0);return}var R=Ba.getObserver({root:u.current,rootMargin:r,threshold:i});R.observe(k,function(T){f(T)}),h.current=R},[r,i]),w=z.useCallback(function(){var k=h.current,R=s.current;R&&(k==null||k.unobserve(R)),h.current=null},[]),x=z.useCallback(function(k){w(),s.current=k,v()},[v,w]),S=z.useCallback(function(k){w(),u.current=k,v()},[v,w]);return[x,{entry:g,rootRef:S}]}function Sn(){return Sn=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},Sn.apply(this,arguments)}function Wa(e){var t,n=Aa(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),u=z.useState(s),h=u[0],m=u[1];return s&&!h&&m(!0),[r,Sn({},i,{isVisible:s,wasEverVisible:h})]}var $a=100;function Ka(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,u=e.delayInMs,h=u===void 0?$a:u,m=Wa({rootMargin:i}),g=m[0],f=m[1],v=f.rootRef,w=f.isVisible,x=!s&&!t&&w&&n;return z.useEffect(function(){if(x){var S=setTimeout(function(){r()},h);return function(){clearTimeout(S)}}},[r,x,h]),[g,{rootRef:v}]}const Ua={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"/>'},Ha={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>'};var rn=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function on(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function _i(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 Ri(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 qa(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 An={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,"-":rn?173:189,"=":rn?61:187,";":rn?59:186,"'":222,"[":219,"]":221,"\\":220},De={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},kn={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},he={16:!1,18:!1,17:!1,91:!1},ae={};for(var kt=1;kt<20;kt++)An["f".concat(kt)]=111+kt;var re=[],Wr=!1,Pi="all",Mi=[],$t=function(t){return An[t.toLowerCase()]||De[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Li(e){Pi=e||"all"}function mt(){return Pi||"all"}function Va(){return re.slice(0)}function Ga(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 Ya(e){return typeof e=="string"&&(e=$t(e)),re.indexOf(e)!==-1}function Xa(e,t){var n,r;e||(e=mt());for(var i in ae)if(Object.prototype.hasOwnProperty.call(ae,i))for(n=ae[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;mt()===e&&Li(t||"all")}function Qa(e){var t=e.keyCode||e.which||e.charCode,n=re.indexOf(t);if(n>=0&&re.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&re.splice(0,re.length),(t===93||t===224)&&(t=91),t in he){he[t]=!1;for(var r in De)De[r]===t&&(ve[r]=!1)}}function Ja(e){if(typeof e>"u")Object.keys(ae).forEach(function(u){return delete ae[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&sn(u)});else if(typeof e=="object")e.key&&sn(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=""),sn({key:e,scope:i,method:s,splitKey:"+"})}}var sn=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,u=s===void 0?"+":s,h=Ri(n);h.forEach(function(m){var g=m.split(u),f=g.length,v=g[f-1],w=v==="*"?"*":$t(v);if(ae[w]){r||(r=mt());var x=f>1?_i(De,g):[];ae[w]=ae[w].filter(function(S){var k=i?S.method===i:!0;return!(k&&S.scope===r&&qa(S.mods,x))})}})};function $r(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 he)Object.prototype.hasOwnProperty.call(he,s)&&(!he[s]&&t.mods.indexOf(+s)>-1||he[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!he[16]&&!he[18]&&!he[17]&&!he[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 Kr(e,t){var n=ae["*"],r=e.keyCode||e.which||e.charCode;if(ve.filter.call(this,e)){if((r===93||r===224)&&(r=91),re.indexOf(r)===-1&&r!==229&&re.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var k=kn[S];e[S]&&re.indexOf(k)===-1?re.push(k):!e[S]&&re.indexOf(k)>-1?re.splice(re.indexOf(k),1):S==="metaKey"&&e[S]&&re.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(re=re.slice(re.indexOf(k))))}),r in he){he[r]=!0;for(var i in De)De[i]===r&&(ve[i]=!0);if(!n)return}for(var s in he)Object.prototype.hasOwnProperty.call(he,s)&&(he[s]=e[kn[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(re.indexOf(17)===-1&&re.push(17),re.indexOf(18)===-1&&re.push(18),he[17]=!0,he[18]=!0);var u=mt();if(n)for(var h=0;h<n.length;h++)n[h].scope===u&&(e.type==="keydown"&&n[h].keydown||e.type==="keyup"&&n[h].keyup)&&$r(e,n[h],u,t);if(r in ae){for(var m=0;m<ae[r].length;m++)if((e.type==="keydown"&&ae[r][m].keydown||e.type==="keyup"&&ae[r][m].keyup)&&ae[r][m].key){for(var g=ae[r][m],f=g.splitKey,v=g.key.split(f),w=[],x=0;x<v.length;x++)w.push($t(v[x]));w.sort().join("")===re.sort().join("")&&$r(e,g,u,t)}}}}function Za(e){return Mi.indexOf(e)>-1}function ve(e,t,n){re=[];var r=Ri(e),i=[],s="all",u=document,h=0,m=!1,g=!0,f="+",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&&(u=t.element),t.keyup&&(m=t.keyup),t.keydown!==void 0&&(g=t.keydown),t.capture!==void 0&&(v=t.capture),typeof t.splitKey=="string"&&(f=t.splitKey)),typeof t=="string"&&(s=t);h<r.length;h++)e=r[h].split(f),i=[],e.length>1&&(i=_i(De,e)),e=e[e.length-1],e=e==="*"?"*":$t(e),e in ae||(ae[e]=[]),ae[e].push({keyup:m,keydown:g,scope:s,mods:i,shortcut:r[h],method:n,key:r[h],splitKey:f,element:u});typeof u<"u"&&!Za(u)&&window&&(Mi.push(u),on(u,"keydown",function(w){Kr(w,u)},v),Wr||(Wr=!0,on(window,"focus",function(){re=[]},v)),on(u,"keyup",function(w){Kr(w,u),Qa(w)},v))}function el(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ae).forEach(function(n){var r=ae[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var an={setScope:Li,getScope:mt,deleteScope:Xa,getPressedKeyCodes:Va,isPressed:Ya,filter:Ga,trigger:el,unbind:Ja,keyMap:An,modifier:De,modifierMap:kn};for(var ln in an)Object.prototype.hasOwnProperty.call(an,ln)&&(ve[ln]=an[ln]);if(typeof window<"u"){var tl=window.hotkeys;ve.noConflict=function(e){return e&&window.hotkeys===ve&&(window.hotkeys=tl),ve},window.hotkeys=ve}ve.filter=function(){return!0};var Di=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},nl=function(t){return Di(t,["INPUT","TEXTAREA","SELECT"])};function rl(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,u=i.filter,h=i.keyup,m=i.keydown,g=i.filterPreventDefault,f=g===void 0?!0:g,v=i.enabled,w=v===void 0?!0:v,x=i.enableOnContentEditable,S=x===void 0?!1:x,k=z.useRef(null),R=z.useCallback(function(T,O){var P,A;return u&&!u(T)?!f:nl(T)&&!Di(T,s)||(P=T.target)!=null&&P.isContentEditable&&!S?!0:k.current===null||document.activeElement===k.current||(A=k.current)!=null&&A.contains(document.activeElement)?(t(T,O),!0):!1},r?[k,s,u].concat(r):[k,s,u]);return z.useEffect(function(){if(!w){ve.unbind(e,R);return}return h&&m!==!0&&(n.keydown=!1),ve(e,n||{},R),function(){return ve.unbind(e,R)}},[R,e,w]),k}ve.isPressed;const zi=z.createContext({open:!1,toggleOpen:e=>{}});function il({children:e}){const[t,n]=z.useState(!1),r=s=>{n(s??!s)},i=z.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx(zi.Provider,{value:i,children:e})}function Wn(){return z.useContext(zi)}const we={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},ol=e=>Bt(async()=>{const{data:t}=await e.get(we.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function sl(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...Po(e,["sortBy","sortDirection","showResources"])}:{sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:r,onSearchSelect:i=h=>{t.onFilterChange({...n,keyword:h.title})},emptyCategory:s}=t;!n.category&&!s&&(n.category="All");const u=h=>{const m={...n,...h};r(en(m,g=>g===""||g===void 0))};return{filters:e,cleanFilter:h=>{const m=h?en(n,(g,f)=>h.includes(f)):{};r(en(m,g=>g===""||g===void 0))},handleActiveMenu:h=>{h!==e.menu&&r({menu:h})},handleSort:(h,m)=>{u({sortBy:h,sortDirection:m||h==="nameAsc"?"asc":"desc"})},handleKeyword:h=>{u({category:void 0,keyword:h||void 0})},handlePrice:h=>{u({price:h===e.price?void 0:h})},handleCategory:h=>{u({category:h===e.category?"":h})},handleDeveloper:h=>{u({owner:h||void 0})},handlePage:h=>{u({currentPage:h})},handleSwitchShowResources:h=>{u({showResources:h})},handleSearchSelect:h=>{i(h)}}}const al=(e,t,n)=>e&&t||!n,Fi=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Ni=(e,t,n)=>{var r,i;const s=zo(e),u=Fo(s.search);if((r=No(e,{strict:!0}))!=null&&r.endsWith(".gif"))return u.imageFilter?Bo({...s,search:""}):e;if(u.imageFilter)return e;const h=n||((i=window.blocklet)==null?void 0:i.version),{w:m,h:g}=typeof t=="object"?{w:t.w,h:t.h}:{w:t,h:t};return En(e,{...m||g?{imageFilter:"resize",w:m,h:g}:{},v:h})},ll=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],cl=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),ul=e=>{var t,n;return Array.isArray(e)?e.map(r=>r.message).join(`
2
2
  `):(n=(t=e.response)==null?void 0:t.data)!=null&&n.error?e.response.data.error.message||e.response.data.error:e.message||e},dl=(e,t)=>e==null?void 0:e.replace(/{(\w*)}/g,(n,r)=>t.hasOwnProperty(r)?t[r]:""),hl=()=>window.innerWidth<=600,fl={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}"'}},pl={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}” 的所有搜索结果"}},cn={en:Sr(fl),zh:Sr(pl)},Bi=(e,t)=>{const n={};return e&&(n["x-blocklet-server-version"]=e),t&&(n["x-blocklet-store-version"]=t),n},ml=e=>(t,n)=>{const r=cn[e]?cn[e][t]:cn.en[t];return dl(r,n)||t},Ai={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=z.createContext(Ai),{Provider:gl,Consumer:Ic}=Wi;function bl(e){const{locale:t="zh",filters:n={},serverVersion:r="",onFilterChange:i=()=>{},minItemWidth:s=350,queryFilter:u=!0,layout:h={},wrapChildren:m=ue=>ue,extraFilter:g=ue=>ue,baseSearch:f=!1,fetchCategoryDelay:v=0,showResourcesSwitch:w=!1,showCategory:x=!0,tagFilters:S=[],children:k,storeVersion:R,onSearchSelect:T=()=>{},endpoint:O,blockletRender:P,compact:A=!1}=e,X=Bi(r,R),H=z.useMemo(()=>Qr({baseURL:O,headers:X}),[O]),$=sl(n,{onFilterChange:i,emptyCategory:!h.showExplore,onSearchSelect:T}),[te,ce]=z.useState(""),{data:K=[],error:Ie,loading:Se,run:je}=ol(H),ge=z.useMemo(()=>{const ue=fs(K,[Ee=>Ee.name],["asc"]),Te=ue.findIndex(Ee=>Ee.name==="All"||Ee.locales.en==="All");return Te>-1?[{...ue[Te],_id:"All"},...ue.slice(0,Te),...ue.slice(Te+1)]:ue},[K]),ke=z.useCallback(ml(t),[t]),F=z.useMemo(()=>cl(ge,t),[ge,t]),ne=ll(ke),le={search:$,compact:A,errors:{fetchCategoriesError:Ie},loadings:{fetchCategoriesLoading:Se},extraFilter:g,endpoint:O,queryFilter:u,layout:{showExplore:h.showExplore??!1,showCategory:h.showCategory??!0,showTitle:h.showTitle??!0,showSearch:h.showSearch??!0},minItemWidth:s,wrapChildren:m,t:ke,storeVersion:R,serverVersion:r,selectedCategory:$.filters.category||(h.showExplore?"":"All"),categoryList:ge,blockletRender:P,locale:t,categoryOptions:F,priceOptions:ne,storeApi:H,baseSearch:f,showResourcesSwitch:w,showCategory:x,tagFilters:S,onFilterChange:i,getCategoryLocale:ue=>{if(!ue)return null;const Te=K.find(Ee=>Ee._id===ue||Ee.locales.en==="All");return Te?Te.locales[t]||Te.locales.en:null},get developerName(){return te},updateDeveloperName:ce};return z.useEffect(()=>{setTimeout(je,v||0)},[O,je,v]),o.jsx(gl,{value:le,children:k})}function me(){return z.useContext(Wi)||Ai}function $i({children:e,onClick:t,size:n=32,...r}){return o.jsx(xe,{...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 jt(e,t){return e===void 0?t:e}function $n({xs:e,sm:t,md:n,lg:r,xl:i,exact:s}){const u=Ke(),h=Je(u.breakpoints.down("sm")),m=Je(u.breakpoints.between("sm","md")),g=Je(u.breakpoints.between("md","lg")),f=Je(u.breakpoints.between("lg","xl"));if(s)return h?e||null:m?t||null:g?n||null:f?r||null:i||null;let v=e;return h||(v=jt(t,v),m)||(v=jt(n,v),g)||(v=jt(r,v),f)?v:jt(i,v)}function yl({children:e}){const{open:t,toggleOpen:n}=Wn();return o.jsx($n,{xs:o.jsx(Lo,{open:t,onClose:()=>n(!1),children:e}),md:o.jsx(V,{children:e})})}const vl=z.forwardRef(({loading:e,disabled:t,...n},r)=>o.jsx(xe,{ref:r,disableElevation:!0,disabled:t||e,...n,sx:[{borderRadius:"4px"},...Array.isArray(n.sx)?n.sx:[n.sx]],startIcon:e&&o.jsx(Ce,{size:"1em"})}));function jn({value:e,options:t,onChange:n,placeholder:r,...i}){var s;const u=z.useRef(null),h=Ke(),[m,g]=z.useState(!1),[f,v]=z.useState(e!==null?e:""),w=Je(h.breakpoints.down("sm"));z.useEffect(()=>{v(e!==null?e:"")},[e]);const x=z.useCallback(()=>{g(!1)},[]),S=z.useCallback(()=>{g(!0)},[]);function k(T){v(T.value),n(T.value),w&&x()}function R(T){return T===f}return o.jsxs(o.Fragment,{children:[o.jsxs(xl,{ref:u,onClick:S,variant:"outlined",size:"medium",className:["my-select__selector",Ao(f)?"":"my-select__selector--active"].join(" "),sx:{minWidth:{xs:"100px",md:"auto"},color:"text.primary",borderRadius:"8px"},...i,children:[((s=t.find(T=>T.value===f))==null?void 0:s.name)||r,o.jsx(Wo,{className:"my-select__arrowdown",component:Ci,sx:{width:18,height:18}})]}),o.jsx($o,{open:m,anchorEl:u.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:T,placement:O})=>o.jsx(Ko,{...T,style:{transformOrigin:O==="bottom"?"center top":"center bottom"},children:o.jsx(Uo,{children:o.jsx(Ho,{onClickAway:x,children:o.jsx(wl,{autoFocusItem:m,onMouseEnter:S,onMouseLeave:x,children:t.map(P=>o.jsxs(Rt,{onClick:()=>k(P),sx:{fontSize:14},children:[o.jsx(qo,{sx:{mr:1,fontSize:16,visibility:R(P.value)?"visible":"hidden"}}),P.name]},P.value))})})})})})]})}const xl=ze(vl)`
3
3
  border: 1px solid #f0f0f0;
4
4
  padding: 6px 8px 6px 12px;