@abtnode/webapp 1.16.44-beta-20250516-225119-c0b5ec8d → 1.16.44-beta-20250520-004606-6cd8a0d3
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-Hu_1QWFw.js → AdapterDayjs-C79-iXnA.js} +6 -6
- package/dist/assets/{Add-B-whK8Og.js → Add-Dr17acvQ.js} +1 -1
- package/dist/assets/{ArrowDropDown-D24TTMvH.js → ArrowDropDown-BeVQ7W_f.js} +1 -1
- package/dist/assets/{Autocomplete-CHlN80bM.js → Autocomplete-Dxuf1ndW.js} +1 -1
- package/dist/assets/{Breadcrumbs-Do80FKEd.js → Breadcrumbs-m3ZWWS-Y.js} +1 -1
- package/dist/assets/{ButtonGroup-BJpKQaa5.js → ButtonGroup-D8iCR_UA.js} +1 -1
- package/dist/assets/{CSSTransition-CL3Ps2jl.js → CSSTransition-DMBk20B6.js} +1 -1
- package/dist/assets/{CallMerge-6gNoogQf.js → CallMerge-CuhH8Rfn.js} +1 -1
- package/dist/assets/CardContent-BhT4vmBc.js +1 -0
- package/dist/assets/{ChevronLeft-DCgw7PVK.js → ChevronLeft-DRnsqgri.js} +1 -1
- package/dist/assets/{ChevronRight-BkDmz6Jp.js → ChevronRight-BUxNE2e8.js} +1 -1
- package/dist/assets/{Clear-CH1dCzcl.js → Clear-DiiXyvpY.js} +1 -1
- package/dist/assets/{Close-qBNbi4Ug.js → Close-Cx2b036Y.js} +1 -1
- package/dist/assets/{Community-C7i42E2Q.js → Community-DT6H5xHG.js} +1 -1
- package/dist/assets/{Delete-CgPI_eC5.js → Delete-Db12JNaW.js} +1 -1
- package/dist/assets/{Delete-DliA3mdg.js → Delete-DibgMbRa.js} +1 -1
- package/dist/assets/{DeleteOutline-Cx4fsGxu.js → DeleteOutline-vkCr-A0J.js} +1 -1
- package/dist/assets/{Done-DNcp5cRU.js → Done-CDp0yF_G.js} +1 -1
- package/dist/assets/{Edit-WMHj4INs.js → Edit-CQIAI4Xx.js} +1 -1
- package/dist/assets/{ErrorOutline-CBbwlMhr.js → ErrorOutline-DCAxmStN.js} +1 -1
- package/dist/assets/{HelpOutline-9IHMC0WQ.js → HelpOutline-4rllQwkH.js} +1 -1
- package/dist/assets/{Holiday-C8LY8_Xa.js → Holiday-Bhfc8ari.js} +1 -1
- package/dist/assets/{Launch-Dw-I3nnd.js → Launch-Dss7Qu-X.js} +1 -1
- package/dist/assets/{Link-e5N_7Dtu.js → Link-BL98xVyl.js} +1 -1
- package/dist/assets/{ListItemButton-glXjZswW.js → ListItemButton-CalO7fFj.js} +1 -1
- package/dist/assets/{ListSubheader-q3nAde5e.js → ListSubheader-CZoW0Yjm.js} +1 -1
- package/dist/assets/{LoadingButton-BXZL61GP.js → LoadingButton-C1tBqNRZ.js} +1 -1
- package/dist/assets/{LockIcon-BJD4BUmY.js → LockIcon-BIs3NFsi.js} +1 -1
- package/dist/assets/{Meeting-Bzs1L390.js → Meeting-DElinHPN.js} +1 -1
- package/dist/assets/{MoreHoriz-BPa-vzup.js → MoreHoriz-BamWxTeP.js} +1 -1
- package/dist/assets/{MoreVert-ygAE5zXH.js → MoreVert-BrdZPzwo.js} +1 -1
- package/dist/assets/{OffSick-CzZuC8-v.js → OffSick-PL_bKC4S.js} +1 -1
- package/dist/assets/{OpenInNew-BIkhjwqJ.js → OpenInNew-DXZU9TBc.js} +1 -1
- package/dist/assets/{Public-Dxdvvihr.js → Public-Dr1m2N7G.js} +1 -1
- package/dist/assets/{Refresh-9g5ukYUh.js → Refresh-VxrYYzfd.js} +1 -1
- package/dist/assets/{SchemaReference.es-rTtLb9nE.js → SchemaReference.es-Bm8CNcXG.js} +1 -1
- package/dist/assets/{Search-BWfKoeW0.js → Search-DqihVCic.js} +1 -1
- package/dist/assets/{Slider-X_Dbeb_B.js → Slider-B8HWvhga.js} +1 -1
- package/dist/assets/{Stepper-CAwK24YR.js → Stepper-BCrOaECo.js} +1 -1
- package/dist/assets/{Switch-B_ZA3R4H.js → Switch-CIGEpWB6.js} +1 -1
- package/dist/assets/{TableRow-LUYIbYYH.js → TableRow-DSBApqUZ.js} +1 -1
- package/dist/assets/{TableSearch-DryNoX9z.js → TableSearch-C3sQDzER.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-vsVyuLtl.js → ToggleButtonGroup-2wE1N-s9.js} +1 -1
- package/dist/assets/{Verified-BDGlFDHV.js → Verified-DAT8F9n5.js} +1 -1
- package/dist/assets/{VerifiedUser-CahjDQlN.js → VerifiedUser-BzqFFroG.js} +1 -1
- package/dist/assets/{ViewColumn-Y-NBF0dy.js → ViewColumn-DZ8hNz9g.js} +1 -1
- package/dist/assets/{ViewList-Bd5d0iY_.js → ViewList-B52x_JLH.js} +1 -1
- package/dist/assets/{WorkingRemotely-9hVl1hvM.js → WorkingRemotely-Cr2dx3vw.js} +1 -1
- package/dist/assets/{_createAggregator-DLtLS5ot.js → _createAggregator-CtUq-Bm1.js} +1 -1
- package/dist/assets/{actions-BhwFbvNf.js → actions-CSIY5MjI.js} +1 -1
- package/dist/assets/{actions-CQrliwxs.js → actions-pkMFjLzT.js} +2 -2
- package/dist/assets/{agreement-DOCzlZYK.js → agreement-D5AaipUa.js} +5 -5
- package/dist/assets/api-CWQIMtn6.js +1 -0
- package/dist/assets/{appearance-Bj48z57w.js → appearance-Rsnizthu.js} +1 -1
- package/dist/assets/{ar-2yn9i2dw.js → ar-C_INBNFD.js} +1 -1
- package/dist/assets/{audit-logs-DZxZnVwe.js → audit-logs-DuYx96S8.js} +1 -1
- package/dist/assets/blocklet-Ca7hIY9r.js +1 -0
- package/dist/assets/{brace-fold.es-CwvOFnq9.js → brace-fold.es-BbuUT1bx.js} +1 -1
- package/dist/assets/{chain-DW6-BOPV.js → chain-lJbBI8lt.js} +2 -2
- package/dist/assets/{click-to-copy-NkGN8EyZ.js → click-to-copy-DunM7RYV.js} +1 -1
- package/dist/assets/cloneDeep-B7rgkTOg.js +1 -0
- package/dist/assets/{closebrackets.es-DrjVd75R.js → closebrackets.es-iBNy7XLq.js} +1 -1
- package/dist/assets/{codemirror.es-DQ3ePCqU.js → codemirror.es-olwlvV8O.js} +1 -1
- package/dist/assets/{collapse-FkL4URhV.js → collapse-pVfCVGsT.js} +1 -1
- package/dist/assets/{comment.es-DlV3kW-O.js → comment.es-CYuI6LGK.js} +1 -1
- package/dist/assets/{config-navigation-BijLYy-F.js → config-navigation-DCerXksA.js} +3 -3
- package/dist/assets/{connect-to-Vc7E5-UM.js → connect-to-PXHcA1x_.js} +1 -1
- package/dist/assets/{de-CEKbJD3-.js → de-EYXdEi3Y.js} +1 -1
- package/dist/assets/{delete-confirm-WhK8nGuj.js → delete-confirm-CKJM7oLk.js} +1 -1
- package/dist/assets/{detail-Df6H4ZPs.js → detail-Dg3I6B4n.js} +3 -3
- package/dist/assets/{dialog.es-xMJKI9Lh.js → dialog.es-D824_H5X.js} +1 -1
- package/dist/assets/domains-NOopC5Rf.js +28 -0
- package/dist/assets/{download-BLbVLPTB.js → download-B2axstvn.js} +1 -1
- package/dist/assets/emotion-react.browser.esm-CH67Z3jf.js +1 -0
- package/dist/assets/{es-dvMygD-W.js → es-3jqVamM8.js} +1 -1
- package/dist/assets/{foldgutter.es-B_-xDjtB.js → foldgutter.es-9QgJOpar.js} +1 -1
- package/dist/assets/{fr-BvFd5xp9.js → fr-CUcR-yNv.js} +1 -1
- package/dist/assets/{get-safe-url-BJSiqBsp.js → get-safe-url-BswgeNVU.js} +1 -1
- package/dist/assets/{get-safe-url-M6nGqKp3.js → get-safe-url-BwrYOF2l.js} +1 -1
- package/dist/assets/getValidReactChildren-2WQ5-6h6.js +1 -0
- package/dist/assets/hi-DNldhMTl.js +5 -0
- package/dist/assets/{hint.es-Du2uNLDf.js → hint.es-Bg3Bg91x.js} +1 -1
- package/dist/assets/{hint.es2-DfyQQrQH.js → hint.es2-CtVGSKy-.js} +1 -1
- package/dist/assets/{id-B1Mq_eQI.js → id-CmSIFhX-.js} +1 -1
- package/dist/assets/{iframe-uzgOIcHS.js → iframe-D8EuM9FZ.js} +1 -1
- package/dist/assets/{index-Bb_ZoBt1.js → index-1fHL4NLA.js} +1 -1
- package/dist/assets/{index-CED3Eqhn.js → index-3hUI0XWj.js} +1 -1
- package/dist/assets/{index-M-c0W-SQ.js → index-7AfdoVCB.js} +1 -1
- package/dist/assets/{index-2NLfrlha.js → index-9SxmA2ZK.js} +1 -1
- package/dist/assets/{index-YTaSOOwL.js → index-B1T9zVyF.js} +1 -1
- package/dist/assets/{index-DrUjokqV.js → index-BSVtXZA5.js} +1 -1
- package/dist/assets/{index-Bmtcygi9.js → index-Bd6-uEej.js} +4 -4
- package/dist/assets/{index-Ducl-yvK.js → index-BgfI9oqP.js} +4 -4
- package/dist/assets/{index-DANmjPqe.js → index-BmTru3ER.js} +1 -1
- package/dist/assets/{index-idlXfnJU.js → index-BsaFIq1a.js} +1 -1
- package/dist/assets/{index-DX3h3jsX.js → index-BwcQ-v7n.js} +1 -1
- package/dist/assets/index-C1AeyTeh.js +1 -0
- package/dist/assets/{index-BkYiBMUu.js → index-C3nC1vZU.js} +1 -1
- package/dist/assets/index-C4GlctnC.js +87 -0
- package/dist/assets/{index-DTI4BkNW.js → index-CGargw6n.js} +9 -9
- package/dist/assets/{index-DgMghQir.js → index-CL9Vrgs0.js} +1 -1
- package/dist/assets/{index-BACNAzdg.js → index-CMAKmzMc.js} +11 -11
- package/dist/assets/{index-ChGWeAoT.js → index-CMPNSvEP.js} +1 -1
- package/dist/assets/{index-CjFBhX6R.js → index-CR29WT8-.js} +1 -1
- package/dist/assets/{index-DutylRlW.js → index-CRLGpfQP.js} +1 -1
- package/dist/assets/index-CT5y3MWl.js +155 -0
- package/dist/assets/{index-DuODXdGq.js → index-CVvuXYj2.js} +3 -3
- package/dist/assets/{index-Bq85UHN2.js → index-Cnc4xzOD.js} +1 -1
- package/dist/assets/{index-CjBp95Te.js → index-CrtwGdrB.js} +1 -1
- package/dist/assets/{index-SqBYmqJv.js → index-D2Z-mQN5.js} +3 -3
- package/dist/assets/{index-DKUpJiTq.js → index-D9LzJ8Wk.js} +12 -12
- package/dist/assets/index-D9dQPWQL.js +1 -0
- package/dist/assets/{index-Bo-N9ZZS.js → index-DDhjA_J6.js} +1 -1
- package/dist/assets/{index-DQIKAMuC.js → index-DJo_NuyL.js} +1 -1
- package/dist/assets/{index-DqvSsunq.js → index-DO0xkQta.js} +17 -17
- package/dist/assets/{index-Api0RkD_.js → index-DQsQI7y-.js} +1 -1
- package/dist/assets/index-DYNPc0x8.js +109 -0
- package/dist/assets/{index-B8GS99Wr.js → index-DjuHtL5I.js} +1 -1
- package/dist/assets/{index-hJGrUWVV.js → index-Dl2gy2lk.js} +1 -1
- package/dist/assets/{index-yA3tM1jB.js → index-DmdIxVQV.js} +1 -1
- package/dist/assets/{index-DMDws1yA.js → index-EiK_j914.js} +1 -1
- package/dist/assets/{index-CgUGS_Zn.js → index-GsLKPFh7.js} +5 -5
- package/dist/assets/{index-DY0rnIvQ.js → index-JLvEb6lq.js} +1 -1
- package/dist/assets/{index-G6hKL35m.js → index-L99IjMpo.js} +1 -1
- package/dist/assets/{index-DU8P3lNm.js → index-MaZo-0IY.js} +1 -1
- package/dist/assets/{index-C4b651ZQ.js → index-NkYFHo4Q.js} +1 -1
- package/dist/assets/{index-BLUexfy_.js → index-QcWYn0US.js} +1 -1
- package/dist/assets/{index-RCmuyDMR.js → index-U1KqpW6O.js} +1 -1
- package/dist/assets/{index-u0GcnVeV.js → index-fFK_YyO8.js} +1 -1
- package/dist/assets/{index-3KlQvd1f.js → index-g4Pa9QCu.js} +2 -2
- package/dist/assets/{index-BVT-ixIa.js → index-k4OGecmF.js} +1 -1
- package/dist/assets/{index-Cax1rLeF.js → index-lHULqi5l.js} +1 -1
- package/dist/assets/{index-IWXwGVVh.js → index-n0V_zECF.js} +2 -2
- package/dist/assets/{index-CR2gE5g2.js → index-rlAZJLp4.js} +1 -1
- package/dist/assets/{index.esm-BhU35G9C.js → index.esm-CvOsHG0z.js} +1 -1
- package/dist/assets/{info-addon.es-CPzyoWb4.js → info-addon.es-Cx99Eu34.js} +1 -1
- package/dist/assets/{info.es-D5-UslFk.js → info.es-r6G7pvuv.js} +1 -1
- package/dist/assets/{install-from-url-CvqMMCKo.js → install-from-url-CAMFT77K.js} +1 -1
- package/dist/assets/{invitation-qA5bVm--.js → invitation-a75PydJz.js} +6 -6
- package/dist/assets/is-path-prefix-equal-tP_Em7g6.js +1 -0
- package/dist/assets/item-MkdTA7ZR.js +277 -0
- package/dist/assets/{ja-CCKVmbEX.js → ja-D-vAGmH7.js} +1 -1
- package/dist/assets/{javascript.es-Bi4XiziU.js → javascript.es-3UOa6hAX.js} +1 -1
- package/dist/assets/{jump-to-line.es-BEhBaQVE.js → jump-to-line.es-DtpaMTlX.js} +1 -1
- package/dist/assets/{jump.es-D_HGlVff.js → jump.es-DhxXT_Sj.js} +1 -1
- package/dist/assets/{ko-A_w8tIEg.js → ko-DpdamIdS.js} +1 -1
- package/dist/assets/{lint.es-DXIQDiFW.js → lint.es-CsD0hQVi.js} +1 -1
- package/dist/assets/{lint.es2-T86XSfSx.js → lint.es2-DU2epyfs.js} +1 -1
- package/dist/assets/{lint.es3-QrsCURAc.js → lint.es3-CtwrSwHH.js} +1 -1
- package/dist/assets/{list-header-DbzM_GZd.js → list-header-DLHqbQMu.js} +1 -1
- package/dist/assets/{log-D1woDO46.js → log-T4Gys8TD.js} +2 -2
- package/dist/assets/{lottie-react.esm-5SHHR4Kh.js → lottie-react.esm-DE7PZzmM.js} +1 -1
- package/dist/assets/{matchbrackets.es-DkhIDR9b.js → matchbrackets.es-Cbfo0kGw.js} +1 -1
- package/dist/assets/{memory-D1fug3gB.js → memory-DnziUg0a.js} +1 -1
- package/dist/assets/{metric-ChZoSNSx.js → metric-CXeJ1pVj.js} +1 -1
- package/dist/assets/{mode.es-C7vpO80y.js → mode.es-81u6K4KX.js} +1 -1
- package/dist/assets/{mode.es2-BxPP91JH.js → mode.es2-CKKLFqL3.js} +1 -1
- package/dist/assets/{mode.es3-D3euCiUs.js → mode.es3-Bv3GIpLP.js} +1 -1
- package/dist/assets/omit-BS9HjQsW.js +1 -0
- package/dist/assets/{onlineParser.es-Dv3ojmYM.js → onlineParser.es-Dao3EmVs.js} +1 -1
- package/dist/assets/overview-CINcLtup.js +13 -0
- package/dist/assets/{permission-CIEFWkaR.js → permission-BY_usLPC.js} +1 -1
- package/dist/assets/{preference-CGZrxant.js → preference-CquEhb-_.js} +4 -4
- package/dist/assets/pt-CEcOQeEC.js +5 -0
- package/dist/assets/{raf-schd.esm-D2YdSSsT.js → raf-schd.esm-Ivpfp78X.js} +1 -1
- package/dist/assets/refType-CSs4l3lt.js +1 -0
- package/dist/assets/{resource-dialog-BUsD19Cy.js → resource-dialog-sYzuZVwE.js} +4 -4
- package/dist/assets/ru-83xhwzPD.js +5 -0
- package/dist/assets/{runtime-DmliCtHn.js → runtime-By4tJgnP.js} +1 -1
- package/dist/assets/{schema-Dcd_4PT9.js → schema-CIVGWbJp.js} +1 -1
- package/dist/assets/sdk-dj0ARauA.js +1 -0
- package/dist/assets/{search.es-Dq2R-yp_.js → search.es-BoSdwsl_.js} +1 -1
- package/dist/assets/{searchcursor.es-sSprtinS.js → searchcursor.es-CbyR05zG.js} +1 -1
- package/dist/assets/{service-CRQQROx3.js → service-mHOJi74L.js} +1 -1
- package/dist/assets/{shorten-label-C03p-pfG.js → shorten-label-Cx9WVX2w.js} +1 -1
- package/dist/assets/{show-hint.es-DT0uCiTE.js → show-hint.es-BBwAXg-d.js} +1 -1
- package/dist/assets/{simple-select-9Y5bam0M.js → simple-select-D8ZhRe5q.js} +1 -1
- package/dist/assets/{spaces-C11TOrvj.js → spaces-Cg3ymUIh.js} +1 -1
- package/dist/assets/{status-D0j9AxRu.js → status-D68KxBTS.js} +1 -1
- package/dist/assets/{status-D-H-SlzG.js → status-DdweCl-L.js} +1 -1
- package/dist/assets/{sublime.es-Dlq8qSkc.js → sublime.es-J03GHmnf.js} +1 -1
- package/dist/assets/{switch-control-CIiFijrf.js → switch-control-DSz3cmNm.js} +1 -1
- package/dist/assets/{table-icons-BviR-2XS.js → table-icons-CHCR_r_-.js} +1 -1
- package/dist/assets/{table-tips-D63O0ZjI.js → table-tips-CFO-Ys9P.js} +1 -1
- package/dist/assets/team-DeJfgyE0.js +1 -0
- package/dist/assets/th-BQLlyW1N.js +5 -0
- package/dist/assets/{toLower-BPzu2rPJ.js → toLower-CRFOnVAM.js} +1 -1
- package/dist/assets/toUpper-wDnuTnwH.js +1 -0
- package/dist/assets/{traffic-DMf28Jqy.js → traffic-CILl5dnV.js} +2 -2
- package/dist/assets/{url-evaluation-CiS0m0gE.js → url-evaluation-Cjrq8Y2H.js} +1 -1
- package/dist/assets/{url-join-CwE3EUnC.js → url-join-Mz1JcbbA.js} +1 -1
- package/dist/assets/{use-mobile-B6rWKjo_.js → use-mobile-CpVsXFoV.js} +1 -1
- package/dist/assets/{use-mobile-DQ4xY9vN.js → use-mobile-DK73qoH8.js} +1 -1
- package/dist/assets/{useAsync-BwpiQkh2.js → useAsync-BCZg9cpL.js} +1 -1
- package/dist/assets/useAsyncRetry-DBtDInVv.js +1 -0
- package/dist/assets/{useLocalStorage-yyXOU8sf.js → useLocalStorage-1IK8Xf3D.js} +1 -1
- package/dist/assets/{useThemeProps-DA06OkGc.js → useThemeProps-Btw9Aun5.js} +1 -1
- package/dist/assets/{util-DIcvOfJ0.js → util-ks9_6DYA.js} +1 -1
- package/dist/assets/vi-DgWAr6FA.js +5 -0
- package/dist/assets/{wait-container-DB7Fvl8u.js → wait-container-B7LdKBV0.js} +3 -3
- package/dist/assets/withStyles-DWVK59by.js +1 -0
- package/dist/assets/wrap-locale-DoH7AJX_.js +1 -0
- package/dist/assets/{zh-Cti0XXui.js → zh-BL80PoOh.js} +2 -2
- package/dist/assets/{zh-tw-BLcDG99i.js → zh-tw-Dg5z1DFE.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/CardContent-_VxRx6xT.js +0 -1
- package/dist/assets/api-B2krrsTm.js +0 -1
- package/dist/assets/blocklet-DMuA5PdQ.js +0 -1
- package/dist/assets/cloneDeep-B1r2JtFj.js +0 -1
- package/dist/assets/domains-BLjPj3AW.js +0 -28
- package/dist/assets/emotion-react.browser.esm-BPIpPz3P.js +0 -1
- package/dist/assets/getValidReactChildren-rb5pggFM.js +0 -1
- package/dist/assets/hi-C51yBXa5.js +0 -5
- package/dist/assets/index-B59U_Lup.js +0 -155
- package/dist/assets/index-BENdKQR9.js +0 -87
- package/dist/assets/index-C2b2CJyH.js +0 -1
- package/dist/assets/index-D40SuWQU.js +0 -109
- package/dist/assets/index-yQhfY-D-.js +0 -1
- package/dist/assets/is-path-prefix-equal-CP-xgvsY.js +0 -1
- package/dist/assets/item-6mCxa8bi.js +0 -277
- package/dist/assets/omit-CaeWYRyw.js +0 -1
- package/dist/assets/overview-Dha81GsQ.js +0 -13
- package/dist/assets/pt-7HHecjdA.js +0 -5
- package/dist/assets/refType-BtU4sc8V.js +0 -1
- package/dist/assets/ru-Bw8FVC4M.js +0 -5
- package/dist/assets/sdk-Bg9zUQQV.js +0 -1
- package/dist/assets/team-Bt5GsvTe.js +0 -1
- package/dist/assets/th-DyW-mYrC.js +0 -5
- package/dist/assets/toUpper-Bk6xSBue.js +0 -1
- package/dist/assets/vi-bzer6J4H.js +0 -5
- package/dist/assets/withStyles-CPbSyJRI.js +0 -1
- package/dist/assets/wrap-locale-CYxNfqSO.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,
|
|
1
|
+
import{j as e,cD as j,K as v,x as P,r as l,e as S,az as w,u as k,w as b,al as E,aS as K,dq as U,ct as u,bb as W,v as _,Y as R,C as D,dr as L,ds as z}from"./index-CGargw6n.js";import{R as d}from"./index-BSVtXZA5.js";function a({children:r,...s}){var o,c;return e.jsx(j,{...s,did:((o=window==null?void 0:window.blocklet)==null?void 0:o.appPid)||((c=window==null?void 0:window.env)==null?void 0:c.appPid),children:e.jsx(v,{sx:{maxWidth:"100%",height:"100%"},children:r})})}function B(){const r=P(),{t:s,locale:o}=l.useContext(S),{api:c}=w(),{info:p}=k(),f=b(p),x=E(),n=K({ready:!1,success:!1,error:null,invalidSession:!1}),i=U(),h=()=>{try{const t=new URL(window.location.href);if(t.hash.includes("invalid")){n.invalidSession=!0;return}const g=t.searchParams.get("__connect_url__"),y=L(g);if(!z(y))throw new Error;n.ready=!0}catch{n.invalidSession=!0,r("#invalid",{replace:!0})}};l.useLayoutEffect(()=>h(),[]);const m=u(t=>{n.error=t.message,r("#invalid",{replace:!0})}),C=u(()=>{n.success=!0});if(n.invalidSession)return e.jsx(a,{children:e.jsx(d,{style:{backgroundColor:"transparent"},status:"error",title:s("didConnect.common.invalidSession"),description:s("didConnect.common.invalidSessionDesc")})});if(n.error){const t=n.error;return e.jsx(a,{children:e.jsx(d,{style:{backgroundColor:"transparent"},status:"error",title:s("didConnect.common.connectionError"),description:t})})}return n.success?e.jsx(a,{children:e.jsx(d,{style:{backgroundColor:"transparent"},status:"info",icon:e.jsx(W,{style:{color:x.palette.success.main,fontSize:72}}),title:s("didConnect.genKeyPair.success"),description:s("didConnect.genKeyPair.successDesc")})}):n.ready?e.jsx(a,{children:e.jsx(_,{className:"connect",action:"gen-key-pair",checkFn:c.get,checkTimeout:10*60*1e3,extraParams:{sourceAppPid:i==null?void 0:i.appPid,forceSwitch:!0},saveConnect:!1,forceConnected:!1,webWalletUrl:f,onSuccess:C,onError:m,locale:o,messages:{title:s("didConnect.genKeyPair.title"),scan:s("didConnect.genKeyPair.scan"),confirm:s("auth.confirm"),success:s("didConnect.genKeyPair.success")},popup:!0,open:!0,hideCloseButton:!0})},"ready"):e.jsx(R,{children:e.jsx(D,{})})}export{B as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as be,r as he,
|
|
1
|
+
import{j as be,r as he,bY as xt,dx as gi,dy as Ew,b_ as Da,dz as $o,dA as nu,dB as Dw,dC as Aw,dD as jw,dE as kw,dF as ks,dG as Ut,dH as Wt,dI as ts,dJ as rs,dK as ti,dL as Mw,dM as fg,dN as dg,dO as Lw,dP as pg,dQ as vg,dR as Fw,dS as Nw,dT as Bw,dU as Hw,au as sf,dV as Uw,dW as Ww,dX as zw,dY as Gw,dZ as qw,b7 as di,d_ as Kw,d$ as Vw,e0 as Yw,e1 as Xw,e2 as Jw,e3 as Qw,e4 as Zw,e5 as e_,e6 as t_,e7 as r_,e8 as n_,e9 as a_,al as hg,ea as o_,eb as i_,ec as s_,a4 as ws,ed as l_,ee as u_,k as c_,ef as f_,eg as d_,eh as p_,ei as v_,ej as h_,ek as g_,el as y_,em as m_,en as b_,eo as S_,ep as w_,eq as __,U as T_,er as $_,N as C_,es as O_,et as x_,eu as I_,aX as P_,ev as R_,ew as E_,bm as D_,ex as A_,ey as j_,G as k_,ez as M_,eA as L_,eB as F_,eC as N_,eD as B_,eE as H_,O as U_,eF as W_,eG as z_,aa as xc,eH as G_,eI as q_,eJ as K_,eK as V_,b4 as gg,eL as Y_,eM as X_,eN as J_,eO as Q_,Q as Ic,eP as Z_,eQ as eT,S as tT,eR as rT,eS as nT,aA as Pc,eT as aT,eU as oT,eV as iT,eW as sT,eX as lT,c0 as yg,b$ as mg,c1 as bg,eY as uT,c3 as Co,c4 as Sg,eZ as cT,e_ as fT,e$ as dT,f0 as pT,f1 as vT,f2 as hT,bW as gT,bX as yT,ce as wg,t as mT,f3 as bT,f4 as ST,f5 as wT,f6 as _g,f7 as _T,f8 as TT,f9 as $T,d7 as Xe,d2 as ct,fa as CT,fb as OT,bk as lf,aO as yi,aP as mi,d5 as Ms,df as Tg,fc as xT,Z as IT,fd as PT,P as rt,dp as bi,aH as Sd,b2 as RT,L as ET,E as DT,fe as wd,a0 as AT,h as jT,C as kT}from"./index-CGargw6n.js";import{T as MT,g as LT,t as FT,a as NT,b as BT,c as HT,d as UT,e as WT,f as zT,h as GT,i as qT,j as KT}from"./TableRow-DSBApqUZ.js";import{u as VT}from"./useThemeProps-Btw9Aun5.js";import{r as YT,a as $g}from"./emotion-react.browser.esm-CH67Z3jf.js";import{c as XT,R as JT,V as QT,d as ZT}from"./ViewColumn-DZ8hNz9g.js";import{S as e$}from"./Search-DqihVCic.js";import{C as t$}from"./Clear-DiiXyvpY.js";import{D as r$}from"./Delete-DibgMbRa.js";import{E as _d}from"./index-g4Pa9QCu.js";import{d as n$}from"./MoreVert-BrdZPzwo.js";import{u as el,T as a$,D as o$}from"./TableSearch-C3sQDzER.js";const uf="mode",cf="color-scheme",Cg="data-color-scheme";function i$(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:a=uf,colorSchemeStorageKey:o=cf,attribute:l=Cg,colorSchemeNode:f="document.documentElement",nonce:d}=e||{};return be.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
2
2
|
try {
|
|
3
3
|
var mode = localStorage.getItem('${a}') || '${t}';
|
|
4
4
|
var colorScheme = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as fe,g as je}from"./index-G6hKL35m.js";import{bY as $,j as e,P as t,m as B,r as T,br as U,fV as ye,ld as we,h8 as ke,K as m,t as le,k as I,C as H,V as X,h9 as Ee,en as N,aX as ae,U as _,aA as q,aU as Z,a8 as J,bg as ee,a9 as Q,cA as ve,eh as L,a4 as te,ic as Ce,b9 as Se,ba as Te,bl as Ie,y as M,bh as Re,M as pe,aY as P,bi as ze,G as Y,aH as Pe,aa as De,cG as Oe,a2 as Ae,aG as We,lh as qe,fQ as Le,bt as ue,b7 as he,E as Me,li as $e,ae as Be}from"./index-DTI4BkNW.js";import{d as He}from"./Add-B-whK8Og.js";import{u as V}from"./team-Bt5GsvTe.js";import{u as Ne}from"./use-mobile-DQ4xY9vN.js";import{u as Fe,C as K}from"./index.esm-BhU35G9C.js";import{u as xe}from"./blocklet-DMuA5PdQ.js";import{C as G}from"./index-Cax1rLeF.js";import{u as Ue}from"./index-C2b2CJyH.js";import{L as Ve}from"./ListSubheader-q3nAde5e.js";import{C as _e}from"./Close-qBNbi4Ug.js";import{E as Ye}from"./index-3KlQvd1f.js";import{A as Ke}from"./actions-BhwFbvNf.js";import{T as ce}from"./table-tips-D63O0ZjI.js";import{D as Ge}from"./Delete-CgPI_eC5.js";import"./TableRow-LUYIbYYH.js";import"./useThemeProps-DA06OkGc.js";import"./emotion-react.browser.esm-BPIpPz3P.js";import"./ViewColumn-Y-NBF0dy.js";import"./Search-BWfKoeW0.js";import"./Clear-CH1dCzcl.js";import"./Delete-DliA3mdg.js";import"./MoreVert-ygAE5zXH.js";import"./TableSearch-DryNoX9z.js";import"./url-evaluation-CiS0m0gE.js";import"./MoreHoriz-BPa-vzup.js";const Je=$(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined"),Qe=$(e.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Xe=$(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"ErrorOutlined"),Ze=$(e.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),et=$(e.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),tt=$(e.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),ot=o=>{var f,w;const[p,u]=T.useState(null),[E,s]=T.useState(!o),[R,c]=T.useState(null),{blocklet:a}=xe(),d=(w=(f=a==null?void 0:a.site)==null?void 0:f.domainAliases[0])==null?void 0:w.value,j=T.useMemo(()=>{const b={};return p&&(p.sources.forEach(l=>{b[l.did]={source:l,events:[],count:0}}),p.events.forEach(l=>{b[l.source]&&(b[l.source].events.push(l),b[l.source].count+=1)})),b},[p]),y=async()=>{try{if(s(!0),!d)return;const l=await(await fetch(`https://${d}/.well-known/service/openevent.json`)).json();u(l),c(null)}catch(b){c(b instanceof Error?b:new Error(String(b)))}finally{s(!1)}};return T.useEffect(()=>{y()},[d]),{openEvent:p,setOpenEvent:u,eventsBySource:j,loading:E,error:R,loadData:y}};function oe({eventsBySource:o,selectedEvents:p,setSelectedEvents:u,error:E}){const{t:s}=B(),[R,c]=T.useState({}),a=T.useMemo(()=>{const l={};return Object.entries(o).forEach(([g,{events:h}])=>{const S=h.filter(x=>p[`${x.type}-${x.source}`]).length;l[g]=S}),l},[o,p]),d=T.useMemo(()=>Object.values(a).reduce((l,g)=>l+g,0),[a]),j=T.useMemo(()=>Object.values(o).reduce((l,{events:g})=>l+g.length,0),[o]),y=(l,g)=>{g.stopPropagation(),c({...R,[l]:!R[l]})},f=l=>{const g=`${l.type}-${l.source}`;u(h=>({...h,[g]:!h[g]}))},w=(l,g)=>{const h={};l.forEach(S=>{const x=`${S.type}-${S.source}`;h[x]=!g}),u(S=>({...S,...h}))},b=l=>{const g={};Object.values(o).forEach(({events:h})=>{h.forEach(S=>{const x=`${S.type}-${S.source}`;g[x]=l.target.checked})}),u(g)};return e.jsxs(m,{sx:{width:"100%"},children:[e.jsxs(m,{sx:{display:"flex",alignItems:"center",mb:1,mt:1},children:[e.jsx(ae,{control:e.jsx(_,{onChange:b,checked:d>0&&d===j}),label:e.jsxs(m,{sx:{display:"flex",alignItems:"center",cursor:"pointer"},children:[s("webhookEndpoint.selectAllEvents"),e.jsx(m,{sx:{display:"flex",alignItems:"center"},children:e.jsx(q,{title:s("webhookEndpoint.selectAllEventsTooltip"),placement:"right",children:e.jsx(Z,{fontSize:"small",sx:{ml:.5,cursor:"help"}})})})]}),sx:{m:0}}),d>0&&e.jsx(I,{variant:"body2",color:"primary",sx:{ml:"auto"},children:s("webhookEndpoint.selectedEventsCount",{count:d})})]}),e.jsx(m,{sx:{maxHeight:"50vh",overflow:"auto"},children:e.jsx(J,{disablePadding:!0,sx:{border:"1px solid",borderColor:"divider",borderRadius:"4px"},children:Object.entries(o).map(([l,{source:g,events:h,count:S}],x)=>{const z=a[l]>0,k=a[l]===h.length&&h.length>0,O=R[l];return e.jsxs(ee.Fragment,{children:[e.jsx(Q,{sx:{borderBottom:({palette:i})=>x<Object.keys(o).length-1?`1px solid ${i.divider}`:"none",px:2,py:1.5,"&:hover":{bgcolor:"rgba(0, 0, 0, 0.02)"}},children:e.jsxs(m,{sx:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},onClick:i=>{i.target.closest(".MuiFormControlLabel-root")||y(l,i)},children:[e.jsx(m,{sx:{display:"flex",alignItems:"center"},children:h.length>0&&e.jsx(ae,{control:e.jsx(_,{checked:k,indeterminate:z&&!k,onChange:i=>{i.stopPropagation(),w(h,k)}}),label:e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.logo&&e.jsx(ve,{src:g.logo,sx:{width:24,height:24}}),e.jsx(m,{children:g.title||l}),z&&e.jsx(L,{label:s("webhookEndpoint.selectedCount",{count:a[l]}),size:"small",sx:{mt:"2px",height:"20px",fontSize:"12px",bgcolor:i=>`${i.palette.primary.main}20`,color:"primary.main",fontWeight:500}})]}),sx:{m:0,"& .MuiFormControlLabel-label":{flex:1}}})}),e.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{variant:"body2",color:"text.secondary",sx:{mr:1},children:s("webhookEndpoint.eventsCount",{count:S})}),h.length>0&&e.jsx(te,{size:"small",edge:"end",children:O?e.jsx(Ce,{}):e.jsx(Se,{})})]})]})}),h.length>0&&e.jsx(Te,{in:O,timeout:"auto",unmountOnExit:!0,children:e.jsx(J,{disablePadding:!0,sx:{pl:2,pr:2,py:1,bgcolor:"rgba(0, 0, 0, 0.01)"},children:h.map(i=>{const r=`${i.type}-${i.source}`,n=!!p[r];return e.jsx(Q,{dense:!0,sx:{py:.75},onClick:()=>f(i),children:e.jsxs(m,{sx:{display:"flex",alignItems:"flex-start",width:"100%"},children:[e.jsx(_,{checked:n,sx:{mr:1}}),e.jsxs(m,{children:[e.jsx(I,{variant:"body1",sx:{cursor:"pointer"},children:i.type}),e.jsx(I,{variant:"caption",color:"text.disabled",sx:{display:"block",cursor:"pointer"},children:i.description})]})]})},r)})})})]},l)})})}),E&&e.jsx(Ie,{error:!0,sx:{mt:1},children:E})]})}oe.propTypes={eventsBySource:t.objectOf(t.shape({source:t.shape({did:t.string.isRequired,title:t.string,description:t.string,version:t.string,logo:t.string}).isRequired,events:t.arrayOf(t.shape({type:t.string.isRequired,description:t.string.isRequired,source:t.string.isRequired})).isRequired,count:t.number.isRequired})).isRequired,selectedEvents:t.objectOf(t.bool).isRequired,setSelectedEvents:t.func.isRequired,error:t.string};oe.defaultProps={error:null};function se({id:o,url:p,description:u,enabledEvents:E,onSubmit:s,onClose:R}){var i;const{t:c}=B(),[a,d]=T.useState({}),{teamDid:j}=V(),{api:y}=U(),{loading:f,error:w,eventsBySource:b}=ot(),{control:l,handleSubmit:g,formState:{errors:h},reset:S,setValue:x,trigger:z}=Fe({defaultValues:{url:"",description:""}});T.useEffect(()=>{const r=Object.values(a).some(n=>n);x("selectedEvents",r?"valid":""),z("selectedEvents")},[a,x,z]);const k=()=>{d({}),S(),R()},O=async r=>{const n=Object.keys(a).filter(v=>a[v]),C={url:r.url,description:r.description,enabledEvents:n.map(v=>{const[D,W]=v.split("-");return!D||!W?null:{type:D,source:W}}).filter(Boolean)};try{if(o){const v=await y.updateWebhookEndpoint({input:{teamDid:j,id:o,data:C}});M.success(`${c("webhookEndpoint.updateWebhook")} ${c("webhookEndpoint.success")}`),s(v)}else{const v=await y.createWebhookEndpoint({input:{teamDid:j,input:C}});M.success(`${c("webhookEndpoint.createWebhook")} ${c("webhookEndpoint.success")}`),s(v)}}catch(v){M.error(v==null?void 0:v.message)}k()};return T.useEffect(()=>{S({url:p,description:u}),d(E.reduce((r,n)=>(r[`${n.type}-${n.source}`]=!0,r),{}))},[S,d,p,u,E]),e.jsx(ye,{open:!0,onClose:k,maxWidth:"lg",fullWidth:!0,sx:{"& .MuiDialog-paper":{minHeight:600}},children:e.jsxs("form",{onSubmit:g(O),children:[e.jsx(we,{children:c(o?"webhookEndpoint.editWebhookTitle":"webhookEndpoint.createWebhookTitle")}),e.jsx(ke,{children:e.jsxs(m,{sx:{display:"flex",flexDirection:"column",gap:2,mt:2},children:[e.jsx(K,{name:"url",control:l,rules:{required:c("webhookEndpoint.validation.urlRequired"),pattern:{value:/^(http|https):\/\/[^ "]+$/,message:c("webhookEndpoint.validation.urlInvalid")}},render:({field:r})=>{var n;return e.jsx(le,{...r,label:c("webhookEndpoint.url.label"),fullWidth:!0,error:!!h.url,helperText:(n=h.url)==null?void 0:n.message})}}),e.jsx(K,{name:"description",control:l,rules:{required:c("webhookEndpoint.validation.descriptionRequired")},render:({field:r})=>{var n;return e.jsx(le,{...r,label:c("webhookEndpoint.description.label"),fullWidth:!0,multiline:!0,minRows:2,maxRows:4,error:!!h.description,helperText:(n=h.description)==null?void 0:n.message})}}),e.jsx(K,{name:"selectedEvents",control:l,rules:{required:c("webhookEndpoint.validation.eventRequired")},render:({field:r})=>e.jsx("input",{type:"hidden",...r})}),!f&&b&&Object.keys(b).length>0&&e.jsx(oe,{eventsBySource:b,selectedEvents:a,setSelectedEvents:d,error:(i=h.selectedEvents)==null?void 0:i.message}),!f&&(!b||Object.keys(b).length===0)&&e.jsx(I,{color:"text.secondary",children:c("webhookEndpoint.noAvailableEvents")}),f&&e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"500px",width:"100%"},children:e.jsx(H,{size:20})}),w&&e.jsx(X,{severity:"error",children:c("webhookEndpoint.loadingError",{message:w==null?void 0:w.message})})]})}),e.jsxs(Ee,{sx:{p:"8px 24px 24px"},children:[e.jsx(N,{onClick:k,children:c("common.cancel")}),e.jsx(N,{type:"submit",variant:"contained",color:"primary",children:c(o?"webhookEndpoint.updateWebhook":"webhookEndpoint.saveWebhook")})]})]})})}se.propTypes={onSubmit:t.func.isRequired,id:t.string,url:t.string,description:t.string,enabledEvents:t.arrayOf(t.shape({type:t.string.isRequired,source:t.string.isRequired})),onClose:t.func};se.defaultProps={id:null,url:"",description:"",enabledEvents:[],onClose:()=>{}};function me(o){switch(o){case"enabled":return"success";case"disabled":default:return"default"}}const st=(o="en")=>o==="tw"?"zh":o;function F(o,p="YYYY-MM-DD HH:mm:ss",u="en"){return o?Re(o).locale(st(u)).format(p):"-"}function nt(o){return typeof o=="number"?!1:pe(o)}function it(o){return o>=200&&o<300}function A(o){const p=nt(o.value);return e.jsxs(e.Fragment,{children:[e.jsxs(P,{direction:"column",alignItems:"flex-start",children:[e.jsxs(I,{component:"div",variant:"body1",mb:1,color:"text.primary",sx:{fontWeight:500},children:[o.label,!!o.tip&&e.jsx(q,{title:o.tip,children:e.jsx(Ze,{fontSize:"small"})})]}),e.jsx(I,{component:"div",variant:"body1",color:p?"text.disabled":"text.secondary",sx:{width:"100%",minHeight:"24px"},children:p?"-":o.value})]}),o.divider&&e.jsx(ze,{orientation:"vertical",flexItem:!0})]})}A.propTypes={label:t.oneOfType([t.string,t.node]).isRequired,value:t.oneOfType([t.string,t.node]).isRequired,tip:t.oneOfType([t.string,t.node]),divider:t.bool};A.defaultProps={tip:"",divider:!1};function ne(o){return e.jsxs(P,{className:"section-header",direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:1,sx:{mb:o.mb,mt:o.mt,pb:1},children:[e.jsx(I,{variant:"h3",sx:{fontSize:{xs:"18px",md:"1.09375rem"}},component:"div",children:o.title}),o.children]})}ne.propTypes={title:t.oneOfType([t.string,t.node]).isRequired,children:t.node,mb:t.number,mt:t.number};ne.defaultProps={children:null,mb:1.5,mt:1.5};const rt=o=>{const p={};return o.forEach(u=>{var s;const E=new Date(u.createdAt).toLocaleDateString();p[E]||(p[E]=[]),(s=p[E])==null||s.push(u)}),p};function ie({eventId:o,webhookEndpointId:p,event:u}){const{api:E}=U(),{t:s}=B(),{teamDid:R}=V(),{blocklet:c}=xe(),{data:a,loadMore:d,loadingMore:j,loading:y}=Ue(x=>{const k=x?Math.ceil(x.list.length/15)+1:1;return E.getWebhookAttempts({input:{teamDid:R,input:{eventId:o,webhookId:p},paging:{page:k,pageSize:15}}})},{reloadDeps:[o,p]}),f=(a==null?void 0:a.list)||[],[w,b]=T.useState(null),l=rt(f);T.useEffect(()=>{!w&&(a!=null&&a.list.length)&&b(a.list[0])},[a==null?void 0:a.list.length,w]);const g=x=>{b(x)};if(y)return e.jsx(H,{});const h=a&&a.list.length<a.paging.total,S=x=>{var z,k,O,i,r;if(x.responseBody&&((z=x.responseBody)!=null&&z.sessionId)&&((k=x.responseBody)!=null&&k.projectId)&&((O=x.responseBody)!=null&&O.agentId)){const n=(r=(i=c==null?void 0:c.site)==null?void 0:i.domainAliases[0])==null?void 0:r.value,C=(c.children||[]).find(D=>{var W;return((W=D==null?void 0:D.meta)==null?void 0:W.name)==="ai-studio"}),v=Oe(Ae(`https://${n}`,(C==null?void 0:C.mountPoint)||"","projects",x.responseBody.projectId,"logs/main"),{sessionId:x.responseBody.sessionId,agentId:x.responseBody.agentId});return e.jsx(te,{sx:{fontSize:20},onClick:()=>window.open(v,"_blank"),children:e.jsx(m,{component:We,icon:qe})})}return null};return e.jsxs(Y,{container:!0,spacing:{xs:0,md:1},sx:{height:1},children:[e.jsx(Y,{item:!0,xs:12,md:4,height:1,children:pe(Object.keys(l))?e.jsx(I,{color:"text.secondary",children:s("webhookEndpoint.waitingForEvents")}):e.jsxs(e.Fragment,{children:[e.jsx(J,{sx:{maxHeight:"calc(100% - 40px)",py:0,overflowY:"auto"},children:Object.entries(l).map(([x,z])=>e.jsxs(ee.Fragment,{children:[e.jsx(Ve,{children:x}),z.map(k=>e.jsxs(Q,{sx:{cursor:"pointer"},onClick:()=>g(k),selected:w===k,secondaryAction:e.jsx(I,{color:"text.secondary",children:F(k.createdAt,"HH:mm:ss")}),children:[e.jsx(Pe,{sx:{minWidth:0,mr:1.5},children:it(k.responseStatus)===!1?e.jsx(Xe,{color:"error"}):e.jsx(Je,{color:"success"})}),e.jsx(De,{primary:e.jsx(I,{color:"text.primary",children:k.event.type})})]},k.id))]},x))}),h&&e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",width:1,children:e.jsx(N,{variant:"text",type:"button",color:"inherit",onClick:d,disabled:j,sx:{color:x=>x.palette.text.disabled},children:s(j?"webhookEndpoint.loadingMore":"webhookEndpoint.loadMore")})})]})}),e.jsxs(Y,{item:!0,xs:12,md:8,height:1,children:[w&&e.jsxs(P,{height:1,overflow:"auto",direction:"column",spacing:2,sx:{pl:{xs:0,md:1},mt:{xs:2,md:0},borderLeft:{xs:"none"}},children:[e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(I,{variant:"h6",children:o?w.endpoint.url:w.event.type}),e.jsx(m,{children:S(w)})]}),e.jsxs(m,{children:[e.jsxs(I,{variant:"h6",children:[s("webhookEndpoint.response")," (",w.responseStatus,")"]}),e.jsx(G,{language:"json",children:JSON.stringify(w.responseBody,null,2)})]}),e.jsxs(m,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(I,{variant:"h6",children:s("webhookEndpoint.request")})}),e.jsx(G,{language:"json",sx:{margin:0},children:JSON.stringify(w.event,null,2)})]})]}),(a==null?void 0:a.list.length)===0&&u&&e.jsxs(m,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(I,{variant:"h6",children:s("webhookEndpoint.eventData")})}),e.jsx(G,{language:"json",sx:{margin:0},children:JSON.stringify(u.data,null,2)})]})]})]})}ie.propTypes={eventId:t.string,webhookEndpointId:t.string,event:t.shape({type:t.string,data:t.object,request:t.object,requestInfo:t.object})};ie.defaultProps={eventId:"",webhookEndpointId:"",event:null};function be({id:o,onClose:p}){var j,y,f,w;const{t:u}=B(),{api:E}=U(),{teamDid:s}=V(),{loading:R,error:c,data:a}=ue(()=>E.getWebhookEndpoint({input:{teamDid:s,id:o}})),d=a==null?void 0:a.data;return c?e.jsx(X,{severity:"error",children:c.message}):R||!d?e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",height:1,width:1,children:e.jsx(H,{})}):e.jsxs(lt,{direction:"column",sx:{height:{xs:"auto",md:1}},children:[e.jsxs(m,{children:[e.jsxs(P,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e.jsx(P,{flex:1,width:0,children:e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(I,{variant:"h5",fontWeight:600,sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:d.description}),e.jsx(q,{title:d.url,children:e.jsx(Z,{sx:{fontSize:"16px",marginTop:"2px"}})})]})}),e.jsx(P,{direction:"row",alignItems:"center",children:e.jsx(te,{edge:"end",color:"inherit",onClick:p,children:e.jsx(_e,{})})})]}),e.jsx(m,{mt:2,children:e.jsxs(P,{className:"section-body",direction:{xs:"column",md:"row"},spacing:{xs:1,md:3},justifyContent:"flex-start",flexWrap:"wrap",sx:{pt:2,mt:2,borderTop:"1px solid #eee"},children:[e.jsx(A,{label:u("common.status"),value:e.jsx(L,{size:"small",variant:"filled",label:d.status,color:me(d.status),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}}),divider:!0}),e.jsx(A,{label:u("webhookEndpoint.listen"),value:e.jsx(q,{arrow:!0,title:e.jsx("ul",{style:{padding:0,margin:0},children:d.enabledEvents.map(b=>e.jsx("li",{style:{fontSize:"0.7875rem"},children:b==null?void 0:b.type},b))}),children:e.jsx(L,{size:"small",variant:"filled",label:u("webhookEndpoint.eventsCount",{count:d.enabledEvents.length}),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(A,{label:u("webhookEndpoint.version"),value:d.apiVersion,divider:!0}),e.jsx(A,{label:u("common.createdAt"),value:F(d.createdAt),divider:!0}),e.jsx(A,{label:u("common.updatedAt"),value:F(d.updatedAt),divider:!0}),e.jsx(A,{label:u("common.createdBy"),value:e.jsx(q,{arrow:!0,title:(j=d.createUser)==null?void 0:j.did,children:e.jsx(L,{size:"small",variant:"filled",label:(y=d.createUser)==null?void 0:y.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(A,{label:u("common.updatedBy"),value:e.jsx(q,{arrow:!0,title:(f=d.updateUser)==null?void 0:f.did,children:e.jsx(L,{size:"small",variant:"filled",label:(w=d.updateUser)==null?void 0:w.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})})})]})})]}),e.jsxs(P,{className:"section",flex:1,height:0,overflow:"hidden",children:[e.jsx(ne,{title:u("webhookEndpoint.attempts"),mb:0,mt:4}),e.jsx(P,{height:0,flex:1,overflow:"hidden",children:e.jsx(ie,{webhookEndpointId:d.id})})]})]})}be.propTypes={id:t.string.isRequired,onClose:t.func.isRequired};const lt=he(P)``;function ge({open:o,onClose:p,id:u}){return e.jsx(Le,{anchor:"right",open:o,onClose:p,PaperProps:{sx:{width:"90vw",maxWidth:"1200px"}},children:e.jsx(m,{sx:{height:"100vh",p:3},children:e.jsx(be,{id:u,onClose:p})})})}ge.propTypes={open:t.bool.isRequired,onClose:t.func.isRequired,id:t.string.isRequired};function de(){return null}const re=ee.memo(({options:o,columns:p,toolbar:u=!0,footer:E=!0,hasRowLink:s=!1,emptyNodeText:R="",...c})=>{const{locale:a}=B(),d=Me(f=>f.breakpoints.down("md")),j={print:!1,download:!1,filter:!1,selectableRows:"none",rowsPerPage:d?5:10,rowsPerPageOptions:[5,10,20,50,100],searchDebounceTime:300,tableBodyHeight:"100%",loading:!0},y={};return u||(y.TableToolbar=de),E||(y.TableFooter=de),e.jsx(at,{locale:a,options:{...j,...o},columns:(p||[]).map(f=>(f.options=f.options||{},f.options.filter=f.options.filter||!1,f.options.sort=f.options.sort||!1,f)),emptyNode:e.jsx(Ye,{children:R}),...c,components:y,hasRowLink:s,isMobile:d})});re.propTypes={options:t.object,columns:t.array,toolbar:t.bool,footer:t.bool,hasRowLink:t.bool,emptyNodeText:t.node,durable:t.string,durableKeys:t.array,data:t.array,loading:t.bool,onChange:t.func,title:t.node,components:t.object};re.defaultProps={options:{},columns:[],toolbar:!0,footer:!0,hasRowLink:!1,emptyNodeText:null,durable:"",durableKeys:[],data:[],loading:!1,onChange:()=>{},title:null,components:{}};const at=he(fe)``,ct=re;function qt(){const{teamDid:o}=V(),p=Ne(),u=`webhook-endpoints-${o}`,E=je(u),{t:s,locale:R}=B(),{api:c}=U(),[a,d]=T.useState(""),[j,y]=T.useState({webhookDetail:{open:!1,id:null},createEdit:{open:!1,id:null,url:"",description:"",enabledEvents:[]},deleteConfirm:null}),[f,w]=$e(u,{defaultValue:{pageSize:E.rowsPerPage||20,page:E.page?E.page+1:1}}),{loading:b,error:l,data:g,refresh:h}=ue(()=>c.getWebhookEndpoints({input:{teamDid:o,paging:{page:f.page,pageSize:f.pageSize}}}));T.useEffect(()=>{h()},[f,h]);const S=T.useCallback(async(i,r)=>{try{await c.updateWebhookEndpoint({input:{teamDid:o,id:i.id,data:{status:r?"disabled":"enabled"}}}),h(),M.success(`${s(r?"webhookEndpoint.disable":"webhookEndpoint.enable")}${s("webhookEndpoint.success")}`)}catch(n){M.error(n==null?void 0:n.message)}},[c,o,h,s]),x=T.useCallback(async i=>{try{await c.deleteWebhookEndpoint({input:{teamDid:o,id:i}}),h(),y(r=>({...r,deleteConfirm:null})),M.success(`${s("common.delete")}${s("webhookEndpoint.success")}`)}catch(r){M.error(r==null?void 0:r.message)}},[c,o,h,s]),z=(i,r)=>{let n=i.page+1;const C=i.searchText||"";if(C!==a){d(C);return}if(r==="changePage"||r==="changeRowsPerPage"){r!=="changePage"&&(n=1);const v={page:n,pageSize:i.rowsPerPage};d(""),w(v)}};if(l)return e.jsx(X,{severity:"error",children:l.message});if(b||!g)return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",width:1,height:500,children:e.jsx(H,{})});const k=((g==null?void 0:g.list)||[]).filter(i=>{if(!a)return!0;const r=a.toLowerCase();return i.description.toLowerCase().includes(r)||i.url.toLowerCase().includes(r)}),O=[{label:"URL",name:"url",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsxs(m,{sx:{display:"flex",alignItems:"center",cursor:"pointer",gap:.5},children:[e.jsx(I,{variant:"body2",children:n.description}),e.jsx(m,{sx:{display:"flex"},onClick:C=>{C.stopPropagation()},children:e.jsx(q,{title:n.url,children:e.jsx(Z,{sx:{fontSize:"15px",marginTop:"1px"}})})})]})}}},{label:"Events",name:"events",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsx(m,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:n.enabledEvents.map(C=>e.jsx(L,{size:"small",variant:"filled",label:C.type,sx:{borderRadius:"4px",textTransform:"capitalize"}},`${n.source}-${C.type}`))})}}},{label:s("common.status"),name:"status",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsx(L,{size:"small",variant:"filled",label:s(`webhookEndpoint.${n==null?void 0:n.status}`),color:me(n==null?void 0:n.status),sx:{borderRadius:"4px",textTransform:"capitalize"}},`status-${n.status}`)}}},{label:s("common.createdAt"),name:"createdAt",minWidth:200,options:{customBodyRender:i=>F(i)}},{label:s("common.actions"),name:"actions",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRenderLite:(i,r)=>{const n=k[r],C=(n==null?void 0:n.status)==="enabled";return e.jsx(Ke,{actions:[{icon:C?e.jsx(et,{}):e.jsx(tt,{}),text:s(C?"webhookEndpoint.disable":"webhookEndpoint.enable"),onClick:v=>{v.stopPropagation(),S(n,C)}},{icon:e.jsx(Qe,{}),text:s("common.edit"),onClick:v=>{v.stopPropagation(),y(D=>({...D,createEdit:{open:!0,id:n.id,url:n.url,description:n.description,enabledEvents:n.enabledEvents}}))}},{icon:e.jsx(Ge,{}),text:s("common.delete"),onClick:v=>{v.stopPropagation(),y(D=>({...D,deleteConfirm:{title:s("webhookEndpoint.deleteWebhook.title"),description:s("webhookEndpoint.deleteWebhook.description"),confirm:s("common.confirm"),cancel:s("common.cancel"),onConfirm:()=>x(n.id),onCancel:()=>y(W=>({...W,deleteConfirm:null}))}}))}}]})}}}];return e.jsxs(m,{sx:{".custom-toobar-btns":{gap:"8px"},".custom-toobar-title .custom-toobar-title-inner>span":{display:"flex",alignItems:"center","white-space":"inherit",height:"100%"}},children:[p?e.jsx(ce,{title:s("webhookEndpoint.listTitle"),tooltipTitle:s("webhookEndpoint.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${R}/webhook`}):null,e.jsx(ct,{durable:u,durableKeys:["page","rowsPerPage"],data:k,columns:O,options:{count:g.count,page:f.page-1,rowsPerPage:f.pageSize,viewColumns:!1,onRowClick:(i,{dataIndex:r})=>{const n=g.list[r];y(C=>({...C,webhookDetail:{open:!0,id:n.id}}))}},loading:b,onChange:z,emptyNodeText:e.jsx(P,{gap:1,children:s("webhookEndpoint.noWebhooksAdded")}),title:p?null:e.jsx(ce,{title:s("webhookEndpoint.listTitle"),tooltipTitle:s("webhookEndpoint.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${R}/webhook`}),customButtons:[e.jsxs(N,{sx:{color:"common.white"},edge:"end",variant:"contained",color:"primary",onClick:()=>y(i=>({...i,createEdit:{...i.createEdit,open:!0}})),className:"rule-action",children:[b?e.jsx(H,{size:16}):e.jsx(He,{style:{fontSize:16}}),s("common.create")]},"add")]}),j.webhookDetail.open&&e.jsx(ge,{open:!0,onClose:()=>y(i=>({...i,webhookDetail:{open:!1,id:null}})),id:j.webhookDetail.id}),j.createEdit.open&&e.jsx(se,{onSubmit:h,...j.createEdit,onClose:()=>y(i=>({...i,createEdit:{id:null,url:"",description:"",enabledEvents:[],open:!1}}))}),j.deleteConfirm&&e.jsx(Be,{title:j.deleteConfirm.title,description:j.deleteConfirm.description,confirm:j.deleteConfirm.confirm,cancel:j.deleteConfirm.cancel,params:j.deleteConfirm.params,onConfirm:j.deleteConfirm.onConfirm,onCancel:j.deleteConfirm.onCancel})]})}export{qt as default};
|
|
1
|
+
import{D as fe,g as je}from"./index-L99IjMpo.js";import{bW as $,j as e,P as t,m as B,r as T,bp as U,fW as ye,le as we,h9 as ke,K as m,t as le,k as R,C as H,V as X,ha as Ee,eo as N,aX as ae,U as V,aA as q,aU as Z,a8 as J,bg as ee,a9 as Q,cy as ve,ei as L,a4 as te,id as Ce,b9 as Se,ba as Te,bl as Re,y as M,bh as Ie,M as pe,aY as P,bi as ze,G as K,aH as Pe,aa as De,cG as We,a2 as Oe,aG as Ae,li as qe,fR as Le,br as ue,b7 as he,E as Me,lj as $e,ae as Be}from"./index-CGargw6n.js";import{d as He}from"./Add-Dr17acvQ.js";import{u as _}from"./team-DeJfgyE0.js";import{u as Ne}from"./use-mobile-DK73qoH8.js";import{u as Fe,C as Y}from"./index.esm-CvOsHG0z.js";import{u as xe}from"./blocklet-Ca7hIY9r.js";import{C as G}from"./index-lHULqi5l.js";import{u as Ue}from"./index-D9dQPWQL.js";import{L as _e}from"./ListSubheader-CZoW0Yjm.js";import{C as Ve}from"./Close-Cx2b036Y.js";import{E as Ke}from"./index-g4Pa9QCu.js";import{A as Ye}from"./actions-CSIY5MjI.js";import{T as ce}from"./table-tips-CFO-Ys9P.js";import{D as Ge}from"./Delete-Db12JNaW.js";import"./TableRow-DSBApqUZ.js";import"./useThemeProps-Btw9Aun5.js";import"./emotion-react.browser.esm-CH67Z3jf.js";import"./ViewColumn-DZ8hNz9g.js";import"./Search-DqihVCic.js";import"./Clear-DiiXyvpY.js";import"./Delete-DibgMbRa.js";import"./MoreVert-BrdZPzwo.js";import"./TableSearch-C3sQDzER.js";import"./url-evaluation-Cjrq8Y2H.js";import"./MoreHoriz-BamWxTeP.js";const Je=$(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined"),Qe=$(e.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Xe=$(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"ErrorOutlined"),Ze=$(e.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),et=$(e.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),tt=$(e.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),ot=o=>{var f,w;const[p,u]=T.useState(null),[E,s]=T.useState(!o),[I,c]=T.useState(null),{blocklet:a}=xe(),d=(w=(f=a==null?void 0:a.site)==null?void 0:f.domainAliases[0])==null?void 0:w.value,j=T.useMemo(()=>{const b={};return p&&(p.sources.forEach(l=>{b[l.did]={source:l,events:[],count:0}}),p.events.forEach(l=>{b[l.source]&&(b[l.source].events.push(l),b[l.source].count+=1)})),b},[p]),y=async()=>{try{if(s(!0),!d)return;const l=await(await fetch(`https://${d}/.well-known/service/openevent.json`)).json();u(l),c(null)}catch(b){c(b instanceof Error?b:new Error(String(b)))}finally{s(!1)}};return T.useEffect(()=>{y()},[d]),{openEvent:p,setOpenEvent:u,eventsBySource:j,loading:E,error:I,loadData:y}};function oe({eventsBySource:o,selectedEvents:p,setSelectedEvents:u,error:E}){const{t:s}=B(),[I,c]=T.useState({}),a=T.useMemo(()=>{const l={};return Object.entries(o).forEach(([g,{events:h}])=>{const S=h.filter(x=>p[`${x.type}-${x.source}`]).length;l[g]=S}),l},[o,p]),d=T.useMemo(()=>Object.values(a).reduce((l,g)=>l+g,0),[a]),j=T.useMemo(()=>Object.values(o).reduce((l,{events:g})=>l+g.length,0),[o]),y=(l,g)=>{g.stopPropagation(),c({...I,[l]:!I[l]})},f=l=>{const g=`${l.type}-${l.source}`;u(h=>({...h,[g]:!h[g]}))},w=(l,g)=>{const h={};l.forEach(S=>{const x=`${S.type}-${S.source}`;h[x]=!g}),u(S=>({...S,...h}))},b=l=>{const g={};Object.values(o).forEach(({events:h})=>{h.forEach(S=>{const x=`${S.type}-${S.source}`;g[x]=l.target.checked})}),u(g)};return e.jsxs(m,{sx:{width:"100%"},children:[e.jsxs(m,{sx:{display:"flex",alignItems:"center",mb:1,mt:1},children:[e.jsx(ae,{control:e.jsx(V,{onChange:b,checked:d>0&&d===j}),label:e.jsxs(m,{sx:{display:"flex",alignItems:"center",cursor:"pointer"},children:[s("webhookEndpoint.selectAllEvents"),e.jsx(m,{sx:{display:"flex",alignItems:"center"},children:e.jsx(q,{title:s("webhookEndpoint.selectAllEventsTooltip"),placement:"right",children:e.jsx(Z,{fontSize:"small",sx:{ml:.5,cursor:"help"}})})})]}),sx:{m:0}}),d>0&&e.jsx(R,{variant:"body2",color:"primary",sx:{ml:"auto"},children:s("webhookEndpoint.selectedEventsCount",{count:d})})]}),e.jsx(m,{sx:{maxHeight:"50vh",overflow:"auto"},children:e.jsx(J,{disablePadding:!0,sx:{border:"1px solid",borderColor:"divider",borderRadius:"4px"},children:Object.entries(o).map(([l,{source:g,events:h,count:S}],x)=>{const z=a[l]>0,k=a[l]===h.length&&h.length>0,W=I[l];return e.jsxs(ee.Fragment,{children:[e.jsx(Q,{sx:{borderBottom:({palette:i})=>x<Object.keys(o).length-1?`1px solid ${i.divider}`:"none",px:2,py:1.5,"&:hover":{bgcolor:"rgba(0, 0, 0, 0.02)"}},children:e.jsxs(m,{sx:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},onClick:i=>{i.target.closest(".MuiFormControlLabel-root")||y(l,i)},children:[e.jsx(m,{sx:{display:"flex",alignItems:"center"},children:h.length>0&&e.jsx(ae,{control:e.jsx(V,{checked:k,indeterminate:z&&!k,onChange:i=>{i.stopPropagation(),w(h,k)}}),label:e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[g.logo&&e.jsx(ve,{src:g.logo,sx:{width:24,height:24}}),e.jsx(m,{children:g.title||l}),z&&e.jsx(L,{label:s("webhookEndpoint.selectedCount",{count:a[l]}),size:"small",sx:{mt:"2px",height:"20px",fontSize:"12px",bgcolor:i=>`${i.palette.primary.main}20`,color:"primary.main",fontWeight:500}})]}),sx:{m:0,"& .MuiFormControlLabel-label":{flex:1}}})}),e.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(R,{variant:"body2",color:"text.secondary",sx:{mr:1},children:s("webhookEndpoint.eventsCount",{count:S})}),h.length>0&&e.jsx(te,{size:"small",edge:"end",children:W?e.jsx(Ce,{}):e.jsx(Se,{})})]})]})}),h.length>0&&e.jsx(Te,{in:W,timeout:"auto",unmountOnExit:!0,children:e.jsx(J,{disablePadding:!0,sx:{pl:2,pr:2,py:1,bgcolor:"rgba(0, 0, 0, 0.01)"},children:h.map(i=>{const r=`${i.type}-${i.source}`,n=!!p[r];return e.jsx(Q,{dense:!0,sx:{py:.75},onClick:()=>f(i),children:e.jsxs(m,{sx:{display:"flex",alignItems:"flex-start",width:"100%"},children:[e.jsx(V,{checked:n,sx:{mr:1}}),e.jsxs(m,{children:[e.jsx(R,{variant:"body1",sx:{cursor:"pointer"},children:i.type}),e.jsx(R,{variant:"caption",color:"text.disabled",sx:{display:"block",cursor:"pointer"},children:i.description})]})]})},r)})})})]},l)})})}),E&&e.jsx(Re,{error:!0,sx:{mt:1},children:E})]})}oe.propTypes={eventsBySource:t.objectOf(t.shape({source:t.shape({did:t.string.isRequired,title:t.string,description:t.string,version:t.string,logo:t.string}).isRequired,events:t.arrayOf(t.shape({type:t.string.isRequired,description:t.string.isRequired,source:t.string.isRequired})).isRequired,count:t.number.isRequired})).isRequired,selectedEvents:t.objectOf(t.bool).isRequired,setSelectedEvents:t.func.isRequired,error:t.string};oe.defaultProps={error:null};function se({id:o,url:p,description:u,enabledEvents:E,onSubmit:s,onClose:I}){var i;const{t:c}=B(),[a,d]=T.useState({}),{teamDid:j}=_(),{api:y}=U(),{loading:f,error:w,eventsBySource:b}=ot(),{control:l,handleSubmit:g,formState:{errors:h},reset:S,setValue:x,trigger:z}=Fe({defaultValues:{url:"",description:""}});T.useEffect(()=>{const r=Object.values(a).some(n=>n);x("selectedEvents",r?"valid":""),z("selectedEvents")},[a,x,z]);const k=()=>{d({}),S(),I()},W=async r=>{const n=Object.keys(a).filter(v=>a[v]),C={url:r.url,description:r.description,enabledEvents:n.map(v=>{const[D,A]=v.split("-");return!D||!A?null:{type:D,source:A}}).filter(Boolean)};try{if(o){const v=await y.updateWebhookEndpoint({input:{teamDid:j,id:o,data:C}});M.success(`${c("webhookEndpoint.updateWebhook")} ${c("webhookEndpoint.success")}`),s(v)}else{const v=await y.createWebhookEndpoint({input:{teamDid:j,input:C}});M.success(`${c("webhookEndpoint.createWebhook")} ${c("webhookEndpoint.success")}`),s(v)}}catch(v){M.error(v==null?void 0:v.message)}k()};return T.useEffect(()=>{S({url:p,description:u}),d(E.reduce((r,n)=>(r[`${n.type}-${n.source}`]=!0,r),{}))},[S,d,p,u,E]),e.jsx(ye,{open:!0,onClose:k,maxWidth:"lg",fullWidth:!0,sx:{"& .MuiDialog-paper":{minHeight:600}},children:e.jsxs("form",{onSubmit:g(W),children:[e.jsx(we,{children:c(o?"webhookEndpoint.editWebhookTitle":"webhookEndpoint.createWebhookTitle")}),e.jsx(ke,{children:e.jsxs(m,{sx:{display:"flex",flexDirection:"column",gap:2,mt:2},children:[e.jsx(Y,{name:"url",control:l,rules:{required:c("webhookEndpoint.validation.urlRequired"),pattern:{value:/^(http|https):\/\/[^ "]+$/,message:c("webhookEndpoint.validation.urlInvalid")}},render:({field:r})=>{var n;return e.jsx(le,{...r,label:c("webhookEndpoint.url.label"),fullWidth:!0,error:!!h.url,helperText:(n=h.url)==null?void 0:n.message})}}),e.jsx(Y,{name:"description",control:l,rules:{required:c("webhookEndpoint.validation.descriptionRequired")},render:({field:r})=>{var n;return e.jsx(le,{...r,label:c("webhookEndpoint.description.label"),fullWidth:!0,multiline:!0,minRows:2,maxRows:4,error:!!h.description,helperText:(n=h.description)==null?void 0:n.message})}}),e.jsx(Y,{name:"selectedEvents",control:l,rules:{required:c("webhookEndpoint.validation.eventRequired")},render:({field:r})=>e.jsx("input",{type:"hidden",...r})}),!f&&b&&Object.keys(b).length>0&&e.jsx(oe,{eventsBySource:b,selectedEvents:a,setSelectedEvents:d,error:(i=h.selectedEvents)==null?void 0:i.message}),!f&&(!b||Object.keys(b).length===0)&&e.jsx(R,{color:"text.secondary",children:c("webhookEndpoint.noAvailableEvents")}),f&&e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"500px",width:"100%"},children:e.jsx(H,{size:20})}),w&&e.jsx(X,{severity:"error",children:c("webhookEndpoint.loadingError",{message:w==null?void 0:w.message})})]})}),e.jsxs(Ee,{sx:{p:"8px 24px 24px"},children:[e.jsx(N,{onClick:k,children:c("common.cancel")}),e.jsx(N,{type:"submit",variant:"contained",color:"primary",children:c(o?"webhookEndpoint.updateWebhook":"webhookEndpoint.saveWebhook")})]})]})})}se.propTypes={onSubmit:t.func.isRequired,id:t.string,url:t.string,description:t.string,enabledEvents:t.arrayOf(t.shape({type:t.string.isRequired,source:t.string.isRequired})),onClose:t.func};se.defaultProps={id:null,url:"",description:"",enabledEvents:[],onClose:()=>{}};function me(o){switch(o){case"enabled":return"success";case"disabled":default:return"default"}}const st=(o="en")=>o==="tw"?"zh":o;function F(o,p="YYYY-MM-DD HH:mm:ss",u="en"){return o?Ie(o).locale(st(u)).format(p):"-"}function nt(o){return typeof o=="number"?!1:pe(o)}function it(o){return o>=200&&o<300}function O(o){const p=nt(o.value);return e.jsxs(e.Fragment,{children:[e.jsxs(P,{direction:"column",alignItems:"flex-start",children:[e.jsxs(R,{component:"div",variant:"body1",mb:1,color:"text.primary",sx:{fontWeight:500},children:[o.label,!!o.tip&&e.jsx(q,{title:o.tip,children:e.jsx(Ze,{fontSize:"small"})})]}),e.jsx(R,{component:"div",variant:"body1",color:p?"text.disabled":"text.secondary",sx:{width:"100%",minHeight:"24px"},children:p?"-":o.value})]}),o.divider&&e.jsx(ze,{orientation:"vertical",flexItem:!0})]})}O.propTypes={label:t.oneOfType([t.string,t.node]).isRequired,value:t.oneOfType([t.string,t.node]).isRequired,tip:t.oneOfType([t.string,t.node]),divider:t.bool};O.defaultProps={tip:"",divider:!1};function ne(o){return e.jsxs(P,{className:"section-header",direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:1,sx:{mb:o.mb,mt:o.mt,pb:1},children:[e.jsx(R,{variant:"h3",sx:{fontSize:{xs:"18px",md:"1.09375rem"}},component:"div",children:o.title}),o.children]})}ne.propTypes={title:t.oneOfType([t.string,t.node]).isRequired,children:t.node,mb:t.number,mt:t.number};ne.defaultProps={children:null,mb:1.5,mt:1.5};const rt=o=>{const p={};return o.forEach(u=>{var s;const E=new Date(u.createdAt).toLocaleDateString();p[E]||(p[E]=[]),(s=p[E])==null||s.push(u)}),p};function ie({eventId:o,webhookEndpointId:p,event:u}){const{api:E}=U(),{t:s}=B(),{teamDid:I}=_(),{blocklet:c}=xe(),{data:a,loadMore:d,loadingMore:j,loading:y}=Ue(x=>{const k=x?Math.ceil(x.list.length/15)+1:1;return E.getWebhookAttempts({input:{teamDid:I,input:{eventId:o,webhookId:p},paging:{page:k,pageSize:15}}})},{reloadDeps:[o,p]}),f=(a==null?void 0:a.list)||[],[w,b]=T.useState(null),l=rt(f);T.useEffect(()=>{!w&&(a!=null&&a.list.length)&&b(a.list[0])},[a==null?void 0:a.list.length,w]);const g=x=>{b(x)};if(y)return e.jsx(H,{});const h=a&&a.list.length<a.paging.total,S=x=>{var z,k,W,i,r;if(x.responseBody&&((z=x.responseBody)!=null&&z.sessionId)&&((k=x.responseBody)!=null&&k.projectId)&&((W=x.responseBody)!=null&&W.agentId)){const n=(r=(i=c==null?void 0:c.site)==null?void 0:i.domainAliases[0])==null?void 0:r.value,C=(c.children||[]).find(D=>{var A;return((A=D==null?void 0:D.meta)==null?void 0:A.name)==="ai-studio"}),v=We(Oe(`https://${n}`,(C==null?void 0:C.mountPoint)||"","projects",x.responseBody.projectId,"logs/main"),{sessionId:x.responseBody.sessionId,agentId:x.responseBody.agentId});return e.jsx(te,{sx:{fontSize:20},onClick:()=>window.open(v,"_blank"),children:e.jsx(m,{component:Ae,icon:qe})})}return null};return e.jsxs(K,{container:!0,spacing:{xs:0,md:1},sx:{height:1},children:[e.jsx(K,{item:!0,xs:12,md:4,height:1,children:pe(Object.keys(l))?e.jsx(R,{color:"text.secondary",children:s("webhookEndpoint.waitingForEvents")}):e.jsxs(e.Fragment,{children:[e.jsx(J,{sx:{maxHeight:"calc(100% - 40px)",py:0,overflowY:"auto"},children:Object.entries(l).map(([x,z])=>e.jsxs(ee.Fragment,{children:[e.jsx(_e,{children:x}),z.map(k=>e.jsxs(Q,{sx:{cursor:"pointer"},onClick:()=>g(k),selected:w===k,secondaryAction:e.jsx(R,{color:"text.secondary",children:F(k.createdAt,"HH:mm:ss")}),children:[e.jsx(Pe,{sx:{minWidth:0,mr:1.5},children:it(k.responseStatus)===!1?e.jsx(Xe,{color:"error"}):e.jsx(Je,{color:"success"})}),e.jsx(De,{primary:e.jsx(R,{color:"text.primary",children:k.event.type})})]},k.id))]},x))}),h&&e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",width:1,children:e.jsx(N,{variant:"text",type:"button",color:"inherit",onClick:d,disabled:j,sx:{color:x=>x.palette.text.disabled},children:s(j?"webhookEndpoint.loadingMore":"webhookEndpoint.loadMore")})})]})}),e.jsxs(K,{item:!0,xs:12,md:8,height:1,children:[w&&e.jsxs(P,{height:1,overflow:"auto",direction:"column",spacing:2,sx:{pl:{xs:0,md:1},mt:{xs:2,md:0},borderLeft:{xs:"none"}},children:[e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(R,{variant:"h6",children:o?w.endpoint.url:w.event.type}),e.jsx(m,{children:S(w)})]}),e.jsxs(m,{children:[e.jsxs(R,{variant:"h6",children:[s("webhookEndpoint.response")," (",w.responseStatus,")"]}),e.jsx(G,{language:"json",children:JSON.stringify(w.responseBody,null,2)})]}),e.jsxs(m,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(R,{variant:"h6",children:s("webhookEndpoint.request")})}),e.jsx(G,{language:"json",sx:{margin:0},children:JSON.stringify(w.event,null,2)})]})]}),(a==null?void 0:a.list.length)===0&&u&&e.jsxs(m,{children:[e.jsx(P,{direction:"row",alignItems:"center",spacing:1,children:e.jsx(R,{variant:"h6",children:s("webhookEndpoint.eventData")})}),e.jsx(G,{language:"json",sx:{margin:0},children:JSON.stringify(u.data,null,2)})]})]})]})}ie.propTypes={eventId:t.string,webhookEndpointId:t.string,event:t.shape({type:t.string,data:t.object,request:t.object,requestInfo:t.object})};ie.defaultProps={eventId:"",webhookEndpointId:"",event:null};function be({id:o,onClose:p}){var j,y,f,w;const{t:u}=B(),{api:E}=U(),{teamDid:s}=_(),{loading:I,error:c,data:a}=ue(()=>E.getWebhookEndpoint({input:{teamDid:s,id:o}})),d=a==null?void 0:a.data;return c?e.jsx(X,{severity:"error",children:c.message}):I||!d?e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",height:1,width:1,children:e.jsx(H,{})}):e.jsxs(lt,{direction:"column",sx:{height:{xs:"auto",md:1}},children:[e.jsxs(m,{children:[e.jsxs(P,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e.jsx(P,{flex:1,width:0,children:e.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(R,{variant:"h5",fontWeight:600,sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:d.description}),e.jsx(q,{title:d.url,children:e.jsx(Z,{sx:{fontSize:"16px",marginTop:"2px"}})})]})}),e.jsx(P,{direction:"row",alignItems:"center",children:e.jsx(te,{edge:"end",color:"inherit",onClick:p,children:e.jsx(Ve,{})})})]}),e.jsx(m,{mt:2,children:e.jsxs(P,{className:"section-body",direction:{xs:"column",md:"row"},spacing:{xs:1,md:3},justifyContent:"flex-start",flexWrap:"wrap",sx:{pt:2,mt:2,borderTop:"1px solid #eee"},children:[e.jsx(O,{label:u("common.status"),value:e.jsx(L,{size:"small",variant:"filled",label:d.status,color:me(d.status),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}}),divider:!0}),e.jsx(O,{label:u("webhookEndpoint.listen"),value:e.jsx(q,{arrow:!0,title:e.jsx("ul",{style:{padding:0,margin:0},children:d.enabledEvents.map(b=>e.jsx("li",{style:{fontSize:"0.7875rem"},children:b==null?void 0:b.type},b))}),children:e.jsx(L,{size:"small",variant:"filled",label:u("webhookEndpoint.eventsCount",{count:d.enabledEvents.length}),sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(O,{label:u("webhookEndpoint.version"),value:d.apiVersion,divider:!0}),e.jsx(O,{label:u("common.createdAt"),value:F(d.createdAt),divider:!0}),e.jsx(O,{label:u("common.updatedAt"),value:F(d.updatedAt),divider:!0}),e.jsx(O,{label:u("common.createdBy"),value:e.jsx(q,{arrow:!0,title:(j=d.createUser)==null?void 0:j.did,children:e.jsx(L,{size:"small",variant:"filled",label:(y=d.createUser)==null?void 0:y.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})}),divider:!0}),e.jsx(O,{label:u("common.updatedBy"),value:e.jsx(q,{arrow:!0,title:(f=d.updateUser)==null?void 0:f.did,children:e.jsx(L,{size:"small",variant:"filled",label:(w=d.updateUser)==null?void 0:w.fullName,sx:{borderRadius:"4px",lineHeight:"20px",textTransform:"capitalize"}})})})]})})]}),e.jsxs(P,{className:"section",flex:1,height:0,overflow:"hidden",children:[e.jsx(ne,{title:u("webhookEndpoint.attempts"),mb:0,mt:4}),e.jsx(P,{height:0,flex:1,overflow:"hidden",children:e.jsx(ie,{webhookEndpointId:d.id})})]})]})}be.propTypes={id:t.string.isRequired,onClose:t.func.isRequired};const lt=he(P)``;function ge({open:o,onClose:p,id:u}){return e.jsx(Le,{anchor:"right",open:o,onClose:p,PaperProps:{sx:{width:"90vw",maxWidth:"1200px"}},children:e.jsx(m,{sx:{height:"100vh",p:3},children:e.jsx(be,{id:u,onClose:p})})})}ge.propTypes={open:t.bool.isRequired,onClose:t.func.isRequired,id:t.string.isRequired};function de(){return null}const re=ee.memo(({options:o,columns:p,toolbar:u=!0,footer:E=!0,hasRowLink:s=!1,emptyNodeText:I="",...c})=>{const{locale:a}=B(),d=Me(f=>f.breakpoints.down("md")),j={print:!1,download:!1,filter:!1,selectableRows:"none",rowsPerPage:d?5:10,rowsPerPageOptions:[5,10,20,50,100],searchDebounceTime:300,tableBodyHeight:"100%",loading:!0},y={};return u||(y.TableToolbar=de),E||(y.TableFooter=de),e.jsx(at,{locale:a,options:{...j,...o},columns:(p||[]).map(f=>(f.options=f.options||{},f.options.filter=f.options.filter||!1,f.options.sort=f.options.sort||!1,f)),emptyNode:e.jsx(Ke,{children:I}),...c,components:y,hasRowLink:s,isMobile:d})});re.propTypes={options:t.object,columns:t.array,toolbar:t.bool,footer:t.bool,hasRowLink:t.bool,emptyNodeText:t.node,durable:t.string,durableKeys:t.array,data:t.array,loading:t.bool,onChange:t.func,title:t.node,components:t.object};re.defaultProps={options:{},columns:[],toolbar:!0,footer:!0,hasRowLink:!1,emptyNodeText:null,durable:"",durableKeys:[],data:[],loading:!1,onChange:()=>{},title:null,components:{}};const at=he(fe)``,ct=re;function qt(){const{teamDid:o}=_(),p=Ne(),u=`webhook-endpoints-${o}`,E=je(u),{t:s,locale:I}=B(),{api:c}=U(),[a,d]=T.useState(""),[j,y]=T.useState({webhookDetail:{open:!1,id:null},createEdit:{open:!1,id:null,url:"",description:"",enabledEvents:[]},deleteConfirm:null}),[f,w]=$e(u,{defaultValue:{pageSize:E.rowsPerPage||20,page:E.page?E.page+1:1}}),{loading:b,error:l,data:g,refresh:h}=ue(()=>c.getWebhookEndpoints({input:{teamDid:o,paging:{page:f.page,pageSize:f.pageSize}}}));T.useEffect(()=>{h()},[f,h]);const S=T.useCallback(async(i,r)=>{try{await c.updateWebhookEndpoint({input:{teamDid:o,id:i.id,data:{status:r?"disabled":"enabled"}}}),h(),M.success(`${s(r?"webhookEndpoint.disable":"webhookEndpoint.enable")}${s("webhookEndpoint.success")}`)}catch(n){M.error(n==null?void 0:n.message)}},[c,o,h,s]),x=T.useCallback(async i=>{try{await c.deleteWebhookEndpoint({input:{teamDid:o,id:i}}),h(),y(r=>({...r,deleteConfirm:null})),M.success(`${s("common.delete")}${s("webhookEndpoint.success")}`)}catch(r){M.error(r==null?void 0:r.message)}},[c,o,h,s]),z=(i,r)=>{let n=i.page+1;const C=i.searchText||"";if(C!==a){d(C);return}if(r==="changePage"||r==="changeRowsPerPage"){r!=="changePage"&&(n=1);const v={page:n,pageSize:i.rowsPerPage};d(""),w(v)}};if(l)return e.jsx(X,{severity:"error",children:l.message});if(b||!g)return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",width:1,height:500,children:e.jsx(H,{})});const k=((g==null?void 0:g.list)||[]).filter(i=>{if(!a)return!0;const r=a.toLowerCase();return i.description.toLowerCase().includes(r)||i.url.toLowerCase().includes(r)}),W=[{label:"URL",name:"url",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsxs(m,{sx:{display:"flex",alignItems:"center",cursor:"pointer",gap:.5},children:[e.jsx(R,{variant:"body2",children:n.description}),e.jsx(m,{sx:{display:"flex"},onClick:C=>{C.stopPropagation()},children:e.jsx(q,{title:n.url,children:e.jsx(Z,{sx:{fontSize:"15px",marginTop:"1px"}})})})]})}}},{label:"Events",name:"events",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsx(m,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:n.enabledEvents.map(C=>e.jsx(L,{size:"small",variant:"filled",label:C.type,sx:{borderRadius:"4px",textTransform:"capitalize"}},`${n.source}-${C.type}`))})}}},{label:s("common.status"),name:"status",options:{customBodyRenderLite:(i,r)=>{const n=k[r];return e.jsx(L,{size:"small",variant:"filled",label:s(`webhookEndpoint.${n==null?void 0:n.status}`),color:me(n==null?void 0:n.status),sx:{borderRadius:"4px",textTransform:"capitalize"}},`status-${n.status}`)}}},{label:s("common.createdAt"),name:"createdAt",minWidth:200,options:{customBodyRender:i=>F(i)}},{label:s("common.actions"),name:"actions",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRenderLite:(i,r)=>{const n=k[r],C=(n==null?void 0:n.status)==="enabled";return e.jsx(Ye,{actions:[{icon:C?e.jsx(et,{}):e.jsx(tt,{}),text:s(C?"webhookEndpoint.disable":"webhookEndpoint.enable"),onClick:v=>{v.stopPropagation(),S(n,C)}},{icon:e.jsx(Qe,{}),text:s("common.edit"),onClick:v=>{v.stopPropagation(),y(D=>({...D,createEdit:{open:!0,id:n.id,url:n.url,description:n.description,enabledEvents:n.enabledEvents}}))}},{icon:e.jsx(Ge,{}),text:s("common.delete"),onClick:v=>{v.stopPropagation(),y(D=>({...D,deleteConfirm:{title:s("webhookEndpoint.deleteWebhook.title"),description:s("webhookEndpoint.deleteWebhook.description"),confirm:s("common.confirm"),cancel:s("common.cancel"),onConfirm:()=>x(n.id),onCancel:()=>y(A=>({...A,deleteConfirm:null}))}}))}}]})}}}];return e.jsxs(m,{sx:{".custom-toobar-btns":{gap:"8px"},".custom-toobar-title .custom-toobar-title-inner>span":{display:"flex",alignItems:"center","white-space":"inherit",height:"100%"}},children:[p?e.jsx(ce,{title:s("webhookEndpoint.listTitle"),tooltipTitle:s("webhookEndpoint.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${I}/webhook`}):null,e.jsx(ct,{durable:u,durableKeys:["page","rowsPerPage"],data:k,columns:W,options:{count:g.count,page:f.page-1,rowsPerPage:f.pageSize,viewColumns:!1,onRowClick:(i,{dataIndex:r})=>{const n=g.list[r];y(C=>({...C,webhookDetail:{open:!0,id:n.id}}))}},loading:b,onChange:z,emptyNodeText:e.jsx(P,{gap:1,children:s("webhookEndpoint.noWebhooksAdded")}),title:p?null:e.jsx(ce,{title:s("webhookEndpoint.listTitle"),tooltipTitle:s("webhookEndpoint.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${I}/webhook`}),customButtons:[e.jsxs(N,{sx:{color:"common.white"},edge:"end",variant:"contained",color:"primary",onClick:()=>y(i=>({...i,createEdit:{...i.createEdit,open:!0}})),className:"rule-action",children:[b?e.jsx(H,{size:16}):e.jsx(He,{style:{fontSize:16}}),s("common.create")]},"add")]}),j.webhookDetail.open&&e.jsx(ge,{open:!0,onClose:()=>y(i=>({...i,webhookDetail:{open:!1,id:null}})),id:j.webhookDetail.id}),j.createEdit.open&&e.jsx(se,{onSubmit:h,...j.createEdit,onClose:()=>y(i=>({...i,createEdit:{id:null,url:"",description:"",enabledEvents:[],open:!1}}))}),j.deleteConfirm&&e.jsx(Be,{title:j.deleteConfirm.title,description:j.deleteConfirm.description,confirm:j.deleteConfirm.confirm,cancel:j.deleteConfirm.cancel,params:j.deleteConfirm.params,onConfirm:j.deleteConfirm.onConfirm,onCancel:j.deleteConfirm.onCancel})]})}export{qt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as g,bo as v,u as y,j as r,N as f,S as x,Q as h}from"./index-
|
|
1
|
+
import{x as g,bo as v,u as y,j as r,N as f,S as x,Q as h}from"./index-CGargw6n.js";import{L as j,D as S}from"./download-B2axstvn.js";import{_ as b}from"./useLocalStorage-1IK8Xf3D.js";import"./ButtonGroup-D8iCR_UA.js";import"./getValidReactChildren-2WQ5-6h6.js";function F(){const c=g(),[s,i]=b("server-logs-filter",{name:"abtnode",type:{abtnode:"error"}}),{name:t=s.name}=v(),{info:l}=y(),n=l.routing.provider,a=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(n){const e=`Service Gateway(${n})`;a.push({id:`service-gateway-${n}`,name:e,types:["error","access","security"]})}const d=e=>{i({...s,name:e.target.value}),c(`/logs/${e.target.value}`)},m=r.jsx(f,{sx:{minWidth:240},children:r.jsx(x,{value:t,onChange:d,size:"small",children:a.map(e=>r.jsx(h,{value:e.id,children:e.name},e.id))})}),o=a.find(e=>e.id===t)||a[0],p=o.types.indexOf(s.type[t]||"error"),u=e=>{i({name:t,type:{...s.type,[t]:e}})};return r.jsx(j,{name:o.name,logId:o.id,types:o.types,prepend:m,postpend:r.jsx(S,{id:l.did,name:"blocklet-server"}),defaultTypeIndex:p,onTypeChange:u},o.id)}export{F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bk as j,
|
|
1
|
+
import{bk as j,d7 as O}from"./index-CGargw6n.js";function k(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const J=j(h),S=k({__proto__:null,default:J},[h]);export{S as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bk as Gi,dn as Te,j as x,r as fe,d6 as Dt,Z as Yi,fb as Wi,K as jt,ay as Jn,hv as qi,aT as Ji,g$ as Qi,h as Di,hw as Qn,fh as er,hx as tr,c5 as nr}from"./index-DTI4BkNW.js";import{a as ir,r as rr}from"./emotion-react.browser.esm-BPIpPz3P.js";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const ar=4,en=0,tn=1,sr=2;function Ae(e){let n=e.length;for(;--n>=0;)e[n]=0}const or=0,Dn=1,lr=2,fr=3,cr=258,Ut=29,We=256,Be=We+1+Ut,Ee=30,Bt=19,ei=2*Be+1,de=15,ut=16,dr=7,Mt=256,ti=16,ni=17,ii=18,At=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),rt=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),ur=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),ri=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),hr=512,J=new Array((Be+2)*2);Ae(J);const Ze=new Array(Ee*2);Ae(Ze);const Me=new Array(hr);Ae(Me);const He=new Array(cr-fr+1);Ae(He);const Ht=new Array(Ut);Ae(Ht);const at=new Array(Ee);Ae(at);function ht(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let ai,si,oi;function _t(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const li=e=>e<256?Me[e]:Me[256+(e>>>7)],Ve=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},j=(e,n,t)=>{e.bi_valid>ut-t?(e.bi_buf|=n<<e.bi_valid&65535,Ve(e,e.bi_buf),e.bi_buf=n>>ut-e.bi_valid,e.bi_valid+=t-ut):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},G=(e,n,t)=>{j(e,t[n*2],t[n*2+1])},fi=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},_r=e=>{e.bi_valid===16?(Ve(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},pr=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,f=n.stat_desc.max_length;let o,c,_,u,d,b,v=0;for(u=0;u<=de;u++)e.bl_count[u]=0;for(t[e.heap[e.heap_max]*2+1]=0,o=e.heap_max+1;o<ei;o++)c=e.heap[o],u=t[t[c*2+1]*2+1]+1,u>f&&(u=f,v++),t[c*2+1]=u,!(c>i)&&(e.bl_count[u]++,d=0,c>=s&&(d=l[c-s]),b=t[c*2],e.opt_len+=b*(u+d),a&&(e.static_len+=b*(r[c*2+1]+d)));if(v!==0){do{for(u=f-1;e.bl_count[u]===0;)u--;e.bl_count[u]--,e.bl_count[u+1]+=2,e.bl_count[f]--,v-=2}while(v>0);for(u=f;u!==0;u--)for(c=e.bl_count[u];c!==0;)_=e.heap[--o],!(_>i)&&(t[_*2+1]!==u&&(e.opt_len+=(u-t[_*2+1])*t[_*2],t[_*2+1]=u),c--)}},ci=(e,n,t)=>{const i=new Array(de+1);let r=0,a,l;for(a=1;a<=de;a++)r=r+t[a-1]<<1,i[a]=r;for(l=0;l<=n;l++){let s=e[l*2+1];s!==0&&(e[l*2]=fi(i[s]++,s))}},gr=()=>{let e,n,t,i,r;const a=new Array(de+1);for(t=0,i=0;i<Ut-1;i++)for(Ht[i]=t,e=0;e<1<<At[i];e++)He[t++]=i;for(He[t-1]=i,r=0,i=0;i<16;i++)for(at[i]=r,e=0;e<1<<rt[i];e++)Me[r++]=i;for(r>>=7;i<Ee;i++)for(at[i]=r<<7,e=0;e<1<<rt[i]-7;e++)Me[256+r++]=i;for(n=0;n<=de;n++)a[n]=0;for(e=0;e<=143;)J[e*2+1]=8,e++,a[8]++;for(;e<=255;)J[e*2+1]=9,e++,a[9]++;for(;e<=279;)J[e*2+1]=7,e++,a[7]++;for(;e<=287;)J[e*2+1]=8,e++,a[8]++;for(ci(J,Be+1,a),e=0;e<Ee;e++)Ze[e*2+1]=5,Ze[e*2]=fi(e,5);ai=new ht(J,At,We+1,Be,de),si=new ht(Ze,rt,0,Ee,de),oi=new ht(new Array(0),ur,0,Bt,dr)},di=e=>{let n;for(n=0;n<Be;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Ee;n++)e.dyn_dtree[n*2]=0;for(n=0;n<Bt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[Mt*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},ui=e=>{e.bi_valid>8?Ve(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},nn=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},pt=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&nn(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!nn(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},rn=(e,n,t)=>{let i,r,a=0,l,s;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?G(e,r,n):(l=He[r],G(e,l+We+1,n),s=At[l],s!==0&&(r-=Ht[l],j(e,r,s)),i--,l=li(i),G(e,l,t),s=rt[l],s!==0&&(i-=at[l],j(e,i,s)));while(a<e.sym_next);G(e,Mt,n)},St=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let l,s,f=-1,o;for(e.heap_len=0,e.heap_max=ei,l=0;l<a;l++)t[l*2]!==0?(e.heap[++e.heap_len]=f=l,e.depth[l]=0):t[l*2+1]=0;for(;e.heap_len<2;)o=e.heap[++e.heap_len]=f<2?++f:0,t[o*2]=1,e.depth[o]=0,e.opt_len--,r&&(e.static_len-=i[o*2+1]);for(n.max_code=f,l=e.heap_len>>1;l>=1;l--)pt(e,t,l);o=a;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pt(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=s,t[o*2]=t[l*2]+t[s*2],e.depth[o]=(e.depth[l]>=e.depth[s]?e.depth[l]:e.depth[s])+1,t[l*2+1]=t[s*2+1]=o,e.heap[1]=o++,pt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],pr(e,n),ci(t,f,e.bl_count)},an=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)&&(s<o?e.bl_tree[a*2]+=s:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[ti*2]++):s<=10?e.bl_tree[ni*2]++:e.bl_tree[ii*2]++,s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4))},sn=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),i=0;i<=t;i++)if(a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)){if(s<o)do G(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==r&&(G(e,a,e.bl_tree),s--),G(e,ti,e.bl_tree),j(e,s-3,2)):s<=10?(G(e,ni,e.bl_tree),j(e,s-3,3)):(G(e,ii,e.bl_tree),j(e,s-11,7));s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4)}},br=e=>{let n;for(an(e,e.dyn_ltree,e.l_desc.max_code),an(e,e.dyn_dtree,e.d_desc.max_code),St(e,e.bl_desc),n=Bt-1;n>=3&&e.bl_tree[ri[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},wr=(e,n,t,i)=>{let r;for(j(e,n-257,5),j(e,t-1,5),j(e,i-4,4),r=0;r<i;r++)j(e,e.bl_tree[ri[r]*2+1],3);sn(e,e.dyn_ltree,n-1),sn(e,e.dyn_dtree,t-1)},yr=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return en;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return tn;for(t=32;t<We;t++)if(e.dyn_ltree[t*2]!==0)return tn;return en};let on=!1;const xr=e=>{on||(gr(),on=!0),e.l_desc=new _t(e.dyn_ltree,ai),e.d_desc=new _t(e.dyn_dtree,si),e.bl_desc=new _t(e.bl_tree,oi),e.bi_buf=0,e.bi_valid=0,di(e)},hi=(e,n,t,i)=>{j(e,(or<<1)+(i?1:0),3),ui(e),Ve(e,t),Ve(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},vr=e=>{j(e,Dn<<1,3),G(e,Mt,J),_r(e)},mr=(e,n,t,i)=>{let r,a,l=0;e.level>0?(e.strm.data_type===sr&&(e.strm.data_type=yr(e)),St(e,e.l_desc),St(e,e.d_desc),l=br(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?hi(e,n,t,i):e.strategy===ar||a===r?(j(e,(Dn<<1)+(i?1:0),3),rn(e,J,Ze)):(j(e,(lr<<1)+(i?1:0),3),wr(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),rn(e,e.dyn_ltree,e.dyn_dtree)),di(e),i&&ui(e)},Er=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(He[t]+We+1)*2]++,e.dyn_dtree[li(n)*2]++),e.sym_next===e.sym_end);var Nr=xr,kr=hi,Tr=mr,Ar=Er,Sr=vr,Or={_tr_init:Nr,_tr_stored_block:kr,_tr_flush_block:Tr,_tr_tally:Ar,_tr_align:Sr};const Ir=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,l=0;for(;t!==0;){l=t>2e3?2e3:t,t-=l;do r=r+n[i++]|0,a=a+r|0;while(--l);r%=65521,a%=65521}return r|a<<16|0};var Xe=Ir;const Rr=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},zr=new Uint32Array(Rr()),Fr=(e,n,t,i)=>{const r=zr,a=i+t;e^=-1;for(let l=i;l<a;l++)e=e>>>8^r[(e^n[l])&255];return e^-1};var C=Fr,pe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},we={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Cr,_tr_stored_block:Ot,_tr_flush_block:$r,_tr_tally:ie,_tr_align:Pr}=Or,{Z_NO_FLUSH:re,Z_PARTIAL_FLUSH:Lr,Z_FULL_FLUSH:Zr,Z_FINISH:H,Z_BLOCK:ln,Z_OK:$,Z_STREAM_END:fn,Z_STREAM_ERROR:Y,Z_DATA_ERROR:jr,Z_BUF_ERROR:gt,Z_DEFAULT_COMPRESSION:Ur,Z_FILTERED:Br,Z_HUFFMAN_ONLY:De,Z_RLE:Mr,Z_FIXED:Hr,Z_DEFAULT_STRATEGY:Vr,Z_UNKNOWN:Xr,Z_DEFLATED:lt}=we,Kr=9,Gr=15,Yr=8,Wr=29,qr=256,It=qr+1+Wr,Jr=30,Qr=19,Dr=2*It+1,ea=15,S=3,ne=258,W=ne+S+1,ta=32,Ne=42,Vt=57,Rt=69,zt=73,Ft=91,Ct=103,ue=113,Pe=666,Z=1,Se=2,ge=3,Oe=4,na=3,he=(e,n)=>(e.msg=pe[n],n),cn=e=>e*2-(e>4?9:0),te=e=>{let n=e.length;for(;--n>=0;)e[n]=0},ia=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let ra=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask,ae=ra;const U=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},B=(e,n)=>{$r(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,U(e.strm)},I=(e,n)=>{e.pending_buf[e.pending++]=n},ze=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},$t=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Xe(e.adler,n,r,t):e.state.wrap===2&&(e.adler=C(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},_i=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,l=e.prev_length,s=e.nice_match;const f=e.strstart>e.w_size-W?e.strstart-(e.w_size-W):0,o=e.window,c=e.w_mask,_=e.prev,u=e.strstart+ne;let d=o[i+l-1],b=o[i+l];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(r=n,!(o[r+l]!==b||o[r+l-1]!==d||o[r]!==o[i]||o[++r]!==o[i+1])){i+=2,r++;do;while(o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&i<u);if(a=ne-(u-i),i=u-ne,a>l){if(e.match_start=n,l=a,a>=s)break;d=o[i+l-1],b=o[i+l]}}while((n=_[n&c])>f&&--t!==0);return l<=e.lookahead?l:e.lookahead},ke=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-W)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),ia(e),i+=n),e.strm.avail_in===0)break;if(t=$t(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=S)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=ae(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=ae(e,e.ins_h,e.window[r+S-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<W&&e.strm.avail_in!==0)},pi=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,l=0,s=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==H||n===re||i!==r+e.strm.avail_in)))break;l=n===H&&i===r+e.strm.avail_in?1:0,Ot(e,0,0,l),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,U(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&($t(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(l===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),l?Oe:n!==re&&n!==H&&e.strm.avail_in===0&&e.strstart===e.block_start?Se:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&($t(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===H)&&n!==re&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,l=n===H&&e.strm.avail_in===0&&i===r?1:0,Ot(e,e.block_start,i,l),e.block_start+=i,U(e.strm)),l?ge:Z)},bt=(e,n)=>{let t,i;for(;;){if(e.lookahead<W){if(ke(e),e.lookahead<W&&n===re)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-W&&(e.match_length=_i(e,t)),e.match_length>=S)if(i=ie(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){e.match_length--;do e.strstart++,e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ae(e,e.ins_h,e.window[e.strstart+1]);else i=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(B(e,!1),e.strm.avail_out===0))return Z}return e.insert=e.strstart<S-1?e.strstart:S-1,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se},ve=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<W){if(ke(e),e.lookahead<W&&n===re)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-W&&(e.match_length=_i(e,t),e.match_length<=5&&(e.strategy===Br||e.match_length===S&&e.strstart-e.match_start>4096)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-S,i=ie(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=S-1,e.strstart++,i&&(B(e,!1),e.strm.avail_out===0))return Z}else if(e.match_available){if(i=ie(e,0,e.window[e.strstart-1]),i&&B(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Z}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ie(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se},aa=(e,n)=>{let t,i,r,a;const l=e.window;for(;;){if(e.lookahead<=ne){if(ke(e),e.lookahead<=ne&&n===re)return Z;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=S&&e.strstart>0&&(r=e.strstart-1,i=l[r],i===l[++r]&&i===l[++r]&&i===l[++r])){a=e.strstart+ne;do;while(i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&r<a);e.match_length=ne-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(t=ie(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(B(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se},sa=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(ke(e),e.lookahead===0)){if(n===re)return Z;break}if(e.match_length=0,t=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(B(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se};function K(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const Le=[new K(0,0,0,0,pi),new K(4,4,8,4,bt),new K(4,5,16,8,bt),new K(4,6,32,32,bt),new K(4,4,16,16,ve),new K(8,16,32,32,ve),new K(8,16,128,128,ve),new K(8,32,128,256,ve),new K(32,128,258,1024,ve),new K(32,258,258,4096,ve)],oa=e=>{e.window_size=2*e.w_size,te(e.head),e.max_lazy_match=Le[e.level].max_lazy,e.good_match=Le[e.level].good_length,e.nice_match=Le[e.level].nice_length,e.max_chain_length=Le[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0};function la(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=lt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Dr*2),this.dyn_dtree=new Uint16Array((2*Jr+1)*2),this.bl_tree=new Uint16Array((2*Qr+1)*2),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(ea+1),this.heap=new Uint16Array(2*It+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*It+1),te(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const qe=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==Ne&&n.status!==Vt&&n.status!==Rt&&n.status!==zt&&n.status!==Ft&&n.status!==Ct&&n.status!==ue&&n.status!==Pe?1:0},gi=e=>{if(qe(e))return he(e,Y);e.total_in=e.total_out=0,e.data_type=Xr;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Vt:n.wrap?Ne:ue,e.adler=n.wrap===2?0:1,n.last_flush=-2,Cr(n),$},bi=e=>{const n=gi(e);return n===$&&oa(e.state),n},fa=(e,n)=>qe(e)||e.state.wrap!==2?Y:(e.state.gzhead=n,$),wi=(e,n,t,i,r,a)=>{if(!e)return Y;let l=1;if(n===Ur&&(n=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),r<1||r>Kr||t!==lt||i<8||i>15||n<0||n>9||a<0||a>Hr||i===8&&l!==1)return he(e,Y);i===8&&(i=9);const s=new la;return e.state=s,s.strm=e,s.status=Ne,s.wrap=l,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+S-1)/S),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=n,s.strategy=a,s.method=t,bi(e)},ca=(e,n)=>wi(e,n,lt,Gr,Yr,Vr),da=(e,n)=>{if(qe(e)||n>ln||n<0)return e?he(e,Y):Y;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Pe&&n!==H)return he(e,e.avail_out===0?gt:Y);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(U(e),e.avail_out===0)return t.last_flush=-1,$}else if(e.avail_in===0&&cn(n)<=cn(i)&&n!==H)return he(e,gt);if(t.status===Pe&&e.avail_in!==0)return he(e,gt);if(t.status===Ne&&t.wrap===0&&(t.status=ue),t.status===Ne){let r=lt+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=De||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=ta),r+=31-r%31,ze(t,r),t.strstart!==0&&(ze(t,e.adler>>>16),ze(t,e.adler&65535)),e.adler=1,t.status=ue,U(e),t.pending!==0)return t.last_flush=-1,$}if(t.status===Vt){if(e.adler=0,I(t,31),I(t,139),I(t,8),t.gzhead)I(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),I(t,t.gzhead.time&255),I(t,t.gzhead.time>>8&255),I(t,t.gzhead.time>>16&255),I(t,t.gzhead.time>>24&255),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(I(t,t.gzhead.extra.length&255),I(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=C(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Rt;else if(I(t,0),I(t,0),I(t,0),I(t,0),I(t,0),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,na),t.status=ue,U(e),t.pending!==0)return t.last_flush=-1,$}if(t.status===Rt){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=s,U(e),t.pending!==0)return t.last_flush=-1,$;r=0,a-=s}let l=new Uint8Array(t.gzhead.extra);t.pending_buf.set(l.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=zt}if(t.status===zt){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),U(e),t.pending!==0)return t.last_flush=-1,$;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Ft}if(t.status===Ft){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),U(e),t.pending!==0)return t.last_flush=-1,$;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r))}t.status=Ct}if(t.status===Ct){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(U(e),t.pending!==0))return t.last_flush=-1,$;I(t,e.adler&255),I(t,e.adler>>8&255),e.adler=0}if(t.status=ue,U(e),t.pending!==0)return t.last_flush=-1,$}if(e.avail_in!==0||t.lookahead!==0||n!==re&&t.status!==Pe){let r=t.level===0?pi(t,n):t.strategy===De?sa(t,n):t.strategy===Mr?aa(t,n):Le[t.level].func(t,n);if((r===ge||r===Oe)&&(t.status=Pe),r===Z||r===ge)return e.avail_out===0&&(t.last_flush=-1),$;if(r===Se&&(n===Lr?Pr(t):n!==ln&&(Ot(t,0,0,!1),n===Zr&&(te(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),U(e),e.avail_out===0))return t.last_flush=-1,$}return n!==H?$:t.wrap<=0?fn:(t.wrap===2?(I(t,e.adler&255),I(t,e.adler>>8&255),I(t,e.adler>>16&255),I(t,e.adler>>24&255),I(t,e.total_in&255),I(t,e.total_in>>8&255),I(t,e.total_in>>16&255),I(t,e.total_in>>24&255)):(ze(t,e.adler>>>16),ze(t,e.adler&65535)),U(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?$:fn)},ua=e=>{if(qe(e))return Y;const n=e.state.status;return e.state=null,n===ue?he(e,jr):$},ha=(e,n)=>{let t=n.length;if(qe(e))return Y;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==Ne||i.lookahead)return Y;if(r===1&&(e.adler=Xe(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(te(i.head),i.strstart=0,i.block_start=0,i.insert=0);let f=new Uint8Array(i.w_size);f.set(n.subarray(t-i.w_size,t),0),n=f,t=i.w_size}const a=e.avail_in,l=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,ke(i);i.lookahead>=S;){let f=i.strstart,o=i.lookahead-(S-1);do i.ins_h=ae(i,i.ins_h,i.window[f+S-1]),i.prev[f&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=f,f++;while(--o);i.strstart=f,i.lookahead=S-1,ke(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=S-1,i.match_available=0,e.next_in=l,e.input=s,e.avail_in=a,i.wrap=r,$};var _a=ca,pa=wi,ga=bi,ba=gi,wa=fa,ya=da,xa=ua,va=ha,ma="pako deflate (from Nodeca project)",je={deflateInit:_a,deflateInit2:pa,deflateReset:ga,deflateResetKeep:ba,deflateSetHeader:wa,deflate:ya,deflateEnd:xa,deflateSetDictionary:va,deflateInfo:ma};const Ea=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Na=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)Ea(t,i)&&(e[i]=t[i])}}return e},ka=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let l=e[i];t.set(l,r),r+=l.length}return t},ft={assign:Na,flattenChunks:ka};let yi=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{yi=!1}const Ke=new Uint8Array(256);for(let e=0;e<256;e++)Ke[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ke[254]=Ke[254]=1;var Ta=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,l=e.length,s=0;for(r=0;r<l;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(s),a=0,r=0;a<s;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Aa=(e,n)=>{if(n<65534&&e.subarray&&yi)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var Sa=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let l=e[i++];if(l<128){a[r++]=l;continue}let s=Ke[l];if(s>4){a[r++]=65533,i+=s-1;continue}for(l&=s===2?31:s===3?15:7;s>1&&i<t;)l=l<<6|e[i++]&63,s--;if(s>1){a[r++]=65533;continue}l<65536?a[r++]=l:(l-=65536,a[r++]=55296|l>>10&1023,a[r++]=56320|l&1023)}return Aa(a,r)},Oa=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Ke[e[t]]>n?t:n},Ge={string2buf:Ta,buf2string:Sa,utf8border:Oa};function Ia(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var xi=Ia;const vi=Object.prototype.toString,{Z_NO_FLUSH:Ra,Z_SYNC_FLUSH:za,Z_FULL_FLUSH:Fa,Z_FINISH:Ca,Z_OK:st,Z_STREAM_END:$a,Z_DEFAULT_COMPRESSION:Pa,Z_DEFAULT_STRATEGY:La,Z_DEFLATED:Za}=we;function Je(e){this.options=ft.assign({level:Pa,method:Za,chunkSize:16384,windowBits:15,memLevel:8,strategy:La},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xi,this.strm.avail_out=0;let t=je.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==st)throw new Error(pe[t]);if(n.header&&je.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Ge.string2buf(n.dictionary):vi.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=je.deflateSetDictionary(this.strm,i),t!==st)throw new Error(pe[t]);this._dict_set=!0}}Je.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?Ca:Ra,typeof e=="string"?t.input=Ge.string2buf(e):vi.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===za||a===Fa)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=je.deflate(t,a),r===$a)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=je.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===st;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Je.prototype.onData=function(e){this.chunks.push(e)};Je.prototype.onEnd=function(e){e===st&&(this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xt(e,n){const t=new Je(n);if(t.push(e,!0),t.err)throw t.msg||pe[t.err];return t.result}function ja(e,n){return n=n||{},n.raw=!0,Xt(e,n)}function Ua(e,n){return n=n||{},n.gzip=!0,Xt(e,n)}var Ba=Je,Ma=Xt,Ha=ja,Va=Ua,Xa=we,Ka={Deflate:Ba,deflate:Ma,deflateRaw:Ha,gzip:Va,constants:Xa};const et=16209,Ga=16191;var Ya=function(n,t){let i,r,a,l,s,f,o,c,_,u,d,b,v,h,g,E,y,p,k,N,w,O,A,m;const T=n.state;i=n.next_in,A=n.input,r=i+(n.avail_in-5),a=n.next_out,m=n.output,l=a-(t-n.avail_out),s=a+(n.avail_out-257),f=T.dmax,o=T.wsize,c=T.whave,_=T.wnext,u=T.window,d=T.hold,b=T.bits,v=T.lencode,h=T.distcode,g=(1<<T.lenbits)-1,E=(1<<T.distbits)-1;e:do{b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),y=v[d&g];t:for(;;){if(p=y>>>24,d>>>=p,b-=p,p=y>>>16&255,p===0)m[a++]=y&65535;else if(p&16){k=y&65535,p&=15,p&&(b<p&&(d+=A[i++]<<b,b+=8),k+=d&(1<<p)-1,d>>>=p,b-=p),b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),y=h[d&E];n:for(;;){if(p=y>>>24,d>>>=p,b-=p,p=y>>>16&255,p&16){if(N=y&65535,p&=15,b<p&&(d+=A[i++]<<b,b+=8,b<p&&(d+=A[i++]<<b,b+=8)),N+=d&(1<<p)-1,N>f){n.msg="invalid distance too far back",T.mode=et;break e}if(d>>>=p,b-=p,p=a-l,N>p){if(p=N-p,p>c&&T.sane){n.msg="invalid distance too far back",T.mode=et;break e}if(w=0,O=u,_===0){if(w+=o-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}else if(_<p){if(w+=o+_-p,p-=_,p<k){k-=p;do m[a++]=u[w++];while(--p);if(w=0,_<k){p=_,k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}}else if(w+=_-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}for(;k>2;)m[a++]=O[w++],m[a++]=O[w++],m[a++]=O[w++],k-=3;k&&(m[a++]=O[w++],k>1&&(m[a++]=O[w++]))}else{w=a-N;do m[a++]=m[w++],m[a++]=m[w++],m[a++]=m[w++],k-=3;while(k>2);k&&(m[a++]=m[w++],k>1&&(m[a++]=m[w++]))}}else if(p&64){n.msg="invalid distance code",T.mode=et;break e}else{y=h[(y&65535)+(d&(1<<p)-1)];continue n}break}}else if(p&64)if(p&32){T.mode=Ga;break e}else{n.msg="invalid literal/length code",T.mode=et;break e}else{y=v[(y&65535)+(d&(1<<p)-1)];continue t}break}}while(i<r&&a<s);k=b>>3,i-=k,b-=k<<3,d&=(1<<b)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<s?257+(s-a):257-(a-s),T.hold=d,T.bits=b};const me=15,dn=852,un=592,hn=0,wt=1,_n=2,Wa=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),qa=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Ja=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Qa=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Da=(e,n,t,i,r,a,l,s)=>{const f=s.bits;let o=0,c=0,_=0,u=0,d=0,b=0,v=0,h=0,g=0,E=0,y,p,k,N,w,O=null,A;const m=new Uint16Array(me+1),T=new Uint16Array(me+1);let X=null,Ie,oe,xe;for(o=0;o<=me;o++)m[o]=0;for(c=0;c<i;c++)m[n[t+c]]++;for(d=f,u=me;u>=1&&m[u]===0;u--);if(d>u&&(d=u),u===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(_=1;_<u&&m[_]===0;_++);for(d<_&&(d=_),h=1,o=1;o<=me;o++)if(h<<=1,h-=m[o],h<0)return-1;if(h>0&&(e===hn||u!==1))return-1;for(T[1]=0,o=1;o<me;o++)T[o+1]=T[o]+m[o];for(c=0;c<i;c++)n[t+c]!==0&&(l[T[n[t+c]]++]=c);if(e===hn?(O=X=l,A=20):e===wt?(O=Wa,X=qa,A=257):(O=Ja,X=Qa,A=0),E=0,c=0,o=_,w=a,b=d,v=0,k=-1,g=1<<d,N=g-1,e===wt&&g>dn||e===_n&&g>un)return 1;for(;;){Ie=o-v,l[c]+1<A?(oe=0,xe=l[c]):l[c]>=A?(oe=X[l[c]-A],xe=O[l[c]-A]):(oe=96,xe=0),y=1<<o-v,p=1<<b,_=p;do p-=y,r[w+(E>>v)+p]=Ie<<24|oe<<16|xe|0;while(p!==0);for(y=1<<o-1;E&y;)y>>=1;if(y!==0?(E&=y-1,E+=y):E=0,c++,--m[o]===0){if(o===u)break;o=n[t+l[c]]}if(o>d&&(E&N)!==k){for(v===0&&(v=d),w+=_,b=o-v,h=1<<b;b+v<u&&(h-=m[b+v],!(h<=0));)b++,h<<=1;if(g+=1<<b,e===wt&&g>dn||e===_n&&g>un)return 1;k=E&N,r[k]=d<<24|b<<16|w-a|0}}return E!==0&&(r[w+E]=o-v<<24|64<<16|0),s.bits=d,0};var Ue=Da;const es=0,mi=1,Ei=2,{Z_FINISH:pn,Z_BLOCK:ts,Z_TREES:tt,Z_OK:be,Z_STREAM_END:ns,Z_NEED_DICT:is,Z_STREAM_ERROR:V,Z_DATA_ERROR:Ni,Z_MEM_ERROR:ki,Z_BUF_ERROR:rs,Z_DEFLATED:gn}=we,ct=16180,bn=16181,wn=16182,yn=16183,xn=16184,vn=16185,mn=16186,En=16187,Nn=16188,kn=16189,ot=16190,q=16191,yt=16192,Tn=16193,xt=16194,An=16195,Sn=16196,On=16197,In=16198,nt=16199,it=16200,Rn=16201,zn=16202,Fn=16203,Cn=16204,$n=16205,vt=16206,Pn=16207,Ln=16208,z=16209,Ti=16210,Ai=16211,as=852,ss=592,os=15,ls=os,Zn=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function fs(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ye=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<ct||n.mode>Ai?1:0},Si=e=>{if(ye(e))return V;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=ct,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(as),n.distcode=n.distdyn=new Int32Array(ss),n.sane=1,n.back=-1,be},Oi=e=>{if(ye(e))return V;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Si(e)},Ii=(e,n)=>{let t;if(ye(e))return V;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?V:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,Oi(e))},Ri=(e,n)=>{if(!e)return V;const t=new fs;e.state=t,t.strm=e,t.window=null,t.mode=ct;const i=Ii(e,n);return i!==be&&(e.state=null),i},cs=e=>Ri(e,ls);let jn=!0,mt,Et;const ds=e=>{if(jn){mt=new Int32Array(512),Et=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(Ue(mi,e.lens,0,288,mt,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;Ue(Ei,e.lens,0,32,Et,0,e.work,{bits:5}),jn=!1}e.lencode=mt,e.lenbits=9,e.distcode=Et,e.distbits=5},zi=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},us=(e,n)=>{let t,i,r,a,l,s,f,o,c,_,u,d,b,v,h=0,g,E,y,p,k,N,w,O;const A=new Uint8Array(4);let m,T;const X=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ye(e)||!e.output||!e.input&&e.avail_in!==0)return V;t=e.state,t.mode===q&&(t.mode=yt),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,_=s,u=f,O=be;e:for(;;)switch(t.mode){case ct:if(t.wrap===0){t.mode=yt;break}for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&2&&o===35615){t.wbits===0&&(t.wbits=15),t.check=0,A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0),o=0,c=0,t.mode=bn;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((o&255)<<8)+(o>>8))%31){e.msg="incorrect header check",t.mode=z;break}if((o&15)!==gn){e.msg="unknown compression method",t.mode=z;break}if(o>>>=4,c-=4,w=(o&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){e.msg="invalid window size",t.mode=z;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=o&512?kn:q,o=0,c=0;break;case bn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.flags=o,(t.flags&255)!==gn){e.msg="unknown compression method",t.mode=z;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=z;break}t.head&&(t.head.text=o>>8&1),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0)),o=0,c=0,t.mode=wn;case wn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.time=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,A[2]=o>>>16&255,A[3]=o>>>24&255,t.check=C(t.check,A,4,0)),o=0,c=0,t.mode=yn;case yn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.xflags=o&255,t.head.os=o>>8),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0)),o=0,c=0,t.mode=xn;case xn:if(t.flags&1024){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length=o,t.head&&(t.head.extra_len=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0)),o=0,c=0}else t.head&&(t.head.extra=null);t.mode=vn;case vn:if(t.flags&1024&&(d=t.length,d>s&&(d=s),d&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+d),w)),t.flags&512&&t.wrap&4&&(t.check=C(t.check,i,d,a)),s-=d,a+=d,t.length-=d),t.length))break e;t.length=0,t.mode=mn;case mn:if(t.flags&2048){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=C(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=En;case En:if(t.flags&4096){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.comment+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=C(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.comment=null);t.mode=Nn;case Nn:if(t.flags&512){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.check&65535)){e.msg="header crc mismatch",t.mode=z;break}o=0,c=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=q;break;case kn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}e.adler=t.check=Zn(o),o=0,c=0,t.mode=ot;case ot:if(t.havedict===0)return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,is;e.adler=t.check=1,t.mode=q;case q:if(n===ts||n===tt)break e;case yt:if(t.last){o>>>=c&7,c-=c&7,t.mode=vt;break}for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}switch(t.last=o&1,o>>>=1,c-=1,o&3){case 0:t.mode=Tn;break;case 1:if(ds(t),t.mode=nt,n===tt){o>>>=2,c-=2;break e}break;case 2:t.mode=Sn;break;case 3:e.msg="invalid block type",t.mode=z}o>>>=2,c-=2;break;case Tn:for(o>>>=c&7,c-=c&7;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if((o&65535)!==(o>>>16^65535)){e.msg="invalid stored block lengths",t.mode=z;break}if(t.length=o&65535,o=0,c=0,t.mode=xt,n===tt)break e;case xt:t.mode=An;case An:if(d=t.length,d){if(d>s&&(d=s),d>f&&(d=f),d===0)break e;r.set(i.subarray(a,a+d),l),s-=d,a+=d,f-=d,l+=d,t.length-=d;break}t.mode=q;break;case Sn:for(;c<14;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.nlen=(o&31)+257,o>>>=5,c-=5,t.ndist=(o&31)+1,o>>>=5,c-=5,t.ncode=(o&15)+4,o>>>=4,c-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=z;break}t.have=0,t.mode=On;case On:for(;t.have<t.ncode;){for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.lens[X[t.have++]]=o&7,o>>>=3,c-=3}for(;t.have<19;)t.lens[X[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,m={bits:t.lenbits},O=Ue(es,t.lens,0,19,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid code lengths set",t.mode=z;break}t.have=0,t.mode=In;case In:for(;t.have<t.nlen+t.ndist;){for(;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,E=h>>>16&255,y=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(y<16)o>>>=g,c-=g,t.lens[t.have++]=y;else{if(y===16){for(T=g+2;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(o>>>=g,c-=g,t.have===0){e.msg="invalid bit length repeat",t.mode=z;break}w=t.lens[t.have-1],d=3+(o&3),o>>>=2,c-=2}else if(y===17){for(T=g+3;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=3+(o&7),o>>>=3,c-=3}else{for(T=g+7;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=11+(o&127),o>>>=7,c-=7}if(t.have+d>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=z;break}for(;d--;)t.lens[t.have++]=w}}if(t.mode===z)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=z;break}if(t.lenbits=9,m={bits:t.lenbits},O=Ue(mi,t.lens,0,t.nlen,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid literal/lengths set",t.mode=z;break}if(t.distbits=6,t.distcode=t.distdyn,m={bits:t.distbits},O=Ue(Ei,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,m),t.distbits=m.bits,O){e.msg="invalid distances set",t.mode=z;break}if(t.mode=nt,n===tt)break e;case nt:t.mode=it;case it:if(s>=6&&f>=258){e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,Ya(e,u),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,t.mode===q&&(t.back=-1);break}for(t.back=0;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,E=h>>>16&255,y=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(E&&!(E&240)){for(p=g,k=E,N=y;h=t.lencode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,E=h>>>16&255,y=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,t.length=y,E===0){t.mode=$n;break}if(E&32){t.back=-1,t.mode=q;break}if(E&64){e.msg="invalid literal/length code",t.mode=z;break}t.extra=E&15,t.mode=Rn;case Rn:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=zn;case zn:for(;h=t.distcode[o&(1<<t.distbits)-1],g=h>>>24,E=h>>>16&255,y=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(!(E&240)){for(p=g,k=E,N=y;h=t.distcode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,E=h>>>16&255,y=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,E&64){e.msg="invalid distance code",t.mode=z;break}t.offset=y,t.extra=E&15,t.mode=Fn;case Fn:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.offset+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=z;break}t.mode=Cn;case Cn:if(f===0)break e;if(d=u-f,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=z;break}d>t.wnext?(d-=t.wnext,b=t.wsize-d):b=t.wnext-d,d>t.length&&(d=t.length),v=t.window}else v=r,b=l-t.offset,d=t.length;d>f&&(d=f),f-=d,t.length-=d;do r[l++]=v[b++];while(--d);t.length===0&&(t.mode=it);break;case $n:if(f===0)break e;r[l++]=t.length,f--,t.mode=it;break;case vt:if(t.wrap){for(;c<32;){if(s===0)break e;s--,o|=i[a++]<<c,c+=8}if(u-=f,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?C(t.check,r,u,l-u):Xe(t.check,r,u,l-u)),u=f,t.wrap&4&&(t.flags?o:Zn(o))!==t.check){e.msg="incorrect data check",t.mode=z;break}o=0,c=0}t.mode=Pn;case Pn:if(t.wrap&&t.flags){for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=z;break}o=0,c=0}t.mode=Ln;case Ln:O=ns;break e;case z:O=Ni;break e;case Ti:return ki;case Ai:default:return V}return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,(t.wsize||u!==e.avail_out&&t.mode<z&&(t.mode<vt||n!==pn))&&zi(e,e.output,e.next_out,u-e.avail_out),_-=e.avail_in,u-=e.avail_out,e.total_in+=_,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?C(t.check,r,u,e.next_out-u):Xe(t.check,r,u,e.next_out-u)),e.data_type=t.bits+(t.last?64:0)+(t.mode===q?128:0)+(t.mode===nt||t.mode===xt?256:0),(_===0&&u===0||n===pn)&&O===be&&(O=rs),O},hs=e=>{if(ye(e))return V;let n=e.state;return n.window&&(n.window=null),e.state=null,be},_s=(e,n)=>{if(ye(e))return V;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,be):V},ps=(e,n)=>{const t=n.length;let i,r,a;return ye(e)||(i=e.state,i.wrap!==0&&i.mode!==ot)?V:i.mode===ot&&(r=1,r=Xe(r,n,t,0),r!==i.check)?Ni:(a=zi(e,n,t,t),a?(i.mode=Ti,ki):(i.havedict=1,be))};var gs=Oi,bs=Ii,ws=Si,ys=cs,xs=Ri,vs=us,ms=hs,Es=_s,Ns=ps,ks="pako inflate (from Nodeca project)",Q={inflateReset:gs,inflateReset2:bs,inflateResetKeep:ws,inflateInit:ys,inflateInit2:xs,inflate:vs,inflateEnd:ms,inflateGetHeader:Es,inflateSetDictionary:Ns,inflateInfo:ks};function Ts(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var As=Ts;const Fi=Object.prototype.toString,{Z_NO_FLUSH:Ss,Z_FINISH:Os,Z_OK:Ye,Z_STREAM_END:Nt,Z_NEED_DICT:kt,Z_STREAM_ERROR:Is,Z_DATA_ERROR:Un,Z_MEM_ERROR:Rs}=we;function Qe(e){this.options=ft.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xi,this.strm.avail_out=0;let t=Q.inflateInit2(this.strm,n.windowBits);if(t!==Ye)throw new Error(pe[t]);if(this.header=new As,Q.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ge.string2buf(n.dictionary):Fi.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=Q.inflateSetDictionary(this.strm,n.dictionary),t!==Ye)))throw new Error(pe[t])}Qe.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,l,s;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?Os:Ss,Fi.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=Q.inflate(t,l),a===kt&&r&&(a=Q.inflateSetDictionary(t,r),a===Ye?a=Q.inflate(t,l):a===Un&&(a=kt));t.avail_in>0&&a===Nt&&t.state.wrap>0&&e[t.next_in]!==0;)Q.inflateReset(t),a=Q.inflate(t,l);switch(a){case Is:case Un:case kt:case Rs:return this.onEnd(a),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||a===Nt))if(this.options.to==="string"){let f=Ge.utf8border(t.output,t.next_out),o=t.next_out-f,c=Ge.buf2string(t.output,f);t.next_out=o,t.avail_out=i-o,o&&t.output.set(t.output.subarray(f,f+o),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Ye&&s===0)){if(a===Nt)return a=Q.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Qe.prototype.onData=function(e){this.chunks.push(e)};Qe.prototype.onEnd=function(e){e===Ye&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Kt(e,n){const t=new Qe(n);if(t.push(e),t.err)throw t.msg||pe[t.err];return t.result}function zs(e,n){return n=n||{},n.raw=!0,Kt(e,n)}var Fs=Qe,Cs=Kt,$s=zs,Ps=Kt,Ls=we,Zs={Inflate:Fs,inflate:Cs,inflateRaw:$s,ungzip:Ps,constants:Ls};const{Deflate:js,deflate:Us,deflateRaw:Bs,gzip:Ms}=Ka,{Inflate:Hs,inflate:Vs,inflateRaw:Xs,ungzip:Ks}=Zs;var Gs=js,Ys=Us,Ws=Bs,qs=Ms,Js=Hs,Qs=Vs,Ds=Xs,eo=Ks,to=we,no={Deflate:Gs,deflate:Ys,deflateRaw:Ws,gzip:qs,Inflate:Js,inflate:Qs,inflateRaw:Ds,ungzip:eo,constants:to},Gt={exports:{}},Yt={},dt={};(function(e){const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",t=n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",i="["+n+"]["+t+"]*",r=new RegExp("^"+i+"$"),a=function(s,f){const o=[];let c=f.exec(s);for(;c;){const _=[];_.startIndex=f.lastIndex-c[0].length;const u=c.length;for(let d=0;d<u;d++)_.push(c[d]);o.push(_),c=f.exec(s)}return o},l=function(s){const f=r.exec(s);return!(f===null||typeof f>"u")};e.isExist=function(s){return typeof s<"u"},e.isEmptyObject=function(s){return Object.keys(s).length===0},e.merge=function(s,f,o){if(f){const c=Object.keys(f),_=c.length;for(let u=0;u<_;u++)o==="strict"?s[c[u]]=[f[c[u]]]:s[c[u]]=f[c[u]]}},e.getValue=function(s){return e.isExist(s)?s:""},e.isName=l,e.getAllMatches=a,e.nameRegexp=i})(dt);const Wt=dt,io={allowBooleanAttributes:!1,unpairedTags:[]};Yt.validate=function(e,n){n=Object.assign({},io,n);const t=[];let i=!1,r=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let a=0;a<e.length;a++)if(e[a]==="<"&&e[a+1]==="?"){if(a+=2,a=Mn(e,a),a.err)return a}else if(e[a]==="<"){let l=a;if(a++,e[a]==="!"){a=Hn(e,a);continue}else{let s=!1;e[a]==="/"&&(s=!0,a++);let f="";for(;a<e.length&&e[a]!==">"&&e[a]!==" "&&e[a]!==" "&&e[a]!==`
|
|
1
|
+
import{bk as Gi,dp as Te,j as x,r as fe,d7 as Dt,Z as Yi,fc as Wi,K as jt,ay as Jn,hw as qi,aT as Ji,h0 as Qi,h as Di,hx as Qn,fi as er,hy as tr,c3 as nr}from"./index-CGargw6n.js";import{a as ir,r as rr}from"./emotion-react.browser.esm-CH67Z3jf.js";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const ar=4,en=0,tn=1,sr=2;function Ae(e){let n=e.length;for(;--n>=0;)e[n]=0}const or=0,Dn=1,lr=2,fr=3,cr=258,Ut=29,We=256,Be=We+1+Ut,Ee=30,Bt=19,ei=2*Be+1,de=15,ut=16,dr=7,Mt=256,ti=16,ni=17,ii=18,At=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),rt=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),ur=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),ri=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),hr=512,J=new Array((Be+2)*2);Ae(J);const Ze=new Array(Ee*2);Ae(Ze);const Me=new Array(hr);Ae(Me);const He=new Array(cr-fr+1);Ae(He);const Ht=new Array(Ut);Ae(Ht);const at=new Array(Ee);Ae(at);function ht(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let ai,si,oi;function _t(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const li=e=>e<256?Me[e]:Me[256+(e>>>7)],Ve=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},j=(e,n,t)=>{e.bi_valid>ut-t?(e.bi_buf|=n<<e.bi_valid&65535,Ve(e,e.bi_buf),e.bi_buf=n>>ut-e.bi_valid,e.bi_valid+=t-ut):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},G=(e,n,t)=>{j(e,t[n*2],t[n*2+1])},fi=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},_r=e=>{e.bi_valid===16?(Ve(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},pr=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,f=n.stat_desc.max_length;let o,c,_,u,d,b,v=0;for(u=0;u<=de;u++)e.bl_count[u]=0;for(t[e.heap[e.heap_max]*2+1]=0,o=e.heap_max+1;o<ei;o++)c=e.heap[o],u=t[t[c*2+1]*2+1]+1,u>f&&(u=f,v++),t[c*2+1]=u,!(c>i)&&(e.bl_count[u]++,d=0,c>=s&&(d=l[c-s]),b=t[c*2],e.opt_len+=b*(u+d),a&&(e.static_len+=b*(r[c*2+1]+d)));if(v!==0){do{for(u=f-1;e.bl_count[u]===0;)u--;e.bl_count[u]--,e.bl_count[u+1]+=2,e.bl_count[f]--,v-=2}while(v>0);for(u=f;u!==0;u--)for(c=e.bl_count[u];c!==0;)_=e.heap[--o],!(_>i)&&(t[_*2+1]!==u&&(e.opt_len+=(u-t[_*2+1])*t[_*2],t[_*2+1]=u),c--)}},ci=(e,n,t)=>{const i=new Array(de+1);let r=0,a,l;for(a=1;a<=de;a++)r=r+t[a-1]<<1,i[a]=r;for(l=0;l<=n;l++){let s=e[l*2+1];s!==0&&(e[l*2]=fi(i[s]++,s))}},gr=()=>{let e,n,t,i,r;const a=new Array(de+1);for(t=0,i=0;i<Ut-1;i++)for(Ht[i]=t,e=0;e<1<<At[i];e++)He[t++]=i;for(He[t-1]=i,r=0,i=0;i<16;i++)for(at[i]=r,e=0;e<1<<rt[i];e++)Me[r++]=i;for(r>>=7;i<Ee;i++)for(at[i]=r<<7,e=0;e<1<<rt[i]-7;e++)Me[256+r++]=i;for(n=0;n<=de;n++)a[n]=0;for(e=0;e<=143;)J[e*2+1]=8,e++,a[8]++;for(;e<=255;)J[e*2+1]=9,e++,a[9]++;for(;e<=279;)J[e*2+1]=7,e++,a[7]++;for(;e<=287;)J[e*2+1]=8,e++,a[8]++;for(ci(J,Be+1,a),e=0;e<Ee;e++)Ze[e*2+1]=5,Ze[e*2]=fi(e,5);ai=new ht(J,At,We+1,Be,de),si=new ht(Ze,rt,0,Ee,de),oi=new ht(new Array(0),ur,0,Bt,dr)},di=e=>{let n;for(n=0;n<Be;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Ee;n++)e.dyn_dtree[n*2]=0;for(n=0;n<Bt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[Mt*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},ui=e=>{e.bi_valid>8?Ve(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},nn=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},pt=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&nn(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!nn(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},rn=(e,n,t)=>{let i,r,a=0,l,s;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?G(e,r,n):(l=He[r],G(e,l+We+1,n),s=At[l],s!==0&&(r-=Ht[l],j(e,r,s)),i--,l=li(i),G(e,l,t),s=rt[l],s!==0&&(i-=at[l],j(e,i,s)));while(a<e.sym_next);G(e,Mt,n)},St=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let l,s,f=-1,o;for(e.heap_len=0,e.heap_max=ei,l=0;l<a;l++)t[l*2]!==0?(e.heap[++e.heap_len]=f=l,e.depth[l]=0):t[l*2+1]=0;for(;e.heap_len<2;)o=e.heap[++e.heap_len]=f<2?++f:0,t[o*2]=1,e.depth[o]=0,e.opt_len--,r&&(e.static_len-=i[o*2+1]);for(n.max_code=f,l=e.heap_len>>1;l>=1;l--)pt(e,t,l);o=a;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pt(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=s,t[o*2]=t[l*2]+t[s*2],e.depth[o]=(e.depth[l]>=e.depth[s]?e.depth[l]:e.depth[s])+1,t[l*2+1]=t[s*2+1]=o,e.heap[1]=o++,pt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],pr(e,n),ci(t,f,e.bl_count)},an=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)&&(s<o?e.bl_tree[a*2]+=s:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[ti*2]++):s<=10?e.bl_tree[ni*2]++:e.bl_tree[ii*2]++,s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4))},sn=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),i=0;i<=t;i++)if(a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)){if(s<o)do G(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==r&&(G(e,a,e.bl_tree),s--),G(e,ti,e.bl_tree),j(e,s-3,2)):s<=10?(G(e,ni,e.bl_tree),j(e,s-3,3)):(G(e,ii,e.bl_tree),j(e,s-11,7));s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4)}},br=e=>{let n;for(an(e,e.dyn_ltree,e.l_desc.max_code),an(e,e.dyn_dtree,e.d_desc.max_code),St(e,e.bl_desc),n=Bt-1;n>=3&&e.bl_tree[ri[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},wr=(e,n,t,i)=>{let r;for(j(e,n-257,5),j(e,t-1,5),j(e,i-4,4),r=0;r<i;r++)j(e,e.bl_tree[ri[r]*2+1],3);sn(e,e.dyn_ltree,n-1),sn(e,e.dyn_dtree,t-1)},yr=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return en;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return tn;for(t=32;t<We;t++)if(e.dyn_ltree[t*2]!==0)return tn;return en};let on=!1;const xr=e=>{on||(gr(),on=!0),e.l_desc=new _t(e.dyn_ltree,ai),e.d_desc=new _t(e.dyn_dtree,si),e.bl_desc=new _t(e.bl_tree,oi),e.bi_buf=0,e.bi_valid=0,di(e)},hi=(e,n,t,i)=>{j(e,(or<<1)+(i?1:0),3),ui(e),Ve(e,t),Ve(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},vr=e=>{j(e,Dn<<1,3),G(e,Mt,J),_r(e)},mr=(e,n,t,i)=>{let r,a,l=0;e.level>0?(e.strm.data_type===sr&&(e.strm.data_type=yr(e)),St(e,e.l_desc),St(e,e.d_desc),l=br(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?hi(e,n,t,i):e.strategy===ar||a===r?(j(e,(Dn<<1)+(i?1:0),3),rn(e,J,Ze)):(j(e,(lr<<1)+(i?1:0),3),wr(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),rn(e,e.dyn_ltree,e.dyn_dtree)),di(e),i&&ui(e)},Er=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(He[t]+We+1)*2]++,e.dyn_dtree[li(n)*2]++),e.sym_next===e.sym_end);var Nr=xr,kr=hi,Tr=mr,Ar=Er,Sr=vr,Or={_tr_init:Nr,_tr_stored_block:kr,_tr_flush_block:Tr,_tr_tally:Ar,_tr_align:Sr};const Ir=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,l=0;for(;t!==0;){l=t>2e3?2e3:t,t-=l;do r=r+n[i++]|0,a=a+r|0;while(--l);r%=65521,a%=65521}return r|a<<16|0};var Xe=Ir;const Rr=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},zr=new Uint32Array(Rr()),Fr=(e,n,t,i)=>{const r=zr,a=i+t;e^=-1;for(let l=i;l<a;l++)e=e>>>8^r[(e^n[l])&255];return e^-1};var C=Fr,pe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},we={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Cr,_tr_stored_block:Ot,_tr_flush_block:$r,_tr_tally:ie,_tr_align:Pr}=Or,{Z_NO_FLUSH:re,Z_PARTIAL_FLUSH:Lr,Z_FULL_FLUSH:Zr,Z_FINISH:H,Z_BLOCK:ln,Z_OK:$,Z_STREAM_END:fn,Z_STREAM_ERROR:Y,Z_DATA_ERROR:jr,Z_BUF_ERROR:gt,Z_DEFAULT_COMPRESSION:Ur,Z_FILTERED:Br,Z_HUFFMAN_ONLY:De,Z_RLE:Mr,Z_FIXED:Hr,Z_DEFAULT_STRATEGY:Vr,Z_UNKNOWN:Xr,Z_DEFLATED:lt}=we,Kr=9,Gr=15,Yr=8,Wr=29,qr=256,It=qr+1+Wr,Jr=30,Qr=19,Dr=2*It+1,ea=15,S=3,ne=258,W=ne+S+1,ta=32,Ne=42,Vt=57,Rt=69,zt=73,Ft=91,Ct=103,ue=113,Pe=666,Z=1,Se=2,ge=3,Oe=4,na=3,he=(e,n)=>(e.msg=pe[n],n),cn=e=>e*2-(e>4?9:0),te=e=>{let n=e.length;for(;--n>=0;)e[n]=0},ia=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let ra=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask,ae=ra;const U=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},B=(e,n)=>{$r(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,U(e.strm)},I=(e,n)=>{e.pending_buf[e.pending++]=n},ze=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},$t=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Xe(e.adler,n,r,t):e.state.wrap===2&&(e.adler=C(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},_i=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,l=e.prev_length,s=e.nice_match;const f=e.strstart>e.w_size-W?e.strstart-(e.w_size-W):0,o=e.window,c=e.w_mask,_=e.prev,u=e.strstart+ne;let d=o[i+l-1],b=o[i+l];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(r=n,!(o[r+l]!==b||o[r+l-1]!==d||o[r]!==o[i]||o[++r]!==o[i+1])){i+=2,r++;do;while(o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&i<u);if(a=ne-(u-i),i=u-ne,a>l){if(e.match_start=n,l=a,a>=s)break;d=o[i+l-1],b=o[i+l]}}while((n=_[n&c])>f&&--t!==0);return l<=e.lookahead?l:e.lookahead},ke=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-W)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),ia(e),i+=n),e.strm.avail_in===0)break;if(t=$t(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=S)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=ae(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=ae(e,e.ins_h,e.window[r+S-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<W&&e.strm.avail_in!==0)},pi=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,l=0,s=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==H||n===re||i!==r+e.strm.avail_in)))break;l=n===H&&i===r+e.strm.avail_in?1:0,Ot(e,0,0,l),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,U(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&($t(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(l===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),l?Oe:n!==re&&n!==H&&e.strm.avail_in===0&&e.strstart===e.block_start?Se:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&($t(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===H)&&n!==re&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,l=n===H&&e.strm.avail_in===0&&i===r?1:0,Ot(e,e.block_start,i,l),e.block_start+=i,U(e.strm)),l?ge:Z)},bt=(e,n)=>{let t,i;for(;;){if(e.lookahead<W){if(ke(e),e.lookahead<W&&n===re)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-W&&(e.match_length=_i(e,t)),e.match_length>=S)if(i=ie(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){e.match_length--;do e.strstart++,e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ae(e,e.ins_h,e.window[e.strstart+1]);else i=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(B(e,!1),e.strm.avail_out===0))return Z}return e.insert=e.strstart<S-1?e.strstart:S-1,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se},ve=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<W){if(ke(e),e.lookahead<W&&n===re)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-W&&(e.match_length=_i(e,t),e.match_length<=5&&(e.strategy===Br||e.match_length===S&&e.strstart-e.match_start>4096)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-S,i=ie(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=S-1,e.strstart++,i&&(B(e,!1),e.strm.avail_out===0))return Z}else if(e.match_available){if(i=ie(e,0,e.window[e.strstart-1]),i&&B(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Z}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ie(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se},aa=(e,n)=>{let t,i,r,a;const l=e.window;for(;;){if(e.lookahead<=ne){if(ke(e),e.lookahead<=ne&&n===re)return Z;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=S&&e.strstart>0&&(r=e.strstart-1,i=l[r],i===l[++r]&&i===l[++r]&&i===l[++r])){a=e.strstart+ne;do;while(i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&r<a);e.match_length=ne-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(t=ie(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(B(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se},sa=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(ke(e),e.lookahead===0)){if(n===re)return Z;break}if(e.match_length=0,t=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(B(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se};function K(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const Le=[new K(0,0,0,0,pi),new K(4,4,8,4,bt),new K(4,5,16,8,bt),new K(4,6,32,32,bt),new K(4,4,16,16,ve),new K(8,16,32,32,ve),new K(8,16,128,128,ve),new K(8,32,128,256,ve),new K(32,128,258,1024,ve),new K(32,258,258,4096,ve)],oa=e=>{e.window_size=2*e.w_size,te(e.head),e.max_lazy_match=Le[e.level].max_lazy,e.good_match=Le[e.level].good_length,e.nice_match=Le[e.level].nice_length,e.max_chain_length=Le[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0};function la(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=lt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Dr*2),this.dyn_dtree=new Uint16Array((2*Jr+1)*2),this.bl_tree=new Uint16Array((2*Qr+1)*2),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(ea+1),this.heap=new Uint16Array(2*It+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*It+1),te(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const qe=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==Ne&&n.status!==Vt&&n.status!==Rt&&n.status!==zt&&n.status!==Ft&&n.status!==Ct&&n.status!==ue&&n.status!==Pe?1:0},gi=e=>{if(qe(e))return he(e,Y);e.total_in=e.total_out=0,e.data_type=Xr;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Vt:n.wrap?Ne:ue,e.adler=n.wrap===2?0:1,n.last_flush=-2,Cr(n),$},bi=e=>{const n=gi(e);return n===$&&oa(e.state),n},fa=(e,n)=>qe(e)||e.state.wrap!==2?Y:(e.state.gzhead=n,$),wi=(e,n,t,i,r,a)=>{if(!e)return Y;let l=1;if(n===Ur&&(n=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),r<1||r>Kr||t!==lt||i<8||i>15||n<0||n>9||a<0||a>Hr||i===8&&l!==1)return he(e,Y);i===8&&(i=9);const s=new la;return e.state=s,s.strm=e,s.status=Ne,s.wrap=l,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+S-1)/S),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=n,s.strategy=a,s.method=t,bi(e)},ca=(e,n)=>wi(e,n,lt,Gr,Yr,Vr),da=(e,n)=>{if(qe(e)||n>ln||n<0)return e?he(e,Y):Y;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Pe&&n!==H)return he(e,e.avail_out===0?gt:Y);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(U(e),e.avail_out===0)return t.last_flush=-1,$}else if(e.avail_in===0&&cn(n)<=cn(i)&&n!==H)return he(e,gt);if(t.status===Pe&&e.avail_in!==0)return he(e,gt);if(t.status===Ne&&t.wrap===0&&(t.status=ue),t.status===Ne){let r=lt+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=De||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=ta),r+=31-r%31,ze(t,r),t.strstart!==0&&(ze(t,e.adler>>>16),ze(t,e.adler&65535)),e.adler=1,t.status=ue,U(e),t.pending!==0)return t.last_flush=-1,$}if(t.status===Vt){if(e.adler=0,I(t,31),I(t,139),I(t,8),t.gzhead)I(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),I(t,t.gzhead.time&255),I(t,t.gzhead.time>>8&255),I(t,t.gzhead.time>>16&255),I(t,t.gzhead.time>>24&255),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(I(t,t.gzhead.extra.length&255),I(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=C(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Rt;else if(I(t,0),I(t,0),I(t,0),I(t,0),I(t,0),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,na),t.status=ue,U(e),t.pending!==0)return t.last_flush=-1,$}if(t.status===Rt){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=s,U(e),t.pending!==0)return t.last_flush=-1,$;r=0,a-=s}let l=new Uint8Array(t.gzhead.extra);t.pending_buf.set(l.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=zt}if(t.status===zt){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),U(e),t.pending!==0)return t.last_flush=-1,$;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Ft}if(t.status===Ft){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),U(e),t.pending!==0)return t.last_flush=-1,$;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r))}t.status=Ct}if(t.status===Ct){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(U(e),t.pending!==0))return t.last_flush=-1,$;I(t,e.adler&255),I(t,e.adler>>8&255),e.adler=0}if(t.status=ue,U(e),t.pending!==0)return t.last_flush=-1,$}if(e.avail_in!==0||t.lookahead!==0||n!==re&&t.status!==Pe){let r=t.level===0?pi(t,n):t.strategy===De?sa(t,n):t.strategy===Mr?aa(t,n):Le[t.level].func(t,n);if((r===ge||r===Oe)&&(t.status=Pe),r===Z||r===ge)return e.avail_out===0&&(t.last_flush=-1),$;if(r===Se&&(n===Lr?Pr(t):n!==ln&&(Ot(t,0,0,!1),n===Zr&&(te(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),U(e),e.avail_out===0))return t.last_flush=-1,$}return n!==H?$:t.wrap<=0?fn:(t.wrap===2?(I(t,e.adler&255),I(t,e.adler>>8&255),I(t,e.adler>>16&255),I(t,e.adler>>24&255),I(t,e.total_in&255),I(t,e.total_in>>8&255),I(t,e.total_in>>16&255),I(t,e.total_in>>24&255)):(ze(t,e.adler>>>16),ze(t,e.adler&65535)),U(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?$:fn)},ua=e=>{if(qe(e))return Y;const n=e.state.status;return e.state=null,n===ue?he(e,jr):$},ha=(e,n)=>{let t=n.length;if(qe(e))return Y;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==Ne||i.lookahead)return Y;if(r===1&&(e.adler=Xe(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(te(i.head),i.strstart=0,i.block_start=0,i.insert=0);let f=new Uint8Array(i.w_size);f.set(n.subarray(t-i.w_size,t),0),n=f,t=i.w_size}const a=e.avail_in,l=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,ke(i);i.lookahead>=S;){let f=i.strstart,o=i.lookahead-(S-1);do i.ins_h=ae(i,i.ins_h,i.window[f+S-1]),i.prev[f&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=f,f++;while(--o);i.strstart=f,i.lookahead=S-1,ke(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=S-1,i.match_available=0,e.next_in=l,e.input=s,e.avail_in=a,i.wrap=r,$};var _a=ca,pa=wi,ga=bi,ba=gi,wa=fa,ya=da,xa=ua,va=ha,ma="pako deflate (from Nodeca project)",je={deflateInit:_a,deflateInit2:pa,deflateReset:ga,deflateResetKeep:ba,deflateSetHeader:wa,deflate:ya,deflateEnd:xa,deflateSetDictionary:va,deflateInfo:ma};const Ea=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Na=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)Ea(t,i)&&(e[i]=t[i])}}return e},ka=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let l=e[i];t.set(l,r),r+=l.length}return t},ft={assign:Na,flattenChunks:ka};let yi=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{yi=!1}const Ke=new Uint8Array(256);for(let e=0;e<256;e++)Ke[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ke[254]=Ke[254]=1;var Ta=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,l=e.length,s=0;for(r=0;r<l;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(s),a=0,r=0;a<s;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Aa=(e,n)=>{if(n<65534&&e.subarray&&yi)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var Sa=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let l=e[i++];if(l<128){a[r++]=l;continue}let s=Ke[l];if(s>4){a[r++]=65533,i+=s-1;continue}for(l&=s===2?31:s===3?15:7;s>1&&i<t;)l=l<<6|e[i++]&63,s--;if(s>1){a[r++]=65533;continue}l<65536?a[r++]=l:(l-=65536,a[r++]=55296|l>>10&1023,a[r++]=56320|l&1023)}return Aa(a,r)},Oa=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Ke[e[t]]>n?t:n},Ge={string2buf:Ta,buf2string:Sa,utf8border:Oa};function Ia(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var xi=Ia;const vi=Object.prototype.toString,{Z_NO_FLUSH:Ra,Z_SYNC_FLUSH:za,Z_FULL_FLUSH:Fa,Z_FINISH:Ca,Z_OK:st,Z_STREAM_END:$a,Z_DEFAULT_COMPRESSION:Pa,Z_DEFAULT_STRATEGY:La,Z_DEFLATED:Za}=we;function Je(e){this.options=ft.assign({level:Pa,method:Za,chunkSize:16384,windowBits:15,memLevel:8,strategy:La},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xi,this.strm.avail_out=0;let t=je.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==st)throw new Error(pe[t]);if(n.header&&je.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Ge.string2buf(n.dictionary):vi.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=je.deflateSetDictionary(this.strm,i),t!==st)throw new Error(pe[t]);this._dict_set=!0}}Je.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?Ca:Ra,typeof e=="string"?t.input=Ge.string2buf(e):vi.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===za||a===Fa)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=je.deflate(t,a),r===$a)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=je.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===st;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Je.prototype.onData=function(e){this.chunks.push(e)};Je.prototype.onEnd=function(e){e===st&&(this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xt(e,n){const t=new Je(n);if(t.push(e,!0),t.err)throw t.msg||pe[t.err];return t.result}function ja(e,n){return n=n||{},n.raw=!0,Xt(e,n)}function Ua(e,n){return n=n||{},n.gzip=!0,Xt(e,n)}var Ba=Je,Ma=Xt,Ha=ja,Va=Ua,Xa=we,Ka={Deflate:Ba,deflate:Ma,deflateRaw:Ha,gzip:Va,constants:Xa};const et=16209,Ga=16191;var Ya=function(n,t){let i,r,a,l,s,f,o,c,_,u,d,b,v,h,g,E,y,p,k,N,w,O,A,m;const T=n.state;i=n.next_in,A=n.input,r=i+(n.avail_in-5),a=n.next_out,m=n.output,l=a-(t-n.avail_out),s=a+(n.avail_out-257),f=T.dmax,o=T.wsize,c=T.whave,_=T.wnext,u=T.window,d=T.hold,b=T.bits,v=T.lencode,h=T.distcode,g=(1<<T.lenbits)-1,E=(1<<T.distbits)-1;e:do{b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),y=v[d&g];t:for(;;){if(p=y>>>24,d>>>=p,b-=p,p=y>>>16&255,p===0)m[a++]=y&65535;else if(p&16){k=y&65535,p&=15,p&&(b<p&&(d+=A[i++]<<b,b+=8),k+=d&(1<<p)-1,d>>>=p,b-=p),b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),y=h[d&E];n:for(;;){if(p=y>>>24,d>>>=p,b-=p,p=y>>>16&255,p&16){if(N=y&65535,p&=15,b<p&&(d+=A[i++]<<b,b+=8,b<p&&(d+=A[i++]<<b,b+=8)),N+=d&(1<<p)-1,N>f){n.msg="invalid distance too far back",T.mode=et;break e}if(d>>>=p,b-=p,p=a-l,N>p){if(p=N-p,p>c&&T.sane){n.msg="invalid distance too far back",T.mode=et;break e}if(w=0,O=u,_===0){if(w+=o-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}else if(_<p){if(w+=o+_-p,p-=_,p<k){k-=p;do m[a++]=u[w++];while(--p);if(w=0,_<k){p=_,k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}}else if(w+=_-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}for(;k>2;)m[a++]=O[w++],m[a++]=O[w++],m[a++]=O[w++],k-=3;k&&(m[a++]=O[w++],k>1&&(m[a++]=O[w++]))}else{w=a-N;do m[a++]=m[w++],m[a++]=m[w++],m[a++]=m[w++],k-=3;while(k>2);k&&(m[a++]=m[w++],k>1&&(m[a++]=m[w++]))}}else if(p&64){n.msg="invalid distance code",T.mode=et;break e}else{y=h[(y&65535)+(d&(1<<p)-1)];continue n}break}}else if(p&64)if(p&32){T.mode=Ga;break e}else{n.msg="invalid literal/length code",T.mode=et;break e}else{y=v[(y&65535)+(d&(1<<p)-1)];continue t}break}}while(i<r&&a<s);k=b>>3,i-=k,b-=k<<3,d&=(1<<b)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<s?257+(s-a):257-(a-s),T.hold=d,T.bits=b};const me=15,dn=852,un=592,hn=0,wt=1,_n=2,Wa=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),qa=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Ja=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Qa=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Da=(e,n,t,i,r,a,l,s)=>{const f=s.bits;let o=0,c=0,_=0,u=0,d=0,b=0,v=0,h=0,g=0,E=0,y,p,k,N,w,O=null,A;const m=new Uint16Array(me+1),T=new Uint16Array(me+1);let X=null,Ie,oe,xe;for(o=0;o<=me;o++)m[o]=0;for(c=0;c<i;c++)m[n[t+c]]++;for(d=f,u=me;u>=1&&m[u]===0;u--);if(d>u&&(d=u),u===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(_=1;_<u&&m[_]===0;_++);for(d<_&&(d=_),h=1,o=1;o<=me;o++)if(h<<=1,h-=m[o],h<0)return-1;if(h>0&&(e===hn||u!==1))return-1;for(T[1]=0,o=1;o<me;o++)T[o+1]=T[o]+m[o];for(c=0;c<i;c++)n[t+c]!==0&&(l[T[n[t+c]]++]=c);if(e===hn?(O=X=l,A=20):e===wt?(O=Wa,X=qa,A=257):(O=Ja,X=Qa,A=0),E=0,c=0,o=_,w=a,b=d,v=0,k=-1,g=1<<d,N=g-1,e===wt&&g>dn||e===_n&&g>un)return 1;for(;;){Ie=o-v,l[c]+1<A?(oe=0,xe=l[c]):l[c]>=A?(oe=X[l[c]-A],xe=O[l[c]-A]):(oe=96,xe=0),y=1<<o-v,p=1<<b,_=p;do p-=y,r[w+(E>>v)+p]=Ie<<24|oe<<16|xe|0;while(p!==0);for(y=1<<o-1;E&y;)y>>=1;if(y!==0?(E&=y-1,E+=y):E=0,c++,--m[o]===0){if(o===u)break;o=n[t+l[c]]}if(o>d&&(E&N)!==k){for(v===0&&(v=d),w+=_,b=o-v,h=1<<b;b+v<u&&(h-=m[b+v],!(h<=0));)b++,h<<=1;if(g+=1<<b,e===wt&&g>dn||e===_n&&g>un)return 1;k=E&N,r[k]=d<<24|b<<16|w-a|0}}return E!==0&&(r[w+E]=o-v<<24|64<<16|0),s.bits=d,0};var Ue=Da;const es=0,mi=1,Ei=2,{Z_FINISH:pn,Z_BLOCK:ts,Z_TREES:tt,Z_OK:be,Z_STREAM_END:ns,Z_NEED_DICT:is,Z_STREAM_ERROR:V,Z_DATA_ERROR:Ni,Z_MEM_ERROR:ki,Z_BUF_ERROR:rs,Z_DEFLATED:gn}=we,ct=16180,bn=16181,wn=16182,yn=16183,xn=16184,vn=16185,mn=16186,En=16187,Nn=16188,kn=16189,ot=16190,q=16191,yt=16192,Tn=16193,xt=16194,An=16195,Sn=16196,On=16197,In=16198,nt=16199,it=16200,Rn=16201,zn=16202,Fn=16203,Cn=16204,$n=16205,vt=16206,Pn=16207,Ln=16208,z=16209,Ti=16210,Ai=16211,as=852,ss=592,os=15,ls=os,Zn=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function fs(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ye=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<ct||n.mode>Ai?1:0},Si=e=>{if(ye(e))return V;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=ct,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(as),n.distcode=n.distdyn=new Int32Array(ss),n.sane=1,n.back=-1,be},Oi=e=>{if(ye(e))return V;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Si(e)},Ii=(e,n)=>{let t;if(ye(e))return V;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?V:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,Oi(e))},Ri=(e,n)=>{if(!e)return V;const t=new fs;e.state=t,t.strm=e,t.window=null,t.mode=ct;const i=Ii(e,n);return i!==be&&(e.state=null),i},cs=e=>Ri(e,ls);let jn=!0,mt,Et;const ds=e=>{if(jn){mt=new Int32Array(512),Et=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(Ue(mi,e.lens,0,288,mt,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;Ue(Ei,e.lens,0,32,Et,0,e.work,{bits:5}),jn=!1}e.lencode=mt,e.lenbits=9,e.distcode=Et,e.distbits=5},zi=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},us=(e,n)=>{let t,i,r,a,l,s,f,o,c,_,u,d,b,v,h=0,g,E,y,p,k,N,w,O;const A=new Uint8Array(4);let m,T;const X=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ye(e)||!e.output||!e.input&&e.avail_in!==0)return V;t=e.state,t.mode===q&&(t.mode=yt),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,_=s,u=f,O=be;e:for(;;)switch(t.mode){case ct:if(t.wrap===0){t.mode=yt;break}for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&2&&o===35615){t.wbits===0&&(t.wbits=15),t.check=0,A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0),o=0,c=0,t.mode=bn;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((o&255)<<8)+(o>>8))%31){e.msg="incorrect header check",t.mode=z;break}if((o&15)!==gn){e.msg="unknown compression method",t.mode=z;break}if(o>>>=4,c-=4,w=(o&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){e.msg="invalid window size",t.mode=z;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=o&512?kn:q,o=0,c=0;break;case bn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.flags=o,(t.flags&255)!==gn){e.msg="unknown compression method",t.mode=z;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=z;break}t.head&&(t.head.text=o>>8&1),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0)),o=0,c=0,t.mode=wn;case wn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.time=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,A[2]=o>>>16&255,A[3]=o>>>24&255,t.check=C(t.check,A,4,0)),o=0,c=0,t.mode=yn;case yn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.xflags=o&255,t.head.os=o>>8),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0)),o=0,c=0,t.mode=xn;case xn:if(t.flags&1024){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length=o,t.head&&(t.head.extra_len=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0)),o=0,c=0}else t.head&&(t.head.extra=null);t.mode=vn;case vn:if(t.flags&1024&&(d=t.length,d>s&&(d=s),d&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+d),w)),t.flags&512&&t.wrap&4&&(t.check=C(t.check,i,d,a)),s-=d,a+=d,t.length-=d),t.length))break e;t.length=0,t.mode=mn;case mn:if(t.flags&2048){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=C(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=En;case En:if(t.flags&4096){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.comment+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=C(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.comment=null);t.mode=Nn;case Nn:if(t.flags&512){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.check&65535)){e.msg="header crc mismatch",t.mode=z;break}o=0,c=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=q;break;case kn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}e.adler=t.check=Zn(o),o=0,c=0,t.mode=ot;case ot:if(t.havedict===0)return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,is;e.adler=t.check=1,t.mode=q;case q:if(n===ts||n===tt)break e;case yt:if(t.last){o>>>=c&7,c-=c&7,t.mode=vt;break}for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}switch(t.last=o&1,o>>>=1,c-=1,o&3){case 0:t.mode=Tn;break;case 1:if(ds(t),t.mode=nt,n===tt){o>>>=2,c-=2;break e}break;case 2:t.mode=Sn;break;case 3:e.msg="invalid block type",t.mode=z}o>>>=2,c-=2;break;case Tn:for(o>>>=c&7,c-=c&7;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if((o&65535)!==(o>>>16^65535)){e.msg="invalid stored block lengths",t.mode=z;break}if(t.length=o&65535,o=0,c=0,t.mode=xt,n===tt)break e;case xt:t.mode=An;case An:if(d=t.length,d){if(d>s&&(d=s),d>f&&(d=f),d===0)break e;r.set(i.subarray(a,a+d),l),s-=d,a+=d,f-=d,l+=d,t.length-=d;break}t.mode=q;break;case Sn:for(;c<14;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.nlen=(o&31)+257,o>>>=5,c-=5,t.ndist=(o&31)+1,o>>>=5,c-=5,t.ncode=(o&15)+4,o>>>=4,c-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=z;break}t.have=0,t.mode=On;case On:for(;t.have<t.ncode;){for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.lens[X[t.have++]]=o&7,o>>>=3,c-=3}for(;t.have<19;)t.lens[X[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,m={bits:t.lenbits},O=Ue(es,t.lens,0,19,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid code lengths set",t.mode=z;break}t.have=0,t.mode=In;case In:for(;t.have<t.nlen+t.ndist;){for(;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,E=h>>>16&255,y=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(y<16)o>>>=g,c-=g,t.lens[t.have++]=y;else{if(y===16){for(T=g+2;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(o>>>=g,c-=g,t.have===0){e.msg="invalid bit length repeat",t.mode=z;break}w=t.lens[t.have-1],d=3+(o&3),o>>>=2,c-=2}else if(y===17){for(T=g+3;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=3+(o&7),o>>>=3,c-=3}else{for(T=g+7;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=11+(o&127),o>>>=7,c-=7}if(t.have+d>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=z;break}for(;d--;)t.lens[t.have++]=w}}if(t.mode===z)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=z;break}if(t.lenbits=9,m={bits:t.lenbits},O=Ue(mi,t.lens,0,t.nlen,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid literal/lengths set",t.mode=z;break}if(t.distbits=6,t.distcode=t.distdyn,m={bits:t.distbits},O=Ue(Ei,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,m),t.distbits=m.bits,O){e.msg="invalid distances set",t.mode=z;break}if(t.mode=nt,n===tt)break e;case nt:t.mode=it;case it:if(s>=6&&f>=258){e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,Ya(e,u),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,t.mode===q&&(t.back=-1);break}for(t.back=0;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,E=h>>>16&255,y=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(E&&!(E&240)){for(p=g,k=E,N=y;h=t.lencode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,E=h>>>16&255,y=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,t.length=y,E===0){t.mode=$n;break}if(E&32){t.back=-1,t.mode=q;break}if(E&64){e.msg="invalid literal/length code",t.mode=z;break}t.extra=E&15,t.mode=Rn;case Rn:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=zn;case zn:for(;h=t.distcode[o&(1<<t.distbits)-1],g=h>>>24,E=h>>>16&255,y=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(!(E&240)){for(p=g,k=E,N=y;h=t.distcode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,E=h>>>16&255,y=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,E&64){e.msg="invalid distance code",t.mode=z;break}t.offset=y,t.extra=E&15,t.mode=Fn;case Fn:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.offset+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=z;break}t.mode=Cn;case Cn:if(f===0)break e;if(d=u-f,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=z;break}d>t.wnext?(d-=t.wnext,b=t.wsize-d):b=t.wnext-d,d>t.length&&(d=t.length),v=t.window}else v=r,b=l-t.offset,d=t.length;d>f&&(d=f),f-=d,t.length-=d;do r[l++]=v[b++];while(--d);t.length===0&&(t.mode=it);break;case $n:if(f===0)break e;r[l++]=t.length,f--,t.mode=it;break;case vt:if(t.wrap){for(;c<32;){if(s===0)break e;s--,o|=i[a++]<<c,c+=8}if(u-=f,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?C(t.check,r,u,l-u):Xe(t.check,r,u,l-u)),u=f,t.wrap&4&&(t.flags?o:Zn(o))!==t.check){e.msg="incorrect data check",t.mode=z;break}o=0,c=0}t.mode=Pn;case Pn:if(t.wrap&&t.flags){for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=z;break}o=0,c=0}t.mode=Ln;case Ln:O=ns;break e;case z:O=Ni;break e;case Ti:return ki;case Ai:default:return V}return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,(t.wsize||u!==e.avail_out&&t.mode<z&&(t.mode<vt||n!==pn))&&zi(e,e.output,e.next_out,u-e.avail_out),_-=e.avail_in,u-=e.avail_out,e.total_in+=_,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?C(t.check,r,u,e.next_out-u):Xe(t.check,r,u,e.next_out-u)),e.data_type=t.bits+(t.last?64:0)+(t.mode===q?128:0)+(t.mode===nt||t.mode===xt?256:0),(_===0&&u===0||n===pn)&&O===be&&(O=rs),O},hs=e=>{if(ye(e))return V;let n=e.state;return n.window&&(n.window=null),e.state=null,be},_s=(e,n)=>{if(ye(e))return V;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,be):V},ps=(e,n)=>{const t=n.length;let i,r,a;return ye(e)||(i=e.state,i.wrap!==0&&i.mode!==ot)?V:i.mode===ot&&(r=1,r=Xe(r,n,t,0),r!==i.check)?Ni:(a=zi(e,n,t,t),a?(i.mode=Ti,ki):(i.havedict=1,be))};var gs=Oi,bs=Ii,ws=Si,ys=cs,xs=Ri,vs=us,ms=hs,Es=_s,Ns=ps,ks="pako inflate (from Nodeca project)",Q={inflateReset:gs,inflateReset2:bs,inflateResetKeep:ws,inflateInit:ys,inflateInit2:xs,inflate:vs,inflateEnd:ms,inflateGetHeader:Es,inflateSetDictionary:Ns,inflateInfo:ks};function Ts(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var As=Ts;const Fi=Object.prototype.toString,{Z_NO_FLUSH:Ss,Z_FINISH:Os,Z_OK:Ye,Z_STREAM_END:Nt,Z_NEED_DICT:kt,Z_STREAM_ERROR:Is,Z_DATA_ERROR:Un,Z_MEM_ERROR:Rs}=we;function Qe(e){this.options=ft.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xi,this.strm.avail_out=0;let t=Q.inflateInit2(this.strm,n.windowBits);if(t!==Ye)throw new Error(pe[t]);if(this.header=new As,Q.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ge.string2buf(n.dictionary):Fi.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=Q.inflateSetDictionary(this.strm,n.dictionary),t!==Ye)))throw new Error(pe[t])}Qe.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,l,s;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?Os:Ss,Fi.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=Q.inflate(t,l),a===kt&&r&&(a=Q.inflateSetDictionary(t,r),a===Ye?a=Q.inflate(t,l):a===Un&&(a=kt));t.avail_in>0&&a===Nt&&t.state.wrap>0&&e[t.next_in]!==0;)Q.inflateReset(t),a=Q.inflate(t,l);switch(a){case Is:case Un:case kt:case Rs:return this.onEnd(a),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||a===Nt))if(this.options.to==="string"){let f=Ge.utf8border(t.output,t.next_out),o=t.next_out-f,c=Ge.buf2string(t.output,f);t.next_out=o,t.avail_out=i-o,o&&t.output.set(t.output.subarray(f,f+o),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Ye&&s===0)){if(a===Nt)return a=Q.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Qe.prototype.onData=function(e){this.chunks.push(e)};Qe.prototype.onEnd=function(e){e===Ye&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Kt(e,n){const t=new Qe(n);if(t.push(e),t.err)throw t.msg||pe[t.err];return t.result}function zs(e,n){return n=n||{},n.raw=!0,Kt(e,n)}var Fs=Qe,Cs=Kt,$s=zs,Ps=Kt,Ls=we,Zs={Inflate:Fs,inflate:Cs,inflateRaw:$s,ungzip:Ps,constants:Ls};const{Deflate:js,deflate:Us,deflateRaw:Bs,gzip:Ms}=Ka,{Inflate:Hs,inflate:Vs,inflateRaw:Xs,ungzip:Ks}=Zs;var Gs=js,Ys=Us,Ws=Bs,qs=Ms,Js=Hs,Qs=Vs,Ds=Xs,eo=Ks,to=we,no={Deflate:Gs,deflate:Ys,deflateRaw:Ws,gzip:qs,Inflate:Js,inflate:Qs,inflateRaw:Ds,ungzip:eo,constants:to},Gt={exports:{}},Yt={},dt={};(function(e){const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",t=n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",i="["+n+"]["+t+"]*",r=new RegExp("^"+i+"$"),a=function(s,f){const o=[];let c=f.exec(s);for(;c;){const _=[];_.startIndex=f.lastIndex-c[0].length;const u=c.length;for(let d=0;d<u;d++)_.push(c[d]);o.push(_),c=f.exec(s)}return o},l=function(s){const f=r.exec(s);return!(f===null||typeof f>"u")};e.isExist=function(s){return typeof s<"u"},e.isEmptyObject=function(s){return Object.keys(s).length===0},e.merge=function(s,f,o){if(f){const c=Object.keys(f),_=c.length;for(let u=0;u<_;u++)o==="strict"?s[c[u]]=[f[c[u]]]:s[c[u]]=f[c[u]]}},e.getValue=function(s){return e.isExist(s)?s:""},e.isName=l,e.getAllMatches=a,e.nameRegexp=i})(dt);const Wt=dt,io={allowBooleanAttributes:!1,unpairedTags:[]};Yt.validate=function(e,n){n=Object.assign({},io,n);const t=[];let i=!1,r=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let a=0;a<e.length;a++)if(e[a]==="<"&&e[a+1]==="?"){if(a+=2,a=Mn(e,a),a.err)return a}else if(e[a]==="<"){let l=a;if(a++,e[a]==="!"){a=Hn(e,a);continue}else{let s=!1;e[a]==="/"&&(s=!0,a++);let f="";for(;a<e.length&&e[a]!==">"&&e[a]!==" "&&e[a]!==" "&&e[a]!==`
|
|
2
2
|
`&&e[a]!=="\r";a++)f+=e[a];if(f=f.trim(),f[f.length-1]==="/"&&(f=f.substring(0,f.length-1),a--),!uo(f)){let _;return f.trim().length===0?_="Invalid space after '<'.":_="Tag '"+f+"' is an invalid name.",F("InvalidTag",_,L(e,a))}const o=so(e,a);if(o===!1)return F("InvalidAttr","Attributes for '"+f+"' have open quote.",L(e,a));let c=o.value;if(a=o.index,c[c.length-1]==="/"){const _=a-c.length;c=c.substring(0,c.length-1);const u=Vn(c,n);if(u===!0)i=!0;else return F(u.err.code,u.err.msg,L(e,_+u.err.line))}else if(s)if(o.tagClosed){if(c.trim().length>0)return F("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",L(e,l));if(t.length===0)return F("InvalidTag","Closing tag '"+f+"' has not been opened.",L(e,l));{const _=t.pop();if(f!==_.tagName){let u=L(e,_.tagStartPos);return F("InvalidTag","Expected closing tag '"+_.tagName+"' (opened in line "+u.line+", col "+u.col+") instead of closing tag '"+f+"'.",L(e,l))}t.length==0&&(r=!0)}}else return F("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",L(e,a));else{const _=Vn(c,n);if(_!==!0)return F(_.err.code,_.err.msg,L(e,a-c.length+_.err.line));if(r===!0)return F("InvalidXml","Multiple possible root nodes found.",L(e,a));n.unpairedTags.indexOf(f)!==-1||t.push({tagName:f,tagStartPos:l}),i=!0}for(a++;a<e.length;a++)if(e[a]==="<")if(e[a+1]==="!"){a++,a=Hn(e,a);continue}else if(e[a+1]==="?"){if(a=Mn(e,++a),a.err)return a}else break;else if(e[a]==="&"){const _=fo(e,a);if(_==-1)return F("InvalidChar","char '&' is not expected.",L(e,a));a=_}else if(r===!0&&!Bn(e[a]))return F("InvalidXml","Extra text at the end",L(e,a));e[a]==="<"&&a--}}else{if(Bn(e[a]))continue;return F("InvalidChar","char '"+e[a]+"' is not expected.",L(e,a))}if(i){if(t.length==1)return F("InvalidTag","Unclosed tag '"+t[0].tagName+"'.",L(e,t[0].tagStartPos));if(t.length>0)return F("InvalidXml","Invalid '"+JSON.stringify(t.map(a=>a.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return F("InvalidXml","Start tag expected.",1);return!0};function Bn(e){return e===" "||e===" "||e===`
|
|
3
3
|
`||e==="\r"}function Mn(e,n){const t=n;for(;n<e.length;n++)if(e[n]=="?"||e[n]==" "){const i=e.substr(t,n-t);if(n>5&&i==="xml")return F("InvalidXml","XML declaration allowed only at the start of the document.",L(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function Hn(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n<e.length;n++)if(e[n]==="-"&&e[n+1]==="-"&&e[n+2]===">"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let t=1;for(n+=8;n<e.length;n++)if(e[n]==="<")t++;else if(e[n]===">"&&(t--,t===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n<e.length;n++)if(e[n]==="]"&&e[n+1]==="]"&&e[n+2]===">"){n+=2;break}}return n}const ro='"',ao="'";function so(e,n){let t="",i="",r=!1;for(;n<e.length;n++){if(e[n]===ro||e[n]===ao)i===""?i=e[n]:i!==e[n]||(i="");else if(e[n]===">"&&i===""){r=!0;break}t+=e[n]}return i!==""?!1:{value:t,index:n,tagClosed:r}}const oo=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Vn(e,n){const t=Wt.getAllMatches(e,oo),i={};for(let r=0;r<t.length;r++){if(t[r][1].length===0)return F("InvalidAttr","Attribute '"+t[r][2]+"' has no space in starting.",Fe(t[r]));if(t[r][3]!==void 0&&t[r][4]===void 0)return F("InvalidAttr","Attribute '"+t[r][2]+"' is without value.",Fe(t[r]));if(t[r][3]===void 0&&!n.allowBooleanAttributes)return F("InvalidAttr","boolean attribute '"+t[r][2]+"' is not allowed.",Fe(t[r]));const a=t[r][2];if(!co(a))return F("InvalidAttr","Attribute '"+a+"' is an invalid name.",Fe(t[r]));if(!i.hasOwnProperty(a))i[a]=1;else return F("InvalidAttr","Attribute '"+a+"' is repeated.",Fe(t[r]))}return!0}function lo(e,n){let t=/\d/;for(e[n]==="x"&&(n++,t=/[\da-fA-F]/);n<e.length;n++){if(e[n]===";")return n;if(!e[n].match(t))break}return-1}function fo(e,n){if(n++,e[n]===";")return-1;if(e[n]==="#")return n++,lo(e,n);let t=0;for(;n<e.length;n++,t++)if(!(e[n].match(/\w/)&&t<20)){if(e[n]===";")break;return-1}return n}function F(e,n,t){return{err:{code:e,msg:n,line:t.line||t,col:t.col}}}function co(e){return Wt.isName(e)}function uo(e){return Wt.isName(e)}function L(e,n){const t=e.substring(0,n).split(/\r?\n/);return{line:t.length,col:t[t.length-1].length+1}}function Fe(e){return e.startIndex+e[1].length}var qt={};const Ci={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,t){return e}},ho=function(e){return Object.assign({},Ci,e)};qt.buildOptions=ho;qt.defaultOptions=Ci;class _o{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,t){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:t})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}}var po=_o;const go=dt;function bo(e,n){const t={};if(e[n+3]==="O"&&e[n+4]==="C"&&e[n+5]==="T"&&e[n+6]==="Y"&&e[n+7]==="P"&&e[n+8]==="E"){n=n+9;let i=1,r=!1,a=!1,l="";for(;n<e.length;n++)if(e[n]==="<"&&!a){if(r&&xo(e,n))n+=7,[entityName,val,n]=wo(e,n+1),val.indexOf("&")===-1&&(t[No(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(r&&vo(e,n))n+=8;else if(r&&mo(e,n))n+=8;else if(r&&Eo(e,n))n+=9;else if(yo)a=!0;else throw new Error("Invalid DOCTYPE");i++,l=""}else if(e[n]===">"){if(a?e[n-1]==="-"&&e[n-2]==="-"&&(a=!1,i--):i--,i===0)break}else e[n]==="["?r=!0:l+=e[n];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:n}}function wo(e,n){let t="";for(;n<e.length&&e[n]!=="'"&&e[n]!=='"';n++)t+=e[n];if(t=t.trim(),t.indexOf(" ")!==-1)throw new Error("External entites are not supported");const i=e[n++];let r="";for(;n<e.length&&e[n]!==i;n++)r+=e[n];return[t,r,n]}function yo(e,n){return e[n+1]==="!"&&e[n+2]==="-"&&e[n+3]==="-"}function xo(e,n){return e[n+1]==="!"&&e[n+2]==="E"&&e[n+3]==="N"&&e[n+4]==="T"&&e[n+5]==="I"&&e[n+6]==="T"&&e[n+7]==="Y"}function vo(e,n){return e[n+1]==="!"&&e[n+2]==="E"&&e[n+3]==="L"&&e[n+4]==="E"&&e[n+5]==="M"&&e[n+6]==="E"&&e[n+7]==="N"&&e[n+8]==="T"}function mo(e,n){return e[n+1]==="!"&&e[n+2]==="A"&&e[n+3]==="T"&&e[n+4]==="T"&&e[n+5]==="L"&&e[n+6]==="I"&&e[n+7]==="S"&&e[n+8]==="T"}function Eo(e,n){return e[n+1]==="!"&&e[n+2]==="N"&&e[n+3]==="O"&&e[n+4]==="T"&&e[n+5]==="A"&&e[n+6]==="T"&&e[n+7]==="I"&&e[n+8]==="O"&&e[n+9]==="N"}function No(e){if(go.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}var ko=bo;const To=/^[-+]?0x[a-fA-F0-9]+$/,Ao=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const So={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function Oo(e,n={}){if(n=Object.assign({},So,n),!e||typeof e!="string")return e;let t=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(t))return e;if(n.hex&&To.test(t))return Number.parseInt(t,16);{const i=Ao.exec(t);if(i){const r=i[1],a=i[2];let l=Io(i[3]);const s=i[4]||i[6];if(!n.leadingZeros&&a.length>0&&r&&t[2]!==".")return e;if(!n.leadingZeros&&a.length>0&&!r&&t[1]!==".")return e;{const f=Number(t),o=""+f;return o.search(/[eE]/)!==-1||s?n.eNotation?f:e:t.indexOf(".")!==-1?o==="0"&&l===""||o===l||r&&o==="-"+l?f:e:a?l===o||r+l===o?f:e:t===o||t===r+o?f:e}}else return e}}function Io(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}var Ro=Oo;function zo(e){return typeof e=="function"?e:Array.isArray(e)?n=>{for(const t of e)if(typeof t=="string"&&n===t||t instanceof RegExp&&t.test(n))return!0}:()=>!1}var $i=zo;const Pi=dt,Ce=po,Fo=ko,Co=Ro,$o=$i;let Po=class{constructor(n){this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,i)=>String.fromCharCode(Number.parseInt(i,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,i)=>String.fromCharCode(Number.parseInt(i,16))}},this.addExternalEntities=Lo,this.parseXml=Mo,this.parseTextData=Zo,this.resolveNameSpace=jo,this.buildAttributesMap=Bo,this.isItStopNode=Ko,this.replaceEntitiesValue=Vo,this.readStopNodeData=Yo,this.saveTextToParentTag=Xo,this.addChild=Ho,this.ignoreAttributesFn=$o(this.options.ignoreAttributes)}};function Lo(e){const n=Object.keys(e);for(let t=0;t<n.length;t++){const i=n[t];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:e[i]}}}function Zo(e,n,t,i,r,a,l){if(e!==void 0&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){l||(e=this.replaceEntitiesValue(e));const s=this.options.tagValueProcessor(n,e,t,r,a);return s==null?e:typeof s!=typeof e||s!==e?s:this.options.trimValues?Lt(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Lt(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function jo(e){if(this.options.removeNSPrefix){const n=e.split(":"),t=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=t+n[1])}return e}const Uo=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Bo(e,n,t){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const i=Pi.getAllMatches(e,Uo),r=i.length,a={};for(let l=0;l<r;l++){const s=this.resolveNameSpace(i[l][1]);if(this.ignoreAttributesFn(s,n))continue;let f=i[l][4],o=this.options.attributeNamePrefix+s;if(s.length)if(this.options.transformAttributeName&&(o=this.options.transformAttributeName(o)),o==="__proto__"&&(o="#__proto__"),f!==void 0){this.options.trimValues&&(f=f.trim()),f=this.replaceEntitiesValue(f);const c=this.options.attributeValueProcessor(s,f,n);c==null?a[o]=f:typeof c!=typeof f||c!==f?a[o]=c:a[o]=Lt(f,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[o]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){const l={};return l[this.options.attributesGroupName]=a,l}return a}}const Mo=function(e){e=e.replace(/\r\n?/g,`
|
|
4
4
|
`);const n=new Ce("!xml");let t=n,i="",r="";for(let a=0;a<e.length;a++)if(e[a]==="<")if(e[a+1]==="/"){const s=_e(e,">",a,"Closing Tag is not closed.");let f=e.substring(a+2,s).trim();if(this.options.removeNSPrefix){const _=f.indexOf(":");_!==-1&&(f=f.substr(_+1))}this.options.transformTagName&&(f=this.options.transformTagName(f)),t&&(i=this.saveTextToParentTag(i,t,r));const o=r.substring(r.lastIndexOf(".")+1);if(f&&this.options.unpairedTags.indexOf(f)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);let c=0;o&&this.options.unpairedTags.indexOf(o)!==-1?(c=r.lastIndexOf(".",r.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=r.lastIndexOf("."),r=r.substring(0,c),t=this.tagsNodeStack.pop(),i="",a=s}else if(e[a+1]==="?"){let s=Pt(e,a,!1,"?>");if(!s)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,t,r),!(this.options.ignoreDeclaration&&s.tagName==="?xml"||this.options.ignorePiTags)){const f=new Ce(s.tagName);f.add(this.options.textNodeName,""),s.tagName!==s.tagExp&&s.attrExpPresent&&(f[":@"]=this.buildAttributesMap(s.tagExp,r,s.tagName)),this.addChild(t,f,r)}a=s.closeIndex+1}else if(e.substr(a+1,3)==="!--"){const s=_e(e,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){const f=e.substring(a+4,s-2);i=this.saveTextToParentTag(i,t,r),t.add(this.options.commentPropName,[{[this.options.textNodeName]:f}])}a=s}else if(e.substr(a+1,2)==="!D"){const s=Fo(e,a);this.docTypeEntities=s.entities,a=s.i}else if(e.substr(a+1,2)==="!["){const s=_e(e,"]]>",a,"CDATA is not closed.")-2,f=e.substring(a+9,s);i=this.saveTextToParentTag(i,t,r);let o=this.parseTextData(f,t.tagname,r,!0,!1,!0,!0);o==null&&(o=""),this.options.cdataPropName?t.add(this.options.cdataPropName,[{[this.options.textNodeName]:f}]):t.add(this.options.textNodeName,o),a=s+2}else{let s=Pt(e,a,this.options.removeNSPrefix),f=s.tagName;const o=s.rawTagName;let c=s.tagExp,_=s.attrExpPresent,u=s.closeIndex;this.options.transformTagName&&(f=this.options.transformTagName(f)),t&&i&&t.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,t,r,!1));const d=t;if(d&&this.options.unpairedTags.indexOf(d.tagname)!==-1&&(t=this.tagsNodeStack.pop(),r=r.substring(0,r.lastIndexOf("."))),f!==n.tagname&&(r+=r?"."+f:f),this.isItStopNode(this.options.stopNodes,r,f)){let b="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)f[f.length-1]==="/"?(f=f.substr(0,f.length-1),r=r.substr(0,r.length-1),c=f):c=c.substr(0,c.length-1),a=s.closeIndex;else if(this.options.unpairedTags.indexOf(f)!==-1)a=s.closeIndex;else{const h=this.readStopNodeData(e,o,u+1);if(!h)throw new Error(`Unexpected end of ${o}`);a=h.i,b=h.tagContent}const v=new Ce(f);f!==c&&_&&(v[":@"]=this.buildAttributesMap(c,r,f)),b&&(b=this.parseTextData(b,f,r,!0,_,!0,!0)),r=r.substr(0,r.lastIndexOf(".")),v.add(this.options.textNodeName,b),this.addChild(t,v,r)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){f[f.length-1]==="/"?(f=f.substr(0,f.length-1),r=r.substr(0,r.length-1),c=f):c=c.substr(0,c.length-1),this.options.transformTagName&&(f=this.options.transformTagName(f));const b=new Ce(f);f!==c&&_&&(b[":@"]=this.buildAttributesMap(c,r,f)),this.addChild(t,b,r),r=r.substr(0,r.lastIndexOf("."))}else{const b=new Ce(f);this.tagsNodeStack.push(t),f!==c&&_&&(b[":@"]=this.buildAttributesMap(c,r,f)),this.addChild(t,b,r),t=b}i="",a=u}}else i+=e[a];return n.child};function Ho(e,n,t){const i=this.options.updateTag(n.tagname,t,n[":@"]);i===!1||(typeof i=="string"&&(n.tagname=i),e.addChild(n))}const Vo=function(e){if(this.options.processEntities){for(let n in this.docTypeEntities){const t=this.docTypeEntities[n];e=e.replace(t.regx,t.val)}for(let n in this.lastEntities){const t=this.lastEntities[n];e=e.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){const t=this.htmlEntities[n];e=e.replace(t.regex,t.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function Xo(e,n,t,i){return e&&(i===void 0&&(i=Object.keys(n.child).length===0),e=this.parseTextData(e,n.tagname,t,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,i),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function Ko(e,n,t){const i="*."+t;for(const r in e){const a=e[r];if(i===a||n===a)return!0}return!1}function Go(e,n,t=">"){let i,r="";for(let a=n;a<e.length;a++){let l=e[a];if(i)l===i&&(i="");else if(l==='"'||l==="'")i=l;else if(l===t[0])if(t[1]){if(e[a+1]===t[1])return{data:r,index:a}}else return{data:r,index:a};else l===" "&&(l=" ");r+=l}}function _e(e,n,t,i){const r=e.indexOf(n,t);if(r===-1)throw new Error(i);return r+n.length-1}function Pt(e,n,t,i=">"){const r=Go(e,n+1,i);if(!r)return;let a=r.data;const l=r.index,s=a.search(/\s/);let f=a,o=!0;s!==-1&&(f=a.substring(0,s),a=a.substring(s+1).trimStart());const c=f;if(t){const _=f.indexOf(":");_!==-1&&(f=f.substr(_+1),o=f!==r.data.substr(_+1))}return{tagName:f,tagExp:a,closeIndex:l,attrExpPresent:o,rawTagName:c}}function Yo(e,n,t){const i=t;let r=1;for(;t<e.length;t++)if(e[t]==="<")if(e[t+1]==="/"){const a=_e(e,">",t,`${n} is not closed`);if(e.substring(t+2,a).trim()===n&&(r--,r===0))return{tagContent:e.substring(i,t),i:a};t=a}else if(e[t+1]==="?")t=_e(e,"?>",t+1,"StopNode is not closed.");else if(e.substr(t+1,3)==="!--")t=_e(e,"-->",t+3,"StopNode is not closed.");else if(e.substr(t+1,2)==="![")t=_e(e,"]]>",t,"StopNode is not closed.")-2;else{const a=Pt(e,t,">");a&&((a&&a.tagName)===n&&a.tagExp[a.tagExp.length-1]!=="/"&&r++,t=a.closeIndex)}}function Lt(e,n,t){if(n&&typeof e=="string"){const i=e.trim();return i==="true"?!0:i==="false"?!1:Co(e,t)}else return Pi.isExist(e)?e:""}var Wo=Po,Li={};function qo(e,n){return Zi(e,n)}function Zi(e,n,t){let i;const r={};for(let a=0;a<e.length;a++){const l=e[a],s=Jo(l);let f="";if(t===void 0?f=s:f=t+"."+s,s===n.textNodeName)i===void 0?i=l[s]:i+=""+l[s];else{if(s===void 0)continue;if(l[s]){let o=Zi(l[s],n,f);const c=Do(o,n);l[":@"]?Qo(o,l[":@"],f,n):Object.keys(o).length===1&&o[n.textNodeName]!==void 0&&!n.alwaysCreateTextNode?o=o[n.textNodeName]:Object.keys(o).length===0&&(n.alwaysCreateTextNode?o[n.textNodeName]="":o=""),r[s]!==void 0&&r.hasOwnProperty(s)?(Array.isArray(r[s])||(r[s]=[r[s]]),r[s].push(o)):n.isArray(s,f,c)?r[s]=[o]:r[s]=o}}}return typeof i=="string"?i.length>0&&(r[n.textNodeName]=i):i!==void 0&&(r[n.textNodeName]=i),r}function Jo(e){const n=Object.keys(e);for(let t=0;t<n.length;t++){const i=n[t];if(i!==":@")return i}}function Qo(e,n,t,i){if(n){const r=Object.keys(n),a=r.length;for(let l=0;l<a;l++){const s=r[l];i.isArray(s,t+"."+s,!0,!0)?e[s]=[n[s]]:e[s]=n[s]}}}function Do(e,n){const{textNodeName:t}=n,i=Object.keys(e).length;return!!(i===0||i===1&&(e[t]||typeof e[t]=="boolean"||e[t]===0))}Li.prettify=qo;const{buildOptions:el}=qt,tl=Wo,{prettify:nl}=Li,il=Yt;let rl=class{constructor(n){this.externalEntities={},this.options=el(n)}parse(n,t){if(typeof n!="string")if(n.toString)n=n.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});const a=il.validate(n,t);if(a!==!0)throw Error(`${a.err.msg}:${a.err.line}:${a.err.col}`)}const i=new tl(this.options);i.addExternalEntities(this.externalEntities);const r=i.parseXml(n);return this.options.preserveOrder||r===void 0?r:nl(r,this.options)}addEntity(n,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=t}};var al=rl;const sl=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as e,j as n,B as i,K as s,
|
|
1
|
+
import{P as e,j as n,B as i,K as s,i2 as r}from"./index-CGargw6n.js";function a({children:t=null,...o}){return n.jsxs(i,{color:"did",variant:"contained",...o,children:[n.jsx(s,{sx:{fontWeight:400},children:t||"Continue With"}),n.jsx(r,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}a.propTypes={children:e.any};export{a as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,
|
|
1
|
+
import{j as e,dp as c,K as l,P as n}from"./index-CGargw6n.js";var i=function(t){return e.jsx("svg",{...t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.36096 2.3999C7.04725 2.3999 6.76249 2.58326 6.63267 2.86886L0.872671 15.5409C0.825415 15.6448 0.800964 15.7577 0.800964 15.8719V15.9999V27.3919C0.800964 27.8337 1.15914 28.1919 1.60096 28.1919H30.401C30.8428 28.1919 31.201 27.8337 31.201 27.3919V15.8719C31.201 15.7577 31.1765 15.6448 31.1293 15.5409L25.3693 2.86886C25.2394 2.58326 24.9547 2.3999 24.641 2.3999H7.36096ZM2.40096 16.7999V26.5919H29.601V16.7932C29.5669 16.7976 29.5321 16.7999 29.4968 16.7999H22.3993L20.3328 19.8997C20.1845 20.1222 19.9347 20.2559 19.6672 20.2559H11.6032C11.3357 20.2559 11.0859 20.1222 10.9375 19.8997L8.87104 16.7999H2.40096ZM29.2167 15.1999H21.9712C21.7037 15.1999 21.4539 15.3336 21.3056 15.5561L19.239 18.6559H12.0313L9.96483 15.5561C9.81645 15.3336 9.56667 15.1999 9.29919 15.1999H2.78519L7.8761 3.9999H24.1258L29.2167 15.1999Z",fill:"currentColor"})})};i.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};i.displayName="empty";const a=c(l)`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -9,4 +9,4 @@ import{j as e,dn as c,K as l,P as t}from"./index-DTI4BkNW.js";var i=function(n){
|
|
|
9
9
|
.empty-icon {
|
|
10
10
|
margin: 10px 0;
|
|
11
11
|
}
|
|
12
|
-
`;function o({color:
|
|
12
|
+
`;function o({color:t,size:r,children:s,...p}){return e.jsxs(a,{...p,children:[e.jsx(i,{style:{width:r,height:r,color:t},className:"empty-icon"}),e.jsx(l,{className:"empty-content",children:s})]})}o.propTypes={color:n.string,size:n.number,children:n.any};o.defaultProps={color:"inherit",size:36,children:null};export{o as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cq as x,r as o,e as g,cr as r,z as u,j as s,K as m,cs as d}from"./index-CGargw6n.js";function P(){const a=x(),{blocklets:c,refresh:l}=a,{t:y}=o.useContext(g),p=r.generateKey(),[i]=u();return o.useEffect(()=>{const n=r.getNotificationQueryParams(p)??{},t=i.get("entityId"),e=i.get("severity"),f={...n,...e?{severity:e==="all"?[]:e.split(","),paging:{...n.paging,page:1}}:{},...t?{entityId:t==="all"?[]:t.split(",")}:{},componentDid:[]};l(f)},[]),s.jsxs(m,{children:[s.jsx("h1",{children:y("notification.title")}),s.jsx(d,{tabType:"line",blocklets:c,context:a,filterType:"entity",type:"server"})]})}export{P as default};
|