@abtnode/webapp 1.16.45-beta-20250609-082716-b6b0592b → 1.16.45-beta-20250609-111118-0d252ebe
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.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-BPnL086D.js → AdapterDayjs-BqwbfR-J.js} +1 -1
- package/dist/assets/{Add-BaepTMyl.js → Add-CSGWebd7.js} +1 -1
- package/dist/assets/{ArrowDropDown-CJZPcYMj.js → ArrowDropDown-BCCxOUNE.js} +1 -1
- package/dist/assets/{Autocomplete-BzsxfAhs.js → Autocomplete-BRFoT1-d.js} +1 -1
- package/dist/assets/{Breadcrumbs-bCGgNRxZ.js → Breadcrumbs-B-xYTnoc.js} +1 -1
- package/dist/assets/{ButtonGroup-jLU91Eto.js → ButtonGroup-ClVwTb7r.js} +1 -1
- package/dist/assets/{CSSTransition-CEYSDYhf.js → CSSTransition-DpoNbm4c.js} +1 -1
- package/dist/assets/{CallMerge-BmooQIj9.js → CallMerge-weq4zXp-.js} +1 -1
- package/dist/assets/{CardContent-DztUyw0g.js → CardContent-CTAfwoUe.js} +1 -1
- package/dist/assets/{ChevronLeft-DxCtjh6K.js → ChevronLeft-DQK-aqqz.js} +1 -1
- package/dist/assets/{ChevronRight-BJDD27JD.js → ChevronRight-BtkdX9A9.js} +1 -1
- package/dist/assets/{Clear-BxwDIGi1.js → Clear-D0I7uWhD.js} +1 -1
- package/dist/assets/{Close-C9dxdyWh.js → Close-6CxneLlA.js} +1 -1
- package/dist/assets/{Community-BM20-8dz.js → Community-v2_SoLAO.js} +1 -1
- package/dist/assets/{Delete-DKeOWzoo.js → Delete-P4B2dduO.js} +1 -1
- package/dist/assets/{DeleteOutline-BKxhOLzM.js → DeleteOutline-EQ9bHspP.js} +1 -1
- package/dist/assets/{Done-BSxV_Z_N.js → Done-2EsU1aO2.js} +1 -1
- package/dist/assets/{Edit-CcJpZVnD.js → Edit-frf3Fbx4.js} +1 -1
- package/dist/assets/{ErrorOutline-Cpcgvmsb.js → ErrorOutline-a1DnwqoR.js} +1 -1
- package/dist/assets/{HelpOutline-DddyHTiw.js → HelpOutline-CBv7x3VM.js} +1 -1
- package/dist/assets/{Holiday-Bqv7Z2Nl.js → Holiday-CM3JD4xm.js} +1 -1
- package/dist/assets/{Launch-W68EZl8H.js → Launch-B7fv6nTK.js} +1 -1
- package/dist/assets/{Link-CI9SWqj5.js → Link-CiUEO3cQ.js} +1 -1
- package/dist/assets/{ListItemButton-Cz3h14We.js → ListItemButton-ByIRcZGW.js} +1 -1
- package/dist/assets/{ListSubheader-B1Gs-Di0.js → ListSubheader-Yn3XMnVm.js} +1 -1
- package/dist/assets/{LoadingButton-DAtzlWSB.js → LoadingButton-B3es9INs.js} +1 -1
- package/dist/assets/{LockIcon-B5Cu6iVD.js → LockIcon-C1gL9Uz4.js} +1 -1
- package/dist/assets/{Meeting-CdElUcfA.js → Meeting-BkxfSXYG.js} +1 -1
- package/dist/assets/{MoreHoriz-DAVefXBs.js → MoreHoriz-3d6Yp_t-.js} +1 -1
- package/dist/assets/{MoreVert-DqeE3_Hd.js → MoreVert-C_Ck3fn9.js} +1 -1
- package/dist/assets/{OffSick-BBRqxJJu.js → OffSick-Z9k6qoex.js} +1 -1
- package/dist/assets/{OpenInNew-2bjbGYSq.js → OpenInNew-D79h4Iot.js} +1 -1
- package/dist/assets/{Public-BTdEMtHi.js → Public-BtS6bdiD.js} +1 -1
- package/dist/assets/{Refresh-C0Iz2zZt.js → Refresh-C1kA8imS.js} +1 -1
- package/dist/assets/{SchemaReference.es-oSyd1It7.js → SchemaReference.es-Dfqhb0uS.js} +1 -1
- package/dist/assets/{Search-DBiDYaX1.js → Search-CUm1f8xo.js} +1 -1
- package/dist/assets/{Slider-BjpE1rv2.js → Slider-B0hY7ZYB.js} +1 -1
- package/dist/assets/{Stepper-B-l2XYXD.js → Stepper-CEe-v4P_.js} +1 -1
- package/dist/assets/{Switch-DSS8JChR.js → Switch-D3iZUzda.js} +1 -1
- package/dist/assets/{TableRow-DQuCW6hn.js → TableRow-CQ8RBtid.js} +1 -1
- package/dist/assets/{TableSearch-C6AKfDSr.js → TableSearch-Uk9kIt7i.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-CnUjfOWR.js → ToggleButtonGroup-BrZT8OFC.js} +1 -1
- package/dist/assets/{Verified-ZTqRecOi.js → Verified-DjfvSM3n.js} +1 -1
- package/dist/assets/{VerifiedUser-TTfmWq7J.js → VerifiedUser-CGB9pAg5.js} +1 -1
- package/dist/assets/{ViewColumn-BCvqBjPt.js → ViewColumn-CcQluqhl.js} +1 -1
- package/dist/assets/{ViewList-CW3TCfoq.js → ViewList-CPkfx4gI.js} +1 -1
- package/dist/assets/{WorkingRemotely-Cxxbbwm6.js → WorkingRemotely-BMx519Rn.js} +1 -1
- package/dist/assets/{_createAggregator-CPkIJJuD.js → _createAggregator-Dp2y-Mf_.js} +1 -1
- package/dist/assets/{actions-C42Q30RQ.js → actions-C8ldDfDc.js} +1 -1
- package/dist/assets/{actions-B5wmKEDC.js → actions-CvZtuIOm.js} +1 -1
- package/dist/assets/{agreement-Jdo-zY9j.js → agreement-4TUvZhY3.js} +1 -1
- package/dist/assets/api-gAVz4YtD.js +1 -0
- package/dist/assets/{appearance-BRCCw1u2.js → appearance-CztLZ35g.js} +1 -1
- package/dist/assets/{audit-logs-BJqbSAPC.js → audit-logs-vnwtSLPp.js} +1 -1
- package/dist/assets/{base-chart-B2gmFhRJ.js → base-chart-tXWghrta.js} +1 -1
- package/dist/assets/{blocklet-DiZeBiJN.js → blocklet-SKmr21o8.js} +1 -1
- package/dist/assets/{brace-fold.es-DxbrOmhK.js → brace-fold.es-C8hYDu8C.js} +1 -1
- package/dist/assets/{chain-D7X2-qfm.js → chain-Cw3CxpIJ.js} +1 -1
- package/dist/assets/{click-to-copy-CgzyQB5V.js → click-to-copy-BBcwV5Sv.js} +1 -1
- package/dist/assets/cloneDeep-CP0xacDT.js +1 -0
- package/dist/assets/{closebrackets.es-Bg15eLC-.js → closebrackets.es-n7j2YaKC.js} +1 -1
- package/dist/assets/{codemirror.es-CO1Dk0p2.js → codemirror.es-q3z3D3fp.js} +1 -1
- package/dist/assets/{collapse-Xins5ZhF.js → collapse-Cy01Qhtt.js} +1 -1
- package/dist/assets/{comment.es-3KCDqSac.js → comment.es-CZaW3Zjc.js} +1 -1
- package/dist/assets/{config-navigation-BjQhnuHo.js → config-navigation-B4iEyuxN.js} +3 -3
- package/dist/assets/{connect-to-CJ05ah0j.js → connect-to-BbdcjX_x.js} +1 -1
- package/dist/assets/{delete-confirm-CCMGtPBw.js → delete-confirm-qy4uClf5.js} +1 -1
- package/dist/assets/{detail-KJCoxUAd.js → detail-C_SIxTEY.js} +3 -3
- package/dist/assets/{dialog.es-CE99qOYk.js → dialog.es-BEBI39yG.js} +1 -1
- package/dist/assets/{domains-DvL3Ga1O.js → domains-Bql4UA4y.js} +1 -1
- package/dist/assets/{download-ClJJWg3s.js → download-DdDp7qNF.js} +1 -1
- package/dist/assets/emotion-react.browser.esm--gIypTeg.js +1 -0
- package/dist/assets/{foldgutter.es-CiZmTrO7.js → foldgutter.es-XJVlfA9j.js} +1 -1
- package/dist/assets/{get-safe-url-DO00hPju.js → get-safe-url-BHhOK-87.js} +1 -1
- package/dist/assets/{get-safe-url-aH9mMJx2.js → get-safe-url-ZQAisLez.js} +1 -1
- package/dist/assets/getValidReactChildren-B-b9MOMT.js +1 -0
- package/dist/assets/{hint.es-Bo36zzhX.js → hint.es-BXYnqh_9.js} +1 -1
- package/dist/assets/{hint.es2-CAOXzXaR.js → hint.es2-mCmWTcSI.js} +1 -1
- package/dist/assets/{iframe-BnX2-HMD.js → iframe-CVde2I2R.js} +1 -1
- package/dist/assets/{index-Dmp8rYJ8.js → index-B37Lr7Hg.js} +1 -1
- package/dist/assets/{index-D9iEwrbX.js → index-B6YLm2gY.js} +1 -1
- package/dist/assets/{index-ClrIfUmS.js → index-B6gCUDLy.js} +1 -1
- package/dist/assets/{index-CrF1a2RT.js → index-BDHvuJA-.js} +5 -5
- package/dist/assets/{index-BCxIgLgQ.js → index-BILcrV-b.js} +1 -1
- package/dist/assets/{index-D3KU0pJA.js → index-BKpBz5IS.js} +1 -1
- package/dist/assets/{index-D732T1aT.js → index-BLrsx8oH.js} +1 -1
- package/dist/assets/{index-wTEUfJK4.js → index-BQOOINkR.js} +1 -1
- package/dist/assets/{index-9XYQmK_k.js → index-BUWOtFDP.js} +1 -1
- package/dist/assets/{index-Boy3iHgk.js → index-BWpZKV7G.js} +3 -3
- package/dist/assets/{index-BlgBrilI.js → index-BkStkax6.js} +1 -1
- package/dist/assets/{index-SykBhSuA.js → index-Boprg64p.js} +1 -1
- package/dist/assets/{index-mGiaMB4m.js → index-BublfAf3.js} +1 -1
- package/dist/assets/{index-Dj_QnghX.js → index-C-QDjEC-.js} +1 -1
- package/dist/assets/{index-DMyI2aU2.js → index-C562LNdR.js} +1 -1
- package/dist/assets/{index-Brzpmake.js → index-CCGiAGPb.js} +1 -1
- package/dist/assets/{index-DpBmopYo.js → index-CEr4LN-P.js} +1 -1
- package/dist/assets/{index-Dow64Z2x.js → index-CFc2cpAq.js} +1 -1
- package/dist/assets/{index-Z5lc5lIc.js → index-CIeEDIRZ.js} +1 -1
- package/dist/assets/{index-DKyf9Yqh.js → index-CPBAco4X.js} +1 -1
- package/dist/assets/{index-CG3kAlcB.js → index-CViyZjZs.js} +1 -1
- package/dist/assets/{index-C5r6y0B-.js → index-CZplOWEN.js} +1 -1
- package/dist/assets/{index-BuMTt7NP.js → index-C_5on_zt.js} +1 -1
- package/dist/assets/{index-CxMh-z_6.js → index-ChSMfUDl.js} +1 -1
- package/dist/assets/{index-BhhOQuUW.js → index-Cm6VrPFr.js} +1 -1
- package/dist/assets/{index-30VVCODr.js → index-CyCivdc5.js} +1 -1
- package/dist/assets/{index-BbtEo9r9.js → index-D3OlVE0m.js} +1 -1
- package/dist/assets/{index-t7cKmyc5.js → index-DM5TK3mI.js} +1 -1
- package/dist/assets/{index-jI8Y9wpJ.js → index-DNFAdenj.js} +1 -1
- package/dist/assets/{index-Zm-WNook.js → index-DRvnuna9.js} +1 -1
- package/dist/assets/{index-BOLfvqKF.js → index-DTb1YjkO.js} +8 -8
- package/dist/assets/{index-DtapEWSR.js → index-DTnnZgV3.js} +1 -1
- package/dist/assets/{index-De4MlLgJ.js → index-DVT--CtL.js} +3 -3
- package/dist/assets/{index-CUOESLiC.js → index-DdAt9jDT.js} +1 -1
- package/dist/assets/{index-zlu_iF9b.js → index-Dg-nEXIR.js} +1 -1
- package/dist/assets/{index-xMJ_lTjJ.js → index-DnLtwT4P.js} +1 -1
- package/dist/assets/{index-HJyYrv5X.js → index-DrBxStif.js} +1 -1
- package/dist/assets/{index-BmtiSq2M.js → index-Ds-ruyy-.js} +1 -1
- package/dist/assets/{index-CEJX705l.js → index-DsdaIM1E.js} +1 -1
- package/dist/assets/{index-BCGKopWm.js → index-DzK6OW-H.js} +1 -1
- package/dist/assets/{index-Dt9pZ2YF.js → index-DzWDWvao.js} +1 -1
- package/dist/assets/{index-DI_gxPWq.js → index-DzcmC4If.js} +3 -3
- package/dist/assets/{index-wqaqDly9.js → index-omP-_XYV.js} +1 -1
- package/dist/assets/{index-BoMTtsmm.js → index-ooFvSbXR.js} +1 -1
- package/dist/assets/index-s1CQJTjJ.js +1 -0
- package/dist/assets/{index-IW9KB94O.js → index-uw3m84Z2.js} +1 -1
- package/dist/assets/{index-DSvMfxSw.js → index-wKRUqEyT.js} +1 -1
- package/dist/assets/{index.esm-Bn-iehLo.js → index.esm-CB-7UGfI.js} +1 -1
- package/dist/assets/{info-addon.es-GUHgmi5n.js → info-addon.es-DKtNhOCh.js} +1 -1
- package/dist/assets/{info.es-Blua3wzj.js → info.es-B7YFO8O9.js} +1 -1
- package/dist/assets/{install-from-url-CE66dEAo.js → install-from-url-B9F0r0Uk.js} +1 -1
- package/dist/assets/{invitation-DurHrtHf.js → invitation-BAovnHWT.js} +1 -1
- package/dist/assets/is-path-prefix-equal-C80Jhu_q.js +1 -0
- package/dist/assets/{item-DKqObQ3Z.js → item-CrnjScjy.js} +1 -1
- package/dist/assets/{javascript.es-BH1wlBZU.js → javascript.es-e4wfmIpw.js} +1 -1
- package/dist/assets/{jump-to-line.es-Bc8f2sko.js → jump-to-line.es-D1zAOCng.js} +1 -1
- package/dist/assets/{jump.es-DchNv69N.js → jump.es-CR1apnMt.js} +1 -1
- package/dist/assets/{lint.es-DjIO9EP-.js → lint.es-po0cvpDF.js} +1 -1
- package/dist/assets/{lint.es2-D6QiK1LN.js → lint.es2-CIRlGKEU.js} +1 -1
- package/dist/assets/{lint.es3-1Hh074BZ.js → lint.es3-CC5QXby4.js} +1 -1
- package/dist/assets/{list-header-D5vsRPp7.js → list-header-D5Klosqn.js} +1 -1
- package/dist/assets/{log-LbP8IGNT.js → log-DvWjHRjx.js} +1 -1
- package/dist/assets/{lottie-react.esm-vLYu8hjp.js → lottie-react.esm-CzS4D97g.js} +1 -1
- package/dist/assets/{matchbrackets.es-2wYFPv6E.js → matchbrackets.es-Bh__cUPA.js} +1 -1
- package/dist/assets/{memory-CiKqWgj7.js → memory-VuyFpRX6.js} +1 -1
- package/dist/assets/{metric-BDJmu11E.js → metric-sJIuzFdD.js} +1 -1
- package/dist/assets/{mode.es-BqW6_fGr.js → mode.es-b4PvmWPj.js} +1 -1
- package/dist/assets/{mode.es2-D8SKatMd.js → mode.es2-B8UlLCtX.js} +1 -1
- package/dist/assets/{mode.es3-CNkkrM-6.js → mode.es3-CQ9X5NiW.js} +1 -1
- package/dist/assets/omit-BEDWXxvr.js +1 -0
- package/dist/assets/{onlineParser.es-oUEApoDN.js → onlineParser.es-mNPHWPcl.js} +1 -1
- package/dist/assets/{overview-CruS8RZC.js → overview-DptGQrLC.js} +1 -1
- package/dist/assets/{permission-BQtaoI3I.js → permission-DtbkcHFU.js} +1 -1
- package/dist/assets/{preference-DJFG2uH3.js → preference-BIxg48qT.js} +3 -3
- package/dist/assets/{raf-schd.esm-CJK5XRZT.js → raf-schd.esm-CyR0PsG3.js} +1 -1
- package/dist/assets/refType-J5vgZzDX.js +1 -0
- package/dist/assets/{resource-dialog-CO7CVlvn.js → resource-dialog-DSlsEDCi.js} +4 -4
- package/dist/assets/{runtime-DYumryGg.js → runtime-BqyrQzUD.js} +1 -1
- package/dist/assets/{schema--5oUwlB4.js → schema-BD6PrmCO.js} +1 -1
- package/dist/assets/sdk-gxKU3x6m.js +1 -0
- package/dist/assets/{search.es-BNWiVNZg.js → search.es-BjwGHA7G.js} +1 -1
- package/dist/assets/{searchcursor.es-31Y56HAZ.js → searchcursor.es-CbJCToER.js} +1 -1
- package/dist/assets/{service-DQkMTtxe.js → service-BV2uNns2.js} +1 -1
- package/dist/assets/{shorten-label-D74t0ifG.js → shorten-label-BOckTQ1X.js} +1 -1
- package/dist/assets/{show-hint.es-FtZ2uk9e.js → show-hint.es-q9IMwctI.js} +1 -1
- package/dist/assets/{simple-select-BdDQTMpn.js → simple-select-Dtd0a5G_.js} +1 -1
- package/dist/assets/{spaces-BgnAkcnA.js → spaces-Bqb0c1IC.js} +1 -1
- package/dist/assets/{status-q1EdEhzw.js → status-CoaEXqC8.js} +1 -1
- package/dist/assets/{status-BfSQdY5K.js → status-DAsfcIss.js} +1 -1
- package/dist/assets/{sublime.es-CxJ3H0tj.js → sublime.es-Di_Rzzft.js} +1 -1
- package/dist/assets/{switch-control-DwgD_U7I.js → switch-control-uwHD90eP.js} +1 -1
- package/dist/assets/{table-icons--5A28zgV.js → table-icons-CMF2B4vQ.js} +1 -1
- package/dist/assets/{team-RnJISF0L.js → team-DbBAK1Lw.js} +1 -1
- package/dist/assets/{toLower-RHUaQlXh.js → toLower-Bk4Y66nU.js} +1 -1
- package/dist/assets/toUpper-FI4Si1KF.js +1 -0
- package/dist/assets/{traffic-DmNfI0bT.js → traffic-C8Jrp6CL.js} +1 -1
- package/dist/assets/{url-evaluation-DiN5Q08e.js → url-evaluation-DQ262LSg.js} +1 -1
- package/dist/assets/{url-join-BIMdRB8V.js → url-join-IGglLOtK.js} +1 -1
- package/dist/assets/{use-mobile-utJ7FsR-.js → use-mobile-BoYyduuc.js} +1 -1
- package/dist/assets/{use-mobile-woqAnkRI.js → use-mobile-YvhVWxe8.js} +1 -1
- package/dist/assets/{useAsync-BX9-9evM.js → useAsync-DbB0tJq1.js} +1 -1
- package/dist/assets/{useAsyncRetry-5y7_186e.js → useAsyncRetry-BLg3v7lI.js} +1 -1
- package/dist/assets/{useLocalStorage-DPYKzz1_.js → useLocalStorage-DQZ59j66.js} +1 -1
- package/dist/assets/{useThemeProps-DJJZjixl.js → useThemeProps-CtXzBlYo.js} +1 -1
- package/dist/assets/{util-DvYZzgdN.js → util-CUC0Xf5B.js} +1 -1
- package/dist/assets/{wait-container-JJXJ3aE4.js → wait-container-GoGxY2Kf.js} +1 -1
- package/dist/assets/{withStyles-zmjsbKsz.js → withStyles-_FcG1bkA.js} +1 -1
- package/dist/assets/{wrap-locale-mYykcBLv.js → wrap-locale-B35eVgy7.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/api-DJB2B_-t.js +0 -1
- package/dist/assets/cloneDeep-inGyOGD4.js +0 -1
- package/dist/assets/emotion-react.browser.esm-BnQsp-2e.js +0 -1
- package/dist/assets/getValidReactChildren-D_5CTSB1.js +0 -1
- package/dist/assets/index-0cx2L09O.js +0 -1
- package/dist/assets/is-path-prefix-equal-CYEALK7U.js +0 -1
- package/dist/assets/omit-BiJoS85k.js +0 -1
- package/dist/assets/refType-C2bDqONV.js +0 -1
- package/dist/assets/sdk-DuEQLs4j.js +0 -1
- package/dist/assets/toUpper-DMGZM86u.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c5 as De,r as L,ct as St,fK as Or,be as Ro,bf as Po,cU as Et,fL as et,cu as ft,fM as Mo,fN as Lo,b_ as Cr,a6 as Kt,bY as ut,dg as Do,c3 as Er,j as o,bh as Fe,aP as Ut,aQ as qt,d8 as dt,bl as zo,d0 as Ir,ep as Oe,C as Pe,dq as Ae,K as G,al as Ue,dH as Fo,a3 as No,dU as Ao,fO as oi,fk as si,fP as ai,fQ as Mn,aD as Wo,aE as Ln,aZ as xe,fR as Bo,fS as an,k as Z,fT as $o,E as tt,fU as Ho,aY as li,U as ci,cH as Dn,dx as ze,av as Nt,G as _r,ej as Rr,aT as Ko,cJ as Uo,fV as qo,fW as Vo,fX as Go,M as Yo,cI as Xo,fl as Qo,eC as Jo,eb as Zo,bx as es,Q as At,$ as ts,fY as ui,fZ as ns,t as di,a2 as nt,f_ as Pr,f$ as rs,P as M,m as qe,aB as zn,aS as Mr,eV as hi,b6 as is,aH as It,B as Wt,a8 as os,a9 as fi,aI as ss,g0 as Lr,aa as as,bq as Fn,D as ls,s as cs,V as us,cP as ds,X as pt,A as Nn,y as He,b as hs,o as fs,b3 as ps,ae as ms,cz as gs,W as bs}from"./index-BOLfvqKF.js";import{d as ys}from"./ChevronLeft-DxCtjh6K.js";import{d as vs}from"./ChevronRight-BJDD27JD.js";import{d as Dt}from"./Search-DBiDYaX1.js";import{E as xs}from"./index-wqaqDly9.js";import{o as ws,u as Ss}from"./blocklet-DiZeBiJN.js";import{A as ks}from"./Autocomplete-BzsxfAhs.js";import{d as js}from"./Verified-ZTqRecOi.js";import{d as Ts,a as Os}from"./VerifiedUser-TTfmWq7J.js";import{d as Cs}from"./Add-BaepTMyl.js";import{d as pi}from"./Launch-W68EZl8H.js";import{d as Es}from"./Done-BSxV_Z_N.js";import{d as mi}from"./DeleteOutline-BKxhOLzM.js";import{D as Is}from"./delete-confirm-CCMGtPBw.js";import{d as _s}from"./MoreVert-DqeE3_Hd.js";import{g as bt}from"./get-safe-url-DO00hPju.js";import{B as Dr}from"./ButtonGroup-jLU91Eto.js";var Rs=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},zr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Ps=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Ms=function(e,t){t===void 0&&(t={});var n=t.target,r=t.isNoMore,i=t.threshold,s=i===void 0?100:i,u=t.direction,h=u===void 0?"bottom":u,m=t.reloadDeps,g=m===void 0?[]:m,f=t.manual,v=t.onBefore,w=t.onSuccess,x=t.onError,S=t.onFinally,j=De(L.useState(),2),R=j[0],T=j[1],O=De(L.useState(!1),2),P=O[0],A=O[1],V=h==="top",B=L.useRef(),K=L.useRef(0),ee=L.useMemo(function(){return r?r(R):!1},[R]),ie=St(function(oe){return Ro(void 0,void 0,void 0,function(){var te,me,Ie,_e;return Po(this,function(kt){switch(kt.label){case 0:return[4,e(oe)];case 1:return te=kt.sent(),T(oe?Et(Et({},te),{list:V?et(et([],De(te.list),!1),De((Ie=oe.list)!==null&&Ie!==void 0?Ie:[]),!1):et(et([],De((_e=oe.list)!==null&&_e!==void 0?_e:[]),!1),De(te.list),!1)}):Et(Et({},te),{list:et([],De((me=te.list)!==null&&me!==void 0?me:[]),!1)})),[2,te]}})})},{manual:f,onFinally:function(oe,te,me){A(!1),S==null||S(te,me)},onBefore:function(){return v==null?void 0:v()},onSuccess:function(oe){setTimeout(function(){if(V){var te=Or(n);if(te=te===document?document.documentElement:te,te){var me=zr(te);te.scrollTo(0,me-K.current)}}else se()}),w==null||w(oe)},onError:function(oe){return x==null?void 0:x(oe)}}),H=ie.loading,Ee=ie.error,ge=ie.run,ke=ie.runAsync,be=ie.cancel,ye=ft(function(){ee||(A(!0),ge(R))}),N=ft(function(){return ee?Promise.reject():(A(!0),ke(R))}),Q=function(){return A(!1),ge()},he=function(){return A(!1),ke()},se=function(){var oe=Or(n);if(oe){var te=oe===document?document.documentElement:oe,me=Rs(te),Ie=zr(te),_e=Ps(te);V?(B.current!==void 0&&B.current>me&&me<=s&&ye(),B.current=me,K.current=Ie-me):Ie-me<=_e+s&&ye()}};return Mo("scroll",function(){H||P||se()},{target:n}),Lo(function(){ge()},et([],De(g),!1)),{data:R,loading:!P&&H,error:Ee,loadingMore:P,noMore:ee,loadMore:ye,loadMoreAsync:N,reload:ft(Q),reloadAsync:ft(he),mutate:T,cancel:be}};const Ls=["name"],Ds=["children","className","clone","component"];function zs(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function Fs(e){return(n,r={})=>{const{name:i}=r,s=Cr(r,Ls);let u=i;const m=Kt(typeof n=="function"?v=>({root:w=>n(ut({theme:v},w))}):{root:n},ut({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=L.forwardRef(function(w,x){const{children:S,className:j,clone:R,component:T}=w,O=Cr(w,Ds),P=m(w),A=Er(P.root,j);let V=O;if(g&&(V=zs(V,g)),R)return L.cloneElement(S,ut({className:Er(S.props.className,A)},V));if(typeof S=="function")return S(ut({className:A},V));const B=T||e;return o.jsx(B,ut({ref:x,className:A},V,{children:S}))});return Do(f,e),f}}const Dc="blocklet-add-component-registry",zc="server-add-registry",Ns={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>'},mt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Vt=(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&&!zt(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&&!zt(h)?null:h}if(n&&r===""){const h={provider:r,prefix:"",name:s};return t&&!zt(h,n)?null:h}return null},zt=(e,t)=>e?!!((e.provider===""||e.provider.match(mt))&&(t&&e.prefix===""||e.prefix.match(mt))&&e.name.match(mt)):!1,gi=Object.freeze({left:0,top:0,width:16,height:16}),Bt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),An=Object.freeze({...gi,...Bt}),wn=Object.freeze({...An,body:"",hidden:!1});function As(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 Fr(e,t){const n=As(e,t);for(const r in wn)r in Bt?r in e&&!(r in n)&&(n[r]=Bt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ws(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 Bs(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function u(h){s=Fr(r[h]||i[h],s)}return u(t),n.forEach(u),Fr(e,s)}function bi(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=Ws(e);for(const i in r){const s=r[i];s&&(t(i,Bs(e,i,s)),n.push(i))}return n}const $s={provider:"",aliases:{},not_found:{},...gi};function ln(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function yi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ln(e,$s))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(mt)||typeof s.body!="string"||!ln(s,wn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],u=s.parent;if(!i.match(mt)||typeof u!="string"||!n[u]&&!r[u]||!ln(s,wn))return null}return t}const Nr=Object.create(null);function Hs(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ke(e,t){const n=Nr[e]||(Nr[e]=Object.create(null));return n[t]||(n[t]=Hs(e,t))}function Wn(e,t){return yi(t)?bi(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Ks(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let yt=!1;function vi(e){return typeof e=="boolean"&&(yt=e),yt}function Us(e){const t=typeof e=="string"?Vt(e,!0,yt):e;if(t){const n=Ke(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function qs(e,t){const n=Vt(e,!0,yt);if(!n)return!1;const r=Ke(n.provider,n.prefix);return Ks(r,n.name,t)}function Vs(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),yt&&!t&&!e.prefix){let i=!1;return yi(e)&&(e.prefix="",bi(e,(s,u)=>{u&&qs(s,u)&&(i=!0)})),i}const n=e.prefix;if(!zt({provider:t,prefix:n,name:"a"}))return!1;const r=Ke(t,n);return!!Wn(r,e)}const xi=Object.freeze({width:null,height:null}),wi=Object.freeze({...xi,...Bt}),Gs=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ys=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ar(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(Gs);if(r===null||!r.length)return e;const i=[];let s=r.shift(),u=Ys.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 Xs=e=>e==="unset"||e==="undefined"||e==="none";function Qs(e,t){const n={...An,...e},r={...wi,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(S=>{const j=[],R=S.hFlip,T=S.vFlip;let O=S.rotate;R?T?O+=2:(j.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),j.push("scale(-1 1)"),i.top=i.left=0):T&&(j.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),j.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,j.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:j.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:P=i.width/2+i.left,j.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)),j.length&&(s='<g transform="'+j.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=Ar(v,m/g)):(f=u==="auto"?m:u,v=h===null?Ar(f,g/m):h==="auto"?g:h);const w={},x=(S,j)=>{Xs(j)||(w[S]=j.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 Js=/\sid="(\S+)"/g,Zs="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ea=0;function ta(e,t=Zs){const n=[];let r;for(;r=Js.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+(ea++).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 Sn=Object.create(null);function na(e,t){Sn[e]=t}function kn(e){return Sn[e]||Sn[""]}function Bn(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 $n=Object.create(null),ht=["https://api.simplesvg.com","https://api.unisvg.com"],Ft=[];for(;ht.length>0;)ht.length===1||Math.random()>.5?Ft.push(ht.shift()):Ft.push(ht.pop());$n[""]=Bn({resources:["https://api.iconify.design"].concat(Ft)});function ra(e,t){const n=Bn(t);return n===null?!1:($n[e]=n,!0)}function Hn(e){return $n[e]}const ia=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Wr=ia();function oa(e,t){const n=Hn(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 sa(e){return e===404}const aa=(e,t,n)=>{const r=[],i=oa(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 la(e){if(typeof e=="string"){const t=Hn(e);if(t)return t.path}return"/"}const ca=(e,t,n)=>{if(!Wr){n("abort",424);return}let r=la(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;Wr(e+r).then(s=>{const u=s.status;if(u!==200){setTimeout(()=>{n(sa(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)})},ua={prepare:aa,send:ca};function da(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]=Ke(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 Si(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function ha(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||Si([e],s.id),s.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),s.abort))})}))}let fa=0;function pa(e,t,n){const r=fa++,i=Si.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 ma(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Vt(i,t,n):i;s&&r.push(s)}),r}var ga={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ba(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 B=e.resources.slice(0);for(u=[];B.length>1;){const K=Math.floor(Math.random()*B.length);u.push(B[K]),B=B.slice(0,K).concat(B.slice(K+1))}u=u.concat(B)}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 j(){m==="pending"&&(m="aborted"),S(),w.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),w=[]}function R(B,K){K&&(x=[]),typeof B=="function"&&x.push(B)}function T(){return{startTime:h,payload:t,status:m,queriesSent:g,queriesPending:w.length,subscribe:R,abort:j}}function O(){m="failed",x.forEach(B=>{B(void 0,f)})}function P(){w.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),w=[]}function A(B,K,ee){const ie=K!=="success";switch(w=w.filter(H=>H!==B),m){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(K==="abort"){f=ee,O();return}if(ie){f=ee,w.length||(u.length?V():O());return}if(S(),P(),!e.random){const H=e.resources.indexOf(B.resource);H!==-1&&H!==e.index&&(e.index=H)}m="completed",x.forEach(H=>{H(ee)})}function V(){if(m!=="pending")return;S();const B=u.shift();if(B===void 0){if(w.length){v=setTimeout(()=>{S(),m==="pending"&&(P(),O())},e.timeout);return}O();return}const K={status:"pending",resource:B,callback:(ee,ie)=>{A(K,ee,ie)}};w.push(K),g++,v=setTimeout(V,e.rotate),n(B,t,K.callback)}return setTimeout(V),T}function ki(e){const t={...ga,...e};let n=[];function r(){n=n.filter(h=>h().status==="pending")}function i(h,m,g){const f=ba(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 Br(){}const cn=Object.create(null);function ya(e){if(!cn[e]){const t=Hn(e);if(!t)return;const n=ki(t),r={config:t,redundancy:n};cn[e]=r}return cn[e]}function va(e,t,n){let r,i;if(typeof e=="string"){const s=kn(e);if(!s)return n(void 0,424),Br;i=s.send;const u=ya(e);u&&(r=u.redundancy)}else{const s=Bn(e);if(s){r=ki(s);const u=e.resources?e.resources[0]:"",h=kn(u);h&&(i=h.send)}}return!r||!i?(n(void 0,424),Br):r.query(t,i,n)().abort}const $r="iconify2",vt="iconify",ji=vt+"-count",Hr=vt+"-version",Ti=36e5,xa=168;function jn(e,t){try{return e.getItem(t)}catch{}}function Kn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Kr(e,t){try{e.removeItem(t)}catch{}}function Tn(e,t){return Kn(e,ji,t.toString())}function On(e){return parseInt(jn(e,ji))||0}const Gt={local:!0,session:!0},Oi={local:new Set,session:new Set};let Un=!1;function wa(e){Un=e}let _t=typeof window>"u"?{}:window;function Ci(e){const t=e+"Storage";try{if(_t&&_t[t]&&typeof _t[t].length=="number")return _t[t]}catch{}Gt[e]=!1}function Ei(e,t){const n=Ci(e);if(!n)return;const r=jn(n,Hr);if(r!==$r){if(r){const h=On(n);for(let m=0;m<h;m++)Kr(n,vt+m.toString())}Kn(n,Hr,$r),Tn(n,0);return}const i=Math.floor(Date.now()/Ti)-xa,s=h=>{const m=vt+h.toString(),g=jn(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{}Kr(n,m)}};let u=On(n);for(let h=u-1;h>=0;h--)s(h)||(h===u-1?(u--,Tn(n,u)):Oi[e].add(h))}function Ii(){if(!Un){wa(!0);for(const e in Gt)Ei(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=Ke(r,i);if(!Wn(s,n).length)return!1;const u=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,u):u,!0})}}function Sa(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Gt)Ei(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function ka(e,t){Un||Ii();function n(r){let i;if(!Gt[r]||!(i=Ci(r)))return;const s=Oi[r];let u;if(s.size)s.delete(u=Array.from(s).shift());else if(u=On(i),!Tn(i,u+1))return;const h={cached:Math.floor(Date.now()/Ti),provider:e.provider,data:t};return Kn(i,vt+u.toString(),JSON.stringify(h))}t.lastModified&&!Sa(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ur(){}function ja(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ha(e)}))}function Ta(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=kn(n)))return;s.prepare(n,r,i).forEach(h=>{va(n,h,m=>{if(typeof m!="object")h.icons.forEach(g=>{e.missing.add(g)});else try{const g=Wn(e,m);if(!g.length)return;const f=e.pendingIcons;f&&g.forEach(v=>{f.delete(v)}),ka(e,m)}catch(g){console.error(g)}ja(e)})})}))}const Oa=(e,t)=>{const n=ma(e,!0,vi()),r=da(n);if(!r.pending.length){let m=!0;return t&&setTimeout(()=>{m&&t(r.loaded,r.missing,r.pending,Ur)}),()=>{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(Ke(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=Ke(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&&Ta(m,i[g][f])}),t?pa(t,r,s):Ur};function Ca(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in xi?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const Ea=/[\s,]+/;function Ia(e,t){t.split(Ea).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function _a(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 Ra(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 Pa(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ma(e){return"data:image/svg+xml,"+Pa(e)}function La(e){return'url("'+Ma(e)+'")'}let gt;function Da(){try{gt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{gt=null}}function za(e){return gt===void 0&&Da(),gt?gt.createHTML(e):e}const _i={...wi,inline:!1},Fa={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Na={display:"inline-block"},Cn={backgroundColor:"currentColor"},Ri={backgroundColor:"transparent"},qr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Vr={WebkitMask:Cn,mask:Cn,background:Ri};for(const e in Vr){const t=Vr[e];for(const n in qr)t[e+n]=qr[n]}const Aa={..._i,inline:!0};function Gr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Wa=(e,t,n,r)=>{const i=n?Aa:_i,s=Ca(i,t),u=t.mode||"svg",h={},m=t.style||{},g={...u==="svg"?Fa:{},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"&&Ia(s,O);break;case"color":h.color=O;break;case"rotate":typeof O=="string"?s[T]=_a(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=Qs(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:za(ta(f.body,O?()=>O+"ID"+T++:"iconifyReact"))},Fe.createElement("svg",g)}const{body:w,width:x,height:S}=e,j=u==="mask"||(u==="bg"?!1:w.indexOf("currentColor")!==-1),R=Ra(w,{...v,width:x+"",height:S+""});return g.style={...h,"--svg":La(R),width:Gr(v.width),height:Gr(v.height),...Na,...j?Cn:Ri,...m},Fe.createElement("span",g)};vi(!0);na("",ua);if(typeof document<"u"&&typeof window<"u"){Ii();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"||!Vs(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;ra(n,i)||console.error(r)}catch{console.error(r)}}}}class Pi extends Fe.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=Vt(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Us(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:Oa([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:Fe.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),Wa({...An,...n.data},r,t._inline,t._ref)}}const xt=Fe.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return Fe.createElement(Pi,r)});Fe.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return Fe.createElement(Pi,r)});var qn={},Ba=qt;Object.defineProperty(qn,"__esModule",{value:!0});var Mi=qn.default=void 0,$a=Ba(Ut()),Ha=o;Mi=qn.default=(0,$a.default)((0,Ha.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Li={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 Di={exports:{}};(function(e,t){(function(n,r){e.exports=r(L)})(dt,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,V){if(V!==f){var B=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 B.name="Invariant Violation",B}}function S(){return x}x.isRequired=x;var j={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 j.PropTypes=j,j}},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 j,R,T,O;if(Array.isArray(x)){if((j=x.length)!=S.length)return!1;for(R=j;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((j=x.length)!=S.length)return!1;for(R=j;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((j=(T=Object.keys(x)).length)!==Object.keys(S).length)return!1;for(R=j;R--!=0;)if(!Object.prototype.hasOwnProperty.call(S,T[R]))return!1;if(m&&x instanceof Element)return!1;for(R=j;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(j){if((j.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw j}}},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:()=>Io});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 dt=="object"&&dt&&dt.Object===Object&&dt;var x=typeof self=="object"&&self&&self.Object===Object&&self;const S=w||x||Function("return this")(),j=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,V=A.hasOwnProperty,B=A.toString,K=P?P.toStringTag:void 0,ee=Object.prototype.toString,ie=P?P.toStringTag:void 0;const H=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":ie&&ie in Object(d)?function(a){var p=V.call(a,K),b=a[K];try{a[K]=void 0;var I=!0}catch{}var W=B.call(a);return I&&(p?a[K]=b:delete a[K]),W}(d):function(a){return ee.call(a)}(d)};var Ee=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,be=parseInt;const ye=function(d){if(typeof d=="number")return d;if(function(b){return typeof b=="symbol"||function(I){return I!=null&&typeof I=="object"}(b)&&H(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=ge.test(d);return p||ke.test(d)?be(d.slice(2),p?2:8):Ee.test(d)?NaN:+d};var N=Math.max,Q=Math.min;const he=function(d,a,p){var b,I,W,J,c,l,y=0,C=!1,_=!1,E=!0;if(typeof d!="function")throw new TypeError("Expected a function");function q($){var X=b,ne=I;return b=I=void 0,y=$,J=d.apply(ne,X)}function U($){return y=$,c=setTimeout(D,a),C?q($):J}function Y($){var X=$-l;return l===void 0||X>=a||X<0||_&&$-y>=W}function D(){var $=j();if(Y($))return z($);c=setTimeout(D,function(X){var ne=a-(X-l);return _?Q(ne,W-(X-y)):ne}($))}function z($){return c=void 0,E&&b?q($):(b=I=void 0,J)}function F(){var $=j(),X=Y($);if(b=arguments,I=this,l=$,X){if(c===void 0)return U(l);if(_)return clearTimeout(c),c=setTimeout(D,a),q(l)}return c===void 0&&(c=setTimeout(D,a)),J}return a=ye(a)||0,v(p)&&(C=!!p.leading,W=(_="maxWait"in p)?N(ye(p.maxWait)||0,a):W,E="trailing"in p?!!p.trailing:E),F.cancel=function(){c!==void 0&&clearTimeout(c),y=0,b=l=I=c=void 0},F.flush=function(){return c===void 0?J:z(j())},F},se=function(d,a,p){var b=!0,I=!0;if(typeof d!="function")throw new TypeError("Expected a function");return v(p)&&(b="leading"in p?!!p.leading:b,I="trailing"in p?!!p.trailing:I),he(d,a,{leading:b,maxWait:a,trailing:I})};var oe=s(590),te=s.n(oe),me=function(){if(typeof Map<"u")return Map;function d(a,p){var b=-1;return a.some(function(I,W){return I[0]===p&&(b=W,!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),I=this.__entries__[b];return I&&I[1]},a.prototype.set=function(p,b){var I=d(this.__entries__,p);~I?this.__entries__[I][1]=b:this.__entries__.push([p,b])},a.prototype.delete=function(p){var b=this.__entries__,I=d(b,p);~I&&b.splice(I,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 I=0,W=this.__entries__;I<W.length;I++){var J=W[I];p.call(b,J[1],J[0])}},a}()}(),Ie=typeof window<"u"&&typeof document<"u"&&window.document===document,_e=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")(),kt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_e):function(d){return setTimeout(function(){return d(Date.now())},1e3/60)},io=["top","right","bottom","left","width","height","size","weight"],oo=typeof MutationObserver<"u",so=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,I=!1,W=0;function J(){b&&(b=!1,a()),I&&l()}function c(){kt(J)}function l(){var y=Date.now();if(b){if(y-W<2)return;I=!0}else b=!0,I=!1,setTimeout(c,20);W=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(){Ie&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),oo?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},d.prototype.disconnect_=function(){Ie&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},d.prototype.onTransitionEnd_=function(a){var p=a.propertyName,b=p===void 0?"":p;io.some(function(I){return!!~b.indexOf(I)})&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d}(),nr=function(d,a){for(var p=0,b=Object.keys(a);p<b.length;p++){var I=b[p];Object.defineProperty(d,I,{value:a[I],enumerable:!1,writable:!1,configurable:!0})}return d},Ve=function(d){return d&&d.ownerDocument&&d.ownerDocument.defaultView||_e},rr=Tt(0,0,0,0);function jt(d){return parseFloat(d)||0}function ir(d){for(var a=[],p=1;p<arguments.length;p++)a[p-1]=arguments[p];return a.reduce(function(b,I){return b+jt(d["border-"+I+"-width"])},0)}var ao=typeof SVGGraphicsElement<"u"?function(d){return d instanceof Ve(d).SVGGraphicsElement}:function(d){return d instanceof Ve(d).SVGElement&&typeof d.getBBox=="function"};function lo(d){return Ie?ao(d)?function(a){var p=a.getBBox();return Tt(0,0,p.width,p.height)}(d):function(a){var p=a.clientWidth,b=a.clientHeight;if(!p&&!b)return rr;var I=Ve(a).getComputedStyle(a),W=function(E){for(var q={},U=0,Y=["top","right","bottom","left"];U<Y.length;U++){var D=Y[U],z=E["padding-"+D];q[D]=jt(z)}return q}(I),J=W.left+W.right,c=W.top+W.bottom,l=jt(I.width),y=jt(I.height);if(I.boxSizing==="border-box"&&(Math.round(l+J)!==p&&(l-=ir(I,"left","right")+J),Math.round(y+c)!==b&&(y-=ir(I,"top","bottom")+c)),!function(E){return E===Ve(E).document.documentElement}(a)){var C=Math.round(l+J)-p,_=Math.round(y+c)-b;Math.abs(C)!==1&&(l-=C),Math.abs(_)!==1&&(y-=_)}return Tt(W.left,W.top,l,y)}(d):rr}function Tt(d,a,p,b){return{x:d,y:a,width:p,height:b}}var co=function(){function d(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Tt(0,0,0,0),this.target=a}return d.prototype.isActive=function(){var a=lo(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}(),uo=function(d,a){var p,b,I,W,J,c,l,y=(b=(p=a).x,I=p.y,W=p.width,J=p.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),nr(l,{x:b,y:I,width:W,height:J,top:I,right:b+W,bottom:J+I,left:b}),l);nr(this,{target:d,contentRect:y})},ho=function(){function d(a,p,b){if(this.activeObservations_=[],this.observations_=new me,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=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 Ve(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var p=this.observations_;p.has(a)||(p.set(a,new co(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 Ve(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 uo(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}(),or=typeof WeakMap<"u"?new WeakMap:new me,sr=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=so.getInstance(),b=new ho(a,p,this);or.set(this,b)};["observe","unobserve","disconnect"].forEach(function(d){sr.prototype[d]=function(){var a;return(a=or.get(this))[d].apply(a,arguments)}});const ar=_e.ResizeObserver!==void 0?_e.ResizeObserver:sr,Ge="Left",We="Right",Ye="Up",Be="Down",Xe={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Qt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},lr="mousemove",cr="mouseup";function ur(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 fo(d){const{trackMouse:a}=d,p=g.useRef(Object.assign({},Qt)),b=g.useRef(Object.assign({},Xe)),I=g.useRef(Object.assign({},b.current));let W;for(W in I.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},Xe),d),Xe)b.current[W]===void 0&&(b.current[W]=Xe[W]);const[J,c]=g.useMemo(()=>function(l,y){const C=D=>{const z="touches"in D;z&&D.touches.length>1||l((F,$)=>{$.trackMouse&&!z&&(document.addEventListener(lr,_),document.addEventListener(cr,q));const{clientX:X,clientY:ne}=z?D.touches[0]:D,ce=ur([X,ne],$.rotationAngle);return $.onTouchStartOrOnMouseDown&&$.onTouchStartOrOnMouseDown({event:D}),Object.assign(Object.assign(Object.assign({},F),Qt),{initial:ce.slice(),xy:ce,start:D.timeStamp||0})})},_=D=>{l((z,F)=>{const $="touches"in D;if($&&D.touches.length>1)return z;if(D.timeStamp-z.start>F.swipeDuration)return z.swiping?Object.assign(Object.assign({},z),{swiping:!1}):z;const{clientX:X,clientY:ne}=$?D.touches[0]:D,[ce,Se]=ur([X,ne],F.rotationAngle),ve=ce-z.xy[0],fe=Se-z.xy[1],le=Math.abs(ve),re=Math.abs(fe),Le=(D.timeStamp||0)-z.start,st=Math.sqrt(le*le+re*re)/(Le||1),at=[ve/(Le||1),fe/(Le||1)],Me=function(lt,Ze,ct,je){return lt>Ze?ct>0?We:Ge:je>0?Be:Ye}(le,re,ve,fe),$e=typeof F.delta=="number"?F.delta:F.delta[Me.toLowerCase()]||Xe.delta;if(le<$e&&re<$e&&!z.swiping)return z;const Re={absX:le,absY:re,deltaX:ve,deltaY:fe,dir:Me,event:D,first:z.first,initial:z.initial,velocity:st,vxvy:at};Re.first&&F.onSwipeStart&&F.onSwipeStart(Re),F.onSwiping&&F.onSwiping(Re);let Je=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Me}`])&&(Je=!0),Je&&F.preventScrollOnSwipe&&F.trackTouch&&D.cancelable&&D.preventDefault(),Object.assign(Object.assign({},z),{first:!1,eventData:Re,swiping:!0})})},E=D=>{l((z,F)=>{let $;if(z.swiping&&z.eventData){if(D.timeStamp-z.start<F.swipeDuration){$=Object.assign(Object.assign({},z.eventData),{event:D}),F.onSwiped&&F.onSwiped($);const X=F[`onSwiped${$.dir}`];X&&X($)}}else F.onTap&&F.onTap({event:D});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:D}),Object.assign(Object.assign(Object.assign({},z),Qt),{eventData:$})})},q=D=>{document.removeEventListener(lr,_),document.removeEventListener(cr,q),E(D)},U=(D,z)=>{let F=()=>{};if(D&&D.addEventListener){const $=Object.assign(Object.assign({},Xe.touchEventOptions),z.touchEventOptions),X=[["touchstart",C,$],["touchmove",_,Object.assign(Object.assign({},$),z.preventScrollOnSwipe?{passive:!1}:{})],["touchend",E,$]];X.forEach(([ne,ce,Se])=>D.addEventListener(ne,ce,Se)),F=()=>X.forEach(([ne,ce])=>D.removeEventListener(ne,ce))}return F},Y={ref:D=>{D!==null&&l((z,F)=>{if(z.el===D)return z;const $={};return z.el&&z.el!==D&&z.cleanUpTouch&&(z.cleanUpTouch(),$.cleanUpTouch=void 0),F.trackTouch&&D&&($.cleanUpTouch=U(D,F)),Object.assign(Object.assign(Object.assign({},z),{el:D}),$)})}};return y.trackMouse&&(Y.onMouseDown=C),[Y,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,I.current,c),J}var k=s(697);function rt(d){return rt=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},rt(d)}function dr(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),p.push.apply(p,b)}return p}function hr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?dr(Object(p),!0).forEach(function(b){po(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):dr(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function po(d,a,p){return(a=function(b){var I=function(W,J){if(rt(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,J);if(rt(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return rt(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var mo={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},Jt=f().memo(function(d){var a=hr(hr({},mo),d),p=a.description,b=a.fullscreen,I=a.handleImageLoaded,W=a.isFullscreen,J=a.onImageError,c=a.original,l=a.originalAlt,y=a.originalHeight,C=a.originalWidth,_=a.originalTitle,E=a.sizes,q=a.srcSet,U=a.loading,Y=W&&b||c;return f().createElement(f().Fragment,null,f().createElement("img",{className:"image-gallery-image",src:Y,alt:l,srcSet:q,height:y,width:C,sizes:E,title:_,onLoad:function(D){return I(D,c)},onError:J,loading:U}),p&&f().createElement("span",{className:"image-gallery-description"},p))});Jt.displayName="Item",Jt.propTypes={description:k.string,fullscreen:k.string,handleImageLoaded:k.func.isRequired,isFullscreen:k.bool,onImageError:k.func.isRequired,original:k.string.isRequired,originalAlt:k.string,originalHeight:k.string,originalWidth:k.string,originalTitle:k.string,sizes:k.string,srcSet:k.string,loading:k.string};const go=Jt;function it(d){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},it(d)}function fr(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),p.push.apply(p,b)}return p}function pr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?fr(Object(p),!0).forEach(function(b){bo(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):fr(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function bo(d,a,p){return(a=function(b){var I=function(W,J){if(it(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,J);if(it(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return it(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var yo={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"}))},vo={strokeWidth:1,viewBox:"0 0 24 24"},mr=function(d){var a=pr(pr({},vo),d),p=a.strokeWidth,b=a.viewBox,I=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"},yo[I])};mr.propTypes={strokeWidth:k.number,viewBox:k.string,icon:(0,k.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const Ot=mr;var Zt=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(Ot,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Zt.displayName="Fullscreen",Zt.propTypes={isFullscreen:k.bool.isRequired,onClick:k.func.isRequired};const xo=Zt;var en=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(Ot,{icon:"left",viewBox:"6 0 12 24"}))});en.displayName="LeftNav",en.propTypes={disabled:k.bool.isRequired,onClick:k.func.isRequired};const wo=en;var tn=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(Ot,{icon:"right",viewBox:"6 0 12 24"}))});tn.displayName="RightNav",tn.propTypes={disabled:k.bool.isRequired,onClick:k.func.isRequired};const So=tn;var nn=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(Ot,{strokeWidth:2,icon:a?"pause":"play"}))});nn.displayName="PlayPause",nn.propTypes={isPlaying:k.bool.isRequired,onClick:k.func.isRequired};const ko=nn;function ot(d){return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ot(d)}function rn(){return rn=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},rn.apply(this,arguments)}function gr(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),p.push.apply(p,b)}return p}function br(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?gr(Object(p),!0).forEach(function(b){jo(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):gr(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function jo(d,a,p){return(a=function(b){var I=function(W,J){if(ot(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,J);if(ot(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return ot(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var To={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},yr=function(d){var a=br(br({},To),d),p=a.children,b=a.className,I=fo({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return f().createElement("div",rn({},I,{className:b}),p)};yr.propTypes={children:k.node.isRequired,className:k.string,delta:k.number,onSwiped:k.func,onSwiping:k.func};const vr=yr;function Qe(d){return Qe=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},Qe(d)}function xr(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),p.push.apply(p,b)}return p}function wr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?xr(Object(p),!0).forEach(function(b){Sr(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):xr(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function Oo(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,kr(b.key),b)}}function on(d,a){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,b){return p.__proto__=b,p},on(d,a)}function Co(d,a){if(a&&(Qe(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ue(d)}function ue(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Ct(d){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Ct(d)}function Sr(d,a,p){return(a=kr(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}function kr(d){var a=function(p,b){if(Qe(p)!=="object"||p===null)return p;var I=p[Symbol.toPrimitive];if(I!==void 0){var W=I.call(p,b);if(Qe(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(d,"string");return Qe(a)==="symbol"?a:String(a)}var jr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],Eo=(0,k.arrayOf)((0,k.shape)({srcSet:k.string,media:k.string}));function Tr(d){var a=parseInt(d.keyCode||d.which||0,10);return a===66||a===62}var sn=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&&on(c,l)})(J,d);var a,p,b,I,W=(b=J,I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var c,l=Ct(b);if(I){var y=Ct(this).constructor;c=Reflect.construct(l,arguments,y)}else c=l.apply(this,arguments);return Co(this,c)});function J(c){var l;return function(y,C){if(!(y instanceof C))throw new TypeError("Cannot call a class as a function")}(this,J),Sr(ue(l=W.call(this,c)),"onBulletClick",function(y,C){var _=l.props,E=_.onBulletClick,q=_.items,U=l.state.currentIndex;y.target.blur(),U!==C&&(q.length===2?l.slideToIndexWithStyleReset(C,y):l.slideToIndex(C,y)),E&&E(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(ue(l)),l.handleKeyDown=l.handleKeyDown.bind(ue(l)),l.handleMouseDown=l.handleMouseDown.bind(ue(l)),l.handleResize=l.handleResize.bind(ue(l)),l.handleTouchMove=l.handleTouchMove.bind(ue(l)),l.handleOnSwiped=l.handleOnSwiped.bind(ue(l)),l.handleScreenChange=l.handleScreenChange.bind(ue(l)),l.handleSwiping=l.handleSwiping.bind(ue(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(ue(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(ue(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(ue(l)),l.handleImageError=l.handleImageError.bind(ue(l)),l.pauseOrPlay=l.pauseOrPlay.bind(ue(l)),l.renderThumbInner=l.renderThumbInner.bind(ue(l)),l.renderItem=l.renderItem.bind(ue(l)),l.slideLeft=l.slideLeft.bind(ue(l)),l.slideRight=l.slideRight.bind(ue(l)),l.toggleFullScreen=l.toggleFullScreen.bind(ue(l)),l.togglePlay=l.togglePlay.bind(ue(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=se(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=J,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,E=y.slideDuration,q=y.slideInterval,U=y.startIndex,Y=y.thumbnailPosition,D=y.showThumbnails,z=y.useWindowKeyDown,F=this.state,$=F.currentIndex,X=F.isPlaying,ne=c.items.length!==C.length,ce=!te()(c.items,C),Se=c.startIndex!==U,ve=c.thumbnailPosition!==Y,fe=c.showThumbnails!==D;q===c.slideInterval&&E===c.slideDuration||X&&(this.pause(),this.play()),ve&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),fe&&D&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),fe&&!D&&this.removeThumbnailsResizeObserver(),(ne||fe)&&this.handleResize(),l.currentIndex!==$&&this.slideThumbnailBar(),c.slideDuration!==E&&(this.slideToIndex=se(this.unthrottledSlideToIndex,E,{trailing:!1})),!_||c.lazyLoad&&!ce||(this.lazyLoaded=[]),z!==c.useWindowKeyDown&&(z?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(Se||ce)&&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,E=_.onSlide,q=_.slideDuration;this.transitionTimer=window.setTimeout(function(){C&&(c.setState({isTransitioning:!C,isSwipingThumbnail:!1}),E&&E(y))},q+50)}},{key:"onThumbnailClick",value:function(c,l){var y=this.props,C=y.onThumbnailClick,_=y.items,E=this.state.currentIndex;c.target.parentNode.parentNode.blur(),E!==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,E=this.state,q=E.thumbnailsWrapperWidth,U=E.thumbnailsWrapperHeight,Y=this.thumbnails&&this.thumbnails.current;if(C)return 0;if(Y){if(this.isThumbnailVertical()){if(Y.scrollHeight<=U)return 0;l=Y.scrollHeight-U}else{if(Y.scrollWidth<=q||q<=0)return 0;l=Y.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,E="",q="image-gallery-left",U="image-gallery-right";switch(c){case l-1:E=" ".concat(q);break;case l:E=" ".concat("image-gallery-center");break;case l+1:E=" ".concat(U)}return _.length>=3&&C&&(c===0&&l===_.length-1?E=" ".concat(U):c===_.length-1&&l===0&&(E=" ".concat(q))),E}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,y=l.currentIndex,C=l.currentSlideOffset,_=l.previousIndex,E=y!==_,q=c===0&&_===0,U=c===1&&_===1,Y=c===0&&y===1,D=c===1&&y===0,z=C===0,F=-100*y+100*c+C;return C>0?this.direction="left":C<0&&(this.direction="right"),D&&C>0&&(F=-100+C),Y&&C<0&&(F=100+C),E?q&&z&&this.direction==="left"?F=100:U&&z&&this.direction==="right"&&(F=-100):(D&&z&&this.direction==="left"&&(F=-100),Y&&z&&this.direction==="right"&&(F=100)),F}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(c){var l=this.state,y=l.currentIndex,C=l.currentSlideOffset,_=l.slideStyle,E=this.props,q=E.infinite,U=E.items,Y=E.useTranslate3D,D=E.isRTL,z=-100*y,F=U.length-1,$=(z+100*c)*(D?-1:1)+C;q&&U.length>2&&(y===0&&c===F?$=-100*(D?-1:1)+C:y===F&&c===0&&($=100*(D?-1:1)+C)),q&&U.length===2&&($=this.getTranslateXForTwoSlide(c));var X="translate(".concat($,"%, 0)");return Y&&(X="translate3d(".concat($,"%, 0, 0)")),wr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:X,MozTransform:X,msTransform:X,OTransform:X,transform:X},_)}},{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,E=_.thumbsTranslate,q=_.thumbsStyle,U=C?-1*E:E;return this.isThumbnailVertical()?(c="translate(0, ".concat(E,"px)"),y&&(c="translate3d(0, ".concat(E,"px, 0)"))):(c="translate(".concat(U,"px, 0)"),y&&(c="translate3d(".concat(U,"px, 0, 0)"))),wr({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,E=y.onClick,q=y.lazyLoad,U=y.onTouchMove,Y=y.onTouchEnd,D=y.onTouchStart,z=y.onMouseOver,F=y.onMouseLeave,$=y.renderItem,X=y.renderThumbInner,ne=y.showThumbnails,ce=y.showBullets,Se=[],ve=[],fe=[];return C.forEach(function(le,re){var Le=c.getAlignmentClassName(re),st=le.originalClass?" ".concat(le.originalClass):"",at=le.thumbnailClass?" ".concat(le.thumbnailClass):"",Me=le.renderItem||$||c.renderItem,$e=le.renderThumbInner||X||c.renderThumbInner,Re=!q||Le||c.lazyLoaded[re];Re&&q&&!c.lazyLoaded[re]&&(c.lazyLoaded[re]=!0);var Je=c.getSlideStyle(re),lt=f().createElement("div",{"aria-label":"Go to Slide ".concat(re+1),key:"slide-".concat(re),tabIndex:"-1",className:"image-gallery-slide ".concat(Le," ").concat(st),style:Je,onClick:E,onKeyUp:c.handleSlideKeyUp,onTouchMove:U,onTouchEnd:Y,onTouchStart:D,onMouseOver:z,onFocus:z,onMouseLeave:F,role:"button"},Re?Me(le):f().createElement("div",{style:{height:"100%"}}));if(Se.push(lt),ne&&le.thumbnail){var Ze=m("image-gallery-thumbnail",at,{active:l===re});ve.push(f().createElement("button",{key:"thumbnail-".concat(re),type:"button",tabIndex:"0","aria-pressed":l===re?"true":"false","aria-label":"Go to Slide ".concat(re+1),className:Ze,onMouseLeave:_?c.onThumbnailMouseLeave:null,onMouseOver:function(je){return c.handleThumbnailMouseOver(je,re)},onFocus:function(je){return c.handleThumbnailMouseOver(je,re)},onKeyUp:function(je){return c.handleThumbnailKeyUp(je,re)},onClick:function(je){return c.onThumbnailClick(je,re)}},$e(le)))}if(ce){var ct=m("image-gallery-bullet",le.bulletClass,{active:l===re});fe.push(f().createElement("button",{type:"button",key:"bullet-".concat(re),className:ct,onClick:function(je){return c.onBulletClick(je,re)},"aria-pressed":l===re?"true":"false","aria-label":"Go to Slide ".concat(re+1)}))}}),{slides:Se,thumbnails:ve,bullets:fe}}},{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,E=_.disableSwipe,q=_.stopPropagation,U=this.state,Y=U.galleryWidth,D=U.isTransitioning,z=U.swipingUpDown,F=U.swipingLeftRight;if(C!==Ye&&C!==Be&&!z||F){if(C!==Ge&&C!==We||F||this.setState({swipingLeftRight:!0}),!E){var $=this.props.swipingTransitionDuration;if(q&&l.preventDefault(),D)this.setState({currentSlideOffset:0});else{var X=C===We?1:-1,ne=y/Y*100;Math.abs(ne)>=100&&(ne=100);var ce={transition:"transform ".concat($,"ms ease-out")};this.setState({currentSlideOffset:X*ne,slideStyle:ce})}}}else z||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,y=c.absX,C=c.absY,_=c.dir,E=this.props,q=E.stopPropagation,U=E.swipingThumbnailTransitionDuration,Y=this.state,D=Y.thumbsSwipedTranslate,z=Y.thumbnailsWrapperHeight,F=Y.thumbnailsWrapperWidth,$=Y.swipingUpDown,X=Y.swipingLeftRight;if(this.isThumbnailVertical()){if((_===Ge||_===We||X)&&!$)return void(X||this.setState({swipingLeftRight:!0}));_!==Ye&&_!==Be||$||this.setState({swipingUpDown:!0})}else{if((_===Ye||_===Be||$)&&!X)return void($||this.setState({swipingUpDown:!0}));_!==Ge&&_!==We||X||this.setState({swipingLeftRight:!0})}var ne,ce,Se,ve,fe,le=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(ne=D+(_===Be?C:-C),ce=le.scrollHeight-z+20,Se=Math.abs(ne)>ce,ve=ne>20,fe=le.scrollHeight<=z):(ne=D+(_===We?y:-y),ce=le.scrollWidth-F+20,Se=Math.abs(ne)>ce,ve=ne>20,fe=le.scrollWidth<=F),!fe&&(_!==Ge&&_!==Ye||!Se)&&(_!==We&&_!==Be||!ve)){q&&l.stopPropagation();var re={transition:"transform ".concat(U,"ms ease-out")};this.setState({thumbsTranslate:ne,thumbsStyle:re})}}},{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,E=_.disableSwipe,q=_.stopPropagation,U=_.flickThreshold;if(!E){var Y=this.props.isRTL;q&&l.stopPropagation(),this.resetSwipingDirection();var D=(y===Ge?1:-1)*(Y?-1:1),z=C>U&&!(y===Ye||y===Be);this.handleOnSwipedTo(D,z)}}},{key:"handleOnSwipedTo",value:function(c,l){var y=this.state,C=y.currentIndex,_=y.isTransitioning,E=C;!this.sufficientSwipe()&&!l||_||(E+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(E=C),this.unthrottledSlideToIndex(E)}},{key:"handleTouchMove",value:function(c){this.state.swipingLeftRight&&c.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(c){var l=this.props,y=l.disableKeyDown,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 ar(he(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 ar(he(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,E=this.props,q=E.items,U=E.slideDuration,Y=E.onBeforeSlide;if(!_){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var D=q.length-1,z=c;c<0?z=D:c>D&&(z=0),Y&&z!==C&&Y(z),this.setState({previousIndex:C,currentIndex:z,isTransitioning:z!==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,E=this.props.items,q=C+(l==="left"?-1:1);_||(E.length===2?this.slideToIndexWithStyleReset(q,c):this.slideToIndex(q,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var y=this,C=this.state,_=C.currentIndex,E=C.currentSlideOffset;this.setState({currentSlideOffset:E+(_>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){Tr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){Tr(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;jr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;jr.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,E=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(C,_)),y&&c&&y(E))}},{key:"pause",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props.onPause,y=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),l&&c&&l(y))}},{key:"isImageLoaded",value:function(c){return!!this.loadedImages[c.original]||(this.loadedImages[c.original]=!0,!1)}},{key:"handleImageLoaded",value:function(c,l){var y=this.props.onImageLoad;!this.loadedImages[l]&&y&&(this.loadedImages[l]=!0,y(c))}},{key:"renderItem",value:function(c){var l=this.state.isFullscreen,y=this.props.onImageError||this.handleImageError;return f().createElement(go,{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,E=this.props,q=E.additionalClass,U=E.disableThumbnailSwipe,Y=E.indexSeparator,D=E.isRTL,z=E.items,F=E.thumbnailPosition,$=E.renderFullscreenButton,X=E.renderCustomControls,ne=E.renderLeftNav,ce=E.renderRightNav,Se=E.showBullets,ve=E.showFullscreenButton,fe=E.showIndex,le=E.showThumbnails,re=E.showNav,Le=E.showPlayButton,st=E.renderPlayPauseButton,at=this.getThumbnailStyle(),Me=this.getSlideItems(),$e=Me.slides,Re=Me.thumbnails,Je=Me.bullets,lt=m("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(F),{"image-gallery-rtl":D}),Ze=f().createElement("div",{ref:this.imageGallerySlideWrapper,className:lt},X&&X(),this.canSlide()?f().createElement(f().Fragment,null,re&&f().createElement(f().Fragment,null,ne(this.slideLeft,!this.canSlideLeft()),ce(this.slideRight,!this.canSlideRight())),f().createElement(vr,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},f().createElement("div",{className:"image-gallery-slides"},$e))):f().createElement("div",{className:"image-gallery-slides"},$e),Le&&st(this.togglePlay,_),Se&&f().createElement("div",{className:"image-gallery-bullets"},f().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Je)),ve&&$(this.toggleFullScreen,y),fe&&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"},Y),f().createElement("span",{className:"image-gallery-index-total"},z.length))),ct=m("image-gallery",q,{"fullscreen-modal":C}),je=m("image-gallery-content",this.getThumbnailPositionClassName(F),{fullscreen:y}),_o=m("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(F),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&D},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!U},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!U});return f().createElement("div",{ref:this.imageGallery,className:ct,"aria-live":"polite"},f().createElement("div",{className:je},(F==="bottom"||F==="right")&&Ze,le&&Re.length>0?f().createElement(vr,{className:_o,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:at,"aria-label":"Thumbnail Navigation"},Re))):null,(F==="top"||F==="left")&&Ze))}}],p&&Oo(a.prototype,p),Object.defineProperty(a,"prototype",{writable:!1}),J}(f().Component);sn.propTypes={flickThreshold:k.number,items:(0,k.arrayOf)((0,k.shape)({bulletClass:k.string,bulletOnClick:k.func,description:k.string,original:k.string,originalHeight:k.number,originalWidth:k.number,loading:k.string,thumbnailHeight:k.number,thumbnailWidth:k.number,thumbnailLoading:k.string,fullscreen:k.string,originalAlt:k.string,originalTitle:k.string,thumbnail:k.string,thumbnailAlt:k.string,thumbnailLabel:k.string,thumbnailTitle:k.string,originalClass:k.string,thumbnailClass:k.string,renderItem:k.func,renderThumbInner:k.func,imageSet:Eo,srcSet:k.string,sizes:k.string})).isRequired,showNav:k.bool,autoPlay:k.bool,lazyLoad:k.bool,infinite:k.bool,showIndex:k.bool,showBullets:k.bool,showThumbnails:k.bool,showPlayButton:k.bool,showFullscreenButton:k.bool,disableThumbnailScroll:k.bool,disableKeyDown:k.bool,disableSwipe:k.bool,disableThumbnailSwipe:k.bool,useBrowserFullscreen:k.bool,onErrorImageURL:k.string,indexSeparator:k.string,thumbnailPosition:(0,k.oneOf)(["top","bottom","left","right"]),startIndex:k.number,slideDuration:k.number,slideInterval:k.number,slideOnThumbnailOver:k.bool,swipeThreshold:k.number,swipingTransitionDuration:k.number,swipingThumbnailTransitionDuration:k.number,onSlide:k.func,onBeforeSlide:k.func,onScreenChange:k.func,onPause:k.func,onPlay:k.func,onClick:k.func,onImageLoad:k.func,onImageError:k.func,onTouchMove:k.func,onTouchEnd:k.func,onTouchStart:k.func,onMouseOver:k.func,onMouseLeave:k.func,onBulletClick:k.func,onThumbnailError:k.func,onThumbnailClick:k.func,renderCustomControls:k.func,renderLeftNav:k.func,renderRightNav:k.func,renderPlayPauseButton:k.func,renderFullscreenButton:k.func,renderItem:k.func,renderThumbInner:k.func,stopPropagation:k.bool,additionalClass:k.string,useTranslate3D:k.bool,isRTL:k.bool,useWindowKeyDown:k.bool},sn.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(wo,{onClick:d,disabled:a})},renderRightNav:function(d,a){return f().createElement(So,{onClick:d,disabled:a})},renderPlayPauseButton:function(d,a){return f().createElement(ko,{onClick:d,isPlaying:a})},renderFullscreenButton:function(d,a){return f().createElement(xo,{onClick:d,isFullscreen:a})},useWindowKeyDown:!0};const Io=sn})(),u})())})(Di);var Ka=Di.exports;const Ua=zo(Ka);function qa(){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,j;(S=m)==null||S.entryCallbacks.set(w,x),(j=m)==null||j.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 Va="0px",Ga=[0],Ya=qa();function Xa(e){var t,n,r=(t=e==null?void 0:e.rootMargin)!=null?t:Va,i=(n=e==null?void 0:e.threshold)!=null?n:Ga,s=L.useRef(null),u=L.useRef(null),h=L.useRef(null),m=L.useState(),g=m[0],f=m[1],v=L.useCallback(function(){var j=s.current;if(!j){f(void 0);return}var R=Ya.getObserver({root:u.current,rootMargin:r,threshold:i});R.observe(j,function(T){f(T)}),h.current=R},[r,i]),w=L.useCallback(function(){var j=h.current,R=s.current;R&&(j==null||j.unobserve(R)),h.current=null},[]),x=L.useCallback(function(j){w(),s.current=j,v()},[v,w]),S=L.useCallback(function(j){w(),u.current=j,v()},[v,w]);return[x,{entry:g,rootRef:S}]}function En(){return En=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},En.apply(this,arguments)}function Qa(e){var t,n=Xa(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),u=L.useState(s),h=u[0],m=u[1];return s&&!h&&m(!0),[r,En({},i,{isVisible:s,wasEverVisible:h})]}var Ja=100;function Za(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,u=e.delayInMs,h=u===void 0?Ja:u,m=Qa({rootMargin:i}),g=m[0],f=m[1],v=f.rootRef,w=f.isVisible,x=!s&&!t&&w&&n;return L.useEffect(function(){if(x){var S=setTimeout(function(){r()},h);return function(){clearTimeout(S)}}},[r,x,h]),[g,{rootRef:v}]}const el={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"/>'},tl={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 un=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function dn(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function zi(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 Fi(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 nl(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 Vn={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,"-":un?173:189,"=":un?61:187,";":un?59:186,"'":222,"[":219,"]":221,"\\":220},Ne={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},In={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},pe={16:!1,18:!1,17:!1,91:!1},de={};for(var Rt=1;Rt<20;Rt++)Vn["f".concat(Rt)]=111+Rt;var ae=[],Yr=!1,Ni="all",Ai=[],Yt=function(t){return Vn[t.toLowerCase()]||Ne[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Wi(e){Ni=e||"all"}function wt(){return Ni||"all"}function rl(){return ae.slice(0)}function il(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 ol(e){return typeof e=="string"&&(e=Yt(e)),ae.indexOf(e)!==-1}function sl(e,t){var n,r;e||(e=wt());for(var i in de)if(Object.prototype.hasOwnProperty.call(de,i))for(n=de[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;wt()===e&&Wi(t||"all")}function al(e){var t=e.keyCode||e.which||e.charCode,n=ae.indexOf(t);if(n>=0&&ae.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ae.splice(0,ae.length),(t===93||t===224)&&(t=91),t in pe){pe[t]=!1;for(var r in Ne)Ne[r]===t&&(Te[r]=!1)}}function ll(e){if(typeof e>"u")Object.keys(de).forEach(function(u){return delete de[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&hn(u)});else if(typeof e=="object")e.key&&hn(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=""),hn({key:e,scope:i,method:s,splitKey:"+"})}}var hn=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,u=s===void 0?"+":s,h=Fi(n);h.forEach(function(m){var g=m.split(u),f=g.length,v=g[f-1],w=v==="*"?"*":Yt(v);if(de[w]){r||(r=wt());var x=f>1?zi(Ne,g):[];de[w]=de[w].filter(function(S){var j=i?S.method===i:!0;return!(j&&S.scope===r&&nl(S.mods,x))})}})};function Xr(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 pe)Object.prototype.hasOwnProperty.call(pe,s)&&(!pe[s]&&t.mods.indexOf(+s)>-1||pe[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!pe[16]&&!pe[18]&&!pe[17]&&!pe[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 Qr(e,t){var n=de["*"],r=e.keyCode||e.which||e.charCode;if(Te.filter.call(this,e)){if((r===93||r===224)&&(r=91),ae.indexOf(r)===-1&&r!==229&&ae.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var j=In[S];e[S]&&ae.indexOf(j)===-1?ae.push(j):!e[S]&&ae.indexOf(j)>-1?ae.splice(ae.indexOf(j),1):S==="metaKey"&&e[S]&&ae.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ae=ae.slice(ae.indexOf(j))))}),r in pe){pe[r]=!0;for(var i in Ne)Ne[i]===r&&(Te[i]=!0);if(!n)return}for(var s in pe)Object.prototype.hasOwnProperty.call(pe,s)&&(pe[s]=e[In[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ae.indexOf(17)===-1&&ae.push(17),ae.indexOf(18)===-1&&ae.push(18),pe[17]=!0,pe[18]=!0);var u=wt();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)&&Xr(e,n[h],u,t);if(r in de){for(var m=0;m<de[r].length;m++)if((e.type==="keydown"&&de[r][m].keydown||e.type==="keyup"&&de[r][m].keyup)&&de[r][m].key){for(var g=de[r][m],f=g.splitKey,v=g.key.split(f),w=[],x=0;x<v.length;x++)w.push(Yt(v[x]));w.sort().join("")===ae.sort().join("")&&Xr(e,g,u,t)}}}}function cl(e){return Ai.indexOf(e)>-1}function Te(e,t,n){ae=[];var r=Fi(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=zi(Ne,e)),e=e[e.length-1],e=e==="*"?"*":Yt(e),e in de||(de[e]=[]),de[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"&&!cl(u)&&window&&(Ai.push(u),dn(u,"keydown",function(w){Qr(w,u)},v),Yr||(Yr=!0,dn(window,"focus",function(){ae=[]},v)),dn(u,"keyup",function(w){Qr(w,u),al(w)},v))}function ul(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(de).forEach(function(n){var r=de[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var fn={setScope:Wi,getScope:wt,deleteScope:sl,getPressedKeyCodes:rl,isPressed:ol,filter:il,trigger:ul,unbind:ll,keyMap:Vn,modifier:Ne,modifierMap:In};for(var pn in fn)Object.prototype.hasOwnProperty.call(fn,pn)&&(Te[pn]=fn[pn]);if(typeof window<"u"){var dl=window.hotkeys;Te.noConflict=function(e){return e&&window.hotkeys===Te&&(window.hotkeys=dl),Te},window.hotkeys=Te}Te.filter=function(){return!0};var Bi=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},hl=function(t){return Bi(t,["INPUT","TEXTAREA","SELECT"])};function fl(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,j=L.useRef(null),R=L.useCallback(function(T,O){var P,A;return u&&!u(T)?!f:hl(T)&&!Bi(T,s)||(P=T.target)!=null&&P.isContentEditable&&!S?!0:j.current===null||document.activeElement===j.current||(A=j.current)!=null&&A.contains(document.activeElement)?(t(T,O),!0):!1},r?[j,s,u].concat(r):[j,s,u]);return L.useEffect(function(){if(!w){Te.unbind(e,R);return}return h&&m!==!0&&(n.keydown=!1),Te(e,n||{},R),function(){return Te.unbind(e,R)}},[R,e,w]),j}Te.isPressed;const $i=L.createContext({open:!1,toggleOpen:e=>{}});function pl({children:e}){const[t,n]=L.useState(!1),r=s=>{n(s??!s)},i=L.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx($i.Provider,{value:i,children:e})}function Gn(){return L.useContext($i)}const Ce={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,currentPage:1,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",explorePath:"/api/blocklets/explore",exploreDidsPath:"/api/blocklets/dids",cacheSize:100},ml=e=>St(async()=>{const{data:t}=await e.get(Ce.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function gl(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...Bo(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(an(m,g=>g===""||g===void 0))};return{filters:e,cleanFilter:h=>{const m=h?an(n,(g,f)=>h.includes(f)):{};r(an(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 bl=(e,t,n)=>e&&t||!n,Hi=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Ki=(e,t,n)=>{var r,i;const s=Uo(e),u=qo(s.search);if((r=Vo(e,{strict:!0}))!=null&&r.endsWith(".gif"))return u.imageFilter?Go({...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 Dn(e,{...m||g?{imageFilter:"resize",w:m,h:g}:{},v:h})},yl=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],vl=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),xl=e=>{var t,n;return Array.isArray(e)?e.map(r=>r.message).join(`
|
|
1
|
+
import{c5 as De,r as L,ct as St,fK as Or,be as Ro,bf as Po,cU as Et,fL as et,cu as ft,fM as Mo,fN as Lo,b_ as Cr,a6 as Kt,bY as ut,dg as Do,c3 as Er,j as o,bh as Fe,aP as Ut,aQ as qt,d8 as dt,bl as zo,d0 as Ir,ep as Oe,C as Pe,dq as Ae,K as G,al as Ue,dH as Fo,a3 as No,dU as Ao,fO as oi,fk as si,fP as ai,fQ as Mn,aD as Wo,aE as Ln,aZ as xe,fR as Bo,fS as an,k as Z,fT as $o,E as tt,fU as Ho,aY as li,U as ci,cH as Dn,dx as ze,av as Nt,G as _r,ej as Rr,aT as Ko,cJ as Uo,fV as qo,fW as Vo,fX as Go,M as Yo,cI as Xo,fl as Qo,eC as Jo,eb as Zo,bx as es,Q as At,$ as ts,fY as ui,fZ as ns,t as di,a2 as nt,f_ as Pr,f$ as rs,P as M,m as qe,aB as zn,aS as Mr,eV as hi,b6 as is,aH as It,B as Wt,a8 as os,a9 as fi,aI as ss,g0 as Lr,aa as as,bq as Fn,D as ls,s as cs,V as us,cP as ds,X as pt,A as Nn,y as He,b as hs,o as fs,b3 as ps,ae as ms,cz as gs,W as bs}from"./index-DTb1YjkO.js";import{d as ys}from"./ChevronLeft-DQK-aqqz.js";import{d as vs}from"./ChevronRight-BtkdX9A9.js";import{d as Dt}from"./Search-CUm1f8xo.js";import{E as xs}from"./index-omP-_XYV.js";import{o as ws,u as Ss}from"./blocklet-SKmr21o8.js";import{A as ks}from"./Autocomplete-BRFoT1-d.js";import{d as js}from"./Verified-DjfvSM3n.js";import{d as Ts,a as Os}from"./VerifiedUser-CGB9pAg5.js";import{d as Cs}from"./Add-CSGWebd7.js";import{d as pi}from"./Launch-B7fv6nTK.js";import{d as Es}from"./Done-2EsU1aO2.js";import{d as mi}from"./DeleteOutline-EQ9bHspP.js";import{D as Is}from"./delete-confirm-qy4uClf5.js";import{d as _s}from"./MoreVert-C_Ck3fn9.js";import{g as bt}from"./get-safe-url-BHhOK-87.js";import{B as Dr}from"./ButtonGroup-ClVwTb7r.js";var Rs=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},zr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Ps=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Ms=function(e,t){t===void 0&&(t={});var n=t.target,r=t.isNoMore,i=t.threshold,s=i===void 0?100:i,u=t.direction,h=u===void 0?"bottom":u,m=t.reloadDeps,g=m===void 0?[]:m,f=t.manual,v=t.onBefore,w=t.onSuccess,x=t.onError,S=t.onFinally,j=De(L.useState(),2),R=j[0],T=j[1],O=De(L.useState(!1),2),P=O[0],A=O[1],V=h==="top",B=L.useRef(),K=L.useRef(0),ee=L.useMemo(function(){return r?r(R):!1},[R]),ie=St(function(oe){return Ro(void 0,void 0,void 0,function(){var te,me,Ie,_e;return Po(this,function(kt){switch(kt.label){case 0:return[4,e(oe)];case 1:return te=kt.sent(),T(oe?Et(Et({},te),{list:V?et(et([],De(te.list),!1),De((Ie=oe.list)!==null&&Ie!==void 0?Ie:[]),!1):et(et([],De((_e=oe.list)!==null&&_e!==void 0?_e:[]),!1),De(te.list),!1)}):Et(Et({},te),{list:et([],De((me=te.list)!==null&&me!==void 0?me:[]),!1)})),[2,te]}})})},{manual:f,onFinally:function(oe,te,me){A(!1),S==null||S(te,me)},onBefore:function(){return v==null?void 0:v()},onSuccess:function(oe){setTimeout(function(){if(V){var te=Or(n);if(te=te===document?document.documentElement:te,te){var me=zr(te);te.scrollTo(0,me-K.current)}}else se()}),w==null||w(oe)},onError:function(oe){return x==null?void 0:x(oe)}}),H=ie.loading,Ee=ie.error,ge=ie.run,ke=ie.runAsync,be=ie.cancel,ye=ft(function(){ee||(A(!0),ge(R))}),N=ft(function(){return ee?Promise.reject():(A(!0),ke(R))}),Q=function(){return A(!1),ge()},he=function(){return A(!1),ke()},se=function(){var oe=Or(n);if(oe){var te=oe===document?document.documentElement:oe,me=Rs(te),Ie=zr(te),_e=Ps(te);V?(B.current!==void 0&&B.current>me&&me<=s&&ye(),B.current=me,K.current=Ie-me):Ie-me<=_e+s&&ye()}};return Mo("scroll",function(){H||P||se()},{target:n}),Lo(function(){ge()},et([],De(g),!1)),{data:R,loading:!P&&H,error:Ee,loadingMore:P,noMore:ee,loadMore:ye,loadMoreAsync:N,reload:ft(Q),reloadAsync:ft(he),mutate:T,cancel:be}};const Ls=["name"],Ds=["children","className","clone","component"];function zs(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function Fs(e){return(n,r={})=>{const{name:i}=r,s=Cr(r,Ls);let u=i;const m=Kt(typeof n=="function"?v=>({root:w=>n(ut({theme:v},w))}):{root:n},ut({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=L.forwardRef(function(w,x){const{children:S,className:j,clone:R,component:T}=w,O=Cr(w,Ds),P=m(w),A=Er(P.root,j);let V=O;if(g&&(V=zs(V,g)),R)return L.cloneElement(S,ut({className:Er(S.props.className,A)},V));if(typeof S=="function")return S(ut({className:A},V));const B=T||e;return o.jsx(B,ut({ref:x,className:A},V,{children:S}))});return Do(f,e),f}}const Dc="blocklet-add-component-registry",zc="server-add-registry",Ns={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>'},mt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Vt=(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&&!zt(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&&!zt(h)?null:h}if(n&&r===""){const h={provider:r,prefix:"",name:s};return t&&!zt(h,n)?null:h}return null},zt=(e,t)=>e?!!((e.provider===""||e.provider.match(mt))&&(t&&e.prefix===""||e.prefix.match(mt))&&e.name.match(mt)):!1,gi=Object.freeze({left:0,top:0,width:16,height:16}),Bt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),An=Object.freeze({...gi,...Bt}),wn=Object.freeze({...An,body:"",hidden:!1});function As(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 Fr(e,t){const n=As(e,t);for(const r in wn)r in Bt?r in e&&!(r in n)&&(n[r]=Bt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ws(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 Bs(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function u(h){s=Fr(r[h]||i[h],s)}return u(t),n.forEach(u),Fr(e,s)}function bi(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=Ws(e);for(const i in r){const s=r[i];s&&(t(i,Bs(e,i,s)),n.push(i))}return n}const $s={provider:"",aliases:{},not_found:{},...gi};function ln(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function yi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ln(e,$s))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(mt)||typeof s.body!="string"||!ln(s,wn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],u=s.parent;if(!i.match(mt)||typeof u!="string"||!n[u]&&!r[u]||!ln(s,wn))return null}return t}const Nr=Object.create(null);function Hs(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ke(e,t){const n=Nr[e]||(Nr[e]=Object.create(null));return n[t]||(n[t]=Hs(e,t))}function Wn(e,t){return yi(t)?bi(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Ks(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let yt=!1;function vi(e){return typeof e=="boolean"&&(yt=e),yt}function Us(e){const t=typeof e=="string"?Vt(e,!0,yt):e;if(t){const n=Ke(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function qs(e,t){const n=Vt(e,!0,yt);if(!n)return!1;const r=Ke(n.provider,n.prefix);return Ks(r,n.name,t)}function Vs(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),yt&&!t&&!e.prefix){let i=!1;return yi(e)&&(e.prefix="",bi(e,(s,u)=>{u&&qs(s,u)&&(i=!0)})),i}const n=e.prefix;if(!zt({provider:t,prefix:n,name:"a"}))return!1;const r=Ke(t,n);return!!Wn(r,e)}const xi=Object.freeze({width:null,height:null}),wi=Object.freeze({...xi,...Bt}),Gs=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ys=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ar(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(Gs);if(r===null||!r.length)return e;const i=[];let s=r.shift(),u=Ys.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 Xs=e=>e==="unset"||e==="undefined"||e==="none";function Qs(e,t){const n={...An,...e},r={...wi,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(S=>{const j=[],R=S.hFlip,T=S.vFlip;let O=S.rotate;R?T?O+=2:(j.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),j.push("scale(-1 1)"),i.top=i.left=0):T&&(j.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),j.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,j.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:j.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:P=i.width/2+i.left,j.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)),j.length&&(s='<g transform="'+j.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=Ar(v,m/g)):(f=u==="auto"?m:u,v=h===null?Ar(f,g/m):h==="auto"?g:h);const w={},x=(S,j)=>{Xs(j)||(w[S]=j.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 Js=/\sid="(\S+)"/g,Zs="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ea=0;function ta(e,t=Zs){const n=[];let r;for(;r=Js.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+(ea++).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 Sn=Object.create(null);function na(e,t){Sn[e]=t}function kn(e){return Sn[e]||Sn[""]}function Bn(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 $n=Object.create(null),ht=["https://api.simplesvg.com","https://api.unisvg.com"],Ft=[];for(;ht.length>0;)ht.length===1||Math.random()>.5?Ft.push(ht.shift()):Ft.push(ht.pop());$n[""]=Bn({resources:["https://api.iconify.design"].concat(Ft)});function ra(e,t){const n=Bn(t);return n===null?!1:($n[e]=n,!0)}function Hn(e){return $n[e]}const ia=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Wr=ia();function oa(e,t){const n=Hn(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 sa(e){return e===404}const aa=(e,t,n)=>{const r=[],i=oa(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 la(e){if(typeof e=="string"){const t=Hn(e);if(t)return t.path}return"/"}const ca=(e,t,n)=>{if(!Wr){n("abort",424);return}let r=la(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;Wr(e+r).then(s=>{const u=s.status;if(u!==200){setTimeout(()=>{n(sa(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)})},ua={prepare:aa,send:ca};function da(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]=Ke(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 Si(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function ha(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||Si([e],s.id),s.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),s.abort))})}))}let fa=0;function pa(e,t,n){const r=fa++,i=Si.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 ma(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Vt(i,t,n):i;s&&r.push(s)}),r}var ga={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ba(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 B=e.resources.slice(0);for(u=[];B.length>1;){const K=Math.floor(Math.random()*B.length);u.push(B[K]),B=B.slice(0,K).concat(B.slice(K+1))}u=u.concat(B)}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 j(){m==="pending"&&(m="aborted"),S(),w.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),w=[]}function R(B,K){K&&(x=[]),typeof B=="function"&&x.push(B)}function T(){return{startTime:h,payload:t,status:m,queriesSent:g,queriesPending:w.length,subscribe:R,abort:j}}function O(){m="failed",x.forEach(B=>{B(void 0,f)})}function P(){w.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),w=[]}function A(B,K,ee){const ie=K!=="success";switch(w=w.filter(H=>H!==B),m){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(K==="abort"){f=ee,O();return}if(ie){f=ee,w.length||(u.length?V():O());return}if(S(),P(),!e.random){const H=e.resources.indexOf(B.resource);H!==-1&&H!==e.index&&(e.index=H)}m="completed",x.forEach(H=>{H(ee)})}function V(){if(m!=="pending")return;S();const B=u.shift();if(B===void 0){if(w.length){v=setTimeout(()=>{S(),m==="pending"&&(P(),O())},e.timeout);return}O();return}const K={status:"pending",resource:B,callback:(ee,ie)=>{A(K,ee,ie)}};w.push(K),g++,v=setTimeout(V,e.rotate),n(B,t,K.callback)}return setTimeout(V),T}function ki(e){const t={...ga,...e};let n=[];function r(){n=n.filter(h=>h().status==="pending")}function i(h,m,g){const f=ba(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 Br(){}const cn=Object.create(null);function ya(e){if(!cn[e]){const t=Hn(e);if(!t)return;const n=ki(t),r={config:t,redundancy:n};cn[e]=r}return cn[e]}function va(e,t,n){let r,i;if(typeof e=="string"){const s=kn(e);if(!s)return n(void 0,424),Br;i=s.send;const u=ya(e);u&&(r=u.redundancy)}else{const s=Bn(e);if(s){r=ki(s);const u=e.resources?e.resources[0]:"",h=kn(u);h&&(i=h.send)}}return!r||!i?(n(void 0,424),Br):r.query(t,i,n)().abort}const $r="iconify2",vt="iconify",ji=vt+"-count",Hr=vt+"-version",Ti=36e5,xa=168;function jn(e,t){try{return e.getItem(t)}catch{}}function Kn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Kr(e,t){try{e.removeItem(t)}catch{}}function Tn(e,t){return Kn(e,ji,t.toString())}function On(e){return parseInt(jn(e,ji))||0}const Gt={local:!0,session:!0},Oi={local:new Set,session:new Set};let Un=!1;function wa(e){Un=e}let _t=typeof window>"u"?{}:window;function Ci(e){const t=e+"Storage";try{if(_t&&_t[t]&&typeof _t[t].length=="number")return _t[t]}catch{}Gt[e]=!1}function Ei(e,t){const n=Ci(e);if(!n)return;const r=jn(n,Hr);if(r!==$r){if(r){const h=On(n);for(let m=0;m<h;m++)Kr(n,vt+m.toString())}Kn(n,Hr,$r),Tn(n,0);return}const i=Math.floor(Date.now()/Ti)-xa,s=h=>{const m=vt+h.toString(),g=jn(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{}Kr(n,m)}};let u=On(n);for(let h=u-1;h>=0;h--)s(h)||(h===u-1?(u--,Tn(n,u)):Oi[e].add(h))}function Ii(){if(!Un){wa(!0);for(const e in Gt)Ei(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=Ke(r,i);if(!Wn(s,n).length)return!1;const u=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,u):u,!0})}}function Sa(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Gt)Ei(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function ka(e,t){Un||Ii();function n(r){let i;if(!Gt[r]||!(i=Ci(r)))return;const s=Oi[r];let u;if(s.size)s.delete(u=Array.from(s).shift());else if(u=On(i),!Tn(i,u+1))return;const h={cached:Math.floor(Date.now()/Ti),provider:e.provider,data:t};return Kn(i,vt+u.toString(),JSON.stringify(h))}t.lastModified&&!Sa(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ur(){}function ja(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ha(e)}))}function Ta(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=kn(n)))return;s.prepare(n,r,i).forEach(h=>{va(n,h,m=>{if(typeof m!="object")h.icons.forEach(g=>{e.missing.add(g)});else try{const g=Wn(e,m);if(!g.length)return;const f=e.pendingIcons;f&&g.forEach(v=>{f.delete(v)}),ka(e,m)}catch(g){console.error(g)}ja(e)})})}))}const Oa=(e,t)=>{const n=ma(e,!0,vi()),r=da(n);if(!r.pending.length){let m=!0;return t&&setTimeout(()=>{m&&t(r.loaded,r.missing,r.pending,Ur)}),()=>{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(Ke(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=Ke(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&&Ta(m,i[g][f])}),t?pa(t,r,s):Ur};function Ca(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in xi?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const Ea=/[\s,]+/;function Ia(e,t){t.split(Ea).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function _a(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 Ra(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 Pa(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ma(e){return"data:image/svg+xml,"+Pa(e)}function La(e){return'url("'+Ma(e)+'")'}let gt;function Da(){try{gt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{gt=null}}function za(e){return gt===void 0&&Da(),gt?gt.createHTML(e):e}const _i={...wi,inline:!1},Fa={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Na={display:"inline-block"},Cn={backgroundColor:"currentColor"},Ri={backgroundColor:"transparent"},qr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Vr={WebkitMask:Cn,mask:Cn,background:Ri};for(const e in Vr){const t=Vr[e];for(const n in qr)t[e+n]=qr[n]}const Aa={..._i,inline:!0};function Gr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Wa=(e,t,n,r)=>{const i=n?Aa:_i,s=Ca(i,t),u=t.mode||"svg",h={},m=t.style||{},g={...u==="svg"?Fa:{},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"&&Ia(s,O);break;case"color":h.color=O;break;case"rotate":typeof O=="string"?s[T]=_a(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=Qs(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:za(ta(f.body,O?()=>O+"ID"+T++:"iconifyReact"))},Fe.createElement("svg",g)}const{body:w,width:x,height:S}=e,j=u==="mask"||(u==="bg"?!1:w.indexOf("currentColor")!==-1),R=Ra(w,{...v,width:x+"",height:S+""});return g.style={...h,"--svg":La(R),width:Gr(v.width),height:Gr(v.height),...Na,...j?Cn:Ri,...m},Fe.createElement("span",g)};vi(!0);na("",ua);if(typeof document<"u"&&typeof window<"u"){Ii();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"||!Vs(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;ra(n,i)||console.error(r)}catch{console.error(r)}}}}class Pi extends Fe.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=Vt(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Us(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:Oa([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:Fe.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),Wa({...An,...n.data},r,t._inline,t._ref)}}const xt=Fe.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return Fe.createElement(Pi,r)});Fe.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return Fe.createElement(Pi,r)});var qn={},Ba=qt;Object.defineProperty(qn,"__esModule",{value:!0});var Mi=qn.default=void 0,$a=Ba(Ut()),Ha=o;Mi=qn.default=(0,$a.default)((0,Ha.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Li={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 Di={exports:{}};(function(e,t){(function(n,r){e.exports=r(L)})(dt,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,V){if(V!==f){var B=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 B.name="Invariant Violation",B}}function S(){return x}x.isRequired=x;var j={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 j.PropTypes=j,j}},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 j,R,T,O;if(Array.isArray(x)){if((j=x.length)!=S.length)return!1;for(R=j;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((j=x.length)!=S.length)return!1;for(R=j;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((j=(T=Object.keys(x)).length)!==Object.keys(S).length)return!1;for(R=j;R--!=0;)if(!Object.prototype.hasOwnProperty.call(S,T[R]))return!1;if(m&&x instanceof Element)return!1;for(R=j;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(j){if((j.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw j}}},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:()=>Io});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 dt=="object"&&dt&&dt.Object===Object&&dt;var x=typeof self=="object"&&self&&self.Object===Object&&self;const S=w||x||Function("return this")(),j=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,V=A.hasOwnProperty,B=A.toString,K=P?P.toStringTag:void 0,ee=Object.prototype.toString,ie=P?P.toStringTag:void 0;const H=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":ie&&ie in Object(d)?function(a){var p=V.call(a,K),b=a[K];try{a[K]=void 0;var I=!0}catch{}var W=B.call(a);return I&&(p?a[K]=b:delete a[K]),W}(d):function(a){return ee.call(a)}(d)};var Ee=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,be=parseInt;const ye=function(d){if(typeof d=="number")return d;if(function(b){return typeof b=="symbol"||function(I){return I!=null&&typeof I=="object"}(b)&&H(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=ge.test(d);return p||ke.test(d)?be(d.slice(2),p?2:8):Ee.test(d)?NaN:+d};var N=Math.max,Q=Math.min;const he=function(d,a,p){var b,I,W,J,c,l,y=0,C=!1,_=!1,E=!0;if(typeof d!="function")throw new TypeError("Expected a function");function q($){var X=b,ne=I;return b=I=void 0,y=$,J=d.apply(ne,X)}function U($){return y=$,c=setTimeout(D,a),C?q($):J}function Y($){var X=$-l;return l===void 0||X>=a||X<0||_&&$-y>=W}function D(){var $=j();if(Y($))return z($);c=setTimeout(D,function(X){var ne=a-(X-l);return _?Q(ne,W-(X-y)):ne}($))}function z($){return c=void 0,E&&b?q($):(b=I=void 0,J)}function F(){var $=j(),X=Y($);if(b=arguments,I=this,l=$,X){if(c===void 0)return U(l);if(_)return clearTimeout(c),c=setTimeout(D,a),q(l)}return c===void 0&&(c=setTimeout(D,a)),J}return a=ye(a)||0,v(p)&&(C=!!p.leading,W=(_="maxWait"in p)?N(ye(p.maxWait)||0,a):W,E="trailing"in p?!!p.trailing:E),F.cancel=function(){c!==void 0&&clearTimeout(c),y=0,b=l=I=c=void 0},F.flush=function(){return c===void 0?J:z(j())},F},se=function(d,a,p){var b=!0,I=!0;if(typeof d!="function")throw new TypeError("Expected a function");return v(p)&&(b="leading"in p?!!p.leading:b,I="trailing"in p?!!p.trailing:I),he(d,a,{leading:b,maxWait:a,trailing:I})};var oe=s(590),te=s.n(oe),me=function(){if(typeof Map<"u")return Map;function d(a,p){var b=-1;return a.some(function(I,W){return I[0]===p&&(b=W,!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),I=this.__entries__[b];return I&&I[1]},a.prototype.set=function(p,b){var I=d(this.__entries__,p);~I?this.__entries__[I][1]=b:this.__entries__.push([p,b])},a.prototype.delete=function(p){var b=this.__entries__,I=d(b,p);~I&&b.splice(I,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 I=0,W=this.__entries__;I<W.length;I++){var J=W[I];p.call(b,J[1],J[0])}},a}()}(),Ie=typeof window<"u"&&typeof document<"u"&&window.document===document,_e=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")(),kt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_e):function(d){return setTimeout(function(){return d(Date.now())},1e3/60)},io=["top","right","bottom","left","width","height","size","weight"],oo=typeof MutationObserver<"u",so=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,I=!1,W=0;function J(){b&&(b=!1,a()),I&&l()}function c(){kt(J)}function l(){var y=Date.now();if(b){if(y-W<2)return;I=!0}else b=!0,I=!1,setTimeout(c,20);W=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(){Ie&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),oo?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},d.prototype.disconnect_=function(){Ie&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},d.prototype.onTransitionEnd_=function(a){var p=a.propertyName,b=p===void 0?"":p;io.some(function(I){return!!~b.indexOf(I)})&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d}(),nr=function(d,a){for(var p=0,b=Object.keys(a);p<b.length;p++){var I=b[p];Object.defineProperty(d,I,{value:a[I],enumerable:!1,writable:!1,configurable:!0})}return d},Ve=function(d){return d&&d.ownerDocument&&d.ownerDocument.defaultView||_e},rr=Tt(0,0,0,0);function jt(d){return parseFloat(d)||0}function ir(d){for(var a=[],p=1;p<arguments.length;p++)a[p-1]=arguments[p];return a.reduce(function(b,I){return b+jt(d["border-"+I+"-width"])},0)}var ao=typeof SVGGraphicsElement<"u"?function(d){return d instanceof Ve(d).SVGGraphicsElement}:function(d){return d instanceof Ve(d).SVGElement&&typeof d.getBBox=="function"};function lo(d){return Ie?ao(d)?function(a){var p=a.getBBox();return Tt(0,0,p.width,p.height)}(d):function(a){var p=a.clientWidth,b=a.clientHeight;if(!p&&!b)return rr;var I=Ve(a).getComputedStyle(a),W=function(E){for(var q={},U=0,Y=["top","right","bottom","left"];U<Y.length;U++){var D=Y[U],z=E["padding-"+D];q[D]=jt(z)}return q}(I),J=W.left+W.right,c=W.top+W.bottom,l=jt(I.width),y=jt(I.height);if(I.boxSizing==="border-box"&&(Math.round(l+J)!==p&&(l-=ir(I,"left","right")+J),Math.round(y+c)!==b&&(y-=ir(I,"top","bottom")+c)),!function(E){return E===Ve(E).document.documentElement}(a)){var C=Math.round(l+J)-p,_=Math.round(y+c)-b;Math.abs(C)!==1&&(l-=C),Math.abs(_)!==1&&(y-=_)}return Tt(W.left,W.top,l,y)}(d):rr}function Tt(d,a,p,b){return{x:d,y:a,width:p,height:b}}var co=function(){function d(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Tt(0,0,0,0),this.target=a}return d.prototype.isActive=function(){var a=lo(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}(),uo=function(d,a){var p,b,I,W,J,c,l,y=(b=(p=a).x,I=p.y,W=p.width,J=p.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),nr(l,{x:b,y:I,width:W,height:J,top:I,right:b+W,bottom:J+I,left:b}),l);nr(this,{target:d,contentRect:y})},ho=function(){function d(a,p,b){if(this.activeObservations_=[],this.observations_=new me,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=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 Ve(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var p=this.observations_;p.has(a)||(p.set(a,new co(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 Ve(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 uo(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}(),or=typeof WeakMap<"u"?new WeakMap:new me,sr=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=so.getInstance(),b=new ho(a,p,this);or.set(this,b)};["observe","unobserve","disconnect"].forEach(function(d){sr.prototype[d]=function(){var a;return(a=or.get(this))[d].apply(a,arguments)}});const ar=_e.ResizeObserver!==void 0?_e.ResizeObserver:sr,Ge="Left",We="Right",Ye="Up",Be="Down",Xe={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Qt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},lr="mousemove",cr="mouseup";function ur(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 fo(d){const{trackMouse:a}=d,p=g.useRef(Object.assign({},Qt)),b=g.useRef(Object.assign({},Xe)),I=g.useRef(Object.assign({},b.current));let W;for(W in I.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},Xe),d),Xe)b.current[W]===void 0&&(b.current[W]=Xe[W]);const[J,c]=g.useMemo(()=>function(l,y){const C=D=>{const z="touches"in D;z&&D.touches.length>1||l((F,$)=>{$.trackMouse&&!z&&(document.addEventListener(lr,_),document.addEventListener(cr,q));const{clientX:X,clientY:ne}=z?D.touches[0]:D,ce=ur([X,ne],$.rotationAngle);return $.onTouchStartOrOnMouseDown&&$.onTouchStartOrOnMouseDown({event:D}),Object.assign(Object.assign(Object.assign({},F),Qt),{initial:ce.slice(),xy:ce,start:D.timeStamp||0})})},_=D=>{l((z,F)=>{const $="touches"in D;if($&&D.touches.length>1)return z;if(D.timeStamp-z.start>F.swipeDuration)return z.swiping?Object.assign(Object.assign({},z),{swiping:!1}):z;const{clientX:X,clientY:ne}=$?D.touches[0]:D,[ce,Se]=ur([X,ne],F.rotationAngle),ve=ce-z.xy[0],fe=Se-z.xy[1],le=Math.abs(ve),re=Math.abs(fe),Le=(D.timeStamp||0)-z.start,st=Math.sqrt(le*le+re*re)/(Le||1),at=[ve/(Le||1),fe/(Le||1)],Me=function(lt,Ze,ct,je){return lt>Ze?ct>0?We:Ge:je>0?Be:Ye}(le,re,ve,fe),$e=typeof F.delta=="number"?F.delta:F.delta[Me.toLowerCase()]||Xe.delta;if(le<$e&&re<$e&&!z.swiping)return z;const Re={absX:le,absY:re,deltaX:ve,deltaY:fe,dir:Me,event:D,first:z.first,initial:z.initial,velocity:st,vxvy:at};Re.first&&F.onSwipeStart&&F.onSwipeStart(Re),F.onSwiping&&F.onSwiping(Re);let Je=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Me}`])&&(Je=!0),Je&&F.preventScrollOnSwipe&&F.trackTouch&&D.cancelable&&D.preventDefault(),Object.assign(Object.assign({},z),{first:!1,eventData:Re,swiping:!0})})},E=D=>{l((z,F)=>{let $;if(z.swiping&&z.eventData){if(D.timeStamp-z.start<F.swipeDuration){$=Object.assign(Object.assign({},z.eventData),{event:D}),F.onSwiped&&F.onSwiped($);const X=F[`onSwiped${$.dir}`];X&&X($)}}else F.onTap&&F.onTap({event:D});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:D}),Object.assign(Object.assign(Object.assign({},z),Qt),{eventData:$})})},q=D=>{document.removeEventListener(lr,_),document.removeEventListener(cr,q),E(D)},U=(D,z)=>{let F=()=>{};if(D&&D.addEventListener){const $=Object.assign(Object.assign({},Xe.touchEventOptions),z.touchEventOptions),X=[["touchstart",C,$],["touchmove",_,Object.assign(Object.assign({},$),z.preventScrollOnSwipe?{passive:!1}:{})],["touchend",E,$]];X.forEach(([ne,ce,Se])=>D.addEventListener(ne,ce,Se)),F=()=>X.forEach(([ne,ce])=>D.removeEventListener(ne,ce))}return F},Y={ref:D=>{D!==null&&l((z,F)=>{if(z.el===D)return z;const $={};return z.el&&z.el!==D&&z.cleanUpTouch&&(z.cleanUpTouch(),$.cleanUpTouch=void 0),F.trackTouch&&D&&($.cleanUpTouch=U(D,F)),Object.assign(Object.assign(Object.assign({},z),{el:D}),$)})}};return y.trackMouse&&(Y.onMouseDown=C),[Y,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,I.current,c),J}var k=s(697);function rt(d){return rt=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},rt(d)}function dr(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),p.push.apply(p,b)}return p}function hr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?dr(Object(p),!0).forEach(function(b){po(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):dr(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function po(d,a,p){return(a=function(b){var I=function(W,J){if(rt(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,J);if(rt(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return rt(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var mo={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},Jt=f().memo(function(d){var a=hr(hr({},mo),d),p=a.description,b=a.fullscreen,I=a.handleImageLoaded,W=a.isFullscreen,J=a.onImageError,c=a.original,l=a.originalAlt,y=a.originalHeight,C=a.originalWidth,_=a.originalTitle,E=a.sizes,q=a.srcSet,U=a.loading,Y=W&&b||c;return f().createElement(f().Fragment,null,f().createElement("img",{className:"image-gallery-image",src:Y,alt:l,srcSet:q,height:y,width:C,sizes:E,title:_,onLoad:function(D){return I(D,c)},onError:J,loading:U}),p&&f().createElement("span",{className:"image-gallery-description"},p))});Jt.displayName="Item",Jt.propTypes={description:k.string,fullscreen:k.string,handleImageLoaded:k.func.isRequired,isFullscreen:k.bool,onImageError:k.func.isRequired,original:k.string.isRequired,originalAlt:k.string,originalHeight:k.string,originalWidth:k.string,originalTitle:k.string,sizes:k.string,srcSet:k.string,loading:k.string};const go=Jt;function it(d){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},it(d)}function fr(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),p.push.apply(p,b)}return p}function pr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?fr(Object(p),!0).forEach(function(b){bo(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):fr(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function bo(d,a,p){return(a=function(b){var I=function(W,J){if(it(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,J);if(it(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return it(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var yo={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"}))},vo={strokeWidth:1,viewBox:"0 0 24 24"},mr=function(d){var a=pr(pr({},vo),d),p=a.strokeWidth,b=a.viewBox,I=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"},yo[I])};mr.propTypes={strokeWidth:k.number,viewBox:k.string,icon:(0,k.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const Ot=mr;var Zt=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(Ot,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Zt.displayName="Fullscreen",Zt.propTypes={isFullscreen:k.bool.isRequired,onClick:k.func.isRequired};const xo=Zt;var en=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(Ot,{icon:"left",viewBox:"6 0 12 24"}))});en.displayName="LeftNav",en.propTypes={disabled:k.bool.isRequired,onClick:k.func.isRequired};const wo=en;var tn=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(Ot,{icon:"right",viewBox:"6 0 12 24"}))});tn.displayName="RightNav",tn.propTypes={disabled:k.bool.isRequired,onClick:k.func.isRequired};const So=tn;var nn=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(Ot,{strokeWidth:2,icon:a?"pause":"play"}))});nn.displayName="PlayPause",nn.propTypes={isPlaying:k.bool.isRequired,onClick:k.func.isRequired};const ko=nn;function ot(d){return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ot(d)}function rn(){return rn=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},rn.apply(this,arguments)}function gr(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),p.push.apply(p,b)}return p}function br(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?gr(Object(p),!0).forEach(function(b){jo(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):gr(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function jo(d,a,p){return(a=function(b){var I=function(W,J){if(ot(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,J);if(ot(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return ot(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}var To={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},yr=function(d){var a=br(br({},To),d),p=a.children,b=a.className,I=fo({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return f().createElement("div",rn({},I,{className:b}),p)};yr.propTypes={children:k.node.isRequired,className:k.string,delta:k.number,onSwiped:k.func,onSwiping:k.func};const vr=yr;function Qe(d){return Qe=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},Qe(d)}function xr(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),p.push.apply(p,b)}return p}function wr(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?xr(Object(p),!0).forEach(function(b){Sr(d,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):xr(Object(p)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(p,b))})}return d}function Oo(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,kr(b.key),b)}}function on(d,a){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,b){return p.__proto__=b,p},on(d,a)}function Co(d,a){if(a&&(Qe(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ue(d)}function ue(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Ct(d){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Ct(d)}function Sr(d,a,p){return(a=kr(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}function kr(d){var a=function(p,b){if(Qe(p)!=="object"||p===null)return p;var I=p[Symbol.toPrimitive];if(I!==void 0){var W=I.call(p,b);if(Qe(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(d,"string");return Qe(a)==="symbol"?a:String(a)}var jr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],Eo=(0,k.arrayOf)((0,k.shape)({srcSet:k.string,media:k.string}));function Tr(d){var a=parseInt(d.keyCode||d.which||0,10);return a===66||a===62}var sn=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&&on(c,l)})(J,d);var a,p,b,I,W=(b=J,I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var c,l=Ct(b);if(I){var y=Ct(this).constructor;c=Reflect.construct(l,arguments,y)}else c=l.apply(this,arguments);return Co(this,c)});function J(c){var l;return function(y,C){if(!(y instanceof C))throw new TypeError("Cannot call a class as a function")}(this,J),Sr(ue(l=W.call(this,c)),"onBulletClick",function(y,C){var _=l.props,E=_.onBulletClick,q=_.items,U=l.state.currentIndex;y.target.blur(),U!==C&&(q.length===2?l.slideToIndexWithStyleReset(C,y):l.slideToIndex(C,y)),E&&E(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(ue(l)),l.handleKeyDown=l.handleKeyDown.bind(ue(l)),l.handleMouseDown=l.handleMouseDown.bind(ue(l)),l.handleResize=l.handleResize.bind(ue(l)),l.handleTouchMove=l.handleTouchMove.bind(ue(l)),l.handleOnSwiped=l.handleOnSwiped.bind(ue(l)),l.handleScreenChange=l.handleScreenChange.bind(ue(l)),l.handleSwiping=l.handleSwiping.bind(ue(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(ue(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(ue(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(ue(l)),l.handleImageError=l.handleImageError.bind(ue(l)),l.pauseOrPlay=l.pauseOrPlay.bind(ue(l)),l.renderThumbInner=l.renderThumbInner.bind(ue(l)),l.renderItem=l.renderItem.bind(ue(l)),l.slideLeft=l.slideLeft.bind(ue(l)),l.slideRight=l.slideRight.bind(ue(l)),l.toggleFullScreen=l.toggleFullScreen.bind(ue(l)),l.togglePlay=l.togglePlay.bind(ue(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=se(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=J,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,E=y.slideDuration,q=y.slideInterval,U=y.startIndex,Y=y.thumbnailPosition,D=y.showThumbnails,z=y.useWindowKeyDown,F=this.state,$=F.currentIndex,X=F.isPlaying,ne=c.items.length!==C.length,ce=!te()(c.items,C),Se=c.startIndex!==U,ve=c.thumbnailPosition!==Y,fe=c.showThumbnails!==D;q===c.slideInterval&&E===c.slideDuration||X&&(this.pause(),this.play()),ve&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),fe&&D&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),fe&&!D&&this.removeThumbnailsResizeObserver(),(ne||fe)&&this.handleResize(),l.currentIndex!==$&&this.slideThumbnailBar(),c.slideDuration!==E&&(this.slideToIndex=se(this.unthrottledSlideToIndex,E,{trailing:!1})),!_||c.lazyLoad&&!ce||(this.lazyLoaded=[]),z!==c.useWindowKeyDown&&(z?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(Se||ce)&&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,E=_.onSlide,q=_.slideDuration;this.transitionTimer=window.setTimeout(function(){C&&(c.setState({isTransitioning:!C,isSwipingThumbnail:!1}),E&&E(y))},q+50)}},{key:"onThumbnailClick",value:function(c,l){var y=this.props,C=y.onThumbnailClick,_=y.items,E=this.state.currentIndex;c.target.parentNode.parentNode.blur(),E!==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,E=this.state,q=E.thumbnailsWrapperWidth,U=E.thumbnailsWrapperHeight,Y=this.thumbnails&&this.thumbnails.current;if(C)return 0;if(Y){if(this.isThumbnailVertical()){if(Y.scrollHeight<=U)return 0;l=Y.scrollHeight-U}else{if(Y.scrollWidth<=q||q<=0)return 0;l=Y.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,E="",q="image-gallery-left",U="image-gallery-right";switch(c){case l-1:E=" ".concat(q);break;case l:E=" ".concat("image-gallery-center");break;case l+1:E=" ".concat(U)}return _.length>=3&&C&&(c===0&&l===_.length-1?E=" ".concat(U):c===_.length-1&&l===0&&(E=" ".concat(q))),E}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,y=l.currentIndex,C=l.currentSlideOffset,_=l.previousIndex,E=y!==_,q=c===0&&_===0,U=c===1&&_===1,Y=c===0&&y===1,D=c===1&&y===0,z=C===0,F=-100*y+100*c+C;return C>0?this.direction="left":C<0&&(this.direction="right"),D&&C>0&&(F=-100+C),Y&&C<0&&(F=100+C),E?q&&z&&this.direction==="left"?F=100:U&&z&&this.direction==="right"&&(F=-100):(D&&z&&this.direction==="left"&&(F=-100),Y&&z&&this.direction==="right"&&(F=100)),F}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(c){var l=this.state,y=l.currentIndex,C=l.currentSlideOffset,_=l.slideStyle,E=this.props,q=E.infinite,U=E.items,Y=E.useTranslate3D,D=E.isRTL,z=-100*y,F=U.length-1,$=(z+100*c)*(D?-1:1)+C;q&&U.length>2&&(y===0&&c===F?$=-100*(D?-1:1)+C:y===F&&c===0&&($=100*(D?-1:1)+C)),q&&U.length===2&&($=this.getTranslateXForTwoSlide(c));var X="translate(".concat($,"%, 0)");return Y&&(X="translate3d(".concat($,"%, 0, 0)")),wr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:X,MozTransform:X,msTransform:X,OTransform:X,transform:X},_)}},{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,E=_.thumbsTranslate,q=_.thumbsStyle,U=C?-1*E:E;return this.isThumbnailVertical()?(c="translate(0, ".concat(E,"px)"),y&&(c="translate3d(0, ".concat(E,"px, 0)"))):(c="translate(".concat(U,"px, 0)"),y&&(c="translate3d(".concat(U,"px, 0, 0)"))),wr({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,E=y.onClick,q=y.lazyLoad,U=y.onTouchMove,Y=y.onTouchEnd,D=y.onTouchStart,z=y.onMouseOver,F=y.onMouseLeave,$=y.renderItem,X=y.renderThumbInner,ne=y.showThumbnails,ce=y.showBullets,Se=[],ve=[],fe=[];return C.forEach(function(le,re){var Le=c.getAlignmentClassName(re),st=le.originalClass?" ".concat(le.originalClass):"",at=le.thumbnailClass?" ".concat(le.thumbnailClass):"",Me=le.renderItem||$||c.renderItem,$e=le.renderThumbInner||X||c.renderThumbInner,Re=!q||Le||c.lazyLoaded[re];Re&&q&&!c.lazyLoaded[re]&&(c.lazyLoaded[re]=!0);var Je=c.getSlideStyle(re),lt=f().createElement("div",{"aria-label":"Go to Slide ".concat(re+1),key:"slide-".concat(re),tabIndex:"-1",className:"image-gallery-slide ".concat(Le," ").concat(st),style:Je,onClick:E,onKeyUp:c.handleSlideKeyUp,onTouchMove:U,onTouchEnd:Y,onTouchStart:D,onMouseOver:z,onFocus:z,onMouseLeave:F,role:"button"},Re?Me(le):f().createElement("div",{style:{height:"100%"}}));if(Se.push(lt),ne&&le.thumbnail){var Ze=m("image-gallery-thumbnail",at,{active:l===re});ve.push(f().createElement("button",{key:"thumbnail-".concat(re),type:"button",tabIndex:"0","aria-pressed":l===re?"true":"false","aria-label":"Go to Slide ".concat(re+1),className:Ze,onMouseLeave:_?c.onThumbnailMouseLeave:null,onMouseOver:function(je){return c.handleThumbnailMouseOver(je,re)},onFocus:function(je){return c.handleThumbnailMouseOver(je,re)},onKeyUp:function(je){return c.handleThumbnailKeyUp(je,re)},onClick:function(je){return c.onThumbnailClick(je,re)}},$e(le)))}if(ce){var ct=m("image-gallery-bullet",le.bulletClass,{active:l===re});fe.push(f().createElement("button",{type:"button",key:"bullet-".concat(re),className:ct,onClick:function(je){return c.onBulletClick(je,re)},"aria-pressed":l===re?"true":"false","aria-label":"Go to Slide ".concat(re+1)}))}}),{slides:Se,thumbnails:ve,bullets:fe}}},{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,E=_.disableSwipe,q=_.stopPropagation,U=this.state,Y=U.galleryWidth,D=U.isTransitioning,z=U.swipingUpDown,F=U.swipingLeftRight;if(C!==Ye&&C!==Be&&!z||F){if(C!==Ge&&C!==We||F||this.setState({swipingLeftRight:!0}),!E){var $=this.props.swipingTransitionDuration;if(q&&l.preventDefault(),D)this.setState({currentSlideOffset:0});else{var X=C===We?1:-1,ne=y/Y*100;Math.abs(ne)>=100&&(ne=100);var ce={transition:"transform ".concat($,"ms ease-out")};this.setState({currentSlideOffset:X*ne,slideStyle:ce})}}}else z||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,y=c.absX,C=c.absY,_=c.dir,E=this.props,q=E.stopPropagation,U=E.swipingThumbnailTransitionDuration,Y=this.state,D=Y.thumbsSwipedTranslate,z=Y.thumbnailsWrapperHeight,F=Y.thumbnailsWrapperWidth,$=Y.swipingUpDown,X=Y.swipingLeftRight;if(this.isThumbnailVertical()){if((_===Ge||_===We||X)&&!$)return void(X||this.setState({swipingLeftRight:!0}));_!==Ye&&_!==Be||$||this.setState({swipingUpDown:!0})}else{if((_===Ye||_===Be||$)&&!X)return void($||this.setState({swipingUpDown:!0}));_!==Ge&&_!==We||X||this.setState({swipingLeftRight:!0})}var ne,ce,Se,ve,fe,le=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(ne=D+(_===Be?C:-C),ce=le.scrollHeight-z+20,Se=Math.abs(ne)>ce,ve=ne>20,fe=le.scrollHeight<=z):(ne=D+(_===We?y:-y),ce=le.scrollWidth-F+20,Se=Math.abs(ne)>ce,ve=ne>20,fe=le.scrollWidth<=F),!fe&&(_!==Ge&&_!==Ye||!Se)&&(_!==We&&_!==Be||!ve)){q&&l.stopPropagation();var re={transition:"transform ".concat(U,"ms ease-out")};this.setState({thumbsTranslate:ne,thumbsStyle:re})}}},{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,E=_.disableSwipe,q=_.stopPropagation,U=_.flickThreshold;if(!E){var Y=this.props.isRTL;q&&l.stopPropagation(),this.resetSwipingDirection();var D=(y===Ge?1:-1)*(Y?-1:1),z=C>U&&!(y===Ye||y===Be);this.handleOnSwipedTo(D,z)}}},{key:"handleOnSwipedTo",value:function(c,l){var y=this.state,C=y.currentIndex,_=y.isTransitioning,E=C;!this.sufficientSwipe()&&!l||_||(E+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(E=C),this.unthrottledSlideToIndex(E)}},{key:"handleTouchMove",value:function(c){this.state.swipingLeftRight&&c.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(c){var l=this.props,y=l.disableKeyDown,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 ar(he(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 ar(he(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,E=this.props,q=E.items,U=E.slideDuration,Y=E.onBeforeSlide;if(!_){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var D=q.length-1,z=c;c<0?z=D:c>D&&(z=0),Y&&z!==C&&Y(z),this.setState({previousIndex:C,currentIndex:z,isTransitioning:z!==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,E=this.props.items,q=C+(l==="left"?-1:1);_||(E.length===2?this.slideToIndexWithStyleReset(q,c):this.slideToIndex(q,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var y=this,C=this.state,_=C.currentIndex,E=C.currentSlideOffset;this.setState({currentSlideOffset:E+(_>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){Tr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){Tr(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;jr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;jr.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,E=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(C,_)),y&&c&&y(E))}},{key:"pause",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props.onPause,y=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),l&&c&&l(y))}},{key:"isImageLoaded",value:function(c){return!!this.loadedImages[c.original]||(this.loadedImages[c.original]=!0,!1)}},{key:"handleImageLoaded",value:function(c,l){var y=this.props.onImageLoad;!this.loadedImages[l]&&y&&(this.loadedImages[l]=!0,y(c))}},{key:"renderItem",value:function(c){var l=this.state.isFullscreen,y=this.props.onImageError||this.handleImageError;return f().createElement(go,{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,E=this.props,q=E.additionalClass,U=E.disableThumbnailSwipe,Y=E.indexSeparator,D=E.isRTL,z=E.items,F=E.thumbnailPosition,$=E.renderFullscreenButton,X=E.renderCustomControls,ne=E.renderLeftNav,ce=E.renderRightNav,Se=E.showBullets,ve=E.showFullscreenButton,fe=E.showIndex,le=E.showThumbnails,re=E.showNav,Le=E.showPlayButton,st=E.renderPlayPauseButton,at=this.getThumbnailStyle(),Me=this.getSlideItems(),$e=Me.slides,Re=Me.thumbnails,Je=Me.bullets,lt=m("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(F),{"image-gallery-rtl":D}),Ze=f().createElement("div",{ref:this.imageGallerySlideWrapper,className:lt},X&&X(),this.canSlide()?f().createElement(f().Fragment,null,re&&f().createElement(f().Fragment,null,ne(this.slideLeft,!this.canSlideLeft()),ce(this.slideRight,!this.canSlideRight())),f().createElement(vr,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},f().createElement("div",{className:"image-gallery-slides"},$e))):f().createElement("div",{className:"image-gallery-slides"},$e),Le&&st(this.togglePlay,_),Se&&f().createElement("div",{className:"image-gallery-bullets"},f().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Je)),ve&&$(this.toggleFullScreen,y),fe&&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"},Y),f().createElement("span",{className:"image-gallery-index-total"},z.length))),ct=m("image-gallery",q,{"fullscreen-modal":C}),je=m("image-gallery-content",this.getThumbnailPositionClassName(F),{fullscreen:y}),_o=m("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(F),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&D},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!U},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!U});return f().createElement("div",{ref:this.imageGallery,className:ct,"aria-live":"polite"},f().createElement("div",{className:je},(F==="bottom"||F==="right")&&Ze,le&&Re.length>0?f().createElement(vr,{className:_o,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:at,"aria-label":"Thumbnail Navigation"},Re))):null,(F==="top"||F==="left")&&Ze))}}],p&&Oo(a.prototype,p),Object.defineProperty(a,"prototype",{writable:!1}),J}(f().Component);sn.propTypes={flickThreshold:k.number,items:(0,k.arrayOf)((0,k.shape)({bulletClass:k.string,bulletOnClick:k.func,description:k.string,original:k.string,originalHeight:k.number,originalWidth:k.number,loading:k.string,thumbnailHeight:k.number,thumbnailWidth:k.number,thumbnailLoading:k.string,fullscreen:k.string,originalAlt:k.string,originalTitle:k.string,thumbnail:k.string,thumbnailAlt:k.string,thumbnailLabel:k.string,thumbnailTitle:k.string,originalClass:k.string,thumbnailClass:k.string,renderItem:k.func,renderThumbInner:k.func,imageSet:Eo,srcSet:k.string,sizes:k.string})).isRequired,showNav:k.bool,autoPlay:k.bool,lazyLoad:k.bool,infinite:k.bool,showIndex:k.bool,showBullets:k.bool,showThumbnails:k.bool,showPlayButton:k.bool,showFullscreenButton:k.bool,disableThumbnailScroll:k.bool,disableKeyDown:k.bool,disableSwipe:k.bool,disableThumbnailSwipe:k.bool,useBrowserFullscreen:k.bool,onErrorImageURL:k.string,indexSeparator:k.string,thumbnailPosition:(0,k.oneOf)(["top","bottom","left","right"]),startIndex:k.number,slideDuration:k.number,slideInterval:k.number,slideOnThumbnailOver:k.bool,swipeThreshold:k.number,swipingTransitionDuration:k.number,swipingThumbnailTransitionDuration:k.number,onSlide:k.func,onBeforeSlide:k.func,onScreenChange:k.func,onPause:k.func,onPlay:k.func,onClick:k.func,onImageLoad:k.func,onImageError:k.func,onTouchMove:k.func,onTouchEnd:k.func,onTouchStart:k.func,onMouseOver:k.func,onMouseLeave:k.func,onBulletClick:k.func,onThumbnailError:k.func,onThumbnailClick:k.func,renderCustomControls:k.func,renderLeftNav:k.func,renderRightNav:k.func,renderPlayPauseButton:k.func,renderFullscreenButton:k.func,renderItem:k.func,renderThumbInner:k.func,stopPropagation:k.bool,additionalClass:k.string,useTranslate3D:k.bool,isRTL:k.bool,useWindowKeyDown:k.bool},sn.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(wo,{onClick:d,disabled:a})},renderRightNav:function(d,a){return f().createElement(So,{onClick:d,disabled:a})},renderPlayPauseButton:function(d,a){return f().createElement(ko,{onClick:d,isPlaying:a})},renderFullscreenButton:function(d,a){return f().createElement(xo,{onClick:d,isFullscreen:a})},useWindowKeyDown:!0};const Io=sn})(),u})())})(Di);var Ka=Di.exports;const Ua=zo(Ka);function qa(){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,j;(S=m)==null||S.entryCallbacks.set(w,x),(j=m)==null||j.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 Va="0px",Ga=[0],Ya=qa();function Xa(e){var t,n,r=(t=e==null?void 0:e.rootMargin)!=null?t:Va,i=(n=e==null?void 0:e.threshold)!=null?n:Ga,s=L.useRef(null),u=L.useRef(null),h=L.useRef(null),m=L.useState(),g=m[0],f=m[1],v=L.useCallback(function(){var j=s.current;if(!j){f(void 0);return}var R=Ya.getObserver({root:u.current,rootMargin:r,threshold:i});R.observe(j,function(T){f(T)}),h.current=R},[r,i]),w=L.useCallback(function(){var j=h.current,R=s.current;R&&(j==null||j.unobserve(R)),h.current=null},[]),x=L.useCallback(function(j){w(),s.current=j,v()},[v,w]),S=L.useCallback(function(j){w(),u.current=j,v()},[v,w]);return[x,{entry:g,rootRef:S}]}function En(){return En=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},En.apply(this,arguments)}function Qa(e){var t,n=Xa(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),u=L.useState(s),h=u[0],m=u[1];return s&&!h&&m(!0),[r,En({},i,{isVisible:s,wasEverVisible:h})]}var Ja=100;function Za(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,u=e.delayInMs,h=u===void 0?Ja:u,m=Qa({rootMargin:i}),g=m[0],f=m[1],v=f.rootRef,w=f.isVisible,x=!s&&!t&&w&&n;return L.useEffect(function(){if(x){var S=setTimeout(function(){r()},h);return function(){clearTimeout(S)}}},[r,x,h]),[g,{rootRef:v}]}const el={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"/>'},tl={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 un=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function dn(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function zi(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 Fi(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 nl(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 Vn={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,"-":un?173:189,"=":un?61:187,";":un?59:186,"'":222,"[":219,"]":221,"\\":220},Ne={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},In={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},pe={16:!1,18:!1,17:!1,91:!1},de={};for(var Rt=1;Rt<20;Rt++)Vn["f".concat(Rt)]=111+Rt;var ae=[],Yr=!1,Ni="all",Ai=[],Yt=function(t){return Vn[t.toLowerCase()]||Ne[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Wi(e){Ni=e||"all"}function wt(){return Ni||"all"}function rl(){return ae.slice(0)}function il(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 ol(e){return typeof e=="string"&&(e=Yt(e)),ae.indexOf(e)!==-1}function sl(e,t){var n,r;e||(e=wt());for(var i in de)if(Object.prototype.hasOwnProperty.call(de,i))for(n=de[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;wt()===e&&Wi(t||"all")}function al(e){var t=e.keyCode||e.which||e.charCode,n=ae.indexOf(t);if(n>=0&&ae.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ae.splice(0,ae.length),(t===93||t===224)&&(t=91),t in pe){pe[t]=!1;for(var r in Ne)Ne[r]===t&&(Te[r]=!1)}}function ll(e){if(typeof e>"u")Object.keys(de).forEach(function(u){return delete de[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&hn(u)});else if(typeof e=="object")e.key&&hn(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=""),hn({key:e,scope:i,method:s,splitKey:"+"})}}var hn=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,u=s===void 0?"+":s,h=Fi(n);h.forEach(function(m){var g=m.split(u),f=g.length,v=g[f-1],w=v==="*"?"*":Yt(v);if(de[w]){r||(r=wt());var x=f>1?zi(Ne,g):[];de[w]=de[w].filter(function(S){var j=i?S.method===i:!0;return!(j&&S.scope===r&&nl(S.mods,x))})}})};function Xr(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 pe)Object.prototype.hasOwnProperty.call(pe,s)&&(!pe[s]&&t.mods.indexOf(+s)>-1||pe[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!pe[16]&&!pe[18]&&!pe[17]&&!pe[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 Qr(e,t){var n=de["*"],r=e.keyCode||e.which||e.charCode;if(Te.filter.call(this,e)){if((r===93||r===224)&&(r=91),ae.indexOf(r)===-1&&r!==229&&ae.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var j=In[S];e[S]&&ae.indexOf(j)===-1?ae.push(j):!e[S]&&ae.indexOf(j)>-1?ae.splice(ae.indexOf(j),1):S==="metaKey"&&e[S]&&ae.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ae=ae.slice(ae.indexOf(j))))}),r in pe){pe[r]=!0;for(var i in Ne)Ne[i]===r&&(Te[i]=!0);if(!n)return}for(var s in pe)Object.prototype.hasOwnProperty.call(pe,s)&&(pe[s]=e[In[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ae.indexOf(17)===-1&&ae.push(17),ae.indexOf(18)===-1&&ae.push(18),pe[17]=!0,pe[18]=!0);var u=wt();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)&&Xr(e,n[h],u,t);if(r in de){for(var m=0;m<de[r].length;m++)if((e.type==="keydown"&&de[r][m].keydown||e.type==="keyup"&&de[r][m].keyup)&&de[r][m].key){for(var g=de[r][m],f=g.splitKey,v=g.key.split(f),w=[],x=0;x<v.length;x++)w.push(Yt(v[x]));w.sort().join("")===ae.sort().join("")&&Xr(e,g,u,t)}}}}function cl(e){return Ai.indexOf(e)>-1}function Te(e,t,n){ae=[];var r=Fi(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=zi(Ne,e)),e=e[e.length-1],e=e==="*"?"*":Yt(e),e in de||(de[e]=[]),de[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"&&!cl(u)&&window&&(Ai.push(u),dn(u,"keydown",function(w){Qr(w,u)},v),Yr||(Yr=!0,dn(window,"focus",function(){ae=[]},v)),dn(u,"keyup",function(w){Qr(w,u),al(w)},v))}function ul(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(de).forEach(function(n){var r=de[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var fn={setScope:Wi,getScope:wt,deleteScope:sl,getPressedKeyCodes:rl,isPressed:ol,filter:il,trigger:ul,unbind:ll,keyMap:Vn,modifier:Ne,modifierMap:In};for(var pn in fn)Object.prototype.hasOwnProperty.call(fn,pn)&&(Te[pn]=fn[pn]);if(typeof window<"u"){var dl=window.hotkeys;Te.noConflict=function(e){return e&&window.hotkeys===Te&&(window.hotkeys=dl),Te},window.hotkeys=Te}Te.filter=function(){return!0};var Bi=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},hl=function(t){return Bi(t,["INPUT","TEXTAREA","SELECT"])};function fl(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,j=L.useRef(null),R=L.useCallback(function(T,O){var P,A;return u&&!u(T)?!f:hl(T)&&!Bi(T,s)||(P=T.target)!=null&&P.isContentEditable&&!S?!0:j.current===null||document.activeElement===j.current||(A=j.current)!=null&&A.contains(document.activeElement)?(t(T,O),!0):!1},r?[j,s,u].concat(r):[j,s,u]);return L.useEffect(function(){if(!w){Te.unbind(e,R);return}return h&&m!==!0&&(n.keydown=!1),Te(e,n||{},R),function(){return Te.unbind(e,R)}},[R,e,w]),j}Te.isPressed;const $i=L.createContext({open:!1,toggleOpen:e=>{}});function pl({children:e}){const[t,n]=L.useState(!1),r=s=>{n(s??!s)},i=L.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx($i.Provider,{value:i,children:e})}function Gn(){return L.useContext($i)}const Ce={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,currentPage:1,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",explorePath:"/api/blocklets/explore",exploreDidsPath:"/api/blocklets/dids",cacheSize:100},ml=e=>St(async()=>{const{data:t}=await e.get(Ce.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function gl(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...Bo(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(an(m,g=>g===""||g===void 0))};return{filters:e,cleanFilter:h=>{const m=h?an(n,(g,f)=>h.includes(f)):{};r(an(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 bl=(e,t,n)=>e&&t||!n,Hi=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Ki=(e,t,n)=>{var r,i;const s=Uo(e),u=qo(s.search);if((r=Vo(e,{strict:!0}))!=null&&r.endsWith(".gif"))return u.imageFilter?Go({...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 Dn(e,{...m||g?{imageFilter:"resize",w:m,h:g}:{},v:h})},yl=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],vl=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),xl=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},wl=(e,t)=>e==null?void 0:e.replace(/{(\w*)}/g,(n,r)=>t.hasOwnProperty(r)?t[r]:""),Sl=()=>window.innerWidth<=600,kl={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}"'}},jl={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}” 的所有搜索结果"}},mn={en:Ir(kl),zh:Ir(jl)},Ui=(e,t)=>{const n={};return e&&(n["x-blocklet-server-version"]=e),t&&(n["x-blocklet-store-version"]=t),n},Tl=e=>(t,n)=>{const r=mn[e]?mn[e][t]:mn.en[t];return wl(r,n)||t},qi={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:()=>{}}},Vi=L.createContext(qi),{Provider:Ol,Consumer:Fc}=Vi;function Cl(e){const{locale:t="zh",filters:n={},serverVersion:r="",onFilterChange:i=()=>{},minItemWidth:s=350,queryFilter:u=!0,layout:h={},wrapChildren:m=se=>se,extraFilter:g=se=>se,baseSearch:f=!1,fetchCategoryDelay:v=0,showResourcesSwitch:w=!1,showCategory:x=!0,tagFilters:S=[],children:j,storeVersion:R,onSearchSelect:T=()=>{},endpoint:O,blockletRender:P,compact:A=!1}=e,V=Ui(r,R),B=L.useMemo(()=>oi({baseURL:O,headers:V}),[O]),K=gl(n,{onFilterChange:i,emptyCategory:!h.showExplore,onSearchSelect:T}),[ee,ie]=L.useState(""),{data:H=[],error:Ee,loading:ge,run:ke}=ml(B),be=L.useMemo(()=>{const se=ws(H,[te=>te.name],["asc"]),oe=se.findIndex(te=>te.name==="All"||te.locales.en==="All");return oe>-1?[{...se[oe],_id:"All"},...se.slice(0,oe),...se.slice(oe+1)]:se},[H]),ye=L.useCallback(Tl(t),[t]),N=L.useMemo(()=>vl(be,t),[be,t]),Q=yl(ye),he={search:K,compact:A,errors:{fetchCategoriesError:Ee},loadings:{fetchCategoriesLoading:ge},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:ye,storeVersion:R,serverVersion:r,selectedCategory:K.filters.category||(h.showExplore?"":"All"),categoryList:be,blockletRender:P,locale:t,categoryOptions:N,priceOptions:Q,storeApi:B,baseSearch:f,showResourcesSwitch:w,showCategory:x,tagFilters:S,onFilterChange:i,getCategoryLocale:se=>{if(!se)return null;const oe=H.find(te=>te._id===se||te.locales.en==="All");return oe?oe.locales[t]||oe.locales.en:null},get developerName(){return ee},updateDeveloperName:ie};return L.useEffect(()=>{setTimeout(ke,v||0)},[O,ke,v]),o.jsx(Ol,{value:he,children:j})}function we(){return L.useContext(Vi)||qi}function Gi({children:e,onClick:t,size:n=32,...r}){return o.jsx(Oe,{...r,onClick:t,variant:"outlined",sx:[{minWidth:n,height:n,p:0,borderColor:"divider","&:hover":{borderColor:"divider"},borderRadius:2,color:"text.secondary"},...Array.isArray(r.sx)?r.sx:[r.sx]],children:e})}function Pt(e,t){return e===void 0?t:e}function Yn({xs:e,sm:t,md:n,lg:r,xl:i,exact:s}){const u=Ue(),h=tt(u.breakpoints.down("sm")),m=tt(u.breakpoints.between("sm","md")),g=tt(u.breakpoints.between("md","lg")),f=tt(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=Pt(t,v),m)||(v=Pt(n,v),g)||(v=Pt(r,v),f)?v:Pt(i,v)}function El({children:e}){const{open:t,toggleOpen:n}=Gn();return o.jsx(Yn,{xs:o.jsx(Ho,{open:t,onClose:()=>n(!1),children:e}),md:o.jsx(G,{children:e})})}const Il=L.forwardRef(({loading:e,disabled:t,...n},r)=>o.jsx(Oe,{ref:r,disableElevation:!0,disabled:t||e,...n,sx:[{borderRadius:"4px"},...Array.isArray(n.sx)?n.sx:[n.sx]],startIcon:e&&o.jsx(Pe,{size:"1em"})}));function _n({value:e,options:t,onChange:n,placeholder:r,...i}){var s;const u=L.useRef(null),h=Ue(),[m,g]=L.useState(!1),[f,v]=L.useState(e!==null?e:""),w=tt(h.breakpoints.down("sm"));L.useEffect(()=>{v(e!==null?e:"")},[e]);const x=L.useCallback(()=>{g(!1)},[]),S=L.useCallback(()=>{g(!0)},[]);function j(T){v(T.value),n(T.value),w&&x()}function R(T){return T===f}return o.jsxs(o.Fragment,{children:[o.jsxs(_l,{ref:u,onClick:S,variant:"outlined",size:"medium",className:["my-select__selector",Yo(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(Xo,{className:"my-select__arrowdown",component:Mi,sx:{width:18,height:18}})]}),o.jsx(Qo,{open:m,anchorEl:u.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:T,placement:O})=>o.jsx(Jo,{...T,style:{transformOrigin:O==="bottom"?"center top":"center bottom"},children:o.jsx(Zo,{children:o.jsx(es,{onClickAway:x,children:o.jsx(Rl,{autoFocusItem:m,onMouseEnter:S,onMouseLeave:x,children:t.map(P=>o.jsxs(At,{onClick:()=>j(P),sx:{fontSize:14},children:[o.jsx(ts,{sx:{mr:1,fontSize:16,visibility:R(P.value)?"visible":"hidden"}}),P.name]},P.value))})})})})})]})}const _l=Ae(Il)`
|
|
3
3
|
border: 1px solid ${e=>e.theme.palette.divider};
|
|
4
4
|
padding: 6px 8px 6px 12px;
|