From 7023e9a9202bbf8c5ec98f62dd2695aaa2cfb98c Mon Sep 17 00:00:00 2001 From: "Temporal Data (cicd)" Date: Mon, 3 Jun 2024 19:41:13 +0000 Subject: [PATCH] Update UI Server --- .../immutable/chunks/accordion.-D1Ubcc_.js | 1 + .../immutable/chunks/accordion.fKfAeltH.js | 1 - ...-user.qLkr7QCG.js => auth-user.13zVs2Gb.js} | 2 +- ...G8o8Ept.js => batch-operations.RudApeOm.js} | 2 +- .../{button.J_9D2qip.js => button.bjyERRn9.js} | 2 +- ...lock.PIA3laOL.js => code-block.XXHS15kp.js} | 18 +++++++++--------- ...LGuhkA.js => copy-to-clipboard.DKpAmXze.js} | 2 +- ...-user.qS1id1Cd.js => core-user.Lclp01iI.js} | 2 +- ...5c7P.js => data-encoder-config.VanBuir1.js} | 2 +- ...ow.js => data-encoder-settings.2wxgNGy3.js} | 2 +- ...er.NJvAc-C6.js => data-encoder.wJxMMBGk.js} | 2 +- ....-K-YkwX5.js => decode-payload.QBGHBsqc.js} | 2 +- ....fJnyVVKQ.js => encode-payload.mYRoJRmH.js} | 2 +- .../{entry.49-_VqMH.js => entry.Yz1YyohR.js} | 2 +- .../{error.K_W9miWl.js => error.kUqJ8Dzr.js} | 2 +- ...s => event-history-file-import.4KIfkaSK.js} | 2 +- ...h.js => event-history-timeline.Gyu9Xqc5.js} | 2 +- ...BLuu.js => event-summary-table.KKhOuxW-.js} | 2 +- ...view.GLm4GtMe.js => event-view.qxFByNIO.js} | 2 +- ....nbRs1TRb.js => events-service.20fG09Ws.js} | 2 +- .../{events.bSFWyNpS.js => events.xGcD40Yy.js} | 2 +- ...filters.1ozdh_8f.js => filters.cUjieRhB.js} | 2 +- ....js => format-event-attributes.M8uwiSGk.js} | 2 +- ...ton.bzDf4VVI.js => icon-button.ihAAw8eC.js} | 2 +- .../immutable/chunks/import-events._LSwAHOQ.js | 1 + .../immutable/chunks/import-events.tyarLDHL.js | 1 - .../{index.YV2NV-TI.js => index.CY49Yv_w.js} | 2 +- .../{index.R0s2mZbJ.js => index.PDR9Tyn3.js} | 2 +- .../{index.D8-DrHo_.js => index._MTkGJor.js} | 2 +- ...kNR-ku.js => input-and-results.iaD2Qo3z.js} | 2 +- .../{input.Oj66r1n-.js => input.EAz4myrb.js} | 2 +- ...15bwZDx8.js => labs-mode-guard.-5NFppIE.js} | 2 +- .../{link.cs7LzqaH.js => link.DdkOc0EY.js} | 2 +- .../{logo.cZOlJWlm.js => logo.9CBQUGDp.js} | 2 +- ...o.js => main-content-container.IUC91KWw.js} | 2 +- .../{menu.clBpn3HP.js => menu.RlaY2l8z.js} | 2 +- .../{modal._fUsCkow.js => modal.6JWN7kGw.js} | 2 +- ...6gppP.js => namespaces-service.1V5QHpxG.js} | 2 +- .../immutable/chunks/namespaces.AZAalcgs.js | 1 - .../immutable/chunks/namespaces.ZCqOs8RA.js | 1 + .../{option.-xgiYgTD.js => option.7qDbbB8o.js} | 2 +- ...nated.7Y-q8l-w.js => paginated.ekNvFt7Q.js} | 2 +- ...tion.EhyZpL-k.js => pagination.b8M6G9WD.js} | 2 +- ...tion.9GMcGm8o.js => pagination.tZJpGBWa.js} | 2 +- .../_app/immutable/chunks/paths.0kQCowj0.js | 1 - .../_app/immutable/chunks/paths.Ow6cpyoT.js | 1 + ...NtOFwqeB.js => payload-decoder.YeQWFAju.js} | 2 +- ...e.79TECdfr.js => persist-store.8QJu1WeF.js} | 2 +- ...YzvQhuCf.js => pollers-service.e2WOdz10.js} | 2 +- ...e.HaikD-rG.js => query-service.08pRS3DP.js} | 2 +- ...put.mvsumPD4.js => radio-input.VcwwInus.js} | 2 +- ...i.Fwy3ccvq.js => route-for-api.n9XkRS8h.js} | 2 +- ...e-for.LRddn_DS.js => route-for.ezVRK9wE.js} | 2 +- ...0m83N.js => schedule-form-view.HVYTgkEy.js} | 2 +- ...3cr2EFk.js => schedule-service.ryU1eeth.js} | 2 +- ...dules.7ZX-HLZK.js => schedules.HxDl_85W.js} | 2 +- ...eZ6mlR.js => search-attributes.lxP-EZjZ.js} | 2 +- ...k5MAAVb.js => settings-service.LNiLsWYo.js} | 2 +- .../_app/immutable/chunks/settings.TuHg1P9A.js | 1 - .../_app/immutable/chunks/settings.oP-XN2ls.js | 1 + ...PLMp.js => simplify-attributes.H9OUGjUS.js} | 2 +- ...on.-WuMdkyr.js => split-button.hBguUu6q.js} | 2 +- .../{stores.BjeHb2_D.js => stores.meYYndLY.js} | 2 +- .../{tab.fhntVo9g.js => tab.XTXbSCSg.js} | 2 +- ...KtfJm.js => task-queue-workers.1omddeoe.js} | 2 +- ...mat.gNW0s4c3.js => time-format.Z3EDfPl8.js} | 2 +- ...ker.WfS3p5z_.js => time-picker.IwHKoS08.js} | 2 +- ...toaster.JA1rZe2a.js => toaster.tT6uD5UN.js} | 2 +- ....Q4BcN_kj.js => toggle-buttons.G5X0hB9M.js} | 2 +- .../_app/immutable/chunks/tokenize.Q0qSDpSS.js | 1 + .../_app/immutable/chunks/tokenize.xvHRDyh7.js | 1 - ...slate.We27PYN8.js => translate.-AtZfaGe.js} | 2 +- ....js => update-query-parameters.DBfsiMjL.js} | 2 +- ...rsions.VZx8Ysww.js => versions.l3g3WUor.js} | 2 +- ....js => workflow-json-navigator.cOSXQ3LY.js} | 2 +- ...p.js => workflow-padded-layout.fDOmOSDE.js} | 2 +- ...un.ZUOIerA5.js => workflow-run.x_o75HKu.js} | 2 +- ... => workflow-terminate-enabled.gh7AP--t.js} | 2 +- ...flows.K4-zDFP4.js => workflows.W0IFK8bL.js} | 2 +- ...s => write-actions-are-allowed.qnSR79t1.js} | 2 +- .../entry/{app.g9vsm_3b.js => app.FK3demoG.js} | 4 ++-- .../_app/immutable/entry/start.FurxxH23.js | 1 - .../_app/immutable/entry/start._xrW3XyR.js | 1 + .../nodes/{1.ApbLWwic.js => 1.fWZlD42q.js} | 2 +- .../nodes/{10.RbsWOtwW.js => 10.zPtobMHY.js} | 2 +- .../nodes/{11.4_0AQG37.js => 11.vBZhyv3l.js} | 2 +- .../nodes/{12.104k1R2E.js => 12.kmq4AOE_.js} | 2 +- .../nodes/{13.ugyaFAaP.js => 13.mycjrO-Q.js} | 2 +- .../nodes/{14.HcFjX-G_.js => 14.hDwSCvzy.js} | 2 +- .../nodes/{15.hy0SjlLF.js => 15.r04XV_h7.js} | 2 +- .../nodes/{16.XCVnTCEV.js => 16.eG7XE6Jw.js} | 2 +- .../nodes/{17.KlqrQtkW.js => 17.07C3x6Y5.js} | 2 +- .../nodes/{18.VdgEwd3V.js => 18.CrcyizJ0.js} | 2 +- .../nodes/{19.Nq5hyloW.js => 19.1mFjElfk.js} | 2 +- .../nodes/{2.8E6NZGkp.js => 2.3GxReL1_.js} | 2 +- .../nodes/{20.ni1RRNO2.js => 20.jpMcodhL.js} | 2 +- .../nodes/{21.o9b-F3YG.js => 21.E7_mKVS6.js} | 2 +- .../nodes/{22.fu00_wPl.js => 22.iacr-Cfc.js} | 2 +- .../nodes/{23.lMGuCuqX.js => 23.hG5-vihJ.js} | 2 +- .../nodes/{24.ms96NWnV.js => 24.6sUwdPqS.js} | 2 +- .../nodes/{26.9hU7O70x.js => 26.EyCjJdol.js} | 2 +- .../nodes/{27.qCrv_N8I.js => 27.PhZh_mOK.js} | 2 +- .../nodes/{28.iaXi6u02.js => 28.TRCDpiCV.js} | 2 +- .../nodes/{3.aVMHetlR.js => 3.BvZ-XlFq.js} | 2 +- .../nodes/{30.FIXQiZBL.js => 30.ol-ppb-m.js} | 2 +- .../nodes/{31.x1w325Z1.js => 31.1_7NJw_O.js} | 2 +- .../nodes/{32.bBV07h0s.js => 32.C1EwfLqL.js} | 2 +- .../nodes/{33.wAnoViLZ.js => 33.jed8N86a.js} | 2 +- .../nodes/{34.8Yqdtq11.js => 34.6KHEf4O9.js} | 2 +- .../nodes/{35.bBV07h0s.js => 35.C1EwfLqL.js} | 2 +- .../nodes/{36.bBV07h0s.js => 36.C1EwfLqL.js} | 2 +- .../nodes/{37.phq4lOqp.js => 37.u36ZbqRz.js} | 2 +- .../nodes/{38.C5WasskW.js => 38.0LynbGTc.js} | 2 +- .../nodes/{39.FGUIXGjR.js => 39.7g-c9VSC.js} | 2 +- .../nodes/{4.XbikTRsG.js => 4.u912DJ-e.js} | 2 +- .../nodes/{40.spEwuMVa.js => 40.LtZD80lm.js} | 2 +- .../nodes/{41.tYwdRkO5.js => 41.vFViRYrp.js} | 2 +- .../nodes/{42.BHggNWLL.js => 42.qpSpJp6y.js} | 2 +- .../nodes/{43.kAdfl_j7.js => 43.kO9onCW9.js} | 2 +- .../nodes/{44.g5bOt9yj.js => 44.klcRT6oT.js} | 2 +- .../nodes/{45.g5bOt9yj.js => 45.klcRT6oT.js} | 2 +- .../nodes/{5.a5nE4ZdM.js => 5.dRNy49SJ.js} | 2 +- .../nodes/{7.zIGUKP4j.js => 7.VV5ALPju.js} | 2 +- .../nodes/{8._sNGkH5R.js => 8.myC0TmRg.js} | 2 +- .../nodes/{9.FcdYDcar.js => 9.vjIoKcdS.js} | 2 +- ui/assets/local/_app/version.json | 2 +- ui/assets/local/index.html | 16 ++++++++-------- 127 files changed, 136 insertions(+), 136 deletions(-) create mode 100644 ui/assets/local/_app/immutable/chunks/accordion.-D1Ubcc_.js delete mode 100644 ui/assets/local/_app/immutable/chunks/accordion.fKfAeltH.js rename ui/assets/local/_app/immutable/chunks/{auth-user.qLkr7QCG.js => auth-user.13zVs2Gb.js} (81%) rename ui/assets/local/_app/immutable/chunks/{batch-operations.-G8o8Ept.js => batch-operations.RudApeOm.js} (89%) rename ui/assets/local/_app/immutable/chunks/{button.J_9D2qip.js => button.bjyERRn9.js} (98%) rename ui/assets/local/_app/immutable/chunks/{code-block.PIA3laOL.js => code-block.XXHS15kp.js} (76%) rename ui/assets/local/_app/immutable/chunks/{copy-to-clipboard.DsLGuhkA.js => copy-to-clipboard.DKpAmXze.js} (76%) rename ui/assets/local/_app/immutable/chunks/{core-user.qS1id1Cd.js => core-user.Lclp01iI.js} (62%) rename ui/assets/local/_app/immutable/chunks/{data-encoder-config.q7-G5c7P.js => data-encoder-config.VanBuir1.js} (93%) rename ui/assets/local/_app/immutable/chunks/{data-encoder-settings.msA6Hzow.js => data-encoder-settings.2wxgNGy3.js} (97%) rename ui/assets/local/_app/immutable/chunks/{data-encoder.NJvAc-C6.js => data-encoder.wJxMMBGk.js} (79%) rename ui/assets/local/_app/immutable/chunks/{decode-payload.-K-YkwX5.js => decode-payload.QBGHBsqc.js} (95%) rename ui/assets/local/_app/immutable/chunks/{encode-payload.fJnyVVKQ.js => encode-payload.mYRoJRmH.js} (82%) rename ui/assets/local/_app/immutable/chunks/{entry.49-_VqMH.js => entry.Yz1YyohR.js} (99%) rename ui/assets/local/_app/immutable/chunks/{error.K_W9miWl.js => error.kUqJ8Dzr.js} (97%) rename ui/assets/local/_app/immutable/chunks/{event-history-file-import.D8w-4Mun.js => event-history-file-import.4KIfkaSK.js} (82%) rename ui/assets/local/_app/immutable/chunks/{event-history-timeline.k0juh-Rh.js => event-history-timeline.Gyu9Xqc5.js} (99%) rename ui/assets/local/_app/immutable/chunks/{event-summary-table.PldlBLuu.js => event-summary-table.KKhOuxW-.js} (98%) rename ui/assets/local/_app/immutable/chunks/{event-view.GLm4GtMe.js => event-view.qxFByNIO.js} (74%) rename ui/assets/local/_app/immutable/chunks/{events-service.nbRs1TRb.js => events-service.20fG09Ws.js} (84%) rename ui/assets/local/_app/immutable/chunks/{events.bSFWyNpS.js => events.xGcD40Yy.js} (63%) rename ui/assets/local/_app/immutable/chunks/{filters.1ozdh_8f.js => filters.cUjieRhB.js} (74%) rename ui/assets/local/_app/immutable/chunks/{format-event-attributes.MiJoTPLS.js => format-event-attributes.M8uwiSGk.js} (92%) rename ui/assets/local/_app/immutable/chunks/{icon-button.bzDf4VVI.js => icon-button.ihAAw8eC.js} (94%) create mode 100644 ui/assets/local/_app/immutable/chunks/import-events._LSwAHOQ.js delete mode 100644 ui/assets/local/_app/immutable/chunks/import-events.tyarLDHL.js rename ui/assets/local/_app/immutable/chunks/{index.YV2NV-TI.js => index.CY49Yv_w.js} (98%) rename ui/assets/local/_app/immutable/chunks/{index.R0s2mZbJ.js => index.PDR9Tyn3.js} (76%) rename ui/assets/local/_app/immutable/chunks/{index.D8-DrHo_.js => index._MTkGJor.js} (99%) rename ui/assets/local/_app/immutable/chunks/{input-and-results.TekNR-ku.js => input-and-results.iaD2Qo3z.js} (97%) rename ui/assets/local/_app/immutable/chunks/{input.Oj66r1n-.js => input.EAz4myrb.js} (98%) rename ui/assets/local/_app/immutable/chunks/{labs-mode-guard.15bwZDx8.js => labs-mode-guard.-5NFppIE.js} (92%) rename ui/assets/local/_app/immutable/chunks/{link.cs7LzqaH.js => link.DdkOc0EY.js} (97%) rename ui/assets/local/_app/immutable/chunks/{logo.cZOlJWlm.js => logo.9CBQUGDp.js} (98%) rename ui/assets/local/_app/immutable/chunks/{main-content-container.5d_ZxAyo.js => main-content-container.IUC91KWw.js} (96%) rename ui/assets/local/_app/immutable/chunks/{menu.clBpn3HP.js => menu.RlaY2l8z.js} (99%) rename ui/assets/local/_app/immutable/chunks/{modal._fUsCkow.js => modal.6JWN7kGw.js} (96%) rename ui/assets/local/_app/immutable/chunks/{namespaces-service.qZq6gppP.js => namespaces-service.1V5QHpxG.js} (84%) delete mode 100644 ui/assets/local/_app/immutable/chunks/namespaces.AZAalcgs.js create mode 100644 ui/assets/local/_app/immutable/chunks/namespaces.ZCqOs8RA.js rename ui/assets/local/_app/immutable/chunks/{option.-xgiYgTD.js => option.7qDbbB8o.js} (98%) rename ui/assets/local/_app/immutable/chunks/{paginated.7Y-q8l-w.js => paginated.ekNvFt7Q.js} (78%) rename ui/assets/local/_app/immutable/chunks/{pagination.EhyZpL-k.js => pagination.b8M6G9WD.js} (98%) rename ui/assets/local/_app/immutable/chunks/{pagination.9GMcGm8o.js => pagination.tZJpGBWa.js} (96%) delete mode 100644 ui/assets/local/_app/immutable/chunks/paths.0kQCowj0.js create mode 100644 ui/assets/local/_app/immutable/chunks/paths.Ow6cpyoT.js rename ui/assets/local/_app/immutable/chunks/{payload-decoder.NtOFwqeB.js => payload-decoder.YeQWFAju.js} (88%) rename ui/assets/local/_app/immutable/chunks/{persist-store.79TECdfr.js => persist-store.8QJu1WeF.js} (93%) rename ui/assets/local/_app/immutable/chunks/{pollers-service.YzvQhuCf.js => pollers-service.e2WOdz10.js} (98%) rename ui/assets/local/_app/immutable/chunks/{query-service.HaikD-rG.js => query-service.08pRS3DP.js} (90%) rename ui/assets/local/_app/immutable/chunks/{radio-input.mvsumPD4.js => radio-input.VcwwInus.js} (98%) rename ui/assets/local/_app/immutable/chunks/{route-for-api.Fwy3ccvq.js => route-for-api.n9XkRS8h.js} (93%) rename ui/assets/local/_app/immutable/chunks/{route-for.LRddn_DS.js => route-for.ezVRK9wE.js} (96%) rename ui/assets/local/_app/immutable/chunks/{schedule-form-view.kun0m83N.js => schedule-form-view.HVYTgkEy.js} (98%) rename ui/assets/local/_app/immutable/chunks/{schedule-service.r3cr2EFk.js => schedule-service.ryU1eeth.js} (94%) rename ui/assets/local/_app/immutable/chunks/{schedules.7ZX-HLZK.js => schedules.HxDl_85W.js} (94%) rename ui/assets/local/_app/immutable/chunks/{search-attributes.zceZ6mlR.js => search-attributes.lxP-EZjZ.js} (92%) rename ui/assets/local/_app/immutable/chunks/{settings-service.gk5MAAVb.js => settings-service.LNiLsWYo.js} (96%) delete mode 100644 ui/assets/local/_app/immutable/chunks/settings.TuHg1P9A.js create mode 100644 ui/assets/local/_app/immutable/chunks/settings.oP-XN2ls.js rename ui/assets/local/_app/immutable/chunks/{simplify-attributes.CFz5PLMp.js => simplify-attributes.H9OUGjUS.js} (94%) rename ui/assets/local/_app/immutable/chunks/{split-button.-WuMdkyr.js => split-button.hBguUu6q.js} (96%) rename ui/assets/local/_app/immutable/chunks/{stores.BjeHb2_D.js => stores.meYYndLY.js} (83%) rename ui/assets/local/_app/immutable/chunks/{tab.fhntVo9g.js => tab.XTXbSCSg.js} (98%) rename ui/assets/local/_app/immutable/chunks/{task-queue-workers.LyqKtfJm.js => task-queue-workers.1omddeoe.js} (99%) rename ui/assets/local/_app/immutable/chunks/{time-format.gNW0s4c3.js => time-format.Z3EDfPl8.js} (99%) rename ui/assets/local/_app/immutable/chunks/{time-picker.WfS3p5z_.js => time-picker.IwHKoS08.js} (97%) rename ui/assets/local/_app/immutable/chunks/{toaster.JA1rZe2a.js => toaster.tT6uD5UN.js} (94%) rename ui/assets/local/_app/immutable/chunks/{toggle-buttons.Q4BcN_kj.js => toggle-buttons.G5X0hB9M.js} (98%) create mode 100644 ui/assets/local/_app/immutable/chunks/tokenize.Q0qSDpSS.js delete mode 100644 ui/assets/local/_app/immutable/chunks/tokenize.xvHRDyh7.js rename ui/assets/local/_app/immutable/chunks/{translate.We27PYN8.js => translate.-AtZfaGe.js} (97%) rename ui/assets/local/_app/immutable/chunks/{update-query-parameters.Mxd4zKR7.js => update-query-parameters.DBfsiMjL.js} (85%) rename ui/assets/local/_app/immutable/chunks/{versions.VZx8Ysww.js => versions.l3g3WUor.js} (58%) rename ui/assets/local/_app/immutable/chunks/{workflow-json-navigator.EcUYA12q.js => workflow-json-navigator.cOSXQ3LY.js} (97%) rename ui/assets/local/_app/immutable/chunks/{workflow-padded-layout.T5Lzt1hp.js => workflow-padded-layout.fDOmOSDE.js} (95%) rename ui/assets/local/_app/immutable/chunks/{workflow-run.ZUOIerA5.js => workflow-run.x_o75HKu.js} (54%) rename ui/assets/local/_app/immutable/chunks/{workflow-terminate-enabled.eMZk6auC.js => workflow-terminate-enabled.gh7AP--t.js} (94%) rename ui/assets/local/_app/immutable/chunks/{workflows.K4-zDFP4.js => workflows.W0IFK8bL.js} (92%) rename ui/assets/local/_app/immutable/chunks/{write-actions-are-allowed.BsR296Mf.js => write-actions-are-allowed.qnSR79t1.js} (55%) rename ui/assets/local/_app/immutable/entry/{app.g9vsm_3b.js => app.FK3demoG.js} (71%) delete mode 100644 ui/assets/local/_app/immutable/entry/start.FurxxH23.js create mode 100644 ui/assets/local/_app/immutable/entry/start._xrW3XyR.js rename ui/assets/local/_app/immutable/nodes/{1.ApbLWwic.js => 1.fWZlD42q.js} (87%) rename ui/assets/local/_app/immutable/nodes/{10.RbsWOtwW.js => 10.zPtobMHY.js} (75%) rename ui/assets/local/_app/immutable/nodes/{11.4_0AQG37.js => 11.vBZhyv3l.js} (94%) rename ui/assets/local/_app/immutable/nodes/{12.104k1R2E.js => 12.kmq4AOE_.js} (76%) rename ui/assets/local/_app/immutable/nodes/{13.ugyaFAaP.js => 13.mycjrO-Q.js} (92%) rename ui/assets/local/_app/immutable/nodes/{14.HcFjX-G_.js => 14.hDwSCvzy.js} (92%) rename ui/assets/local/_app/immutable/nodes/{15.hy0SjlLF.js => 15.r04XV_h7.js} (81%) rename ui/assets/local/_app/immutable/nodes/{16.XCVnTCEV.js => 16.eG7XE6Jw.js} (95%) rename ui/assets/local/_app/immutable/nodes/{17.KlqrQtkW.js => 17.07C3x6Y5.js} (98%) rename ui/assets/local/_app/immutable/nodes/{18.VdgEwd3V.js => 18.CrcyizJ0.js} (96%) rename ui/assets/local/_app/immutable/nodes/{19.Nq5hyloW.js => 19.1mFjElfk.js} (96%) rename ui/assets/local/_app/immutable/nodes/{2.8E6NZGkp.js => 2.3GxReL1_.js} (97%) rename ui/assets/local/_app/immutable/nodes/{20.ni1RRNO2.js => 20.jpMcodhL.js} (97%) rename ui/assets/local/_app/immutable/nodes/{21.o9b-F3YG.js => 21.E7_mKVS6.js} (97%) rename ui/assets/local/_app/immutable/nodes/{22.fu00_wPl.js => 22.iacr-Cfc.js} (97%) rename ui/assets/local/_app/immutable/nodes/{23.lMGuCuqX.js => 23.hG5-vihJ.js} (91%) rename ui/assets/local/_app/immutable/nodes/{24.ms96NWnV.js => 24.6sUwdPqS.js} (88%) rename ui/assets/local/_app/immutable/nodes/{26.9hU7O70x.js => 26.EyCjJdol.js} (91%) rename ui/assets/local/_app/immutable/nodes/{27.qCrv_N8I.js => 27.PhZh_mOK.js} (98%) rename ui/assets/local/_app/immutable/nodes/{28.iaXi6u02.js => 28.TRCDpiCV.js} (83%) rename ui/assets/local/_app/immutable/nodes/{3.aVMHetlR.js => 3.BvZ-XlFq.js} (93%) rename ui/assets/local/_app/immutable/nodes/{30.FIXQiZBL.js => 30.ol-ppb-m.js} (94%) rename ui/assets/local/_app/immutable/nodes/{31.x1w325Z1.js => 31.1_7NJw_O.js} (99%) rename ui/assets/local/_app/immutable/nodes/{32.bBV07h0s.js => 32.C1EwfLqL.js} (81%) rename ui/assets/local/_app/immutable/nodes/{33.wAnoViLZ.js => 33.jed8N86a.js} (89%) rename ui/assets/local/_app/immutable/nodes/{34.8Yqdtq11.js => 34.6KHEf4O9.js} (90%) rename ui/assets/local/_app/immutable/nodes/{35.bBV07h0s.js => 35.C1EwfLqL.js} (81%) rename ui/assets/local/_app/immutable/nodes/{36.bBV07h0s.js => 36.C1EwfLqL.js} (81%) rename ui/assets/local/_app/immutable/nodes/{37.phq4lOqp.js => 37.u36ZbqRz.js} (94%) rename ui/assets/local/_app/immutable/nodes/{38.C5WasskW.js => 38.0LynbGTc.js} (97%) rename ui/assets/local/_app/immutable/nodes/{39.FGUIXGjR.js => 39.7g-c9VSC.js} (94%) rename ui/assets/local/_app/immutable/nodes/{4.XbikTRsG.js => 4.u912DJ-e.js} (94%) rename ui/assets/local/_app/immutable/nodes/{40.spEwuMVa.js => 40.LtZD80lm.js} (97%) rename ui/assets/local/_app/immutable/nodes/{41.tYwdRkO5.js => 41.vFViRYrp.js} (76%) rename ui/assets/local/_app/immutable/nodes/{42.BHggNWLL.js => 42.qpSpJp6y.js} (92%) rename ui/assets/local/_app/immutable/nodes/{43.kAdfl_j7.js => 43.kO9onCW9.js} (93%) rename ui/assets/local/_app/immutable/nodes/{44.g5bOt9yj.js => 44.klcRT6oT.js} (92%) rename ui/assets/local/_app/immutable/nodes/{45.g5bOt9yj.js => 45.klcRT6oT.js} (92%) rename ui/assets/local/_app/immutable/nodes/{5.a5nE4ZdM.js => 5.dRNy49SJ.js} (85%) rename ui/assets/local/_app/immutable/nodes/{7.zIGUKP4j.js => 7.VV5ALPju.js} (95%) rename ui/assets/local/_app/immutable/nodes/{8._sNGkH5R.js => 8.myC0TmRg.js} (93%) rename ui/assets/local/_app/immutable/nodes/{9.FcdYDcar.js => 9.vjIoKcdS.js} (81%) diff --git a/ui/assets/local/_app/immutable/chunks/accordion.-D1Ubcc_.js b/ui/assets/local/_app/immutable/chunks/accordion.-D1Ubcc_.js new file mode 100644 index 000000000..8cf54436d --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/accordion.-D1Ubcc_.js @@ -0,0 +1 @@ +import{s as qe,p as x,z as ae,e as V,a as N,t as se,b as y,d as A,h as P,f as oe,g as T,j as c,H as ge,E as be,k as Ae,l as m,m as $,F as he,n as re,u as ee,q as te,r as le,G as He,D as pe,A as Ne,v as Pe,B as ve}from"./scheduler.AWtTlMeO.js";import{S as Se,i as je,c as ne,a as ie,m as fe,t as v,g as ke,b as D,e as Ee,d as ue}from"./index.91lpp7Ff.js";import{g as ze}from"./spread.rEx3vLA9.js";import{B as Ce}from"./badge.mHsIdLRu.js";import{I as Be}from"./icon.hlu3-iXK.js";import{t as Ie}from"./tw-merge.NbP7EmZe.js";import{v as Fe}from"./toaster.tT6uD5UN.js";const Ge=a=>({}),Te=a=>({}),Me=a=>({}),De=a=>({});function Ve(a){let t,l;return t=new Be({props:{name:a[4]}}),{c(){ne(t.$$.fragment)},l(s){ie(t.$$.fragment,s)},m(s,n){fe(t,s,n),l=!0},p(s,n){const h={};n&16&&(h.name=s[4]),t.$set(h)},i(s){l||(v(t.$$.fragment,s),l=!0)},o(s){D(t.$$.fragment,s),l=!1},d(s){ue(t,s)}}}function ye(a){let t,l;return t=new Ce({props:{class:"mr-2",type:"error",$$slots:{default:[Oe]},$$scope:{ctx:a}}}),{c(){ne(t.$$.fragment)},l(s){ie(t.$$.fragment,s)},m(s,n){fe(t,s,n),l=!0},p(s,n){const h={};n&8224&&(h.$$scope={dirty:n,ctx:s}),t.$set(h)},i(s){l||(v(t.$$.fragment,s),l=!0)},o(s){D(t.$$.fragment,s),l=!1},d(s){ue(t,s)}}}function Oe(a){let t;return{c(){t=se(a[5])},l(l){t=oe(l,a[5])},m(l,s){Ae(l,t,s)},p(l,s){s&32&&re(t,l[5])},d(l){l&&T(t)}}}function Ue(a){let t,l,s,n,h,B,S,j,k,z,E,I,q,p,C,F,G,o,R,d,U,J,K,u,W,ce,i=a[4]&&Ve(a);const X=a[10].summary,_=x(X,a,a[13],De),Y=a[10].action,g=x(Y,a,a[13],Te);I=new Be({props:{name:a[0]?"chevron-up":"chevron-down"}});let f=a[5]&&ye(a);const Z=a[10].default,b=x(Z,a,a[13],null);let w=[{class:K=Ie("surface-primary flex w-full cursor-default flex-col rounded-xl border-2 p-4 text-primary dark:border-subtle",a[6])},a[8]],L={};for(let e=0;e{i=null}),Ee()),(!u||r&2)&&re(B,e[1]),_&&_.p&&(!u||r&8192)&&ee(_,X,e,e[13],u?le(X,e[13],r,Me):te(e[13]),De),g&&g.p&&(!u||r&8192)&&ee(g,Y,e,e[13],u?le(Y,e[13],r,Ge):te(e[13]),Te);const H={};r&1&&(H.name=e[0]?"chevron-up":"chevron-down"),I.$set(H),e[5]?f?(f.p(e,r),r&32&&v(f,1)):(f=ye(e),f.c(),v(f,1),f.m(p,C)):f&&(ke(),D(f,1,1,()=>{f=null}),Ee()),(!u||r&8)&&re(F,e[3]),(!u||r&4&&G!==(G=e[2]+"-trigger"))&&c(l,"id",G),(!u||r&1)&&c(l,"aria-expanded",e[0]),(!u||r&4&&o!==(o=e[2]+"-content"))&&c(l,"aria-controls",o),b&&b.p&&(!u||r&8192)&&ee(b,Z,e,e[13],u?le(Z,e[13],r,null):te(e[13]),null),(!u||r&4&&U!==(U=e[2]+"-content"))&&c(d,"id",U),(!u||r&4&&J!==(J=e[2]+"-trigger"))&&c(d,"aria-labelledby",J),(!u||r&1)&&ge(d,"hidden",!e[0]),be(t,L=ze(w,[(!u||r&64&&K!==(K=Ie("surface-primary flex w-full cursor-default flex-col rounded-xl border-2 p-4 text-primary dark:border-subtle",e[6])))&&{class:K},r&256&&e[8]]))},i(e){u||(v(i),v(_,e),v(g,e),v(I.$$.fragment,e),v(f),v(b,e),u=!0)},o(e){D(i),D(_,e),D(g,e),D(I.$$.fragment,e),D(f),D(b,e),u=!1},d(e){e&&T(t),i&&i.d(),_&&_.d(e),g&&g.d(e),ue(I),f&&f.d(),b&&b.d(e),W=!1,He(ce)}}}function Je(a,t,l){const s=["title","id","subtitle","icon","open","error","onToggle","class"];let n=pe(t,s),{$$slots:h={},$$scope:B}=t,{title:S}=t,{id:j=Fe()}=t,{subtitle:k=""}=t,{icon:z=null}=t,{open:E=!1}=t,{error:I=""}=t,{onToggle:q=Pe}=t,{class:p=""}=t;const C=()=>{l(0,E=!E),q()};function F(o){ve.call(this,a,o)}function G(o){ve.call(this,a,o)}return a.$$set=o=>{t=ae(ae({},t),Ne(o)),l(8,n=pe(t,s)),"title"in o&&l(1,S=o.title),"id"in o&&l(2,j=o.id),"subtitle"in o&&l(3,k=o.subtitle),"icon"in o&&l(4,z=o.icon),"open"in o&&l(0,E=o.open),"error"in o&&l(5,I=o.error),"onToggle"in o&&l(9,q=o.onToggle),"class"in o&&l(6,p=o.class),"$$scope"in o&&l(13,B=o.$$scope)},[E,S,j,k,z,I,p,C,n,q,h,F,G,B]}class Ze extends Se{constructor(t){super(),je(this,t,Je,Ue,qe,{title:1,id:2,subtitle:3,icon:4,open:0,error:5,onToggle:9,class:6})}}export{Ze as A}; diff --git a/ui/assets/local/_app/immutable/chunks/accordion.fKfAeltH.js b/ui/assets/local/_app/immutable/chunks/accordion.fKfAeltH.js deleted file mode 100644 index 06b3ea7bb..000000000 --- a/ui/assets/local/_app/immutable/chunks/accordion.fKfAeltH.js +++ /dev/null @@ -1 +0,0 @@ -import{s as qe,p as x,z as ae,e as V,a as N,t as se,b as y,d as A,h as P,f as oe,g as T,j as c,H as ge,E as be,k as Ae,l as m,m as $,F as he,n as ne,u as ee,q as te,r as le,G as He,D as pe,A as Ne,v as Pe,B as ve}from"./scheduler.AWtTlMeO.js";import{S as Se,i as je,c as re,a as ie,m as fe,t as v,g as ke,b as D,e as Ee,d as ue}from"./index.91lpp7Ff.js";import{g as ze}from"./spread.rEx3vLA9.js";import{B as Ce}from"./badge.mHsIdLRu.js";import{I as Be}from"./icon.hlu3-iXK.js";import{t as Ie}from"./tw-merge.NbP7EmZe.js";import{v as Fe}from"./toaster.JA1rZe2a.js";const Ge=a=>({}),Te=a=>({}),Me=a=>({}),De=a=>({});function Ve(a){let t,l;return t=new Be({props:{name:a[4]}}),{c(){re(t.$$.fragment)},l(s){ie(t.$$.fragment,s)},m(s,r){fe(t,s,r),l=!0},p(s,r){const b={};r&16&&(b.name=s[4]),t.$set(b)},i(s){l||(v(t.$$.fragment,s),l=!0)},o(s){D(t.$$.fragment,s),l=!1},d(s){ue(t,s)}}}function ye(a){let t,l;return t=new Ce({props:{class:"mr-2",type:"error",$$slots:{default:[Oe]},$$scope:{ctx:a}}}),{c(){re(t.$$.fragment)},l(s){ie(t.$$.fragment,s)},m(s,r){fe(t,s,r),l=!0},p(s,r){const b={};r&8224&&(b.$$scope={dirty:r,ctx:s}),t.$set(b)},i(s){l||(v(t.$$.fragment,s),l=!0)},o(s){D(t.$$.fragment,s),l=!1},d(s){ue(t,s)}}}function Oe(a){let t;return{c(){t=se(a[5])},l(l){t=oe(l,a[5])},m(l,s){Ae(l,t,s)},p(l,s){s&32&&ne(t,l[5])},d(l){l&&T(t)}}}function Ue(a){let t,l,s,r,b,B,S,j,k,z,E,I,q,h,C,F,G,o,R,p,U,J,K,u,W,ce,i=a[4]&&Ve(a);const X=a[10].summary,d=x(X,a,a[13],De),Y=a[10].action,_=x(Y,a,a[13],Te);I=new Be({props:{name:a[0]?"chevron-up":"chevron-down"}});let f=a[5]&&ye(a);const Z=a[10].default,g=x(Z,a,a[13],null);let w=[{class:K=Ie("surface-primary flex w-full cursor-default flex-col rounded-xl border-2 p-4 text-primary dark:border-subtle",a[6])},a[8]],L={};for(let e=0;e{i=null}),Ee()),(!u||n&2)&&ne(B,e[1]),d&&d.p&&(!u||n&8192)&&ee(d,X,e,e[13],u?le(X,e[13],n,Me):te(e[13]),De),_&&_.p&&(!u||n&8192)&&ee(_,Y,e,e[13],u?le(Y,e[13],n,Ge):te(e[13]),Te);const H={};n&1&&(H.name=e[0]?"chevron-up":"chevron-down"),I.$set(H),e[5]?f?(f.p(e,n),n&32&&v(f,1)):(f=ye(e),f.c(),v(f,1),f.m(h,C)):f&&(ke(),D(f,1,1,()=>{f=null}),Ee()),(!u||n&8)&&ne(F,e[3]),(!u||n&4&&G!==(G=e[2]+"-trigger"))&&c(l,"id",G),(!u||n&1)&&c(l,"aria-expanded",e[0]),(!u||n&4&&o!==(o=e[2]+"-content"))&&c(l,"aria-controls",o),g&&g.p&&(!u||n&8192)&&ee(g,Z,e,e[13],u?le(Z,e[13],n,null):te(e[13]),null),(!u||n&4&&U!==(U=e[2]+"-content"))&&c(p,"id",U),(!u||n&4&&J!==(J=e[2]+"-trigger"))&&c(p,"aria-labelledby",J),(!u||n&1)&&ge(p,"hidden",!e[0]),be(t,L=ze(w,[(!u||n&64&&K!==(K=Ie("surface-primary flex w-full cursor-default flex-col rounded-xl border-2 p-4 text-primary dark:border-subtle",e[6])))&&{class:K},n&256&&e[8]]))},i(e){u||(v(i),v(d,e),v(_,e),v(I.$$.fragment,e),v(f),v(g,e),u=!0)},o(e){D(i),D(d,e),D(_,e),D(I.$$.fragment,e),D(f),D(g,e),u=!1},d(e){e&&T(t),i&&i.d(),d&&d.d(e),_&&_.d(e),ue(I),f&&f.d(),g&&g.d(e),W=!1,He(ce)}}}function Je(a,t,l){const s=["title","id","subtitle","icon","open","error","onToggle","class"];let r=pe(t,s),{$$slots:b={},$$scope:B}=t,{title:S}=t,{id:j=Fe()}=t,{subtitle:k=""}=t,{icon:z=null}=t,{open:E=!1}=t,{error:I=""}=t,{onToggle:q=Pe}=t,{class:h=""}=t;const C=()=>{l(0,E=!E),q()};function F(o){ve.call(this,a,o)}function G(o){ve.call(this,a,o)}return a.$$set=o=>{t=ae(ae({},t),Ne(o)),l(8,r=pe(t,s)),"title"in o&&l(1,S=o.title),"id"in o&&l(2,j=o.id),"subtitle"in o&&l(3,k=o.subtitle),"icon"in o&&l(4,z=o.icon),"open"in o&&l(0,E=o.open),"error"in o&&l(5,I=o.error),"onToggle"in o&&l(9,q=o.onToggle),"class"in o&&l(6,h=o.class),"$$scope"in o&&l(13,B=o.$$scope)},[E,S,j,k,z,I,h,C,r,q,b,F,G,B]}class Ze extends Se{constructor(t){super(),je(this,t,Je,Ue,qe,{title:1,id:2,subtitle:3,icon:4,open:0,error:5,onToggle:9,class:6})}}export{Ze as A}; diff --git a/ui/assets/local/_app/immutable/chunks/auth-user.qLkr7QCG.js b/ui/assets/local/_app/immutable/chunks/auth-user.13zVs2Gb.js similarity index 81% rename from ui/assets/local/_app/immutable/chunks/auth-user.qLkr7QCG.js rename to ui/assets/local/_app/immutable/chunks/auth-user.13zVs2Gb.js index 0f23cbeac..090a6f82a 100644 --- a/ui/assets/local/_app/immutable/chunks/auth-user.qLkr7QCG.js +++ b/ui/assets/local/_app/immutable/chunks/auth-user.13zVs2Gb.js @@ -1 +1 @@ -import{C as n}from"./scheduler.AWtTlMeO.js";import{p as i}from"./persist-store.79TECdfr.js";const s=i("AuthUser",{}),m=()=>n(s),p=t=>{const{accessToken:e,idToken:r,name:o,email:a,picture:c}=t;if(!e)throw new Error("No access token");s.set({accessToken:e,idToken:r,name:o,email:a,picture:c})},U=()=>{s.set({})};export{s as a,U as c,m as g,p as s}; +import{C as n}from"./scheduler.AWtTlMeO.js";import{p as i}from"./persist-store.8QJu1WeF.js";const s=i("AuthUser",{}),m=()=>n(s),p=t=>{const{accessToken:e,idToken:r,name:o,email:a,picture:c}=t;if(!e)throw new Error("No access token");s.set({accessToken:e,idToken:r,name:o,email:a,picture:c})},U=()=>{s.set({})};export{s as a,U as c,m as g,p as s}; diff --git a/ui/assets/local/_app/immutable/chunks/batch-operations.-G8o8Ept.js b/ui/assets/local/_app/immutable/chunks/batch-operations.RudApeOm.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/batch-operations.-G8o8Ept.js rename to ui/assets/local/_app/immutable/chunks/batch-operations.RudApeOm.js index c09638984..37ed45e38 100644 --- a/ui/assets/local/_app/immutable/chunks/batch-operations.-G8o8Ept.js +++ b/ui/assets/local/_app/immutable/chunks/batch-operations.RudApeOm.js @@ -1 +1 @@ -import{w as l}from"./entry.49-_VqMH.js";import{C as y}from"./scheduler.AWtTlMeO.js";import{A as n}from"./workflow-actions.-K4W_iAA.js";import{g as I}from"./auth-user.qLkr7QCG.js";import{p as w}from"./persist-store.79TECdfr.js";import{t as T}from"./versions.VZx8Ysww.js";import{s as f}from"./parse-with-big-int.e3oI4SEy.js";import{r as c,a as m}from"./route-for-api.Fwy3ccvq.js";import{c as p,d as i}from"./screaming-enums.NBZzZ07O.js";import{i as h}from"./version-check.HLZIw2tw.js";const k=e=>e.map(o=>o.runId).reduce((o,r,s,u)=>(o+=`RunId="${r}"`,s!==u.length-1&&(o+=" OR "),o),""),j=(e,t)=>{const o=I().email;switch(e){case n.Cancel:return{cancellationOperation:{identity:o}};case n.Terminate:return{terminationOperation:{identity:o}};case n.Reset:return{resetOperation:{identity:o,options:t==="first"?{firstWorkflowTask:{}}:{lastWorkflowTask:{}},resetType:t==="first"?1:2}}}},C=({id:e,runId:t})=>({workflowId:e,runId:t}),b=(e,t)=>{const o={jobId:t.jobId,namespace:t.namespace,reason:t.reason,...j(e,t.resetType)};if(t.workflows)return h(y(T),"1.19")?{...o,executions:t.workflows.map(C)}:{...o,visibilityQuery:k(t.workflows)};if(t.query)return{...o,visibilityQuery:t.query}};async function Q(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Cancel,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}async function V(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Terminate,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}const _=async e=>{const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Reset,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})};async function d({namespace:e,jobId:t}){return new Promise((o,r)=>{R({namespace:e,jobId:t}).then(({state:s,completeOperationCount:u})=>{s==="Failed"?r():s!=="Running"?o(u):setTimeout(()=>{try{o(d({namespace:e,jobId:t}))}catch{r()}},5e3)})})}async function R({jobId:e,namespace:t},o=fetch){const r=c("batch-operations",{namespace:t,batchJobId:e}),s=await m(r,{request:o});return g(s)}const g=e=>({...e,operationType:p(e.operationType),state:i(e.state),startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt((e==null?void 0:e.totalOperationCount)??"0",10),completeOperationCount:parseInt((e==null?void 0:e.completeOperationCount)??"0",10),failureOperationCount:parseInt((e==null?void 0:e.failureOperationCount)??"0",10)});async function N(e,t=fetch){const o=c("batch-operations.list",{namespace:e,batchJobId:""}),r=await m(o,{request:t});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(P):[]}}const P=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:i(e.state)}),a=l();a.subscribe(async e=>{e&&await d(e).then(()=>a.set(void 0))});const U=w("auto-refresh-batch-operation",!1);export{U as a,Q as b,_ as c,R as d,V as e,a as i,N as l}; +import{w as l}from"./entry.Yz1YyohR.js";import{C as y}from"./scheduler.AWtTlMeO.js";import{A as n}from"./workflow-actions.-K4W_iAA.js";import{g as I}from"./auth-user.13zVs2Gb.js";import{p as w}from"./persist-store.8QJu1WeF.js";import{t as T}from"./versions.l3g3WUor.js";import{s as f}from"./parse-with-big-int.e3oI4SEy.js";import{r as c,a as m}from"./route-for-api.n9XkRS8h.js";import{c as p,d as i}from"./screaming-enums.NBZzZ07O.js";import{i as h}from"./version-check.HLZIw2tw.js";const k=e=>e.map(o=>o.runId).reduce((o,r,s,u)=>(o+=`RunId="${r}"`,s!==u.length-1&&(o+=" OR "),o),""),j=(e,t)=>{const o=I().email;switch(e){case n.Cancel:return{cancellationOperation:{identity:o}};case n.Terminate:return{terminationOperation:{identity:o}};case n.Reset:return{resetOperation:{identity:o,options:t==="first"?{firstWorkflowTask:{}}:{lastWorkflowTask:{}},resetType:t==="first"?1:2}}}},C=({id:e,runId:t})=>({workflowId:e,runId:t}),b=(e,t)=>{const o={jobId:t.jobId,namespace:t.namespace,reason:t.reason,...j(e,t.resetType)};if(t.workflows)return h(y(T),"1.19")?{...o,executions:t.workflows.map(C)}:{...o,visibilityQuery:k(t.workflows)};if(t.query)return{...o,visibilityQuery:t.query}};async function Q(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Cancel,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}async function V(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Terminate,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}const _=async e=>{const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Reset,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})};async function d({namespace:e,jobId:t}){return new Promise((o,r)=>{R({namespace:e,jobId:t}).then(({state:s,completeOperationCount:u})=>{s==="Failed"?r():s!=="Running"?o(u):setTimeout(()=>{try{o(d({namespace:e,jobId:t}))}catch{r()}},5e3)})})}async function R({jobId:e,namespace:t},o=fetch){const r=c("batch-operations",{namespace:t,batchJobId:e}),s=await m(r,{request:o});return g(s)}const g=e=>({...e,operationType:p(e.operationType),state:i(e.state),startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt((e==null?void 0:e.totalOperationCount)??"0",10),completeOperationCount:parseInt((e==null?void 0:e.completeOperationCount)??"0",10),failureOperationCount:parseInt((e==null?void 0:e.failureOperationCount)??"0",10)});async function N(e,t=fetch){const o=c("batch-operations.list",{namespace:e,batchJobId:""}),r=await m(o,{request:t});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(P):[]}}const P=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:i(e.state)}),a=l();a.subscribe(async e=>{e&&await d(e).then(()=>a.set(void 0))});const U=w("auto-refresh-batch-operation",!1);export{U as a,Q as b,_ as c,R as d,V as e,a as i,N as l}; diff --git a/ui/assets/local/_app/immutable/chunks/button.J_9D2qip.js b/ui/assets/local/_app/immutable/chunks/button.bjyERRn9.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/button.J_9D2qip.js rename to ui/assets/local/_app/immutable/chunks/button.bjyERRn9.js index a8268dc6d..439fb5ae7 100644 --- a/ui/assets/local/_app/immutable/chunks/button.J_9D2qip.js +++ b/ui/assets/local/_app/immutable/chunks/button.bjyERRn9.js @@ -1 +1 @@ -import{s as de,x as U,k as M,g as y,D as V,z as G,A as ce,B as J,p as ee,e as P,a as S,b as q,d as C,h as A,E as H,l as B,m as O,F as Q,u as te,q as ne,r as le,G as me,H as K,t as ae,f as ie,n as re}from"./scheduler.AWtTlMeO.js";import{S as be,i as ge,g as E,b as h,e as N,t as _,c as D,a as T,m as j,d as F}from"./index.91lpp7Ff.js";import{g as se}from"./spread.rEx3vLA9.js";import{c as _e}from"./index.polp_dyw.js";import{g as pe}from"./entry.49-_VqMH.js";import{B as oe}from"./badge.mHsIdLRu.js";import{I as L}from"./icon.hlu3-iXK.js";import{t as W}from"./tw-merge.NbP7EmZe.js";function he(l){let e,t,a,n,r,u,I,m,o=(l[5]||l[4])&&X(l);const z=l[15].default,k=ee(z,l,l[18],null);let s=l[6]&&Y(l),p=l[7]>0&&Z(l),v=[{disabled:l[3]},{id:l[8]},{type:"button"},{class:r=W(l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]}),l[11])},l[14]],b={};for(let i=0;i{o=null}),N()),k&&k.p&&(!u||c&262144)&&te(k,z,i,i[18],u?le(z,i[18],c,null):ne(i[18]),null),i[6]?s?(s.p(i,c),c&64&&_(s,1)):(s=Y(i),s.c(),_(s,1),s.m(e,n)):s&&(E(),h(s,1,1,()=>{s=null}),N()),i[7]>0?p?(p.p(i,c),c&128&&_(p,1)):(p=Z(i),p.c(),_(p,1),p.m(e,null)):p&&(E(),h(p,1,1,()=>{p=null}),N()),H(e,b=se(v,[(!u||c&8)&&{disabled:i[3]},(!u||c&256)&&{id:i[8]},{type:"button"},(!u||c&2055&&r!==(r=W(i[12]({variant:i[0],size:i[1],borderRadiusModifier:i[2]}),i[11])))&&{class:r},c&16384&&i[14]]))},i(i){u||(_(o),_(k,i),_(s),_(p),u=!0)},o(i){h(o),h(k,i),h(s),h(p),u=!1},d(i){i&&y(e),o&&o.d(),k&&k.d(i),s&&s.d(),p&&p.d(),I=!1,me(m)}}}function ve(l){let e,t,a,n,r,u,I,m,o,z,k,s=(l[5]||l[4])&&w(l);const p=l[15].default,v=ee(p,l,l[18],null);let b=l[6]&&$(l),i=l[7]>0&&x(l),c=[{href:l[9]},{id:l[8]},{role:"button"},{type:"button"},{target:r=l[10]?"_blank":null},{rel:u=l[10]?"noreferrer":null},{class:I=l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]})},{tabindex:m=l[9]?null:0},l[14]],R={};for(let f=0;f{s=null}),N()),v&&v.p&&(!o||g&262144)&&te(v,p,f,f[18],o?le(p,f[18],g,null):ne(f[18]),null),f[6]?b?(b.p(f,g),g&64&&_(b,1)):(b=$(f),b.c(),_(b,1),b.m(e,n)):b&&(E(),h(b,1,1,()=>{b=null}),N()),f[7]>0?i?(i.p(f,g),g&128&&_(i,1)):(i=x(f),i.c(),_(i,1),i.m(e,null)):i&&(E(),h(i,1,1,()=>{i=null}),N()),H(e,R=se(c,[(!o||g&512)&&{href:f[9]},(!o||g&256)&&{id:f[8]},{role:"button"},{type:"button"},(!o||g&1024&&r!==(r=f[10]?"_blank":null))&&{target:r},(!o||g&1024&&u!==(u=f[10]?"noreferrer":null))&&{rel:u},(!o||g&7&&I!==(I=f[12]({variant:f[0],size:f[1],borderRadiusModifier:f[2]})))&&{class:I},(!o||g&512&&m!==(m=f[9]?null:0))&&{tabindex:m},g&16384&&f[14]]))},i(f){o||(_(s),_(v,f),_(b),_(i),o=!0)},o(f){h(s),h(v,f),h(b),h(i),o=!1},d(f){f&&y(e),s&&s.d(),v&&v.d(f),b&&b.d(),i&&i.d(),z=!1,k()}}}function X(l){let e,t,a;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=P("span"),D(t.$$.fragment),this.h()},l(n){e=q(n,"SPAN",{});var r=C(e);T(t.$$.fragment,r),r.forEach(y),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){M(n,e,r),j(t,e,null),a=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!a||r&16)&&K(e,"animate-spin",n[4])},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&y(e),F(t)}}}function Y(l){let e,t,a;return t=new L({props:{name:l[6]}}),{c(){e=P("span"),D(t.$$.fragment)},l(n){e=q(n,"SPAN",{});var r=C(e);T(t.$$.fragment,r),r.forEach(y)},m(n,r){M(n,e,r),j(t,e,null),a=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&y(e),F(t)}}}function Z(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[ke]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},l(a){T(e.$$.fragment,a)},m(a,n){j(e,a,n),t=!0},p(a,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:a}),e.$set(r)},i(a){t||(_(e.$$.fragment,a),t=!0)},o(a){h(e.$$.fragment,a),t=!1},d(a){F(e,a)}}}function ke(l){let e;return{c(){e=ae(l[7])},l(t){e=ie(t,l[7])},m(t,a){M(t,e,a)},p(t,a){a&128&&re(e,t[7])},d(t){t&&y(e)}}}function w(l){let e,t,a;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=P("span"),D(t.$$.fragment),this.h()},l(n){e=q(n,"SPAN",{});var r=C(e);T(t.$$.fragment,r),r.forEach(y),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){M(n,e,r),j(t,e,null),a=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!a||r&16)&&K(e,"animate-spin",n[4])},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&y(e),F(t)}}}function $(l){let e,t,a;return t=new L({props:{name:l[6]}}),{c(){e=P("span"),D(t.$$.fragment)},l(n){e=q(n,"SPAN",{});var r=C(e);T(t.$$.fragment,r),r.forEach(y)},m(n,r){M(n,e,r),j(t,e,null),a=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&y(e),F(t)}}}function x(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[ye]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},l(a){T(e.$$.fragment,a)},m(a,n){j(e,a,n),t=!0},p(a,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:a}),e.$set(r)},i(a){t||(_(e.$$.fragment,a),t=!0)},o(a){h(e.$$.fragment,a),t=!1},d(a){F(e,a)}}}function ye(l){let e;return{c(){e=ae(l[7])},l(t){e=ie(t,l[7])},m(t,a){M(t,e,a)},p(t,a){a&128&&re(e,t[7])},d(t){t&&y(e)}}}function ze(l){let e,t,a,n;const r=[ve,he],u=[];function I(m,o){return m[9]&&!m[3]?0:1}return e=I(l),t=u[e]=r[e](l),{c(){t.c(),a=U()},l(m){t.l(m),a=U()},m(m,o){u[e].m(m,o),M(m,a,o),n=!0},p(m,[o]){let z=e;e=I(m),e===z?u[e].p(m,o):(E(),h(u[z],1,1,()=>{u[z]=null}),N(),t=u[e],t?t.p(m,o):(t=u[e]=r[e](m),t.c()),_(t,1),t.m(a.parentNode,a))},i(m){n||(_(t),n=!0)},o(m){h(t),n=!1},d(m){m&&y(a),u[e].d(m)}}}function Ie(l,e,t){const a=["variant","size","borderRadiusModifier","disabled","loading","leadingIcon","trailingIcon","count","id","href","target","class"];let n=V(e,a),{$$slots:r={},$$scope:u}=e;const I=_e(["relative","flex","w-fit","items-center","justify-center","border-2","gap-2","rounded-lg","disabled:opacity-50","disabled:cursor-not-allowed","border-box","transition-colors","transition-shadow","focus-visible:outline-none","focus-visible:border-inverse","focus-visible:ring-4","whitespace-nowrap","no-underline","[.button-group>&]:rounded-none","[.button-group>&:first-of-type]:rounded-l-lg","[.button-group>&:last-of-type]:rounded-r-lg","[.input-group>&]:rounded-none","last:[.input-group>&]:rounded-r","first:[.input-group>&]:rounded-l"],{variants:{variant:{primary:"surface-interactive border-transparent text-white focus-visible:ring-primary/70",secondary:"surface-primary border-subtle focus-visible:ring-primary/70 hover:surface-interactive-secondary focus-visible:surface-interactive-secondary",destructive:"surface-interactive-danger border-transparent focus-visible:ring-danger/70",ghost:"bg-transparent border-transparent text-primary hover:surface-interactive-ghost focus-visible:surface-interactive-ghost focus-visible:ring-primary/70","table-header":"bg-transparent border-transparent text-off-white focus-visible:ring-primary/70 focus-visible:border-transparent"},size:{xs:"h-8 text-xs px-2 py-1",sm:"h-9 text-sm px-4 py-1.5",md:"h-10 text-base px-4 py-2",lg:"h-11 text-lg px-5 py-2.5"},borderRadiusModifier:{square:"rounded-none","square-left":"rounded-l-none","square-right":"rounded-r-none"}},defaultVariants:{variant:"primary",size:"md"}});let{variant:m="primary"}=e,{size:o="md"}=e,{borderRadiusModifier:z=null}=e,{disabled:k=!1}=e,{loading:s=!1}=e,{leadingIcon:p=null}=e,{trailingIcon:v=null}=e,{count:b=0}=e,{id:i=null}=e,{href:c=null}=e,{target:R=null}=e,{class:f=""}=e;const g=d=>{d.button===1||R||d.metaKey||(d.preventDefault(),d.stopPropagation(),pe(c))};function fe(d){J.call(this,l,d)}function ue(d){J.call(this,l,d)}return l.$$set=d=>{e=G(G({},e),ce(d)),t(14,n=V(e,a)),"variant"in d&&t(0,m=d.variant),"size"in d&&t(1,o=d.size),"borderRadiusModifier"in d&&t(2,z=d.borderRadiusModifier),"disabled"in d&&t(3,k=d.disabled),"loading"in d&&t(4,s=d.loading),"leadingIcon"in d&&t(5,p=d.leadingIcon),"trailingIcon"in d&&t(6,v=d.trailingIcon),"count"in d&&t(7,b=d.count),"id"in d&&t(8,i=d.id),"href"in d&&t(9,c=d.href),"target"in d&&t(10,R=d.target),"class"in d&&t(11,f=d.class),"$$scope"in d&&t(18,u=d.$$scope)},[m,o,z,k,s,p,v,b,i,c,R,f,I,g,n,r,fe,ue,u]}class qe extends be{constructor(e){super(),ge(this,e,Ie,ze,de,{variant:0,size:1,borderRadiusModifier:2,disabled:3,loading:4,leadingIcon:5,trailingIcon:6,count:7,id:8,href:9,target:10,class:11})}}export{qe as B}; +import{s as de,x as U,k as M,g as y,D as V,z as G,A as ce,B as J,p as ee,e as P,a as S,b as q,d as C,h as A,E as H,l as B,m as O,F as Q,u as te,q as ne,r as le,G as me,H as K,t as ae,f as ie,n as re}from"./scheduler.AWtTlMeO.js";import{S as be,i as ge,g as E,b as h,e as N,t as _,c as D,a as T,m as j,d as F}from"./index.91lpp7Ff.js";import{g as se}from"./spread.rEx3vLA9.js";import{c as _e}from"./index.polp_dyw.js";import{g as pe}from"./entry.Yz1YyohR.js";import{B as oe}from"./badge.mHsIdLRu.js";import{I as L}from"./icon.hlu3-iXK.js";import{t as W}from"./tw-merge.NbP7EmZe.js";function he(l){let e,t,a,n,r,u,I,m,o=(l[5]||l[4])&&X(l);const z=l[15].default,k=ee(z,l,l[18],null);let s=l[6]&&Y(l),p=l[7]>0&&Z(l),v=[{disabled:l[3]},{id:l[8]},{type:"button"},{class:r=W(l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]}),l[11])},l[14]],b={};for(let i=0;i{o=null}),N()),k&&k.p&&(!u||c&262144)&&te(k,z,i,i[18],u?le(z,i[18],c,null):ne(i[18]),null),i[6]?s?(s.p(i,c),c&64&&_(s,1)):(s=Y(i),s.c(),_(s,1),s.m(e,n)):s&&(E(),h(s,1,1,()=>{s=null}),N()),i[7]>0?p?(p.p(i,c),c&128&&_(p,1)):(p=Z(i),p.c(),_(p,1),p.m(e,null)):p&&(E(),h(p,1,1,()=>{p=null}),N()),H(e,b=se(v,[(!u||c&8)&&{disabled:i[3]},(!u||c&256)&&{id:i[8]},{type:"button"},(!u||c&2055&&r!==(r=W(i[12]({variant:i[0],size:i[1],borderRadiusModifier:i[2]}),i[11])))&&{class:r},c&16384&&i[14]]))},i(i){u||(_(o),_(k,i),_(s),_(p),u=!0)},o(i){h(o),h(k,i),h(s),h(p),u=!1},d(i){i&&y(e),o&&o.d(),k&&k.d(i),s&&s.d(),p&&p.d(),I=!1,me(m)}}}function ve(l){let e,t,a,n,r,u,I,m,o,z,k,s=(l[5]||l[4])&&w(l);const p=l[15].default,v=ee(p,l,l[18],null);let b=l[6]&&$(l),i=l[7]>0&&x(l),c=[{href:l[9]},{id:l[8]},{role:"button"},{type:"button"},{target:r=l[10]?"_blank":null},{rel:u=l[10]?"noreferrer":null},{class:I=l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]})},{tabindex:m=l[9]?null:0},l[14]],R={};for(let f=0;f{s=null}),N()),v&&v.p&&(!o||g&262144)&&te(v,p,f,f[18],o?le(p,f[18],g,null):ne(f[18]),null),f[6]?b?(b.p(f,g),g&64&&_(b,1)):(b=$(f),b.c(),_(b,1),b.m(e,n)):b&&(E(),h(b,1,1,()=>{b=null}),N()),f[7]>0?i?(i.p(f,g),g&128&&_(i,1)):(i=x(f),i.c(),_(i,1),i.m(e,null)):i&&(E(),h(i,1,1,()=>{i=null}),N()),H(e,R=se(c,[(!o||g&512)&&{href:f[9]},(!o||g&256)&&{id:f[8]},{role:"button"},{type:"button"},(!o||g&1024&&r!==(r=f[10]?"_blank":null))&&{target:r},(!o||g&1024&&u!==(u=f[10]?"noreferrer":null))&&{rel:u},(!o||g&7&&I!==(I=f[12]({variant:f[0],size:f[1],borderRadiusModifier:f[2]})))&&{class:I},(!o||g&512&&m!==(m=f[9]?null:0))&&{tabindex:m},g&16384&&f[14]]))},i(f){o||(_(s),_(v,f),_(b),_(i),o=!0)},o(f){h(s),h(v,f),h(b),h(i),o=!1},d(f){f&&y(e),s&&s.d(),v&&v.d(f),b&&b.d(),i&&i.d(),z=!1,k()}}}function X(l){let e,t,a;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=P("span"),D(t.$$.fragment),this.h()},l(n){e=q(n,"SPAN",{});var r=C(e);T(t.$$.fragment,r),r.forEach(y),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){M(n,e,r),j(t,e,null),a=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!a||r&16)&&K(e,"animate-spin",n[4])},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&y(e),F(t)}}}function Y(l){let e,t,a;return t=new L({props:{name:l[6]}}),{c(){e=P("span"),D(t.$$.fragment)},l(n){e=q(n,"SPAN",{});var r=C(e);T(t.$$.fragment,r),r.forEach(y)},m(n,r){M(n,e,r),j(t,e,null),a=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&y(e),F(t)}}}function Z(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[ke]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},l(a){T(e.$$.fragment,a)},m(a,n){j(e,a,n),t=!0},p(a,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:a}),e.$set(r)},i(a){t||(_(e.$$.fragment,a),t=!0)},o(a){h(e.$$.fragment,a),t=!1},d(a){F(e,a)}}}function ke(l){let e;return{c(){e=ae(l[7])},l(t){e=ie(t,l[7])},m(t,a){M(t,e,a)},p(t,a){a&128&&re(e,t[7])},d(t){t&&y(e)}}}function w(l){let e,t,a;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=P("span"),D(t.$$.fragment),this.h()},l(n){e=q(n,"SPAN",{});var r=C(e);T(t.$$.fragment,r),r.forEach(y),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){M(n,e,r),j(t,e,null),a=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!a||r&16)&&K(e,"animate-spin",n[4])},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&y(e),F(t)}}}function $(l){let e,t,a;return t=new L({props:{name:l[6]}}),{c(){e=P("span"),D(t.$$.fragment)},l(n){e=q(n,"SPAN",{});var r=C(e);T(t.$$.fragment,r),r.forEach(y)},m(n,r){M(n,e,r),j(t,e,null),a=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){a||(_(t.$$.fragment,n),a=!0)},o(n){h(t.$$.fragment,n),a=!1},d(n){n&&y(e),F(t)}}}function x(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[ye]},$$scope:{ctx:l}}}),{c(){D(e.$$.fragment)},l(a){T(e.$$.fragment,a)},m(a,n){j(e,a,n),t=!0},p(a,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:a}),e.$set(r)},i(a){t||(_(e.$$.fragment,a),t=!0)},o(a){h(e.$$.fragment,a),t=!1},d(a){F(e,a)}}}function ye(l){let e;return{c(){e=ae(l[7])},l(t){e=ie(t,l[7])},m(t,a){M(t,e,a)},p(t,a){a&128&&re(e,t[7])},d(t){t&&y(e)}}}function ze(l){let e,t,a,n;const r=[ve,he],u=[];function I(m,o){return m[9]&&!m[3]?0:1}return e=I(l),t=u[e]=r[e](l),{c(){t.c(),a=U()},l(m){t.l(m),a=U()},m(m,o){u[e].m(m,o),M(m,a,o),n=!0},p(m,[o]){let z=e;e=I(m),e===z?u[e].p(m,o):(E(),h(u[z],1,1,()=>{u[z]=null}),N(),t=u[e],t?t.p(m,o):(t=u[e]=r[e](m),t.c()),_(t,1),t.m(a.parentNode,a))},i(m){n||(_(t),n=!0)},o(m){h(t),n=!1},d(m){m&&y(a),u[e].d(m)}}}function Ie(l,e,t){const a=["variant","size","borderRadiusModifier","disabled","loading","leadingIcon","trailingIcon","count","id","href","target","class"];let n=V(e,a),{$$slots:r={},$$scope:u}=e;const I=_e(["relative","flex","w-fit","items-center","justify-center","border-2","gap-2","rounded-lg","disabled:opacity-50","disabled:cursor-not-allowed","border-box","transition-colors","transition-shadow","focus-visible:outline-none","focus-visible:border-inverse","focus-visible:ring-4","whitespace-nowrap","no-underline","[.button-group>&]:rounded-none","[.button-group>&:first-of-type]:rounded-l-lg","[.button-group>&:last-of-type]:rounded-r-lg","[.input-group>&]:rounded-none","last:[.input-group>&]:rounded-r","first:[.input-group>&]:rounded-l"],{variants:{variant:{primary:"surface-interactive border-transparent text-white focus-visible:ring-primary/70",secondary:"surface-primary border-subtle focus-visible:ring-primary/70 hover:surface-interactive-secondary focus-visible:surface-interactive-secondary",destructive:"surface-interactive-danger border-transparent focus-visible:ring-danger/70",ghost:"bg-transparent border-transparent text-primary hover:surface-interactive-ghost focus-visible:surface-interactive-ghost focus-visible:ring-primary/70","table-header":"bg-transparent border-transparent text-off-white focus-visible:ring-primary/70 focus-visible:border-transparent"},size:{xs:"h-8 text-xs px-2 py-1",sm:"h-9 text-sm px-4 py-1.5",md:"h-10 text-base px-4 py-2",lg:"h-11 text-lg px-5 py-2.5"},borderRadiusModifier:{square:"rounded-none","square-left":"rounded-l-none","square-right":"rounded-r-none"}},defaultVariants:{variant:"primary",size:"md"}});let{variant:m="primary"}=e,{size:o="md"}=e,{borderRadiusModifier:z=null}=e,{disabled:k=!1}=e,{loading:s=!1}=e,{leadingIcon:p=null}=e,{trailingIcon:v=null}=e,{count:b=0}=e,{id:i=null}=e,{href:c=null}=e,{target:R=null}=e,{class:f=""}=e;const g=d=>{d.button===1||R||d.metaKey||(d.preventDefault(),d.stopPropagation(),pe(c))};function fe(d){J.call(this,l,d)}function ue(d){J.call(this,l,d)}return l.$$set=d=>{e=G(G({},e),ce(d)),t(14,n=V(e,a)),"variant"in d&&t(0,m=d.variant),"size"in d&&t(1,o=d.size),"borderRadiusModifier"in d&&t(2,z=d.borderRadiusModifier),"disabled"in d&&t(3,k=d.disabled),"loading"in d&&t(4,s=d.loading),"leadingIcon"in d&&t(5,p=d.leadingIcon),"trailingIcon"in d&&t(6,v=d.trailingIcon),"count"in d&&t(7,b=d.count),"id"in d&&t(8,i=d.id),"href"in d&&t(9,c=d.href),"target"in d&&t(10,R=d.target),"class"in d&&t(11,f=d.class),"$$scope"in d&&t(18,u=d.$$scope)},[m,o,z,k,s,p,v,b,i,c,R,f,I,g,n,r,fe,ue,u]}class qe extends be{constructor(e){super(),ge(this,e,Ie,ze,de,{variant:0,size:1,borderRadiusModifier:2,disabled:3,loading:4,leadingIcon:5,trailingIcon:6,count:7,id:8,href:9,target:10,class:11})}}export{qe as B}; diff --git a/ui/assets/local/_app/immutable/chunks/code-block.PIA3laOL.js b/ui/assets/local/_app/immutable/chunks/code-block.XXHS15kp.js similarity index 76% rename from ui/assets/local/_app/immutable/chunks/code-block.PIA3laOL.js rename to ui/assets/local/_app/immutable/chunks/code-block.XXHS15kp.js index b1ad44e67..dce8fc9fa 100644 --- a/ui/assets/local/_app/immutable/chunks/code-block.PIA3laOL.js +++ b/ui/assets/local/_app/immutable/chunks/code-block.XXHS15kp.js @@ -1,11 +1,11 @@ -import{s as ia,z as In,e as _s,a as na,b as Xs,d as Ys,g as dn,h as sa,E as Zs,H as si,j as ra,k as oa,l as tr,m as la,F as ha,D as er,o as aa,c as fa,S as ca,A as ir,B as ua,L as da}from"./scheduler.AWtTlMeO.js";import{S as pa,i as ga,t as Ci,g as ma,b as Nn,e as ya,c as ba,a as wa,m as ka,d as xa}from"./index.91lpp7Ff.js";import{g as Sa}from"./spread.rEx3vLA9.js";import{B as va}from"./button.Ub6koOFz.js";import{c as Ca}from"./copy-to-clipboard.DsLGuhkA.js";import{p as Aa,s as Oa}from"./parse-with-big-int.e3oI4SEy.js";import{c as Y}from"./icon.hlu3-iXK.js";class N{constructor(){}lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){let n=[];return this.decompose(0,t,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(e,this.length,n,1),It.from(n,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){let i=[];return this.decompose(t,e,i,0),It.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),n=new Ke(this),r=new Ke(t);for(let o=e,l=e;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(t=1){return new Ke(this,t)}iterRange(t,e=this.length){return new Lo(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let n=this.line(t).from;i=this.iterRange(n,Math.max(n,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Vo(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?N.empty:t.length<=32?new K(t):It.from(K.split(t,[]))}}class K extends N{constructor(t,e=Ma(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((e?i:l)>=t)return new Ta(n,l,i,o);n=l+1,i++}}decompose(t,e,i,n){let r=t<=0&&e>=this.length?this:new K(nr(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(n&1){let o=i.pop(),l=Ai(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new K(l,o.length+r.length));else{let h=l.length>>1;i.push(new K(l.slice(0,h)),new K(l.slice(h)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof K))return super.replace(t,e,i);let n=Ai(this.text,Ai(i.text,nr(this.text,0,t)),e),r=this.length+i.length-(e-t);return n.length<=32?new K(n,r):It.from(K.split(n,[]),r)}sliceString(t,e=this.length,i=` +import{s as ia,z as In,e as _s,a as na,b as Xs,d as Ys,g as dn,h as sa,E as Zs,H as si,j as ra,k as oa,l as tr,D as er,o as la,c as ha,S as aa,A as ir,L as fa}from"./scheduler.AWtTlMeO.js";import{S as ca,i as ua,t as Ci,g as da,b as Nn,e as pa,c as ga,a as ma,m as ya,d as ba}from"./index.91lpp7Ff.js";import{g as wa}from"./spread.rEx3vLA9.js";import{B as ka}from"./button.Ub6koOFz.js";import{c as xa}from"./copy-to-clipboard.DKpAmXze.js";import{p as Sa,s as va}from"./parse-with-big-int.e3oI4SEy.js";import{c as Y}from"./icon.hlu3-iXK.js";class N{constructor(){}lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){let n=[];return this.decompose(0,t,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(e,this.length,n,1),It.from(n,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){let i=[];return this.decompose(t,e,i,0),It.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),n=new Ue(this),r=new Ue(t);for(let o=e,l=e;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(t=1){return new Ue(this,t)}iterRange(t,e=this.length){return new Lo(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let n=this.line(t).from;i=this.iterRange(n,Math.max(n,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Vo(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?N.empty:t.length<=32?new K(t):It.from(K.split(t,[]))}}class K extends N{constructor(t,e=Ca(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((e?i:l)>=t)return new Aa(n,l,i,o);n=l+1,i++}}decompose(t,e,i,n){let r=t<=0&&e>=this.length?this:new K(nr(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(n&1){let o=i.pop(),l=Ai(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new K(l,o.length+r.length));else{let h=l.length>>1;i.push(new K(l.slice(0,h)),new K(l.slice(h)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof K))return super.replace(t,e,i);let n=Ai(this.text,Ai(i.text,nr(this.text,0,t)),e),r=this.length+i.length-(e-t);return n.length<=32?new K(n,r):It.from(K.split(n,[]),r)}sliceString(t,e=this.length,i=` `){let n="";for(let r=0,o=0;r<=e&&ot&&o&&(n+=i),tr&&(n+=l.slice(Math.max(0,t-r),e-r)),r=h+1}return n}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],n=-1;for(let r of t)i.push(r),n+=r.length+1,i.length==32&&(e.push(new K(i,n)),i=[],n=-1);return n>-1&&e.push(new K(i,n)),e}}class It extends N{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.children[r],l=n+o.length,h=i+o.lines-1;if((e?h:l)>=t)return o.lineInner(t,e,i,n);n=l+1,i=h+1}}decompose(t,e,i,n){for(let r=0,o=0;o<=e&&r=o){let a=n&((o<=t?1:0)|(h>=e?2:0));o>=t&&h<=e&&!a?i.push(l):l.decompose(t-o,e-o,i,a)}o=h+1}}replace(t,e,i){if(i.lines=r&&e<=l){let h=o.replace(t-r,e-r,i),a=this.lines-o.lines+h.lines;if(h.lines>4&&h.lines>a>>6){let f=this.children.slice();return f[n]=h,new It(f,this.length-(e-t)+i.length)}return super.replace(r,l,h)}r=l+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i=` -`){let n="";for(let r=0,o=0;rt&&r&&(n+=i),to&&(n+=l.sliceString(t-o,e-o,i)),o=h+1}return n}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof It))return 0;let i=0,[n,r,o,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;n+=e,r+=e){if(n==o||r==l)return i;let h=this.children[n],a=t.children[r];if(h!=a)return i+h.scanIdentical(a,e);i+=h.length+1}}static from(t,e=t.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of t)i+=d.lines;if(i<32){let d=[];for(let p of t)p.flatten(d);return new K(d,e)}let n=Math.max(32,i>>5),r=n<<1,o=n>>1,l=[],h=0,a=-1,f=[];function c(d){let p;if(d.lines>r&&d instanceof It)for(let m of d.children)c(m);else d.lines>o&&(h>o||!h)?(u(),l.push(d)):d instanceof K&&h&&(p=f[f.length-1])instanceof K&&d.lines+p.lines<=32?(h+=d.lines,a+=d.length+1,f[f.length-1]=new K(p.text.concat(d.text),p.length+1+d.length)):(h+d.lines>n&&u(),h+=d.lines,a+=d.length+1,f.push(d))}function u(){h!=0&&(l.push(f.length==1?f[0]:It.from(f,a)),a=-1,h=f.length=0)}for(let d of t)c(d);return u(),l.length==1?l[0]:new It(l,e)}}N.empty=new K([""],0);function Ma(s){let t=-1;for(let e of s)t+=e.length+1;return t}function Ai(s,t,e=0,i=1e9){for(let n=0,r=0,o=!0;r=e&&(h>i&&(l=l.slice(0,i-n)),n0?1:(t instanceof K?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],o=r>>1,l=n instanceof K?n.text.length:n.children.length;if(o==(e>0?l:0)){if(i==0)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(n instanceof K){let h=n.text[o+(e<0?-1:0)];if(this.offsets[i]+=e,h.length>Math.max(0,t))return this.value=t==0?h:e>0?h.slice(t):h.slice(0,h.length-t),this;t-=h.length}else{let h=n.children[o+(e<0?-1:0)];t>h.length?(t-=h.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(h),this.offsets.push(e>0?1:(h instanceof K?h.text.length:h.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class Lo{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new Ke(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:n}=this.cursor.next(t);return this.pos+=(n.length+t)*e,this.value=n.length<=i?n:e<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Vo{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:n}=this.inner.next(t);return e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(N.prototype[Symbol.iterator]=function(){return this.iter()},Ke.prototype[Symbol.iterator]=Lo.prototype[Symbol.iterator]=Vo.prototype[Symbol.iterator]=function(){return this});class Ta{constructor(t,e,i,n){this.from=t,this.to=e,this.number=i,this.text=n}get length(){return this.to-this.from}}let Se="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(s=>s?parseInt(s,36):1);for(let s=1;ss)return Se[t-1]<=s;return!1}function sr(s){return s>=127462&&s<=127487}const rr=8205;function mt(s,t,e=!0,i=!0){return(e?Fo:Pa)(s,t,i)}function Fo(s,t,e){if(t==s.length)return t;t&&Ho(s.charCodeAt(t))&&zo(s.charCodeAt(t-1))&&t--;let i=pt(s,t);for(t+=Ot(i);t=0&&sr(pt(s,o));)r++,o-=2;if(r%2==0)break;t+=2}else break}return t}function Pa(s,t,e){for(;t>0;){let i=Fo(s,t-2,e);if(i=56320&&s<57344}function zo(s){return s>=55296&&s<56320}function pt(s,t){let e=s.charCodeAt(t);if(!zo(e)||t+1==s.length)return e;let i=s.charCodeAt(t+1);return Ho(i)?(e-55296<<10)+(i-56320)+65536:e}function Wo(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}function Ot(s){return s<65536?1:2}const Ln=/\r\n?|\n/;var ft=function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s}(ft||(ft={}));class Lt{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return r+(t-n);r+=l}else{if(i!=ft.Simple&&a>=t&&(i==ft.TrackDel&&nt||i==ft.TrackBefore&&nt))return null;if(a>t||a==t&&e<0&&!l)return t==n||e<0?r:r+h;r+=h}n=a}if(t>n)throw new RangeError(`Position ${t} is out of range for changeset of length ${n}`);return r}touchesRange(t,e=t){for(let i=0,n=0;i=0&&n<=e&&l>=t)return ne?"cover":!0;n=l}return!1}toString(){let t="";for(let e=0;e=0?":"+n:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Lt(t)}static create(t){return new Lt(t)}}class J extends Lt{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Vn(this,(e,i,n,r,o)=>t=t.replace(n,n+(i-e),o),!1),t}mapDesc(t,e=!1){return Fn(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let n=0,r=0;n=0){e[n]=l,e[n+1]=o;let h=n>>1;for(;i.length0&&$t(i,e,r.text),r.forward(f),l+=f}let a=t[o++];for(;l>1].toJSON()))}return t}static of(t,e,i){let n=[],r=[],o=0,l=null;function h(f=!1){if(!f&&!n.length)return;ou||c<0||u>e)throw new RangeError(`Invalid change range ${c} to ${u} (in doc of length ${e})`);let p=d?typeof d=="string"?N.of(d.split(i||Ln)):d:N.empty,m=p.length;if(c==u&&m==0)return;co&&nt(n,c-o,-1),nt(n,u-c,m),$t(r,n,p),o=u}}return a(t),h(!l),l}static empty(t){return new J(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let n=0;nl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)e.push(r[0],0);else{for(;i.length=0&&e<=0&&e==s[n+1]?s[n]+=t:t==0&&s[n]==0?s[n+1]+=e:i?(s[n]+=t,s[n+1]+=e):s.push(t,e)}function $t(s,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i>1])),!(e||o==s.sections.length||s.sections[o+1]<0);)l=s.sections[o++],h=s.sections[o++];t(n,a,r,f,c),n=a,r=f}}}function Fn(s,t,e,i=!1){let n=[],r=i?[]:null,o=new Je(s),l=new Je(t);for(let h=-1;;)if(o.ins==-1&&l.ins==-1){let a=Math.min(o.len,l.len);nt(n,a,-1),o.forward(a),l.forward(a)}else if(l.ins>=0&&(o.ins<0||h==o.i||o.off==0&&(l.len=0&&h=0){let a=0,f=o.len;for(;f;)if(l.ins==-1){let c=Math.min(f,l.len);a+=c,f-=c,l.forward(c)}else if(l.ins==0&&l.lenh||o.ins>=0&&o.len>h)&&(l||i.length>a),r.forward2(h),o.forward(h)}}}}class Je{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?N.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?N.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class fe{constructor(t,e,i){this.from=t,this.to=e,this.flags=i}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let t=this.flags&3;return t==3?null:t}get goalColumn(){let t=this.flags>>5;return t==33554431?void 0:t}map(t,e=-1){let i,n;return this.empty?i=n=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),n=t.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new fe(i,n,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return b.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return b.range(this.anchor,i)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return b.range(t.anchor,t.head)}static create(t,e,i){return new fe(t,e,i)}}class b{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:b.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let e=0;et.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new b(t.ranges.map(e=>fe.fromJSON(e)),t.main)}static single(t,e=t){return new b([b.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;nt?4:0)|r)}static normalized(t,e=0){let i=t[e];t.sort((n,r)=>n.from-r.from),e=t.indexOf(i);for(let n=1;nr.head?b.range(h,l):b.range(l,h))}}return new b(t,e)}}function qo(s,t){for(let e of s.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let Ss=0;class M{constructor(t,e,i,n,r){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=n,this.id=Ss++,this.default=t([]),this.extensions=typeof r=="function"?r(this):r}static define(t={}){return new M(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:vs),!!t.static,t.enables)}of(t){return new Oi([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Oi(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Oi(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}}function vs(s,t){return s==t||s.length==t.length&&s.every((e,i)=>e===t[i])}class Oi{constructor(t,e,i,n){this.dependencies=t,this.facet=e,this.type=i,this.value=n,this.id=Ss++}dynamicSlot(t){var e;let i=this.value,n=this.facet.compareInput,r=this.id,o=t[r]>>1,l=this.type==2,h=!1,a=!1,f=[];for(let c of this.dependencies)c=="doc"?h=!0:c=="selection"?a=!0:((e=t[c.id])!==null&&e!==void 0?e:1)&1||f.push(t[c.id]);return{create(c){return c.values[o]=i(c),1},update(c,u){if(h&&u.docChanged||a&&(u.docChanged||u.selection)||Hn(c,f)){let d=i(c);if(l?!or(d,c.values[o],n):!n(d,c.values[o]))return c.values[o]=d,1}return 0},reconfigure:(c,u)=>{let d,p=u.config.address[r];if(p!=null){let m=Ei(u,p);if(this.dependencies.every(g=>g instanceof M?u.facet(g)===c.facet(g):g instanceof St?u.field(g,!1)==c.field(g,!1):!0)||(l?or(d=i(c),m,n):n(d=i(c),m)))return c.values[o]=m,0}else d=i(c);return c.values[o]=d,1}}}}function or(s,t,e){if(s.length!=t.length)return!1;for(let i=0;is[h.id]),n=e.map(h=>h.type),r=i.filter(h=>!(h&1)),o=s[t.id]>>1;function l(h){let a=[];for(let f=0;fi===n),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(lr).find(i=>i.field==this);return((e==null?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:i=>(i.values[e]=this.create(i),1),update:(i,n)=>{let r=i.values[e],o=this.updateF(r,n);return this.compareF(r,o)?0:(i.values[e]=o,1)},reconfigure:(i,n)=>n.config.address[this.id]!=null?(i.values[e]=n.field(this),0):(i.values[e]=this.create(i),1)}}init(t){return[this,lr.of({field:this,create:t})]}get extension(){return this}}const ae={lowest:4,low:3,default:2,high:1,highest:0};function Fe(s){return t=>new Uo(t,s)}const tn={highest:Fe(ae.highest),high:Fe(ae.high),default:Fe(ae.default),low:Fe(ae.low),lowest:Fe(ae.lowest)};class Uo{constructor(t,e){this.inner=t,this.prec=e}}class en{of(t){return new zn(this,t)}reconfigure(t){return en.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class zn{constructor(t,e){this.compartment=t,this.inner=e}}class Ri{constructor(t,e,i,n,r,o){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,i){let n=[],r=Object.create(null),o=new Map;for(let u of Ra(t,e,o))u instanceof St?n.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),h=[],a=[];for(let u of n)l[u.id]=a.length<<1,a.push(d=>u.slot(d));let f=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=f&&f[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=h.length<<1|1,vs(m,d))h.push(i.facet(p));else{let g=p.combine(d.map(y=>y.value));h.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=h.length<<1|1,h.push(g.value)):(l[g.id]=a.length<<1,a.push(y=>g.dynamicSlot(y)));l[p.id]=a.length<<1,a.push(g=>Ba(g,p,d))}}let c=a.map(u=>u(l));return new Ri(t,o,c,l,h,r)}}function Ra(s,t,e){let i=[[],[],[],[],[]],n=new Map;function r(o,l){let h=n.get(o);if(h!=null){if(h<=l)return;let a=i[h].indexOf(o);a>-1&&i[h].splice(a,1),o instanceof zn&&e.delete(o.compartment)}if(n.set(o,l),Array.isArray(o))for(let a of o)r(a,l);else if(o instanceof zn){if(e.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let a=t.get(o.compartment)||o.inner;e.set(o.compartment,a),r(a,l)}else if(o instanceof Uo)r(o.inner,o.prec);else if(o instanceof St)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Oi)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,ae.default);else{let a=o.extension;if(!a)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(a,l)}}return r(s,ae.default),i.reduce((o,l)=>o.concat(l))}function Ge(s,t){if(t&1)return 2;let e=t>>1,i=s.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;s.status[e]=4;let n=s.computeSlot(s,s.config.dynamicSlots[e]);return s.status[e]=2|n}function Ei(s,t){return t&1?s.config.staticValues[t>>1]:s.values[t>>1]}const Ko=M.define(),Go=M.define({combine:s=>s.some(t=>t),static:!0}),Qo=M.define({combine:s=>s.length?s[0]:void 0,static:!0}),Jo=M.define(),$o=M.define(),_o=M.define(),Xo=M.define({combine:s=>s.length?s[0]:!1});class re{constructor(t,e){this.type=t,this.value=e}static define(){return new Ea}}class Ea{of(t){return new re(this,t)}}class Ia{constructor(t){this.map=t}of(t){return new V(this,t)}}class V{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new V(this.type,e)}is(t){return this.type==t}static define(t={}){return new Ia(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let n of t){let r=n.map(e);r&&i.push(r)}return i}}V.reconfigure=V.define();V.appendConfig=V.define();class ${constructor(t,e,i,n,r,o){this.startState=t,this.changes=e,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&qo(i,e.newLength),r.some(l=>l.type==$.time)||(this.annotations=r.concat($.time.of(Date.now())))}static create(t,e,i,n,r,o){return new $(t,e,i,n,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation($.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}$.time=re.define();$.userEvent=re.define();$.addToHistory=re.define();$.remote=re.define();function Na(s,t){let e=[];for(let i=0,n=0;;){let r,o;if(i=s[i]))r=s[i++],o=s[i++];else if(n=0;n--){let r=i[n](s);r instanceof $?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof $?s=r[0]:s=Zo(t,ve(r),!1)}return s}function Va(s){let t=s.startState,e=t.facet(_o),i=s;for(let n=e.length-1;n>=0;n--){let r=e[n](s);r&&Object.keys(r).length&&(i=Yo(i,Wn(t,r,s.changes.newLength),!0))}return i==s?s:$.create(t,s.changes,s.selection,i.effects,i.annotations,i.scrollIntoView)}const Fa=[];function ve(s){return s==null?Fa:Array.isArray(s)?s:[s]}var bt=function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s}(bt||(bt={}));const Ha=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let jn;try{jn=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function za(s){if(jn)return jn.test(s);for(let t=0;t"€"&&(e.toUpperCase()!=e.toLowerCase()||Ha.test(e)))return!0}return!1}function Wa(s){return t=>{if(!/\S/.test(t))return bt.Space;if(za(t))return bt.Word;for(let e=0;e-1)return bt.Word;return bt.Other}}class E{constructor(t,e,i,n,r,o){this.config=t,this.doc=e,this.selection=i,this.values=n,this.status=t.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ln.set(h,l)),e=null),n.set(o.value.compartment,o.value.extension)):o.is(V.reconfigure)?(e=null,i=o.value):o.is(V.appendConfig)&&(e=null,i=ve(i).concat(o.value));let r;e?r=t.startState.values.slice():(e=Ri.resolve(i,n,this),r=new E(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(l,h)=>h.reconfigure(l,this),null).values),new E(e,t.newDoc,t.newSelection,r,(o,l)=>l.update(o,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:b.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),n=this.changes(i.changes),r=[i.range],o=ve(i.effects);for(let l=1;lo.spec.fromJSON(l,h)))}}return E.create({doc:t.doc,selection:b.fromJSON(t.selection),extensions:e.extensions?n.concat([e.extensions]):n})}static create(t={}){let e=Ri.resolve(t.extensions||[],new Map),i=t.doc instanceof N?t.doc:N.of((t.doc||"").split(e.staticFacet(E.lineSeparator)||Ln)),n=t.selection?t.selection instanceof b?t.selection:b.single(t.selection.anchor,t.selection.head):b.single(0);return qo(n,i.length),e.staticFacet(Go)||(n=n.asSingle()),new E(e,i,n,e.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(E.tabSize)}get lineBreak(){return this.facet(E.lineSeparator)||` -`}get readOnly(){return this.facet(Xo)}phrase(t,...e){for(let i of this.facet(E.phrases))if(Object.prototype.hasOwnProperty.call(i,t)){t=i[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(i,n)=>{if(n=="$")return"$";let r=+(n||1);return!r||r>e.length?i:e[r-1]})),t}languageDataAt(t,e,i=-1){let n=[];for(let r of this.facet(Ko))for(let o of r(this,e,i))Object.prototype.hasOwnProperty.call(o,t)&&n.push(o[t]);return n}charCategorizer(t){return Wa(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:e,from:i,length:n}=this.doc.lineAt(t),r=this.charCategorizer(t),o=t-i,l=t-i;for(;o>0;){let h=mt(e,o,!1);if(r(e.slice(h,o))!=bt.Word)break;o=h}for(;ls.length?s[0]:4});E.lineSeparator=Qo;E.readOnly=Xo;E.phrases=M.define({compare(s,t){let e=Object.keys(s),i=Object.keys(t);return e.length==i.length&&e.every(n=>s[n]==t[n])}});E.languageData=Ko;E.changeFilter=Jo;E.transactionFilter=$o;E.transactionExtender=_o;en.reconfigure=V.define();function nn(s,t,e={}){let i={};for(let n of s)for(let r of Object.keys(n)){let o=n[r],l=i[r];if(l===void 0)i[r]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(e,r))i[r]=e[r](l,o);else throw new Error("Config merge conflict for field "+r)}for(let n in t)i[n]===void 0&&(i[n]=t[n]);return i}class pe{eq(t){return this==t}range(t,e=t){return qn.create(t,e,this)}}pe.prototype.startSide=pe.prototype.endSide=0;pe.prototype.point=!1;pe.prototype.mapMode=ft.TrackDel;let qn=class tl{constructor(t,e,i){this.from=t,this.to=e,this.value=i}static create(t,e,i){return new tl(t,e,i)}};function Un(s,t){return s.from-t.from||s.value.startSide-t.value.startSide}class Cs{constructor(t,e,i,n){this.from=t,this.to=e,this.value=i,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(t,e,i,n=0){let r=i?this.to:this.from;for(let o=n,l=r.length;;){if(o==l)return o;let h=o+l>>1,a=r[h]-t||(i?this.value[h].endSide:this.value[h].startSide)-e;if(h==o)return a>=0?o:l;a>=0?l=h:o=h+1}}between(t,e,i,n){for(let r=this.findIndex(e,-1e9,!0),o=this.findIndex(i,1e9,!1,r);rd||u==d&&a.startSide>0&&a.endSide<=0)continue;(d-u||a.endSide-a.startSide)<0||(o<0&&(o=u),a.point&&(l=Math.max(l,d-u)),i.push(a),n.push(u-o),r.push(d-o))}return{mapped:i.length?new Cs(n,r,i,l):null,pos:o}}}class L{constructor(t,e,i,n){this.chunkPos=t,this.chunk=e,this.nextLayer=i,this.maxPoint=n}static create(t,e,i,n){return new L(t,e,i,n)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:i=!1,filterFrom:n=0,filterTo:r=this.length}=t,o=t.filter;if(e.length==0&&!o)return this;if(i&&(e=e.slice().sort(Un)),this.isEmpty)return e.length?L.of(e):this;let l=new el(this,null,-1).goto(0),h=0,a=[],f=new Me;for(;l.value||h=0){let c=e[h++];f.addInner(c.from,c.to,c.value)||a.push(c)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||rl.to||r=r&&t<=r+o.length&&o.between(r,t-r,e-r,i)===!1)return}this.nextLayer.between(t,e,i)}}iter(t=0){return $e.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return $e.from(t).goto(e)}static compare(t,e,i,n,r=-1){let o=t.filter(c=>c.maxPoint>0||!c.isEmpty&&c.maxPoint>=r),l=e.filter(c=>c.maxPoint>0||!c.isEmpty&&c.maxPoint>=r),h=hr(o,l,i),a=new He(o,h,r),f=new He(l,h,r);i.iterGaps((c,u,d)=>ar(a,c,f,u,d,n)),i.empty&&i.length==0&&ar(a,0,f,0,0,n)}static eq(t,e,i=0,n){n==null&&(n=999999999);let r=t.filter(f=>!f.isEmpty&&e.indexOf(f)<0),o=e.filter(f=>!f.isEmpty&&t.indexOf(f)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let l=hr(r,o),h=new He(r,l,0).goto(i),a=new He(o,l,0).goto(i);for(;;){if(h.to!=a.to||!Kn(h.active,a.active)||h.point&&(!a.point||!h.point.eq(a.point)))return!1;if(h.to>n)return!0;h.next(),a.next()}}static spans(t,e,i,n,r=-1){let o=new He(t,null,r).goto(e),l=e,h=o.openStart;for(;;){let a=Math.min(o.to,i);if(o.point){let f=o.activeForPoint(o.to),c=o.pointFroml&&(n.span(l,a,o.active,h),h=o.openEnd(a));if(o.to>i)return h+(o.point&&o.to>i?1:0);l=o.to,o.next()}}static of(t,e=!1){let i=new Me;for(let n of t instanceof qn?[t]:e?ja(t):t)i.add(n.from,n.to,n.value);return i.finish()}}L.empty=new L([],[],null,-1);function ja(s){if(s.length>1)for(let t=s[0],e=1;e0)return s.slice().sort(Un);t=i}return s}L.empty.nextLayer=L.empty;class Me{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(t){this.chunks.push(new Cs(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}add(t,e,i){this.addInner(t,e,i)||(this.nextLayer||(this.nextLayer=new Me)).add(t,e,i)}addInner(t,e,i){let n=t-this.lastTo||i.startSide-this.last.endSide;if(n<=0&&(t-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return n<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=t,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+t,this.lastTo=e.to[i]+t,!0}finish(){return this.finishInner(L.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let e=L.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function hr(s,t,e){let i=new Map;for(let r of s)for(let o=0;o=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&n.push(new el(o,e,i,r));return n.length==1?n[0]:new $e(n)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let i of this.heap)i.goto(t,e);for(let i=this.heap.length>>1;i>=0;i--)pn(this.heap,i);return this.next(),this}forward(t,e){for(let i of this.heap)i.forward(t,e);for(let i=this.heap.length>>1;i>=0;i--)pn(this.heap,i);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),pn(this.heap,0)}}}function pn(s,t){for(let e=s[t];;){let i=(t<<1)+1;if(i>=s.length)break;let n=s[i];if(i+1=0&&(n=s[i+1],i++),e.compare(n)<0)break;s[i]=e,s[t]=n,t=i}}class He{constructor(t,e,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=$e.from(t,e,i)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){ri(this.active,t),ri(this.activeTo,t),ri(this.activeRank,t),this.minActive=fr(this.active,this.activeTo)}addActive(t){let e=0,{value:i,to:n,rank:r}=this.cursor;for(;e-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>t){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),i&&ri(i,n)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[n]=0&&!(this.activeRank[i]t||this.activeTo[i]==t&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}openEnd(t){let e=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>t;i--)e++;return e}}function ar(s,t,e,i,n,r){s.goto(t),e.goto(i);let o=i+n,l=i,h=i-t;for(;;){let a=s.to+h-e.to||s.endSide-e.endSide,f=a<0?s.to+h:e.to,c=Math.min(f,o);if(s.point||e.point?s.point&&e.point&&(s.point==e.point||s.point.eq(e.point))&&Kn(s.activeForPoint(s.to+h),e.activeForPoint(e.to))||r.comparePoint(l,c,s.point,e.point):c>l&&!Kn(s.active,e.active)&&r.compareRange(l,c,s.active,e.active),f>o)break;l=f,a<=0&&s.next(),a>=0&&e.next()}}function Kn(s,t){if(s.length!=t.length)return!1;for(let e=0;e=t;i--)s[i+1]=s[i];s[t]=e}function fr(s,t){let e=-1,i=1e9;for(let n=0;n=t)return n;if(n==s.length)break;r+=s.charCodeAt(n)==9?e-r%e:1,n=mt(s,n)}return i===!0?-1:s.length}const Gn="ͼ",cr=typeof Symbol>"u"?"__"+Gn:Symbol.for(Gn),Qn=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class ee{constructor(t,e){this.rules=[];let{finish:i}=e||{};function n(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,l,h,a){let f=[],c=/^@(\w+)\b/.exec(o[0]),u=c&&c[1]=="keyframes";if(c&&l==null)return h.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))r(d.split(/,\s*/).map(m=>o.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),p,h);else if(p&&typeof p=="object"){if(!c)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(n(d),p,f,u)}else p!=null&&f.push(d.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(f.length||u)&&h.push((i&&!c&&!a?o.map(i):o).join(", ")+" {"+f.join(" ")+"}")}for(let o in t)r(n(o),t[o],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=ur[cr]||1;return ur[cr]=t+1,Gn+t.toString(36)}static mount(t,e){(t[Qn]||new Ua(t)).mount(Array.isArray(e)?e:[e])}}let li=null;class Ua{constructor(t){if(!t.head&&t.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(li)return t.adoptedStyleSheets=[li.sheet].concat(t.adoptedStyleSheets),t[Qn]=li;this.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(t.adoptedStyleSheets),li=this}else{this.styleTag=(t.ownerDocument||t).createElement("style");let e=t.head||t;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],t[Qn]=this}mount(t){let e=this.sheet,i=0,n=0;for(let r=0;r-1&&(this.modules.splice(l,1),n--,l=-1),l==-1){if(this.modules.splice(n++,0,o),e)for(let h=0;h",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},dr=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),Ka=typeof navigator<"u"&&/Mac/.test(navigator.platform),Ga=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Qa=Ka||dr&&+dr[1]<57;for(var tt=0;tt<10;tt++)ie[48+tt]=ie[96+tt]=String(tt);for(var tt=1;tt<=24;tt++)ie[tt+111]="F"+tt;for(var tt=65;tt<=90;tt++)ie[tt]=String.fromCharCode(tt+32),_e[tt]=String.fromCharCode(tt);for(var gn in ie)_e.hasOwnProperty(gn)||(_e[gn]=ie[gn]);function Ja(s){var t=Qa&&(s.ctrlKey||s.altKey||s.metaKey)||Ga&&s.shiftKey&&s.key&&s.key.length==1||s.key=="Unidentified",e=!t&&s.key||(s.shiftKey?_e:ie)[s.keyCode]||s.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}function Ii(s){let t;return s.nodeType==11?t=s.getSelection?s:s.ownerDocument:t=s,t.getSelection()}function Te(s,t){return t?s==t||s.contains(t.nodeType!=1?t.parentNode:t):!1}function $a(s){let t=s.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Mi(s,t){if(!t.anchorNode)return!1;try{return Te(s,t.anchorNode)}catch{return!1}}function Xe(s){return s.nodeType==3?De(s,0,s.nodeValue.length).getClientRects():s.nodeType==1?s.getClientRects():[]}function Ni(s,t,e,i){return e?pr(s,t,e,i,-1)||pr(s,t,e,i,1):!1}function Li(s){for(var t=0;;t++)if(s=s.previousSibling,!s)return t}function pr(s,t,e,i,n){for(;;){if(s==e&&t==i)return!0;if(t==(n<0?0:Ye(s))){if(s.nodeName=="DIV")return!1;let r=s.parentNode;if(!r||r.nodeType!=1)return!1;t=Li(s)+(n<0?0:1),s=r}else if(s.nodeType==1){if(s=s.childNodes[t+(n<0?-1:0)],s.nodeType==1&&s.contentEditable=="false")return!1;t=n<0?Ye(s):0}else return!1}}function Ye(s){return s.nodeType==3?s.nodeValue.length:s.childNodes.length}const nl={left:0,right:0,top:0,bottom:0};function As(s,t){let e=t?s.left:s.right;return{left:e,right:e,top:s.top,bottom:s.bottom}}function _a(s){return{left:0,right:s.innerWidth,top:0,bottom:s.innerHeight}}function Xa(s,t,e,i,n,r,o,l){let h=s.ownerDocument,a=h.defaultView||window;for(let f=s;f;)if(f.nodeType==1){let c,u=f==h.body;if(u)c=_a(a);else{if(f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let m=f.getBoundingClientRect();c={left:m.left,right:m.left+f.clientWidth,top:m.top,bottom:m.top+f.clientHeight}}let d=0,p=0;if(n=="nearest")t.top0&&t.bottom>c.bottom+p&&(p=t.bottom-c.bottom+p+o)):t.bottom>c.bottom&&(p=t.bottom-c.bottom+o,e<0&&t.top-p0&&t.right>c.right+d&&(d=t.right-c.right+d+r)):t.right>c.right&&(d=t.right-c.right+r,e<0&&t.lefte.clientHeight||e.scrollWidth>e.clientWidth)return e;e=e.assignedSlot||e.parentNode}else if(e.nodeType==11)e=e.host;else break;return null}class Za{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){this.set(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}set(t,e,i,n){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=n}}let ke=null;function sl(s){if(s.setActive)return s.setActive();if(ke)return s.focus(ke);let t=[];for(let e=s;e&&(t.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(s.focus(ke==null?{get preventScroll(){return ke={preventScroll:!0},!0}}:void 0),!ke){ke=!1;for(let e=0;ee)return c.domBoundsAround(t,e,a);if(u>=t&&n==-1&&(n=h,r=a),a>e&&c.dom.parentNode==this.dom){o=h,l=f;break}f=u,a=u+c.breakAfter}return{from:r,to:l<0?i+this.length:l,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(t=!1){this.dirty|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.dirty|=2),e.dirty&1)return;e.dirty|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.dirty&&this.markParentsDirty(!0))}setDOM(t){this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=Os){this.markDirty();for(let n=t;nthis.pos||t==this.pos&&(e>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function ll(s,t,e,i,n,r,o,l,h){let{children:a}=s,f=a.length?a[t]:null,c=r.length?r[r.length-1]:null,u=c?c.breakAfter:o;if(!(t==i&&f&&!o&&!u&&r.length<2&&f.merge(e,n,r.length?c:null,e==0,l,h))){if(i0&&(!o&&r.length&&f.merge(e,f.length,r[0],!1,l,0)?f.breakAfter=r.shift().breakAfter:(e2);var x={mac:wr||/Mac/.test(gt.platform),windows:/Win/.test(gt.platform),linux:/Linux|X11/.test(gt.platform),ie:sn,ie_version:al?Jn.documentMode||6:_n?+_n[1]:$n?+$n[1]:0,gecko:yr,gecko_version:yr?+(/Firefox\/(\d+)/.exec(gt.userAgent)||[0,0])[1]:0,chrome:!!mn,chrome_version:mn?+mn[1]:0,ios:wr,android:/Android\b/.test(gt.userAgent),webkit:br,safari:fl,webkit_version:br?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Jn.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const nf=256;class ne extends j{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,e,i){return i&&(!(i instanceof ne)||this.length-(e-t)+i.length>nf)?!1:(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new ne(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new st(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return Xn(this.dom,t,e)}}class Ft extends j{constructor(t,e=[],i=0){super(),this.mark=t,this.children=e,this.length=i;for(let n of e)n.setParent(this)}setAttrs(t){if(rl(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.dirty|=6)}sync(t){this.dom?this.dirty&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t)}merge(t,e,i,n,r,o){return i&&(!(i instanceof Ft&&i.mark.eq(this.mark))||t&&r<=0||et&&e.push(i=t&&(n=r),i=h,r++}let o=this.length-t;return this.length=t,n>-1&&(this.children.length=n,this.markDirty()),new Ft(this.mark,e,o)}domAtPos(t){return dl(this,t)}coordsAt(t,e){return gl(this,t,e)}}function Xn(s,t,e){let i=s.nodeValue.length;t>i&&(t=i);let n=t,r=t,o=0;t==0&&e<0||t==i&&e>=0?x.chrome||x.gecko||(t?(n--,o=1):r=0)?0:l.length-1];return x.safari&&!o&&h.width==0&&(h=Array.prototype.find.call(l,a=>a.width)||h),o?As(h,o<0):h||null}class _t extends j{constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}static create(t,e,i){return new(t.customView||_t)(t,e,i)}split(t){let e=_t.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(){(!this.dom||!this.widget.updateDOM(this.dom))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,i,n,r,o){return i&&(!(i instanceof _t)||!this.widget.compare(i.widget)||t>0&&r<=0||e0?i.length-1:0;n=i[r],!(t>0?r==0:r==i.length-1||n.top0?-1:1);return this.length?n:As(n,this.side>0)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class cl extends _t{domAtPos(t){let{topView:e,text:i}=this.widget;return e?Yn(t,0,e,i,(n,r)=>n.domAtPos(r),n=>new st(i,Math.min(n,i.nodeValue.length))):new st(i,Math.min(t,i.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(t,e){let{topView:i,text:n}=this.widget;return i?ul(t,e,i,n):Math.min(e,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(t,e){let{topView:i,text:n}=this.widget;return i?Yn(t,e,i,n,(r,o,l)=>r.coordsAt(o,l),(r,o)=>Xn(n,r,o)):Xn(n,t,e)}destroy(){var t;super.destroy(),(t=this.widget.topView)===null||t===void 0||t.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function Yn(s,t,e,i,n,r){if(e instanceof Ft){for(let o=e.dom.firstChild;o;o=o.nextSibling){let l=j.get(o);if(!l)return r(s,t);let h=Te(o,i),a=l.length+(h?i.nodeValue.length:0);if(s0?-1:1);return i&&i.tope.top?{left:e.left,right:e.right,top:i.top,bottom:i.bottom}:e}get overrideDOMText(){return N.empty}}ne.prototype.children=_t.prototype.children=Pe.prototype.children=Os;function sf(s,t){let e=s.parent,i=e?e.children.indexOf(s):-1;for(;e&&i>=0;)if(t<0?i>0:ir&&t0;r--){let o=i[r-1];if(o.dom.parentNode==e)return o.domAtPos(o.length)}for(let r=n;r0&&t instanceof Ft&&n.length&&(i=n[n.length-1])instanceof Ft&&i.mark.eq(t.mark)?pl(i,t.children[0],e-1):(n.push(t),t.setParent(s)),s.length+=t.length}function gl(s,t,e){let i=null,n=-1,r=null,o=-1;function l(a,f){for(let c=0,u=0;c=f&&(d.children.length?l(d,f-u):!r&&(p>f||u==p&&d.getSide()>0)?(r=d,o=f-u):(u0?3e8:-4e8:e>0?1e8:-1e8,new ge(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,n;if(t.isBlockGap)i=-5e8,n=4e8;else{let{start:r,end:o}=ml(t,e);i=(r?e?-3e8:-1:5e8)-1,n=(o?e?2e8:1:-6e8)+1}return new ge(t,i,n,e,t.widget||null,!0)}static line(t){return new ii(t)}static set(t,e=!1){return L.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}H.none=L.empty;class rn extends H{constructor(t){let{start:e,end:i}=ml(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){return this==t||t instanceof rn&&this.tagName==t.tagName&&this.class==t.class&&Ms(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}rn.prototype.point=!1;class ii extends H{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof ii&&this.spec.class==t.spec.class&&Ms(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}ii.prototype.mapMode=ft.TrackBefore;ii.prototype.point=!0;class ge extends H{constructor(t,e,i,n,r,o){super(e,i,r,t),this.block=n,this.isReplace=o,this.mapMode=n?e<=0?ft.TrackBefore:ft.TrackAfter:ft.TrackDel}get type(){return this.startSide=5}eq(t){return t instanceof ge&&of(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}ge.prototype.point=!0;function ml(s,t=!1){let{inclusiveStart:e,inclusiveEnd:i}=s;return e==null&&(e=s.inclusive),i==null&&(i=s.inclusive),{start:e??t,end:i??t}}function of(s,t){return s==t||!!(s&&t&&s.compare(t))}function es(s,t,e,i=0){let n=e.length-1;n>=0&&e[n]+i>=s?e[n]=Math.max(e[n],t):e.push(s,t)}class rt extends j{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,i,n,r,o){if(i){if(!(i instanceof rt))return!1;this.dom||i.transferDOM(this)}return n&&this.setDeco(i?i.attrs:null),hl(this,t,e,i?i.children:[],r,o),!0}split(t){let e=new rt;if(e.breakAfter=this.breakAfter,this.length==0)return e;let{i,off:n}=this.childPos(t);n&&(e.append(this.children[i].split(n),0),this.children[i].merge(n,this.children[i].length,null,!1,0,0),i++);for(let r=i;r0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){Ms(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){pl(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=Zn(e,this.attrs||{})),i&&(this.attrs=Zn({class:i},this.attrs||{}))}domAtPos(t){return dl(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.dirty|=6)}sync(t){var e;this.dom?this.dirty&4&&(rl(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(ts(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t);let i=this.dom.lastChild;for(;i&&j.get(i)instanceof Ft;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((e=j.get(i))===null||e===void 0?void 0:e.isEditable)==!1&&(!x.ios||!this.children.some(n=>n instanceof ne))){let n=document.createElement("BR");n.cmIgnore=!0,this.dom.appendChild(n)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0;for(let e of this.children){if(!(e instanceof ne)||/[^ -~]/.test(e.text))return null;let i=Xe(e.dom);if(i.length!=1)return null;t+=i[0].width}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length}:null}coordsAt(t,e){return gl(this,t,e)}become(t){return!1}get type(){return G.Text}static find(t,e){for(let i=0,n=0;i=e){if(r instanceof rt)return r;if(o>e)break}n=o+r.breakAfter}return null}}class ue extends j{constructor(t,e,i){super(),this.widget=t,this.length=e,this.type=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,n,r,o){return i&&(!(i instanceof ue)||!this.widget.compare(i.widget)||t>0&&r<=0||e0;){if(this.textOff==this.text.length){let{value:r,lineBreak:o,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=r,this.textOff=0}let n=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(hi(new ne(this.text.slice(this.textOff,this.textOff+n)),e),i),this.atCursorPos=!0,this.textOff+=n,t-=n,i=0}}span(t,e,i,n){this.buildText(e-t,i,n),this.pos=e,this.openStart<0&&(this.openStart=n)}point(t,e,i,n,r,o){if(this.disallowBlockEffectsFor[o]&&i instanceof ge){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=e-t;if(i instanceof ge)if(i.block){let{type:h}=i;h==G.WidgetAfter&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ue(i.widget||new kr("div"),l,h))}else{let h=_t.create(i.widget||new kr("span"),l,l?0:i.startSide),a=this.atCursorPos&&!h.isEditable&&r<=n.length&&(t0),f=!h.isEditable&&(tn.length||i.startSide<=0),c=this.getLine();this.pendingBuffer==2&&!a&&(this.pendingBuffer=0),this.flushBuffer(n),a&&(c.append(hi(new Pe(1),n),r),r=n.length+Math.max(0,r-n.length)),c.append(hi(h,n),r),this.atCursorPos=f,this.pendingBuffer=f?tn.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=r)}static build(t,e,i,n,r){let o=new Ts(t,e,i,r);return o.openEnd=L.spans(n,e,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function hi(s,t){for(let e of t)s=new Ft(e,[s],s.length);return s}class kr extends ei{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}}const yl=M.define(),bl=M.define(),wl=M.define(),kl=M.define(),is=M.define(),xl=M.define(),Sl=M.define({combine:s=>s.some(t=>t)}),lf=M.define({combine:s=>s.some(t=>t)});class Vi{constructor(t,e="nearest",i="nearest",n=5,r=5){this.range=t,this.y=e,this.x=i,this.yMargin=n,this.xMargin=r}map(t){return t.empty?this:new Vi(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}const xr=V.define({map:(s,t)=>s.map(t)});function Mt(s,t,e){let i=s.facet(kl);i.length?i[0](t):window.onerror?window.onerror(String(t),e,void 0,void 0,t):e?console.error(e+":",t):console.error(t)}const on=M.define({combine:s=>s.length?s[0]:!0});let hf=0;const je=M.define();class Ht{constructor(t,e,i,n){this.id=t,this.create=e,this.domEventHandlers=i,this.extension=n(this)}static define(t,e){const{eventHandlers:i,provide:n,decorations:r}=e||{};return new Ht(hf++,t,i,o=>{let l=[je.of(o)];return r&&l.push(Ze.of(h=>{let a=h.plugin(o);return a?r(a):H.none})),n&&l.push(n(o)),l})}static fromClass(t,e){return Ht.define(i=>new t(i),e)}}class yn{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(Mt(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){Mt(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(!((e=this.value)===null||e===void 0)&&e.destroy)try{this.value.destroy()}catch(i){Mt(t.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const vl=M.define(),Ds=M.define(),Ze=M.define(),Cl=M.define(),Al=M.define(),qe=M.define();class Vt{constructor(t,e,i,n){this.fromA=t,this.toA=e,this.fromB=i,this.toB=n}join(t){return new Vt(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let n=t[e-1];if(!(n.fromA>i.toA)){if(n.toAf)break;r+=2}if(!h)return i;new Vt(h.fromA,h.toA,h.fromB,h.toB).addToSet(i),o=h.toA,l=h.toB}}}class Fi{constructor(t,e,i){this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=J.empty(this.startState.doc.length);for(let o of i)this.changes=this.changes.compose(o.changes);let n=[];this.changes.iterChangedRanges((o,l,h,a)=>n.push(new Vt(o,l,h,a))),this.changedRanges=n;let r=t.hasFocus;r!=t.inputState.notifiedFocused&&(t.inputState.notifiedFocused=r,this.flags|=1)}static create(t,e,i){return new Fi(t,e,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var _=function(s){return s[s.LTR=0]="LTR",s[s.RTL=1]="RTL",s}(_||(_={}));const ns=_.LTR,af=_.RTL;function Ol(s){let t=[];for(let e=0;e=e){if(l.level==i)return o;(r<0||(n!=0?n<0?l.frome:t[r].level>l.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}const U=[];function pf(s,t){let e=s.length,i=t==ns?1:2,n=t==ns?2:1;if(!s||i==1&&!df.test(s))return Ml(e);for(let o=0,l=i,h=i;o=0;u-=3)if(Dt[u+1]==-f){let d=Dt[u+2],p=d&2?i:d&4?d&1?n:i:0;p&&(U[o]=U[Dt[u]]=p),l=u;break}}else{if(Dt.length==189)break;Dt[l++]=o,Dt[l++]=a,Dt[l++]=h}else if((c=U[o])==2||c==1){let u=c==i;h=u?0:1;for(let d=l-3;d>=0;d-=3){let p=Dt[d+2];if(p&2)break;if(u)Dt[d+2]|=2;else{if(p&4)break;Dt[d+2]|=4}}}for(let o=0;ol;){let f=a,c=U[--a]!=2;for(;a>l&&c==(U[a-1]!=2);)a--;r.push(new Ae(a,f,c?2:1))}else r.push(new Ae(l,o,0))}else for(let o=0;o1)for(let h of this.points)h.node==t&&h.pos>this.text.length&&(h.pos-=o-1);i=r+o}}readNode(t){if(t.cmIgnore)return;let e=j.get(t),i=e&&e.overrideDOMText;if(i!=null){this.findPointInside(t,i.length);for(let n=i.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(t.nodeType==3?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+Math.min(e,i.offset))}}function Sr(s){return s.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(s.nodeName)}class vr{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class Cr extends j{constructor(t){super(),this.view=t,this.compositionDeco=H.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new rt],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Vt(0,0,0,t.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(t){let e=t.changedRanges;this.minWidth>0&&e.length&&(e.every(({fromA:o,toA:l})=>lthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=H.none:(t.transactions.length||this.dirty)&&(this.compositionDeco=yf(this.view,t.changes)),(x.ie||x.chrome)&&!this.compositionDeco.size&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let i=this.decorations,n=this.updateDeco(),r=xf(i,n,t.changes);return e=Vt.extendWithRanges(e,r),this.dirty==0&&e.length==0?!1:(this.updateInner(e,t.startState.doc.length),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=x.chrome||x.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(r),this.dirty=0,r&&(r.written||i.selectionRange.focusNode!=r.node)&&(this.forceSelection=!0),this.dom.style.height=""});let n=[];if(this.view.viewport.from||this.view.viewport.to=0?t[n]:null;if(!r)break;let{fromA:o,toA:l,fromB:h,toB:a}=r,{content:f,breakAtStart:c,openStart:u,openEnd:d}=Ts.build(this.view.state.doc,h,a,this.decorations,this.dynamicDecorationMap),{i:p,off:m}=i.findPos(l,1),{i:g,off:y}=i.findPos(o,-1);ll(this,g,y,p,m,f,c,u,d)}}updateSelection(t=!1,e=!1){if((t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange(),!(e||this.mayControlSelection()))return;let i=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,r=this.domAtPos(n.anchor),o=n.empty?r:this.domAtPos(n.head);if(x.gecko&&n.empty&&mf(r)){let h=document.createTextNode("");this.view.observer.ignore(()=>r.node.insertBefore(h,r.node.childNodes[r.offset]||null)),r=o=new st(h,0),i=!0}let l=this.view.observer.selectionRange;(i||!l.focusNode||!Ni(r.node,r.offset,l.anchorNode,l.anchorOffset)||!Ni(o.node,o.offset,l.focusNode,l.focusOffset))&&(this.view.observer.ignore(()=>{x.android&&x.chrome&&this.dom.contains(l.focusNode)&&Sf(l.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=Ii(this.view.root);if(h)if(n.empty){if(x.gecko){let a=wf(r.node,r.offset);if(a&&a!=3){let f=Bl(r.node,r.offset,a==1?1:-1);f&&(r=new st(f,a==1?0:f.nodeValue.length))}}h.collapse(r.node,r.offset),n.bidiLevel!=null&&l.cursorBidiLevel!=null&&(l.cursorBidiLevel=n.bidiLevel)}else if(h.extend){h.collapse(r.node,r.offset);try{h.extend(o.node,o.offset)}catch{}}else{let a=document.createRange();n.anchor>n.head&&([r,o]=[o,r]),a.setEnd(o.node,o.offset),a.setStart(r.node,r.offset),h.removeAllRanges(),h.addRange(a)}}),this.view.observer.setSelectionRange(r,o)),this.impreciseAnchor=r.precise?null:new st(l.anchorNode,l.anchorOffset),this.impreciseHead=o.precise?null:new st(l.focusNode,l.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:t}=this,e=t.state.selection.main,i=Ii(t.root),{anchorNode:n,anchorOffset:r}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let o=rt.find(this,e.head);if(!o)return;let l=o.posAtStart;if(e.head==l||e.head==l+o.length)return;let h=this.coordsAt(e.head,-1),a=this.coordsAt(e.head,1);if(!h||!a||h.bottom>a.top)return;let f=this.domAtPos(e.head+e.assoc);i.collapse(f.node,f.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&i.collapse(n,r)}mayControlSelection(){let t=this.view.root.activeElement;return t==this.dom||Mi(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t))}nearest(t){for(let e=t;e;){let i=j.get(e);if(i&&i.rootView==this)return i;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;eo||t==o&&r.type!=G.WidgetBefore&&r.type!=G.WidgetAfter&&(!n||e==2||this.children[n-1].breakAfter||this.children[n-1].type==G.WidgetBefore&&e>-2))return r.coordsAt(t-o,e);i=o}}measureVisibleLineHeights(t){let e=[],{from:i,to:n}=t,r=this.view.contentDOM.clientWidth,o=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,h=this.view.textDirection==_.LTR;for(let a=0,f=0;fn)break;if(a>=i){let d=c.dom.getBoundingClientRect();if(e.push(d.height),o){let p=c.dom.lastChild,m=p?Xe(p):[];if(m.length){let g=m[m.length-1],y=h?g.right-d.left:d.right-g.left;y>l&&(l=y,this.minWidth=r,this.minWidthFrom=a,this.minWidthTo=u)}}}a=u+c.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return getComputedStyle(this.children[e].dom).direction=="rtl"?_.RTL:_.LTR}measureTextSize(){for(let n of this.children)if(n instanceof rt){let r=n.measureTextSize();if(r)return r}let t=document.createElement("div"),e,i;return t.className="cm-line",t.style.width="99999px",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let n=Xe(t.firstChild)[0];e=t.getBoundingClientRect().height,i=n?n.width/27:7,t.remove()}),{lineHeight:e,charWidth:i}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new ol(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,n=0;;n++){let r=n==e.viewports.length?null:e.viewports[n],o=r?r.from-1:this.length;if(o>i){let l=e.lineBlockAt(o).bottom-e.lineBlockAt(i).top;t.push(H.replace({widget:new Ar(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return H.set(t)}updateDeco(){let t=this.view.state.facet(Ze).map((e,i)=>(this.dynamicDecorationMap[i]=typeof e=="function")?e(this.view):e);for(let e=t.length;ee.anchor?-1:1),n;if(!i)return;!e.empty&&(n=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,n.left),top:Math.min(i.top,n.top),right:Math.max(i.right,n.right),bottom:Math.max(i.bottom,n.bottom)});let r=0,o=0,l=0,h=0;for(let f of this.view.state.facet(Al).map(c=>c(this.view)))if(f){let{left:c,right:u,top:d,bottom:p}=f;c!=null&&(r=Math.max(r,c)),u!=null&&(o=Math.max(o,u)),d!=null&&(l=Math.max(l,d)),p!=null&&(h=Math.max(h,p))}let a={left:i.left-r,top:i.top-l,right:i.right+o,bottom:i.bottom+h};Xa(this.view.scrollDOM,a,e.head0&&e<=0)s=s.childNodes[t-1],t=Ye(s);else if(s.nodeType==1&&t=0)s=s.childNodes[t],t=0;else return null}}function wf(s,t){return s.nodeType!=1?0:(t&&s.childNodes[t-1].contentEditable=="false"?1:0)|(t0;){let a=mt(n.text,o,!1);if(i(n.text.slice(a,o))!=h)break;o=a}for(;ls?t.left-s:Math.max(0,s-t.right)}function Af(s,t){return t.top>s?t.top-s:Math.max(0,s-t.bottom)}function bn(s,t){return s.topt.top+1}function Or(s,t){return ts.bottom?{top:s.top,left:s.left,right:s.right,bottom:t}:s}function rs(s,t,e){let i,n,r,o,l=!1,h,a,f,c;for(let p=s.firstChild;p;p=p.nextSibling){let m=Xe(p);for(let g=0;gA||o==A&&r>k)&&(i=p,n=y,r=k,o=A,l=!k||(k>0?g0)),k==0?e>y.bottom&&(!f||f.bottomy.top)&&(a=p,c=y):f&&bn(f,y)?f=Mr(f,y.bottom):c&&bn(c,y)&&(c=Or(c,y.top))}}if(f&&f.bottom>=e?(i=h,n=f):c&&c.top<=e&&(i=a,n=c),!i)return{node:s,offset:0};let u=Math.max(n.left,Math.min(n.right,t));if(i.nodeType==3)return Tr(i,u,e);if(l&&i.contentEditable!="false")return rs(i,u,e);let d=Array.prototype.indexOf.call(s.childNodes,i)+(t>=(n.left+n.right)/2?1:0);return{node:s,offset:d}}function Tr(s,t,e){let i=s.nodeValue.length,n=-1,r=1e9,o=0;for(let l=0;le?f.top-e:e-f.bottom)-1;if(f.left-1<=t&&f.right+1>=t&&c=(f.left+f.right)/2,d=u;if((x.chrome||x.gecko)&&De(s,l).getBoundingClientRect().left==f.right&&(d=!u),c<=0)return{node:s,offset:l+(d?1:0)};n=l+(d?1:0),r=c}}}return{node:s,offset:n>-1?n:o>0?s.nodeValue.length:0}}function Rl(s,{x:t,y:e},i,n=-1){var r;let o=s.contentDOM.getBoundingClientRect(),l=o.top+s.viewState.paddingTop,h,{docHeight:a}=s.viewState,f=e-l;if(f<0)return 0;if(f>a)return s.state.doc.length;for(let y=s.defaultLineHeight/2,k=!1;h=s.elementAtHeight(f),h.type!=G.Text;)for(;f=n>0?h.bottom+y:h.top-y,!(f>=0&&f<=a);){if(k)return i?null:0;k=!0,n=-n}e=l+f;let c=h.from;if(cs.viewport.to)return s.viewport.to==s.state.doc.length?s.state.doc.length:i?null:Dr(s,o,h,t,e);let u=s.dom.ownerDocument,d=s.root.elementFromPoint?s.root:u,p=d.elementFromPoint(t,e);p&&!s.contentDOM.contains(p)&&(p=null),p||(t=Math.max(o.left+1,Math.min(o.right-1,t)),p=d.elementFromPoint(t,e),p&&!s.contentDOM.contains(p)&&(p=null));let m,g=-1;if(p&&((r=s.docView.nearest(p))===null||r===void 0?void 0:r.isEditable)!=!1){if(u.caretPositionFromPoint){let y=u.caretPositionFromPoint(t,e);y&&({offsetNode:m,offset:g}=y)}else if(u.caretRangeFromPoint){let y=u.caretRangeFromPoint(t,e);y&&({startContainer:m,startOffset:g}=y,(!s.contentDOM.contains(m)||x.safari&&Of(m,g,t)||x.chrome&&Mf(m,g,t))&&(m=void 0))}}if(!m||!s.docView.dom.contains(m)){let y=rt.find(s.docView,c);if(!y)return f>h.top+h.height/2?h.to:h.from;({node:m,offset:g}=rs(y.dom,t,e))}return s.docView.posFromDOM(m,g)}function Dr(s,t,e,i,n){let r=Math.round((i-t.left)*s.defaultCharacterWidth);if(s.lineWrapping&&e.height>s.defaultLineHeight*1.5){let l=Math.floor((n-e.top)/s.defaultLineHeight);r+=l*s.viewState.heightOracle.lineLength}let o=s.state.sliceDoc(e.from,e.to);return e.from+qa(o,r,s.state.tabSize)}function Of(s,t,e){let i;if(s.nodeType!=3||t!=(i=s.nodeValue.length))return!1;for(let n=s.nextSibling;n;n=n.nextSibling)if(n.nodeType!=1||n.nodeName!="BR")return!1;return De(s,i-1,i).getBoundingClientRect().left>e}function Mf(s,t,e){if(t!=0)return!1;for(let n=s;;){let r=n.parentNode;if(!r||r.nodeType!=1||r.firstChild!=n)return!1;if(r.classList.contains("cm-line"))break;n=r}let i=s.nodeType==1?s.getBoundingClientRect():De(s,0,Math.max(s.nodeValue.length,1)).getBoundingClientRect();return e-i.left>5}function Tf(s,t,e,i){let n=s.state.doc.lineAt(t.head),r=!i||!s.lineWrapping?null:s.coordsAtPos(t.assoc<0&&t.head>n.from?t.head-1:t.head);if(r){let h=s.dom.getBoundingClientRect(),a=s.textDirectionAt(n.from),f=s.posAtCoords({x:e==(a==_.LTR)?h.right-1:h.left+1,y:(r.top+r.bottom)/2});if(f!=null)return b.cursor(f,e?-1:1)}let o=rt.find(s.docView,t.head),l=o?e?o.posAtEnd:o.posAtStart:e?n.to:n.from;return b.cursor(l,e?-1:1)}function Pr(s,t,e,i){let n=s.state.doc.lineAt(t.head),r=s.bidiSpans(n),o=s.textDirectionAt(n.from);for(let l=t,h=null;;){let a=gf(n,r,o,l,e),f=Tl;if(!a){if(n.number==(e?s.state.doc.lines:1))return l;f=` -`,n=s.state.doc.line(n.number+(e?1:-1)),r=s.bidiSpans(n),a=b.cursor(e?n.from:n.to)}if(h){if(!h(f))return l}else{if(!i)return a;h=i(f)}l=a}}function Df(s,t,e){let i=s.state.charCategorizer(t),n=i(e);return r=>{let o=i(r);return n==bt.Space&&(n=o),n==o}}function Pf(s,t,e,i){let n=t.head,r=e?1:-1;if(n==(e?s.state.doc.length:0))return b.cursor(n,t.assoc);let o=t.goalColumn,l,h=s.contentDOM.getBoundingClientRect(),a=s.coordsAtPos(n),f=s.documentTop;if(a)o==null&&(o=a.left-h.left),l=r<0?a.top:a.bottom;else{let d=s.viewState.lineBlockAt(n);o==null&&(o=Math.min(h.right-h.left,s.defaultCharacterWidth*(n-d.from))),l=(r<0?d.top:d.bottom)+f}let c=h.left+o,u=i??s.defaultLineHeight>>1;for(let d=0;;d+=10){let p=l+(u+d)*r,m=Rl(s,{x:c,y:p},!1,r);if(ph.bottom||(r<0?mn))return b.cursor(m,t.assoc,void 0,o)}}function wn(s,t,e){let i=s.state.facet(Cl).map(n=>n(s));for(;;){let n=!1;for(let r of i)r.between(e.from-1,e.from+1,(o,l,h)=>{e.from>o&&e.frome.from?b.cursor(o,1):b.cursor(l,-1),n=!0)});if(!n)return e}}class Bf{constructor(t){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;let e=(i,n)=>{this.ignoreDuringComposition(n)||n.type=="keydown"&&this.keydown(t,n)||(this.mustFlushObserver(n)&&t.observer.forceFlush(),this.runCustomHandlers(n.type,t,n)?n.preventDefault():i(t,n))};for(let i in X){let n=X[i];t.contentDOM.addEventListener(i,r=>{Br(t,r)&&e(n,r)},os[i]),this.registeredEvents.push(i)}t.scrollDOM.addEventListener("mousedown",i=>{i.target==t.scrollDOM&&e(X.mousedown,i)}),x.chrome&&x.chrome_version==102&&t.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?t.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,t.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=t.hasFocus,x.safari&&t.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}ensureHandlers(t,e){var i;let n;this.customHandlers=[];for(let r of e)if(n=(i=r.update(t).spec)===null||i===void 0?void 0:i.domEventHandlers){this.customHandlers.push({plugin:r.value,handlers:n});for(let o in n)this.registeredEvents.indexOf(o)<0&&o!="scroll"&&(this.registeredEvents.push(o),t.contentDOM.addEventListener(o,l=>{Br(t,l)&&this.runCustomHandlers(o,t,l)&&l.preventDefault()}))}}runCustomHandlers(t,e,i){for(let n of this.customHandlers){let r=n.handlers[t];if(r)try{if(r.call(n.plugin,i,e)||i.defaultPrevented)return!0}catch(o){Mt(e.state,o)}}return!1}runScrollHandlers(t,e){this.lastScrollTop=t.scrollDOM.scrollTop,this.lastScrollLeft=t.scrollDOM.scrollLeft;for(let i of this.customHandlers){let n=i.handlers.scroll;if(n)try{n.call(i.plugin,e,t)}catch(r){Mt(t.state,r)}}}keydown(t,e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()n.keyCode==e.keyCode))&&!e.ctrlKey||Rf.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=i||e,setTimeout(()=>this.flushIOSKey(t),250),!0):!1}flushIOSKey(t){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,Ce(t.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:x.safari&&!x.ios&&Date.now()-this.compositionEndedAt<100?(this.compositionEndedAt=0,!0):!1:!1}mustFlushObserver(t){return t.type=="keydown"&&t.keyCode!=229}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const El=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Rf="dthko",Il=[16,17,18,20,91,92,224,225];function ai(s){return s*.7+8}class Ef{constructor(t,e,i,n){this.view=t,this.style=i,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=Ya(t.contentDOM);let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(E.allowMultipleSelections)&&If(t,e),this.dragMove=Nf(t,e),this.dragging=Lf(t,e)&&Fl(e)==1?null:!1,this.dragging===!1&&(e.preventDefault(),this.select(e))}move(t){var e;if(t.buttons==0)return this.destroy();if(this.dragging!==!1)return;this.select(this.lastEvent=t);let i=0,n=0,r=((e=this.scrollParent)===null||e===void 0?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};t.clientX<=r.left?i=-ai(r.left-t.clientX):t.clientX>=r.right&&(i=ai(t.clientX-r.right)),t.clientY<=r.top?n=-ai(r.top-t.clientY):t.clientY>=r.bottom&&(n=ai(t.clientY-r.bottom)),this.setScrollSpeed(i,n)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}select(t){let e=this.style.get(t,this.extend,this.multiple);(this.mustSelect||!e.eq(this.view.state.selection)||e.main.assoc!=this.view.state.selection.main.assoc)&&this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function If(s,t){let e=s.state.facet(yl);return e.length?e[0](t):x.mac?t.metaKey:t.ctrlKey}function Nf(s,t){let e=s.state.facet(bl);return e.length?e[0](t):x.mac?!t.altKey:!t.ctrlKey}function Lf(s,t){let{main:e}=s.state.selection;if(e.empty)return!1;let i=Ii(s.root);if(!i||i.rangeCount==0)return!0;let n=i.getRangeAt(0).getClientRects();for(let r=0;r=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return!0}return!1}function Br(s,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target,i;e!=s.contentDOM;e=e.parentNode)if(!e||e.nodeType==11||(i=j.get(e))&&i.ignoreEvent(t))return!1;return!0}const X=Object.create(null),os=Object.create(null),Nl=x.ie&&x.ie_version<15||x.ios&&x.webkit_version<604;function Vf(s){let t=s.dom.parentNode;if(!t)return;let e=t.appendChild(document.createElement("textarea"));e.style.cssText="position: fixed; left: -10000px; top: 10px",e.focus(),setTimeout(()=>{s.focus(),e.remove(),Ll(s,e.value)},50)}function Ll(s,t){let{state:e}=s,i,n=1,r=e.toText(t),o=r.lines==e.selection.ranges.length;if(ls!=null&&e.selection.ranges.every(h=>h.empty)&&ls==r.toString()){let h=-1;i=e.changeByRange(a=>{let f=e.doc.lineAt(a.from);if(f.from==h)return{range:a};h=f.from;let c=e.toText((o?r.line(n++).text:t)+e.lineBreak);return{changes:{from:f.from,insert:c},range:b.cursor(a.from+c.length)}})}else o?i=e.changeByRange(h=>{let a=r.line(n++);return{changes:{from:h.from,to:h.to,insert:a.text},range:b.cursor(h.from+a.length)}}):i=e.replaceSelection(r);s.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}X.keydown=(s,t)=>{s.inputState.setSelectionOrigin("select"),t.keyCode==27?s.inputState.lastEscPress=Date.now():Il.indexOf(t.keyCode)<0&&(s.inputState.lastEscPress=0)};X.touchstart=(s,t)=>{s.inputState.lastTouchTime=Date.now(),s.inputState.setSelectionOrigin("select.pointer")};X.touchmove=s=>{s.inputState.setSelectionOrigin("select.pointer")};os.touchstart=os.touchmove={passive:!0};X.mousedown=(s,t)=>{if(s.observer.flush(),s.inputState.lastTouchTime>Date.now()-2e3)return;let e=null;for(let i of s.state.facet(wl))if(e=i(s,t),e)break;if(!e&&t.button==0&&(e=zf(s,t)),e){let i=s.root.activeElement!=s.contentDOM;i&&s.observer.ignore(()=>sl(s.contentDOM)),s.inputState.startMouseSelection(new Ef(s,t,e,i))}};function Rr(s,t,e,i){if(i==1)return b.cursor(t,e);if(i==2)return vf(s.state,t,e);{let n=rt.find(s.docView,t),r=s.state.doc.lineAt(n?n.posAtEnd:t),o=n?n.posAtStart:r.from,l=n?n.posAtEnd:r.to;return ls>=t.top&&s<=t.bottom,Er=(s,t,e)=>Vl(t,e)&&s>=e.left&&s<=e.right;function Ff(s,t,e,i){let n=rt.find(s.docView,t);if(!n)return 1;let r=t-n.posAtStart;if(r==0)return 1;if(r==n.length)return-1;let o=n.coordsAt(r,-1);if(o&&Er(e,i,o))return-1;let l=n.coordsAt(r,1);return l&&Er(e,i,l)?1:o&&Vl(i,o)?-1:1}function Ir(s,t){let e=s.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:e,bias:Ff(s,e,t.clientX,t.clientY)}}const Hf=x.ie&&x.ie_version<=11;let Nr=null,Lr=0,Vr=0;function Fl(s){if(!Hf)return s.detail;let t=Nr,e=Vr;return Nr=s,Vr=Date.now(),Lr=!t||e>Date.now()-400&&Math.abs(t.clientX-s.clientX)<2&&Math.abs(t.clientY-s.clientY)<2?(Lr+1)%3:1}function zf(s,t){let e=Ir(s,t),i=Fl(t),n=s.state.selection;return{update(r){r.docChanged&&(e.pos=r.changes.mapPos(e.pos),n=n.map(r.changes))},get(r,o,l){let h=Ir(s,r),a=Rr(s,h.pos,h.bias,i);if(e.pos!=h.pos&&!o){let f=Rr(s,e.pos,e.bias,i),c=Math.min(f.from,a.from),u=Math.max(f.to,a.to);a=c1&&n.ranges.some(f=>f.eq(a))?Wf(n,a):l?n.addRange(a):b.create([a])}}}function Wf(s,t){for(let e=0;;e++)if(s.ranges[e].eq(t))return b.create(s.ranges.slice(0,e).concat(s.ranges.slice(e+1)),s.mainIndex==e?0:s.mainIndex-(s.mainIndex>e?1:0))}X.dragstart=(s,t)=>{let{selection:{main:e}}=s.state,{mouseSelection:i}=s.inputState;i&&(i.dragging=e),t.dataTransfer&&(t.dataTransfer.setData("Text",s.state.sliceDoc(e.from,e.to)),t.dataTransfer.effectAllowed="copyMove")};function Fr(s,t,e,i){if(!e)return;let n=s.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:r}=s.inputState,o=i&&r&&r.dragging&&r.dragMove?{from:r.dragging.from,to:r.dragging.to}:null,l={from:n,insert:e},h=s.state.changes(o?[o,l]:l);s.focus(),s.dispatch({changes:h,selection:{anchor:h.mapPos(n,-1),head:h.mapPos(n,1)},userEvent:o?"move.drop":"input.drop"})}X.drop=(s,t)=>{if(!t.dataTransfer)return;if(s.state.readOnly)return t.preventDefault();let e=t.dataTransfer.files;if(e&&e.length){t.preventDefault();let i=Array(e.length),n=0,r=()=>{++n==e.length&&Fr(s,t,i.filter(o=>o!=null).join(s.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),r()},l.readAsText(e[o])}}else Fr(s,t,t.dataTransfer.getData("Text"),!0)};X.paste=(s,t)=>{if(s.state.readOnly)return t.preventDefault();s.observer.flush();let e=Nl?null:t.clipboardData;e?(Ll(s,e.getData("text/plain")),t.preventDefault()):Vf(s)};function jf(s,t){let e=s.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=t,i.focus(),i.selectionEnd=t.length,i.selectionStart=0,setTimeout(()=>{i.remove(),s.focus()},50)}function qf(s){let t=[],e=[],i=!1;for(let n of s.selection.ranges)n.empty||(t.push(s.sliceDoc(n.from,n.to)),e.push(n));if(!t.length){let n=-1;for(let{from:r}of s.selection.ranges){let o=s.doc.lineAt(r);o.number>n&&(t.push(o.text),e.push({from:o.from,to:Math.min(s.doc.length,o.to+1)})),n=o.number}i=!0}return{text:t.join(s.lineBreak),ranges:e,linewise:i}}let ls=null;X.copy=X.cut=(s,t)=>{let{text:e,ranges:i,linewise:n}=qf(s.state);if(!e&&!n)return;ls=n?e:null;let r=Nl?null:t.clipboardData;r?(t.preventDefault(),r.clearData(),r.setData("text/plain",e)):jf(s,e),t.type=="cut"&&!s.state.readOnly&&s.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"})};function Hl(s){setTimeout(()=>{s.hasFocus!=s.inputState.notifiedFocused&&s.update([])},10)}X.focus=s=>{s.inputState.lastFocusTime=Date.now(),!s.scrollDOM.scrollTop&&(s.inputState.lastScrollTop||s.inputState.lastScrollLeft)&&(s.scrollDOM.scrollTop=s.inputState.lastScrollTop,s.scrollDOM.scrollLeft=s.inputState.lastScrollLeft),Hl(s)};X.blur=s=>{s.observer.clearSelectionRange(),Hl(s)};X.compositionstart=X.compositionupdate=s=>{s.inputState.compositionFirstChange==null&&(s.inputState.compositionFirstChange=!0),s.inputState.composing<0&&(s.inputState.composing=0)};X.compositionend=s=>{s.inputState.composing=-1,s.inputState.compositionEndedAt=Date.now(),s.inputState.compositionFirstChange=null,x.chrome&&x.android&&s.observer.flushSoon(),setTimeout(()=>{s.inputState.composing<0&&s.docView.compositionDeco.size&&s.update([])},50)};X.contextmenu=s=>{s.inputState.lastContextMenu=Date.now()};X.beforeinput=(s,t)=>{var e;let i;if(x.chrome&&x.android&&(i=El.find(n=>n.inputType==t.inputType))&&(s.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let n=((e=window.visualViewport)===null||e===void 0?void 0:e.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>n+10&&s.hasFocus&&(s.contentDOM.blur(),s.focus())},100)}};const Hr=["pre-wrap","normal","pre-line","break-spaces"];class Uf{constructor(t){this.lineWrapping=t,this.doc=N.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength)),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return Hr.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,l=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=e,this.charWidth=i,this.lineLength=n,l){this.heightSamples={};for(let h=0;h0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>Ti&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return ot.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,n){let r=this;for(let o=n.length-1;o>=0;o--){let{fromA:l,toA:h,fromB:a,toB:f}=n[o],c=r.lineAt(l,W.ByPosNoHeight,e,0,0),u=c.to>=h?c:r.lineAt(h,W.ByPosNoHeight,e,0,0);for(f+=u.to-h,h=u.to;o>0&&c.from<=n[o-1].toA;)l=n[o-1].fromA,a=n[o-1].fromB,o--,lr*2){let l=t[e-1];l.break?t.splice(--e,1,l.left,null,l.right):t.splice(--e,1,l.left,l.right),i+=1+l.break,n-=l.size}else if(r>n*2){let l=t[i];l.break?t.splice(i,1,l.left,null,l.right):t.splice(i,1,l.left,l.right),i+=2+l.break,r-=l.size}else break;else if(n=r&&o(this.blockAt(0,i,n,r))}updateHeight(t,e=0,i=!1,n){return n&&n.from<=e&&n.more&&this.setHeight(t,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class dt extends zl{constructor(t,e){super(t,e,G.Text),this.collapsed=0,this.widgetHeight=0}replace(t,e,i){let n=i[0];return i.length==1&&(n instanceof dt||n instanceof Z&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof Z?n=new dt(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):ot.of(i)}updateHeight(t,e=0,i=!1,n){return n&&n.from<=e&&n.more?this.setHeight(t,n.heights[n.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Z extends ot{constructor(t){super(t,0)}lines(t,e){let i=t.lineAt(e).number,n=t.lineAt(e+this.length).number;return{firstLine:i,lastLine:n,lineHeight:this.height/(n-i+1)}}blockAt(t,e,i,n){let{firstLine:r,lastLine:o,lineHeight:l}=this.lines(e,n),h=Math.max(0,Math.min(o-r,Math.floor((t-i)/l))),{from:a,length:f}=e.line(r+h);return new Yt(a,f,i+l*h,l,G.Text)}lineAt(t,e,i,n,r){if(e==W.ByHeight)return this.blockAt(t,i,n,r);if(e==W.ByPosNoHeight){let{from:c,to:u}=i.lineAt(t);return new Yt(c,u-c,0,0,G.Text)}let{firstLine:o,lineHeight:l}=this.lines(i,r),{from:h,length:a,number:f}=i.lineAt(t);return new Yt(h,a,n+l*(f-o),l,G.Text)}forEachLine(t,e,i,n,r,o){let{firstLine:l,lineHeight:h}=this.lines(i,r);for(let a=Math.max(t,r),f=Math.min(r+this.length,e);a<=f;){let c=i.lineAt(a);a==t&&(n+=h*(c.number-l)),o(new Yt(c.from,c.length,n,h,G.Text)),n+=h,a=c.to+1}}replace(t,e,i){let n=this.length-e;if(n>0){let r=i[i.length-1];r instanceof Z?i[i.length-1]=new Z(r.length+n):i.push(null,new Z(n-1))}if(t>0){let r=i[0];r instanceof Z?i[0]=new Z(t+r.length):i.unshift(new Z(t-1),null)}return ot.of(i)}decomposeLeft(t,e){e.push(new Z(t-1),null)}decomposeRight(t,e){e.push(null,new Z(this.length-t-1))}updateHeight(t,e=0,i=!1,n){let r=e+this.length;if(n&&n.from<=e+this.length&&n.more){let o=[],l=Math.max(e,n.from),h=-1,a=t.heightChanged;for(n.from>e&&o.push(new Z(n.from-e-1).updateHeight(t,e));l<=r&&n.more;){let c=t.doc.lineAt(l).length;o.length&&o.push(null);let u=n.heights[n.index++];h==-1?h=u:Math.abs(u-h)>=Ti&&(h=-2);let d=new dt(c,u);d.outdated=!1,o.push(d),l+=c+1}l<=r&&o.push(null,new Z(r-l).updateHeight(t,l));let f=ot.of(o);return t.heightChanged=a||h<0||Math.abs(f.height-this.height)>=Ti||Math.abs(h-this.lines(t.doc,e).lineHeight)>=Ti,f}else(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Gf extends ot{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return this.flags&1}blockAt(t,e,i,n){let r=i+this.left.height;return tl))return a;let f=e==W.ByPosNoHeight?W.ByPosNoHeight:W.ByPos;return h?a.join(this.right.lineAt(l,f,i,o,l)):this.left.lineAt(l,f,i,n,r).join(a)}forEachLine(t,e,i,n,r,o){let l=n+this.left.height,h=r+this.left.length+this.break;if(this.break)t=h&&this.right.forEachLine(t,e,i,l,h,o);else{let a=this.lineAt(h,W.ByPos,i,n,r);t=t&&a.from<=e&&o(a),e>a.to&&this.right.forEachLine(a.to+1,e,i,l,h,o)}}replace(t,e,i){let n=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-n,e-n,i));let r=[];t>0&&this.decomposeLeft(t,r);let o=r.length;for(let l of i)r.push(l);if(t>0&&zr(r,o-1),e=i&&e.push(null)),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,n=i+this.break;if(t>=n)return this.right.decomposeRight(t-n,e);t2*e.size||e.size>2*t.size?ot.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,n){let{left:r,right:o}=this,l=e+r.length+this.break,h=null;return n&&n.from<=e+r.length&&n.more?h=r=r.updateHeight(t,e,i,n):r.updateHeight(t,e,i),n&&n.from<=l+o.length&&n.more?h=o=o.updateHeight(t,l,i,n):o.updateHeight(t,l,i),h?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function zr(s,t){let e,i;s[t]==null&&(e=s[t-1])instanceof Z&&(i=s[t+1])instanceof Z&&s.splice(t-1,3,new Z(e.length+1+i.length))}const Qf=5;class Ps{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let i=Math.min(e,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof dt?n.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new dt(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=Qf)&&this.addLineDeco(n,r)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new dt(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new Z(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof dt)return t;let e=new dt(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine(),t.type==G.WidgetAfter&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,t.type!=G.WidgetBefore&&(this.covering=t)}addLineDeco(t,e){let i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,t),this.writtenTo=this.pos=this.pos+e}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(e instanceof dt)&&!this.isCovered?this.nodes.push(new dt(0,-1)):(this.writtenTof.clientHeight||f.scrollWidth>f.clientWidth)&&c.overflow!="visible"){let u=f.getBoundingClientRect();r=Math.max(r,u.left),o=Math.min(o,u.right),l=Math.max(l,u.top),h=a==s.parentNode?u.bottom:Math.min(h,u.bottom)}a=c.position=="absolute"||c.position=="fixed"?f.offsetParent:f.parentNode}else if(a.nodeType==11)a=a.host;else break;return{left:r-e.left,right:Math.max(r,o)-e.left,top:l-(e.top+t),bottom:Math.max(l,h)-(e.top+t)}}function Xf(s,t){let e=s.getBoundingClientRect();return{left:0,right:e.right-e.left,top:t,bottom:e.bottom-(e.top+t)}}class kn{constructor(t,e,i){this.from=t,this.to=e,this.size=i}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Uf(e),this.stateDeco=t.facet(Ze).filter(i=>typeof i!="function"),this.heightMap=ot.empty().applyChanges(this.stateDeco,N.empty,this.heightOracle.setDoc(t.doc),[new Vt(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=H.set(this.lineGaps.map(i=>i.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let n=i?e.head:e.anchor;if(!t.some(({from:r,to:o})=>n>=r&&n<=o)){let{from:r,to:o}=this.lineBlockAt(n);t.push(new fi(r,o))}}this.viewports=t.sort((i,n)=>i.from-n.from),this.scaler=this.heightMap.height<=7e6?jr:new ec(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:Ue(t,this.scaler))})}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ze).filter(a=>typeof a!="function");let n=t.changedRanges,r=Vt.extendWithRanges(n,Jf(i,this.stateDeco,t?t.changes:J.empty(this.state.doc.length))),o=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=o&&(t.flags|=2);let l=r.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,e));let h=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),h&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(lf)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),n=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?_.RTL:_.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),l=o||this.mustMeasureContent||this.contentDOMHeight!=e.clientHeight;this.contentDOMHeight=e.clientHeight,this.mustMeasureContent=!1;let h=0,a=0,f=parseInt(i.paddingTop)||0,c=parseInt(i.paddingBottom)||0;(this.paddingTop!=f||this.paddingBottom!=c)&&(this.paddingTop=f,this.paddingBottom=c,h|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(n.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,h|=8);let u=(this.printing?Xf:_f)(e,this.paddingTop),d=u.top-this.pixelViewport.top,p=u.bottom-this.pixelViewport.bottom;this.pixelViewport=u;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let g=e.clientWidth;if((this.contentDOMWidth!=g||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=g,this.editorHeight=t.scrollDOM.clientHeight,h|=8),l){let k=t.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(k)&&(o=!0),o||n.lineWrapping&&Math.abs(g-this.contentDOMWidth)>n.charWidth){let{lineHeight:A,charWidth:T}=t.docView.measureTextSize();o=A>0&&n.refresh(r,A,T,g/T,k),o&&(t.docView.minWidth=0,h|=8)}d>0&&p>0?a=Math.max(d,p):d<0&&p<0&&(a=Math.min(d,p)),n.heightChanged=!1;for(let A of this.viewports){let T=A.from==this.viewport.from?k:t.docView.measureVisibleLineHeights(A);this.heightMap=(o?ot.empty().applyChanges(this.stateDeco,N.empty,this.heightOracle,[new Vt(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(n,0,o,new Kf(A.from,T))}n.heightChanged&&(h|=2)}let y=!this.viewportIsAppropriate(this.viewport,a)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return y&&(this.viewport=this.getViewport(a,this.scrollTarget)),this.updateForViewport(),(h&2||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,t)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),n=this.heightMap,r=this.state.doc,{visibleTop:o,visibleBottom:l}=this,h=new fi(n.lineAt(o-i*1e3,W.ByHeight,r,0,0).from,n.lineAt(l+(1-i)*1e3,W.ByHeight,r,0,0).to);if(e){let{head:a}=e.range;if(ah.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),c=n.lineAt(a,W.ByPos,r,0,0),u;e.y=="center"?u=(c.top+c.bottom)/2-f/2:e.y=="start"||e.y=="nearest"&&a=l+Math.max(10,Math.min(i,250)))&&n>o-2*1e3&&r>1,o=n<<1;if(this.defaultTextDirection!=_.LTR&&!i)return[];let l=[],h=(a,f,c,u)=>{if(f-aa&&gg.from>=c.from&&g.to<=c.to&&Math.abs(g.from-a)g.fromy));if(!m){if(fg.from<=f&&g.to>=f)){let g=e.moveToLineBoundary(b.cursor(f),!1,!0).head;g>a&&(f=g)}m=new kn(a,f,this.gapSize(c,a,f,u))}l.push(m)};for(let a of this.viewportLines){if(a.lengtha.from&&h(a.from,u,a,f),de.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];L.spans(t,this.viewport.from,this.viewport.to,{span(n,r){e.push({from:n,to:r})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some((n,r)=>n.from!=e[r].from||n.to!=e[r].to);return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||Ue(this.heightMap.lineAt(t,W.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(t){return Ue(this.heightMap.lineAt(this.scaler.fromDOM(t),W.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(t){return Ue(this.heightMap.blockAt(this.scaler.fromDOM(t),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class fi{constructor(t,e){this.from=t,this.to=e}}function Zf(s,t,e){let i=[],n=s,r=0;return L.spans(e,s,t,{span(){},point(o,l){o>n&&(i.push({from:n,to:o}),r+=o-n),n=l}},20),n=1)return t[t.length-1].to;let i=Math.floor(s*e);for(let n=0;;n++){let{from:r,to:o}=t[n],l=o-r;if(i<=l)return r+i;i-=l}}function ui(s,t){let e=0;for(let{from:i,to:n}of s.ranges){if(t<=n){e+=t-i;break}e+=n-i}return e/s.total}function tc(s,t){for(let e of s)if(t(e))return e}const jr={toDOM(s){return s},fromDOM(s){return s},scale:1};class ec{constructor(t,e,i){let n=0,r=0,o=0;this.viewports=i.map(({from:l,to:h})=>{let a=e.lineAt(l,W.ByPos,t,0,0).top,f=e.lineAt(h,W.ByPos,t,0,0).bottom;return n+=f-a,{from:l,to:h,top:a,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(e.height-n);for(let l of this.viewports)l.domTop=o+(l.top-r)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),r=l.bottom}toDOM(t){for(let e=0,i=0,n=0;;e++){let r=eUe(n,t)):s.type)}const di=M.define({combine:s=>s.join(" ")}),hs=M.define({combine:s=>s.indexOf(!0)>-1}),as=ee.newName(),Wl=ee.newName(),jl=ee.newName(),ql={"&light":"."+Wl,"&dark":"."+jl};function fs(s,t,e){return new ee(t,{finish(i){return/&/.test(i)?i.replace(/&\w*/,n=>{if(n=="&")return s;if(!e||!e[n])throw new RangeError(`Unsupported selector: ${n}`);return e[n]}):s+" "+i}})}const ic=fs("."+as,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ql);class nc{constructor(t,e,i,n){this.typeOver=n,this.bounds=null,this.text="";let{impreciseHead:r,impreciseAnchor:o}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let l=r||o?[]:rc(t),h=new Dl(l,t.state);h.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=h.text,this.newSel=oc(l,this.bounds.from)}else{let l=t.observer.selectionRange,h=r&&r.node==l.focusNode&&r.offset==l.focusOffset||!Te(t.contentDOM,l.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(l.focusNode,l.focusOffset),a=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!Te(t.contentDOM,l.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(l.anchorNode,l.anchorOffset);this.newSel=b.single(a,h)}}}function Ul(s,t){let e,{newSel:i}=t,n=s.state.selection.main;if(t.bounds){let{from:r,to:o}=t.bounds,l=n.from,h=null;(s.inputState.lastKeyCode===8&&s.inputState.lastKeyTime>Date.now()-100||x.android&&t.text.length=n.from&&e.to<=n.to&&(e.from!=n.from||e.to!=n.to)&&n.to-n.from-(e.to-e.from)<=4?e={from:n.from,to:n.to,insert:s.state.doc.slice(n.from,e.from).append(e.insert).append(s.state.doc.slice(e.to,n.to))}:(x.mac||x.android)&&e&&e.from==e.to&&e.from==n.head-1&&/^\. ?$/.test(e.insert.toString())?(i&&e.insert.length==2&&(i=b.single(i.main.anchor-1,i.main.head-1)),e={from:n.from,to:n.to,insert:N.of([" "])}):x.chrome&&e&&e.from==e.to&&e.from==n.head&&e.insert.toString()==` - `&&s.lineWrapping&&(i&&(i=b.single(i.main.anchor-1,i.main.head-1)),e={from:n.from,to:n.to,insert:N.of([" "])}),e){let r=s.state;if(x.ios&&s.inputState.flushIOSKey(s)||x.android&&(e.from==n.from&&e.to==n.to&&e.insert.length==1&&e.insert.lines==2&&Ce(s.contentDOM,"Enter",13)||e.from==n.from-1&&e.to==n.to&&e.insert.length==0&&Ce(s.contentDOM,"Backspace",8)||e.from==n.from&&e.to==n.to+1&&e.insert.length==0&&Ce(s.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();if(s.state.facet(xl).some(a=>a(s,e.from,e.to,o)))return!0;s.inputState.composing>=0&&s.inputState.composing++;let l;if(e.from>=n.from&&e.to<=n.to&&e.to-e.from>=(n.to-n.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&s.inputState.composing<0){let a=n.frome.to?r.sliceDoc(e.to,n.to):"";l=r.replaceSelection(s.state.toText(a+e.insert.sliceString(0,void 0,s.state.lineBreak)+f))}else{let a=r.changes(e),f=i&&!r.selection.main.eq(i.main)&&i.main.to<=a.newLength?i.main:void 0;if(r.selection.ranges.length>1&&s.inputState.composing>=0&&e.to<=n.to&&e.to>=n.to-10){let c=s.state.sliceDoc(e.from,e.to),u=Pl(s)||s.state.doc.lineAt(n.head),d=n.to-e.to,p=n.to-n.from;l=r.changeByRange(m=>{if(m.from==n.from&&m.to==n.to)return{changes:a,range:f||m.map(a)};let g=m.to-d,y=g-c.length;if(m.to-m.from!=p||s.state.sliceDoc(y,g)!=c||u&&m.to>=u.from&&m.from<=u.to)return{range:m};let k=r.changes({from:y,to:g,insert:e.insert}),A=m.to-n.to;return{changes:k,range:f?b.range(Math.max(0,f.anchor+A),Math.max(0,f.head+A)):m.map(k)}})}else l={changes:a,selection:f&&r.selection.replaceRange(f)}}let h="input.type";return s.composing&&(h+=".compose",s.inputState.compositionFirstChange&&(h+=".start",s.inputState.compositionFirstChange=!1)),s.dispatch(l,{scrollIntoView:!0,userEvent:h}),!0}else if(i&&!i.main.eq(n)){let r=!1,o="select";return s.inputState.lastSelectionTime>Date.now()-50&&(s.inputState.lastSelectionOrigin=="select"&&(r=!0),o=s.inputState.lastSelectionOrigin),s.dispatch({selection:i,scrollIntoView:r,userEvent:o}),!0}else return!1}function sc(s,t,e,i){let n=Math.min(s.length,t.length),r=0;for(;r0&&l>0&&s.charCodeAt(o-1)==t.charCodeAt(l-1);)o--,l--;if(i=="end"){let h=Math.max(0,r-Math.min(o,l));e-=o+h-r}if(o=o?r-e:0;r-=h,l=r+(l-o),o=r}else if(l=l?r-e:0;r-=h,o=r+(o-l),l=r}return{from:r,toA:o,toB:l}}function rc(s){let t=[];if(s.root.activeElement!=s.contentDOM)return t;let{anchorNode:e,anchorOffset:i,focusNode:n,focusOffset:r}=s.observer.selectionRange;return e&&(t.push(new vr(e,i)),(n!=e||r!=i)&&t.push(new vr(n,r))),t}function oc(s,t){if(s.length==0)return null;let e=s[0].pos,i=s.length==2?s[1].pos:e;return e>-1&&i>-1?b.single(e+t,i+t):null}const lc={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},xn=x.ie&&x.ie_version<=11;class hc{constructor(t){this.view=t,this.active=!1,this.selectionRange=new Za,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let i of e)this.queue.push(i);(x.ie&&x.ie_version<=11||x.ios&&t.composing)&&e.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),xn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var e;((e=this.view.docView)===null||e===void 0?void 0:e.lastUpdate)this.view.requestMeasure()),this.resizeContent.observe(t.contentDOM)),this.addWindowListeners(this.win=t.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runScrollHandlers(this.view,t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,n=this.selectionRange;if(i.state.facet(on)?i.root.activeElement!=this.dom:!Mi(i.dom,n))return;let r=n.anchorNode&&i.docView.nearest(n.anchorNode);if(r&&r.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(x.ie&&x.ie_version<=11||x.android&&x.chrome)&&!i.state.selection.main.empty&&n.focusNode&&Ni(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=x.safari&&t.root.nodeType==11&&$a(this.dom.ownerDocument)==this.dom&&ac(this.view)||Ii(t.root);if(!e||this.selectionRange.eq(e))return!1;let i=Mi(this.dom,e);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),!this.flush()&&r.force&&Ce(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let t=this.queue;for(let r of this.observer.takeRecords())t.push(r);t.length&&(this.queue=[]);let e=-1,i=-1,n=!1;for(let r of t){let o=this.readMutation(r);o&&(o.typeOver&&(n=!0),e==-1?{from:e,to:i}=o:(e=Math.min(o.from,e),i=Math.max(o.to,i)))}return{from:e,to:i,typeOver:n}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),n=this.selectionChanged&&Mi(this.dom,this.selectionRange);return t<0&&!n?null:(t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new nc(this.view,t,e,i))}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return!1;let i=this.view.state,n=Ul(this.view,e);return this.view.state==i&&this.view.update([]),n}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty(t.type=="attributes"),t.type=="attributes"&&(e.dirty|=4),t.type=="childList"){let i=qr(e,t.previousSibling||t.target.previousSibling,-1),n=qr(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:n?e.posBefore(n):e.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i,n;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(e=this.gapIntersection)===null||e===void 0||e.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect(),(n=this.resizeContent)===null||n===void 0||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function qr(s,t,e){for(;t;){let i=j.get(t);if(i&&i.parent==s)return i;let n=t.parentNode;t=n!=s.dom?n:e>0?t.nextSibling:t.previousSibling}return null}function ac(s){let t=null;function e(h){h.preventDefault(),h.stopImmediatePropagation(),t=h.getTargetRanges()[0]}if(s.contentDOM.addEventListener("beforeinput",e,!0),s.dom.ownerDocument.execCommand("indent"),s.contentDOM.removeEventListener("beforeinput",e,!0),!t)return null;let i=t.startContainer,n=t.startOffset,r=t.endContainer,o=t.endOffset,l=s.docView.domAtPos(s.state.selection.main.anchor);return Ni(l.node,l.offset,r,o)&&([i,n,r,o]=[r,o,i,n]),{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:o}}class D{constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=t.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this._root=t.root||tf(t.parent)||document,this.viewState=new Wr(t.state||E.create(t)),this.plugins=this.state.facet(je).map(e=>new yn(e));for(let e of this.plugins)e.update(this);this.observer=new hc(this),this.inputState=new Bf(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Cr(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),t.parent&&t.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...t){this._dispatch(t.length==1&&t[0]instanceof $?t[0]:this.state.update(...t))}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,i=!1,n,r=this.state;for(let a of t){if(a.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=a.state}if(this.destroyed){this.viewState.state=r;return}let o=this.observer.delayedAndroidKey,l=null;if(o?(this.observer.clearDelayedAndroidKey(),l=this.observer.readChange(),(l&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(l=null)):this.observer.clear(),r.facet(E.phrases)!=this.state.facet(E.phrases))return this.setState(r);n=Fi.create(this,r,t);let h=this.viewState.scrollTarget;try{this.updateState=2;for(let a of t){if(h&&(h=h.map(a.changes)),a.scrollIntoView){let{main:f}=a.state.selection;h=new Vi(f.empty?f:b.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of a.effects)f.is(xr)&&(h=f.value)}this.viewState.update(n,h),this.bidiCache=Hi.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),e=this.docView.update(n),this.state.facet(qe)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(a=>a.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(di)!=n.state.facet(di)&&(this.viewState.mustMeasureContent=!0),(e||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!n.empty)for(let a of this.state.facet(is))a(n);l&&!Ul(this,l)&&o.force&&Ce(this.contentDOM,o.key,o.keyCode)}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new Wr(t),this.plugins=t.facet(je).map(i=>new yn(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView=new Cr(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(je),i=t.state.facet(je);if(e!=i){let n=[];for(let r of i){let o=e.indexOf(r);if(o<0)n.push(new yn(r));else{let l=this.plugins[o];l.mustUpdate=t,n.push(l)}}for(let r of this.plugins)r.mustUpdate!=t&&r.destroy(this);this.plugins=n,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let n of this.plugins)n.mustUpdate=t;for(let n=0;n-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,{scrollHeight:i,scrollTop:n,clientHeight:r}=this.scrollDOM,o=n>i-r-4?i:n;try{for(let l=0;;l++){this.updateState=1;let h=this.viewport,a=this.viewState.lineBlockAtHeight(o),f=this.viewState.measure(this);if(!f&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];f&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(g=>{try{return g.read(this)}catch(y){return Mt(this.state,y),Ur}}),d=Fi.create(this,this.state,[]),p=!1,m=!1;d.flags|=f,e?e.flags|=f:e=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),p=this.docView.update(d));for(let g=0;g1||g<-1)&&(this.scrollDOM.scrollTop+=g,m=!0)}if(p&&this.docView.updateSelection(!0),this.viewport.from==h.from&&this.viewport.to==h.to&&!m&&this.measureRequests.length==0)break}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let l of this.state.facet(is))l(e)}get themeClasses(){return as+" "+(this.state.facet(hs)?jl:Wl)+" "+this.state.facet(di)}updateAttrs(){let t=Kr(this,vl,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(on)?"true":"false",class:"cm-content",style:`${x.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),Kr(this,Ds,e);let i=this.observer.ignore(()=>{let n=ts(this.contentDOM,this.contentAttrs,e),r=ts(this.dom,this.editorAttrs,t);return n||r});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let n of i.effects)if(n.is(D.announce)){e&&(this.announceDOM.textContent=""),e=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(qe),ee.mount(this.root,this.styleModules.concat(ic).reverse())}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let e=0;ei.spec==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return wn(this,t,Pr(this,t,e,i))}moveByGroup(t,e){return wn(this,t,Pr(this,t,e,i=>Df(this,t.head,i)))}moveToLineBoundary(t,e,i=!0){return Tf(this,t,e,i)}moveVertically(t,e,i){return wn(this,t,Pf(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){return this.readMeasured(),Rl(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let n=this.state.doc.lineAt(t),r=this.bidiSpans(n),o=r[Ae.find(r,t-n.from,-1,e)];return As(i,o.dir==_.LTR==e>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(Sl)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>fc)return Ml(t.length);let e=this.textDirectionAt(t.from);for(let n of this.bidiCache)if(n.from==t.from&&n.dir==e)return n.order;let i=pf(t.text,e);return this.bidiCache.push(new Hi(t.from,t.to,e,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||x.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{sl(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return xr.of(new Vi(typeof t=="number"?b.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}static domEventHandlers(t){return Ht.define(()=>({}),{eventHandlers:t})}static theme(t,e){let i=ee.newName(),n=[di.of(i),qe.of(fs(`.${i}`,t))];return e&&e.dark&&n.push(hs.of(!0)),n}static baseTheme(t){return tn.lowest(qe.of(fs("."+as,t,ql)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),n=i&&j.get(i)||j.get(t);return((e=n==null?void 0:n.rootView)===null||e===void 0?void 0:e.view)||null}}D.styleModule=qe;D.inputHandler=xl;D.perLineTextDirection=Sl;D.exceptionSink=kl;D.updateListener=is;D.editable=on;D.mouseSelectionStyle=wl;D.dragMovesSelection=bl;D.clickAddsSelectionRange=yl;D.decorations=Ze;D.atomicRanges=Cl;D.scrollMargins=Al;D.darkTheme=hs;D.contentAttributes=Ds;D.editorAttributes=vl;D.lineWrapping=D.contentAttributes.of({class:"cm-lineWrapping"});D.announce=V.define();const fc=4096,Ur={};class Hi{constructor(t,e,i,n){this.from=t,this.to=e,this.dir=i,this.order=n}static update(t,e){if(e.empty)return t;let i=[],n=t.length?t[t.length-1].dir:_.LTR;for(let r=Math.max(0,t.length-10);r=0;n--){let r=i[n],o=typeof r=="function"?r(s):r;o&&Zn(o,e)}return e}const cc=x.mac?"mac":x.windows?"win":x.linux?"linux":"key";function uc(s,t){const e=s.split(/-(?!$)/);let i=e[e.length-1];i=="Space"&&(i=" ");let n,r,o,l;for(let h=0;hi.concat(n),[]))),e}let Jt=null;const gc=4e3;function mc(s,t=cc){let e=Object.create(null),i=Object.create(null),n=(o,l)=>{let h=i[o];if(h==null)i[o]=l;else if(h!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,l,h,a)=>{var f,c;let u=e[o]||(e[o]=Object.create(null)),d=l.split(/ (?!$)/).map(g=>uc(g,t));for(let g=1;g{let A=Jt={view:k,prefix:y,scope:o};return setTimeout(()=>{Jt==A&&(Jt=null)},gc),!0}]})}let p=d.join(" ");n(p,!1);let m=u[p]||(u[p]={preventDefault:!1,run:((c=(f=u._any)===null||f===void 0?void 0:f.run)===null||c===void 0?void 0:c.slice())||[]});h&&m.run.push(h),a&&(m.preventDefault=!0)};for(let o of s){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let a of l){let f=e[a]||(e[a]=Object.create(null));f._any||(f._any={preventDefault:!1,run:[]});for(let c in f)f[c].run.push(o.any)}let h=o[t]||o.key;if(h)for(let a of l)r(a,h,o.run,o.preventDefault),o.shift&&r(a,"Shift-"+h,o.shift,o.preventDefault)}return e}function yc(s,t,e,i){let n=Ja(t),r=pt(n,0),o=Ot(r)==n.length&&n!=" ",l="",h=!1;Jt&&Jt.view==e&&Jt.scope==i&&(l=Jt.prefix+" ",(h=Il.indexOf(t.keyCode)<0)&&(Jt=null));let a=new Set,f=p=>{if(p){for(let m of p.run)if(!a.has(m)&&(a.add(m),m(e,t)))return!0;p.preventDefault&&(h=!0)}return!1},c=s[i],u,d;if(c){if(f(c[l+pi(n,t,!o)]))return!0;if(o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(x.windows&&t.ctrlKey&&t.altKey)&&(u=ie[t.keyCode])&&u!=n){if(f(c[l+pi(u,t,!0)]))return!0;if(t.shiftKey&&(d=_e[t.keyCode])!=n&&d!=u&&f(c[l+pi(d,t,!1)]))return!0}else if(o&&t.shiftKey&&f(c[l+pi(n,t,!0)]))return!0;if(f(c._any))return!0}return h}const bc=!x.ios,wc={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};bc&&(wc[".cm-line"].caretColor="transparent !important");const gi="-10000px";class kc{constructor(t,e,i){this.facet=e,this.createTooltipView=i,this.input=t.state.facet(e),this.tooltips=this.input.filter(n=>n),this.tooltipViews=this.tooltips.map(i)}update(t){var e;let i=t.state.facet(this.facet),n=i.filter(o=>o);if(i===this.input){for(let o of this.tooltipViews)o.update&&o.update(t);return!1}let r=[];for(let o=0;o{var t,e,i;return{position:x.ios?"absolute":((t=s.find(n=>n.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((e=s.find(n=>n.parent))===null||e===void 0?void 0:e.parent)||null,tooltipSpace:((i=s.find(n=>n.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||xc}}}),Kl=Ht.fromClass(class{constructor(s){this.view=s,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let t=s.state.facet(Sn);this.position=t.position,this.parent=t.parent,this.classes=s.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new kc(s,Gl,e=>this.createTooltip(e)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),s.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let s of this.manager.tooltipViews)this.intersectionObserver.observe(s.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(s){s.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(s);t&&this.observeIntersection();let e=t||s.geometryChanged,i=s.state.facet(Sn);if(i.position!=this.position){this.position=i.position;for(let n of this.manager.tooltipViews)n.dom.style.position=this.position;e=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let n of this.manager.tooltipViews)this.container.appendChild(n.dom);e=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);e&&this.maybeMeasure()}createTooltip(s){let t=s.create(this.view);if(t.dom.classList.add("cm-tooltip"),s.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=gi,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var s,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let e of this.manager.tooltipViews)e.dom.remove(),(s=e.destroy)===null||s===void 0||s.call(e);(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let s=this.view.dom.getBoundingClientRect();return{editor:s,parent:this.parent?this.container.getBoundingClientRect():s,pos:this.manager.tooltips.map((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)}),size:this.manager.tooltipViews.map(({dom:t})=>t.getBoundingClientRect()),space:this.view.state.facet(Sn).tooltipSpace(this.view)}}writeMeasure(s){let{editor:t,space:e}=s,i=[];for(let n=0;n=Math.min(t.bottom,e.bottom)||h.rightMath.min(t.right,e.right)+.1){l.style.top=gi;continue}let f=r.arrow?o.dom.querySelector(".cm-tooltip-arrow"):null,c=f?7:0,u=a.right-a.left,d=a.bottom-a.top,p=o.offset||vc,m=this.view.textDirection==_.LTR,g=a.width>e.right-e.left?m?e.left:e.right-a.width:m?Math.min(h.left-(f?14:0)+p.x,e.right-u):Math.max(e.left,h.left-u+(f?14:0)-p.x),y=!!r.above;!r.strictSide&&(y?h.top-(a.bottom-a.top)-p.ye.bottom)&&y==e.bottom-h.bottom>h.top-e.top&&(y=!y);let k=(y?h.top-e.top:e.bottom-h.bottom)-c;if(kg&&S.topA&&(A=y?S.top-d-2-c:S.bottom+c+2);this.position=="absolute"?(l.style.top=A-s.parent.top+"px",l.style.left=g-s.parent.left+"px"):(l.style.top=A+"px",l.style.left=g+"px"),f&&(f.style.left=`${h.left+(m?p.x:-p.x)-(g+14-7)}px`),o.overlap!==!0&&i.push({left:g,top:A,right:T,bottom:A+d}),l.classList.toggle("cm-tooltip-above",y),l.classList.toggle("cm-tooltip-below",!y),o.positioned&&o.positioned(s.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let s of this.manager.tooltipViews)s.dom.style.top=gi}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),Sc=D.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),vc={x:0,y:0},Gl=M.define({enables:[Kl,Sc]});function Cc(s,t){let e=s.plugin(Kl);if(!e)return null;let i=e.manager.tooltips.indexOf(t);return i<0?null:e.manager.tooltipViews[i]}class me extends pe{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}me.prototype.elementClass="";me.prototype.toDOM=void 0;me.prototype.mapMode=ft.TrackBefore;me.prototype.startSide=me.prototype.endSide=-1;me.prototype.point=!0;const vn=M.define(),Ac={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>L.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Di=M.define();function Oc(s){return[Mc(),Di.of(Object.assign(Object.assign({},Ac),s))]}const cs=M.define({combine:s=>s.some(t=>t)});function Mc(s){let t=[Tc];return s&&s.fixed===!1&&t.push(cs.of(!0)),t}const Tc=Ht.fromClass(class{constructor(s){this.view=s,this.prevViewport=s.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=s.state.facet(Di).map(t=>new Jr(s,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!s.state.facet(cs),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),s.scrollDOM.insertBefore(this.dom,s.contentDOM)}update(s){if(this.updateGutters(s)){let t=this.prevViewport,e=s.view.viewport,i=Math.min(t.to,e.to)-Math.max(t.from,e.from);this.syncGutters(i<(e.to-e.from)*.8)}s.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(cs)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=s.view.viewport}syncGutters(s){let t=this.dom.nextSibling;s&&this.dom.remove();let e=L.iter(this.view.state.facet(vn),this.view.viewport.from),i=[],n=this.gutters.map(r=>new Dc(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks){let o;if(Array.isArray(r.type)){for(let l of r.type)if(l.type==G.Text){o=l;break}}else o=r.type==G.Text?r:void 0;if(o){i.length&&(i=[]),Ql(e,i,r.from);for(let l of n)l.line(this.view,o,i)}}for(let r of n)r.finish();s&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(s){let t=s.startState.facet(Di),e=s.state.facet(Di),i=s.docChanged||s.heightChanged||s.viewportChanged||!L.eq(s.startState.facet(vn),s.state.facet(vn),s.view.viewport.from,s.view.viewport.to);if(t==e)for(let n of this.gutters)n.update(s)&&(i=!0);else{i=!0;let n=[];for(let r of e){let o=t.indexOf(r);o<0?n.push(new Jr(this.view,r)):(this.gutters[o].update(s),n.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),n.indexOf(r)<0&&r.destroy();for(let r of n)this.dom.appendChild(r.dom);this.gutters=n}return i}destroy(){for(let s of this.gutters)s.destroy();this.dom.remove()}},{provide:s=>D.scrollMargins.of(t=>{let e=t.plugin(s);return!e||e.gutters.length==0||!e.fixed?null:t.textDirection==_.LTR?{left:e.dom.offsetWidth}:{right:e.dom.offsetWidth}})});function Qr(s){return Array.isArray(s)?s:[s]}function Ql(s,t,e){for(;s.value&&s.from<=e;)s.from==e&&t.push(s.value),s.next()}class Dc{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=L.iter(t.markers,e.from)}line(t,e,i){let n=[];Ql(this.cursor,n,e.from),i.length&&(n=n.concat(i));let r=this.gutter.config.lineMarker(t,e,n);r&&n.unshift(r);let o=this.gutter;if(n.length==0&&!o.config.renderEmptyElements)return;let l=e.top-this.height;if(this.i==o.elements.length){let h=new Jl(t,e.height,l,n);o.elements.push(h),o.dom.appendChild(h.dom)}else o.elements[this.i].update(t,e.height,l,n);this.height=e.bottom,this.i++}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class Jr{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers)this.dom.addEventListener(i,n=>{let r=n.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let h=r.getBoundingClientRect();o=(h.top+h.bottom)/2}else o=n.clientY;let l=t.lineBlockAtHeight(o-t.documentTop);e.domEventHandlers[i](t,l,n)&&n.preventDefault()});this.markers=Qr(e.markers(t)),e.initialSpacer&&(this.spacer=new Jl(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=Qr(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],t);n!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[n])}let i=t.view.viewport;return!L.eq(this.markers,e,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class Jl{constructor(t,e,i,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,n)}update(t,e,i,n){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),Pc(this.markers,n)||this.setMarkers(t,n)}setMarkers(t,e){let i="cm-gutterElement",n=this.dom.firstChild;for(let r=0,o=0;;){let l=o,h=r{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=lt.match(t)),e=>{let i=t(e);return i===void 0?null:[this,i]}}}R.closedBy=new R({deserialize:s=>s.split(" ")});R.openedBy=new R({deserialize:s=>s.split(" ")});R.group=new R({deserialize:s=>s.split(" ")});R.contextHash=new R({perNode:!0});R.lookAhead=new R({perNode:!0});R.mounted=new R({perNode:!0});const Rc=Object.create(null);class lt{constructor(t,e,i,n=0){this.name=t,this.props=e,this.id=i,this.flags=n}static define(t){let e=t.props&&t.props.length?Object.create(null):Rc,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),n=new lt(t.name||"",e,t.id,i);if(t.props){for(let r of t.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1]}}return n}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let e=this.prop(R.group);return e?e.indexOf(t)>-1:!1}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let n of i.split(" "))e[n]=t[i];return i=>{for(let n=i.prop(R.group),r=-1;r<(n?n.length:0);r++){let o=e[r<0?i.name:n[r]];if(o)return o}}}}lt.none=new lt("",Object.create(null),0,8);class ln{constructor(t){this.types=t;for(let e=0;e=n&&(o.type.isAnonymous||e(o)!==!1)){if(o.firstChild())continue;l=!0}for(;l&&i&&!o.type.isAnonymous&&i(o),!o.nextSibling();){if(!o.parent())return;l=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:Is(lt.none,this.children,this.positions,0,this.children.length,0,this.length,(e,i,n)=>new F(this.type,e,i,n,this.propValues),t.makeTree||((e,i,n)=>new F(lt.none,e,i,n)))}static build(t){return Ic(t)}}F.empty=new F(lt.none,[],[],0);class Rs{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Rs(this.buffer,this.index)}}class ye{constructor(t,e,i){this.buffer=t,this.length=e,this.set=i}get type(){return lt.none}toString(){let t=[];for(let e=0;e0));h=o[h+3]);return l}slice(t,e,i){let n=this.buffer,r=new Uint16Array(e-t),o=0;for(let l=t,h=0;l=t&&et;case 1:return e<=t&&i>t;case 2:return i>t;case 4:return!0}}function Xl(s,t){let e=s.childBefore(t);for(;e;){let i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(s=e,e=i.prevSibling):e=i}return s}function Be(s,t,e,i){for(var n;s.from==s.to||(e<1?s.from>=t:s.from>t)||(e>-1?s.to<=t:s.to0?l.length:-1;t!=a;t+=e){let f=l[t],c=h[t]+o.from;if(_l(n,i,c,c+f.length)){if(f instanceof ye){if(r&et.ExcludeBuffers)continue;let u=f.findChild(0,f.buffer.length,e,i-c,n);if(u>-1)return new Zt(new Ec(o,f,t,c),null,u)}else if(r&et.IncludeAnonymous||!f.type.isAnonymous||Es(f)){let u;if(!(r&et.IgnoreMounts)&&f.props&&(u=f.prop(R.mounted))&&!u.overlay)return new qt(u.tree,c,t,o);let d=new qt(f,c,t,o);return r&et.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(e<0?f.children.length-1:0,e,i,n)}}}if(r&et.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+e:t=e<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,i=0){let n;if(!(i&et.IgnoreOverlays)&&(n=this._tree.prop(R.mounted))&&n.overlay){let r=t-this.from;for(let{from:o,to:l}of n.overlay)if((e>0?o<=r:o=r:l>r))return new qt(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,i)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(t=0){return new ji(this,t)}get tree(){return this._tree}toTree(){return this._tree}resolve(t,e=0){return Be(this,t,e,!1)}resolveInner(t,e=0){return Be(this,t,e,!0)}enterUnfinishedNodesBefore(t){return Xl(this,t)}getChild(t,e=null,i=null){let n=zi(this,t,e,i);return n.length?n[0]:null}getChildren(t,e=null,i=null){return zi(this,t,e,i)}toString(){return this._tree.toString()}get node(){return this}matchContext(t){return Wi(this,t)}}function zi(s,t,e,i){let n=s.cursor(),r=[];if(!n.firstChild())return r;if(e!=null){for(;!n.type.is(e);)if(!n.nextSibling())return r}for(;;){if(i!=null&&n.type.is(i))return r;if(n.type.is(t)&&r.push(n.node),!n.nextSibling())return i==null?r:[]}}function Wi(s,t,e=t.length-1){for(let i=s.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[e]&&t[e]!=i.name)return!1;e--}}return!0}class Ec{constructor(t,e,i,n){this.parent=t,this.buffer=e,this.index=i,this.start=n}}class Zt{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,i){this.context=t,this._parent=e,this.index=i,this.type=t.buffer.set.types[t.buffer.buffer[i]]}child(t,e,i){let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t,e-this.context.start,i);return r<0?null:new Zt(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,i=0){if(i&et.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return r<0?null:new Zt(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Zt(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new Zt(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}cursor(t=0){return new ji(this,t)}get tree(){return null}toTree(){let t=[],e=[],{buffer:i}=this.context,n=this.index+4,r=i.buffer[this.index+3];if(r>n){let o=i.buffer[this.index+1];t.push(i.slice(n,r,o)),e.push(0)}return new F(this.type,t,e,this.to-this.from)}resolve(t,e=0){return Be(this,t,e,!1)}resolveInner(t,e=0){return Be(this,t,e,!0)}enterUnfinishedNodesBefore(t){return Xl(this,t)}toString(){return this.context.buffer.childString(this.index)}getChild(t,e=null,i=null){let n=zi(this,t,e,i);return n.length?n[0]:null}getChildren(t,e=null,i=null){return zi(this,t,e,i)}get node(){return this}matchContext(t){return Wi(this,t)}}class ji{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof qt)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let i=t._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,e){this.index=t;let{start:i,buffer:n}=this.buffer;return this.type=e||n.set.types[n.buffer[t]],this.from=i+n.buffer[t+1],this.to=i+n.buffer[t+2],!0}yield(t){return t?t instanceof qt?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,i,this.mode));let{buffer:n}=this.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],t,e-this.buffer.start,i);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,i=this.mode){return this.buffer?i&et.ExcludeBuffers?!1:this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&et.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&et.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:e}=this.buffer,i=this.stack.length-1;if(t<0){let n=i<0?0:this.stack[i]+4;if(this.index!=n)return this.yieldBuf(e.findChild(n,this.index,-1,0,4))}else{let n=e.buffer[this.index+3];if(n<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(n)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,i,{buffer:n}=this;if(n){if(t>0){if(this.index-1)for(let r=e+t,o=t<0?-1:i._tree.children.length;r!=o;r+=t){let l=i._tree.children[r];if(this.mode&et.IncludeAnonymous||l instanceof ye||!l.type.isAnonymous||Es(l))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let o=t;o;o=o._parent)if(o.index==n){if(n==this.index)return o;e=o,i=r+1;break t}n=this.stack[--r]}for(let n=i;n=0;r--){if(r<0)return Wi(this.node,t,n);let o=i[e.buffer[this.stack[r]]];if(!o.isAnonymous){if(t[n]&&t[n]!=o.name)return!1;n--}}return!0}}function Es(s){return s.children.some(t=>t instanceof ye||!t.type.isAnonymous||Es(t))}function Ic(s){var t;let{buffer:e,nodeSet:i,maxBufferLength:n=$l,reused:r=[],minRepeatType:o=i.types.length}=s,l=Array.isArray(e)?new Rs(e,e.length):e,h=i.types,a=0,f=0;function c(T,S,O,P,Q){let{id:I,start:B,end:z,size:it}=l,ut=f;for(;it<0;)if(l.next(),it==-1){let Tt=r[I];O.push(Tt),P.push(B-T);return}else if(it==-3){a=I;return}else if(it==-4){f=I;return}else throw new RangeError(`Unrecognized record size: ${it}`);let Kt=h[I],v,q,Ve=B-T;if(z-B<=n&&(q=m(l.pos-S,Q))){let Tt=new Uint16Array(q.size-q.skip),Ct=l.pos-q.size,Wt=Tt.length;for(;l.pos>Ct;)Wt=g(q.start,Tt,Wt);v=new ye(Tt,z-q.start,i),Ve=q.start-T}else{let Tt=l.pos-it;l.next();let Ct=[],Wt=[],le=I>=o?I:-1,we=0,ni=z;for(;l.pos>Tt;)le>=0&&l.id==le&&l.size>=0?(l.end<=ni-n&&(d(Ct,Wt,B,we,l.end,ni,le,ut),we=Ct.length,ni=l.end),l.next()):c(B,Tt,Ct,Wt,le);if(le>=0&&we>0&&we-1&&we>0){let $s=u(Kt);v=Is(Kt,Ct,Wt,0,Ct.length,0,z-B,$s,$s)}else v=p(Kt,Ct,Wt,z-B,ut-z)}O.push(v),P.push(Ve)}function u(T){return(S,O,P)=>{let Q=0,I=S.length-1,B,z;if(I>=0&&(B=S[I])instanceof F){if(!I&&B.type==T&&B.length==P)return B;(z=B.prop(R.lookAhead))&&(Q=O[I]+B.length+z)}return p(T,S,O,P,Q)}}function d(T,S,O,P,Q,I,B,z){let it=[],ut=[];for(;T.length>P;)it.push(T.pop()),ut.push(S.pop()+O-Q);T.push(p(i.types[B],it,ut,I-Q,z-I)),S.push(Q-O)}function p(T,S,O,P,Q=0,I){if(a){let B=[R.contextHash,a];I=I?[B].concat(I):[B]}if(Q>25){let B=[R.lookAhead,Q];I=I?[B].concat(I):[B]}return new F(T,S,O,P,I)}function m(T,S){let O=l.fork(),P=0,Q=0,I=0,B=O.end-n,z={size:0,start:0,skip:0};t:for(let it=O.pos-T;O.pos>it;){let ut=O.size;if(O.id==S&&ut>=0){z.size=P,z.start=Q,z.skip=I,I+=4,P+=4,O.next();continue}let Kt=O.pos-ut;if(ut<0||Kt=o?4:0,q=O.start;for(O.next();O.pos>Kt;){if(O.size<0)if(O.size==-3)v+=4;else break t;else O.id>=o&&(v+=4);O.next()}Q=q,P+=ut,I+=v}return(S<0||P==T)&&(z.size=P,z.start=Q,z.skip=I),z.size>4?z:void 0}function g(T,S,O){let{id:P,start:Q,end:I,size:B}=l;if(l.next(),B>=0&&P4){let it=l.pos-(B-4);for(;l.pos>it;)O=g(T,S,O)}S[--O]=z,S[--O]=I-T,S[--O]=Q-T,S[--O]=P}else B==-3?a=P:B==-4&&(f=P);return O}let y=[],k=[];for(;l.pos>0;)c(s.start||0,s.bufferStart||0,y,k,-1);let A=(t=s.length)!==null&&t!==void 0?t:y.length?k[0]+y[0].length:0;return new F(h[s.topID],y.reverse(),k.reverse(),A)}const _r=new WeakMap;function Pi(s,t){if(!s.isAnonymous||t instanceof ye||t.type!=s)return 1;let e=_r.get(t);if(e==null){e=1;for(let i of t.children){if(i.type!=s||!(i instanceof F)){e=1;break}e+=Pi(s,i)}_r.set(t,e)}return e}function Is(s,t,e,i,n,r,o,l,h){let a=0;for(let p=i;p=f)break;O+=P}if(A==T+1){if(O>f){let P=p[T];d(P.children,P.positions,0,P.children.length,m[T]+k);continue}c.push(p[T])}else{let P=m[A-1]+p[A-1].length-S;c.push(Is(s,p,m,T,A,S,P,null,h))}u.push(S+k-r)}}return d(t,e,i,n,0),(l||h)(c,u,o)}class de{constructor(t,e,i,n,r=!1,o=!1){this.from=t,this.to=e,this.tree=i,this.offset=n,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,e=[],i=!1){let n=[new de(0,t.length,t,0,!1,i)];for(let r of e)r.to>t.length&&n.push(r);return n}static applyChanges(t,e,i=128){if(!e.length)return t;let n=[],r=1,o=t.length?t[0]:null;for(let l=0,h=0,a=0;;l++){let f=l=i)for(;o&&o.from=u.from||c<=u.to||a){let d=Math.max(u.from,h)-a,p=Math.min(u.to,c)-a;u=d>=p?null:new de(d,p,u.tree,u.offset+a,l>0,!!f)}if(u&&n.push(u),o.to>c)break;o=rnew Cn(n.from,n.to)):[new Cn(0,0)]:[new Cn(0,t.length)],this.createParse(t,e||[],i)}parse(t,e,i){let n=this.startParse(t,e,i);for(;;){let r=n.advance();if(r)return r}}}class Nc{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new R({perNode:!0});let Lc=0;class Et{constructor(t,e,i){this.set=t,this.base=e,this.modified=i,this.id=Lc++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let e=new Et([],null,[]);if(e.set.push(e),t)for(let i of t.set)e.set.push(i);return e}static defineModifier(){let t=new qi;return e=>e.modified.indexOf(t)>-1?e:qi.get(e.base||e,e.modified.concat(t).sort((i,n)=>i.id-n.id))}}let Vc=0;class qi{constructor(){this.instances=[],this.id=Vc++}static get(t,e){if(!e.length)return t;let i=e[0].instances.find(l=>l.base==t&&Fc(e,l.modified));if(i)return i;let n=[],r=new Et(n,t,e);for(let l of e)l.instances.push(r);let o=Hc(e);for(let l of t.set)if(!l.modified.length)for(let h of o)n.push(qi.get(l,h));return r}}function Fc(s,t){return s.length==t.length&&s.every((e,i)=>e==t[i])}function Hc(s){let t=[[]];for(let e=0;ei.length-e.length)}function Yl(s){let t=Object.create(null);for(let e in s){let i=s[e];Array.isArray(i)||(i=[i]);for(let n of e.split(" "))if(n){let r=[],o=2,l=n;for(let c=0;;){if(l=="..."&&c>0&&c+3==n.length){o=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!u)throw new RangeError("Invalid path: "+n);if(r.push(u[0]=="*"?"":u[0][0]=='"'?JSON.parse(u[0]):u[0]),c+=u[0].length,c==n.length)break;let d=n[c++];if(c==n.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+n);l=n.slice(c)}let h=r.length-1,a=r[h];if(!a)throw new RangeError("Invalid path: "+n);let f=new Ui(i,o,h>0?r.slice(0,h):null);t[a]=f.sort(t[a])}}return Zl.add(t)}const Zl=new R;class Ui{constructor(t,e,i,n){this.tags=t,this.mode=e,this.context=i,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let o=n;for(let l of r)for(let h of l.set){let a=e[h.id];if(a){o=o?o+" "+a:a;break}}return o},scope:i}}function zc(s,t){let e=null;for(let i of s){let n=i.style(t);n&&(e=e?e+" "+n:n)}return e}function Wc(s,t,e,i=0,n=s.length){let r=new jc(i,Array.isArray(t)?t:[t],e);r.highlightRange(s.cursor(),i,n,"",r.highlighters),r.flush(n)}class jc{constructor(t,e,i){this.at=t,this.highlighters=e,this.span=i,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,i,n,r){let{type:o,from:l,to:h}=t;if(l>=i||h<=e)return;o.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(o)));let a=n,f=qc(t)||Ui.empty,c=zc(r,f.tags);if(c&&(a&&(a+=" "),a+=c,f.mode==1&&(n+=(n?" ":"")+c)),this.startSpan(t.from,a),f.opaque)return;let u=t.tree&&t.tree.prop(R.mounted);if(u&&u.overlay){let d=t.node.enter(u.overlay[0].from+l,1),p=this.highlighters.filter(g=>!g.scope||g.scope(u.tree.type)),m=t.firstChild();for(let g=0,y=l;;g++){let k=g=A||!t.nextSibling())););if(!k||A>i)break;y=k.to+l,y>e&&(this.highlightRange(d.cursor(),Math.max(e,k.from+l),Math.min(i,y),n,p),this.startSpan(y,a))}m&&t.parent()}else if(t.firstChild()){do if(!(t.to<=e)){if(t.from>=i)break;this.highlightRange(t,e,i,n,r),this.startSpan(Math.min(i,t.to),a)}while(t.nextSibling());t.parent()}}}function qc(s){let t=s.type.prop(Zl);for(;t&&t.context&&!s.matchContext(t.context);)t=t.next;return t||null}const w=Et.define,yi=w(),Gt=w(),Xr=w(Gt),Yr=w(Gt),Qt=w(),bi=w(Qt),An=w(Qt),Rt=w(),he=w(Rt),Pt=w(),Bt=w(),us=w(),ze=w(us),wi=w(),C={comment:yi,lineComment:w(yi),blockComment:w(yi),docComment:w(yi),name:Gt,variableName:w(Gt),typeName:Xr,tagName:w(Xr),propertyName:Yr,attributeName:w(Yr),className:w(Gt),labelName:w(Gt),namespace:w(Gt),macroName:w(Gt),literal:Qt,string:bi,docString:w(bi),character:w(bi),attributeValue:w(bi),number:An,integer:w(An),float:w(An),bool:w(Qt),regexp:w(Qt),escape:w(Qt),color:w(Qt),url:w(Qt),keyword:Pt,self:w(Pt),null:w(Pt),atom:w(Pt),unit:w(Pt),modifier:w(Pt),operatorKeyword:w(Pt),controlKeyword:w(Pt),definitionKeyword:w(Pt),moduleKeyword:w(Pt),operator:Bt,derefOperator:w(Bt),arithmeticOperator:w(Bt),logicOperator:w(Bt),bitwiseOperator:w(Bt),compareOperator:w(Bt),updateOperator:w(Bt),definitionOperator:w(Bt),typeOperator:w(Bt),controlOperator:w(Bt),punctuation:us,separator:w(us),bracket:ze,angleBracket:w(ze),squareBracket:w(ze),paren:w(ze),brace:w(ze),content:Rt,heading:he,heading1:w(he),heading2:w(he),heading3:w(he),heading4:w(he),heading5:w(he),heading6:w(he),contentSeparator:w(Rt),list:w(Rt),quote:w(Rt),emphasis:w(Rt),strong:w(Rt),link:w(Rt),monospace:w(Rt),strikethrough:w(Rt),inserted:w(),deleted:w(),changed:w(),invalid:w(),meta:wi,documentMeta:w(wi),annotation:w(wi),processingInstruction:w(wi),definition:Et.defineModifier(),constant:Et.defineModifier(),function:Et.defineModifier(),standard:Et.defineModifier(),local:Et.defineModifier(),special:Et.defineModifier()};th([{tag:C.link,class:"tok-link"},{tag:C.heading,class:"tok-heading"},{tag:C.emphasis,class:"tok-emphasis"},{tag:C.strong,class:"tok-strong"},{tag:C.keyword,class:"tok-keyword"},{tag:C.atom,class:"tok-atom"},{tag:C.bool,class:"tok-bool"},{tag:C.url,class:"tok-url"},{tag:C.labelName,class:"tok-labelName"},{tag:C.inserted,class:"tok-inserted"},{tag:C.deleted,class:"tok-deleted"},{tag:C.literal,class:"tok-literal"},{tag:C.string,class:"tok-string"},{tag:C.number,class:"tok-number"},{tag:[C.regexp,C.escape,C.special(C.string)],class:"tok-string2"},{tag:C.variableName,class:"tok-variableName"},{tag:C.local(C.variableName),class:"tok-variableName tok-local"},{tag:C.definition(C.variableName),class:"tok-variableName tok-definition"},{tag:C.special(C.variableName),class:"tok-variableName2"},{tag:C.definition(C.propertyName),class:"tok-propertyName tok-definition"},{tag:C.typeName,class:"tok-typeName"},{tag:C.namespace,class:"tok-namespace"},{tag:C.className,class:"tok-className"},{tag:C.macroName,class:"tok-macroName"},{tag:C.propertyName,class:"tok-propertyName"},{tag:C.operator,class:"tok-operator"},{tag:C.comment,class:"tok-comment"},{tag:C.meta,class:"tok-meta"},{tag:C.invalid,class:"tok-invalid"},{tag:C.punctuation,class:"tok-punctuation"}]);var On;const Re=new R;function eh(s){return M.define({combine:s?t=>t.concat(s):void 0})}class wt{constructor(t,e,i=[],n=""){this.data=t,this.name=n,E.prototype.hasOwnProperty("tree")||Object.defineProperty(E.prototype,"tree",{get(){return ht(this)}}),this.parser=e,this.extension=[se.of(this),E.languageData.of((r,o,l)=>r.facet(Zr(r,o,l)))].concat(i)}isActiveAt(t,e,i=-1){return Zr(t,e,i)==this.data}findRegions(t){let e=t.facet(se);if((e==null?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let i=[],n=(r,o)=>{if(r.prop(Re)==this.data){i.push({from:o,to:o+r.length});return}let l=r.prop(R.mounted);if(l){if(l.tree.prop(Re)==this.data){if(l.overlay)for(let h of l.overlay)i.push({from:h.from+o,to:h.to+o});else i.push({from:o,to:o+r.length});return}else if(l.overlay){let h=i.length;if(n(l.tree,l.overlay[0].from+o),i.length>h)return}}for(let h=0;hi.isTop?e:void 0)]}),t.name)}configure(t,e){return new Ki(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function ht(s){let t=s.field(wt.state,!1);return t?t.tree:F.empty}class Uc{constructor(t,e=t.length){this.doc=t,this.length=e,this.cursorPos=0,this.string="",this.cursor=t.iter()}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let i=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-i,e-i)}}let We=null;class Ee{constructor(t,e,i=[],n,r,o,l,h){this.parser=t,this.state=e,this.fragments=i,this.tree=n,this.treeLen=r,this.viewport=o,this.skipped=l,this.scheduleOn=h,this.parse=null,this.tempSkipped=[]}static create(t,e,i){return new Ee(t,e,[],F.empty,0,i,[],null)}startParse(){return this.parser.startParse(new Uc(this.state.doc),this.fragments)}work(t,e){return e!=null&&e>=this.state.doc.length&&(e=void 0),this.tree!=F.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof t=="number"){let n=Date.now()+t;t=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(de.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=We;We=this;try{return t()}finally{We=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=to(t,e.from,e.to);return t}changes(t,e){let{fragments:i,tree:n,treeLen:r,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let h=[];if(t.iterChangedRanges((a,f,c,u)=>h.push({fromA:a,toA:f,fromB:c,toB:u})),i=de.applyChanges(i,h),n=F.empty,r=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){l=[];for(let a of this.skipped){let f=t.mapPos(a.from,1),c=t.mapPos(a.to,-1);ft.from&&(this.fragments=to(this.fragments,n,r),this.skipped.splice(i--,1))}return this.skipped.length>=e?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends Ns{createParse(e,i,n){let r=n[0].from,o=n[n.length-1].to;return{parsedPos:r,advance(){let h=We;if(h){for(let a of n)h.tempSkipped.push(a);t&&(h.scheduleOn=h.scheduleOn?Promise.all([h.scheduleOn,t]):t)}return this.parsedPos=o,new F(lt.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return We}}function to(s,t,e){return de.applyChanges(s,[{fromA:t,toA:e,fromB:t,toB:e}])}class Ie{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),i=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new Ie(e)}static init(t){let e=Math.min(3e3,t.doc.length),i=Ee.create(t.facet(se).parser,t,{from:0,to:e});return i.work(20,e)||i.takeTree(),new Ie(i)}}wt.state=St.define({create:Ie.init,update(s,t){for(let e of t.effects)if(e.is(wt.setState))return e.value;return t.startState.facet(se)!=t.state.facet(se)?Ie.init(t.state):s.apply(t)}});let ih=s=>{let t=setTimeout(()=>s(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(ih=s=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(s,{timeout:400})},100);return()=>t<0?clearTimeout(e):cancelIdleCallback(t)});const Mn=typeof navigator<"u"&&(!((On=navigator.scheduling)===null||On===void 0)&&On.isInputPending)?()=>navigator.scheduling.isInputPending():null,Kc=Ht.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(wt.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),t.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(wt.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=ih(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndn+1e3,h=r.context.work(()=>Mn&&Mn()||Date.now()>o,n+(l?0:1e5));this.chunkBudget-=Date.now()-e,(h||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:wt.setState.of(new Ie(r.context))})),this.chunkBudget>0&&!(h&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>Mt(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),se=M.define({combine(s){return s.length?s[0]:null},enables:s=>[wt.state,Kc,D.contentAttributes.compute([s],t=>{let e=t.facet(s);return e&&e.name?{"data-language":e.name}:{}})]});class Gc{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const nh=M.define(),Ls=M.define({combine:s=>{if(!s.length)return" ";if(!/^(?: +|\t+)$/.test(s[0]))throw new Error("Invalid indent unit: "+JSON.stringify(s[0]));return s[0]}});function Ne(s){let t=s.facet(Ls);return t.charCodeAt(0)==9?s.tabSize*t.length:t.length}function ds(s,t){let e="",i=s.tabSize;if(s.facet(Ls).charCodeAt(0)==9)for(;t>=i;)e+=" ",t-=i;for(let n=0;n=i.from&&n<=i.to?r&&n==t?{text:"",from:t}:(e<0?n-1&&(r+=o-this.countColumn(i,i.search(/\S|$/))),r}countColumn(t,e=t.length){return il(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:i,from:n}=this.lineAt(t,e),r=this.options.overrideIndentation;if(r){let o=r(n);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const rh=new R;function Qc(s,t,e){return oh(t.resolveInner(e).enterUnfinishedNodesBefore(e),e,s)}function Jc(s){return s.pos==s.options.simulateBreak&&s.options.simulateDoubleBreak}function $c(s){let t=s.type.prop(rh);if(t)return t;let e=s.firstChild,i;if(e&&(i=e.type.prop(R.closedBy))){let n=s.lastChild,r=n&&i.indexOf(n.name)>-1;return o=>Zc(o,!0,1,void 0,r&&!Jc(o)?n.from:void 0)}return s.parent==null?_c:null}function oh(s,t,e){for(;s;s=s.parent){let i=$c(s);if(i)return i(Fs.create(e,t,s))}return null}function _c(){return 0}class Fs extends Vs{constructor(t,e,i){super(t.state,t.options),this.base=t,this.pos=e,this.node=i}static create(t,e,i){return new Fs(t,e,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let t=this.state.doc.lineAt(this.node.from);for(;;){let e=this.node.resolve(t.from);for(;e.parent&&e.parent.from==e.from;)e=e.parent;if(Xc(e,this.node))break;t=this.state.doc.lineAt(e.from)}return this.lineIndent(t.from)}continue(){let t=this.node.parent;return t?oh(t,this.pos,this.base):0}}function Xc(s,t){for(let e=t;e;e=e.parent)if(s==e)return!0;return!1}function Yc(s){let t=s.node,e=t.childAfter(t.from),i=t.lastChild;if(!e)return null;let n=s.options.simulateBreak,r=s.state.doc.lineAt(e.from),o=n==null||n<=r.from?r.to:Math.min(r.to,n);for(let l=e.to;;){let h=t.childAfter(l);if(!h||h==i)return null;if(!h.type.isSkipped)return h.from{let i=s&&s.test(e.textAfter);return e.baseIndent+(i?0:t*e.unit)}}const tu=200;function eu(){return E.transactionFilter.of(s=>{if(!s.docChanged||!s.isUserEvent("input.type")&&!s.isUserEvent("input.complete"))return s;let t=s.startState.languageDataAt("indentOnInput",s.startState.selection.main.head);if(!t.length)return s;let e=s.newDoc,{head:i}=s.newSelection.main,n=e.lineAt(i);if(i>n.from+tu)return s;let r=e.sliceString(n.from,i);if(!t.some(a=>a.test(r)))return s;let{state:o}=s,l=-1,h=[];for(let{head:a}of o.selection.ranges){let f=o.doc.lineAt(a);if(f.from==l)continue;l=f.from;let c=sh(o,f.from);if(c==null)continue;let u=/^\s*/.exec(f.text)[0],d=ds(o,c);u!=d&&h.push({from:f.from,to:f.from+u.length,insert:d})}return h.length?[s,{changes:h,sequential:!0}]:s})}const iu=M.define(),lh=new R;function nu(s){let t=s.firstChild,e=s.lastChild;return t&&t.toe)continue;if(r&&o.from=t&&h.to>e&&(r=h)}}return r}function ru(s){let t=s.lastChild;return t&&t.to==s.to&&t.type.isError}function io(s,t,e){for(let i of s.facet(iu)){let n=i(s,t,e);if(n)return n}return su(s,t,e)}function hh(s,t){let e=t.mapPos(s.from,1),i=t.mapPos(s.to,-1);return e>=i?void 0:{from:e,to:i}}const ah=V.define({map:hh}),Hs=V.define({map:hh}),Gi=St.define({create(){return H.none},update(s,t){s=s.map(t.changes);for(let e of t.effects)e.is(ah)&&!ou(s,e.value.from,e.value.to)?s=s.update({add:[no.range(e.value.from,e.value.to)]}):e.is(Hs)&&(s=s.update({filter:(i,n)=>e.value.from!=i||e.value.to!=n,filterFrom:e.value.from,filterTo:e.value.to}));if(t.selection){let e=!1,{head:i}=t.selection.main;s.between(i,i,(n,r)=>{ni&&(e=!0)}),e&&(s=s.update({filterFrom:i,filterTo:i,filter:(n,r)=>r<=i||n>=i}))}return s},provide:s=>D.decorations.from(s),toJSON(s,t){let e=[];return s.between(0,t.doc.length,(i,n)=>{e.push(i,n)}),e},fromJSON(s){if(!Array.isArray(s)||s.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e{(!n||n.from>r)&&(n={from:r,to:o})}),n}function ou(s,t,e){let i=!1;return s.between(t,t,(n,r)=>{n==t&&r==e&&(i=!0)}),i}const lu={placeholderDOM:null,placeholderText:"…"},fh=M.define({combine(s){return nn(s,lu)}});function hu(s){let t=[Gi,cu];return s&&t.push(fh.of(s)),t}const no=H.replace({widget:new class extends ei{toDOM(s){let{state:t}=s,e=t.facet(fh),i=r=>{let o=s.lineBlockAt(s.posAtDOM(r.target)),l=ps(s.state,o.from,o.to);l&&s.dispatch({effects:Hs.of(l)}),r.preventDefault()};if(e.placeholderDOM)return e.placeholderDOM(s,i);let n=document.createElement("span");return n.textContent=e.placeholderText,n.setAttribute("aria-label",t.phrase("folded code")),n.title=t.phrase("unfold"),n.className="cm-foldPlaceholder",n.onclick=i,n}}}),au={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Tn extends me{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function fu(s={}){let t=Object.assign(Object.assign({},au),s),e=new Tn(t,!0),i=new Tn(t,!1),n=Ht.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(se)!=o.state.facet(se)||o.startState.field(Gi,!1)!=o.state.field(Gi,!1)||ht(o.startState)!=ht(o.state)||t.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let l=new Me;for(let h of o.viewportLineBlocks){let a=ps(o.state,h.from,h.to)?i:io(o.state,h.from,h.to)?e:null;a&&l.add(h.from,h.from,a)}return l.finish()}}),{domEventHandlers:r}=t;return[n,Oc({class:"cm-foldGutter",markers(o){var l;return((l=o.plugin(n))===null||l===void 0?void 0:l.markers)||L.empty},initialSpacer(){return new Tn(t,!1)},domEventHandlers:Object.assign(Object.assign({},r),{click:(o,l,h)=>{if(r.click&&r.click(o,l,h))return!0;let a=ps(o.state,l.from,l.to);if(a)return o.dispatch({effects:Hs.of(a)}),!0;let f=io(o.state,l.from,l.to);return f?(o.dispatch({effects:ah.of(f)}),!0):!1}})}),hu()]}const cu=D.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class hn{constructor(t,e){this.specs=t;let i;function n(l){let h=ee.newName();return(i||(i=Object.create(null)))["."+h]=l,h}const r=typeof e.all=="string"?e.all:e.all?n(e.all):void 0,o=e.scope;this.scope=o instanceof wt?l=>l.prop(Re)==o.data:o?l=>l==o:void 0,this.style=th(t.map(l=>({tag:l.tag,class:l.class||n(Object.assign({},l,{tag:null}))})),{all:r}).style,this.module=i?new ee(i):null,this.themeType=e.themeType}static define(t,e){return new hn(t,e||{})}}const gs=M.define(),ch=M.define({combine(s){return s.length?[s[0]]:null}});function Dn(s){let t=s.facet(gs);return t.length?t:s.facet(ch)}function uu(s,t){let e=[pu],i;return s instanceof hn&&(s.module&&e.push(D.styleModule.of(s.module)),i=s.themeType),t!=null&&t.fallback?e.push(ch.of(s)):i?e.push(gs.computeN([D.darkTheme],n=>n.facet(D.darkTheme)==(i=="dark")?[s]:[])):e.push(gs.of(s)),e}class du{constructor(t){this.markCache=Object.create(null),this.tree=ht(t.state),this.decorations=this.buildDeco(t,Dn(t.state))}update(t){let e=ht(t.state),i=Dn(t.state),n=i!=Dn(t.startState);e.length{i.add(o,l,this.markCache[h]||(this.markCache[h]=H.mark({class:h})))},n,r);return i.finish()}}const pu=tn.high(Ht.fromClass(du,{decorations:s=>s.decorations})),gu=D.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),uh=1e4,dh="()[]{}",ph=M.define({combine(s){return nn(s,{afterCursor:!0,brackets:dh,maxScanDistance:uh,renderMatch:bu})}}),mu=H.mark({class:"cm-matchingBracket"}),yu=H.mark({class:"cm-nonmatchingBracket"});function bu(s){let t=[],e=s.matched?mu:yu;return t.push(e.range(s.start.from,s.start.to)),s.end&&t.push(e.range(s.end.from,s.end.to)),t}const wu=St.define({create(){return H.none},update(s,t){if(!t.docChanged&&!t.selection)return s;let e=[],i=t.state.facet(ph);for(let n of t.state.selection.ranges){if(!n.empty)continue;let r=ki(t.state,n.head,-1,i)||n.head>0&&ki(t.state,n.head-1,1,i)||i.afterCursor&&(ki(t.state,n.head,1,i)||n.headD.decorations.from(s)}),ku=[wu,gu];function xu(s={}){return[ph.of(s),ku]}function ms(s,t,e){let i=s.prop(t<0?R.openedBy:R.closedBy);if(i)return i;if(s.name.length==1){let n=e.indexOf(s.name);if(n>-1&&n%2==(t<0?1:0))return[e[n+t]]}return null}function ki(s,t,e,i={}){let n=i.maxScanDistance||uh,r=i.brackets||dh,o=ht(s),l=o.resolveInner(t,e);for(let h=l;h;h=h.parent){let a=ms(h.type,e,r);if(a&&h.from=i.to){if(h==0&&n.indexOf(a.type.name)>-1&&a.from0)return null;let a={from:e<0?t-1:t,to:e>0?t+1:t},f=s.doc.iterRange(t,e>0?s.doc.length:0),c=0;for(let u=0;!f.next().done&&u<=r;){let d=f.value;e<0&&(u+=d.length);let p=t+u*e;for(let m=e>0?0:d.length-1,g=e>0?d.length:-1;m!=g;m+=e){let y=o.indexOf(d[m]);if(!(y<0||i.resolveInner(p+m,1).type!=n))if(y%2==0==e>0)c++;else{if(c==1)return{start:a,end:{from:p+m,to:p+m+1},matched:y>>1==h>>1};c--}}e>0&&(u+=d.length)}return f.done?{start:a,matched:!1}:null}function so(s,t,e,i=0,n=0){t==null&&(t=s.search(/[^\s\u00a0]/),t==-1&&(t=s.length));let r=n;for(let o=i;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pose}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPosi?o.toLowerCase():o,r=this.string.substr(this.pos,t.length);return n(r)==n(t)?(e!==!1&&(this.pos+=t.length),!0):null}else{let n=this.string.slice(this.pos).match(t);return n&&n.index>0?null:(n&&e!==!1&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function Cu(s){return{name:s.name||"",token:s.token,blankLine:s.blankLine||(()=>{}),startState:s.startState||(()=>!0),copyState:s.copyState||Au,indent:s.indent||(()=>null),languageData:s.languageData||{},tokenTable:s.tokenTable||js}}function Au(s){if(typeof s!="object")return s;let t={};for(let e in s){let i=s[e];t[e]=i instanceof Array?i.slice():i}return t}class zs extends wt{constructor(t){let e=eh(t.languageData),i=Cu(t),n,r=new class extends Ns{createParse(o,l,h){return new Mu(n,o,l,h)}};super(e,r,[nh.of((o,l)=>this.getIndent(o,l))],t.name),this.topNode=Pu(e),n=this,this.streamParser=i,this.stateAfter=new R({perNode:!0}),this.tokenTable=t.tokenTable?new wh(i.tokenTable):Du}static define(t){return new zs(t)}getIndent(t,e){let i=ht(t.state),n=i.resolve(e);for(;n&&n.type!=this.topNode;)n=n.parent;if(!n)return null;let r=Ws(this,i,0,n.from,e),o,l;if(r?(l=r.state,o=r.pos+1):(l=this.streamParser.startState(t.unit),o=0),e-o>1e4)return null;for(;o=i&&e+t.length<=n&&t.prop(s.stateAfter);if(r)return{state:s.streamParser.copyState(r),pos:e+t.length};for(let o=t.children.length-1;o>=0;o--){let l=t.children[o],h=e+t.positions[o],a=l instanceof F&&h=t.length)return t;!n&&t.type==s.topNode&&(n=!0);for(let r=t.children.length-1;r>=0;r--){let o=t.positions[r],l=t.children[r],h;if(oe&&Ws(s,n.tree,0-n.offset,e,o),h;if(l&&(h=mh(s,n.tree,e+n.offset,l.pos+n.offset,!1)))return{state:l.state,tree:h}}return{state:s.streamParser.startState(i?Ne(i):4),tree:F.empty}}let Mu=class{constructor(t,e,i,n){this.lang=t,this.input=e,this.fragments=i,this.ranges=n,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=n[n.length-1].to;let r=Ee.get(),o=n[0].from,{state:l,tree:h}=Ou(t,i,o,r==null?void 0:r.state);this.state=l,this.parsedPos=this.chunkStart=o+h.length;for(let a=0;a=e?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)e==` +`){let n="";for(let r=0,o=0;rt&&r&&(n+=i),to&&(n+=l.sliceString(t-o,e-o,i)),o=h+1}return n}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof It))return 0;let i=0,[n,r,o,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;n+=e,r+=e){if(n==o||r==l)return i;let h=this.children[n],a=t.children[r];if(h!=a)return i+h.scanIdentical(a,e);i+=h.length+1}}static from(t,e=t.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of t)i+=d.lines;if(i<32){let d=[];for(let p of t)p.flatten(d);return new K(d,e)}let n=Math.max(32,i>>5),r=n<<1,o=n>>1,l=[],h=0,a=-1,f=[];function c(d){let p;if(d.lines>r&&d instanceof It)for(let m of d.children)c(m);else d.lines>o&&(h>o||!h)?(u(),l.push(d)):d instanceof K&&h&&(p=f[f.length-1])instanceof K&&d.lines+p.lines<=32?(h+=d.lines,a+=d.length+1,f[f.length-1]=new K(p.text.concat(d.text),p.length+1+d.length)):(h+d.lines>n&&u(),h+=d.lines,a+=d.length+1,f.push(d))}function u(){h!=0&&(l.push(f.length==1?f[0]:It.from(f,a)),a=-1,h=f.length=0)}for(let d of t)c(d);return u(),l.length==1?l[0]:new It(l,e)}}N.empty=new K([""],0);function Ca(s){let t=-1;for(let e of s)t+=e.length+1;return t}function Ai(s,t,e=0,i=1e9){for(let n=0,r=0,o=!0;r=e&&(h>i&&(l=l.slice(0,i-n)),n0?1:(t instanceof K?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],o=r>>1,l=n instanceof K?n.text.length:n.children.length;if(o==(e>0?l:0)){if(i==0)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=!0,this.value=` +`,this;t--}else if(n instanceof K){let h=n.text[o+(e<0?-1:0)];if(this.offsets[i]+=e,h.length>Math.max(0,t))return this.value=t==0?h:e>0?h.slice(t):h.slice(0,h.length-t),this;t-=h.length}else{let h=n.children[o+(e<0?-1:0)];t>h.length?(t-=h.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(h),this.offsets.push(e>0?1:(h instanceof K?h.text.length:h.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class Lo{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new Ue(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:n}=this.cursor.next(t);return this.pos+=(n.length+t)*e,this.value=n.length<=i?n:e<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Vo{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:n}=this.inner.next(t);return e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(N.prototype[Symbol.iterator]=function(){return this.iter()},Ue.prototype[Symbol.iterator]=Lo.prototype[Symbol.iterator]=Vo.prototype[Symbol.iterator]=function(){return this});class Aa{constructor(t,e,i,n){this.from=t,this.to=e,this.number=i,this.text=n}get length(){return this.to-this.from}}let Se="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(s=>s?parseInt(s,36):1);for(let s=1;ss)return Se[t-1]<=s;return!1}function sr(s){return s>=127462&&s<=127487}const rr=8205;function mt(s,t,e=!0,i=!0){return(e?Fo:Ma)(s,t,i)}function Fo(s,t,e){if(t==s.length)return t;t&&Ho(s.charCodeAt(t))&&zo(s.charCodeAt(t-1))&&t--;let i=pt(s,t);for(t+=Mt(i);t=0&&sr(pt(s,o));)r++,o-=2;if(r%2==0)break;t+=2}else break}return t}function Ma(s,t,e){for(;t>0;){let i=Fo(s,t-2,e);if(i=56320&&s<57344}function zo(s){return s>=55296&&s<56320}function pt(s,t){let e=s.charCodeAt(t);if(!zo(e)||t+1==s.length)return e;let i=s.charCodeAt(t+1);return Ho(i)?(e-55296<<10)+(i-56320)+65536:e}function Wo(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}function Mt(s){return s<65536?1:2}const Ln=/\r\n?|\n/;var ft=function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s}(ft||(ft={}));class Lt{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return r+(t-n);r+=l}else{if(i!=ft.Simple&&a>=t&&(i==ft.TrackDel&&nt||i==ft.TrackBefore&&nt))return null;if(a>t||a==t&&e<0&&!l)return t==n||e<0?r:r+h;r+=h}n=a}if(t>n)throw new RangeError(`Position ${t} is out of range for changeset of length ${n}`);return r}touchesRange(t,e=t){for(let i=0,n=0;i=0&&n<=e&&l>=t)return ne?"cover":!0;n=l}return!1}toString(){let t="";for(let e=0;e=0?":"+n:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Lt(t)}static create(t){return new Lt(t)}}class J extends Lt{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Vn(this,(e,i,n,r,o)=>t=t.replace(n,n+(i-e),o),!1),t}mapDesc(t,e=!1){return Fn(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let n=0,r=0;n=0){e[n]=l,e[n+1]=o;let h=n>>1;for(;i.length0&&$t(i,e,r.text),r.forward(f),l+=f}let a=t[o++];for(;l>1].toJSON()))}return t}static of(t,e,i){let n=[],r=[],o=0,l=null;function h(f=!1){if(!f&&!n.length)return;ou||c<0||u>e)throw new RangeError(`Invalid change range ${c} to ${u} (in doc of length ${e})`);let p=d?typeof d=="string"?N.of(d.split(i||Ln)):d:N.empty,m=p.length;if(c==u&&m==0)return;co&&nt(n,c-o,-1),nt(n,u-c,m),$t(r,n,p),o=u}}return a(t),h(!l),l}static empty(t){return new J(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let n=0;nl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)e.push(r[0],0);else{for(;i.length=0&&e<=0&&e==s[n+1]?s[n]+=t:t==0&&s[n]==0?s[n+1]+=e:i?(s[n]+=t,s[n+1]+=e):s.push(t,e)}function $t(s,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i>1])),!(e||o==s.sections.length||s.sections[o+1]<0);)l=s.sections[o++],h=s.sections[o++];t(n,a,r,f,c),n=a,r=f}}}function Fn(s,t,e,i=!1){let n=[],r=i?[]:null,o=new Qe(s),l=new Qe(t);for(let h=-1;;)if(o.ins==-1&&l.ins==-1){let a=Math.min(o.len,l.len);nt(n,a,-1),o.forward(a),l.forward(a)}else if(l.ins>=0&&(o.ins<0||h==o.i||o.off==0&&(l.len=0&&h=0){let a=0,f=o.len;for(;f;)if(l.ins==-1){let c=Math.min(f,l.len);a+=c,f-=c,l.forward(c)}else if(l.ins==0&&l.lenh||o.ins>=0&&o.len>h)&&(l||i.length>a),r.forward2(h),o.forward(h)}}}}class Qe{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?N.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?N.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class fe{constructor(t,e,i){this.from=t,this.to=e,this.flags=i}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let t=this.flags&3;return t==3?null:t}get goalColumn(){let t=this.flags>>5;return t==33554431?void 0:t}map(t,e=-1){let i,n;return this.empty?i=n=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),n=t.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new fe(i,n,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return b.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return b.range(this.anchor,i)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return b.range(t.anchor,t.head)}static create(t,e,i){return new fe(t,e,i)}}class b{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:b.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let e=0;et.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new b(t.ranges.map(e=>fe.fromJSON(e)),t.main)}static single(t,e=t){return new b([b.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;nt?4:0)|r)}static normalized(t,e=0){let i=t[e];t.sort((n,r)=>n.from-r.from),e=t.indexOf(i);for(let n=1;nr.head?b.range(h,l):b.range(l,h))}}return new b(t,e)}}function qo(s,t){for(let e of s.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let Ss=0;class M{constructor(t,e,i,n,r){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=n,this.id=Ss++,this.default=t([]),this.extensions=typeof r=="function"?r(this):r}static define(t={}){return new M(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:vs),!!t.static,t.enables)}of(t){return new Oi([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Oi(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Oi(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}}function vs(s,t){return s==t||s.length==t.length&&s.every((e,i)=>e===t[i])}class Oi{constructor(t,e,i,n){this.dependencies=t,this.facet=e,this.type=i,this.value=n,this.id=Ss++}dynamicSlot(t){var e;let i=this.value,n=this.facet.compareInput,r=this.id,o=t[r]>>1,l=this.type==2,h=!1,a=!1,f=[];for(let c of this.dependencies)c=="doc"?h=!0:c=="selection"?a=!0:((e=t[c.id])!==null&&e!==void 0?e:1)&1||f.push(t[c.id]);return{create(c){return c.values[o]=i(c),1},update(c,u){if(h&&u.docChanged||a&&(u.docChanged||u.selection)||Hn(c,f)){let d=i(c);if(l?!or(d,c.values[o],n):!n(d,c.values[o]))return c.values[o]=d,1}return 0},reconfigure:(c,u)=>{let d,p=u.config.address[r];if(p!=null){let m=Ei(u,p);if(this.dependencies.every(g=>g instanceof M?u.facet(g)===c.facet(g):g instanceof vt?u.field(g,!1)==c.field(g,!1):!0)||(l?or(d=i(c),m,n):n(d=i(c),m)))return c.values[o]=m,0}else d=i(c);return c.values[o]=d,1}}}}function or(s,t,e){if(s.length!=t.length)return!1;for(let i=0;is[h.id]),n=e.map(h=>h.type),r=i.filter(h=>!(h&1)),o=s[t.id]>>1;function l(h){let a=[];for(let f=0;fi===n),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(lr).find(i=>i.field==this);return((e==null?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:i=>(i.values[e]=this.create(i),1),update:(i,n)=>{let r=i.values[e],o=this.updateF(r,n);return this.compareF(r,o)?0:(i.values[e]=o,1)},reconfigure:(i,n)=>n.config.address[this.id]!=null?(i.values[e]=n.field(this),0):(i.values[e]=this.create(i),1)}}init(t){return[this,lr.of({field:this,create:t})]}get extension(){return this}}const ae={lowest:4,low:3,default:2,high:1,highest:0};function Ve(s){return t=>new Uo(t,s)}const tn={highest:Ve(ae.highest),high:Ve(ae.high),default:Ve(ae.default),low:Ve(ae.low),lowest:Ve(ae.lowest)};class Uo{constructor(t,e){this.inner=t,this.prec=e}}class en{of(t){return new zn(this,t)}reconfigure(t){return en.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class zn{constructor(t,e){this.compartment=t,this.inner=e}}class Ri{constructor(t,e,i,n,r,o){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,i){let n=[],r=Object.create(null),o=new Map;for(let u of Da(t,e,o))u instanceof vt?n.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),h=[],a=[];for(let u of n)l[u.id]=a.length<<1,a.push(d=>u.slot(d));let f=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=f&&f[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=h.length<<1|1,vs(m,d))h.push(i.facet(p));else{let g=p.combine(d.map(y=>y.value));h.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=h.length<<1|1,h.push(g.value)):(l[g.id]=a.length<<1,a.push(y=>g.dynamicSlot(y)));l[p.id]=a.length<<1,a.push(g=>Ta(g,p,d))}}let c=a.map(u=>u(l));return new Ri(t,o,c,l,h,r)}}function Da(s,t,e){let i=[[],[],[],[],[]],n=new Map;function r(o,l){let h=n.get(o);if(h!=null){if(h<=l)return;let a=i[h].indexOf(o);a>-1&&i[h].splice(a,1),o instanceof zn&&e.delete(o.compartment)}if(n.set(o,l),Array.isArray(o))for(let a of o)r(a,l);else if(o instanceof zn){if(e.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let a=t.get(o.compartment)||o.inner;e.set(o.compartment,a),r(a,l)}else if(o instanceof Uo)r(o.inner,o.prec);else if(o instanceof vt)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Oi)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,ae.default);else{let a=o.extension;if(!a)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(a,l)}}return r(s,ae.default),i.reduce((o,l)=>o.concat(l))}function Ke(s,t){if(t&1)return 2;let e=t>>1,i=s.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;s.status[e]=4;let n=s.computeSlot(s,s.config.dynamicSlots[e]);return s.status[e]=2|n}function Ei(s,t){return t&1?s.config.staticValues[t>>1]:s.values[t>>1]}const Ko=M.define(),Go=M.define({combine:s=>s.some(t=>t),static:!0}),Qo=M.define({combine:s=>s.length?s[0]:void 0,static:!0}),Jo=M.define(),$o=M.define(),_o=M.define(),Xo=M.define({combine:s=>s.length?s[0]:!1});class re{constructor(t,e){this.type=t,this.value=e}static define(){return new Pa}}class Pa{of(t){return new re(this,t)}}class Ba{constructor(t){this.map=t}of(t){return new V(this,t)}}class V{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new V(this.type,e)}is(t){return this.type==t}static define(t={}){return new Ba(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let n of t){let r=n.map(e);r&&i.push(r)}return i}}V.reconfigure=V.define();V.appendConfig=V.define();class ${constructor(t,e,i,n,r,o){this.startState=t,this.changes=e,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&qo(i,e.newLength),r.some(l=>l.type==$.time)||(this.annotations=r.concat($.time.of(Date.now())))}static create(t,e,i,n,r,o){return new $(t,e,i,n,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation($.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}$.time=re.define();$.userEvent=re.define();$.addToHistory=re.define();$.remote=re.define();function Ra(s,t){let e=[];for(let i=0,n=0;;){let r,o;if(i=s[i]))r=s[i++],o=s[i++];else if(n=0;n--){let r=i[n](s);r instanceof $?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof $?s=r[0]:s=Zo(t,ve(r),!1)}return s}function Ia(s){let t=s.startState,e=t.facet(_o),i=s;for(let n=e.length-1;n>=0;n--){let r=e[n](s);r&&Object.keys(r).length&&(i=Yo(i,Wn(t,r,s.changes.newLength),!0))}return i==s?s:$.create(t,s.changes,s.selection,i.effects,i.annotations,i.scrollIntoView)}const Na=[];function ve(s){return s==null?Na:Array.isArray(s)?s:[s]}var wt=function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s}(wt||(wt={}));const La=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let jn;try{jn=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Va(s){if(jn)return jn.test(s);for(let t=0;t"€"&&(e.toUpperCase()!=e.toLowerCase()||La.test(e)))return!0}return!1}function Fa(s){return t=>{if(!/\S/.test(t))return wt.Space;if(Va(t))return wt.Word;for(let e=0;e-1)return wt.Word;return wt.Other}}class E{constructor(t,e,i,n,r,o){this.config=t,this.doc=e,this.selection=i,this.values=n,this.status=t.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ln.set(h,l)),e=null),n.set(o.value.compartment,o.value.extension)):o.is(V.reconfigure)?(e=null,i=o.value):o.is(V.appendConfig)&&(e=null,i=ve(i).concat(o.value));let r;e?r=t.startState.values.slice():(e=Ri.resolve(i,n,this),r=new E(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(l,h)=>h.reconfigure(l,this),null).values),new E(e,t.newDoc,t.newSelection,r,(o,l)=>l.update(o,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:b.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),n=this.changes(i.changes),r=[i.range],o=ve(i.effects);for(let l=1;lo.spec.fromJSON(l,h)))}}return E.create({doc:t.doc,selection:b.fromJSON(t.selection),extensions:e.extensions?n.concat([e.extensions]):n})}static create(t={}){let e=Ri.resolve(t.extensions||[],new Map),i=t.doc instanceof N?t.doc:N.of((t.doc||"").split(e.staticFacet(E.lineSeparator)||Ln)),n=t.selection?t.selection instanceof b?t.selection:b.single(t.selection.anchor,t.selection.head):b.single(0);return qo(n,i.length),e.staticFacet(Go)||(n=n.asSingle()),new E(e,i,n,e.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(E.tabSize)}get lineBreak(){return this.facet(E.lineSeparator)||` +`}get readOnly(){return this.facet(Xo)}phrase(t,...e){for(let i of this.facet(E.phrases))if(Object.prototype.hasOwnProperty.call(i,t)){t=i[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(i,n)=>{if(n=="$")return"$";let r=+(n||1);return!r||r>e.length?i:e[r-1]})),t}languageDataAt(t,e,i=-1){let n=[];for(let r of this.facet(Ko))for(let o of r(this,e,i))Object.prototype.hasOwnProperty.call(o,t)&&n.push(o[t]);return n}charCategorizer(t){return Fa(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:e,from:i,length:n}=this.doc.lineAt(t),r=this.charCategorizer(t),o=t-i,l=t-i;for(;o>0;){let h=mt(e,o,!1);if(r(e.slice(h,o))!=wt.Word)break;o=h}for(;ls.length?s[0]:4});E.lineSeparator=Qo;E.readOnly=Xo;E.phrases=M.define({compare(s,t){let e=Object.keys(s),i=Object.keys(t);return e.length==i.length&&e.every(n=>s[n]==t[n])}});E.languageData=Ko;E.changeFilter=Jo;E.transactionFilter=$o;E.transactionExtender=_o;en.reconfigure=V.define();function nn(s,t,e={}){let i={};for(let n of s)for(let r of Object.keys(n)){let o=n[r],l=i[r];if(l===void 0)i[r]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(e,r))i[r]=e[r](l,o);else throw new Error("Config merge conflict for field "+r)}for(let n in t)i[n]===void 0&&(i[n]=t[n]);return i}class pe{eq(t){return this==t}range(t,e=t){return qn.create(t,e,this)}}pe.prototype.startSide=pe.prototype.endSide=0;pe.prototype.point=!1;pe.prototype.mapMode=ft.TrackDel;let qn=class tl{constructor(t,e,i){this.from=t,this.to=e,this.value=i}static create(t,e,i){return new tl(t,e,i)}};function Un(s,t){return s.from-t.from||s.value.startSide-t.value.startSide}class Cs{constructor(t,e,i,n){this.from=t,this.to=e,this.value=i,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(t,e,i,n=0){let r=i?this.to:this.from;for(let o=n,l=r.length;;){if(o==l)return o;let h=o+l>>1,a=r[h]-t||(i?this.value[h].endSide:this.value[h].startSide)-e;if(h==o)return a>=0?o:l;a>=0?l=h:o=h+1}}between(t,e,i,n){for(let r=this.findIndex(e,-1e9,!0),o=this.findIndex(i,1e9,!1,r);rd||u==d&&a.startSide>0&&a.endSide<=0)continue;(d-u||a.endSide-a.startSide)<0||(o<0&&(o=u),a.point&&(l=Math.max(l,d-u)),i.push(a),n.push(u-o),r.push(d-o))}return{mapped:i.length?new Cs(n,r,i,l):null,pos:o}}}class L{constructor(t,e,i,n){this.chunkPos=t,this.chunk=e,this.nextLayer=i,this.maxPoint=n}static create(t,e,i,n){return new L(t,e,i,n)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:i=!1,filterFrom:n=0,filterTo:r=this.length}=t,o=t.filter;if(e.length==0&&!o)return this;if(i&&(e=e.slice().sort(Un)),this.isEmpty)return e.length?L.of(e):this;let l=new el(this,null,-1).goto(0),h=0,a=[],f=new Me;for(;l.value||h=0){let c=e[h++];f.addInner(c.from,c.to,c.value)||a.push(c)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||rl.to||r=r&&t<=r+o.length&&o.between(r,t-r,e-r,i)===!1)return}this.nextLayer.between(t,e,i)}}iter(t=0){return Je.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return Je.from(t).goto(e)}static compare(t,e,i,n,r=-1){let o=t.filter(c=>c.maxPoint>0||!c.isEmpty&&c.maxPoint>=r),l=e.filter(c=>c.maxPoint>0||!c.isEmpty&&c.maxPoint>=r),h=hr(o,l,i),a=new Fe(o,h,r),f=new Fe(l,h,r);i.iterGaps((c,u,d)=>ar(a,c,f,u,d,n)),i.empty&&i.length==0&&ar(a,0,f,0,0,n)}static eq(t,e,i=0,n){n==null&&(n=999999999);let r=t.filter(f=>!f.isEmpty&&e.indexOf(f)<0),o=e.filter(f=>!f.isEmpty&&t.indexOf(f)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let l=hr(r,o),h=new Fe(r,l,0).goto(i),a=new Fe(o,l,0).goto(i);for(;;){if(h.to!=a.to||!Kn(h.active,a.active)||h.point&&(!a.point||!h.point.eq(a.point)))return!1;if(h.to>n)return!0;h.next(),a.next()}}static spans(t,e,i,n,r=-1){let o=new Fe(t,null,r).goto(e),l=e,h=o.openStart;for(;;){let a=Math.min(o.to,i);if(o.point){let f=o.activeForPoint(o.to),c=o.pointFroml&&(n.span(l,a,o.active,h),h=o.openEnd(a));if(o.to>i)return h+(o.point&&o.to>i?1:0);l=o.to,o.next()}}static of(t,e=!1){let i=new Me;for(let n of t instanceof qn?[t]:e?Ha(t):t)i.add(n.from,n.to,n.value);return i.finish()}}L.empty=new L([],[],null,-1);function Ha(s){if(s.length>1)for(let t=s[0],e=1;e0)return s.slice().sort(Un);t=i}return s}L.empty.nextLayer=L.empty;class Me{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(t){this.chunks.push(new Cs(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}add(t,e,i){this.addInner(t,e,i)||(this.nextLayer||(this.nextLayer=new Me)).add(t,e,i)}addInner(t,e,i){let n=t-this.lastTo||i.startSide-this.last.endSide;if(n<=0&&(t-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return n<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=t,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+t,this.lastTo=e.to[i]+t,!0}finish(){return this.finishInner(L.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let e=L.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function hr(s,t,e){let i=new Map;for(let r of s)for(let o=0;o=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&n.push(new el(o,e,i,r));return n.length==1?n[0]:new Je(n)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let i of this.heap)i.goto(t,e);for(let i=this.heap.length>>1;i>=0;i--)pn(this.heap,i);return this.next(),this}forward(t,e){for(let i of this.heap)i.forward(t,e);for(let i=this.heap.length>>1;i>=0;i--)pn(this.heap,i);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),pn(this.heap,0)}}}function pn(s,t){for(let e=s[t];;){let i=(t<<1)+1;if(i>=s.length)break;let n=s[i];if(i+1=0&&(n=s[i+1],i++),e.compare(n)<0)break;s[i]=e,s[t]=n,t=i}}class Fe{constructor(t,e,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Je.from(t,e,i)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){ri(this.active,t),ri(this.activeTo,t),ri(this.activeRank,t),this.minActive=fr(this.active,this.activeTo)}addActive(t){let e=0,{value:i,to:n,rank:r}=this.cursor;for(;e-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>t){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),i&&ri(i,n)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[n]=0&&!(this.activeRank[i]t||this.activeTo[i]==t&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}openEnd(t){let e=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>t;i--)e++;return e}}function ar(s,t,e,i,n,r){s.goto(t),e.goto(i);let o=i+n,l=i,h=i-t;for(;;){let a=s.to+h-e.to||s.endSide-e.endSide,f=a<0?s.to+h:e.to,c=Math.min(f,o);if(s.point||e.point?s.point&&e.point&&(s.point==e.point||s.point.eq(e.point))&&Kn(s.activeForPoint(s.to+h),e.activeForPoint(e.to))||r.comparePoint(l,c,s.point,e.point):c>l&&!Kn(s.active,e.active)&&r.compareRange(l,c,s.active,e.active),f>o)break;l=f,a<=0&&s.next(),a>=0&&e.next()}}function Kn(s,t){if(s.length!=t.length)return!1;for(let e=0;e=t;i--)s[i+1]=s[i];s[t]=e}function fr(s,t){let e=-1,i=1e9;for(let n=0;n=t)return n;if(n==s.length)break;r+=s.charCodeAt(n)==9?e-r%e:1,n=mt(s,n)}return i===!0?-1:s.length}const Gn="ͼ",cr=typeof Symbol>"u"?"__"+Gn:Symbol.for(Gn),Qn=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class ee{constructor(t,e){this.rules=[];let{finish:i}=e||{};function n(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,l,h,a){let f=[],c=/^@(\w+)\b/.exec(o[0]),u=c&&c[1]=="keyframes";if(c&&l==null)return h.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))r(d.split(/,\s*/).map(m=>o.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),p,h);else if(p&&typeof p=="object"){if(!c)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(n(d),p,f,u)}else p!=null&&f.push(d.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(f.length||u)&&h.push((i&&!c&&!a?o.map(i):o).join(", ")+" {"+f.join(" ")+"}")}for(let o in t)r(n(o),t[o],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let t=ur[cr]||1;return ur[cr]=t+1,Gn+t.toString(36)}static mount(t,e){(t[Qn]||new Wa(t)).mount(Array.isArray(e)?e:[e])}}let li=null;class Wa{constructor(t){if(!t.head&&t.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(li)return t.adoptedStyleSheets=[li.sheet].concat(t.adoptedStyleSheets),t[Qn]=li;this.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(t.adoptedStyleSheets),li=this}else{this.styleTag=(t.ownerDocument||t).createElement("style");let e=t.head||t;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],t[Qn]=this}mount(t){let e=this.sheet,i=0,n=0;for(let r=0;r-1&&(this.modules.splice(l,1),n--,l=-1),l==-1){if(this.modules.splice(n++,0,o),e)for(let h=0;h",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},dr=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),ja=typeof navigator<"u"&&/Mac/.test(navigator.platform),qa=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ua=ja||dr&&+dr[1]<57;for(var tt=0;tt<10;tt++)ie[48+tt]=ie[96+tt]=String(tt);for(var tt=1;tt<=24;tt++)ie[tt+111]="F"+tt;for(var tt=65;tt<=90;tt++)ie[tt]=String.fromCharCode(tt+32),$e[tt]=String.fromCharCode(tt);for(var gn in ie)$e.hasOwnProperty(gn)||($e[gn]=ie[gn]);function Ka(s){var t=Ua&&(s.ctrlKey||s.altKey||s.metaKey)||qa&&s.shiftKey&&s.key&&s.key.length==1||s.key=="Unidentified",e=!t&&s.key||(s.shiftKey?$e:ie)[s.keyCode]||s.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}function Ii(s){let t;return s.nodeType==11?t=s.getSelection?s:s.ownerDocument:t=s,t.getSelection()}function Te(s,t){return t?s==t||s.contains(t.nodeType!=1?t.parentNode:t):!1}function Ga(s){let t=s.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Mi(s,t){if(!t.anchorNode)return!1;try{return Te(s,t.anchorNode)}catch{return!1}}function _e(s){return s.nodeType==3?De(s,0,s.nodeValue.length).getClientRects():s.nodeType==1?s.getClientRects():[]}function Ni(s,t,e,i){return e?pr(s,t,e,i,-1)||pr(s,t,e,i,1):!1}function Li(s){for(var t=0;;t++)if(s=s.previousSibling,!s)return t}function pr(s,t,e,i,n){for(;;){if(s==e&&t==i)return!0;if(t==(n<0?0:Xe(s))){if(s.nodeName=="DIV")return!1;let r=s.parentNode;if(!r||r.nodeType!=1)return!1;t=Li(s)+(n<0?0:1),s=r}else if(s.nodeType==1){if(s=s.childNodes[t+(n<0?-1:0)],s.nodeType==1&&s.contentEditable=="false")return!1;t=n<0?Xe(s):0}else return!1}}function Xe(s){return s.nodeType==3?s.nodeValue.length:s.childNodes.length}const nl={left:0,right:0,top:0,bottom:0};function As(s,t){let e=t?s.left:s.right;return{left:e,right:e,top:s.top,bottom:s.bottom}}function Qa(s){return{left:0,right:s.innerWidth,top:0,bottom:s.innerHeight}}function Ja(s,t,e,i,n,r,o,l){let h=s.ownerDocument,a=h.defaultView||window;for(let f=s;f;)if(f.nodeType==1){let c,u=f==h.body;if(u)c=Qa(a);else{if(f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let m=f.getBoundingClientRect();c={left:m.left,right:m.left+f.clientWidth,top:m.top,bottom:m.top+f.clientHeight}}let d=0,p=0;if(n=="nearest")t.top0&&t.bottom>c.bottom+p&&(p=t.bottom-c.bottom+p+o)):t.bottom>c.bottom&&(p=t.bottom-c.bottom+o,e<0&&t.top-p0&&t.right>c.right+d&&(d=t.right-c.right+d+r)):t.right>c.right&&(d=t.right-c.right+r,e<0&&t.lefte.clientHeight||e.scrollWidth>e.clientWidth)return e;e=e.assignedSlot||e.parentNode}else if(e.nodeType==11)e=e.host;else break;return null}class _a{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){this.set(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}set(t,e,i,n){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=n}}let ke=null;function sl(s){if(s.setActive)return s.setActive();if(ke)return s.focus(ke);let t=[];for(let e=s;e&&(t.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(s.focus(ke==null?{get preventScroll(){return ke={preventScroll:!0},!0}}:void 0),!ke){ke=!1;for(let e=0;ee)return c.domBoundsAround(t,e,a);if(u>=t&&n==-1&&(n=h,r=a),a>e&&c.dom.parentNode==this.dom){o=h,l=f;break}f=u,a=u+c.breakAfter}return{from:r,to:l<0?i+this.length:l,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(t=!1){this.dirty|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.dirty|=2),e.dirty&1)return;e.dirty|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.dirty&&this.markParentsDirty(!0))}setDOM(t){this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=Os){this.markDirty();for(let n=t;nthis.pos||t==this.pos&&(e>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function ll(s,t,e,i,n,r,o,l,h){let{children:a}=s,f=a.length?a[t]:null,c=r.length?r[r.length-1]:null,u=c?c.breakAfter:o;if(!(t==i&&f&&!o&&!u&&r.length<2&&f.merge(e,n,r.length?c:null,e==0,l,h))){if(i0&&(!o&&r.length&&f.merge(e,f.length,r[0],!1,l,0)?f.breakAfter=r.shift().breakAfter:(e2);var x={mac:wr||/Mac/.test(gt.platform),windows:/Win/.test(gt.platform),linux:/Linux|X11/.test(gt.platform),ie:sn,ie_version:al?Jn.documentMode||6:_n?+_n[1]:$n?+$n[1]:0,gecko:yr,gecko_version:yr?+(/Firefox\/(\d+)/.exec(gt.userAgent)||[0,0])[1]:0,chrome:!!mn,chrome_version:mn?+mn[1]:0,ios:wr,android:/Android\b/.test(gt.userAgent),webkit:br,safari:fl,webkit_version:br?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Jn.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Za=256;class ne extends j{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,e,i){return i&&(!(i instanceof ne)||this.length-(e-t)+i.length>Za)?!1:(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new ne(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new st(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return Xn(this.dom,t,e)}}class Ft extends j{constructor(t,e=[],i=0){super(),this.mark=t,this.children=e,this.length=i;for(let n of e)n.setParent(this)}setAttrs(t){if(rl(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.dirty|=6)}sync(t){this.dom?this.dirty&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t)}merge(t,e,i,n,r,o){return i&&(!(i instanceof Ft&&i.mark.eq(this.mark))||t&&r<=0||et&&e.push(i=t&&(n=r),i=h,r++}let o=this.length-t;return this.length=t,n>-1&&(this.children.length=n,this.markDirty()),new Ft(this.mark,e,o)}domAtPos(t){return dl(this,t)}coordsAt(t,e){return gl(this,t,e)}}function Xn(s,t,e){let i=s.nodeValue.length;t>i&&(t=i);let n=t,r=t,o=0;t==0&&e<0||t==i&&e>=0?x.chrome||x.gecko||(t?(n--,o=1):r=0)?0:l.length-1];return x.safari&&!o&&h.width==0&&(h=Array.prototype.find.call(l,a=>a.width)||h),o?As(h,o<0):h||null}class _t extends j{constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}static create(t,e,i){return new(t.customView||_t)(t,e,i)}split(t){let e=_t.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(){(!this.dom||!this.widget.updateDOM(this.dom))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,i,n,r,o){return i&&(!(i instanceof _t)||!this.widget.compare(i.widget)||t>0&&r<=0||e0?i.length-1:0;n=i[r],!(t>0?r==0:r==i.length-1||n.top0?-1:1);return this.length?n:As(n,this.side>0)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class cl extends _t{domAtPos(t){let{topView:e,text:i}=this.widget;return e?Yn(t,0,e,i,(n,r)=>n.domAtPos(r),n=>new st(i,Math.min(n,i.nodeValue.length))):new st(i,Math.min(t,i.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(t,e){let{topView:i,text:n}=this.widget;return i?ul(t,e,i,n):Math.min(e,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(t,e){let{topView:i,text:n}=this.widget;return i?Yn(t,e,i,n,(r,o,l)=>r.coordsAt(o,l),(r,o)=>Xn(n,r,o)):Xn(n,t,e)}destroy(){var t;super.destroy(),(t=this.widget.topView)===null||t===void 0||t.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function Yn(s,t,e,i,n,r){if(e instanceof Ft){for(let o=e.dom.firstChild;o;o=o.nextSibling){let l=j.get(o);if(!l)return r(s,t);let h=Te(o,i),a=l.length+(h?i.nodeValue.length:0);if(s0?-1:1);return i&&i.tope.top?{left:e.left,right:e.right,top:i.top,bottom:i.bottom}:e}get overrideDOMText(){return N.empty}}ne.prototype.children=_t.prototype.children=Pe.prototype.children=Os;function tf(s,t){let e=s.parent,i=e?e.children.indexOf(s):-1;for(;e&&i>=0;)if(t<0?i>0:ir&&t0;r--){let o=i[r-1];if(o.dom.parentNode==e)return o.domAtPos(o.length)}for(let r=n;r0&&t instanceof Ft&&n.length&&(i=n[n.length-1])instanceof Ft&&i.mark.eq(t.mark)?pl(i,t.children[0],e-1):(n.push(t),t.setParent(s)),s.length+=t.length}function gl(s,t,e){let i=null,n=-1,r=null,o=-1;function l(a,f){for(let c=0,u=0;c=f&&(d.children.length?l(d,f-u):!r&&(p>f||u==p&&d.getSide()>0)?(r=d,o=f-u):(u0?3e8:-4e8:e>0?1e8:-1e8,new ge(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,n;if(t.isBlockGap)i=-5e8,n=4e8;else{let{start:r,end:o}=ml(t,e);i=(r?e?-3e8:-1:5e8)-1,n=(o?e?2e8:1:-6e8)+1}return new ge(t,i,n,e,t.widget||null,!0)}static line(t){return new ei(t)}static set(t,e=!1){return L.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}H.none=L.empty;class rn extends H{constructor(t){let{start:e,end:i}=ml(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){return this==t||t instanceof rn&&this.tagName==t.tagName&&this.class==t.class&&Ms(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}rn.prototype.point=!1;class ei extends H{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof ei&&this.spec.class==t.spec.class&&Ms(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}ei.prototype.mapMode=ft.TrackBefore;ei.prototype.point=!0;class ge extends H{constructor(t,e,i,n,r,o){super(e,i,r,t),this.block=n,this.isReplace=o,this.mapMode=n?e<=0?ft.TrackBefore:ft.TrackAfter:ft.TrackDel}get type(){return this.startSide=5}eq(t){return t instanceof ge&&nf(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}ge.prototype.point=!0;function ml(s,t=!1){let{inclusiveStart:e,inclusiveEnd:i}=s;return e==null&&(e=s.inclusive),i==null&&(i=s.inclusive),{start:e??t,end:i??t}}function nf(s,t){return s==t||!!(s&&t&&s.compare(t))}function es(s,t,e,i=0){let n=e.length-1;n>=0&&e[n]+i>=s?e[n]=Math.max(e[n],t):e.push(s,t)}class rt extends j{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,i,n,r,o){if(i){if(!(i instanceof rt))return!1;this.dom||i.transferDOM(this)}return n&&this.setDeco(i?i.attrs:null),hl(this,t,e,i?i.children:[],r,o),!0}split(t){let e=new rt;if(e.breakAfter=this.breakAfter,this.length==0)return e;let{i,off:n}=this.childPos(t);n&&(e.append(this.children[i].split(n),0),this.children[i].merge(n,this.children[i].length,null,!1,0,0),i++);for(let r=i;r0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){Ms(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){pl(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=Zn(e,this.attrs||{})),i&&(this.attrs=Zn({class:i},this.attrs||{}))}domAtPos(t){return dl(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.dirty|=6)}sync(t){var e;this.dom?this.dirty&4&&(rl(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(ts(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t);let i=this.dom.lastChild;for(;i&&j.get(i)instanceof Ft;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((e=j.get(i))===null||e===void 0?void 0:e.isEditable)==!1&&(!x.ios||!this.children.some(n=>n instanceof ne))){let n=document.createElement("BR");n.cmIgnore=!0,this.dom.appendChild(n)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0;for(let e of this.children){if(!(e instanceof ne)||/[^ -~]/.test(e.text))return null;let i=_e(e.dom);if(i.length!=1)return null;t+=i[0].width}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length}:null}coordsAt(t,e){return gl(this,t,e)}become(t){return!1}get type(){return G.Text}static find(t,e){for(let i=0,n=0;i=e){if(r instanceof rt)return r;if(o>e)break}n=o+r.breakAfter}return null}}class ue extends j{constructor(t,e,i){super(),this.widget=t,this.length=e,this.type=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,n,r,o){return i&&(!(i instanceof ue)||!this.widget.compare(i.widget)||t>0&&r<=0||e0;){if(this.textOff==this.text.length){let{value:r,lineBreak:o,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=r,this.textOff=0}let n=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(hi(new ne(this.text.slice(this.textOff,this.textOff+n)),e),i),this.atCursorPos=!0,this.textOff+=n,t-=n,i=0}}span(t,e,i,n){this.buildText(e-t,i,n),this.pos=e,this.openStart<0&&(this.openStart=n)}point(t,e,i,n,r,o){if(this.disallowBlockEffectsFor[o]&&i instanceof ge){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=e-t;if(i instanceof ge)if(i.block){let{type:h}=i;h==G.WidgetAfter&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ue(i.widget||new kr("div"),l,h))}else{let h=_t.create(i.widget||new kr("span"),l,l?0:i.startSide),a=this.atCursorPos&&!h.isEditable&&r<=n.length&&(t0),f=!h.isEditable&&(tn.length||i.startSide<=0),c=this.getLine();this.pendingBuffer==2&&!a&&(this.pendingBuffer=0),this.flushBuffer(n),a&&(c.append(hi(new Pe(1),n),r),r=n.length+Math.max(0,r-n.length)),c.append(hi(h,n),r),this.atCursorPos=f,this.pendingBuffer=f?tn.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=r)}static build(t,e,i,n,r){let o=new Ts(t,e,i,r);return o.openEnd=L.spans(n,e,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function hi(s,t){for(let e of t)s=new Ft(e,[s],s.length);return s}class kr extends ti{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}}const yl=M.define(),bl=M.define(),wl=M.define(),kl=M.define(),is=M.define(),xl=M.define(),Sl=M.define({combine:s=>s.some(t=>t)}),sf=M.define({combine:s=>s.some(t=>t)});class Vi{constructor(t,e="nearest",i="nearest",n=5,r=5){this.range=t,this.y=e,this.x=i,this.yMargin=n,this.xMargin=r}map(t){return t.empty?this:new Vi(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}const xr=V.define({map:(s,t)=>s.map(t)});function Tt(s,t,e){let i=s.facet(kl);i.length?i[0](t):window.onerror?window.onerror(String(t),e,void 0,void 0,t):e?console.error(e+":",t):console.error(t)}const on=M.define({combine:s=>s.length?s[0]:!0});let rf=0;const We=M.define();class Ht{constructor(t,e,i,n){this.id=t,this.create=e,this.domEventHandlers=i,this.extension=n(this)}static define(t,e){const{eventHandlers:i,provide:n,decorations:r}=e||{};return new Ht(rf++,t,i,o=>{let l=[We.of(o)];return r&&l.push(Ye.of(h=>{let a=h.plugin(o);return a?r(a):H.none})),n&&l.push(n(o)),l})}static fromClass(t,e){return Ht.define(i=>new t(i),e)}}class yn{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(Tt(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){Tt(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(!((e=this.value)===null||e===void 0)&&e.destroy)try{this.value.destroy()}catch(i){Tt(t.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const vl=M.define(),Ds=M.define(),Ye=M.define(),Cl=M.define(),Al=M.define(),je=M.define();class Vt{constructor(t,e,i,n){this.fromA=t,this.toA=e,this.fromB=i,this.toB=n}join(t){return new Vt(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let n=t[e-1];if(!(n.fromA>i.toA)){if(n.toAf)break;r+=2}if(!h)return i;new Vt(h.fromA,h.toA,h.fromB,h.toB).addToSet(i),o=h.toA,l=h.toB}}}class Fi{constructor(t,e,i){this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=J.empty(this.startState.doc.length);for(let o of i)this.changes=this.changes.compose(o.changes);let n=[];this.changes.iterChangedRanges((o,l,h,a)=>n.push(new Vt(o,l,h,a))),this.changedRanges=n;let r=t.hasFocus;r!=t.inputState.notifiedFocused&&(t.inputState.notifiedFocused=r,this.flags|=1)}static create(t,e,i){return new Fi(t,e,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var _=function(s){return s[s.LTR=0]="LTR",s[s.RTL=1]="RTL",s}(_||(_={}));const ns=_.LTR,of=_.RTL;function Ol(s){let t=[];for(let e=0;e=e){if(l.level==i)return o;(r<0||(n!=0?n<0?l.frome:t[r].level>l.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}const U=[];function cf(s,t){let e=s.length,i=t==ns?1:2,n=t==ns?2:1;if(!s||i==1&&!ff.test(s))return Ml(e);for(let o=0,l=i,h=i;o=0;u-=3)if(Dt[u+1]==-f){let d=Dt[u+2],p=d&2?i:d&4?d&1?n:i:0;p&&(U[o]=U[Dt[u]]=p),l=u;break}}else{if(Dt.length==189)break;Dt[l++]=o,Dt[l++]=a,Dt[l++]=h}else if((c=U[o])==2||c==1){let u=c==i;h=u?0:1;for(let d=l-3;d>=0;d-=3){let p=Dt[d+2];if(p&2)break;if(u)Dt[d+2]|=2;else{if(p&4)break;Dt[d+2]|=4}}}for(let o=0;ol;){let f=a,c=U[--a]!=2;for(;a>l&&c==(U[a-1]!=2);)a--;r.push(new Ae(a,f,c?2:1))}else r.push(new Ae(l,o,0))}else for(let o=0;o1)for(let h of this.points)h.node==t&&h.pos>this.text.length&&(h.pos-=o-1);i=r+o}}readNode(t){if(t.cmIgnore)return;let e=j.get(t),i=e&&e.overrideDOMText;if(i!=null){this.findPointInside(t,i.length);for(let n=i.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(t.nodeType==3?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+Math.min(e,i.offset))}}function Sr(s){return s.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(s.nodeName)}class vr{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class Cr extends j{constructor(t){super(),this.view=t,this.compositionDeco=H.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new rt],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Vt(0,0,0,t.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(t){let e=t.changedRanges;this.minWidth>0&&e.length&&(e.every(({fromA:o,toA:l})=>lthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=H.none:(t.transactions.length||this.dirty)&&(this.compositionDeco=pf(this.view,t.changes)),(x.ie||x.chrome)&&!this.compositionDeco.size&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let i=this.decorations,n=this.updateDeco(),r=bf(i,n,t.changes);return e=Vt.extendWithRanges(e,r),this.dirty==0&&e.length==0?!1:(this.updateInner(e,t.startState.doc.length),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=x.chrome||x.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(r),this.dirty=0,r&&(r.written||i.selectionRange.focusNode!=r.node)&&(this.forceSelection=!0),this.dom.style.height=""});let n=[];if(this.view.viewport.from||this.view.viewport.to=0?t[n]:null;if(!r)break;let{fromA:o,toA:l,fromB:h,toB:a}=r,{content:f,breakAtStart:c,openStart:u,openEnd:d}=Ts.build(this.view.state.doc,h,a,this.decorations,this.dynamicDecorationMap),{i:p,off:m}=i.findPos(l,1),{i:g,off:y}=i.findPos(o,-1);ll(this,g,y,p,m,f,c,u,d)}}updateSelection(t=!1,e=!1){if((t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange(),!(e||this.mayControlSelection()))return;let i=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,r=this.domAtPos(n.anchor),o=n.empty?r:this.domAtPos(n.head);if(x.gecko&&n.empty&&df(r)){let h=document.createTextNode("");this.view.observer.ignore(()=>r.node.insertBefore(h,r.node.childNodes[r.offset]||null)),r=o=new st(h,0),i=!0}let l=this.view.observer.selectionRange;(i||!l.focusNode||!Ni(r.node,r.offset,l.anchorNode,l.anchorOffset)||!Ni(o.node,o.offset,l.focusNode,l.focusOffset))&&(this.view.observer.ignore(()=>{x.android&&x.chrome&&this.dom.contains(l.focusNode)&&wf(l.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=Ii(this.view.root);if(h)if(n.empty){if(x.gecko){let a=mf(r.node,r.offset);if(a&&a!=3){let f=Bl(r.node,r.offset,a==1?1:-1);f&&(r=new st(f,a==1?0:f.nodeValue.length))}}h.collapse(r.node,r.offset),n.bidiLevel!=null&&l.cursorBidiLevel!=null&&(l.cursorBidiLevel=n.bidiLevel)}else if(h.extend){h.collapse(r.node,r.offset);try{h.extend(o.node,o.offset)}catch{}}else{let a=document.createRange();n.anchor>n.head&&([r,o]=[o,r]),a.setEnd(o.node,o.offset),a.setStart(r.node,r.offset),h.removeAllRanges(),h.addRange(a)}}),this.view.observer.setSelectionRange(r,o)),this.impreciseAnchor=r.precise?null:new st(l.anchorNode,l.anchorOffset),this.impreciseHead=o.precise?null:new st(l.focusNode,l.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:t}=this,e=t.state.selection.main,i=Ii(t.root),{anchorNode:n,anchorOffset:r}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let o=rt.find(this,e.head);if(!o)return;let l=o.posAtStart;if(e.head==l||e.head==l+o.length)return;let h=this.coordsAt(e.head,-1),a=this.coordsAt(e.head,1);if(!h||!a||h.bottom>a.top)return;let f=this.domAtPos(e.head+e.assoc);i.collapse(f.node,f.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&i.collapse(n,r)}mayControlSelection(){let t=this.view.root.activeElement;return t==this.dom||Mi(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t))}nearest(t){for(let e=t;e;){let i=j.get(e);if(i&&i.rootView==this)return i;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;eo||t==o&&r.type!=G.WidgetBefore&&r.type!=G.WidgetAfter&&(!n||e==2||this.children[n-1].breakAfter||this.children[n-1].type==G.WidgetBefore&&e>-2))return r.coordsAt(t-o,e);i=o}}measureVisibleLineHeights(t){let e=[],{from:i,to:n}=t,r=this.view.contentDOM.clientWidth,o=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,h=this.view.textDirection==_.LTR;for(let a=0,f=0;fn)break;if(a>=i){let d=c.dom.getBoundingClientRect();if(e.push(d.height),o){let p=c.dom.lastChild,m=p?_e(p):[];if(m.length){let g=m[m.length-1],y=h?g.right-d.left:d.right-g.left;y>l&&(l=y,this.minWidth=r,this.minWidthFrom=a,this.minWidthTo=u)}}}a=u+c.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return getComputedStyle(this.children[e].dom).direction=="rtl"?_.RTL:_.LTR}measureTextSize(){for(let n of this.children)if(n instanceof rt){let r=n.measureTextSize();if(r)return r}let t=document.createElement("div"),e,i;return t.className="cm-line",t.style.width="99999px",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let n=_e(t.firstChild)[0];e=t.getBoundingClientRect().height,i=n?n.width/27:7,t.remove()}),{lineHeight:e,charWidth:i}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new ol(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,n=0;;n++){let r=n==e.viewports.length?null:e.viewports[n],o=r?r.from-1:this.length;if(o>i){let l=e.lineBlockAt(o).bottom-e.lineBlockAt(i).top;t.push(H.replace({widget:new Ar(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return H.set(t)}updateDeco(){let t=this.view.state.facet(Ye).map((e,i)=>(this.dynamicDecorationMap[i]=typeof e=="function")?e(this.view):e);for(let e=t.length;ee.anchor?-1:1),n;if(!i)return;!e.empty&&(n=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,n.left),top:Math.min(i.top,n.top),right:Math.max(i.right,n.right),bottom:Math.max(i.bottom,n.bottom)});let r=0,o=0,l=0,h=0;for(let f of this.view.state.facet(Al).map(c=>c(this.view)))if(f){let{left:c,right:u,top:d,bottom:p}=f;c!=null&&(r=Math.max(r,c)),u!=null&&(o=Math.max(o,u)),d!=null&&(l=Math.max(l,d)),p!=null&&(h=Math.max(h,p))}let a={left:i.left-r,top:i.top-l,right:i.right+o,bottom:i.bottom+h};Ja(this.view.scrollDOM,a,e.head0&&e<=0)s=s.childNodes[t-1],t=Xe(s);else if(s.nodeType==1&&t=0)s=s.childNodes[t],t=0;else return null}}function mf(s,t){return s.nodeType!=1?0:(t&&s.childNodes[t-1].contentEditable=="false"?1:0)|(t0;){let a=mt(n.text,o,!1);if(i(n.text.slice(a,o))!=h)break;o=a}for(;ls?t.left-s:Math.max(0,s-t.right)}function Sf(s,t){return t.top>s?t.top-s:Math.max(0,s-t.bottom)}function bn(s,t){return s.topt.top+1}function Or(s,t){return ts.bottom?{top:s.top,left:s.left,right:s.right,bottom:t}:s}function rs(s,t,e){let i,n,r,o,l=!1,h,a,f,c;for(let p=s.firstChild;p;p=p.nextSibling){let m=_e(p);for(let g=0;gC||o==C&&r>k)&&(i=p,n=y,r=k,o=C,l=!k||(k>0?g0)),k==0?e>y.bottom&&(!f||f.bottomy.top)&&(a=p,c=y):f&&bn(f,y)?f=Mr(f,y.bottom):c&&bn(c,y)&&(c=Or(c,y.top))}}if(f&&f.bottom>=e?(i=h,n=f):c&&c.top<=e&&(i=a,n=c),!i)return{node:s,offset:0};let u=Math.max(n.left,Math.min(n.right,t));if(i.nodeType==3)return Tr(i,u,e);if(l&&i.contentEditable!="false")return rs(i,u,e);let d=Array.prototype.indexOf.call(s.childNodes,i)+(t>=(n.left+n.right)/2?1:0);return{node:s,offset:d}}function Tr(s,t,e){let i=s.nodeValue.length,n=-1,r=1e9,o=0;for(let l=0;le?f.top-e:e-f.bottom)-1;if(f.left-1<=t&&f.right+1>=t&&c=(f.left+f.right)/2,d=u;if((x.chrome||x.gecko)&&De(s,l).getBoundingClientRect().left==f.right&&(d=!u),c<=0)return{node:s,offset:l+(d?1:0)};n=l+(d?1:0),r=c}}}return{node:s,offset:n>-1?n:o>0?s.nodeValue.length:0}}function Rl(s,{x:t,y:e},i,n=-1){var r;let o=s.contentDOM.getBoundingClientRect(),l=o.top+s.viewState.paddingTop,h,{docHeight:a}=s.viewState,f=e-l;if(f<0)return 0;if(f>a)return s.state.doc.length;for(let y=s.defaultLineHeight/2,k=!1;h=s.elementAtHeight(f),h.type!=G.Text;)for(;f=n>0?h.bottom+y:h.top-y,!(f>=0&&f<=a);){if(k)return i?null:0;k=!0,n=-n}e=l+f;let c=h.from;if(cs.viewport.to)return s.viewport.to==s.state.doc.length?s.state.doc.length:i?null:Dr(s,o,h,t,e);let u=s.dom.ownerDocument,d=s.root.elementFromPoint?s.root:u,p=d.elementFromPoint(t,e);p&&!s.contentDOM.contains(p)&&(p=null),p||(t=Math.max(o.left+1,Math.min(o.right-1,t)),p=d.elementFromPoint(t,e),p&&!s.contentDOM.contains(p)&&(p=null));let m,g=-1;if(p&&((r=s.docView.nearest(p))===null||r===void 0?void 0:r.isEditable)!=!1){if(u.caretPositionFromPoint){let y=u.caretPositionFromPoint(t,e);y&&({offsetNode:m,offset:g}=y)}else if(u.caretRangeFromPoint){let y=u.caretRangeFromPoint(t,e);y&&({startContainer:m,startOffset:g}=y,(!s.contentDOM.contains(m)||x.safari&&vf(m,g,t)||x.chrome&&Cf(m,g,t))&&(m=void 0))}}if(!m||!s.docView.dom.contains(m)){let y=rt.find(s.docView,c);if(!y)return f>h.top+h.height/2?h.to:h.from;({node:m,offset:g}=rs(y.dom,t,e))}return s.docView.posFromDOM(m,g)}function Dr(s,t,e,i,n){let r=Math.round((i-t.left)*s.defaultCharacterWidth);if(s.lineWrapping&&e.height>s.defaultLineHeight*1.5){let l=Math.floor((n-e.top)/s.defaultLineHeight);r+=l*s.viewState.heightOracle.lineLength}let o=s.state.sliceDoc(e.from,e.to);return e.from+za(o,r,s.state.tabSize)}function vf(s,t,e){let i;if(s.nodeType!=3||t!=(i=s.nodeValue.length))return!1;for(let n=s.nextSibling;n;n=n.nextSibling)if(n.nodeType!=1||n.nodeName!="BR")return!1;return De(s,i-1,i).getBoundingClientRect().left>e}function Cf(s,t,e){if(t!=0)return!1;for(let n=s;;){let r=n.parentNode;if(!r||r.nodeType!=1||r.firstChild!=n)return!1;if(r.classList.contains("cm-line"))break;n=r}let i=s.nodeType==1?s.getBoundingClientRect():De(s,0,Math.max(s.nodeValue.length,1)).getBoundingClientRect();return e-i.left>5}function Af(s,t,e,i){let n=s.state.doc.lineAt(t.head),r=!i||!s.lineWrapping?null:s.coordsAtPos(t.assoc<0&&t.head>n.from?t.head-1:t.head);if(r){let h=s.dom.getBoundingClientRect(),a=s.textDirectionAt(n.from),f=s.posAtCoords({x:e==(a==_.LTR)?h.right-1:h.left+1,y:(r.top+r.bottom)/2});if(f!=null)return b.cursor(f,e?-1:1)}let o=rt.find(s.docView,t.head),l=o?e?o.posAtEnd:o.posAtStart:e?n.to:n.from;return b.cursor(l,e?-1:1)}function Pr(s,t,e,i){let n=s.state.doc.lineAt(t.head),r=s.bidiSpans(n),o=s.textDirectionAt(n.from);for(let l=t,h=null;;){let a=uf(n,r,o,l,e),f=Tl;if(!a){if(n.number==(e?s.state.doc.lines:1))return l;f=` +`,n=s.state.doc.line(n.number+(e?1:-1)),r=s.bidiSpans(n),a=b.cursor(e?n.from:n.to)}if(h){if(!h(f))return l}else{if(!i)return a;h=i(f)}l=a}}function Of(s,t,e){let i=s.state.charCategorizer(t),n=i(e);return r=>{let o=i(r);return n==wt.Space&&(n=o),n==o}}function Mf(s,t,e,i){let n=t.head,r=e?1:-1;if(n==(e?s.state.doc.length:0))return b.cursor(n,t.assoc);let o=t.goalColumn,l,h=s.contentDOM.getBoundingClientRect(),a=s.coordsAtPos(n),f=s.documentTop;if(a)o==null&&(o=a.left-h.left),l=r<0?a.top:a.bottom;else{let d=s.viewState.lineBlockAt(n);o==null&&(o=Math.min(h.right-h.left,s.defaultCharacterWidth*(n-d.from))),l=(r<0?d.top:d.bottom)+f}let c=h.left+o,u=i??s.defaultLineHeight>>1;for(let d=0;;d+=10){let p=l+(u+d)*r,m=Rl(s,{x:c,y:p},!1,r);if(ph.bottom||(r<0?mn))return b.cursor(m,t.assoc,void 0,o)}}function wn(s,t,e){let i=s.state.facet(Cl).map(n=>n(s));for(;;){let n=!1;for(let r of i)r.between(e.from-1,e.from+1,(o,l,h)=>{e.from>o&&e.frome.from?b.cursor(o,1):b.cursor(l,-1),n=!0)});if(!n)return e}}class Tf{constructor(t){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;let e=(i,n)=>{this.ignoreDuringComposition(n)||n.type=="keydown"&&this.keydown(t,n)||(this.mustFlushObserver(n)&&t.observer.forceFlush(),this.runCustomHandlers(n.type,t,n)?n.preventDefault():i(t,n))};for(let i in X){let n=X[i];t.contentDOM.addEventListener(i,r=>{Br(t,r)&&e(n,r)},os[i]),this.registeredEvents.push(i)}t.scrollDOM.addEventListener("mousedown",i=>{i.target==t.scrollDOM&&e(X.mousedown,i)}),x.chrome&&x.chrome_version==102&&t.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?t.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,t.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=t.hasFocus,x.safari&&t.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}ensureHandlers(t,e){var i;let n;this.customHandlers=[];for(let r of e)if(n=(i=r.update(t).spec)===null||i===void 0?void 0:i.domEventHandlers){this.customHandlers.push({plugin:r.value,handlers:n});for(let o in n)this.registeredEvents.indexOf(o)<0&&o!="scroll"&&(this.registeredEvents.push(o),t.contentDOM.addEventListener(o,l=>{Br(t,l)&&this.runCustomHandlers(o,t,l)&&l.preventDefault()}))}}runCustomHandlers(t,e,i){for(let n of this.customHandlers){let r=n.handlers[t];if(r)try{if(r.call(n.plugin,i,e)||i.defaultPrevented)return!0}catch(o){Tt(e.state,o)}}return!1}runScrollHandlers(t,e){this.lastScrollTop=t.scrollDOM.scrollTop,this.lastScrollLeft=t.scrollDOM.scrollLeft;for(let i of this.customHandlers){let n=i.handlers.scroll;if(n)try{n.call(i.plugin,e,t)}catch(r){Tt(t.state,r)}}}keydown(t,e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()n.keyCode==e.keyCode))&&!e.ctrlKey||Df.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=i||e,setTimeout(()=>this.flushIOSKey(t),250),!0):!1}flushIOSKey(t){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,Ce(t.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:x.safari&&!x.ios&&Date.now()-this.compositionEndedAt<100?(this.compositionEndedAt=0,!0):!1:!1}mustFlushObserver(t){return t.type=="keydown"&&t.keyCode!=229}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const El=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Df="dthko",Il=[16,17,18,20,91,92,224,225];function ai(s){return s*.7+8}class Pf{constructor(t,e,i,n){this.view=t,this.style=i,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=$a(t.contentDOM);let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(E.allowMultipleSelections)&&Bf(t,e),this.dragMove=Rf(t,e),this.dragging=Ef(t,e)&&Fl(e)==1?null:!1,this.dragging===!1&&(e.preventDefault(),this.select(e))}move(t){var e;if(t.buttons==0)return this.destroy();if(this.dragging!==!1)return;this.select(this.lastEvent=t);let i=0,n=0,r=((e=this.scrollParent)===null||e===void 0?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};t.clientX<=r.left?i=-ai(r.left-t.clientX):t.clientX>=r.right&&(i=ai(t.clientX-r.right)),t.clientY<=r.top?n=-ai(r.top-t.clientY):t.clientY>=r.bottom&&(n=ai(t.clientY-r.bottom)),this.setScrollSpeed(i,n)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}select(t){let e=this.style.get(t,this.extend,this.multiple);(this.mustSelect||!e.eq(this.view.state.selection)||e.main.assoc!=this.view.state.selection.main.assoc)&&this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Bf(s,t){let e=s.state.facet(yl);return e.length?e[0](t):x.mac?t.metaKey:t.ctrlKey}function Rf(s,t){let e=s.state.facet(bl);return e.length?e[0](t):x.mac?!t.altKey:!t.ctrlKey}function Ef(s,t){let{main:e}=s.state.selection;if(e.empty)return!1;let i=Ii(s.root);if(!i||i.rangeCount==0)return!0;let n=i.getRangeAt(0).getClientRects();for(let r=0;r=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return!0}return!1}function Br(s,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target,i;e!=s.contentDOM;e=e.parentNode)if(!e||e.nodeType==11||(i=j.get(e))&&i.ignoreEvent(t))return!1;return!0}const X=Object.create(null),os=Object.create(null),Nl=x.ie&&x.ie_version<15||x.ios&&x.webkit_version<604;function If(s){let t=s.dom.parentNode;if(!t)return;let e=t.appendChild(document.createElement("textarea"));e.style.cssText="position: fixed; left: -10000px; top: 10px",e.focus(),setTimeout(()=>{s.focus(),e.remove(),Ll(s,e.value)},50)}function Ll(s,t){let{state:e}=s,i,n=1,r=e.toText(t),o=r.lines==e.selection.ranges.length;if(ls!=null&&e.selection.ranges.every(h=>h.empty)&&ls==r.toString()){let h=-1;i=e.changeByRange(a=>{let f=e.doc.lineAt(a.from);if(f.from==h)return{range:a};h=f.from;let c=e.toText((o?r.line(n++).text:t)+e.lineBreak);return{changes:{from:f.from,insert:c},range:b.cursor(a.from+c.length)}})}else o?i=e.changeByRange(h=>{let a=r.line(n++);return{changes:{from:h.from,to:h.to,insert:a.text},range:b.cursor(h.from+a.length)}}):i=e.replaceSelection(r);s.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}X.keydown=(s,t)=>{s.inputState.setSelectionOrigin("select"),t.keyCode==27?s.inputState.lastEscPress=Date.now():Il.indexOf(t.keyCode)<0&&(s.inputState.lastEscPress=0)};X.touchstart=(s,t)=>{s.inputState.lastTouchTime=Date.now(),s.inputState.setSelectionOrigin("select.pointer")};X.touchmove=s=>{s.inputState.setSelectionOrigin("select.pointer")};os.touchstart=os.touchmove={passive:!0};X.mousedown=(s,t)=>{if(s.observer.flush(),s.inputState.lastTouchTime>Date.now()-2e3)return;let e=null;for(let i of s.state.facet(wl))if(e=i(s,t),e)break;if(!e&&t.button==0&&(e=Vf(s,t)),e){let i=s.root.activeElement!=s.contentDOM;i&&s.observer.ignore(()=>sl(s.contentDOM)),s.inputState.startMouseSelection(new Pf(s,t,e,i))}};function Rr(s,t,e,i){if(i==1)return b.cursor(t,e);if(i==2)return kf(s.state,t,e);{let n=rt.find(s.docView,t),r=s.state.doc.lineAt(n?n.posAtEnd:t),o=n?n.posAtStart:r.from,l=n?n.posAtEnd:r.to;return ls>=t.top&&s<=t.bottom,Er=(s,t,e)=>Vl(t,e)&&s>=e.left&&s<=e.right;function Nf(s,t,e,i){let n=rt.find(s.docView,t);if(!n)return 1;let r=t-n.posAtStart;if(r==0)return 1;if(r==n.length)return-1;let o=n.coordsAt(r,-1);if(o&&Er(e,i,o))return-1;let l=n.coordsAt(r,1);return l&&Er(e,i,l)?1:o&&Vl(i,o)?-1:1}function Ir(s,t){let e=s.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:e,bias:Nf(s,e,t.clientX,t.clientY)}}const Lf=x.ie&&x.ie_version<=11;let Nr=null,Lr=0,Vr=0;function Fl(s){if(!Lf)return s.detail;let t=Nr,e=Vr;return Nr=s,Vr=Date.now(),Lr=!t||e>Date.now()-400&&Math.abs(t.clientX-s.clientX)<2&&Math.abs(t.clientY-s.clientY)<2?(Lr+1)%3:1}function Vf(s,t){let e=Ir(s,t),i=Fl(t),n=s.state.selection;return{update(r){r.docChanged&&(e.pos=r.changes.mapPos(e.pos),n=n.map(r.changes))},get(r,o,l){let h=Ir(s,r),a=Rr(s,h.pos,h.bias,i);if(e.pos!=h.pos&&!o){let f=Rr(s,e.pos,e.bias,i),c=Math.min(f.from,a.from),u=Math.max(f.to,a.to);a=c1&&n.ranges.some(f=>f.eq(a))?Ff(n,a):l?n.addRange(a):b.create([a])}}}function Ff(s,t){for(let e=0;;e++)if(s.ranges[e].eq(t))return b.create(s.ranges.slice(0,e).concat(s.ranges.slice(e+1)),s.mainIndex==e?0:s.mainIndex-(s.mainIndex>e?1:0))}X.dragstart=(s,t)=>{let{selection:{main:e}}=s.state,{mouseSelection:i}=s.inputState;i&&(i.dragging=e),t.dataTransfer&&(t.dataTransfer.setData("Text",s.state.sliceDoc(e.from,e.to)),t.dataTransfer.effectAllowed="copyMove")};function Fr(s,t,e,i){if(!e)return;let n=s.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:r}=s.inputState,o=i&&r&&r.dragging&&r.dragMove?{from:r.dragging.from,to:r.dragging.to}:null,l={from:n,insert:e},h=s.state.changes(o?[o,l]:l);s.focus(),s.dispatch({changes:h,selection:{anchor:h.mapPos(n,-1),head:h.mapPos(n,1)},userEvent:o?"move.drop":"input.drop"})}X.drop=(s,t)=>{if(!t.dataTransfer)return;if(s.state.readOnly)return t.preventDefault();let e=t.dataTransfer.files;if(e&&e.length){t.preventDefault();let i=Array(e.length),n=0,r=()=>{++n==e.length&&Fr(s,t,i.filter(o=>o!=null).join(s.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),r()},l.readAsText(e[o])}}else Fr(s,t,t.dataTransfer.getData("Text"),!0)};X.paste=(s,t)=>{if(s.state.readOnly)return t.preventDefault();s.observer.flush();let e=Nl?null:t.clipboardData;e?(Ll(s,e.getData("text/plain")),t.preventDefault()):If(s)};function Hf(s,t){let e=s.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=t,i.focus(),i.selectionEnd=t.length,i.selectionStart=0,setTimeout(()=>{i.remove(),s.focus()},50)}function zf(s){let t=[],e=[],i=!1;for(let n of s.selection.ranges)n.empty||(t.push(s.sliceDoc(n.from,n.to)),e.push(n));if(!t.length){let n=-1;for(let{from:r}of s.selection.ranges){let o=s.doc.lineAt(r);o.number>n&&(t.push(o.text),e.push({from:o.from,to:Math.min(s.doc.length,o.to+1)})),n=o.number}i=!0}return{text:t.join(s.lineBreak),ranges:e,linewise:i}}let ls=null;X.copy=X.cut=(s,t)=>{let{text:e,ranges:i,linewise:n}=zf(s.state);if(!e&&!n)return;ls=n?e:null;let r=Nl?null:t.clipboardData;r?(t.preventDefault(),r.clearData(),r.setData("text/plain",e)):Hf(s,e),t.type=="cut"&&!s.state.readOnly&&s.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"})};function Hl(s){setTimeout(()=>{s.hasFocus!=s.inputState.notifiedFocused&&s.update([])},10)}X.focus=s=>{s.inputState.lastFocusTime=Date.now(),!s.scrollDOM.scrollTop&&(s.inputState.lastScrollTop||s.inputState.lastScrollLeft)&&(s.scrollDOM.scrollTop=s.inputState.lastScrollTop,s.scrollDOM.scrollLeft=s.inputState.lastScrollLeft),Hl(s)};X.blur=s=>{s.observer.clearSelectionRange(),Hl(s)};X.compositionstart=X.compositionupdate=s=>{s.inputState.compositionFirstChange==null&&(s.inputState.compositionFirstChange=!0),s.inputState.composing<0&&(s.inputState.composing=0)};X.compositionend=s=>{s.inputState.composing=-1,s.inputState.compositionEndedAt=Date.now(),s.inputState.compositionFirstChange=null,x.chrome&&x.android&&s.observer.flushSoon(),setTimeout(()=>{s.inputState.composing<0&&s.docView.compositionDeco.size&&s.update([])},50)};X.contextmenu=s=>{s.inputState.lastContextMenu=Date.now()};X.beforeinput=(s,t)=>{var e;let i;if(x.chrome&&x.android&&(i=El.find(n=>n.inputType==t.inputType))&&(s.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let n=((e=window.visualViewport)===null||e===void 0?void 0:e.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>n+10&&s.hasFocus&&(s.contentDOM.blur(),s.focus())},100)}};const Hr=["pre-wrap","normal","pre-line","break-spaces"];class Wf{constructor(t){this.lineWrapping=t,this.doc=N.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength)),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return Hr.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,l=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=e,this.charWidth=i,this.lineLength=n,l){this.heightSamples={};for(let h=0;h0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>Ti&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return ot.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,n){let r=this;for(let o=n.length-1;o>=0;o--){let{fromA:l,toA:h,fromB:a,toB:f}=n[o],c=r.lineAt(l,W.ByPosNoHeight,e,0,0),u=c.to>=h?c:r.lineAt(h,W.ByPosNoHeight,e,0,0);for(f+=u.to-h,h=u.to;o>0&&c.from<=n[o-1].toA;)l=n[o-1].fromA,a=n[o-1].fromB,o--,lr*2){let l=t[e-1];l.break?t.splice(--e,1,l.left,null,l.right):t.splice(--e,1,l.left,l.right),i+=1+l.break,n-=l.size}else if(r>n*2){let l=t[i];l.break?t.splice(i,1,l.left,null,l.right):t.splice(i,1,l.left,l.right),i+=2+l.break,r-=l.size}else break;else if(n=r&&o(this.blockAt(0,i,n,r))}updateHeight(t,e=0,i=!1,n){return n&&n.from<=e&&n.more&&this.setHeight(t,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class dt extends zl{constructor(t,e){super(t,e,G.Text),this.collapsed=0,this.widgetHeight=0}replace(t,e,i){let n=i[0];return i.length==1&&(n instanceof dt||n instanceof Z&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof Z?n=new dt(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):ot.of(i)}updateHeight(t,e=0,i=!1,n){return n&&n.from<=e&&n.more?this.setHeight(t,n.heights[n.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Z extends ot{constructor(t){super(t,0)}lines(t,e){let i=t.lineAt(e).number,n=t.lineAt(e+this.length).number;return{firstLine:i,lastLine:n,lineHeight:this.height/(n-i+1)}}blockAt(t,e,i,n){let{firstLine:r,lastLine:o,lineHeight:l}=this.lines(e,n),h=Math.max(0,Math.min(o-r,Math.floor((t-i)/l))),{from:a,length:f}=e.line(r+h);return new Yt(a,f,i+l*h,l,G.Text)}lineAt(t,e,i,n,r){if(e==W.ByHeight)return this.blockAt(t,i,n,r);if(e==W.ByPosNoHeight){let{from:c,to:u}=i.lineAt(t);return new Yt(c,u-c,0,0,G.Text)}let{firstLine:o,lineHeight:l}=this.lines(i,r),{from:h,length:a,number:f}=i.lineAt(t);return new Yt(h,a,n+l*(f-o),l,G.Text)}forEachLine(t,e,i,n,r,o){let{firstLine:l,lineHeight:h}=this.lines(i,r);for(let a=Math.max(t,r),f=Math.min(r+this.length,e);a<=f;){let c=i.lineAt(a);a==t&&(n+=h*(c.number-l)),o(new Yt(c.from,c.length,n,h,G.Text)),n+=h,a=c.to+1}}replace(t,e,i){let n=this.length-e;if(n>0){let r=i[i.length-1];r instanceof Z?i[i.length-1]=new Z(r.length+n):i.push(null,new Z(n-1))}if(t>0){let r=i[0];r instanceof Z?i[0]=new Z(t+r.length):i.unshift(new Z(t-1),null)}return ot.of(i)}decomposeLeft(t,e){e.push(new Z(t-1),null)}decomposeRight(t,e){e.push(null,new Z(this.length-t-1))}updateHeight(t,e=0,i=!1,n){let r=e+this.length;if(n&&n.from<=e+this.length&&n.more){let o=[],l=Math.max(e,n.from),h=-1,a=t.heightChanged;for(n.from>e&&o.push(new Z(n.from-e-1).updateHeight(t,e));l<=r&&n.more;){let c=t.doc.lineAt(l).length;o.length&&o.push(null);let u=n.heights[n.index++];h==-1?h=u:Math.abs(u-h)>=Ti&&(h=-2);let d=new dt(c,u);d.outdated=!1,o.push(d),l+=c+1}l<=r&&o.push(null,new Z(r-l).updateHeight(t,l));let f=ot.of(o);return t.heightChanged=a||h<0||Math.abs(f.height-this.height)>=Ti||Math.abs(h-this.lines(t.doc,e).lineHeight)>=Ti,f}else(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class qf extends ot{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return this.flags&1}blockAt(t,e,i,n){let r=i+this.left.height;return tl))return a;let f=e==W.ByPosNoHeight?W.ByPosNoHeight:W.ByPos;return h?a.join(this.right.lineAt(l,f,i,o,l)):this.left.lineAt(l,f,i,n,r).join(a)}forEachLine(t,e,i,n,r,o){let l=n+this.left.height,h=r+this.left.length+this.break;if(this.break)t=h&&this.right.forEachLine(t,e,i,l,h,o);else{let a=this.lineAt(h,W.ByPos,i,n,r);t=t&&a.from<=e&&o(a),e>a.to&&this.right.forEachLine(a.to+1,e,i,l,h,o)}}replace(t,e,i){let n=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-n,e-n,i));let r=[];t>0&&this.decomposeLeft(t,r);let o=r.length;for(let l of i)r.push(l);if(t>0&&zr(r,o-1),e=i&&e.push(null)),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,n=i+this.break;if(t>=n)return this.right.decomposeRight(t-n,e);t2*e.size||e.size>2*t.size?ot.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,n){let{left:r,right:o}=this,l=e+r.length+this.break,h=null;return n&&n.from<=e+r.length&&n.more?h=r=r.updateHeight(t,e,i,n):r.updateHeight(t,e,i),n&&n.from<=l+o.length&&n.more?h=o=o.updateHeight(t,l,i,n):o.updateHeight(t,l,i),h?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function zr(s,t){let e,i;s[t]==null&&(e=s[t-1])instanceof Z&&(i=s[t+1])instanceof Z&&s.splice(t-1,3,new Z(e.length+1+i.length))}const Uf=5;class Ps{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let i=Math.min(e,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof dt?n.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new dt(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=Uf)&&this.addLineDeco(n,r)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new dt(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new Z(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof dt)return t;let e=new dt(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine(),t.type==G.WidgetAfter&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,t.type!=G.WidgetBefore&&(this.covering=t)}addLineDeco(t,e){let i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,t),this.writtenTo=this.pos=this.pos+e}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(e instanceof dt)&&!this.isCovered?this.nodes.push(new dt(0,-1)):(this.writtenTof.clientHeight||f.scrollWidth>f.clientWidth)&&c.overflow!="visible"){let u=f.getBoundingClientRect();r=Math.max(r,u.left),o=Math.min(o,u.right),l=Math.max(l,u.top),h=a==s.parentNode?u.bottom:Math.min(h,u.bottom)}a=c.position=="absolute"||c.position=="fixed"?f.offsetParent:f.parentNode}else if(a.nodeType==11)a=a.host;else break;return{left:r-e.left,right:Math.max(r,o)-e.left,top:l-(e.top+t),bottom:Math.max(l,h)-(e.top+t)}}function Jf(s,t){let e=s.getBoundingClientRect();return{left:0,right:e.right-e.left,top:t,bottom:e.bottom-(e.top+t)}}class kn{constructor(t,e,i){this.from=t,this.to=e,this.size=i}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Wf(e),this.stateDeco=t.facet(Ye).filter(i=>typeof i!="function"),this.heightMap=ot.empty().applyChanges(this.stateDeco,N.empty,this.heightOracle.setDoc(t.doc),[new Vt(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=H.set(this.lineGaps.map(i=>i.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let n=i?e.head:e.anchor;if(!t.some(({from:r,to:o})=>n>=r&&n<=o)){let{from:r,to:o}=this.lineBlockAt(n);t.push(new fi(r,o))}}this.viewports=t.sort((i,n)=>i.from-n.from),this.scaler=this.heightMap.height<=7e6?jr:new Yf(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:qe(t,this.scaler))})}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ye).filter(a=>typeof a!="function");let n=t.changedRanges,r=Vt.extendWithRanges(n,Kf(i,this.stateDeco,t?t.changes:J.empty(this.state.doc.length))),o=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=o&&(t.flags|=2);let l=r.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,e));let h=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),h&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(sf)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),n=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?_.RTL:_.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),l=o||this.mustMeasureContent||this.contentDOMHeight!=e.clientHeight;this.contentDOMHeight=e.clientHeight,this.mustMeasureContent=!1;let h=0,a=0,f=parseInt(i.paddingTop)||0,c=parseInt(i.paddingBottom)||0;(this.paddingTop!=f||this.paddingBottom!=c)&&(this.paddingTop=f,this.paddingBottom=c,h|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(n.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,h|=8);let u=(this.printing?Jf:Qf)(e,this.paddingTop),d=u.top-this.pixelViewport.top,p=u.bottom-this.pixelViewport.bottom;this.pixelViewport=u;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let g=e.clientWidth;if((this.contentDOMWidth!=g||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=g,this.editorHeight=t.scrollDOM.clientHeight,h|=8),l){let k=t.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(k)&&(o=!0),o||n.lineWrapping&&Math.abs(g-this.contentDOMWidth)>n.charWidth){let{lineHeight:C,charWidth:T}=t.docView.measureTextSize();o=C>0&&n.refresh(r,C,T,g/T,k),o&&(t.docView.minWidth=0,h|=8)}d>0&&p>0?a=Math.max(d,p):d<0&&p<0&&(a=Math.min(d,p)),n.heightChanged=!1;for(let C of this.viewports){let T=C.from==this.viewport.from?k:t.docView.measureVisibleLineHeights(C);this.heightMap=(o?ot.empty().applyChanges(this.stateDeco,N.empty,this.heightOracle,[new Vt(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(n,0,o,new jf(C.from,T))}n.heightChanged&&(h|=2)}let y=!this.viewportIsAppropriate(this.viewport,a)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return y&&(this.viewport=this.getViewport(a,this.scrollTarget)),this.updateForViewport(),(h&2||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,t)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),n=this.heightMap,r=this.state.doc,{visibleTop:o,visibleBottom:l}=this,h=new fi(n.lineAt(o-i*1e3,W.ByHeight,r,0,0).from,n.lineAt(l+(1-i)*1e3,W.ByHeight,r,0,0).to);if(e){let{head:a}=e.range;if(ah.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),c=n.lineAt(a,W.ByPos,r,0,0),u;e.y=="center"?u=(c.top+c.bottom)/2-f/2:e.y=="start"||e.y=="nearest"&&a=l+Math.max(10,Math.min(i,250)))&&n>o-2*1e3&&r>1,o=n<<1;if(this.defaultTextDirection!=_.LTR&&!i)return[];let l=[],h=(a,f,c,u)=>{if(f-aa&&gg.from>=c.from&&g.to<=c.to&&Math.abs(g.from-a)g.fromy));if(!m){if(fg.from<=f&&g.to>=f)){let g=e.moveToLineBoundary(b.cursor(f),!1,!0).head;g>a&&(f=g)}m=new kn(a,f,this.gapSize(c,a,f,u))}l.push(m)};for(let a of this.viewportLines){if(a.lengtha.from&&h(a.from,u,a,f),de.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];L.spans(t,this.viewport.from,this.viewport.to,{span(n,r){e.push({from:n,to:r})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some((n,r)=>n.from!=e[r].from||n.to!=e[r].to);return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||qe(this.heightMap.lineAt(t,W.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(t){return qe(this.heightMap.lineAt(this.scaler.fromDOM(t),W.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(t){return qe(this.heightMap.blockAt(this.scaler.fromDOM(t),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class fi{constructor(t,e){this.from=t,this.to=e}}function _f(s,t,e){let i=[],n=s,r=0;return L.spans(e,s,t,{span(){},point(o,l){o>n&&(i.push({from:n,to:o}),r+=o-n),n=l}},20),n=1)return t[t.length-1].to;let i=Math.floor(s*e);for(let n=0;;n++){let{from:r,to:o}=t[n],l=o-r;if(i<=l)return r+i;i-=l}}function ui(s,t){let e=0;for(let{from:i,to:n}of s.ranges){if(t<=n){e+=t-i;break}e+=n-i}return e/s.total}function Xf(s,t){for(let e of s)if(t(e))return e}const jr={toDOM(s){return s},fromDOM(s){return s},scale:1};class Yf{constructor(t,e,i){let n=0,r=0,o=0;this.viewports=i.map(({from:l,to:h})=>{let a=e.lineAt(l,W.ByPos,t,0,0).top,f=e.lineAt(h,W.ByPos,t,0,0).bottom;return n+=f-a,{from:l,to:h,top:a,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(e.height-n);for(let l of this.viewports)l.domTop=o+(l.top-r)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),r=l.bottom}toDOM(t){for(let e=0,i=0,n=0;;e++){let r=eqe(n,t)):s.type)}const di=M.define({combine:s=>s.join(" ")}),hs=M.define({combine:s=>s.indexOf(!0)>-1}),as=ee.newName(),Wl=ee.newName(),jl=ee.newName(),ql={"&light":"."+Wl,"&dark":"."+jl};function fs(s,t,e){return new ee(t,{finish(i){return/&/.test(i)?i.replace(/&\w*/,n=>{if(n=="&")return s;if(!e||!e[n])throw new RangeError(`Unsupported selector: ${n}`);return e[n]}):s+" "+i}})}const Zf=fs("."+as,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ql);class tc{constructor(t,e,i,n){this.typeOver=n,this.bounds=null,this.text="";let{impreciseHead:r,impreciseAnchor:o}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let l=r||o?[]:ic(t),h=new Dl(l,t.state);h.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=h.text,this.newSel=nc(l,this.bounds.from)}else{let l=t.observer.selectionRange,h=r&&r.node==l.focusNode&&r.offset==l.focusOffset||!Te(t.contentDOM,l.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(l.focusNode,l.focusOffset),a=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!Te(t.contentDOM,l.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(l.anchorNode,l.anchorOffset);this.newSel=b.single(a,h)}}}function Ul(s,t){let e,{newSel:i}=t,n=s.state.selection.main;if(t.bounds){let{from:r,to:o}=t.bounds,l=n.from,h=null;(s.inputState.lastKeyCode===8&&s.inputState.lastKeyTime>Date.now()-100||x.android&&t.text.length=n.from&&e.to<=n.to&&(e.from!=n.from||e.to!=n.to)&&n.to-n.from-(e.to-e.from)<=4?e={from:n.from,to:n.to,insert:s.state.doc.slice(n.from,e.from).append(e.insert).append(s.state.doc.slice(e.to,n.to))}:(x.mac||x.android)&&e&&e.from==e.to&&e.from==n.head-1&&/^\. ?$/.test(e.insert.toString())?(i&&e.insert.length==2&&(i=b.single(i.main.anchor-1,i.main.head-1)),e={from:n.from,to:n.to,insert:N.of([" "])}):x.chrome&&e&&e.from==e.to&&e.from==n.head&&e.insert.toString()==` + `&&s.lineWrapping&&(i&&(i=b.single(i.main.anchor-1,i.main.head-1)),e={from:n.from,to:n.to,insert:N.of([" "])}),e){let r=s.state;if(x.ios&&s.inputState.flushIOSKey(s)||x.android&&(e.from==n.from&&e.to==n.to&&e.insert.length==1&&e.insert.lines==2&&Ce(s.contentDOM,"Enter",13)||e.from==n.from-1&&e.to==n.to&&e.insert.length==0&&Ce(s.contentDOM,"Backspace",8)||e.from==n.from&&e.to==n.to+1&&e.insert.length==0&&Ce(s.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();if(s.state.facet(xl).some(a=>a(s,e.from,e.to,o)))return!0;s.inputState.composing>=0&&s.inputState.composing++;let l;if(e.from>=n.from&&e.to<=n.to&&e.to-e.from>=(n.to-n.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&s.inputState.composing<0){let a=n.frome.to?r.sliceDoc(e.to,n.to):"";l=r.replaceSelection(s.state.toText(a+e.insert.sliceString(0,void 0,s.state.lineBreak)+f))}else{let a=r.changes(e),f=i&&!r.selection.main.eq(i.main)&&i.main.to<=a.newLength?i.main:void 0;if(r.selection.ranges.length>1&&s.inputState.composing>=0&&e.to<=n.to&&e.to>=n.to-10){let c=s.state.sliceDoc(e.from,e.to),u=Pl(s)||s.state.doc.lineAt(n.head),d=n.to-e.to,p=n.to-n.from;l=r.changeByRange(m=>{if(m.from==n.from&&m.to==n.to)return{changes:a,range:f||m.map(a)};let g=m.to-d,y=g-c.length;if(m.to-m.from!=p||s.state.sliceDoc(y,g)!=c||u&&m.to>=u.from&&m.from<=u.to)return{range:m};let k=r.changes({from:y,to:g,insert:e.insert}),C=m.to-n.to;return{changes:k,range:f?b.range(Math.max(0,f.anchor+C),Math.max(0,f.head+C)):m.map(k)}})}else l={changes:a,selection:f&&r.selection.replaceRange(f)}}let h="input.type";return s.composing&&(h+=".compose",s.inputState.compositionFirstChange&&(h+=".start",s.inputState.compositionFirstChange=!1)),s.dispatch(l,{scrollIntoView:!0,userEvent:h}),!0}else if(i&&!i.main.eq(n)){let r=!1,o="select";return s.inputState.lastSelectionTime>Date.now()-50&&(s.inputState.lastSelectionOrigin=="select"&&(r=!0),o=s.inputState.lastSelectionOrigin),s.dispatch({selection:i,scrollIntoView:r,userEvent:o}),!0}else return!1}function ec(s,t,e,i){let n=Math.min(s.length,t.length),r=0;for(;r0&&l>0&&s.charCodeAt(o-1)==t.charCodeAt(l-1);)o--,l--;if(i=="end"){let h=Math.max(0,r-Math.min(o,l));e-=o+h-r}if(o=o?r-e:0;r-=h,l=r+(l-o),o=r}else if(l=l?r-e:0;r-=h,o=r+(o-l),l=r}return{from:r,toA:o,toB:l}}function ic(s){let t=[];if(s.root.activeElement!=s.contentDOM)return t;let{anchorNode:e,anchorOffset:i,focusNode:n,focusOffset:r}=s.observer.selectionRange;return e&&(t.push(new vr(e,i)),(n!=e||r!=i)&&t.push(new vr(n,r))),t}function nc(s,t){if(s.length==0)return null;let e=s[0].pos,i=s.length==2?s[1].pos:e;return e>-1&&i>-1?b.single(e+t,i+t):null}const sc={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},xn=x.ie&&x.ie_version<=11;class rc{constructor(t){this.view=t,this.active=!1,this.selectionRange=new _a,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let i of e)this.queue.push(i);(x.ie&&x.ie_version<=11||x.ios&&t.composing)&&e.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),xn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var e;((e=this.view.docView)===null||e===void 0?void 0:e.lastUpdate)this.view.requestMeasure()),this.resizeContent.observe(t.contentDOM)),this.addWindowListeners(this.win=t.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runScrollHandlers(this.view,t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,n=this.selectionRange;if(i.state.facet(on)?i.root.activeElement!=this.dom:!Mi(i.dom,n))return;let r=n.anchorNode&&i.docView.nearest(n.anchorNode);if(r&&r.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(x.ie&&x.ie_version<=11||x.android&&x.chrome)&&!i.state.selection.main.empty&&n.focusNode&&Ni(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=x.safari&&t.root.nodeType==11&&Ga(this.dom.ownerDocument)==this.dom&&oc(this.view)||Ii(t.root);if(!e||this.selectionRange.eq(e))return!1;let i=Mi(this.dom,e);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),!this.flush()&&r.force&&Ce(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let t=this.queue;for(let r of this.observer.takeRecords())t.push(r);t.length&&(this.queue=[]);let e=-1,i=-1,n=!1;for(let r of t){let o=this.readMutation(r);o&&(o.typeOver&&(n=!0),e==-1?{from:e,to:i}=o:(e=Math.min(o.from,e),i=Math.max(o.to,i)))}return{from:e,to:i,typeOver:n}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),n=this.selectionChanged&&Mi(this.dom,this.selectionRange);return t<0&&!n?null:(t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new tc(this.view,t,e,i))}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return!1;let i=this.view.state,n=Ul(this.view,e);return this.view.state==i&&this.view.update([]),n}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty(t.type=="attributes"),t.type=="attributes"&&(e.dirty|=4),t.type=="childList"){let i=qr(e,t.previousSibling||t.target.previousSibling,-1),n=qr(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:n?e.posBefore(n):e.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i,n;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(e=this.gapIntersection)===null||e===void 0||e.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect(),(n=this.resizeContent)===null||n===void 0||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function qr(s,t,e){for(;t;){let i=j.get(t);if(i&&i.parent==s)return i;let n=t.parentNode;t=n!=s.dom?n:e>0?t.nextSibling:t.previousSibling}return null}function oc(s){let t=null;function e(h){h.preventDefault(),h.stopImmediatePropagation(),t=h.getTargetRanges()[0]}if(s.contentDOM.addEventListener("beforeinput",e,!0),s.dom.ownerDocument.execCommand("indent"),s.contentDOM.removeEventListener("beforeinput",e,!0),!t)return null;let i=t.startContainer,n=t.startOffset,r=t.endContainer,o=t.endOffset,l=s.docView.domAtPos(s.state.selection.main.anchor);return Ni(l.node,l.offset,r,o)&&([i,n,r,o]=[r,o,i,n]),{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:o}}class D{constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=t.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this._root=t.root||Xa(t.parent)||document,this.viewState=new Wr(t.state||E.create(t)),this.plugins=this.state.facet(We).map(e=>new yn(e));for(let e of this.plugins)e.update(this);this.observer=new rc(this),this.inputState=new Tf(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Cr(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),t.parent&&t.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...t){this._dispatch(t.length==1&&t[0]instanceof $?t[0]:this.state.update(...t))}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,i=!1,n,r=this.state;for(let a of t){if(a.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=a.state}if(this.destroyed){this.viewState.state=r;return}let o=this.observer.delayedAndroidKey,l=null;if(o?(this.observer.clearDelayedAndroidKey(),l=this.observer.readChange(),(l&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(l=null)):this.observer.clear(),r.facet(E.phrases)!=this.state.facet(E.phrases))return this.setState(r);n=Fi.create(this,r,t);let h=this.viewState.scrollTarget;try{this.updateState=2;for(let a of t){if(h&&(h=h.map(a.changes)),a.scrollIntoView){let{main:f}=a.state.selection;h=new Vi(f.empty?f:b.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of a.effects)f.is(xr)&&(h=f.value)}this.viewState.update(n,h),this.bidiCache=Hi.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),e=this.docView.update(n),this.state.facet(je)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(a=>a.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(di)!=n.state.facet(di)&&(this.viewState.mustMeasureContent=!0),(e||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!n.empty)for(let a of this.state.facet(is))a(n);l&&!Ul(this,l)&&o.force&&Ce(this.contentDOM,o.key,o.keyCode)}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new Wr(t),this.plugins=t.facet(We).map(i=>new yn(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView=new Cr(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(We),i=t.state.facet(We);if(e!=i){let n=[];for(let r of i){let o=e.indexOf(r);if(o<0)n.push(new yn(r));else{let l=this.plugins[o];l.mustUpdate=t,n.push(l)}}for(let r of this.plugins)r.mustUpdate!=t&&r.destroy(this);this.plugins=n,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let n of this.plugins)n.mustUpdate=t;for(let n=0;n-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,{scrollHeight:i,scrollTop:n,clientHeight:r}=this.scrollDOM,o=n>i-r-4?i:n;try{for(let l=0;;l++){this.updateState=1;let h=this.viewport,a=this.viewState.lineBlockAtHeight(o),f=this.viewState.measure(this);if(!f&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];f&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(g=>{try{return g.read(this)}catch(y){return Tt(this.state,y),Ur}}),d=Fi.create(this,this.state,[]),p=!1,m=!1;d.flags|=f,e?e.flags|=f:e=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),p=this.docView.update(d));for(let g=0;g1||g<-1)&&(this.scrollDOM.scrollTop+=g,m=!0)}if(p&&this.docView.updateSelection(!0),this.viewport.from==h.from&&this.viewport.to==h.to&&!m&&this.measureRequests.length==0)break}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let l of this.state.facet(is))l(e)}get themeClasses(){return as+" "+(this.state.facet(hs)?jl:Wl)+" "+this.state.facet(di)}updateAttrs(){let t=Kr(this,vl,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(on)?"true":"false",class:"cm-content",style:`${x.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),Kr(this,Ds,e);let i=this.observer.ignore(()=>{let n=ts(this.contentDOM,this.contentAttrs,e),r=ts(this.dom,this.editorAttrs,t);return n||r});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let n of i.effects)if(n.is(D.announce)){e&&(this.announceDOM.textContent=""),e=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(je),ee.mount(this.root,this.styleModules.concat(Zf).reverse())}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let e=0;ei.spec==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return wn(this,t,Pr(this,t,e,i))}moveByGroup(t,e){return wn(this,t,Pr(this,t,e,i=>Of(this,t.head,i)))}moveToLineBoundary(t,e,i=!0){return Af(this,t,e,i)}moveVertically(t,e,i){return wn(this,t,Mf(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){return this.readMeasured(),Rl(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let n=this.state.doc.lineAt(t),r=this.bidiSpans(n),o=r[Ae.find(r,t-n.from,-1,e)];return As(i,o.dir==_.LTR==e>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(Sl)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>lc)return Ml(t.length);let e=this.textDirectionAt(t.from);for(let n of this.bidiCache)if(n.from==t.from&&n.dir==e)return n.order;let i=cf(t.text,e);return this.bidiCache.push(new Hi(t.from,t.to,e,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||x.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{sl(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return xr.of(new Vi(typeof t=="number"?b.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}static domEventHandlers(t){return Ht.define(()=>({}),{eventHandlers:t})}static theme(t,e){let i=ee.newName(),n=[di.of(i),je.of(fs(`.${i}`,t))];return e&&e.dark&&n.push(hs.of(!0)),n}static baseTheme(t){return tn.lowest(je.of(fs("."+as,t,ql)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),n=i&&j.get(i)||j.get(t);return((e=n==null?void 0:n.rootView)===null||e===void 0?void 0:e.view)||null}}D.styleModule=je;D.inputHandler=xl;D.perLineTextDirection=Sl;D.exceptionSink=kl;D.updateListener=is;D.editable=on;D.mouseSelectionStyle=wl;D.dragMovesSelection=bl;D.clickAddsSelectionRange=yl;D.decorations=Ye;D.atomicRanges=Cl;D.scrollMargins=Al;D.darkTheme=hs;D.contentAttributes=Ds;D.editorAttributes=vl;D.lineWrapping=D.contentAttributes.of({class:"cm-lineWrapping"});D.announce=V.define();const lc=4096,Ur={};class Hi{constructor(t,e,i,n){this.from=t,this.to=e,this.dir=i,this.order=n}static update(t,e){if(e.empty)return t;let i=[],n=t.length?t[t.length-1].dir:_.LTR;for(let r=Math.max(0,t.length-10);r=0;n--){let r=i[n],o=typeof r=="function"?r(s):r;o&&Zn(o,e)}return e}const hc=x.mac?"mac":x.windows?"win":x.linux?"linux":"key";function ac(s,t){const e=s.split(/-(?!$)/);let i=e[e.length-1];i=="Space"&&(i=" ");let n,r,o,l;for(let h=0;hi.concat(n),[]))),e}let Jt=null;const uc=4e3;function dc(s,t=hc){let e=Object.create(null),i=Object.create(null),n=(o,l)=>{let h=i[o];if(h==null)i[o]=l;else if(h!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,l,h,a)=>{var f,c;let u=e[o]||(e[o]=Object.create(null)),d=l.split(/ (?!$)/).map(g=>ac(g,t));for(let g=1;g{let C=Jt={view:k,prefix:y,scope:o};return setTimeout(()=>{Jt==C&&(Jt=null)},uc),!0}]})}let p=d.join(" ");n(p,!1);let m=u[p]||(u[p]={preventDefault:!1,run:((c=(f=u._any)===null||f===void 0?void 0:f.run)===null||c===void 0?void 0:c.slice())||[]});h&&m.run.push(h),a&&(m.preventDefault=!0)};for(let o of s){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let a of l){let f=e[a]||(e[a]=Object.create(null));f._any||(f._any={preventDefault:!1,run:[]});for(let c in f)f[c].run.push(o.any)}let h=o[t]||o.key;if(h)for(let a of l)r(a,h,o.run,o.preventDefault),o.shift&&r(a,"Shift-"+h,o.shift,o.preventDefault)}return e}function pc(s,t,e,i){let n=Ka(t),r=pt(n,0),o=Mt(r)==n.length&&n!=" ",l="",h=!1;Jt&&Jt.view==e&&Jt.scope==i&&(l=Jt.prefix+" ",(h=Il.indexOf(t.keyCode)<0)&&(Jt=null));let a=new Set,f=p=>{if(p){for(let m of p.run)if(!a.has(m)&&(a.add(m),m(e,t)))return!0;p.preventDefault&&(h=!0)}return!1},c=s[i],u,d;if(c){if(f(c[l+pi(n,t,!o)]))return!0;if(o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(x.windows&&t.ctrlKey&&t.altKey)&&(u=ie[t.keyCode])&&u!=n){if(f(c[l+pi(u,t,!0)]))return!0;if(t.shiftKey&&(d=$e[t.keyCode])!=n&&d!=u&&f(c[l+pi(d,t,!1)]))return!0}else if(o&&t.shiftKey&&f(c[l+pi(n,t,!0)]))return!0;if(f(c._any))return!0}return h}const gc=!x.ios,mc={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};gc&&(mc[".cm-line"].caretColor="transparent !important");const gi="-10000px";class yc{constructor(t,e,i){this.facet=e,this.createTooltipView=i,this.input=t.state.facet(e),this.tooltips=this.input.filter(n=>n),this.tooltipViews=this.tooltips.map(i)}update(t){var e;let i=t.state.facet(this.facet),n=i.filter(o=>o);if(i===this.input){for(let o of this.tooltipViews)o.update&&o.update(t);return!1}let r=[];for(let o=0;o{var t,e,i;return{position:x.ios?"absolute":((t=s.find(n=>n.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((e=s.find(n=>n.parent))===null||e===void 0?void 0:e.parent)||null,tooltipSpace:((i=s.find(n=>n.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||bc}}}),Kl=Ht.fromClass(class{constructor(s){this.view=s,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let t=s.state.facet(Sn);this.position=t.position,this.parent=t.parent,this.classes=s.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new yc(s,Gl,e=>this.createTooltip(e)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),s.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let s of this.manager.tooltipViews)this.intersectionObserver.observe(s.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(s){s.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(s);t&&this.observeIntersection();let e=t||s.geometryChanged,i=s.state.facet(Sn);if(i.position!=this.position){this.position=i.position;for(let n of this.manager.tooltipViews)n.dom.style.position=this.position;e=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let n of this.manager.tooltipViews)this.container.appendChild(n.dom);e=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);e&&this.maybeMeasure()}createTooltip(s){let t=s.create(this.view);if(t.dom.classList.add("cm-tooltip"),s.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=gi,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var s,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let e of this.manager.tooltipViews)e.dom.remove(),(s=e.destroy)===null||s===void 0||s.call(e);(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let s=this.view.dom.getBoundingClientRect();return{editor:s,parent:this.parent?this.container.getBoundingClientRect():s,pos:this.manager.tooltips.map((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)}),size:this.manager.tooltipViews.map(({dom:t})=>t.getBoundingClientRect()),space:this.view.state.facet(Sn).tooltipSpace(this.view)}}writeMeasure(s){let{editor:t,space:e}=s,i=[];for(let n=0;n=Math.min(t.bottom,e.bottom)||h.rightMath.min(t.right,e.right)+.1){l.style.top=gi;continue}let f=r.arrow?o.dom.querySelector(".cm-tooltip-arrow"):null,c=f?7:0,u=a.right-a.left,d=a.bottom-a.top,p=o.offset||kc,m=this.view.textDirection==_.LTR,g=a.width>e.right-e.left?m?e.left:e.right-a.width:m?Math.min(h.left-(f?14:0)+p.x,e.right-u):Math.max(e.left,h.left-u+(f?14:0)-p.x),y=!!r.above;!r.strictSide&&(y?h.top-(a.bottom-a.top)-p.ye.bottom)&&y==e.bottom-h.bottom>h.top-e.top&&(y=!y);let k=(y?h.top-e.top:e.bottom-h.bottom)-c;if(kg&&S.topC&&(C=y?S.top-d-2-c:S.bottom+c+2);this.position=="absolute"?(l.style.top=C-s.parent.top+"px",l.style.left=g-s.parent.left+"px"):(l.style.top=C+"px",l.style.left=g+"px"),f&&(f.style.left=`${h.left+(m?p.x:-p.x)-(g+14-7)}px`),o.overlap!==!0&&i.push({left:g,top:C,right:T,bottom:C+d}),l.classList.toggle("cm-tooltip-above",y),l.classList.toggle("cm-tooltip-below",!y),o.positioned&&o.positioned(s.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let s of this.manager.tooltipViews)s.dom.style.top=gi}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),wc=D.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),kc={x:0,y:0},Gl=M.define({enables:[Kl,wc]});function xc(s,t){let e=s.plugin(Kl);if(!e)return null;let i=e.manager.tooltips.indexOf(t);return i<0?null:e.manager.tooltipViews[i]}class me extends pe{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}me.prototype.elementClass="";me.prototype.toDOM=void 0;me.prototype.mapMode=ft.TrackBefore;me.prototype.startSide=me.prototype.endSide=-1;me.prototype.point=!0;const vn=M.define(),Sc={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>L.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Di=M.define();function vc(s){return[Cc(),Di.of(Object.assign(Object.assign({},Sc),s))]}const cs=M.define({combine:s=>s.some(t=>t)});function Cc(s){let t=[Ac];return s&&s.fixed===!1&&t.push(cs.of(!0)),t}const Ac=Ht.fromClass(class{constructor(s){this.view=s,this.prevViewport=s.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=s.state.facet(Di).map(t=>new Jr(s,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!s.state.facet(cs),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),s.scrollDOM.insertBefore(this.dom,s.contentDOM)}update(s){if(this.updateGutters(s)){let t=this.prevViewport,e=s.view.viewport,i=Math.min(t.to,e.to)-Math.max(t.from,e.from);this.syncGutters(i<(e.to-e.from)*.8)}s.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(cs)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=s.view.viewport}syncGutters(s){let t=this.dom.nextSibling;s&&this.dom.remove();let e=L.iter(this.view.state.facet(vn),this.view.viewport.from),i=[],n=this.gutters.map(r=>new Oc(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks){let o;if(Array.isArray(r.type)){for(let l of r.type)if(l.type==G.Text){o=l;break}}else o=r.type==G.Text?r:void 0;if(o){i.length&&(i=[]),Ql(e,i,r.from);for(let l of n)l.line(this.view,o,i)}}for(let r of n)r.finish();s&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(s){let t=s.startState.facet(Di),e=s.state.facet(Di),i=s.docChanged||s.heightChanged||s.viewportChanged||!L.eq(s.startState.facet(vn),s.state.facet(vn),s.view.viewport.from,s.view.viewport.to);if(t==e)for(let n of this.gutters)n.update(s)&&(i=!0);else{i=!0;let n=[];for(let r of e){let o=t.indexOf(r);o<0?n.push(new Jr(this.view,r)):(this.gutters[o].update(s),n.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),n.indexOf(r)<0&&r.destroy();for(let r of n)this.dom.appendChild(r.dom);this.gutters=n}return i}destroy(){for(let s of this.gutters)s.destroy();this.dom.remove()}},{provide:s=>D.scrollMargins.of(t=>{let e=t.plugin(s);return!e||e.gutters.length==0||!e.fixed?null:t.textDirection==_.LTR?{left:e.dom.offsetWidth}:{right:e.dom.offsetWidth}})});function Qr(s){return Array.isArray(s)?s:[s]}function Ql(s,t,e){for(;s.value&&s.from<=e;)s.from==e&&t.push(s.value),s.next()}class Oc{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=L.iter(t.markers,e.from)}line(t,e,i){let n=[];Ql(this.cursor,n,e.from),i.length&&(n=n.concat(i));let r=this.gutter.config.lineMarker(t,e,n);r&&n.unshift(r);let o=this.gutter;if(n.length==0&&!o.config.renderEmptyElements)return;let l=e.top-this.height;if(this.i==o.elements.length){let h=new Jl(t,e.height,l,n);o.elements.push(h),o.dom.appendChild(h.dom)}else o.elements[this.i].update(t,e.height,l,n);this.height=e.bottom,this.i++}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class Jr{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers)this.dom.addEventListener(i,n=>{let r=n.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let h=r.getBoundingClientRect();o=(h.top+h.bottom)/2}else o=n.clientY;let l=t.lineBlockAtHeight(o-t.documentTop);e.domEventHandlers[i](t,l,n)&&n.preventDefault()});this.markers=Qr(e.markers(t)),e.initialSpacer&&(this.spacer=new Jl(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=Qr(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],t);n!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[n])}let i=t.view.viewport;return!L.eq(this.markers,e,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class Jl{constructor(t,e,i,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,n)}update(t,e,i,n){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),Mc(this.markers,n)||this.setMarkers(t,n)}setMarkers(t,e){let i="cm-gutterElement",n=this.dom.firstChild;for(let r=0,o=0;;){let l=o,h=r{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=lt.match(t)),e=>{let i=t(e);return i===void 0?null:[this,i]}}}R.closedBy=new R({deserialize:s=>s.split(" ")});R.openedBy=new R({deserialize:s=>s.split(" ")});R.group=new R({deserialize:s=>s.split(" ")});R.contextHash=new R({perNode:!0});R.lookAhead=new R({perNode:!0});R.mounted=new R({perNode:!0});const Dc=Object.create(null);class lt{constructor(t,e,i,n=0){this.name=t,this.props=e,this.id=i,this.flags=n}static define(t){let e=t.props&&t.props.length?Object.create(null):Dc,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),n=new lt(t.name||"",e,t.id,i);if(t.props){for(let r of t.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1]}}return n}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let e=this.prop(R.group);return e?e.indexOf(t)>-1:!1}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let n of i.split(" "))e[n]=t[i];return i=>{for(let n=i.prop(R.group),r=-1;r<(n?n.length:0);r++){let o=e[r<0?i.name:n[r]];if(o)return o}}}}lt.none=new lt("",Object.create(null),0,8);class ln{constructor(t){this.types=t;for(let e=0;e=n&&(o.type.isAnonymous||e(o)!==!1)){if(o.firstChild())continue;l=!0}for(;l&&i&&!o.type.isAnonymous&&i(o),!o.nextSibling();){if(!o.parent())return;l=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:Is(lt.none,this.children,this.positions,0,this.children.length,0,this.length,(e,i,n)=>new F(this.type,e,i,n,this.propValues),t.makeTree||((e,i,n)=>new F(lt.none,e,i,n)))}static build(t){return Bc(t)}}F.empty=new F(lt.none,[],[],0);class Rs{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Rs(this.buffer,this.index)}}class ye{constructor(t,e,i){this.buffer=t,this.length=e,this.set=i}get type(){return lt.none}toString(){let t=[];for(let e=0;e0));h=o[h+3]);return l}slice(t,e,i){let n=this.buffer,r=new Uint16Array(e-t),o=0;for(let l=t,h=0;l=t&&et;case 1:return e<=t&&i>t;case 2:return i>t;case 4:return!0}}function Xl(s,t){let e=s.childBefore(t);for(;e;){let i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(s=e,e=i.prevSibling):e=i}return s}function Be(s,t,e,i){for(var n;s.from==s.to||(e<1?s.from>=t:s.from>t)||(e>-1?s.to<=t:s.to0?l.length:-1;t!=a;t+=e){let f=l[t],c=h[t]+o.from;if(_l(n,i,c,c+f.length)){if(f instanceof ye){if(r&et.ExcludeBuffers)continue;let u=f.findChild(0,f.buffer.length,e,i-c,n);if(u>-1)return new Zt(new Pc(o,f,t,c),null,u)}else if(r&et.IncludeAnonymous||!f.type.isAnonymous||Es(f)){let u;if(!(r&et.IgnoreMounts)&&f.props&&(u=f.prop(R.mounted))&&!u.overlay)return new qt(u.tree,c,t,o);let d=new qt(f,c,t,o);return r&et.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(e<0?f.children.length-1:0,e,i,n)}}}if(r&et.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+e:t=e<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,i=0){let n;if(!(i&et.IgnoreOverlays)&&(n=this._tree.prop(R.mounted))&&n.overlay){let r=t-this.from;for(let{from:o,to:l}of n.overlay)if((e>0?o<=r:o=r:l>r))return new qt(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,i)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(t=0){return new ji(this,t)}get tree(){return this._tree}toTree(){return this._tree}resolve(t,e=0){return Be(this,t,e,!1)}resolveInner(t,e=0){return Be(this,t,e,!0)}enterUnfinishedNodesBefore(t){return Xl(this,t)}getChild(t,e=null,i=null){let n=zi(this,t,e,i);return n.length?n[0]:null}getChildren(t,e=null,i=null){return zi(this,t,e,i)}toString(){return this._tree.toString()}get node(){return this}matchContext(t){return Wi(this,t)}}function zi(s,t,e,i){let n=s.cursor(),r=[];if(!n.firstChild())return r;if(e!=null){for(;!n.type.is(e);)if(!n.nextSibling())return r}for(;;){if(i!=null&&n.type.is(i))return r;if(n.type.is(t)&&r.push(n.node),!n.nextSibling())return i==null?r:[]}}function Wi(s,t,e=t.length-1){for(let i=s.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[e]&&t[e]!=i.name)return!1;e--}}return!0}class Pc{constructor(t,e,i,n){this.parent=t,this.buffer=e,this.index=i,this.start=n}}class Zt{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,i){this.context=t,this._parent=e,this.index=i,this.type=t.buffer.set.types[t.buffer.buffer[i]]}child(t,e,i){let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t,e-this.context.start,i);return r<0?null:new Zt(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,i=0){if(i&et.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return r<0?null:new Zt(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Zt(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new Zt(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}cursor(t=0){return new ji(this,t)}get tree(){return null}toTree(){let t=[],e=[],{buffer:i}=this.context,n=this.index+4,r=i.buffer[this.index+3];if(r>n){let o=i.buffer[this.index+1];t.push(i.slice(n,r,o)),e.push(0)}return new F(this.type,t,e,this.to-this.from)}resolve(t,e=0){return Be(this,t,e,!1)}resolveInner(t,e=0){return Be(this,t,e,!0)}enterUnfinishedNodesBefore(t){return Xl(this,t)}toString(){return this.context.buffer.childString(this.index)}getChild(t,e=null,i=null){let n=zi(this,t,e,i);return n.length?n[0]:null}getChildren(t,e=null,i=null){return zi(this,t,e,i)}get node(){return this}matchContext(t){return Wi(this,t)}}class ji{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof qt)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let i=t._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,e){this.index=t;let{start:i,buffer:n}=this.buffer;return this.type=e||n.set.types[n.buffer[t]],this.from=i+n.buffer[t+1],this.to=i+n.buffer[t+2],!0}yield(t){return t?t instanceof qt?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,i,this.mode));let{buffer:n}=this.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],t,e-this.buffer.start,i);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,i=this.mode){return this.buffer?i&et.ExcludeBuffers?!1:this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&et.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&et.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:e}=this.buffer,i=this.stack.length-1;if(t<0){let n=i<0?0:this.stack[i]+4;if(this.index!=n)return this.yieldBuf(e.findChild(n,this.index,-1,0,4))}else{let n=e.buffer[this.index+3];if(n<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(n)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,i,{buffer:n}=this;if(n){if(t>0){if(this.index-1)for(let r=e+t,o=t<0?-1:i._tree.children.length;r!=o;r+=t){let l=i._tree.children[r];if(this.mode&et.IncludeAnonymous||l instanceof ye||!l.type.isAnonymous||Es(l))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let o=t;o;o=o._parent)if(o.index==n){if(n==this.index)return o;e=o,i=r+1;break t}n=this.stack[--r]}for(let n=i;n=0;r--){if(r<0)return Wi(this.node,t,n);let o=i[e.buffer[this.stack[r]]];if(!o.isAnonymous){if(t[n]&&t[n]!=o.name)return!1;n--}}return!0}}function Es(s){return s.children.some(t=>t instanceof ye||!t.type.isAnonymous||Es(t))}function Bc(s){var t;let{buffer:e,nodeSet:i,maxBufferLength:n=$l,reused:r=[],minRepeatType:o=i.types.length}=s,l=Array.isArray(e)?new Rs(e,e.length):e,h=i.types,a=0,f=0;function c(T,S,A,P,Q){let{id:I,start:B,end:z,size:it}=l,ut=f;for(;it<0;)if(l.next(),it==-1){let Kt=r[I];A.push(Kt),P.push(B-T);return}else if(it==-3){a=I;return}else if(it==-4){f=I;return}else throw new RangeError(`Unrecognized record size: ${it}`);let O=h[I],q,yt,ii=B-T;if(z-B<=n&&(yt=m(l.pos-S,Q))){let Kt=new Uint16Array(yt.size-yt.skip),At=l.pos-yt.size,Wt=Kt.length;for(;l.pos>At;)Wt=g(yt.start,Kt,Wt);q=new ye(Kt,z-yt.start,i),ii=yt.start-T}else{let Kt=l.pos-it;l.next();let At=[],Wt=[],le=I>=o?I:-1,we=0,ni=z;for(;l.pos>Kt;)le>=0&&l.id==le&&l.size>=0?(l.end<=ni-n&&(d(At,Wt,B,we,l.end,ni,le,ut),we=At.length,ni=l.end),l.next()):c(B,Kt,At,Wt,le);if(le>=0&&we>0&&we-1&&we>0){let $s=u(O);q=Is(O,At,Wt,0,At.length,0,z-B,$s,$s)}else q=p(O,At,Wt,z-B,ut-z)}A.push(q),P.push(ii)}function u(T){return(S,A,P)=>{let Q=0,I=S.length-1,B,z;if(I>=0&&(B=S[I])instanceof F){if(!I&&B.type==T&&B.length==P)return B;(z=B.prop(R.lookAhead))&&(Q=A[I]+B.length+z)}return p(T,S,A,P,Q)}}function d(T,S,A,P,Q,I,B,z){let it=[],ut=[];for(;T.length>P;)it.push(T.pop()),ut.push(S.pop()+A-Q);T.push(p(i.types[B],it,ut,I-Q,z-I)),S.push(Q-A)}function p(T,S,A,P,Q=0,I){if(a){let B=[R.contextHash,a];I=I?[B].concat(I):[B]}if(Q>25){let B=[R.lookAhead,Q];I=I?[B].concat(I):[B]}return new F(T,S,A,P,I)}function m(T,S){let A=l.fork(),P=0,Q=0,I=0,B=A.end-n,z={size:0,start:0,skip:0};t:for(let it=A.pos-T;A.pos>it;){let ut=A.size;if(A.id==S&&ut>=0){z.size=P,z.start=Q,z.skip=I,I+=4,P+=4,A.next();continue}let O=A.pos-ut;if(ut<0||O=o?4:0,yt=A.start;for(A.next();A.pos>O;){if(A.size<0)if(A.size==-3)q+=4;else break t;else A.id>=o&&(q+=4);A.next()}Q=yt,P+=ut,I+=q}return(S<0||P==T)&&(z.size=P,z.start=Q,z.skip=I),z.size>4?z:void 0}function g(T,S,A){let{id:P,start:Q,end:I,size:B}=l;if(l.next(),B>=0&&P4){let it=l.pos-(B-4);for(;l.pos>it;)A=g(T,S,A)}S[--A]=z,S[--A]=I-T,S[--A]=Q-T,S[--A]=P}else B==-3?a=P:B==-4&&(f=P);return A}let y=[],k=[];for(;l.pos>0;)c(s.start||0,s.bufferStart||0,y,k,-1);let C=(t=s.length)!==null&&t!==void 0?t:y.length?k[0]+y[0].length:0;return new F(h[s.topID],y.reverse(),k.reverse(),C)}const _r=new WeakMap;function Pi(s,t){if(!s.isAnonymous||t instanceof ye||t.type!=s)return 1;let e=_r.get(t);if(e==null){e=1;for(let i of t.children){if(i.type!=s||!(i instanceof F)){e=1;break}e+=Pi(s,i)}_r.set(t,e)}return e}function Is(s,t,e,i,n,r,o,l,h){let a=0;for(let p=i;p=f)break;A+=P}if(C==T+1){if(A>f){let P=p[T];d(P.children,P.positions,0,P.children.length,m[T]+k);continue}c.push(p[T])}else{let P=m[C-1]+p[C-1].length-S;c.push(Is(s,p,m,T,C,S,P,null,h))}u.push(S+k-r)}}return d(t,e,i,n,0),(l||h)(c,u,o)}class de{constructor(t,e,i,n,r=!1,o=!1){this.from=t,this.to=e,this.tree=i,this.offset=n,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,e=[],i=!1){let n=[new de(0,t.length,t,0,!1,i)];for(let r of e)r.to>t.length&&n.push(r);return n}static applyChanges(t,e,i=128){if(!e.length)return t;let n=[],r=1,o=t.length?t[0]:null;for(let l=0,h=0,a=0;;l++){let f=l=i)for(;o&&o.from=u.from||c<=u.to||a){let d=Math.max(u.from,h)-a,p=Math.min(u.to,c)-a;u=d>=p?null:new de(d,p,u.tree,u.offset+a,l>0,!!f)}if(u&&n.push(u),o.to>c)break;o=rnew Cn(n.from,n.to)):[new Cn(0,0)]:[new Cn(0,t.length)],this.createParse(t,e||[],i)}parse(t,e,i){let n=this.startParse(t,e,i);for(;;){let r=n.advance();if(r)return r}}}class Rc{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new R({perNode:!0});let Ec=0;class Et{constructor(t,e,i){this.set=t,this.base=e,this.modified=i,this.id=Ec++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let e=new Et([],null,[]);if(e.set.push(e),t)for(let i of t.set)e.set.push(i);return e}static defineModifier(){let t=new qi;return e=>e.modified.indexOf(t)>-1?e:qi.get(e.base||e,e.modified.concat(t).sort((i,n)=>i.id-n.id))}}let Ic=0;class qi{constructor(){this.instances=[],this.id=Ic++}static get(t,e){if(!e.length)return t;let i=e[0].instances.find(l=>l.base==t&&Nc(e,l.modified));if(i)return i;let n=[],r=new Et(n,t,e);for(let l of e)l.instances.push(r);let o=Lc(e);for(let l of t.set)if(!l.modified.length)for(let h of o)n.push(qi.get(l,h));return r}}function Nc(s,t){return s.length==t.length&&s.every((e,i)=>e==t[i])}function Lc(s){let t=[[]];for(let e=0;ei.length-e.length)}function Yl(s){let t=Object.create(null);for(let e in s){let i=s[e];Array.isArray(i)||(i=[i]);for(let n of e.split(" "))if(n){let r=[],o=2,l=n;for(let c=0;;){if(l=="..."&&c>0&&c+3==n.length){o=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!u)throw new RangeError("Invalid path: "+n);if(r.push(u[0]=="*"?"":u[0][0]=='"'?JSON.parse(u[0]):u[0]),c+=u[0].length,c==n.length)break;let d=n[c++];if(c==n.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+n);l=n.slice(c)}let h=r.length-1,a=r[h];if(!a)throw new RangeError("Invalid path: "+n);let f=new Ui(i,o,h>0?r.slice(0,h):null);t[a]=f.sort(t[a])}}return Zl.add(t)}const Zl=new R;class Ui{constructor(t,e,i,n){this.tags=t,this.mode=e,this.context=i,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let o=n;for(let l of r)for(let h of l.set){let a=e[h.id];if(a){o=o?o+" "+a:a;break}}return o},scope:i}}function Vc(s,t){let e=null;for(let i of s){let n=i.style(t);n&&(e=e?e+" "+n:n)}return e}function Fc(s,t,e,i=0,n=s.length){let r=new Hc(i,Array.isArray(t)?t:[t],e);r.highlightRange(s.cursor(),i,n,"",r.highlighters),r.flush(n)}class Hc{constructor(t,e,i){this.at=t,this.highlighters=e,this.span=i,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,i,n,r){let{type:o,from:l,to:h}=t;if(l>=i||h<=e)return;o.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(o)));let a=n,f=zc(t)||Ui.empty,c=Vc(r,f.tags);if(c&&(a&&(a+=" "),a+=c,f.mode==1&&(n+=(n?" ":"")+c)),this.startSpan(t.from,a),f.opaque)return;let u=t.tree&&t.tree.prop(R.mounted);if(u&&u.overlay){let d=t.node.enter(u.overlay[0].from+l,1),p=this.highlighters.filter(g=>!g.scope||g.scope(u.tree.type)),m=t.firstChild();for(let g=0,y=l;;g++){let k=g=C||!t.nextSibling())););if(!k||C>i)break;y=k.to+l,y>e&&(this.highlightRange(d.cursor(),Math.max(e,k.from+l),Math.min(i,y),n,p),this.startSpan(y,a))}m&&t.parent()}else if(t.firstChild()){do if(!(t.to<=e)){if(t.from>=i)break;this.highlightRange(t,e,i,n,r),this.startSpan(Math.min(i,t.to),a)}while(t.nextSibling());t.parent()}}}function zc(s){let t=s.type.prop(Zl);for(;t&&t.context&&!s.matchContext(t.context);)t=t.next;return t||null}const w=Et.define,yi=w(),Gt=w(),Xr=w(Gt),Yr=w(Gt),Qt=w(),bi=w(Qt),An=w(Qt),Rt=w(),he=w(Rt),Pt=w(),Bt=w(),us=w(),He=w(us),wi=w(),v={comment:yi,lineComment:w(yi),blockComment:w(yi),docComment:w(yi),name:Gt,variableName:w(Gt),typeName:Xr,tagName:w(Xr),propertyName:Yr,attributeName:w(Yr),className:w(Gt),labelName:w(Gt),namespace:w(Gt),macroName:w(Gt),literal:Qt,string:bi,docString:w(bi),character:w(bi),attributeValue:w(bi),number:An,integer:w(An),float:w(An),bool:w(Qt),regexp:w(Qt),escape:w(Qt),color:w(Qt),url:w(Qt),keyword:Pt,self:w(Pt),null:w(Pt),atom:w(Pt),unit:w(Pt),modifier:w(Pt),operatorKeyword:w(Pt),controlKeyword:w(Pt),definitionKeyword:w(Pt),moduleKeyword:w(Pt),operator:Bt,derefOperator:w(Bt),arithmeticOperator:w(Bt),logicOperator:w(Bt),bitwiseOperator:w(Bt),compareOperator:w(Bt),updateOperator:w(Bt),definitionOperator:w(Bt),typeOperator:w(Bt),controlOperator:w(Bt),punctuation:us,separator:w(us),bracket:He,angleBracket:w(He),squareBracket:w(He),paren:w(He),brace:w(He),content:Rt,heading:he,heading1:w(he),heading2:w(he),heading3:w(he),heading4:w(he),heading5:w(he),heading6:w(he),contentSeparator:w(Rt),list:w(Rt),quote:w(Rt),emphasis:w(Rt),strong:w(Rt),link:w(Rt),monospace:w(Rt),strikethrough:w(Rt),inserted:w(),deleted:w(),changed:w(),invalid:w(),meta:wi,documentMeta:w(wi),annotation:w(wi),processingInstruction:w(wi),definition:Et.defineModifier(),constant:Et.defineModifier(),function:Et.defineModifier(),standard:Et.defineModifier(),local:Et.defineModifier(),special:Et.defineModifier()};th([{tag:v.link,class:"tok-link"},{tag:v.heading,class:"tok-heading"},{tag:v.emphasis,class:"tok-emphasis"},{tag:v.strong,class:"tok-strong"},{tag:v.keyword,class:"tok-keyword"},{tag:v.atom,class:"tok-atom"},{tag:v.bool,class:"tok-bool"},{tag:v.url,class:"tok-url"},{tag:v.labelName,class:"tok-labelName"},{tag:v.inserted,class:"tok-inserted"},{tag:v.deleted,class:"tok-deleted"},{tag:v.literal,class:"tok-literal"},{tag:v.string,class:"tok-string"},{tag:v.number,class:"tok-number"},{tag:[v.regexp,v.escape,v.special(v.string)],class:"tok-string2"},{tag:v.variableName,class:"tok-variableName"},{tag:v.local(v.variableName),class:"tok-variableName tok-local"},{tag:v.definition(v.variableName),class:"tok-variableName tok-definition"},{tag:v.special(v.variableName),class:"tok-variableName2"},{tag:v.definition(v.propertyName),class:"tok-propertyName tok-definition"},{tag:v.typeName,class:"tok-typeName"},{tag:v.namespace,class:"tok-namespace"},{tag:v.className,class:"tok-className"},{tag:v.macroName,class:"tok-macroName"},{tag:v.propertyName,class:"tok-propertyName"},{tag:v.operator,class:"tok-operator"},{tag:v.comment,class:"tok-comment"},{tag:v.meta,class:"tok-meta"},{tag:v.invalid,class:"tok-invalid"},{tag:v.punctuation,class:"tok-punctuation"}]);var On;const Re=new R;function eh(s){return M.define({combine:s?t=>t.concat(s):void 0})}class kt{constructor(t,e,i=[],n=""){this.data=t,this.name=n,E.prototype.hasOwnProperty("tree")||Object.defineProperty(E.prototype,"tree",{get(){return ht(this)}}),this.parser=e,this.extension=[se.of(this),E.languageData.of((r,o,l)=>r.facet(Zr(r,o,l)))].concat(i)}isActiveAt(t,e,i=-1){return Zr(t,e,i)==this.data}findRegions(t){let e=t.facet(se);if((e==null?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let i=[],n=(r,o)=>{if(r.prop(Re)==this.data){i.push({from:o,to:o+r.length});return}let l=r.prop(R.mounted);if(l){if(l.tree.prop(Re)==this.data){if(l.overlay)for(let h of l.overlay)i.push({from:h.from+o,to:h.to+o});else i.push({from:o,to:o+r.length});return}else if(l.overlay){let h=i.length;if(n(l.tree,l.overlay[0].from+o),i.length>h)return}}for(let h=0;hi.isTop?e:void 0)]}),t.name)}configure(t,e){return new Ki(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function ht(s){let t=s.field(kt.state,!1);return t?t.tree:F.empty}class Wc{constructor(t,e=t.length){this.doc=t,this.length=e,this.cursorPos=0,this.string="",this.cursor=t.iter()}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let i=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-i,e-i)}}let ze=null;class Ee{constructor(t,e,i=[],n,r,o,l,h){this.parser=t,this.state=e,this.fragments=i,this.tree=n,this.treeLen=r,this.viewport=o,this.skipped=l,this.scheduleOn=h,this.parse=null,this.tempSkipped=[]}static create(t,e,i){return new Ee(t,e,[],F.empty,0,i,[],null)}startParse(){return this.parser.startParse(new Wc(this.state.doc),this.fragments)}work(t,e){return e!=null&&e>=this.state.doc.length&&(e=void 0),this.tree!=F.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof t=="number"){let n=Date.now()+t;t=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(de.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=ze;ze=this;try{return t()}finally{ze=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=to(t,e.from,e.to);return t}changes(t,e){let{fragments:i,tree:n,treeLen:r,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let h=[];if(t.iterChangedRanges((a,f,c,u)=>h.push({fromA:a,toA:f,fromB:c,toB:u})),i=de.applyChanges(i,h),n=F.empty,r=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){l=[];for(let a of this.skipped){let f=t.mapPos(a.from,1),c=t.mapPos(a.to,-1);ft.from&&(this.fragments=to(this.fragments,n,r),this.skipped.splice(i--,1))}return this.skipped.length>=e?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends Ns{createParse(e,i,n){let r=n[0].from,o=n[n.length-1].to;return{parsedPos:r,advance(){let h=ze;if(h){for(let a of n)h.tempSkipped.push(a);t&&(h.scheduleOn=h.scheduleOn?Promise.all([h.scheduleOn,t]):t)}return this.parsedPos=o,new F(lt.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return ze}}function to(s,t,e){return de.applyChanges(s,[{fromA:t,toA:e,fromB:t,toB:e}])}class Ie{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),i=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new Ie(e)}static init(t){let e=Math.min(3e3,t.doc.length),i=Ee.create(t.facet(se).parser,t,{from:0,to:e});return i.work(20,e)||i.takeTree(),new Ie(i)}}kt.state=vt.define({create:Ie.init,update(s,t){for(let e of t.effects)if(e.is(kt.setState))return e.value;return t.startState.facet(se)!=t.state.facet(se)?Ie.init(t.state):s.apply(t)}});let ih=s=>{let t=setTimeout(()=>s(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(ih=s=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(s,{timeout:400})},100);return()=>t<0?clearTimeout(e):cancelIdleCallback(t)});const Mn=typeof navigator<"u"&&(!((On=navigator.scheduling)===null||On===void 0)&&On.isInputPending)?()=>navigator.scheduling.isInputPending():null,jc=Ht.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(kt.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),t.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(kt.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=ih(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndn+1e3,h=r.context.work(()=>Mn&&Mn()||Date.now()>o,n+(l?0:1e5));this.chunkBudget-=Date.now()-e,(h||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:kt.setState.of(new Ie(r.context))})),this.chunkBudget>0&&!(h&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>Tt(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),se=M.define({combine(s){return s.length?s[0]:null},enables:s=>[kt.state,jc,D.contentAttributes.compute([s],t=>{let e=t.facet(s);return e&&e.name?{"data-language":e.name}:{}})]});class qc{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const nh=M.define(),Ls=M.define({combine:s=>{if(!s.length)return" ";if(!/^(?: +|\t+)$/.test(s[0]))throw new Error("Invalid indent unit: "+JSON.stringify(s[0]));return s[0]}});function Ne(s){let t=s.facet(Ls);return t.charCodeAt(0)==9?s.tabSize*t.length:t.length}function ds(s,t){let e="",i=s.tabSize;if(s.facet(Ls).charCodeAt(0)==9)for(;t>=i;)e+=" ",t-=i;for(let n=0;n=i.from&&n<=i.to?r&&n==t?{text:"",from:t}:(e<0?n-1&&(r+=o-this.countColumn(i,i.search(/\S|$/))),r}countColumn(t,e=t.length){return il(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:i,from:n}=this.lineAt(t,e),r=this.options.overrideIndentation;if(r){let o=r(n);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const rh=new R;function Uc(s,t,e){return oh(t.resolveInner(e).enterUnfinishedNodesBefore(e),e,s)}function Kc(s){return s.pos==s.options.simulateBreak&&s.options.simulateDoubleBreak}function Gc(s){let t=s.type.prop(rh);if(t)return t;let e=s.firstChild,i;if(e&&(i=e.type.prop(R.closedBy))){let n=s.lastChild,r=n&&i.indexOf(n.name)>-1;return o=>_c(o,!0,1,void 0,r&&!Kc(o)?n.from:void 0)}return s.parent==null?Qc:null}function oh(s,t,e){for(;s;s=s.parent){let i=Gc(s);if(i)return i(Fs.create(e,t,s))}return null}function Qc(){return 0}class Fs extends Vs{constructor(t,e,i){super(t.state,t.options),this.base=t,this.pos=e,this.node=i}static create(t,e,i){return new Fs(t,e,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let t=this.state.doc.lineAt(this.node.from);for(;;){let e=this.node.resolve(t.from);for(;e.parent&&e.parent.from==e.from;)e=e.parent;if(Jc(e,this.node))break;t=this.state.doc.lineAt(e.from)}return this.lineIndent(t.from)}continue(){let t=this.node.parent;return t?oh(t,this.pos,this.base):0}}function Jc(s,t){for(let e=t;e;e=e.parent)if(s==e)return!0;return!1}function $c(s){let t=s.node,e=t.childAfter(t.from),i=t.lastChild;if(!e)return null;let n=s.options.simulateBreak,r=s.state.doc.lineAt(e.from),o=n==null||n<=r.from?r.to:Math.min(r.to,n);for(let l=e.to;;){let h=t.childAfter(l);if(!h||h==i)return null;if(!h.type.isSkipped)return h.from{let i=s&&s.test(e.textAfter);return e.baseIndent+(i?0:t*e.unit)}}const Xc=200;function Yc(){return E.transactionFilter.of(s=>{if(!s.docChanged||!s.isUserEvent("input.type")&&!s.isUserEvent("input.complete"))return s;let t=s.startState.languageDataAt("indentOnInput",s.startState.selection.main.head);if(!t.length)return s;let e=s.newDoc,{head:i}=s.newSelection.main,n=e.lineAt(i);if(i>n.from+Xc)return s;let r=e.sliceString(n.from,i);if(!t.some(a=>a.test(r)))return s;let{state:o}=s,l=-1,h=[];for(let{head:a}of o.selection.ranges){let f=o.doc.lineAt(a);if(f.from==l)continue;l=f.from;let c=sh(o,f.from);if(c==null)continue;let u=/^\s*/.exec(f.text)[0],d=ds(o,c);u!=d&&h.push({from:f.from,to:f.from+u.length,insert:d})}return h.length?[s,{changes:h,sequential:!0}]:s})}const Zc=M.define(),lh=new R;function tu(s){let t=s.firstChild,e=s.lastChild;return t&&t.toe)continue;if(r&&o.from=t&&h.to>e&&(r=h)}}return r}function iu(s){let t=s.lastChild;return t&&t.to==s.to&&t.type.isError}function io(s,t,e){for(let i of s.facet(Zc)){let n=i(s,t,e);if(n)return n}return eu(s,t,e)}function hh(s,t){let e=t.mapPos(s.from,1),i=t.mapPos(s.to,-1);return e>=i?void 0:{from:e,to:i}}const ah=V.define({map:hh}),Hs=V.define({map:hh}),Gi=vt.define({create(){return H.none},update(s,t){s=s.map(t.changes);for(let e of t.effects)e.is(ah)&&!nu(s,e.value.from,e.value.to)?s=s.update({add:[no.range(e.value.from,e.value.to)]}):e.is(Hs)&&(s=s.update({filter:(i,n)=>e.value.from!=i||e.value.to!=n,filterFrom:e.value.from,filterTo:e.value.to}));if(t.selection){let e=!1,{head:i}=t.selection.main;s.between(i,i,(n,r)=>{ni&&(e=!0)}),e&&(s=s.update({filterFrom:i,filterTo:i,filter:(n,r)=>r<=i||n>=i}))}return s},provide:s=>D.decorations.from(s),toJSON(s,t){let e=[];return s.between(0,t.doc.length,(i,n)=>{e.push(i,n)}),e},fromJSON(s){if(!Array.isArray(s)||s.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e{(!n||n.from>r)&&(n={from:r,to:o})}),n}function nu(s,t,e){let i=!1;return s.between(t,t,(n,r)=>{n==t&&r==e&&(i=!0)}),i}const su={placeholderDOM:null,placeholderText:"…"},fh=M.define({combine(s){return nn(s,su)}});function ru(s){let t=[Gi,hu];return s&&t.push(fh.of(s)),t}const no=H.replace({widget:new class extends ti{toDOM(s){let{state:t}=s,e=t.facet(fh),i=r=>{let o=s.lineBlockAt(s.posAtDOM(r.target)),l=ps(s.state,o.from,o.to);l&&s.dispatch({effects:Hs.of(l)}),r.preventDefault()};if(e.placeholderDOM)return e.placeholderDOM(s,i);let n=document.createElement("span");return n.textContent=e.placeholderText,n.setAttribute("aria-label",t.phrase("folded code")),n.title=t.phrase("unfold"),n.className="cm-foldPlaceholder",n.onclick=i,n}}}),ou={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Tn extends me{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function lu(s={}){let t=Object.assign(Object.assign({},ou),s),e=new Tn(t,!0),i=new Tn(t,!1),n=Ht.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(se)!=o.state.facet(se)||o.startState.field(Gi,!1)!=o.state.field(Gi,!1)||ht(o.startState)!=ht(o.state)||t.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let l=new Me;for(let h of o.viewportLineBlocks){let a=ps(o.state,h.from,h.to)?i:io(o.state,h.from,h.to)?e:null;a&&l.add(h.from,h.from,a)}return l.finish()}}),{domEventHandlers:r}=t;return[n,vc({class:"cm-foldGutter",markers(o){var l;return((l=o.plugin(n))===null||l===void 0?void 0:l.markers)||L.empty},initialSpacer(){return new Tn(t,!1)},domEventHandlers:Object.assign(Object.assign({},r),{click:(o,l,h)=>{if(r.click&&r.click(o,l,h))return!0;let a=ps(o.state,l.from,l.to);if(a)return o.dispatch({effects:Hs.of(a)}),!0;let f=io(o.state,l.from,l.to);return f?(o.dispatch({effects:ah.of(f)}),!0):!1}})}),ru()]}const hu=D.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class hn{constructor(t,e){this.specs=t;let i;function n(l){let h=ee.newName();return(i||(i=Object.create(null)))["."+h]=l,h}const r=typeof e.all=="string"?e.all:e.all?n(e.all):void 0,o=e.scope;this.scope=o instanceof kt?l=>l.prop(Re)==o.data:o?l=>l==o:void 0,this.style=th(t.map(l=>({tag:l.tag,class:l.class||n(Object.assign({},l,{tag:null}))})),{all:r}).style,this.module=i?new ee(i):null,this.themeType=e.themeType}static define(t,e){return new hn(t,e||{})}}const gs=M.define(),ch=M.define({combine(s){return s.length?[s[0]]:null}});function Dn(s){let t=s.facet(gs);return t.length?t:s.facet(ch)}function au(s,t){let e=[cu],i;return s instanceof hn&&(s.module&&e.push(D.styleModule.of(s.module)),i=s.themeType),t!=null&&t.fallback?e.push(ch.of(s)):i?e.push(gs.computeN([D.darkTheme],n=>n.facet(D.darkTheme)==(i=="dark")?[s]:[])):e.push(gs.of(s)),e}class fu{constructor(t){this.markCache=Object.create(null),this.tree=ht(t.state),this.decorations=this.buildDeco(t,Dn(t.state))}update(t){let e=ht(t.state),i=Dn(t.state),n=i!=Dn(t.startState);e.length{i.add(o,l,this.markCache[h]||(this.markCache[h]=H.mark({class:h})))},n,r);return i.finish()}}const cu=tn.high(Ht.fromClass(fu,{decorations:s=>s.decorations})),uu=D.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),uh=1e4,dh="()[]{}",ph=M.define({combine(s){return nn(s,{afterCursor:!0,brackets:dh,maxScanDistance:uh,renderMatch:gu})}}),du=H.mark({class:"cm-matchingBracket"}),pu=H.mark({class:"cm-nonmatchingBracket"});function gu(s){let t=[],e=s.matched?du:pu;return t.push(e.range(s.start.from,s.start.to)),s.end&&t.push(e.range(s.end.from,s.end.to)),t}const mu=vt.define({create(){return H.none},update(s,t){if(!t.docChanged&&!t.selection)return s;let e=[],i=t.state.facet(ph);for(let n of t.state.selection.ranges){if(!n.empty)continue;let r=ki(t.state,n.head,-1,i)||n.head>0&&ki(t.state,n.head-1,1,i)||i.afterCursor&&(ki(t.state,n.head,1,i)||n.headD.decorations.from(s)}),yu=[mu,uu];function bu(s={}){return[ph.of(s),yu]}function ms(s,t,e){let i=s.prop(t<0?R.openedBy:R.closedBy);if(i)return i;if(s.name.length==1){let n=e.indexOf(s.name);if(n>-1&&n%2==(t<0?1:0))return[e[n+t]]}return null}function ki(s,t,e,i={}){let n=i.maxScanDistance||uh,r=i.brackets||dh,o=ht(s),l=o.resolveInner(t,e);for(let h=l;h;h=h.parent){let a=ms(h.type,e,r);if(a&&h.from=i.to){if(h==0&&n.indexOf(a.type.name)>-1&&a.from0)return null;let a={from:e<0?t-1:t,to:e>0?t+1:t},f=s.doc.iterRange(t,e>0?s.doc.length:0),c=0;for(let u=0;!f.next().done&&u<=r;){let d=f.value;e<0&&(u+=d.length);let p=t+u*e;for(let m=e>0?0:d.length-1,g=e>0?d.length:-1;m!=g;m+=e){let y=o.indexOf(d[m]);if(!(y<0||i.resolveInner(p+m,1).type!=n))if(y%2==0==e>0)c++;else{if(c==1)return{start:a,end:{from:p+m,to:p+m+1},matched:y>>1==h>>1};c--}}e>0&&(u+=d.length)}return f.done?{start:a,matched:!1}:null}function so(s,t,e,i=0,n=0){t==null&&(t=s.search(/[^\s\u00a0]/),t==-1&&(t=s.length));let r=n;for(let o=i;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pose}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPosi?o.toLowerCase():o,r=this.string.substr(this.pos,t.length);return n(r)==n(t)?(e!==!1&&(this.pos+=t.length),!0):null}else{let n=this.string.slice(this.pos).match(t);return n&&n.index>0?null:(n&&e!==!1&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function xu(s){return{name:s.name||"",token:s.token,blankLine:s.blankLine||(()=>{}),startState:s.startState||(()=>!0),copyState:s.copyState||Su,indent:s.indent||(()=>null),languageData:s.languageData||{},tokenTable:s.tokenTable||js}}function Su(s){if(typeof s!="object")return s;let t={};for(let e in s){let i=s[e];t[e]=i instanceof Array?i.slice():i}return t}class zs extends kt{constructor(t){let e=eh(t.languageData),i=xu(t),n,r=new class extends Ns{createParse(o,l,h){return new Cu(n,o,l,h)}};super(e,r,[nh.of((o,l)=>this.getIndent(o,l))],t.name),this.topNode=Mu(e),n=this,this.streamParser=i,this.stateAfter=new R({perNode:!0}),this.tokenTable=t.tokenTable?new wh(i.tokenTable):Ou}static define(t){return new zs(t)}getIndent(t,e){let i=ht(t.state),n=i.resolve(e);for(;n&&n.type!=this.topNode;)n=n.parent;if(!n)return null;let r=Ws(this,i,0,n.from,e),o,l;if(r?(l=r.state,o=r.pos+1):(l=this.streamParser.startState(t.unit),o=0),e-o>1e4)return null;for(;o=i&&e+t.length<=n&&t.prop(s.stateAfter);if(r)return{state:s.streamParser.copyState(r),pos:e+t.length};for(let o=t.children.length-1;o>=0;o--){let l=t.children[o],h=e+t.positions[o],a=l instanceof F&&h=t.length)return t;!n&&t.type==s.topNode&&(n=!0);for(let r=t.children.length-1;r>=0;r--){let o=t.positions[r],l=t.children[r],h;if(oe&&Ws(s,n.tree,0-n.offset,e,o),h;if(l&&(h=mh(s,n.tree,e+n.offset,l.pos+n.offset,!1)))return{state:l.state,tree:h}}return{state:s.streamParser.startState(i?Ne(i):4),tree:F.empty}}let Cu=class{constructor(t,e,i,n){this.lang=t,this.input=e,this.fragments=i,this.ranges=n,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=n[n.length-1].to;let r=Ee.get(),o=n[0].from,{state:l,tree:h}=vu(t,i,o,r==null?void 0:r.state);this.state=l,this.parsedPos=this.chunkStart=o+h.length;for(let a=0;a=e?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)e==` `&&(e="");else{let i=e.indexOf(` -`);i>-1&&(e=e.slice(0,i))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),i=t+e.length;for(let n=this.rangeIndex;;){let r=this.ranges[n].to;if(r>=i||(e=e.slice(0,r-(i-e.length)),n++,n==this.ranges.length))break;let o=this.ranges[n].from,l=this.lineAfter(o);e+=l,i=o+l.length}return{line:e,end:i}}skipGapsTo(t,e,i){for(;;){let n=this.ranges[this.rangeIndex].to,r=t+e;if(i>0?n>r:n>=r)break;let o=this.ranges[++this.rangeIndex].from;e+=o-n}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){r=this.skipGapsTo(e,r,1),e+=r;let o=this.chunk.length;r=this.skipGapsTo(i,r,-1),i+=r,n+=this.chunk.length-o}return this.chunk.push(t,e,i,n),r}parseLine(t){let{line:e,end:i}=this.nextLine(),n=0,{streamParser:r}=this.lang,o=new gh(e,t?t.state.tabSize:4,t?Ne(t.state):2);if(o.eol())r.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=yh(r.token,o,this.state);if(l&&(n=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,4,n)),o.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPost.start)return n}throw new Error("Stream parser failed to advance stream.")}const js=Object.create(null),ti=[lt.none],Tu=new ln(ti),ro=[],bh=Object.create(null);for(let[s,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])bh[s]=kh(js,t);class wh{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),bh)}resolve(t){return t?this.table[t]||(this.table[t]=kh(this.extra,t)):0}}const Du=new wh(js);function Pn(s,t){ro.indexOf(s)>-1||(ro.push(s),console.warn(t))}function kh(s,t){let e=null;for(let r of t.split(".")){let o=s[r]||C[r];o?typeof o=="function"?e?e=o(e):Pn(r,`Modifier ${r} used at start of tag`):e?Pn(r,`Tag ${r} used as modifier`):e=o:Pn(r,`Unknown highlighting tag ${r}`)}if(!e)return 0;let i=t.replace(/ /g,"_"),n=lt.define({id:ti.length,name:i,props:[Yl({[i]:e})]});return ti.push(n),n.id}function Pu(s){let t=lt.define({id:ti.length,name:"Document",props:[Re.add(()=>s)]});return ti.push(t),t}class xh{constructor(t,e,i){this.state=t,this.pos=e,this.explicit=i,this.abortListeners=[]}tokenBefore(t){let e=ht(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),n=e.text.slice(i-e.from,this.pos-e.from),r=n.search(Sh(t,!1));return r<0?null:{from:i+r,to:this.pos,text:n.slice(r)}}get aborted(){return this.abortListeners==null}addEventListener(t,e){t=="abort"&&this.abortListeners&&this.abortListeners.push(e)}}function oo(s){let t=Object.keys(s).join(""),e=/\w/.test(t);return e&&(t=t.replace(/\w/g,"")),`[${e?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Bu(s){let t=Object.create(null),e=Object.create(null);for(let{label:n}of s){t[n[0]]=!0;for(let r=1;rtypeof n=="string"?{label:n}:n),[e,i]=t.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:Bu(t);return n=>{let r=n.matchBefore(i);return r||n.explicit?{from:r?r.from:n.pos,options:t,validFor:e}:null}}class lo{constructor(t,e,i){this.completion=t,this.source=e,this.match=i}}function te(s){return s.selection.main.head}function Sh(s,t){var e;let{source:i}=s,n=t&&i[0]!="^",r=i[i.length-1]!="$";return!n&&!r?s:new RegExp(`${n?"^":""}(?:${i})${r?"$":""}`,(e=s.flags)!==null&&e!==void 0?e:s.ignoreCase?"i":"")}const Eu=re.define();function Iu(s,t,e,i){return Object.assign(Object.assign({},s.changeByRange(n=>{if(n==s.selection.main)return{changes:{from:e,to:i,insert:t},range:b.cursor(e+t.length)};let r=i-e;return!n.empty||r&&s.sliceDoc(n.from-r,n.from)!=s.sliceDoc(e,i)?{range:n}:{changes:{from:n.from-r,to:n.from,insert:t},range:b.cursor(n.from-r+t.length)}})),{userEvent:"input.complete"})}function vh(s,t){const e=t.completion.apply||t.completion.label;let i=t.source;typeof e=="string"?s.dispatch(Object.assign(Object.assign({},Iu(s.state,e,i.from,i.to)),{annotations:Eu.of(t.completion)})):e(s,t.completion,i.from,i.to)}const ho=new WeakMap;function Nu(s){if(!Array.isArray(s))return s;let t=ho.get(s);return t||ho.set(s,t=Ru(s)),t}class Lu{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let e=0;e=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(O=Wo(S))!=O.toLowerCase()?1:O!=O.toUpperCase()?2:0;(!k||P==1&&g||T==0&&P!=0)&&(e[c]==S||i[c]==S&&(u=!0)?o[c++]=k:o.length&&(y=!1)),T=P,k+=Ot(S)}return c==h&&o[0]==0&&y?this.result(-100+(u?-200:0),o,t):d==h&&p==0?[-200-t.length,0,m]:l>-1?[-700-t.length,l,l+this.pattern.length]:d==h?[-900-t.length,p,m]:c==h?this.result(-100+(u?-200:0)+-700+(y?0:-1100),o,t):e.length==2?null:this.result((n[0]?-700:0)+-200+-1100,n,t)}result(t,e,i){let n=[t-i.length],r=1;for(let o of e){let l=o+(this.astral?Ot(pt(i,o)):1);r>1&&n[r-1]==o?n[r-1]=l:(n[r++]=o,n[r++]=l)}return n}}const xt=M.define({combine(s){return nn(s,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>i=>ao(t(i),e(i)),optionClass:(t,e)=>i=>ao(t(i),e(i)),addToOptions:(t,e)=>t.concat(e)})}});function ao(s,t){return s?t?s+" "+t:s:t}function Vu(s){let t=s.addToOptions.slice();return s.icons&&t.push({render(e){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),e.type&&i.classList.add(...e.type.split(/\s+/g).map(n=>"cm-completionIcon-"+n)),i.setAttribute("aria-hidden","true"),i},position:20}),t.push({render(e,i,n){let r=document.createElement("span");r.className="cm-completionLabel";let{label:o}=e,l=0;for(let h=1;hl&&r.appendChild(document.createTextNode(o.slice(l,a)));let c=r.appendChild(document.createElement("span"));c.appendChild(document.createTextNode(o.slice(a,f))),c.className="cm-completionMatchedText",l=f}return le.position-i.position).map(e=>e.render)}function fo(s,t,e){if(s<=e)return{from:0,to:s};if(t<0&&(t=0),t<=s>>1){let n=Math.floor(t/e);return{from:n*e,to:(n+1)*e}}let i=Math.floor((s-t)/e);return{from:s-(i+1)*e,to:s-i*e}}class Fu{constructor(t,e){this.view=t,this.stateField=e,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:l=>this.positionInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(e),{options:n,selected:r}=i.open,o=t.state.facet(xt);this.optionContent=Vu(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=fo(n.length,r,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{for(let h=l.target,a;h&&h!=this.dom;h=h.parentNode)if(h.nodeName=="LI"&&(a=/-(\d+)$/.exec(h.id))&&+a[1]{this.info&&this.view.requestMeasure(this.placeInfo)})}mount(){this.updateSel()}update(t){var e,i,n;let r=t.state.field(this.stateField),o=t.startState.field(this.stateField);this.updateTooltipClass(t.state),r!=o&&(this.updateSel(),((e=r.open)===null||e===void 0?void 0:e.disabled)!=((i=o.open)===null||i===void 0?void 0:i.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(!((n=r.open)===null||n===void 0)&&n.disabled)))}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of e.split(" "))i&&this.dom.classList.add(i);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=fo(e.options.length,e.selected,this.view.state.facet(xt).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e.options,t.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfo)})),this.updateSelectedOption(e.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:i}=e.options[e.selected],{info:n}=i;if(!n)return;let r=typeof n=="string"?document.createTextNode(n):n(i);if(!r)return;"then"in r?r.then(o=>{o&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(o)}).catch(o=>Mt(this.view.state,o,"completion info")):this.addInfoPane(r)}}addInfoPane(t){let e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(t),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(t){let e=null;for(let i=this.list.firstChild,n=this.range.from;i;i=i.nextSibling,n++)n==t?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&zu(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),n=t.getBoundingClientRect(),r=this.space;if(!r){let p=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:p.innerWidth,bottom:p.innerHeight}}if(n.top>Math.min(r.bottom,e.bottom)-10||n.bottom=i.height||p>e.top?f=n.bottom-e.top+"px":c=e.bottom-n.top+"px"}return{top:f,bottom:c,maxWidth:a,class:h?o?"left-narrow":"right-narrow":l?"left":"right"}}positionInfo(t){this.info&&(t?(this.info.style.top=t.top,this.info.style.bottom=t.bottom,this.info.style.maxWidth=t.maxWidth,this.info.className="cm-tooltip cm-completionInfo cm-completionInfo-"+t.class):this.info.style.top="-1e6px")}createListBox(t,e,i){const n=document.createElement("ul");n.id=e,n.setAttribute("role","listbox"),n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",this.view.state.phrase("Completions"));for(let r=i.from;rnew Fu(t,s)}function zu(s,t){let e=s.getBoundingClientRect(),i=t.getBoundingClientRect();i.tope.bottom&&(s.scrollTop+=i.bottom-e.bottom)}function co(s){return(s.boost||0)*100+(s.apply?10:0)+(s.info?5:0)+(s.type?1:0)}function Wu(s,t){let e=[],i=0;for(let l of s)if(l.hasResult())if(l.result.filter===!1){let h=l.result.getMatch;for(let a of l.result.options){let f=[1e9-i++];if(h)for(let c of h(a))f.push(c);e.push(new lo(a,l,f))}}else{let h=new Lu(t.sliceDoc(l.from,l.to)),a;for(let f of l.result.options)(a=h.match(f.label))&&(f.boost!=null&&(a[0]+=f.boost),e.push(new lo(f,l,a)))}let n=[],r=null,o=t.facet(xt).compareCompletions;for(let l of e.sort((h,a)=>a.match[0]-h.match[0]||o(h.completion,a.completion)))!r||r.label!=l.completion.label||r.detail!=l.completion.detail||r.type!=null&&l.completion.type!=null&&r.type!=l.completion.type||r.apply!=l.completion.apply?n.push(l):co(l.completion)>co(r)&&(n[n.length-1]=l),r=l.completion;return n}class xe{constructor(t,e,i,n,r,o){this.options=t,this.attrs=e,this.tooltip=i,this.timestamp=n,this.selected=r,this.disabled=o}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new xe(this.options,uo(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,i,n,r){let o=Wu(t,e);if(!o.length)return n&&t.some(h=>h.state==1)?new xe(n.options,n.attrs,n.tooltip,n.timestamp,n.selected,!0):null;let l=e.facet(xt).selectOnOpen?0:-1;if(n&&n.selected!=l&&n.selected!=-1){let h=n.options[n.selected].completion;for(let a=0;aa.hasResult()?Math.min(h,a.from):h,1e8),create:Hu(yt),above:r.aboveCursor},n?n.timestamp:Date.now(),l,!1)}map(t){return new xe(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Qi{constructor(t,e,i){this.active=t,this.id=e,this.open=i}static start(){return new Qi(Uu,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:e}=t,i=e.facet(xt),r=(i.override||e.languageDataAt("autocomplete",te(e)).map(Nu)).map(l=>(this.active.find(a=>a.source==l)||new at(l,this.active.some(a=>a.state!=0)?1:0)).update(t,i));r.length==this.active.length&&r.every((l,h)=>l==this.active[h])&&(r=this.active);let o=this.open;o&&t.docChanged&&(o=o.map(t.changes)),t.selection||r.some(l=>l.hasResult()&&t.changes.touchesRange(l.from,l.to))||!ju(r,this.active)?o=xe.build(r,e,this.id,o,i):o&&o.disabled&&!r.some(l=>l.state==1)&&(o=null),!o&&r.every(l=>l.state!=1)&&r.some(l=>l.hasResult())&&(r=r.map(l=>l.hasResult()?new at(l.source,0):l));for(let l of t.effects)l.is(Ah)&&(o=o&&o.setSelected(l.value,this.id));return r==this.active&&o==this.open?this:new Qi(r,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:qu}}function ju(s,t){if(s==t)return!0;for(let e=0,i=0;;){for(;e-1&&(e["aria-activedescendant"]=s+"-"+t),e}const Uu=[];function ys(s){return s.isUserEvent("input.type")?"input":s.isUserEvent("delete.backward")?"delete":null}class at{constructor(t,e,i=-1){this.source=t,this.state=e,this.explicitPos=i}hasResult(){return!1}update(t,e){let i=ys(t),n=this;i?n=n.handleUserEvent(t,i,e):t.docChanged?n=n.handleChange(t):t.selection&&n.state!=0&&(n=new at(n.source,0));for(let r of t.effects)if(r.is(qs))n=new at(n.source,1,r.value?te(t.state):-1);else if(r.is(Ji))n=new at(n.source,0);else if(r.is(Ch))for(let o of r.value)o.source==n.source&&(n=o);return n}handleUserEvent(t,e,i){return e=="delete"||!i.activateOnTyping?this.map(t.changes):new at(this.source,1)}handleChange(t){return t.changes.touchesRange(te(t.startState))?new at(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new at(this.source,this.state,t.mapPos(this.explicitPos))}}class Qe extends at{constructor(t,e,i,n,r){super(t,2,e),this.result=i,this.from=n,this.to=r}hasResult(){return!0}handleUserEvent(t,e,i){var n;let r=t.changes.mapPos(this.from),o=t.changes.mapPos(this.to,1),l=te(t.state);if((this.explicitPos<0?l<=r:lo||e=="delete"&&te(t.startState)==this.from)return new at(this.source,e=="input"&&i.activateOnTyping?1:0);let h=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),a;return Ku(this.result.validFor,t.state,r,o)?new Qe(this.source,h,this.result,r,o):this.result.update&&(a=this.result.update(this.result,r,o,new xh(t.state,l,h>=0)))?new Qe(this.source,h,a,a.from,(n=a.to)!==null&&n!==void 0?n:te(t.state)):new at(this.source,1,h)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new at(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new Qe(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function Ku(s,t,e,i){if(!s)return!1;let n=t.sliceDoc(e,i);return typeof s=="function"?s(n,e,i,t):Sh(s,!0).test(n)}const qs=V.define(),Ji=V.define(),Ch=V.define({map(s,t){return s.map(e=>e.map(t))}}),Ah=V.define(),yt=St.define({create(){return Qi.start()},update(s,t){return s.update(t)},provide:s=>[Gl.from(s,t=>t.tooltip),D.contentAttributes.from(s,t=>t.attrs)]});function xi(s,t="option"){return e=>{let i=e.state.field(yt,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+n*(s?1:-1):s?0:o-1;return l<0?l=t=="page"?0:o-1:l>=o&&(l=t=="page"?o-1:0),e.dispatch({effects:Ah.of(l)}),!0}}const Gu=s=>{let t=s.state.field(yt,!1);return s.state.readOnly||!t||!t.open||t.open.selected<0||Date.now()-t.open.timestamps.state.field(yt,!1)?(s.dispatch({effects:qs.of(!0)}),!0):!1,Ju=s=>{let t=s.state.field(yt,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(s.dispatch({effects:Ji.of(null)}),!0)};class $u{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const po=50,_u=50,Xu=1e3,Yu=Ht.fromClass(class{constructor(s){this.view=s,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of s.state.field(yt).active)t.state==1&&this.startQuery(t)}update(s){let t=s.state.field(yt);if(!s.selectionSet&&!s.docChanged&&s.startState.field(yt)==t)return;let e=s.transactions.some(i=>(i.selection||i.docChanged)&&!ys(i));for(let i=0;i_u&&Date.now()-n.time>Xu){for(let r of n.context.abortListeners)try{r()}catch(o){Mt(this.view.state,o)}n.context.abortListeners=null,this.running.splice(i--,1)}else n.updates.push(...s.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some(i=>i.state==1&&!this.running.some(n=>n.active.source==i.source))?setTimeout(()=>this.startUpdate(),po):-1,this.composing!=0)for(let i of s.transactions)ys(i)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:s}=this.view,t=s.field(yt);for(let e of t.active)e.state==1&&!this.running.some(i=>i.active.source==e.source)&&this.startQuery(e)}startQuery(s){let{state:t}=this.view,e=te(t),i=new xh(t,e,s.explicitPos==e),n=new $u(s,i);this.running.push(n),Promise.resolve(s.source(i)).then(r=>{n.context.aborted||(n.done=r||null,this.scheduleAccept())},r=>{this.view.dispatch({effects:Ji.of(null)}),Mt(this.view.state,r)})}scheduleAccept(){this.running.every(s=>s.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),po))}accept(){var s;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],e=this.view.state.facet(xt);for(let i=0;io.source==n.active.source);if(r&&r.state==1)if(n.done==null){let o=new at(n.active.source,0);for(let l of n.updates)o=o.update(l,e);o.state!=1&&t.push(o)}else this.startQuery(r)}t.length&&this.view.dispatch({effects:Ch.of(t)})}},{eventHandlers:{blur(){let s=this.view.state.field(yt,!1);s&&s.tooltip&&this.view.state.facet(xt).closeOnBlur&&this.view.dispatch({effects:Ji.of(null)})},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:qs.of(!1)}),20),this.composing=0}}}),Zu=D.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),$i={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ce=V.define({map(s,t){let e=t.mapPos(s,-1,ft.TrackAfter);return e??void 0}}),Us=V.define({map(s,t){return t.mapPos(s)}}),Ks=new class extends pe{};Ks.startSide=1;Ks.endSide=-1;const Oh=St.define({create(){return L.empty},update(s,t){if(t.selection){let e=t.state.doc.lineAt(t.selection.main.head).from,i=t.startState.doc.lineAt(t.startState.selection.main.head).from;e!=t.changes.mapPos(i,-1)&&(s=L.empty)}s=s.map(t.changes);for(let e of t.effects)e.is(ce)?s=s.update({add:[Ks.range(e.value,e.value+1)]}):e.is(Us)&&(s=s.update({filter:i=>i!=e.value}));return s}});function td(){return[sd,Oh]}const Bn="()[]{}<>";function ed(s){for(let t=0;t{if((nd?s.composing:s.compositionStarted)||s.state.readOnly)return!1;let n=s.state.selection.main;if(i.length>2||i.length==2&&Ot(pt(i,0))==1||t!=n.from||e!=n.to)return!1;let r=rd(s.state,i);return r?(s.dispatch(r),!0):!1});function rd(s,t){let e=id(s,s.selection.main.head),i=e.brackets||$i.brackets;for(let n of i){let r=ed(pt(n,0));if(t==n)return r==n?hd(s,n,i.indexOf(n+n+n)>-1,e):od(s,n,r,e.before||$i.before);if(t==r&&Mh(s,s.selection.main.from))return ld(s,n,r)}return null}function Mh(s,t){let e=!1;return s.field(Oh).between(0,s.doc.length,i=>{i==t&&(e=!0)}),e}function Gs(s,t){let e=s.sliceString(t,t+2);return e.slice(0,Ot(pt(e,0)))}function od(s,t,e,i){let n=null,r=s.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:e,from:o.to}],effects:ce.of(o.to+t.length),range:b.range(o.anchor+t.length,o.head+t.length)};let l=Gs(s.doc,o.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:t+e,from:o.head},effects:ce.of(o.head+t.length),range:b.cursor(o.head+t.length)}:{range:n=o}});return n?null:s.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function ld(s,t,e){let i=null,n=s.selection.ranges.map(r=>r.empty&&Gs(s.doc,r.head)==e?b.cursor(r.head+e.length):i=r);return i?null:s.update({selection:b.create(n,s.selection.mainIndex),scrollIntoView:!0,effects:s.selection.ranges.map(({from:r})=>Us.of(r))})}function hd(s,t,e,i){let n=i.stringPrefixes||$i.stringPrefixes,r=null,o=s.changeByRange(l=>{if(!l.empty)return{changes:[{insert:t,from:l.from},{insert:t,from:l.to}],effects:ce.of(l.to+t.length),range:b.range(l.anchor+t.length,l.head+t.length)};let h=l.head,a=Gs(s.doc,h),f;if(a==t){if(go(s,h))return{changes:{insert:t+t,from:h},effects:ce.of(h+t.length),range:b.cursor(h+t.length)};if(Mh(s,h)){let c=e&&s.sliceDoc(h,h+t.length*3)==t+t+t;return{range:b.cursor(h+t.length*(c?3:1)),effects:Us.of(h)}}}else{if(e&&s.sliceDoc(h-2*t.length,h)==t+t&&(f=mo(s,h-2*t.length,n))>-1&&go(s,f))return{changes:{insert:t+t+t+t,from:h},effects:ce.of(h+t.length),range:b.cursor(h+t.length)};if(s.charCategorizer(h)(a)!=bt.Word&&mo(s,h,n)>-1&&!ad(s,h,t,n))return{changes:{insert:t+t,from:h},effects:ce.of(h+t.length),range:b.cursor(h+t.length)}}return{range:r=l}});return r?null:s.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function go(s,t){let e=ht(s).resolveInner(t+1);return e.parent&&e.from==t}function ad(s,t,e,i){let n=ht(s).resolveInner(t,-1),r=i.reduce((o,l)=>Math.max(o,l.length),0);for(let o=0;o<5;o++){let l=s.sliceDoc(n.from,Math.min(n.to,n.from+e.length+r)),h=l.indexOf(e);if(!h||h>-1&&i.indexOf(l.slice(0,h))>-1){let f=n.firstChild;for(;f&&f.from==n.from&&f.to-f.from>e.length+h;){if(s.sliceDoc(f.to-e.length,f.to)==e)return!1;f=f.firstChild}return!0}let a=n.to==t&&n.parent;if(!a)break;n=a}return!1}function mo(s,t,e){let i=s.charCategorizer(t);if(i(s.sliceDoc(t-1,t))!=bt.Word)return t;for(let n of e){let r=t-n.length;if(s.sliceDoc(r,t)==n&&i(s.sliceDoc(r-1,r))!=bt.Word)return r}return-1}function fd(s={}){return[yt,xt.of(s),Yu,ud,Zu]}const cd=[{key:"Ctrl-Space",run:Qu},{key:"Escape",run:Ju},{key:"ArrowDown",run:xi(!0)},{key:"ArrowUp",run:xi(!1)},{key:"PageDown",run:xi(!0,"page")},{key:"PageUp",run:xi(!1,"page")},{key:"Enter",run:Gu}],ud=tn.highest(Bs.computeN([xt],s=>s.facet(xt).defaultKeymap?[cd]:[])),bs=re.define(),dd=re.define(),pd=M.define(),gd=M.define({combine(s){return nn(s,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})}});function md(s){let t=0;return s.iterChangedRanges((e,i)=>t=i),t}const yd=St.define({create(){return Nt.empty},update(s,t){let e=t.state.facet(gd),i=t.annotation(bs);if(i){let h=t.docChanged?b.single(md(t.changes)):void 0,a=ct.fromTransaction(t,h),f=i.side,c=f==0?s.undone:s.done;return a?c=_i(c,c.length,e.minDepth,a):c=Dh(c,t.startState.selection),new Nt(f==0?i.rest:c,f==0?c:i.rest)}let n=t.annotation(dd);if((n=="full"||n=="before")&&(s=s.isolate()),t.annotation($.addToHistory)===!1)return t.changes.empty?s:s.addMapping(t.changes.desc);let r=ct.fromTransaction(t),o=t.annotation($.time),l=t.annotation($.userEvent);return r?s=s.addChanges(r,o,l,e.newGroupDelay,e.minDepth):t.selection&&(s=s.addSelection(t.startState.selection,o,l,e.newGroupDelay)),(n=="full"||n=="after")&&(s=s.isolate()),s},toJSON(s){return{done:s.done.map(t=>t.toJSON()),undone:s.undone.map(t=>t.toJSON())}},fromJSON(s){return new Nt(s.done.map(ct.fromJSON),s.undone.map(ct.fromJSON))}});function an(s,t){return function({state:e,dispatch:i}){if(!t&&e.readOnly)return!1;let n=e.field(yd,!1);if(!n)return!1;let r=n.pop(s,e,t);return r?(i(r),!0):!1}}const bd=an(0,!1),yo=an(1,!1),wd=an(0,!0),kd=an(1,!0);class ct{constructor(t,e,i,n,r){this.changes=t,this.effects=e,this.mapped=i,this.startSelection=n,this.selectionsAfter=r}setSelAfter(t){return new ct(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,i;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(e=this.mapped)===null||e===void 0?void 0:e.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(n=>n.toJSON())}}static fromJSON(t){return new ct(t.changes&&J.fromJSON(t.changes),[],t.mapped&&Lt.fromJSON(t.mapped),t.startSelection&&b.fromJSON(t.startSelection),t.selectionsAfter.map(b.fromJSON))}static fromTransaction(t,e){let i=kt;for(let n of t.startState.facet(pd)){let r=n(t);r.length&&(i=i.concat(r))}return!i.length&&t.changes.empty?null:new ct(t.changes.invert(t.startState.doc),i,void 0,e||t.startState.selection,kt)}static selection(t){return new ct(void 0,kt,void 0,void 0,t)}}function _i(s,t,e,i){let n=t+1>e+20?t-e-1:0,r=s.slice(n,t);return r.push(i),r}function xd(s,t){let e=[],i=!1;return s.iterChangedRanges((n,r)=>e.push(n,r)),t.iterChangedRanges((n,r,o,l)=>{for(let h=0;h=a&&o<=f&&(i=!0)}}),i}function Sd(s,t){return s.ranges.length==t.ranges.length&&s.ranges.filter((e,i)=>e.empty!=t.ranges[i].empty).length===0}function Th(s,t){return s.length?t.length?s.concat(t):s:t}const kt=[],vd=200;function Dh(s,t){if(s.length){let e=s[s.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-vd));return i.length&&i[i.length-1].eq(t)?s:(i.push(t),_i(s,s.length-1,1e9,e.setSelAfter(i)))}else return[ct.selection([t])]}function Cd(s){let t=s[s.length-1],e=s.slice();return e[s.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),e}function Rn(s,t){if(!s.length)return s;let e=s.length,i=kt;for(;e;){let n=Ad(s[e-1],t,i);if(n.changes&&!n.changes.empty||n.effects.length){let r=s.slice(0,e);return r[e-1]=n,r}else t=n.mapped,e--,i=n.selectionsAfter}return i.length?[ct.selection(i)]:kt}function Ad(s,t,e){let i=Th(s.selectionsAfter.length?s.selectionsAfter.map(l=>l.map(t)):kt,e);if(!s.changes)return ct.selection(i);let n=s.changes.map(t),r=t.mapDesc(s.changes,!0),o=s.mapped?s.mapped.composeDesc(r):r;return new ct(n,V.mapEffects(s.effects,t),o,s.startSelection.map(r),i)}const Od=/^(input\.type|delete)($|\.)/;class Nt{constructor(t,e,i=0,n=void 0){this.done=t,this.undone=e,this.prevTime=i,this.prevUserEvent=n}isolate(){return this.prevTime?new Nt(this.done,this.undone):this}addChanges(t,e,i,n,r){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&t.changes&&(!i||Od.test(i))&&(!l.selectionsAfter.length&&e-this.prevTime0&&e-this.prevTimee.empty?s.moveByChar(e,t):fn(e,t))}function vt(s){return s.textDirectionAt(s.state.selection.main.head)==_.LTR}const Bh=s=>Ph(s,!vt(s)),Rh=s=>Ph(s,vt(s));function Eh(s,t){return Ut(s,e=>e.empty?s.moveByGroup(e,t):fn(e,t))}const Td=s=>Eh(s,!vt(s)),Dd=s=>Eh(s,vt(s));function Ih(s,t){return Ut(s,e=>{if(!e.empty)return fn(e,t);let i=s.moveVertically(e,t);return i.head!=e.head?i:s.moveToLineBoundary(e,t)})}const Nh=s=>Ih(s,!1),Lh=s=>Ih(s,!0);function Vh(s){return Math.max(s.defaultLineHeight,Math.min(s.dom.clientHeight,innerHeight)-5)}function Fh(s,t){let{state:e}=s,i=Qs(e.selection,l=>l.empty?s.moveVertically(l,t,Vh(s)):fn(l,t));if(i.eq(e.selection))return!1;let n=s.coordsAtPos(e.selection.main.head),r=s.scrollDOM.getBoundingClientRect(),o;return n&&n.top>r.top&&n.bottomFh(s,!1),ws=s=>Fh(s,!0);function oe(s,t,e){let i=s.lineBlockAt(t.head),n=s.moveToLineBoundary(t,e);if(n.head==t.head&&n.head!=(e?i.to:i.from)&&(n=s.moveToLineBoundary(t,e,!1)),!e&&n.head==i.from&&i.length){let r=/^\s*/.exec(s.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&t.head!=i.from+r&&(n=b.cursor(i.from+r))}return n}const Pd=s=>Ut(s,t=>oe(s,t,!0)),Bd=s=>Ut(s,t=>oe(s,t,!1)),Rd=s=>Ut(s,t=>oe(s,t,!vt(s))),Ed=s=>Ut(s,t=>oe(s,t,vt(s))),Id=s=>Ut(s,t=>b.cursor(s.lineBlockAt(t.head).from,1)),Nd=s=>Ut(s,t=>b.cursor(s.lineBlockAt(t.head).to,-1));function zt(s,t){let e=Qs(s.state.selection,i=>{let n=t(i);return b.range(i.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return e.eq(s.state.selection)?!1:(s.dispatch(be(s.state,e)),!0)}function Hh(s,t){return zt(s,e=>s.moveByChar(e,t))}const zh=s=>Hh(s,!vt(s)),Wh=s=>Hh(s,vt(s));function jh(s,t){return zt(s,e=>s.moveByGroup(e,t))}const Ld=s=>jh(s,!vt(s)),Vd=s=>jh(s,vt(s));function qh(s,t){return zt(s,e=>s.moveVertically(e,t))}const Uh=s=>qh(s,!1),Kh=s=>qh(s,!0);function Gh(s,t){return zt(s,e=>s.moveVertically(e,t,Vh(s)))}const wo=s=>Gh(s,!1),ko=s=>Gh(s,!0),Fd=s=>zt(s,t=>oe(s,t,!0)),Hd=s=>zt(s,t=>oe(s,t,!1)),zd=s=>zt(s,t=>oe(s,t,!vt(s))),Wd=s=>zt(s,t=>oe(s,t,vt(s))),jd=s=>zt(s,t=>b.cursor(s.lineBlockAt(t.head).from)),qd=s=>zt(s,t=>b.cursor(s.lineBlockAt(t.head).to)),xo=({state:s,dispatch:t})=>(t(be(s,{anchor:0})),!0),So=({state:s,dispatch:t})=>(t(be(s,{anchor:s.doc.length})),!0),vo=({state:s,dispatch:t})=>(t(be(s,{anchor:s.selection.main.anchor,head:0})),!0),Co=({state:s,dispatch:t})=>(t(be(s,{anchor:s.selection.main.anchor,head:s.doc.length})),!0),Ud=({state:s,dispatch:t})=>(t(s.update({selection:{anchor:0,head:s.doc.length},userEvent:"select"})),!0);function cn(s,t){if(s.state.readOnly)return!1;let e="delete.selection",{state:i}=s,n=i.changeByRange(r=>{let{from:o,to:l}=r;if(o==l){let h=t(o);ho&&(e="delete.forward",h=Si(s,h,!0)),o=Math.min(o,h),l=Math.max(l,h)}else o=Si(s,o,!1),l=Si(s,l,!0);return o==l?{range:r}:{changes:{from:o,to:l},range:b.cursor(o)}});return n.changes.empty?!1:(s.dispatch(i.update(n,{scrollIntoView:!0,userEvent:e,effects:e=="delete.selection"?D.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function Si(s,t,e){if(s instanceof D)for(let i of s.state.facet(D.atomicRanges).map(n=>n(s)))i.between(t,t,(n,r)=>{nt&&(t=e?r:n)});return t}const Qh=(s,t)=>cn(s,e=>{let{state:i}=s,n=i.doc.lineAt(e),r,o;if(!t&&e>n.from&&eQh(s,!1),Jh=s=>Qh(s,!0),$h=(s,t)=>cn(s,e=>{let i=e,{state:n}=s,r=n.doc.lineAt(i),o=n.charCategorizer(i);for(let l=null;;){if(i==(t?r.to:r.from)){i==e&&r.number!=(t?n.doc.lines:1)&&(i+=t?1:-1);break}let h=mt(r.text,i-r.from,t)+r.from,a=r.text.slice(Math.min(i,h)-r.from,Math.max(i,h)-r.from),f=o(a);if(l!=null&&f!=l)break;(a!=" "||i!=e)&&(l=f),i=h}return i}),_h=s=>$h(s,!1),Kd=s=>$h(s,!0),Xh=s=>cn(s,t=>{let e=s.lineBlockAt(t).to;return tcn(s,t=>{let e=s.lineBlockAt(t).from;return t>e?e:Math.max(0,t-1)}),Qd=({state:s,dispatch:t})=>{if(s.readOnly)return!1;let e=s.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:N.of(["",""])},range:b.cursor(i.from)}));return t(s.update(e,{scrollIntoView:!0,userEvent:"input"})),!0},Jd=({state:s,dispatch:t})=>{if(s.readOnly)return!1;let e=s.changeByRange(i=>{if(!i.empty||i.from==0||i.from==s.doc.length)return{range:i};let n=i.from,r=s.doc.lineAt(n),o=n==r.from?n-1:mt(r.text,n-r.from,!1)+r.from,l=n==r.to?n+1:mt(r.text,n-r.from,!0)+r.from;return{changes:{from:o,to:l,insert:s.doc.slice(n,l).append(s.doc.slice(o,n))},range:b.cursor(l)}});return e.changes.empty?!1:(t(s.update(e,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function $d(s,t){if(/\(\)|\[\]|\{\}/.test(s.sliceDoc(t-1,t+1)))return{from:t,to:t};let e=ht(s).resolveInner(t),i=e.childBefore(t),n=e.childAfter(t),r;return i&&n&&i.to<=t&&n.from>=t&&(r=i.type.prop(R.closedBy))&&r.indexOf(n.name)>-1&&s.doc.lineAt(i.to).from==s.doc.lineAt(n.from).from?{from:i.to,to:n.from}:null}const _d=Xd(!1);function Xd(s){return({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>{let{from:r,to:o}=n,l=t.doc.lineAt(r),h=!s&&r==o&&$d(t,r);s&&(r=o=(o<=l.to?l:t.doc.lineAt(o)).to);let a=new Vs(t,{simulateBreak:r,simulateDoubleBreak:!!h}),f=sh(a,r);for(f==null&&(f=/^\s*/.exec(t.doc.lineAt(r).text)[0].length);ol.from&&r({mac:s.key,run:s.run,shift:s.shift})));var Ao={};class Xi{constructor(t,e,i,n,r,o,l,h,a,f=0,c){this.p=t,this.stack=e,this.state=i,this.reducePos=n,this.pos=r,this.score=o,this.buffer=l,this.bufferBase=h,this.curContext=a,this.lookAhead=f,this.parent=c}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,i=0){let n=t.parser.context;return new Xi(t,[],e,i,i,0,[],0,n?new Oo(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){let e=t>>19,i=t&65535,{parser:n}=this.p,r=n.dynamicPrecedence(i);if(r&&(this.score+=r),e==0){this.pushState(n.getGoto(this.state,i,!0),this.reducePos),i=2e3&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,e,i,n=4,r=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[l-4]==0&&o.buffer[l-1]>-1){if(e==i)return;if(o.buffer[l-2]>=e){o.buffer[l-2]=i;return}}}if(!r||this.pos==i)this.buffer.push(t,e,i,n);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,n>4&&(n-=4);this.buffer[o]=t,this.buffer[o+1]=e,this.buffer[o+2]=i,this.buffer[o+3]=n}}shift(t,e,i){let n=this.pos;if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(e,n),e<=this.p.parser.maxNode&&this.buffer.push(e,n,i,4);else{let r=t,{parser:o}=this.p;(i>this.pos||e<=o.maxNode)&&(this.pos=i,o.stateFlag(r,1)||(this.reducePos=i)),this.pushState(r,n),this.shiftContext(e,n),e<=o.maxNode&&this.buffer.push(e,n,i,4)}}apply(t,e,i){t&65536?this.reduce(t):this.shift(t,e,i)}useNode(t,e){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=t)&&(this.p.reused.push(t),i++);let n=this.pos;this.reducePos=this.pos=n+t.length,this.pushState(e,n),this.buffer.push(i,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let i=t.buffer.slice(e),n=t.bufferBase+e;for(;t&&n==t.bufferBase;)t=t.parent;return new Xi(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,n,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let i=t<=this.p.parser.maxNode;i&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new tp(this);;){let i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(i==0)return!1;if(!(i&65536))return!0;e.reduce(i)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let n=[];for(let r=0,o;rh&1&&l==o)||n.push(e[r],o)}e=n}let i=[];for(let n=0;n>19,n=t&65535,r=this.stack.length-i*3;if(r<0||e.getGoto(this.stack[r],n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Oo{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}var Mo;(function(s){s[s.Insert=200]="Insert",s[s.Delete=190]="Delete",s[s.Reduce=100]="Reduce",s[s.MaxNext=4]="MaxNext",s[s.MaxInsertStackDepth=300]="MaxInsertStackDepth",s[s.DampenInsertStackDepth=120]="DampenInsertStackDepth",s[s.MinBigReduction=2e3]="MinBigReduction"})(Mo||(Mo={}));class tp{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,i=t>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=n}}class Yi{constructor(t,e,i){this.stack=t,this.pos=e,this.index=i,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new Yi(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Yi(this.stack,this.pos,this.index)}}function vi(s,t=Uint16Array){if(typeof s!="string")return s;let e=null;for(let i=0,n=0;i=92&&o--,o>=34&&o--;let h=o-32;if(h>=46&&(h-=46,l=!0),r+=h,l)break;r*=46}e?e[n++]=r:e=new t(r)}return e}class Bi{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const To=new Bi;class ep{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=To,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let i=this.range,n=this.rangeIndex,r=this.pos+t;for(;ri.to:r>=i.to;){if(n==this.ranges.length-1)return null;let o=this.ranges[++n];r+=o.from-i.to,i=o}return r}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,i,n;if(e>=0&&e=this.chunk2Pos&&il.to&&(this.chunk2=this.chunk2.slice(0,l.to-i)),n=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),n}acceptToken(t,e=0){let i=e?this.resolveOffset(e,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=To,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let i="";for(let n of this.ranges){if(n.from>=e)break;n.to>t&&(i+=this.input.read(Math.max(n.from,t),Math.min(n.to,e)))}return i}}class Oe{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:i}=e.p;ip(this.data,t,e,this.id,i.data,i.tokenPrecTable)}}Oe.prototype.contextual=Oe.prototype.fallback=Oe.prototype.extend=!1;Oe.prototype.fallback=Oe.prototype.extend=!1;function ip(s,t,e,i,n,r){let o=0,l=1<0){let p=s[d];if(h.allows(p)&&(t.token.value==-1||t.token.value==p||np(p,t.token.value,n,r))){t.acceptToken(p);break}}let f=t.next,c=0,u=s[o+2];if(t.next<0&&u>c&&s[a+u*3-3]==65535&&s[a+u*3-3]==65535){o=s[a+u*3-1];continue t}for(;c>1,p=a+d+(d<<1),m=s[p],g=s[p+1]||65536;if(f=g)c=d+1;else{o=s[p+2],t.advance();continue t}}break}}function Do(s,t,e){for(let i=t,n;(n=s[i])!=65535;i++)if(n==e)return i-t;return-1}function np(s,t,e,i){let n=Do(e,i,t);return n<0||Do(e,i,s)t)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(s.length,Math.max(i.from+1,t+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:s.length}}class sp{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?Bo(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Bo(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=o,null;if(r instanceof F){if(o==t){if(o=Math.max(this.safeFrom,t)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[e]++,this.nextStart=o+r.length}}}class rp{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(i=>new Bi)}getActions(t){let e=0,i=null,{parser:n}=t.p,{tokenizers:r}=n,o=n.stateSlot(t.state,3),l=t.curContext?t.curContext.hash:0,h=0;for(let a=0;ac.end+25&&(h=Math.max(c.lookAhead,h)),c.value!=0)){let u=e;if(c.extended>-1&&(e=this.addActions(t,c.extended,c.end,e)),e=this.addActions(t,c.value,c.end,e),!f.extend&&(i=c,e>u))break}}for(;this.actions.length>e;)this.actions.pop();return h&&t.setLookAhead(h),!i&&t.pos==this.stream.end&&(i=new Bi,i.value=t.p.parser.eofTerm,i.start=i.end=t.pos,e=this.addActions(t,i.value,i.end,e)),this.mainToken=i,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new Bi,{pos:i,p:n}=t;return e.start=i,e.end=Math.min(i+1,n.stream.end),e.value=i==n.stream.end?n.parser.eofTerm:0,e}updateCachedToken(t,e,i){let n=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(n,t),i),t.value>-1){let{parser:r}=i.p;for(let o=0;o=0&&i.p.parser.dialect.allows(l>>1)){l&1?t.extended=l>>1:t.value=l>>1;break}}}else t.value=0,t.end=this.stream.clipPos(n+1)}putAction(t,e,i,n){for(let r=0;rt.bufferLength*4?new sp(i,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,i=this.stacks=[],n,r;if(this.bigReductionCount>1e3&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;oe)i.push(l);else{if(this.advanceStack(l,i,t))continue;{n||(n=[],r=[]),n.push(l);let h=this.tokens.getMainToken(l);r.push(h.value,h.end)}}break}}if(!i.length){let o=n&&hp(n);if(o)return this.stackToTree(o);if(this.parser.strict)throw At&&n&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&n){let o=this.stoppedAt!=null&&n[0].pos>this.stoppedAt?n[0]:this.runRecovery(n,r,i);if(o)return this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(i.length>o)for(i.sort((l,h)=>h.score-l.score);i.length>o;)i.pop();i.some(l=>l.reducePos>e)&&this.recovering--}else if(i.length>1)t:for(let o=0;o500&&a.buffer.length>500)if((l.score-a.score||l.buffer.length-a.buffer.length)>0)i.splice(h--,1);else{i.splice(o--,1);continue t}}}this.minStackPos=i[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,f=a?t.curContext.hash:0;for(let c=this.fragments.nodeAt(n);c;){let u=this.parser.nodeSet.types[c.type.id]==c.type?r.getGoto(t.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(R.contextHash)||0)==f))return t.useNode(c,u),At&&console.log(o+this.stackID(t)+` (via reuse of ${r.getName(c.type.id)})`),!0;if(!(c instanceof F)||c.children.length==0||c.positions[0]>0)break;let d=c.children[0];if(d instanceof F&&c.positions[0]==0)c=d;else break}}let l=r.stateSlot(t.state,4);if(l>0)return t.reduce(l),At&&console.log(o+this.stackID(t)+` (via always-reduce ${r.getName(l&65535)})`),!0;if(t.stack.length>=15e3)for(;t.stack.length>9e3&&t.forceReduce(););let h=this.tokens.getActions(t);for(let a=0;an?e.push(p):i.push(p)}return!1}advanceFully(t,e){let i=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>i)return Eo(t,e),!0}}runRecovery(t,e,i){let n=null,r=!1;for(let o=0;o ":"";if(l.deadEnd&&(r||(r=!0,l.restart(),At&&console.log(f+this.stackID(l)+" (restarted)"),this.advanceFully(l,i))))continue;let c=l.split(),u=f;for(let d=0;c.forceReduce()&&d<10&&(At&&console.log(u+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,i));d++)At&&(u=this.stackID(c)+" -> ");for(let d of l.recoverByInsert(h))At&&console.log(f+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,i);this.stream.end>l.pos?(a==l.pos&&(a++,h=0),l.recoverByDelete(h,a),At&&console.log(f+this.stackID(l)+` (via recover-delete ${this.parser.getName(h)})`),Eo(l,i)):(!n||n.scoret.topRules[l][1]),n=[];for(let l=0;l=0)r(f,h,l[a++]);else{let c=l[a+-f];for(let u=-f;u>0;u--)r(l[a++],h,c);a++}}}this.nodeSet=new ln(e.map((l,h)=>lt.define({name:h>=this.minRepeatTerm?void 0:l,id:h,props:n[h],top:i.indexOf(h)>-1,error:h==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(h)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=$l;let o=vi(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new Oe(o,l):l),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,i){let n=new op(this,t,e,i);for(let r of this.wrappers)n=r(n,t,e,i);return n}getGoto(t,e,i=!1){let n=this.goto;if(e>=n[0])return-1;for(let r=n[e+1];;){let o=n[r++],l=o&1,h=n[r++];if(l&&i)return h;for(let a=r+(o>>1);r0}validAction(t,e){if(e==this.stateSlot(t,4))return!0;for(let i=this.stateSlot(t,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=jt(this.data,i+2);else return!1;if(e==jt(this.data,i+1))return!0}}nextStates(t){let e=[];for(let i=this.stateSlot(t,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=jt(this.data,i+2);else break;if(!(this.data[i+2]&1)){let n=this.data[i+1];e.some((r,o)=>o&1&&r==n)||e.push(this.data[i],n)}}return e}configure(t){let e=Object.assign(Object.create(Zi.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let i=this.topRules[t.top];if(!i)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=i}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(i=>{let n=t.tokenizers.find(r=>r.from==i);return n?n.to:i})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((i,n)=>{let r=t.specializers.find(l=>l.from==i.external);if(!r)return i;let o=Object.assign(Object.assign({},i),{external:r.to});return e.specializers[n]=Io(o),o})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),i=e.map(()=>!1);if(t)for(let r of t.split(" ")){let o=e.indexOf(r);o>=0&&(i[o]=!0)}let n=null;for(let r=0;ri)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scores.external(e,i)<<1|t}return s.get}const ap=Yl({String:C.string,Number:C.number,"True False":C.bool,PropertyName:C.propertyName,Null:C.null,",":C.separator,"[ ]":C.squareBracket,"{ }":C.brace}),fp=Zi.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[ap],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),cp=Ki.define({name:"json",parser:fp.configure({props:[rh.add({Object:eo({except:/^\s*\}/}),Array:eo({except:/^\s*\]/})}),lh.add({"Object Array":nu})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function up(){return new Gc(cp)}var xs={};function Js(s,t){for(var e=0;e1&&s.eat("$");var e=s.next();return/['"({]/.test(e)?(t.tokens[0]=un(e,e=="("?"quote":e=="{"?"def":"string"),Le(s,t)):(/\d/.test(e)||s.eatWhile(/\w/),t.tokens.shift(),"def")};function gp(s){return function(t,e){return t.sol()&&t.string==s&&e.tokens.shift(),t.skipToEnd(),"string.special"}}function Le(s,t){return(t.tokens[0]||dp)(s,t)}const mp={name:"shell",startState:function(){return{tokens:[]}},token:function(s,t){return Le(s,t)},languageData:{autocomplete:Yh.concat(Zh,ta),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}},yp=D.theme({"&":{color:"white",backgroundColor:Y.black,borderRadius:"0.75rem",borderWidth:"2px",borderColor:Y.slate[600],padding:"0.5rem"},".cm-matchingBracket":{backgroundColor:Y.black},".cm-scroller":{fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace'},".cm-content":{caretColor:Y.white,fontSize:"0.875em"},".cm-editor&.cm-focused":{outline:`1px solid ${Y.indigo[600]}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:Y.slate[700]},"&.cm-focused .cm-cursor":{borderLeftColor:Y.white},"&.cm-focused .cm-selectionBackground, ::selection":{backgroundColor:Y.indigo[500]},".cm-gutters":{backgroundColor:Y.black,color:Y.white,borderRight:"none"},".cm-line":{color:"#ccc"}},{dark:!1}),bp=hn.define([{tag:C.punctuation,color:Y.slate[200]},{tag:C.string,color:Y.slate[200]},{tag:C.propertyName,color:Y.indigo[400]},{tag:C.bool,color:Y.slate[200]},{tag:C.number,color:Y.slate[200]},{tag:C.operator,color:Y.pink[500]},{tag:C.comment,color:Y.green[600]},{tag:C.variableName,color:Y.pink[500]}]);function No(s){let t,e;return t=new va({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:"absolute right-1 top-1 text-white hover:bg-slate-800",copied:s[6]}}),t.$on("click",s[8]),{c(){ba(t.$$.fragment)},l(i){wa(t.$$.fragment,i)},m(i,n){ka(t,i,n),e=!0},p(i,n){const r={};n&8&&(r.copyIconTitle=i[3]),n&16&&(r.copySuccessIconTitle=i[4]),n&64&&(r.copied=i[6]),t.$set(r)},i(i){e||(Ci(t.$$.fragment,i),e=!0)},o(i){Nn(t.$$.fragment,i),e=!1},d(i){xa(t,i)}}}function wp(s){let t,e,i,n,r,o,l,h=[{class:s[0]},{"data-testid":i=s[9].testId},s[10]],a={};for(let c=0;c{f=null}),ya())},i(c){r||(Ci(f),r=!0)},o(c){Nn(f),r=!1},d(c){c&&dn(t),s[18](null),f&&f.d(),o=!1,l()}}}function kp(s,t,e){let i;const n=["content","class","editable","inline","language","copyable","copyIconTitle","copySuccessIconTitle","minHeight","maxHeight","resetView"];let r=er(t,n),o;const l=aa();let{content:h}=t,{class:a=null}=t,{editable:f=!1}=t,{inline:c=!1}=t,{language:u="json"}=t,{copyable:d=!0}=t,{copyIconTitle:p=""}=t,{copySuccessIconTitle:m=""}=t,{minHeight:g=void 0}=t,{maxHeight:y=void 0}=t;const{copy:k,copied:A}=Ca();fa(s,A,v=>e(6,o=v));const T=v=>{k(v,h)};let S,O;const P=v=>{if(!v)return;let q;try{q=Aa(v)}catch{q=v}return Oa(q,void 0,c?0:2)},Q=({value:v,language:q})=>q==="json"?P(v):v,I=()=>new D({parent:S,state:B(i),dispatch(v){O.update([v]),v.docChanged&&l("change",O.state.doc.toString())}}),B=v=>{const q=[Bs.of([...Zd,...Md]),yp,uu(bp,{fallback:!0}),Ls.of(" "),td(),fd(),eu(),xu(),E.readOnly.of(!f)];return u==="json"&&q.push(up()),u==="shell"&&q.push(zs.define(mp)),c||q.push(D.lineWrapping),!c&&!f&&q.push(fu()),(g||y)&&q.push(D.theme({"&":{...g?{"min-height":`${g}px`}:{},...y?{"max-height":`${y}px`}:{}}})),E.create({doc:v,extensions:q})};ca(()=>{O=I()});const z=(v="",q=!0)=>{const Ve=q?Q({value:v,language:u}):v,Tt=B(Ve);O.setState(Tt)},it=()=>{O&&!f&&z(i,!1)};function ut(v){ua.call(this,s,v)}function Kt(v){da[v?"unshift":"push"](()=>{S=v,e(5,S)})}return s.$$set=v=>{e(9,t=In(In({},t),ir(v))),e(10,r=er(t,n)),"content"in v&&e(11,h=v.content),"class"in v&&e(0,a=v.class),"editable"in v&&e(1,f=v.editable),"inline"in v&&e(12,c=v.inline),"language"in v&&e(13,u=v.language),"copyable"in v&&e(2,d=v.copyable),"copyIconTitle"in v&&e(3,p=v.copyIconTitle),"copySuccessIconTitle"in v&&e(4,m=v.copySuccessIconTitle),"minHeight"in v&&e(14,g=v.minHeight),"maxHeight"in v&&e(15,y=v.maxHeight)},s.$$.update=()=>{s.$$.dirty&10240&&(i=Q({value:h,language:u})),s.$$.dirty&10240&&it()},t=ir(t),[a,f,d,p,m,S,o,A,T,t,r,h,c,u,g,y,z,ut,Kt]}class Pp extends pa{constructor(t){super(),ga(this,t,kp,wp,ia,{content:11,class:0,editable:1,inline:12,language:13,copyable:2,copyIconTitle:3,copySuccessIconTitle:4,minHeight:14,maxHeight:15,resetView:16})}get resetView(){return this.$$.ctx[16]}}export{Pp as C}; +`);i>-1&&(e=e.slice(0,i))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),i=t+e.length;for(let n=this.rangeIndex;;){let r=this.ranges[n].to;if(r>=i||(e=e.slice(0,r-(i-e.length)),n++,n==this.ranges.length))break;let o=this.ranges[n].from,l=this.lineAfter(o);e+=l,i=o+l.length}return{line:e,end:i}}skipGapsTo(t,e,i){for(;;){let n=this.ranges[this.rangeIndex].to,r=t+e;if(i>0?n>r:n>=r)break;let o=this.ranges[++this.rangeIndex].from;e+=o-n}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){r=this.skipGapsTo(e,r,1),e+=r;let o=this.chunk.length;r=this.skipGapsTo(i,r,-1),i+=r,n+=this.chunk.length-o}return this.chunk.push(t,e,i,n),r}parseLine(t){let{line:e,end:i}=this.nextLine(),n=0,{streamParser:r}=this.lang,o=new gh(e,t?t.state.tabSize:4,t?Ne(t.state):2);if(o.eol())r.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=yh(r.token,o,this.state);if(l&&(n=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,4,n)),o.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPost.start)return n}throw new Error("Stream parser failed to advance stream.")}const js=Object.create(null),Ze=[lt.none],Au=new ln(Ze),ro=[],bh=Object.create(null);for(let[s,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])bh[s]=kh(js,t);class wh{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),bh)}resolve(t){return t?this.table[t]||(this.table[t]=kh(this.extra,t)):0}}const Ou=new wh(js);function Pn(s,t){ro.indexOf(s)>-1||(ro.push(s),console.warn(t))}function kh(s,t){let e=null;for(let r of t.split(".")){let o=s[r]||v[r];o?typeof o=="function"?e?e=o(e):Pn(r,`Modifier ${r} used at start of tag`):e?Pn(r,`Tag ${r} used as modifier`):e=o:Pn(r,`Unknown highlighting tag ${r}`)}if(!e)return 0;let i=t.replace(/ /g,"_"),n=lt.define({id:Ze.length,name:i,props:[Yl({[i]:e})]});return Ze.push(n),n.id}function Mu(s){let t=lt.define({id:Ze.length,name:"Document",props:[Re.add(()=>s)]});return Ze.push(t),t}class xh{constructor(t,e,i){this.state=t,this.pos=e,this.explicit=i,this.abortListeners=[]}tokenBefore(t){let e=ht(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),n=e.text.slice(i-e.from,this.pos-e.from),r=n.search(Sh(t,!1));return r<0?null:{from:i+r,to:this.pos,text:n.slice(r)}}get aborted(){return this.abortListeners==null}addEventListener(t,e){t=="abort"&&this.abortListeners&&this.abortListeners.push(e)}}function oo(s){let t=Object.keys(s).join(""),e=/\w/.test(t);return e&&(t=t.replace(/\w/g,"")),`[${e?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Tu(s){let t=Object.create(null),e=Object.create(null);for(let{label:n}of s){t[n[0]]=!0;for(let r=1;rtypeof n=="string"?{label:n}:n),[e,i]=t.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:Tu(t);return n=>{let r=n.matchBefore(i);return r||n.explicit?{from:r?r.from:n.pos,options:t,validFor:e}:null}}class lo{constructor(t,e,i){this.completion=t,this.source=e,this.match=i}}function te(s){return s.selection.main.head}function Sh(s,t){var e;let{source:i}=s,n=t&&i[0]!="^",r=i[i.length-1]!="$";return!n&&!r?s:new RegExp(`${n?"^":""}(?:${i})${r?"$":""}`,(e=s.flags)!==null&&e!==void 0?e:s.ignoreCase?"i":"")}const Pu=re.define();function Bu(s,t,e,i){return Object.assign(Object.assign({},s.changeByRange(n=>{if(n==s.selection.main)return{changes:{from:e,to:i,insert:t},range:b.cursor(e+t.length)};let r=i-e;return!n.empty||r&&s.sliceDoc(n.from-r,n.from)!=s.sliceDoc(e,i)?{range:n}:{changes:{from:n.from-r,to:n.from,insert:t},range:b.cursor(n.from-r+t.length)}})),{userEvent:"input.complete"})}function vh(s,t){const e=t.completion.apply||t.completion.label;let i=t.source;typeof e=="string"?s.dispatch(Object.assign(Object.assign({},Bu(s.state,e,i.from,i.to)),{annotations:Pu.of(t.completion)})):e(s,t.completion,i.from,i.to)}const ho=new WeakMap;function Ru(s){if(!Array.isArray(s))return s;let t=ho.get(s);return t||ho.set(s,t=Du(s)),t}class Eu{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let e=0;e=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(A=Wo(S))!=A.toLowerCase()?1:A!=A.toUpperCase()?2:0;(!k||P==1&&g||T==0&&P!=0)&&(e[c]==S||i[c]==S&&(u=!0)?o[c++]=k:o.length&&(y=!1)),T=P,k+=Mt(S)}return c==h&&o[0]==0&&y?this.result(-100+(u?-200:0),o,t):d==h&&p==0?[-200-t.length,0,m]:l>-1?[-700-t.length,l,l+this.pattern.length]:d==h?[-900-t.length,p,m]:c==h?this.result(-100+(u?-200:0)+-700+(y?0:-1100),o,t):e.length==2?null:this.result((n[0]?-700:0)+-200+-1100,n,t)}result(t,e,i){let n=[t-i.length],r=1;for(let o of e){let l=o+(this.astral?Mt(pt(i,o)):1);r>1&&n[r-1]==o?n[r-1]=l:(n[r++]=o,n[r++]=l)}return n}}const St=M.define({combine(s){return nn(s,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>i=>ao(t(i),e(i)),optionClass:(t,e)=>i=>ao(t(i),e(i)),addToOptions:(t,e)=>t.concat(e)})}});function ao(s,t){return s?t?s+" "+t:s:t}function Iu(s){let t=s.addToOptions.slice();return s.icons&&t.push({render(e){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),e.type&&i.classList.add(...e.type.split(/\s+/g).map(n=>"cm-completionIcon-"+n)),i.setAttribute("aria-hidden","true"),i},position:20}),t.push({render(e,i,n){let r=document.createElement("span");r.className="cm-completionLabel";let{label:o}=e,l=0;for(let h=1;hl&&r.appendChild(document.createTextNode(o.slice(l,a)));let c=r.appendChild(document.createElement("span"));c.appendChild(document.createTextNode(o.slice(a,f))),c.className="cm-completionMatchedText",l=f}return le.position-i.position).map(e=>e.render)}function fo(s,t,e){if(s<=e)return{from:0,to:s};if(t<0&&(t=0),t<=s>>1){let n=Math.floor(t/e);return{from:n*e,to:(n+1)*e}}let i=Math.floor((s-t)/e);return{from:s-(i+1)*e,to:s-i*e}}class Nu{constructor(t,e){this.view=t,this.stateField=e,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:l=>this.positionInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(e),{options:n,selected:r}=i.open,o=t.state.facet(St);this.optionContent=Iu(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=fo(n.length,r,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{for(let h=l.target,a;h&&h!=this.dom;h=h.parentNode)if(h.nodeName=="LI"&&(a=/-(\d+)$/.exec(h.id))&&+a[1]{this.info&&this.view.requestMeasure(this.placeInfo)})}mount(){this.updateSel()}update(t){var e,i,n;let r=t.state.field(this.stateField),o=t.startState.field(this.stateField);this.updateTooltipClass(t.state),r!=o&&(this.updateSel(),((e=r.open)===null||e===void 0?void 0:e.disabled)!=((i=o.open)===null||i===void 0?void 0:i.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(!((n=r.open)===null||n===void 0)&&n.disabled)))}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of e.split(" "))i&&this.dom.classList.add(i);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=fo(e.options.length,e.selected,this.view.state.facet(St).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e.options,t.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfo)})),this.updateSelectedOption(e.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:i}=e.options[e.selected],{info:n}=i;if(!n)return;let r=typeof n=="string"?document.createTextNode(n):n(i);if(!r)return;"then"in r?r.then(o=>{o&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(o)}).catch(o=>Tt(this.view.state,o,"completion info")):this.addInfoPane(r)}}addInfoPane(t){let e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(t),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(t){let e=null;for(let i=this.list.firstChild,n=this.range.from;i;i=i.nextSibling,n++)n==t?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&Vu(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),n=t.getBoundingClientRect(),r=this.space;if(!r){let p=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:p.innerWidth,bottom:p.innerHeight}}if(n.top>Math.min(r.bottom,e.bottom)-10||n.bottom=i.height||p>e.top?f=n.bottom-e.top+"px":c=e.bottom-n.top+"px"}return{top:f,bottom:c,maxWidth:a,class:h?o?"left-narrow":"right-narrow":l?"left":"right"}}positionInfo(t){this.info&&(t?(this.info.style.top=t.top,this.info.style.bottom=t.bottom,this.info.style.maxWidth=t.maxWidth,this.info.className="cm-tooltip cm-completionInfo cm-completionInfo-"+t.class):this.info.style.top="-1e6px")}createListBox(t,e,i){const n=document.createElement("ul");n.id=e,n.setAttribute("role","listbox"),n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",this.view.state.phrase("Completions"));for(let r=i.from;rnew Nu(t,s)}function Vu(s,t){let e=s.getBoundingClientRect(),i=t.getBoundingClientRect();i.tope.bottom&&(s.scrollTop+=i.bottom-e.bottom)}function co(s){return(s.boost||0)*100+(s.apply?10:0)+(s.info?5:0)+(s.type?1:0)}function Fu(s,t){let e=[],i=0;for(let l of s)if(l.hasResult())if(l.result.filter===!1){let h=l.result.getMatch;for(let a of l.result.options){let f=[1e9-i++];if(h)for(let c of h(a))f.push(c);e.push(new lo(a,l,f))}}else{let h=new Eu(t.sliceDoc(l.from,l.to)),a;for(let f of l.result.options)(a=h.match(f.label))&&(f.boost!=null&&(a[0]+=f.boost),e.push(new lo(f,l,a)))}let n=[],r=null,o=t.facet(St).compareCompletions;for(let l of e.sort((h,a)=>a.match[0]-h.match[0]||o(h.completion,a.completion)))!r||r.label!=l.completion.label||r.detail!=l.completion.detail||r.type!=null&&l.completion.type!=null&&r.type!=l.completion.type||r.apply!=l.completion.apply?n.push(l):co(l.completion)>co(r)&&(n[n.length-1]=l),r=l.completion;return n}class xe{constructor(t,e,i,n,r,o){this.options=t,this.attrs=e,this.tooltip=i,this.timestamp=n,this.selected=r,this.disabled=o}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new xe(this.options,uo(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,i,n,r){let o=Fu(t,e);if(!o.length)return n&&t.some(h=>h.state==1)?new xe(n.options,n.attrs,n.tooltip,n.timestamp,n.selected,!0):null;let l=e.facet(St).selectOnOpen?0:-1;if(n&&n.selected!=l&&n.selected!=-1){let h=n.options[n.selected].completion;for(let a=0;aa.hasResult()?Math.min(h,a.from):h,1e8),create:Lu(bt),above:r.aboveCursor},n?n.timestamp:Date.now(),l,!1)}map(t){return new xe(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Qi{constructor(t,e,i){this.active=t,this.id=e,this.open=i}static start(){return new Qi(Wu,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:e}=t,i=e.facet(St),r=(i.override||e.languageDataAt("autocomplete",te(e)).map(Ru)).map(l=>(this.active.find(a=>a.source==l)||new at(l,this.active.some(a=>a.state!=0)?1:0)).update(t,i));r.length==this.active.length&&r.every((l,h)=>l==this.active[h])&&(r=this.active);let o=this.open;o&&t.docChanged&&(o=o.map(t.changes)),t.selection||r.some(l=>l.hasResult()&&t.changes.touchesRange(l.from,l.to))||!Hu(r,this.active)?o=xe.build(r,e,this.id,o,i):o&&o.disabled&&!r.some(l=>l.state==1)&&(o=null),!o&&r.every(l=>l.state!=1)&&r.some(l=>l.hasResult())&&(r=r.map(l=>l.hasResult()?new at(l.source,0):l));for(let l of t.effects)l.is(Ah)&&(o=o&&o.setSelected(l.value,this.id));return r==this.active&&o==this.open?this:new Qi(r,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:zu}}function Hu(s,t){if(s==t)return!0;for(let e=0,i=0;;){for(;e-1&&(e["aria-activedescendant"]=s+"-"+t),e}const Wu=[];function ys(s){return s.isUserEvent("input.type")?"input":s.isUserEvent("delete.backward")?"delete":null}class at{constructor(t,e,i=-1){this.source=t,this.state=e,this.explicitPos=i}hasResult(){return!1}update(t,e){let i=ys(t),n=this;i?n=n.handleUserEvent(t,i,e):t.docChanged?n=n.handleChange(t):t.selection&&n.state!=0&&(n=new at(n.source,0));for(let r of t.effects)if(r.is(qs))n=new at(n.source,1,r.value?te(t.state):-1);else if(r.is(Ji))n=new at(n.source,0);else if(r.is(Ch))for(let o of r.value)o.source==n.source&&(n=o);return n}handleUserEvent(t,e,i){return e=="delete"||!i.activateOnTyping?this.map(t.changes):new at(this.source,1)}handleChange(t){return t.changes.touchesRange(te(t.startState))?new at(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new at(this.source,this.state,t.mapPos(this.explicitPos))}}class Ge extends at{constructor(t,e,i,n,r){super(t,2,e),this.result=i,this.from=n,this.to=r}hasResult(){return!0}handleUserEvent(t,e,i){var n;let r=t.changes.mapPos(this.from),o=t.changes.mapPos(this.to,1),l=te(t.state);if((this.explicitPos<0?l<=r:lo||e=="delete"&&te(t.startState)==this.from)return new at(this.source,e=="input"&&i.activateOnTyping?1:0);let h=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),a;return ju(this.result.validFor,t.state,r,o)?new Ge(this.source,h,this.result,r,o):this.result.update&&(a=this.result.update(this.result,r,o,new xh(t.state,l,h>=0)))?new Ge(this.source,h,a,a.from,(n=a.to)!==null&&n!==void 0?n:te(t.state)):new at(this.source,1,h)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new at(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new Ge(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function ju(s,t,e,i){if(!s)return!1;let n=t.sliceDoc(e,i);return typeof s=="function"?s(n,e,i,t):Sh(s,!0).test(n)}const qs=V.define(),Ji=V.define(),Ch=V.define({map(s,t){return s.map(e=>e.map(t))}}),Ah=V.define(),bt=vt.define({create(){return Qi.start()},update(s,t){return s.update(t)},provide:s=>[Gl.from(s,t=>t.tooltip),D.contentAttributes.from(s,t=>t.attrs)]});function xi(s,t="option"){return e=>{let i=e.state.field(bt,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+n*(s?1:-1):s?0:o-1;return l<0?l=t=="page"?0:o-1:l>=o&&(l=t=="page"?o-1:0),e.dispatch({effects:Ah.of(l)}),!0}}const qu=s=>{let t=s.state.field(bt,!1);return s.state.readOnly||!t||!t.open||t.open.selected<0||Date.now()-t.open.timestamps.state.field(bt,!1)?(s.dispatch({effects:qs.of(!0)}),!0):!1,Ku=s=>{let t=s.state.field(bt,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(s.dispatch({effects:Ji.of(null)}),!0)};class Gu{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const po=50,Qu=50,Ju=1e3,$u=Ht.fromClass(class{constructor(s){this.view=s,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of s.state.field(bt).active)t.state==1&&this.startQuery(t)}update(s){let t=s.state.field(bt);if(!s.selectionSet&&!s.docChanged&&s.startState.field(bt)==t)return;let e=s.transactions.some(i=>(i.selection||i.docChanged)&&!ys(i));for(let i=0;iQu&&Date.now()-n.time>Ju){for(let r of n.context.abortListeners)try{r()}catch(o){Tt(this.view.state,o)}n.context.abortListeners=null,this.running.splice(i--,1)}else n.updates.push(...s.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some(i=>i.state==1&&!this.running.some(n=>n.active.source==i.source))?setTimeout(()=>this.startUpdate(),po):-1,this.composing!=0)for(let i of s.transactions)ys(i)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:s}=this.view,t=s.field(bt);for(let e of t.active)e.state==1&&!this.running.some(i=>i.active.source==e.source)&&this.startQuery(e)}startQuery(s){let{state:t}=this.view,e=te(t),i=new xh(t,e,s.explicitPos==e),n=new Gu(s,i);this.running.push(n),Promise.resolve(s.source(i)).then(r=>{n.context.aborted||(n.done=r||null,this.scheduleAccept())},r=>{this.view.dispatch({effects:Ji.of(null)}),Tt(this.view.state,r)})}scheduleAccept(){this.running.every(s=>s.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),po))}accept(){var s;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],e=this.view.state.facet(St);for(let i=0;io.source==n.active.source);if(r&&r.state==1)if(n.done==null){let o=new at(n.active.source,0);for(let l of n.updates)o=o.update(l,e);o.state!=1&&t.push(o)}else this.startQuery(r)}t.length&&this.view.dispatch({effects:Ch.of(t)})}},{eventHandlers:{blur(){let s=this.view.state.field(bt,!1);s&&s.tooltip&&this.view.state.facet(St).closeOnBlur&&this.view.dispatch({effects:Ji.of(null)})},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:qs.of(!1)}),20),this.composing=0}}}),_u=D.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),$i={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ce=V.define({map(s,t){let e=t.mapPos(s,-1,ft.TrackAfter);return e??void 0}}),Us=V.define({map(s,t){return t.mapPos(s)}}),Ks=new class extends pe{};Ks.startSide=1;Ks.endSide=-1;const Oh=vt.define({create(){return L.empty},update(s,t){if(t.selection){let e=t.state.doc.lineAt(t.selection.main.head).from,i=t.startState.doc.lineAt(t.startState.selection.main.head).from;e!=t.changes.mapPos(i,-1)&&(s=L.empty)}s=s.map(t.changes);for(let e of t.effects)e.is(ce)?s=s.update({add:[Ks.range(e.value,e.value+1)]}):e.is(Us)&&(s=s.update({filter:i=>i!=e.value}));return s}});function Xu(){return[ed,Oh]}const Bn="()[]{}<>";function Yu(s){for(let t=0;t{if((td?s.composing:s.compositionStarted)||s.state.readOnly)return!1;let n=s.state.selection.main;if(i.length>2||i.length==2&&Mt(pt(i,0))==1||t!=n.from||e!=n.to)return!1;let r=id(s.state,i);return r?(s.dispatch(r),!0):!1});function id(s,t){let e=Zu(s,s.selection.main.head),i=e.brackets||$i.brackets;for(let n of i){let r=Yu(pt(n,0));if(t==n)return r==n?rd(s,n,i.indexOf(n+n+n)>-1,e):nd(s,n,r,e.before||$i.before);if(t==r&&Mh(s,s.selection.main.from))return sd(s,n,r)}return null}function Mh(s,t){let e=!1;return s.field(Oh).between(0,s.doc.length,i=>{i==t&&(e=!0)}),e}function Gs(s,t){let e=s.sliceString(t,t+2);return e.slice(0,Mt(pt(e,0)))}function nd(s,t,e,i){let n=null,r=s.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:e,from:o.to}],effects:ce.of(o.to+t.length),range:b.range(o.anchor+t.length,o.head+t.length)};let l=Gs(s.doc,o.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:t+e,from:o.head},effects:ce.of(o.head+t.length),range:b.cursor(o.head+t.length)}:{range:n=o}});return n?null:s.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function sd(s,t,e){let i=null,n=s.selection.ranges.map(r=>r.empty&&Gs(s.doc,r.head)==e?b.cursor(r.head+e.length):i=r);return i?null:s.update({selection:b.create(n,s.selection.mainIndex),scrollIntoView:!0,effects:s.selection.ranges.map(({from:r})=>Us.of(r))})}function rd(s,t,e,i){let n=i.stringPrefixes||$i.stringPrefixes,r=null,o=s.changeByRange(l=>{if(!l.empty)return{changes:[{insert:t,from:l.from},{insert:t,from:l.to}],effects:ce.of(l.to+t.length),range:b.range(l.anchor+t.length,l.head+t.length)};let h=l.head,a=Gs(s.doc,h),f;if(a==t){if(go(s,h))return{changes:{insert:t+t,from:h},effects:ce.of(h+t.length),range:b.cursor(h+t.length)};if(Mh(s,h)){let c=e&&s.sliceDoc(h,h+t.length*3)==t+t+t;return{range:b.cursor(h+t.length*(c?3:1)),effects:Us.of(h)}}}else{if(e&&s.sliceDoc(h-2*t.length,h)==t+t&&(f=mo(s,h-2*t.length,n))>-1&&go(s,f))return{changes:{insert:t+t+t+t,from:h},effects:ce.of(h+t.length),range:b.cursor(h+t.length)};if(s.charCategorizer(h)(a)!=wt.Word&&mo(s,h,n)>-1&&!od(s,h,t,n))return{changes:{insert:t+t,from:h},effects:ce.of(h+t.length),range:b.cursor(h+t.length)}}return{range:r=l}});return r?null:s.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function go(s,t){let e=ht(s).resolveInner(t+1);return e.parent&&e.from==t}function od(s,t,e,i){let n=ht(s).resolveInner(t,-1),r=i.reduce((o,l)=>Math.max(o,l.length),0);for(let o=0;o<5;o++){let l=s.sliceDoc(n.from,Math.min(n.to,n.from+e.length+r)),h=l.indexOf(e);if(!h||h>-1&&i.indexOf(l.slice(0,h))>-1){let f=n.firstChild;for(;f&&f.from==n.from&&f.to-f.from>e.length+h;){if(s.sliceDoc(f.to-e.length,f.to)==e)return!1;f=f.firstChild}return!0}let a=n.to==t&&n.parent;if(!a)break;n=a}return!1}function mo(s,t,e){let i=s.charCategorizer(t);if(i(s.sliceDoc(t-1,t))!=wt.Word)return t;for(let n of e){let r=t-n.length;if(s.sliceDoc(r,t)==n&&i(s.sliceDoc(r-1,r))!=wt.Word)return r}return-1}function ld(s={}){return[bt,St.of(s),$u,ad,_u]}const hd=[{key:"Ctrl-Space",run:Uu},{key:"Escape",run:Ku},{key:"ArrowDown",run:xi(!0)},{key:"ArrowUp",run:xi(!1)},{key:"PageDown",run:xi(!0,"page")},{key:"PageUp",run:xi(!1,"page")},{key:"Enter",run:qu}],ad=tn.highest(Bs.computeN([St],s=>s.facet(St).defaultKeymap?[hd]:[])),bs=re.define(),fd=re.define(),cd=M.define(),ud=M.define({combine(s){return nn(s,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})}});function dd(s){let t=0;return s.iterChangedRanges((e,i)=>t=i),t}const pd=vt.define({create(){return Nt.empty},update(s,t){let e=t.state.facet(ud),i=t.annotation(bs);if(i){let h=t.docChanged?b.single(dd(t.changes)):void 0,a=ct.fromTransaction(t,h),f=i.side,c=f==0?s.undone:s.done;return a?c=_i(c,c.length,e.minDepth,a):c=Dh(c,t.startState.selection),new Nt(f==0?i.rest:c,f==0?c:i.rest)}let n=t.annotation(fd);if((n=="full"||n=="before")&&(s=s.isolate()),t.annotation($.addToHistory)===!1)return t.changes.empty?s:s.addMapping(t.changes.desc);let r=ct.fromTransaction(t),o=t.annotation($.time),l=t.annotation($.userEvent);return r?s=s.addChanges(r,o,l,e.newGroupDelay,e.minDepth):t.selection&&(s=s.addSelection(t.startState.selection,o,l,e.newGroupDelay)),(n=="full"||n=="after")&&(s=s.isolate()),s},toJSON(s){return{done:s.done.map(t=>t.toJSON()),undone:s.undone.map(t=>t.toJSON())}},fromJSON(s){return new Nt(s.done.map(ct.fromJSON),s.undone.map(ct.fromJSON))}});function an(s,t){return function({state:e,dispatch:i}){if(!t&&e.readOnly)return!1;let n=e.field(pd,!1);if(!n)return!1;let r=n.pop(s,e,t);return r?(i(r),!0):!1}}const gd=an(0,!1),yo=an(1,!1),md=an(0,!0),yd=an(1,!0);class ct{constructor(t,e,i,n,r){this.changes=t,this.effects=e,this.mapped=i,this.startSelection=n,this.selectionsAfter=r}setSelAfter(t){return new ct(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,i;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(e=this.mapped)===null||e===void 0?void 0:e.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(n=>n.toJSON())}}static fromJSON(t){return new ct(t.changes&&J.fromJSON(t.changes),[],t.mapped&&Lt.fromJSON(t.mapped),t.startSelection&&b.fromJSON(t.startSelection),t.selectionsAfter.map(b.fromJSON))}static fromTransaction(t,e){let i=xt;for(let n of t.startState.facet(cd)){let r=n(t);r.length&&(i=i.concat(r))}return!i.length&&t.changes.empty?null:new ct(t.changes.invert(t.startState.doc),i,void 0,e||t.startState.selection,xt)}static selection(t){return new ct(void 0,xt,void 0,void 0,t)}}function _i(s,t,e,i){let n=t+1>e+20?t-e-1:0,r=s.slice(n,t);return r.push(i),r}function bd(s,t){let e=[],i=!1;return s.iterChangedRanges((n,r)=>e.push(n,r)),t.iterChangedRanges((n,r,o,l)=>{for(let h=0;h=a&&o<=f&&(i=!0)}}),i}function wd(s,t){return s.ranges.length==t.ranges.length&&s.ranges.filter((e,i)=>e.empty!=t.ranges[i].empty).length===0}function Th(s,t){return s.length?t.length?s.concat(t):s:t}const xt=[],kd=200;function Dh(s,t){if(s.length){let e=s[s.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-kd));return i.length&&i[i.length-1].eq(t)?s:(i.push(t),_i(s,s.length-1,1e9,e.setSelAfter(i)))}else return[ct.selection([t])]}function xd(s){let t=s[s.length-1],e=s.slice();return e[s.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),e}function Rn(s,t){if(!s.length)return s;let e=s.length,i=xt;for(;e;){let n=Sd(s[e-1],t,i);if(n.changes&&!n.changes.empty||n.effects.length){let r=s.slice(0,e);return r[e-1]=n,r}else t=n.mapped,e--,i=n.selectionsAfter}return i.length?[ct.selection(i)]:xt}function Sd(s,t,e){let i=Th(s.selectionsAfter.length?s.selectionsAfter.map(l=>l.map(t)):xt,e);if(!s.changes)return ct.selection(i);let n=s.changes.map(t),r=t.mapDesc(s.changes,!0),o=s.mapped?s.mapped.composeDesc(r):r;return new ct(n,V.mapEffects(s.effects,t),o,s.startSelection.map(r),i)}const vd=/^(input\.type|delete)($|\.)/;class Nt{constructor(t,e,i=0,n=void 0){this.done=t,this.undone=e,this.prevTime=i,this.prevUserEvent=n}isolate(){return this.prevTime?new Nt(this.done,this.undone):this}addChanges(t,e,i,n,r){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&t.changes&&(!i||vd.test(i))&&(!l.selectionsAfter.length&&e-this.prevTime0&&e-this.prevTimee.empty?s.moveByChar(e,t):fn(e,t))}function Ct(s){return s.textDirectionAt(s.state.selection.main.head)==_.LTR}const Bh=s=>Ph(s,!Ct(s)),Rh=s=>Ph(s,Ct(s));function Eh(s,t){return Ut(s,e=>e.empty?s.moveByGroup(e,t):fn(e,t))}const Ad=s=>Eh(s,!Ct(s)),Od=s=>Eh(s,Ct(s));function Ih(s,t){return Ut(s,e=>{if(!e.empty)return fn(e,t);let i=s.moveVertically(e,t);return i.head!=e.head?i:s.moveToLineBoundary(e,t)})}const Nh=s=>Ih(s,!1),Lh=s=>Ih(s,!0);function Vh(s){return Math.max(s.defaultLineHeight,Math.min(s.dom.clientHeight,innerHeight)-5)}function Fh(s,t){let{state:e}=s,i=Qs(e.selection,l=>l.empty?s.moveVertically(l,t,Vh(s)):fn(l,t));if(i.eq(e.selection))return!1;let n=s.coordsAtPos(e.selection.main.head),r=s.scrollDOM.getBoundingClientRect(),o;return n&&n.top>r.top&&n.bottomFh(s,!1),ws=s=>Fh(s,!0);function oe(s,t,e){let i=s.lineBlockAt(t.head),n=s.moveToLineBoundary(t,e);if(n.head==t.head&&n.head!=(e?i.to:i.from)&&(n=s.moveToLineBoundary(t,e,!1)),!e&&n.head==i.from&&i.length){let r=/^\s*/.exec(s.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&t.head!=i.from+r&&(n=b.cursor(i.from+r))}return n}const Md=s=>Ut(s,t=>oe(s,t,!0)),Td=s=>Ut(s,t=>oe(s,t,!1)),Dd=s=>Ut(s,t=>oe(s,t,!Ct(s))),Pd=s=>Ut(s,t=>oe(s,t,Ct(s))),Bd=s=>Ut(s,t=>b.cursor(s.lineBlockAt(t.head).from,1)),Rd=s=>Ut(s,t=>b.cursor(s.lineBlockAt(t.head).to,-1));function zt(s,t){let e=Qs(s.state.selection,i=>{let n=t(i);return b.range(i.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return e.eq(s.state.selection)?!1:(s.dispatch(be(s.state,e)),!0)}function Hh(s,t){return zt(s,e=>s.moveByChar(e,t))}const zh=s=>Hh(s,!Ct(s)),Wh=s=>Hh(s,Ct(s));function jh(s,t){return zt(s,e=>s.moveByGroup(e,t))}const Ed=s=>jh(s,!Ct(s)),Id=s=>jh(s,Ct(s));function qh(s,t){return zt(s,e=>s.moveVertically(e,t))}const Uh=s=>qh(s,!1),Kh=s=>qh(s,!0);function Gh(s,t){return zt(s,e=>s.moveVertically(e,t,Vh(s)))}const wo=s=>Gh(s,!1),ko=s=>Gh(s,!0),Nd=s=>zt(s,t=>oe(s,t,!0)),Ld=s=>zt(s,t=>oe(s,t,!1)),Vd=s=>zt(s,t=>oe(s,t,!Ct(s))),Fd=s=>zt(s,t=>oe(s,t,Ct(s))),Hd=s=>zt(s,t=>b.cursor(s.lineBlockAt(t.head).from)),zd=s=>zt(s,t=>b.cursor(s.lineBlockAt(t.head).to)),xo=({state:s,dispatch:t})=>(t(be(s,{anchor:0})),!0),So=({state:s,dispatch:t})=>(t(be(s,{anchor:s.doc.length})),!0),vo=({state:s,dispatch:t})=>(t(be(s,{anchor:s.selection.main.anchor,head:0})),!0),Co=({state:s,dispatch:t})=>(t(be(s,{anchor:s.selection.main.anchor,head:s.doc.length})),!0),Wd=({state:s,dispatch:t})=>(t(s.update({selection:{anchor:0,head:s.doc.length},userEvent:"select"})),!0);function cn(s,t){if(s.state.readOnly)return!1;let e="delete.selection",{state:i}=s,n=i.changeByRange(r=>{let{from:o,to:l}=r;if(o==l){let h=t(o);ho&&(e="delete.forward",h=Si(s,h,!0)),o=Math.min(o,h),l=Math.max(l,h)}else o=Si(s,o,!1),l=Si(s,l,!0);return o==l?{range:r}:{changes:{from:o,to:l},range:b.cursor(o)}});return n.changes.empty?!1:(s.dispatch(i.update(n,{scrollIntoView:!0,userEvent:e,effects:e=="delete.selection"?D.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function Si(s,t,e){if(s instanceof D)for(let i of s.state.facet(D.atomicRanges).map(n=>n(s)))i.between(t,t,(n,r)=>{nt&&(t=e?r:n)});return t}const Qh=(s,t)=>cn(s,e=>{let{state:i}=s,n=i.doc.lineAt(e),r,o;if(!t&&e>n.from&&eQh(s,!1),Jh=s=>Qh(s,!0),$h=(s,t)=>cn(s,e=>{let i=e,{state:n}=s,r=n.doc.lineAt(i),o=n.charCategorizer(i);for(let l=null;;){if(i==(t?r.to:r.from)){i==e&&r.number!=(t?n.doc.lines:1)&&(i+=t?1:-1);break}let h=mt(r.text,i-r.from,t)+r.from,a=r.text.slice(Math.min(i,h)-r.from,Math.max(i,h)-r.from),f=o(a);if(l!=null&&f!=l)break;(a!=" "||i!=e)&&(l=f),i=h}return i}),_h=s=>$h(s,!1),jd=s=>$h(s,!0),Xh=s=>cn(s,t=>{let e=s.lineBlockAt(t).to;return tcn(s,t=>{let e=s.lineBlockAt(t).from;return t>e?e:Math.max(0,t-1)}),Ud=({state:s,dispatch:t})=>{if(s.readOnly)return!1;let e=s.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:N.of(["",""])},range:b.cursor(i.from)}));return t(s.update(e,{scrollIntoView:!0,userEvent:"input"})),!0},Kd=({state:s,dispatch:t})=>{if(s.readOnly)return!1;let e=s.changeByRange(i=>{if(!i.empty||i.from==0||i.from==s.doc.length)return{range:i};let n=i.from,r=s.doc.lineAt(n),o=n==r.from?n-1:mt(r.text,n-r.from,!1)+r.from,l=n==r.to?n+1:mt(r.text,n-r.from,!0)+r.from;return{changes:{from:o,to:l,insert:s.doc.slice(n,l).append(s.doc.slice(o,n))},range:b.cursor(l)}});return e.changes.empty?!1:(t(s.update(e,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Gd(s,t){if(/\(\)|\[\]|\{\}/.test(s.sliceDoc(t-1,t+1)))return{from:t,to:t};let e=ht(s).resolveInner(t),i=e.childBefore(t),n=e.childAfter(t),r;return i&&n&&i.to<=t&&n.from>=t&&(r=i.type.prop(R.closedBy))&&r.indexOf(n.name)>-1&&s.doc.lineAt(i.to).from==s.doc.lineAt(n.from).from?{from:i.to,to:n.from}:null}const Qd=Jd(!1);function Jd(s){return({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>{let{from:r,to:o}=n,l=t.doc.lineAt(r),h=!s&&r==o&&Gd(t,r);s&&(r=o=(o<=l.to?l:t.doc.lineAt(o)).to);let a=new Vs(t,{simulateBreak:r,simulateDoubleBreak:!!h}),f=sh(a,r);for(f==null&&(f=/^\s*/.exec(t.doc.lineAt(r).text)[0].length);ol.from&&r({mac:s.key,run:s.run,shift:s.shift})));var Ao={};class Xi{constructor(t,e,i,n,r,o,l,h,a,f=0,c){this.p=t,this.stack=e,this.state=i,this.reducePos=n,this.pos=r,this.score=o,this.buffer=l,this.bufferBase=h,this.curContext=a,this.lookAhead=f,this.parent=c}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,i=0){let n=t.parser.context;return new Xi(t,[],e,i,i,0,[],0,n?new Oo(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){let e=t>>19,i=t&65535,{parser:n}=this.p,r=n.dynamicPrecedence(i);if(r&&(this.score+=r),e==0){this.pushState(n.getGoto(this.state,i,!0),this.reducePos),i=2e3&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,e,i,n=4,r=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[l-4]==0&&o.buffer[l-1]>-1){if(e==i)return;if(o.buffer[l-2]>=e){o.buffer[l-2]=i;return}}}if(!r||this.pos==i)this.buffer.push(t,e,i,n);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,n>4&&(n-=4);this.buffer[o]=t,this.buffer[o+1]=e,this.buffer[o+2]=i,this.buffer[o+3]=n}}shift(t,e,i){let n=this.pos;if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(e,n),e<=this.p.parser.maxNode&&this.buffer.push(e,n,i,4);else{let r=t,{parser:o}=this.p;(i>this.pos||e<=o.maxNode)&&(this.pos=i,o.stateFlag(r,1)||(this.reducePos=i)),this.pushState(r,n),this.shiftContext(e,n),e<=o.maxNode&&this.buffer.push(e,n,i,4)}}apply(t,e,i){t&65536?this.reduce(t):this.shift(t,e,i)}useNode(t,e){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=t)&&(this.p.reused.push(t),i++);let n=this.pos;this.reducePos=this.pos=n+t.length,this.pushState(e,n),this.buffer.push(i,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let i=t.buffer.slice(e),n=t.bufferBase+e;for(;t&&n==t.bufferBase;)t=t.parent;return new Xi(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,n,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let i=t<=this.p.parser.maxNode;i&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new Xd(this);;){let i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(i==0)return!1;if(!(i&65536))return!0;e.reduce(i)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let n=[];for(let r=0,o;rh&1&&l==o)||n.push(e[r],o)}e=n}let i=[];for(let n=0;n>19,n=t&65535,r=this.stack.length-i*3;if(r<0||e.getGoto(this.stack[r],n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Oo{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}var Mo;(function(s){s[s.Insert=200]="Insert",s[s.Delete=190]="Delete",s[s.Reduce=100]="Reduce",s[s.MaxNext=4]="MaxNext",s[s.MaxInsertStackDepth=300]="MaxInsertStackDepth",s[s.DampenInsertStackDepth=120]="DampenInsertStackDepth",s[s.MinBigReduction=2e3]="MinBigReduction"})(Mo||(Mo={}));class Xd{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,i=t>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=n}}class Yi{constructor(t,e,i){this.stack=t,this.pos=e,this.index=i,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new Yi(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Yi(this.stack,this.pos,this.index)}}function vi(s,t=Uint16Array){if(typeof s!="string")return s;let e=null;for(let i=0,n=0;i=92&&o--,o>=34&&o--;let h=o-32;if(h>=46&&(h-=46,l=!0),r+=h,l)break;r*=46}e?e[n++]=r:e=new t(r)}return e}class Bi{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const To=new Bi;class Yd{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=To,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let i=this.range,n=this.rangeIndex,r=this.pos+t;for(;ri.to:r>=i.to;){if(n==this.ranges.length-1)return null;let o=this.ranges[++n];r+=o.from-i.to,i=o}return r}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,i,n;if(e>=0&&e=this.chunk2Pos&&il.to&&(this.chunk2=this.chunk2.slice(0,l.to-i)),n=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),n}acceptToken(t,e=0){let i=e?this.resolveOffset(e,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=To,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let i="";for(let n of this.ranges){if(n.from>=e)break;n.to>t&&(i+=this.input.read(Math.max(n.from,t),Math.min(n.to,e)))}return i}}class Oe{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:i}=e.p;Zd(this.data,t,e,this.id,i.data,i.tokenPrecTable)}}Oe.prototype.contextual=Oe.prototype.fallback=Oe.prototype.extend=!1;Oe.prototype.fallback=Oe.prototype.extend=!1;function Zd(s,t,e,i,n,r){let o=0,l=1<0){let p=s[d];if(h.allows(p)&&(t.token.value==-1||t.token.value==p||tp(p,t.token.value,n,r))){t.acceptToken(p);break}}let f=t.next,c=0,u=s[o+2];if(t.next<0&&u>c&&s[a+u*3-3]==65535&&s[a+u*3-3]==65535){o=s[a+u*3-1];continue t}for(;c>1,p=a+d+(d<<1),m=s[p],g=s[p+1]||65536;if(f=g)c=d+1;else{o=s[p+2],t.advance();continue t}}break}}function Do(s,t,e){for(let i=t,n;(n=s[i])!=65535;i++)if(n==e)return i-t;return-1}function tp(s,t,e,i){let n=Do(e,i,t);return n<0||Do(e,i,s)t)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(s.length,Math.max(i.from+1,t+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:s.length}}class ep{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?Bo(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Bo(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=o,null;if(r instanceof F){if(o==t){if(o=Math.max(this.safeFrom,t)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[e]++,this.nextStart=o+r.length}}}class ip{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(i=>new Bi)}getActions(t){let e=0,i=null,{parser:n}=t.p,{tokenizers:r}=n,o=n.stateSlot(t.state,3),l=t.curContext?t.curContext.hash:0,h=0;for(let a=0;ac.end+25&&(h=Math.max(c.lookAhead,h)),c.value!=0)){let u=e;if(c.extended>-1&&(e=this.addActions(t,c.extended,c.end,e)),e=this.addActions(t,c.value,c.end,e),!f.extend&&(i=c,e>u))break}}for(;this.actions.length>e;)this.actions.pop();return h&&t.setLookAhead(h),!i&&t.pos==this.stream.end&&(i=new Bi,i.value=t.p.parser.eofTerm,i.start=i.end=t.pos,e=this.addActions(t,i.value,i.end,e)),this.mainToken=i,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new Bi,{pos:i,p:n}=t;return e.start=i,e.end=Math.min(i+1,n.stream.end),e.value=i==n.stream.end?n.parser.eofTerm:0,e}updateCachedToken(t,e,i){let n=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(n,t),i),t.value>-1){let{parser:r}=i.p;for(let o=0;o=0&&i.p.parser.dialect.allows(l>>1)){l&1?t.extended=l>>1:t.value=l>>1;break}}}else t.value=0,t.end=this.stream.clipPos(n+1)}putAction(t,e,i,n){for(let r=0;rt.bufferLength*4?new ep(i,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,i=this.stacks=[],n,r;if(this.bigReductionCount>1e3&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;oe)i.push(l);else{if(this.advanceStack(l,i,t))continue;{n||(n=[],r=[]),n.push(l);let h=this.tokens.getMainToken(l);r.push(h.value,h.end)}}break}}if(!i.length){let o=n&&rp(n);if(o)return this.stackToTree(o);if(this.parser.strict)throw Ot&&n&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&n){let o=this.stoppedAt!=null&&n[0].pos>this.stoppedAt?n[0]:this.runRecovery(n,r,i);if(o)return this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(i.length>o)for(i.sort((l,h)=>h.score-l.score);i.length>o;)i.pop();i.some(l=>l.reducePos>e)&&this.recovering--}else if(i.length>1)t:for(let o=0;o500&&a.buffer.length>500)if((l.score-a.score||l.buffer.length-a.buffer.length)>0)i.splice(h--,1);else{i.splice(o--,1);continue t}}}this.minStackPos=i[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,f=a?t.curContext.hash:0;for(let c=this.fragments.nodeAt(n);c;){let u=this.parser.nodeSet.types[c.type.id]==c.type?r.getGoto(t.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(R.contextHash)||0)==f))return t.useNode(c,u),Ot&&console.log(o+this.stackID(t)+` (via reuse of ${r.getName(c.type.id)})`),!0;if(!(c instanceof F)||c.children.length==0||c.positions[0]>0)break;let d=c.children[0];if(d instanceof F&&c.positions[0]==0)c=d;else break}}let l=r.stateSlot(t.state,4);if(l>0)return t.reduce(l),Ot&&console.log(o+this.stackID(t)+` (via always-reduce ${r.getName(l&65535)})`),!0;if(t.stack.length>=15e3)for(;t.stack.length>9e3&&t.forceReduce(););let h=this.tokens.getActions(t);for(let a=0;an?e.push(p):i.push(p)}return!1}advanceFully(t,e){let i=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>i)return Eo(t,e),!0}}runRecovery(t,e,i){let n=null,r=!1;for(let o=0;o ":"";if(l.deadEnd&&(r||(r=!0,l.restart(),Ot&&console.log(f+this.stackID(l)+" (restarted)"),this.advanceFully(l,i))))continue;let c=l.split(),u=f;for(let d=0;c.forceReduce()&&d<10&&(Ot&&console.log(u+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,i));d++)Ot&&(u=this.stackID(c)+" -> ");for(let d of l.recoverByInsert(h))Ot&&console.log(f+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,i);this.stream.end>l.pos?(a==l.pos&&(a++,h=0),l.recoverByDelete(h,a),Ot&&console.log(f+this.stackID(l)+` (via recover-delete ${this.parser.getName(h)})`),Eo(l,i)):(!n||n.scoret.topRules[l][1]),n=[];for(let l=0;l=0)r(f,h,l[a++]);else{let c=l[a+-f];for(let u=-f;u>0;u--)r(l[a++],h,c);a++}}}this.nodeSet=new ln(e.map((l,h)=>lt.define({name:h>=this.minRepeatTerm?void 0:l,id:h,props:n[h],top:i.indexOf(h)>-1,error:h==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(h)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=$l;let o=vi(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new Oe(o,l):l),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,i){let n=new np(this,t,e,i);for(let r of this.wrappers)n=r(n,t,e,i);return n}getGoto(t,e,i=!1){let n=this.goto;if(e>=n[0])return-1;for(let r=n[e+1];;){let o=n[r++],l=o&1,h=n[r++];if(l&&i)return h;for(let a=r+(o>>1);r0}validAction(t,e){if(e==this.stateSlot(t,4))return!0;for(let i=this.stateSlot(t,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=jt(this.data,i+2);else return!1;if(e==jt(this.data,i+1))return!0}}nextStates(t){let e=[];for(let i=this.stateSlot(t,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=jt(this.data,i+2);else break;if(!(this.data[i+2]&1)){let n=this.data[i+1];e.some((r,o)=>o&1&&r==n)||e.push(this.data[i],n)}}return e}configure(t){let e=Object.assign(Object.create(Zi.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let i=this.topRules[t.top];if(!i)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=i}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(i=>{let n=t.tokenizers.find(r=>r.from==i);return n?n.to:i})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((i,n)=>{let r=t.specializers.find(l=>l.from==i.external);if(!r)return i;let o=Object.assign(Object.assign({},i),{external:r.to});return e.specializers[n]=Io(o),o})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),i=e.map(()=>!1);if(t)for(let r of t.split(" ")){let o=e.indexOf(r);o>=0&&(i[o]=!0)}let n=null;for(let r=0;ri)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scores.external(e,i)<<1|t}return s.get}const op=Yl({String:v.string,Number:v.number,"True False":v.bool,PropertyName:v.propertyName,Null:v.null,",":v.separator,"[ ]":v.squareBracket,"{ }":v.brace}),lp=Zi.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[op],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),hp=Ki.define({name:"json",parser:lp.configure({props:[rh.add({Object:eo({except:/^\s*\}/}),Array:eo({except:/^\s*\]/})}),lh.add({"Object Array":tu})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function ap(){return new qc(hp)}var xs={};function Js(s,t){for(var e=0;e1&&s.eat("$");var e=s.next();return/['"({]/.test(e)?(t.tokens[0]=un(e,e=="("?"quote":e=="{"?"def":"string"),Le(s,t)):(/\d/.test(e)||s.eatWhile(/\w/),t.tokens.shift(),"def")};function up(s){return function(t,e){return t.sol()&&t.string==s&&e.tokens.shift(),t.skipToEnd(),"string.special"}}function Le(s,t){return(t.tokens[0]||fp)(s,t)}const dp={name:"shell",startState:function(){return{tokens:[]}},token:function(s,t){return Le(s,t)},languageData:{autocomplete:Yh.concat(Zh,ta),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}},pp=D.theme({"&":{color:"white",backgroundColor:Y.black,borderRadius:"0.75rem",borderWidth:"2px",borderColor:Y.slate[600],padding:"0.5rem"},".cm-matchingBracket":{backgroundColor:Y.black},".cm-scroller":{fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace'},".cm-content":{caretColor:Y.white,fontSize:"0.875em"},".cm-editor&.cm-focused":{outline:`1px solid ${Y.indigo[600]}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:Y.slate[700]},"&.cm-focused .cm-cursor":{borderLeftColor:Y.white},"&.cm-focused .cm-selectionBackground, ::selection":{backgroundColor:Y.indigo[500]},".cm-gutters":{backgroundColor:Y.black,color:Y.white,borderRight:"none"},".cm-line":{color:"#ccc"}},{dark:!1}),gp=hn.define([{tag:v.punctuation,color:Y.slate[200]},{tag:v.string,color:Y.slate[200]},{tag:v.propertyName,color:Y.indigo[400]},{tag:v.bool,color:Y.slate[200]},{tag:v.number,color:Y.slate[200]},{tag:v.operator,color:Y.pink[500]},{tag:v.comment,color:Y.green[600]},{tag:v.variableName,color:Y.pink[500]}]);function No(s){let t,e;return t=new ka({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:"absolute right-1 top-1 text-white hover:bg-slate-800",copied:s[6]}}),t.$on("click",s[8]),{c(){ga(t.$$.fragment)},l(i){ma(t.$$.fragment,i)},m(i,n){ya(t,i,n),e=!0},p(i,n){const r={};n&8&&(r.copyIconTitle=i[3]),n&16&&(r.copySuccessIconTitle=i[4]),n&64&&(r.copied=i[6]),t.$set(r)},i(i){e||(Ci(t.$$.fragment,i),e=!0)},o(i){Nn(t.$$.fragment,i),e=!1},d(i){ba(t,i)}}}function mp(s){let t,e,i,n,r,o=[{class:s[0]},{"data-testid":i=s[9].testId},s[10]],l={};for(let a=0;a{h=null}),pa())},i(a){r||(Ci(h),r=!0)},o(a){Nn(h),r=!1},d(a){a&&dn(t),s[17](null),h&&h.d()}}}function yp(s,t,e){let i;const n=["content","class","editable","inline","language","copyable","copyIconTitle","copySuccessIconTitle","minHeight","maxHeight","resetView"];let r=er(t,n),o;const l=la();let{content:h}=t,{class:a=null}=t,{editable:f=!1}=t,{inline:c=!1}=t,{language:u="json"}=t,{copyable:d=!0}=t,{copyIconTitle:p=""}=t,{copySuccessIconTitle:m=""}=t,{minHeight:g=void 0}=t,{maxHeight:y=void 0}=t;const{copy:k,copied:C}=xa();ha(s,C,O=>e(6,o=O));const T=O=>{k(O,h)};let S,A;const P=O=>{if(!O)return;let q;try{q=Sa(O)}catch{q=O}return va(q,void 0,c?0:2)},Q=({value:O,language:q})=>q==="json"?P(O):O,I=()=>new D({parent:S,state:B(i),dispatch(O){A.update([O]),O.docChanged&&l("change",A.state.doc.toString())}}),B=O=>{const q=[Bs.of([..._d,...Cd]),pp,au(gp,{fallback:!0}),Ls.of(" "),Xu(),ld(),Yc(),bu(),E.readOnly.of(!f)];return u==="json"&&q.push(ap()),u==="shell"&&q.push(zs.define(dp)),c||q.push(D.lineWrapping),!c&&!f&&q.push(lu()),(g||y)&&q.push(D.theme({"&":{...g?{"min-height":`${g}px`}:{},...y?{"max-height":`${y}px`}:{}}})),E.create({doc:O,extensions:q})};aa(()=>{A=I()});const z=(O="",q=!0)=>{const yt=q?Q({value:O,language:u}):O,ii=B(yt);A.setState(ii)},it=()=>{A&&!f&&z(i,!1)};function ut(O){fa[O?"unshift":"push"](()=>{S=O,e(5,S)})}return s.$$set=O=>{e(9,t=In(In({},t),ir(O))),e(10,r=er(t,n)),"content"in O&&e(11,h=O.content),"class"in O&&e(0,a=O.class),"editable"in O&&e(1,f=O.editable),"inline"in O&&e(12,c=O.inline),"language"in O&&e(13,u=O.language),"copyable"in O&&e(2,d=O.copyable),"copyIconTitle"in O&&e(3,p=O.copyIconTitle),"copySuccessIconTitle"in O&&e(4,m=O.copySuccessIconTitle),"minHeight"in O&&e(14,g=O.minHeight),"maxHeight"in O&&e(15,y=O.maxHeight)},s.$$.update=()=>{s.$$.dirty&10240&&(i=Q({value:h,language:u})),s.$$.dirty&10240&&it()},t=ir(t),[a,f,d,p,m,S,o,C,T,t,r,h,c,u,g,y,z,ut]}class Mp extends ca{constructor(t){super(),ua(this,t,yp,mp,ia,{content:11,class:0,editable:1,inline:12,language:13,copyable:2,copyIconTitle:3,copySuccessIconTitle:4,minHeight:14,maxHeight:15,resetView:16})}get resetView(){return this.$$.ctx[16]}}export{Mp as C}; diff --git a/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.DsLGuhkA.js b/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.DKpAmXze.js similarity index 76% rename from ui/assets/local/_app/immutable/chunks/copy-to-clipboard.DsLGuhkA.js rename to ui/assets/local/_app/immutable/chunks/copy-to-clipboard.DKpAmXze.js index ca1942c99..aff594e60 100644 --- a/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.DsLGuhkA.js +++ b/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.DKpAmXze.js @@ -1 +1 @@ -import{w as c}from"./entry.49-_VqMH.js";const i=(r=2e3)=>{const o=c(!1);return{copy:async(t,e)=>{t.preventDefault(),t.stopPropagation();try{await navigator.clipboard.writeText(e),o.set(!0),setTimeout(()=>{o.set(!1)},r)}catch(a){console.error(a)}},copied:o}};export{i as c}; +import{w as c}from"./entry.Yz1YyohR.js";const i=(r=2e3)=>{const o=c(!1);return{copy:async(t,e)=>{t.preventDefault(),t.stopPropagation();try{await navigator.clipboard.writeText(e),o.set(!0),setTimeout(()=>{o.set(!1)},r)}catch(a){console.error(a)}},copied:o}};export{i as c}; diff --git a/ui/assets/local/_app/immutable/chunks/core-user.qS1id1Cd.js b/ui/assets/local/_app/immutable/chunks/core-user.Lclp01iI.js similarity index 62% rename from ui/assets/local/_app/immutable/chunks/core-user.qS1id1Cd.js rename to ui/assets/local/_app/immutable/chunks/core-user.Lclp01iI.js index b421e68b2..782aab8f5 100644 --- a/ui/assets/local/_app/immutable/chunks/core-user.qS1id1Cd.js +++ b/ui/assets/local/_app/immutable/chunks/core-user.Lclp01iI.js @@ -1 +1 @@ -import{r}from"./entry.49-_VqMH.js";import{T as t,U as o}from"./scheduler.AWtTlMeO.js";const e="CoreUser",s=r({namespaceWriteDisabled:()=>!1}),c=()=>t(e)?o(e):s;export{c}; +import{r}from"./entry.Yz1YyohR.js";import{T as t,U as o}from"./scheduler.AWtTlMeO.js";const e="CoreUser",s=r({namespaceWriteDisabled:()=>!1}),c=()=>t(e)?o(e):s;export{c}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder-config.q7-G5c7P.js b/ui/assets/local/_app/immutable/chunks/data-encoder-config.VanBuir1.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/data-encoder-config.q7-G5c7P.js rename to ui/assets/local/_app/immutable/chunks/data-encoder-config.VanBuir1.js index 5f08a5e8a..92d144a3e 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder-config.q7-G5c7P.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder-config.VanBuir1.js @@ -1 +1 @@ -import{B as n}from"./prod-browser.6V4A_NcJ.js";import{s as c,p as i}from"./parse-with-big-int.e3oI4SEy.js";import{w as r}from"./entry.49-_VqMH.js";import{p as s}from"./persist-store.79TECdfr.js";import{h as u}from"./has.-dFYEuQV.js";function l(t){return window.atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join("")}function d(t){return decodeURIComponent(l(t))}function f(t){try{return c(i(window.atob(t)))}catch{return t}}const w=(t,e=n)=>{if(!e)return t;try{return d(t)}catch{return f(t)}},m=t=>(t==null?void 0:t.substring(0,8))==="https://",p=t=>(t==null?void 0:t.substring(0,7))==="http://",D=t=>p(t)||m(t),R=s("endpoint",null,!0),S=s("passAccessToken",!1,!0),y=s("includeCredentials",!1,!0),A=s("overrideRemoteCodecConfiguration",!1,!0),o=r("notRequested"),a=r("");function B(t){o.set("error"),t&&u(t,"message")&&typeof t.message=="string"?a.set(t.message):a.set("")}function H(){o.set("success")}export{H as a,w as b,R as c,D as d,y as i,o as l,A as o,S as p,B as s,m as v}; +import{B as n}from"./prod-browser.6V4A_NcJ.js";import{s as c,p as i}from"./parse-with-big-int.e3oI4SEy.js";import{w as r}from"./entry.Yz1YyohR.js";import{p as s}from"./persist-store.8QJu1WeF.js";import{h as u}from"./has.-dFYEuQV.js";function l(t){return window.atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join("")}function d(t){return decodeURIComponent(l(t))}function f(t){try{return c(i(window.atob(t)))}catch{return t}}const w=(t,e=n)=>{if(!e)return t;try{return d(t)}catch{return f(t)}},m=t=>(t==null?void 0:t.substring(0,8))==="https://",p=t=>(t==null?void 0:t.substring(0,7))==="http://",D=t=>p(t)||m(t),R=s("endpoint",null,!0),S=s("passAccessToken",!1,!0),y=s("includeCredentials",!1,!0),A=s("overrideRemoteCodecConfiguration",!1,!0),o=r("notRequested"),a=r("");function B(t){o.set("error"),t&&u(t,"message")&&typeof t.message=="string"?a.set(t.message):a.set("")}function H(){o.set("success")}export{H as a,w as b,R as c,D as d,y as i,o as l,A as o,S as p,B as s,m as v}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder-settings.msA6Hzow.js b/ui/assets/local/_app/immutable/chunks/data-encoder-settings.2wxgNGy3.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/data-encoder-settings.msA6Hzow.js rename to ui/assets/local/_app/immutable/chunks/data-encoder-settings.2wxgNGy3.js index 37c6f3759..b8c3e1157 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder-settings.msA6Hzow.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder-settings.2wxgNGy3.js @@ -1 +1 @@ -import{s as pe,e as q,a as M,b as R,d as B,h as O,g as C,j as w,Y as ce,H as ne,k as G,l as k,Z as ve,m as te,F as Xe,G as Ye,t as z,f as J,n as oe,p as Ze,u as ze,q as Je,r as Ke,B as ae,L as le,V as se,v as de,x as ke,c as $,_ as Qe,a1 as Ue,$ as ye,w as U}from"./scheduler.AWtTlMeO.js";import{S as ge,i as he,c as W,a as X,m as Y,t as j,g as Pe,b as N,e as Me,d as Z,f as ie,h as $e}from"./index.91lpp7Ff.js";import{L as xe}from"./label.2vZCl_WE.js";import{t as we}from"./tw-merge.NbP7EmZe.js";import{T as Ee}from"./toggle-switch.nnlj8S_t.js";import{t as V}from"./translate.HrioCK44.js";import{o as Ce,i as Te,p as De,c as Ve,v as et,d as tt}from"./data-encoder-config.q7-G5c7P.js";import{r as Le}from"./workflow-run.ZUOIerA5.js";import{d as nt}from"./menu.clBpn3HP.js";import{L as lt}from"./link.cs7LzqaH.js";import{B as Ae}from"./button.J_9D2qip.js";import{A as st}from"./accordion.fKfAeltH.js";import{p as it}from"./stores.BjeHb2_D.js";import{a as rt}from"./index.VrdFapBL.js";import{w as Oe}from"./entry.49-_VqMH.js";import{R as at,a as Se}from"./radio-input.mvsumPD4.js";const ot=l=>({}),je=l=>({});function He(l){let n,e;return{c(){n=q("p"),e=z(l[11]),this.h()},l(t){n=R(t,"P",{class:!0});var i=B(n);e=J(i,l[11]),i.forEach(C),this.h()},h(){w(n,"class","pb-2 text-sm")},m(t,i){G(t,n,i),k(n,e)},p(t,i){i&2048&&oe(e,t[11])},d(t){t&&C(n)}}}function Ie(l){var g;let n,e,t=(((g=l[0])==null?void 0:g.length)??0)+"",i,r,s;return{c(){n=q("span"),e=q("span"),i=z(t),r=z(" / "),s=z(l[12]),this.h()},l(f){n=R(f,"SPAN",{class:!0});var c=B(n);e=R(c,"SPAN",{class:!0});var h=B(e);i=J(h,t),h.forEach(C),r=J(c," / "),s=J(c,l[12]),c.forEach(C),this.h()},h(){var f,c;w(e,"class","text-information svelte-1gpjd4t"),ne(e,"warn",l[12]-((f=l[0])==null?void 0:f.length)<=5),ne(e,"error",l[12]===((c=l[0])==null?void 0:c.length)),w(n,"class","count svelte-1gpjd4t")},m(f,c){G(f,n,c),k(n,e),k(e,i),k(n,r),k(n,s)},p(f,c){var h,m,T;c&1&&t!==(t=(((h=f[0])==null?void 0:h.length)??0)+"")&&oe(i,t),c&4097&&ne(e,"warn",f[12]-((m=f[0])==null?void 0:m.length)<=5),c&4097&&ne(e,"error",f[12]===((T=f[0])==null?void 0:T.length)),c&4096&&oe(s,f[12])},d(f){f&&C(n)}}}function qe(l){let n,e,t=l[2]&&Re(l);const i=l[15].error,r=Ze(i,l,l[14],je);return{c(){t&&t.c(),n=M(),r&&r.c()},l(s){t&&t.l(s),n=O(s),r&&r.l(s)},m(s,g){t&&t.m(s,g),G(s,n,g),r&&r.m(s,g),e=!0},p(s,g){s[2]?t?t.p(s,g):(t=Re(s),t.c(),t.m(n.parentNode,n)):t&&(t.d(1),t=null),r&&r.p&&(!e||g&16384)&&ze(r,i,s,s[14],e?Ke(i,s[14],g,ot):Je(s[14]),je)},i(s){e||(j(r,s),e=!0)},o(s){N(r,s),e=!1},d(s){s&&C(n),t&&t.d(s),r&&r.d(s)}}}function Re(l){let n,e;return{c(){n=q("p"),e=z(l[2])},l(t){n=R(t,"P",{});var i=B(n);e=J(i,l[2]),i.forEach(C)},m(t,i){G(t,n,i),k(n,e)},p(t,i){i&4&&oe(e,t[2])},d(t){t&&C(n)}}}function dt(l){let n,e,t,i,r,s,g,f,c,h,m,T,L,E,I,A;e=new xe({props:{required:l[10],hidden:l[8],label:l[7],for:l[9]}});let b=l[11]&&He(l),_=l[12]&&!l[1]&&Ie(l),d=!l[3]&&qe(l);return{c(){n=q("div"),W(e.$$.fragment),t=M(),b&&b.c(),i=M(),r=q("div"),s=q("textarea"),c=M(),_&&_.c(),h=M(),m=q("div"),d&&d.c(),this.h()},l(a){n=R(a,"DIV",{class:!0});var o=B(n);X(e.$$.fragment,o),t=O(o),b&&b.l(o),i=O(o),r=R(o,"DIV",{class:!0});var v=B(r);s=R(v,"TEXTAREA",{class:!0,id:!0,placeholder:!0,rows:!0,spellcheck:!0,maxlength:!0}),B(s).forEach(C),c=O(v),_&&_.l(v),v.forEach(C),h=O(o),m=R(o,"DIV",{class:!0,"aria-live":!0});var H=B(m);d&&d.l(H),H.forEach(C),o.forEach(C),this.h()},h(){w(s,"class",g=ce(we("surface-primary min-h-fit w-full rounded-lg border-2 border-subtle px-3 py-2 text-sm focus-visible:border-information focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/70 enabled:hover:border-information",l[1]&&"cursor-not-allowed opacity-50",!l[3]&&"error"))+" svelte-1gpjd4t"),w(s,"id",l[9]),s.disabled=l[1],w(s,"placeholder",l[4]),w(s,"rows",l[5]),w(s,"spellcheck",l[6]),w(s,"maxlength",f=l[12]>0?l[12]:void 0),w(r,"class","relative"),w(m,"class","error-msg svelte-1gpjd4t"),w(m,"aria-live",T=l[3]?"off":"assertive"),ne(m,"min-width",l[12]),w(n,"class",L=ce(l[13])+" svelte-1gpjd4t")},m(a,o){G(a,n,o),Y(e,n,null),k(n,t),b&&b.m(n,null),k(n,i),k(n,r),k(r,s),ve(s,l[0]),k(r,c),_&&_.m(r,null),k(n,h),k(n,m),d&&d.m(m,null),E=!0,I||(A=[te(s,"input",l[21]),te(s,"input",l[16]),te(s,"change",l[17]),te(s,"focus",l[18]),te(s,"blur",l[19]),te(s,"keydown",Xe(l[20]))],I=!0)},p(a,[o]){const v={};o&1024&&(v.required=a[10]),o&256&&(v.hidden=a[8]),o&128&&(v.label=a[7]),o&512&&(v.for=a[9]),e.$set(v),a[11]?b?b.p(a,o):(b=He(a),b.c(),b.m(n,i)):b&&(b.d(1),b=null),(!E||o&10&&g!==(g=ce(we("surface-primary min-h-fit w-full rounded-lg border-2 border-subtle px-3 py-2 text-sm focus-visible:border-information focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/70 enabled:hover:border-information",a[1]&&"cursor-not-allowed opacity-50",!a[3]&&"error"))+" svelte-1gpjd4t"))&&w(s,"class",g),(!E||o&512)&&w(s,"id",a[9]),(!E||o&2)&&(s.disabled=a[1]),(!E||o&16)&&w(s,"placeholder",a[4]),(!E||o&32)&&w(s,"rows",a[5]),(!E||o&64)&&w(s,"spellcheck",a[6]),(!E||o&4096&&f!==(f=a[12]>0?a[12]:void 0))&&w(s,"maxlength",f),o&1&&ve(s,a[0]),a[12]&&!a[1]?_?_.p(a,o):(_=Ie(a),_.c(),_.m(r,null)):_&&(_.d(1),_=null),a[3]?d&&(Pe(),N(d,1,1,()=>{d=null}),Me()):d?(d.p(a,o),o&8&&j(d,1)):(d=qe(a),d.c(),j(d,1),d.m(m,null)),(!E||o&8&&T!==(T=a[3]?"off":"assertive"))&&w(m,"aria-live",T),(!E||o&4096)&&ne(m,"min-width",a[12]),(!E||o&8192&&L!==(L=ce(a[13])+" svelte-1gpjd4t"))&&w(n,"class",L)},i(a){E||(j(e.$$.fragment,a),j(d),E=!0)},o(a){N(e.$$.fragment,a),N(d),E=!1},d(a){a&&C(n),Z(e),b&&b.d(),_&&_.d(),d&&d.d(),I=!1,Ye(A)}}}function ft(l,n,e){let{$$slots:t={},$$scope:i}=n,{disabled:r=!1}=n,{error:s=""}=n,{isValid:g=!0}=n,{placeholder:f=""}=n,{rows:c=5}=n,{spellcheck:h=null}=n,{value:m}=n,{label:T}=n,{labelHidden:L=!1}=n,{id:E}=n,{required:I=!1}=n,{description:A=""}=n,{maxLength:b=0}=n,{class:_="text-primary"}=n;function d(u){ae.call(this,l,u)}function a(u){ae.call(this,l,u)}function o(u){ae.call(this,l,u)}function v(u){ae.call(this,l,u)}function H(u){ae.call(this,l,u)}function P(){m=this.value,e(0,m)}return l.$$set=u=>{"disabled"in u&&e(1,r=u.disabled),"error"in u&&e(2,s=u.error),"isValid"in u&&e(3,g=u.isValid),"placeholder"in u&&e(4,f=u.placeholder),"rows"in u&&e(5,c=u.rows),"spellcheck"in u&&e(6,h=u.spellcheck),"value"in u&&e(0,m=u.value),"label"in u&&e(7,T=u.label),"labelHidden"in u&&e(8,L=u.labelHidden),"id"in u&&e(9,E=u.id),"required"in u&&e(10,I=u.required),"description"in u&&e(11,A=u.description),"maxLength"in u&&e(12,b=u.maxLength),"class"in u&&e(13,_=u.class),"$$scope"in u&&e(14,i=u.$$scope)},[m,r,s,g,f,c,h,T,L,E,I,A,b,_,i,t,d,a,o,v,H,P]}class ct extends ge{constructor(n){super(),he(this,n,ft,dt,pe,{disabled:1,error:2,isValid:3,placeholder:4,rows:5,spellcheck:6,value:0,label:7,labelHidden:8,id:9,required:10,description:11,maxLength:12,class:13})}}function Be(l){let n,e=V("data-encoder.include-cross-origin-credentials-warning")+"",t;return{c(){n=q("small"),t=z(e),this.h()},l(i){n=R(i,"SMALL",{"data-testid":!0});var r=B(n);t=J(r,e),r.forEach(C),this.h()},h(){w(n,"data-testid","data-encoder-cross-origin-credentials")},m(i,r){G(i,n,r),k(n,t)},p:de,d(i){i&&C(n)}}}function ut(l){let n,e,t,i,r,s,g,f,c,h,m,T;function L(a){l[4](a)}let E={id:"data-encoder-endpoint-input",rows:3,placeholder:V("data-encoder.endpoint-placeholder"),error:l[3],isValid:!l[3],label:V("data-encoder.endpoint-title"),description:V("data-encoder.endpoint-description")};l[0]!==void 0&&(E.value=l[0]),t=new ct({props:E}),le.push(()=>ie(t,"value",L));function I(a){l[5](a)}let A={label:V("data-encoder.pass-access-token-label"),id:"pass-access-token","data-testid":"data-encoder-pass-access-token"};l[1]!==void 0&&(A.checked=l[1]),s=new Ee({props:A}),le.push(()=>ie(s,"checked",I));function b(a){l[6](a)}let _={label:V("data-encoder.include-cross-origin-credentials-label"),id:"pass-access-credentials","data-testid":"data-encoder-include-credentials"};l[2]!==void 0&&(_.checked=l[2]),c=new Ee({props:_}),le.push(()=>ie(c,"checked",b));let d=l[2]&&Be();return{c(){n=q("div"),e=q("div"),W(t.$$.fragment),r=M(),W(s.$$.fragment),f=M(),W(c.$$.fragment),m=M(),d&&d.c(),this.h()},l(a){n=R(a,"DIV",{class:!0});var o=B(n);e=R(o,"DIV",{class:!0});var v=B(e);X(t.$$.fragment,v),r=O(v),X(s.$$.fragment,v),f=O(v),X(c.$$.fragment,v),m=O(v),d&&d.l(v),v.forEach(C),o.forEach(C),this.h()},h(){w(e,"class","flex flex-col gap-2"),w(n,"class","flex flex-col gap-4")},m(a,o){G(a,n,o),k(n,e),Y(t,e,null),k(e,r),Y(s,e,null),k(e,f),Y(c,e,null),k(e,m),d&&d.m(e,null),T=!0},p(a,[o]){const v={};o&8&&(v.error=a[3]),o&8&&(v.isValid=!a[3]),!i&&o&1&&(i=!0,v.value=a[0],se(()=>i=!1)),t.$set(v);const H={};!g&&o&2&&(g=!0,H.checked=a[1],se(()=>g=!1)),s.$set(H);const P={};!h&&o&4&&(h=!0,P.checked=a[2],se(()=>h=!1)),c.$set(P),a[2]?d?d.p(a,o):(d=Be(),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i(a){T||(j(t.$$.fragment,a),j(s.$$.fragment,a),j(c.$$.fragment,a),T=!0)},o(a){N(t.$$.fragment,a),N(s.$$.fragment,a),N(c.$$.fragment,a),T=!1},d(a){a&&C(n),Z(t),Z(s),Z(c),d&&d.d()}}}function _t(l,n,e){let{endpoint:t=""}=n,{passToken:i=!1}=n,{includeCreds:r=!1}=n,{error:s=""}=n;function g(h){t=h,e(0,t)}function f(h){i=h,e(1,i)}function c(h){r=h,e(2,r)}return l.$$set=h=>{"endpoint"in h&&e(0,t=h.endpoint),"passToken"in h&&e(1,i=h.passToken),"includeCreds"in h&&e(2,r=h.includeCreds),"error"in h&&e(3,s=h.error)},[t,i,r,s,g,f,c]}class mt extends ge{constructor(n){super(),he(this,n,_t,ut,pe,{endpoint:0,passToken:1,includeCreds:2,error:3})}}const pt=l=>l.replace(/\/+$/,"");function Ne(l){let n,e,t,i,r=V("common.codec-server")+"",s,g,f,c=V("data-encoder.codec-server-description-prefix")+"",h,m,T,L=V("data-encoder.codec-server-description-suffix",{level:l[5]})+"",E,I,A,b,_,d,a,o,v,H,P,u,K,D,_e,re,me,be;m=new lt({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[gt]},$$scope:{ctx:l}}}),A=new st({props:{"data-testid":"override-accordion",title:l[6]?V("data-encoder.browser-override-description",{level:l[5]}):V("data-encoder.no-browser-override-description",{level:l[5]}),$$slots:{default:[bt]},$$scope:{ctx:l}}});function Fe(p){l[14](p)}function Ge(p){l[15](p)}function We(p){l[16](p)}let fe={error:l[4]};return l[0]!==void 0&&(fe.endpoint=l[0]),l[1]!==void 0&&(fe.passToken=l[1]),l[3]!==void 0&&(fe.includeCreds=l[3]),_=new mt({props:fe}),le.push(()=>ie(_,"endpoint",Fe)),le.push(()=>ie(_,"passToken",Ge)),le.push(()=>ie(_,"includeCreds",We)),P=new Ae({props:{disabled:!!l[4],"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[vt]},$$scope:{ctx:l}}}),P.$on("click",l[9]),K=new Ae({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[kt]},$$scope:{ctx:l}}}),K.$on("click",l[8]),{c(){n=q("aside"),e=q("div"),t=q("div"),i=q("h3"),s=z(r),g=M(),f=q("p"),h=z(c),W(m.$$.fragment),T=M(),E=z(L),I=M(),W(A.$$.fragment),b=M(),W(_.$$.fragment),v=M(),H=q("div"),W(P.$$.fragment),u=M(),W(K.$$.fragment),this.h()},l(p){n=R(p,"ASIDE",{class:!0});var S=B(n);e=R(S,"DIV",{class:!0});var F=B(e);t=R(F,"DIV",{class:!0});var ee=B(t);i=R(ee,"H3",{"data-testid":!0,class:!0});var y=B(i);s=J(y,r),y.forEach(C),ee.forEach(C),g=O(F),f=R(F,"P",{class:!0});var Q=B(f);h=J(Q,c),X(m.$$.fragment,Q),T=O(Q),E=J(Q,L),Q.forEach(C),I=O(F),X(A.$$.fragment,F),b=O(F),X(_.$$.fragment,F),v=O(F),H=R(F,"DIV",{class:!0});var x=B(H);X(P.$$.fragment,x),u=O(x),X(K.$$.fragment,x),x.forEach(C),F.forEach(C),S.forEach(C),this.h()},h(){w(i,"data-testid","data-encoder-title"),w(i,"class","text-xl"),w(t,"class","flex items-center justify-between space-x-2"),w(f,"class","text-sm"),w(H,"class","flex items-center gap-4"),w(e,"class","flex w-full flex-col gap-4 xl:w-1/2"),w(n,"class","surface-primary relative flex h-[540px] w-full flex-col gap-6 overflow-auto border-b border-subtle p-12")},m(p,S){G(p,n,S),k(n,e),k(e,t),k(t,i),k(i,s),k(e,g),k(e,f),k(f,h),Y(m,f,null),k(f,T),k(f,E),k(e,I),Y(A,e,null),k(e,b),Y(_,e,null),k(e,v),k(e,H),Y(P,H,null),k(H,u),Y(K,H,null),re=!0,me||(be=Qe(D=nt.call(null,n,l[17])),me=!0)},p(p,S){const F={};S&8388608&&(F.$$scope={dirty:S,ctx:p}),m.$set(F),(!re||S&32)&&L!==(L=V("data-encoder.codec-server-description-suffix",{level:p[5]})+"")&&oe(E,L);const ee={};S&96&&(ee.title=p[6]?V("data-encoder.browser-override-description",{level:p[5]}):V("data-encoder.no-browser-override-description",{level:p[5]})),S&8388640&&(ee.$$scope={dirty:S,ctx:p}),A.$set(ee);const y={};S&16&&(y.error=p[4]),!d&&S&1&&(d=!0,y.endpoint=p[0],se(()=>d=!1)),!a&&S&2&&(a=!0,y.passToken=p[1],se(()=>a=!1)),!o&&S&8&&(o=!0,y.includeCreds=p[3],se(()=>o=!1)),_.$set(y);const Q={};S&16&&(Q.disabled=!!p[4]),S&8388608&&(Q.$$scope={dirty:S,ctx:p}),P.$set(Q);const x={};S&8388608&&(x.$$scope={dirty:S,ctx:p}),K.$set(x),D&&Ue(D.update)&&S&4&&D.update.call(null,p[17])},i(p){re||(j(m.$$.fragment,p),j(A.$$.fragment,p),j(_.$$.fragment,p),j(P.$$.fragment,p),j(K.$$.fragment,p),p&&(_e||ye(()=>{_e=$e(n,rt,{y:-50,delay:0,duration:500}),_e.start()})),re=!0)},o(p){N(m.$$.fragment,p),N(A.$$.fragment,p),N(_.$$.fragment,p),N(P.$$.fragment,p),N(K.$$.fragment,p),re=!1},d(p){p&&C(n),Z(m),Z(A),Z(_),Z(P),Z(K),me=!1,be()}}}function gt(l){let n=V("common.codec-server")+"",e;return{c(){e=z(n)},l(t){e=J(t,n)},m(t,i){G(t,e,i)},p:de,d(t){t&&C(e)}}}function ht(l){let n,e,t,i;return n=new Se({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:V("data-encoder.no-browser-override-description",{level:l[5]})}}),t=new Se({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:V("data-encoder.browser-override-description",{level:l[5]})}}),{c(){W(n.$$.fragment),e=M(),W(t.$$.fragment)},l(r){X(n.$$.fragment,r),e=O(r),X(t.$$.fragment,r)},m(r,s){Y(n,r,s),G(r,e,s),Y(t,r,s),i=!0},p(r,s){const g={};s&32&&(g.label=V("data-encoder.no-browser-override-description",{level:r[5]})),n.$set(g);const f={};s&32&&(f.label=V("data-encoder.browser-override-description",{level:r[5]})),t.$set(f)},i(r){i||(j(n.$$.fragment,r),j(t.$$.fragment,r),i=!0)},o(r){N(n.$$.fragment,r),N(t.$$.fragment,r),i=!1},d(r){r&&C(e),Z(n,r),Z(t,r)}}}function bt(l){let n,e;return n=new at({props:{name:"override",group:l[7],$$slots:{default:[ht]},$$scope:{ctx:l}}}),{c(){W(n.$$.fragment)},l(t){X(n.$$.fragment,t)},m(t,i){Y(n,t,i),e=!0},p(t,i){const r={};i&8388640&&(r.$$scope={dirty:i,ctx:t}),n.$set(r)},i(t){e||(j(n.$$.fragment,t),e=!0)},o(t){N(n.$$.fragment,t),e=!1},d(t){Z(n,t)}}}function vt(l){let n=V("common.apply")+"",e;return{c(){e=z(n)},l(t){e=J(t,n)},m(t,i){G(t,e,i)},p:de,d(t){t&&C(e)}}}function kt(l){let n=V("common.cancel")+"",e;return{c(){e=z(n)},l(t){e=J(t,n)},m(t,i){G(t,e,i)},p:de,d(t){t&&C(e)}}}function wt(l){let n,e,t=l[2]&&Ne(l);return{c(){t&&t.c(),n=ke()},l(i){t&&t.l(i),n=ke()},m(i,r){t&&t.m(i,r),G(i,n,r),e=!0},p(i,[r]){i[2]?t?(t.p(i,r),r&4&&j(t,1)):(t=Ne(i),t.c(),j(t,1),t.m(n.parentNode,n)):t&&(Pe(),N(t,1,1,()=>{t=null}),Me())},i(i){e||(j(t),e=!0)},o(i){N(t),e=!1},d(i){i&&C(n),t&&t.d(i)}}}const ue=Oe(!1);function Et(l,n,e){let t,i,r,s,g,f,c,h=de,m,T,L;$(l,Le,D=>e(18,r=D)),$(l,it,D=>e(13,s=D)),$(l,Ce,D=>e(19,f=D)),$(l,ue,D=>e(2,c=D)),$(l,Te,D=>e(20,m=D)),$(l,De,D=>e(21,T=D)),$(l,Ve,D=>e(22,L=D)),l.$$.on_destroy.push(()=>h());var E,I,A;let b=L??"",_=T??!1,d=m??!1,a=Oe(f);$(l,a,D=>e(6,g=D));const o=()=>{e(0,b=L),e(1,_=T),e(3,d=m),U(a,g=f,g),U(ue,c=!1,c)},v=()=>{e(4,t=""),U(Ve,L=pt(b),L),U(De,T=_,T),U(Te,m=d,m),U(ue,c=!1,c),U(Ce,f=g,f),s.url.pathname.endsWith("history")&&U(Le,r=Date.now(),r)};function H(D){b=D,e(0,b)}function P(D){_=D,e(1,_)}function u(D){d=D,e(3,d)}const K=()=>U(ue,c=!1,c);return l.$$.update=()=>{l.$$.dirty&15360&&e(5,i=!(e(12,A=e(11,I=e(10,E=s.data)===null||E===void 0?void 0:E.settings)===null||I===void 0?void 0:I.runtimeEnvironment)===null||A===void 0)&&A.isCloud?V("common.namespaces"):V("common.cluster")),l.$$.dirty&3&&(_&&!et(b)?e(4,t=V("data-encoder.access-token-https-error")):b&&!tt(b)?e(4,t=V("data-encoder.prefix-error")):e(4,t="")),l.$$.dirty&4&&(c||o())},e(4,t=""),[b,_,c,d,t,i,g,a,o,v,E,I,A,s,H,P,u,K]}class Ot extends ge{constructor(n){super(),he(this,n,Et,wt,pe,{})}}export{Ot as D,ue as v}; +import{s as pe,e as q,a as M,b as R,d as B,h as O,g as C,j as w,Y as ce,H as ne,k as G,l as k,Z as ve,m as te,F as Xe,G as Ye,t as z,f as J,n as oe,p as Ze,u as ze,q as Je,r as Ke,B as ae,L as le,V as se,v as de,x as ke,c as $,_ as Qe,a1 as Ue,$ as ye,w as U}from"./scheduler.AWtTlMeO.js";import{S as ge,i as he,c as W,a as X,m as Y,t as j,g as Pe,b as N,e as Me,d as Z,f as ie,h as $e}from"./index.91lpp7Ff.js";import{L as xe}from"./label.2vZCl_WE.js";import{t as we}from"./tw-merge.NbP7EmZe.js";import{T as Ee}from"./toggle-switch.nnlj8S_t.js";import{t as V}from"./translate.HrioCK44.js";import{o as Ce,i as Te,p as De,c as Ve,v as et,d as tt}from"./data-encoder-config.VanBuir1.js";import{r as Le}from"./workflow-run.x_o75HKu.js";import{d as nt}from"./menu.RlaY2l8z.js";import{L as lt}from"./link.DdkOc0EY.js";import{B as Ae}from"./button.bjyERRn9.js";import{A as st}from"./accordion.-D1Ubcc_.js";import{p as it}from"./stores.meYYndLY.js";import{a as rt}from"./index.VrdFapBL.js";import{w as Oe}from"./entry.Yz1YyohR.js";import{R as at,a as Se}from"./radio-input.VcwwInus.js";const ot=l=>({}),je=l=>({});function He(l){let n,e;return{c(){n=q("p"),e=z(l[11]),this.h()},l(t){n=R(t,"P",{class:!0});var i=B(n);e=J(i,l[11]),i.forEach(C),this.h()},h(){w(n,"class","pb-2 text-sm")},m(t,i){G(t,n,i),k(n,e)},p(t,i){i&2048&&oe(e,t[11])},d(t){t&&C(n)}}}function Ie(l){var g;let n,e,t=(((g=l[0])==null?void 0:g.length)??0)+"",i,r,s;return{c(){n=q("span"),e=q("span"),i=z(t),r=z(" / "),s=z(l[12]),this.h()},l(f){n=R(f,"SPAN",{class:!0});var c=B(n);e=R(c,"SPAN",{class:!0});var h=B(e);i=J(h,t),h.forEach(C),r=J(c," / "),s=J(c,l[12]),c.forEach(C),this.h()},h(){var f,c;w(e,"class","text-information svelte-1gpjd4t"),ne(e,"warn",l[12]-((f=l[0])==null?void 0:f.length)<=5),ne(e,"error",l[12]===((c=l[0])==null?void 0:c.length)),w(n,"class","count svelte-1gpjd4t")},m(f,c){G(f,n,c),k(n,e),k(e,i),k(n,r),k(n,s)},p(f,c){var h,m,T;c&1&&t!==(t=(((h=f[0])==null?void 0:h.length)??0)+"")&&oe(i,t),c&4097&&ne(e,"warn",f[12]-((m=f[0])==null?void 0:m.length)<=5),c&4097&&ne(e,"error",f[12]===((T=f[0])==null?void 0:T.length)),c&4096&&oe(s,f[12])},d(f){f&&C(n)}}}function qe(l){let n,e,t=l[2]&&Re(l);const i=l[15].error,r=Ze(i,l,l[14],je);return{c(){t&&t.c(),n=M(),r&&r.c()},l(s){t&&t.l(s),n=O(s),r&&r.l(s)},m(s,g){t&&t.m(s,g),G(s,n,g),r&&r.m(s,g),e=!0},p(s,g){s[2]?t?t.p(s,g):(t=Re(s),t.c(),t.m(n.parentNode,n)):t&&(t.d(1),t=null),r&&r.p&&(!e||g&16384)&&ze(r,i,s,s[14],e?Ke(i,s[14],g,ot):Je(s[14]),je)},i(s){e||(j(r,s),e=!0)},o(s){N(r,s),e=!1},d(s){s&&C(n),t&&t.d(s),r&&r.d(s)}}}function Re(l){let n,e;return{c(){n=q("p"),e=z(l[2])},l(t){n=R(t,"P",{});var i=B(n);e=J(i,l[2]),i.forEach(C)},m(t,i){G(t,n,i),k(n,e)},p(t,i){i&4&&oe(e,t[2])},d(t){t&&C(n)}}}function dt(l){let n,e,t,i,r,s,g,f,c,h,m,T,L,E,I,A;e=new xe({props:{required:l[10],hidden:l[8],label:l[7],for:l[9]}});let b=l[11]&&He(l),_=l[12]&&!l[1]&&Ie(l),d=!l[3]&&qe(l);return{c(){n=q("div"),W(e.$$.fragment),t=M(),b&&b.c(),i=M(),r=q("div"),s=q("textarea"),c=M(),_&&_.c(),h=M(),m=q("div"),d&&d.c(),this.h()},l(a){n=R(a,"DIV",{class:!0});var o=B(n);X(e.$$.fragment,o),t=O(o),b&&b.l(o),i=O(o),r=R(o,"DIV",{class:!0});var v=B(r);s=R(v,"TEXTAREA",{class:!0,id:!0,placeholder:!0,rows:!0,spellcheck:!0,maxlength:!0}),B(s).forEach(C),c=O(v),_&&_.l(v),v.forEach(C),h=O(o),m=R(o,"DIV",{class:!0,"aria-live":!0});var H=B(m);d&&d.l(H),H.forEach(C),o.forEach(C),this.h()},h(){w(s,"class",g=ce(we("surface-primary min-h-fit w-full rounded-lg border-2 border-subtle px-3 py-2 text-sm focus-visible:border-information focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/70 enabled:hover:border-information",l[1]&&"cursor-not-allowed opacity-50",!l[3]&&"error"))+" svelte-1gpjd4t"),w(s,"id",l[9]),s.disabled=l[1],w(s,"placeholder",l[4]),w(s,"rows",l[5]),w(s,"spellcheck",l[6]),w(s,"maxlength",f=l[12]>0?l[12]:void 0),w(r,"class","relative"),w(m,"class","error-msg svelte-1gpjd4t"),w(m,"aria-live",T=l[3]?"off":"assertive"),ne(m,"min-width",l[12]),w(n,"class",L=ce(l[13])+" svelte-1gpjd4t")},m(a,o){G(a,n,o),Y(e,n,null),k(n,t),b&&b.m(n,null),k(n,i),k(n,r),k(r,s),ve(s,l[0]),k(r,c),_&&_.m(r,null),k(n,h),k(n,m),d&&d.m(m,null),E=!0,I||(A=[te(s,"input",l[21]),te(s,"input",l[16]),te(s,"change",l[17]),te(s,"focus",l[18]),te(s,"blur",l[19]),te(s,"keydown",Xe(l[20]))],I=!0)},p(a,[o]){const v={};o&1024&&(v.required=a[10]),o&256&&(v.hidden=a[8]),o&128&&(v.label=a[7]),o&512&&(v.for=a[9]),e.$set(v),a[11]?b?b.p(a,o):(b=He(a),b.c(),b.m(n,i)):b&&(b.d(1),b=null),(!E||o&10&&g!==(g=ce(we("surface-primary min-h-fit w-full rounded-lg border-2 border-subtle px-3 py-2 text-sm focus-visible:border-information focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary/70 enabled:hover:border-information",a[1]&&"cursor-not-allowed opacity-50",!a[3]&&"error"))+" svelte-1gpjd4t"))&&w(s,"class",g),(!E||o&512)&&w(s,"id",a[9]),(!E||o&2)&&(s.disabled=a[1]),(!E||o&16)&&w(s,"placeholder",a[4]),(!E||o&32)&&w(s,"rows",a[5]),(!E||o&64)&&w(s,"spellcheck",a[6]),(!E||o&4096&&f!==(f=a[12]>0?a[12]:void 0))&&w(s,"maxlength",f),o&1&&ve(s,a[0]),a[12]&&!a[1]?_?_.p(a,o):(_=Ie(a),_.c(),_.m(r,null)):_&&(_.d(1),_=null),a[3]?d&&(Pe(),N(d,1,1,()=>{d=null}),Me()):d?(d.p(a,o),o&8&&j(d,1)):(d=qe(a),d.c(),j(d,1),d.m(m,null)),(!E||o&8&&T!==(T=a[3]?"off":"assertive"))&&w(m,"aria-live",T),(!E||o&4096)&&ne(m,"min-width",a[12]),(!E||o&8192&&L!==(L=ce(a[13])+" svelte-1gpjd4t"))&&w(n,"class",L)},i(a){E||(j(e.$$.fragment,a),j(d),E=!0)},o(a){N(e.$$.fragment,a),N(d),E=!1},d(a){a&&C(n),Z(e),b&&b.d(),_&&_.d(),d&&d.d(),I=!1,Ye(A)}}}function ft(l,n,e){let{$$slots:t={},$$scope:i}=n,{disabled:r=!1}=n,{error:s=""}=n,{isValid:g=!0}=n,{placeholder:f=""}=n,{rows:c=5}=n,{spellcheck:h=null}=n,{value:m}=n,{label:T}=n,{labelHidden:L=!1}=n,{id:E}=n,{required:I=!1}=n,{description:A=""}=n,{maxLength:b=0}=n,{class:_="text-primary"}=n;function d(u){ae.call(this,l,u)}function a(u){ae.call(this,l,u)}function o(u){ae.call(this,l,u)}function v(u){ae.call(this,l,u)}function H(u){ae.call(this,l,u)}function P(){m=this.value,e(0,m)}return l.$$set=u=>{"disabled"in u&&e(1,r=u.disabled),"error"in u&&e(2,s=u.error),"isValid"in u&&e(3,g=u.isValid),"placeholder"in u&&e(4,f=u.placeholder),"rows"in u&&e(5,c=u.rows),"spellcheck"in u&&e(6,h=u.spellcheck),"value"in u&&e(0,m=u.value),"label"in u&&e(7,T=u.label),"labelHidden"in u&&e(8,L=u.labelHidden),"id"in u&&e(9,E=u.id),"required"in u&&e(10,I=u.required),"description"in u&&e(11,A=u.description),"maxLength"in u&&e(12,b=u.maxLength),"class"in u&&e(13,_=u.class),"$$scope"in u&&e(14,i=u.$$scope)},[m,r,s,g,f,c,h,T,L,E,I,A,b,_,i,t,d,a,o,v,H,P]}class ct extends ge{constructor(n){super(),he(this,n,ft,dt,pe,{disabled:1,error:2,isValid:3,placeholder:4,rows:5,spellcheck:6,value:0,label:7,labelHidden:8,id:9,required:10,description:11,maxLength:12,class:13})}}function Be(l){let n,e=V("data-encoder.include-cross-origin-credentials-warning")+"",t;return{c(){n=q("small"),t=z(e),this.h()},l(i){n=R(i,"SMALL",{"data-testid":!0});var r=B(n);t=J(r,e),r.forEach(C),this.h()},h(){w(n,"data-testid","data-encoder-cross-origin-credentials")},m(i,r){G(i,n,r),k(n,t)},p:de,d(i){i&&C(n)}}}function ut(l){let n,e,t,i,r,s,g,f,c,h,m,T;function L(a){l[4](a)}let E={id:"data-encoder-endpoint-input",rows:3,placeholder:V("data-encoder.endpoint-placeholder"),error:l[3],isValid:!l[3],label:V("data-encoder.endpoint-title"),description:V("data-encoder.endpoint-description")};l[0]!==void 0&&(E.value=l[0]),t=new ct({props:E}),le.push(()=>ie(t,"value",L));function I(a){l[5](a)}let A={label:V("data-encoder.pass-access-token-label"),id:"pass-access-token","data-testid":"data-encoder-pass-access-token"};l[1]!==void 0&&(A.checked=l[1]),s=new Ee({props:A}),le.push(()=>ie(s,"checked",I));function b(a){l[6](a)}let _={label:V("data-encoder.include-cross-origin-credentials-label"),id:"pass-access-credentials","data-testid":"data-encoder-include-credentials"};l[2]!==void 0&&(_.checked=l[2]),c=new Ee({props:_}),le.push(()=>ie(c,"checked",b));let d=l[2]&&Be();return{c(){n=q("div"),e=q("div"),W(t.$$.fragment),r=M(),W(s.$$.fragment),f=M(),W(c.$$.fragment),m=M(),d&&d.c(),this.h()},l(a){n=R(a,"DIV",{class:!0});var o=B(n);e=R(o,"DIV",{class:!0});var v=B(e);X(t.$$.fragment,v),r=O(v),X(s.$$.fragment,v),f=O(v),X(c.$$.fragment,v),m=O(v),d&&d.l(v),v.forEach(C),o.forEach(C),this.h()},h(){w(e,"class","flex flex-col gap-2"),w(n,"class","flex flex-col gap-4")},m(a,o){G(a,n,o),k(n,e),Y(t,e,null),k(e,r),Y(s,e,null),k(e,f),Y(c,e,null),k(e,m),d&&d.m(e,null),T=!0},p(a,[o]){const v={};o&8&&(v.error=a[3]),o&8&&(v.isValid=!a[3]),!i&&o&1&&(i=!0,v.value=a[0],se(()=>i=!1)),t.$set(v);const H={};!g&&o&2&&(g=!0,H.checked=a[1],se(()=>g=!1)),s.$set(H);const P={};!h&&o&4&&(h=!0,P.checked=a[2],se(()=>h=!1)),c.$set(P),a[2]?d?d.p(a,o):(d=Be(),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i(a){T||(j(t.$$.fragment,a),j(s.$$.fragment,a),j(c.$$.fragment,a),T=!0)},o(a){N(t.$$.fragment,a),N(s.$$.fragment,a),N(c.$$.fragment,a),T=!1},d(a){a&&C(n),Z(t),Z(s),Z(c),d&&d.d()}}}function _t(l,n,e){let{endpoint:t=""}=n,{passToken:i=!1}=n,{includeCreds:r=!1}=n,{error:s=""}=n;function g(h){t=h,e(0,t)}function f(h){i=h,e(1,i)}function c(h){r=h,e(2,r)}return l.$$set=h=>{"endpoint"in h&&e(0,t=h.endpoint),"passToken"in h&&e(1,i=h.passToken),"includeCreds"in h&&e(2,r=h.includeCreds),"error"in h&&e(3,s=h.error)},[t,i,r,s,g,f,c]}class mt extends ge{constructor(n){super(),he(this,n,_t,ut,pe,{endpoint:0,passToken:1,includeCreds:2,error:3})}}const pt=l=>l.replace(/\/+$/,"");function Ne(l){let n,e,t,i,r=V("common.codec-server")+"",s,g,f,c=V("data-encoder.codec-server-description-prefix")+"",h,m,T,L=V("data-encoder.codec-server-description-suffix",{level:l[5]})+"",E,I,A,b,_,d,a,o,v,H,P,u,K,D,_e,re,me,be;m=new lt({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[gt]},$$scope:{ctx:l}}}),A=new st({props:{"data-testid":"override-accordion",title:l[6]?V("data-encoder.browser-override-description",{level:l[5]}):V("data-encoder.no-browser-override-description",{level:l[5]}),$$slots:{default:[bt]},$$scope:{ctx:l}}});function Fe(p){l[14](p)}function Ge(p){l[15](p)}function We(p){l[16](p)}let fe={error:l[4]};return l[0]!==void 0&&(fe.endpoint=l[0]),l[1]!==void 0&&(fe.passToken=l[1]),l[3]!==void 0&&(fe.includeCreds=l[3]),_=new mt({props:fe}),le.push(()=>ie(_,"endpoint",Fe)),le.push(()=>ie(_,"passToken",Ge)),le.push(()=>ie(_,"includeCreds",We)),P=new Ae({props:{disabled:!!l[4],"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[vt]},$$scope:{ctx:l}}}),P.$on("click",l[9]),K=new Ae({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[kt]},$$scope:{ctx:l}}}),K.$on("click",l[8]),{c(){n=q("aside"),e=q("div"),t=q("div"),i=q("h3"),s=z(r),g=M(),f=q("p"),h=z(c),W(m.$$.fragment),T=M(),E=z(L),I=M(),W(A.$$.fragment),b=M(),W(_.$$.fragment),v=M(),H=q("div"),W(P.$$.fragment),u=M(),W(K.$$.fragment),this.h()},l(p){n=R(p,"ASIDE",{class:!0});var S=B(n);e=R(S,"DIV",{class:!0});var F=B(e);t=R(F,"DIV",{class:!0});var ee=B(t);i=R(ee,"H3",{"data-testid":!0,class:!0});var y=B(i);s=J(y,r),y.forEach(C),ee.forEach(C),g=O(F),f=R(F,"P",{class:!0});var Q=B(f);h=J(Q,c),X(m.$$.fragment,Q),T=O(Q),E=J(Q,L),Q.forEach(C),I=O(F),X(A.$$.fragment,F),b=O(F),X(_.$$.fragment,F),v=O(F),H=R(F,"DIV",{class:!0});var x=B(H);X(P.$$.fragment,x),u=O(x),X(K.$$.fragment,x),x.forEach(C),F.forEach(C),S.forEach(C),this.h()},h(){w(i,"data-testid","data-encoder-title"),w(i,"class","text-xl"),w(t,"class","flex items-center justify-between space-x-2"),w(f,"class","text-sm"),w(H,"class","flex items-center gap-4"),w(e,"class","flex w-full flex-col gap-4 xl:w-1/2"),w(n,"class","surface-primary relative flex h-[540px] w-full flex-col gap-6 overflow-auto border-b border-subtle p-12")},m(p,S){G(p,n,S),k(n,e),k(e,t),k(t,i),k(i,s),k(e,g),k(e,f),k(f,h),Y(m,f,null),k(f,T),k(f,E),k(e,I),Y(A,e,null),k(e,b),Y(_,e,null),k(e,v),k(e,H),Y(P,H,null),k(H,u),Y(K,H,null),re=!0,me||(be=Qe(D=nt.call(null,n,l[17])),me=!0)},p(p,S){const F={};S&8388608&&(F.$$scope={dirty:S,ctx:p}),m.$set(F),(!re||S&32)&&L!==(L=V("data-encoder.codec-server-description-suffix",{level:p[5]})+"")&&oe(E,L);const ee={};S&96&&(ee.title=p[6]?V("data-encoder.browser-override-description",{level:p[5]}):V("data-encoder.no-browser-override-description",{level:p[5]})),S&8388640&&(ee.$$scope={dirty:S,ctx:p}),A.$set(ee);const y={};S&16&&(y.error=p[4]),!d&&S&1&&(d=!0,y.endpoint=p[0],se(()=>d=!1)),!a&&S&2&&(a=!0,y.passToken=p[1],se(()=>a=!1)),!o&&S&8&&(o=!0,y.includeCreds=p[3],se(()=>o=!1)),_.$set(y);const Q={};S&16&&(Q.disabled=!!p[4]),S&8388608&&(Q.$$scope={dirty:S,ctx:p}),P.$set(Q);const x={};S&8388608&&(x.$$scope={dirty:S,ctx:p}),K.$set(x),D&&Ue(D.update)&&S&4&&D.update.call(null,p[17])},i(p){re||(j(m.$$.fragment,p),j(A.$$.fragment,p),j(_.$$.fragment,p),j(P.$$.fragment,p),j(K.$$.fragment,p),p&&(_e||ye(()=>{_e=$e(n,rt,{y:-50,delay:0,duration:500}),_e.start()})),re=!0)},o(p){N(m.$$.fragment,p),N(A.$$.fragment,p),N(_.$$.fragment,p),N(P.$$.fragment,p),N(K.$$.fragment,p),re=!1},d(p){p&&C(n),Z(m),Z(A),Z(_),Z(P),Z(K),me=!1,be()}}}function gt(l){let n=V("common.codec-server")+"",e;return{c(){e=z(n)},l(t){e=J(t,n)},m(t,i){G(t,e,i)},p:de,d(t){t&&C(e)}}}function ht(l){let n,e,t,i;return n=new Se({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:V("data-encoder.no-browser-override-description",{level:l[5]})}}),t=new Se({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:V("data-encoder.browser-override-description",{level:l[5]})}}),{c(){W(n.$$.fragment),e=M(),W(t.$$.fragment)},l(r){X(n.$$.fragment,r),e=O(r),X(t.$$.fragment,r)},m(r,s){Y(n,r,s),G(r,e,s),Y(t,r,s),i=!0},p(r,s){const g={};s&32&&(g.label=V("data-encoder.no-browser-override-description",{level:r[5]})),n.$set(g);const f={};s&32&&(f.label=V("data-encoder.browser-override-description",{level:r[5]})),t.$set(f)},i(r){i||(j(n.$$.fragment,r),j(t.$$.fragment,r),i=!0)},o(r){N(n.$$.fragment,r),N(t.$$.fragment,r),i=!1},d(r){r&&C(e),Z(n,r),Z(t,r)}}}function bt(l){let n,e;return n=new at({props:{name:"override",group:l[7],$$slots:{default:[ht]},$$scope:{ctx:l}}}),{c(){W(n.$$.fragment)},l(t){X(n.$$.fragment,t)},m(t,i){Y(n,t,i),e=!0},p(t,i){const r={};i&8388640&&(r.$$scope={dirty:i,ctx:t}),n.$set(r)},i(t){e||(j(n.$$.fragment,t),e=!0)},o(t){N(n.$$.fragment,t),e=!1},d(t){Z(n,t)}}}function vt(l){let n=V("common.apply")+"",e;return{c(){e=z(n)},l(t){e=J(t,n)},m(t,i){G(t,e,i)},p:de,d(t){t&&C(e)}}}function kt(l){let n=V("common.cancel")+"",e;return{c(){e=z(n)},l(t){e=J(t,n)},m(t,i){G(t,e,i)},p:de,d(t){t&&C(e)}}}function wt(l){let n,e,t=l[2]&&Ne(l);return{c(){t&&t.c(),n=ke()},l(i){t&&t.l(i),n=ke()},m(i,r){t&&t.m(i,r),G(i,n,r),e=!0},p(i,[r]){i[2]?t?(t.p(i,r),r&4&&j(t,1)):(t=Ne(i),t.c(),j(t,1),t.m(n.parentNode,n)):t&&(Pe(),N(t,1,1,()=>{t=null}),Me())},i(i){e||(j(t),e=!0)},o(i){N(t),e=!1},d(i){i&&C(n),t&&t.d(i)}}}const ue=Oe(!1);function Et(l,n,e){let t,i,r,s,g,f,c,h=de,m,T,L;$(l,Le,D=>e(18,r=D)),$(l,it,D=>e(13,s=D)),$(l,Ce,D=>e(19,f=D)),$(l,ue,D=>e(2,c=D)),$(l,Te,D=>e(20,m=D)),$(l,De,D=>e(21,T=D)),$(l,Ve,D=>e(22,L=D)),l.$$.on_destroy.push(()=>h());var E,I,A;let b=L??"",_=T??!1,d=m??!1,a=Oe(f);$(l,a,D=>e(6,g=D));const o=()=>{e(0,b=L),e(1,_=T),e(3,d=m),U(a,g=f,g),U(ue,c=!1,c)},v=()=>{e(4,t=""),U(Ve,L=pt(b),L),U(De,T=_,T),U(Te,m=d,m),U(ue,c=!1,c),U(Ce,f=g,f),s.url.pathname.endsWith("history")&&U(Le,r=Date.now(),r)};function H(D){b=D,e(0,b)}function P(D){_=D,e(1,_)}function u(D){d=D,e(3,d)}const K=()=>U(ue,c=!1,c);return l.$$.update=()=>{l.$$.dirty&15360&&e(5,i=!(e(12,A=e(11,I=e(10,E=s.data)===null||E===void 0?void 0:E.settings)===null||I===void 0?void 0:I.runtimeEnvironment)===null||A===void 0)&&A.isCloud?V("common.namespaces"):V("common.cluster")),l.$$.dirty&3&&(_&&!et(b)?e(4,t=V("data-encoder.access-token-https-error")):b&&!tt(b)?e(4,t=V("data-encoder.prefix-error")):e(4,t="")),l.$$.dirty&4&&(c||o())},e(4,t=""),[b,_,c,d,t,i,g,a,o,v,E,I,A,s,H,P,u,K]}class Ot extends ge{constructor(n){super(),he(this,n,Et,wt,pe,{})}}export{Ot as D,ue as v}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder.NJvAc-C6.js b/ui/assets/local/_app/immutable/chunks/data-encoder.wJxMMBGk.js similarity index 79% rename from ui/assets/local/_app/immutable/chunks/data-encoder.NJvAc-C6.js rename to ui/assets/local/_app/immutable/chunks/data-encoder.wJxMMBGk.js index e69c11d68..d051c2b7b 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder.NJvAc-C6.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder.wJxMMBGk.js @@ -1 +1 @@ -import{w,d as A}from"./entry.49-_VqMH.js";import{p as B}from"./stores.BjeHb2_D.js";import{a as N}from"./auth-user.qLkr7QCG.js";import{c as b,o as v,l as x}from"./data-encoder-config.q7-G5c7P.js";const I=w("notRequested"),J=A([B,b,v,x,I,N],([s,t,k,e,n,c])=>{var d,i,a,m,u,l,R,f,q;const T=s.params.namespace,r=(a=(i=(d=s==null?void 0:s.data)==null?void 0:d.settings)==null?void 0:i.codec)==null?void 0:a.endpoint,h=!!((l=(u=(m=s==null?void 0:s.data)==null?void 0:m.settings)==null?void 0:u.codec)!=null&&l.passAccessToken),C=!!((q=(f=(R=s==null?void 0:s.data)==null?void 0:R.settings)==null?void 0:f.codec)!=null&&q.includeCredentials),o=k?t:r||t,E=c==null?void 0:c.accessToken;return{namespace:T,settingsEndpoint:r,settingsPassAccessToken:h,settingsIncludeCredentials:C,endpoint:o,accessToken:E,hasNotRequested:o?e==="notRequested":n==="notRequested",hasError:o?e==="error":n==="error",hasSuccess:o?e==="success":n==="success"}});export{J as d}; +import{w,d as A}from"./entry.Yz1YyohR.js";import{p as B}from"./stores.meYYndLY.js";import{a as N}from"./auth-user.13zVs2Gb.js";import{c as b,o as v,l as x}from"./data-encoder-config.VanBuir1.js";const I=w("notRequested"),J=A([B,b,v,x,I,N],([s,t,k,e,n,c])=>{var d,i,a,m,u,l,R,f,q;const T=s.params.namespace,r=(a=(i=(d=s==null?void 0:s.data)==null?void 0:d.settings)==null?void 0:i.codec)==null?void 0:a.endpoint,h=!!((l=(u=(m=s==null?void 0:s.data)==null?void 0:m.settings)==null?void 0:u.codec)!=null&&l.passAccessToken),C=!!((q=(f=(R=s==null?void 0:s.data)==null?void 0:R.settings)==null?void 0:f.codec)!=null&&q.includeCredentials),o=k?t:r||t,E=c==null?void 0:c.accessToken;return{namespace:T,settingsEndpoint:r,settingsPassAccessToken:h,settingsIncludeCredentials:C,endpoint:o,accessToken:E,hasNotRequested:o?e==="notRequested":n==="notRequested",hasError:o?e==="error":n==="error",hasSuccess:o?e==="success":n==="success"}});export{J as d}; diff --git a/ui/assets/local/_app/immutable/chunks/decode-payload.-K-YkwX5.js b/ui/assets/local/_app/immutable/chunks/decode-payload.QBGHBsqc.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/decode-payload.-K-YkwX5.js rename to ui/assets/local/_app/immutable/chunks/decode-payload.QBGHBsqc.js index e7139b9ee..11d558a2e 100644 --- a/ui/assets/local/_app/immutable/chunks/decode-payload.-K-YkwX5.js +++ b/ui/assets/local/_app/immutable/chunks/decode-payload.QBGHBsqc.js @@ -1 +1 @@ -import{C as a}from"./scheduler.AWtTlMeO.js";import{p as m}from"./stores.BjeHb2_D.js";import{t as w}from"./translate.HrioCK44.js";import{a as k}from"./auth-user.qLkr7QCG.js";import{c as P,o as j,p as F,i as _,v as x,s as C,a as R,b as O}from"./data-encoder-config.q7-G5c7P.js";import{h as f,j as W}from"./has.-dFYEuQV.js";import{s as p,p as z}from"./parse-with-big-int.e3oI4SEy.js";const E=(e,n=P,o=j)=>{var c;return a(o)&&a(n)||((c=e==null?void 0:e.codec)==null?void 0:c.endpoint)||a(n)||""},S=(e,n=F,o=P,s=j)=>{var d,r;const c=a(s)&&a(o),i=(d=e==null?void 0:e.codec)!=null&&d.endpoint?!!((r=e==null?void 0:e.codec)!=null&&r.passAccessToken):!!a(n);return c?!!a(n):i},q=(e,n=_,o=P,s=j)=>{var d,r;const c=a(s)&&a(o),i=(d=e==null?void 0:e.codec)!=null&&d.endpoint?!!((r=e==null?void 0:e.codec)!=null&&r.includeCredentials):!!a(n);return c?!!a(n):i};async function L({payloads:e,namespace:n=a(m).params.namespace,settings:o=a(m).data.settings,accessToken:s=a(k).accessToken}){const c=E(o),i=S(o),d=q(o),r={"Content-Type":"application/json","X-Namespace":n};if(i)if(x(c))r.Authorization=`Bearer ${s}`;else return C(),e;const u=d?{headers:r,credentials:"include",method:"POST",body:p(e)}:{headers:r,method:"POST",body:p(e)};return fetch(c+"/decode",u).then(t=>{if(f(t,"ok")&&!t.ok)throw{statusCode:t.status,statusText:t.statusText,response:t,message:w("common.decode-failed")};return t.json()}).then(t=>(R(),t)).catch(t=>(C(t),e))}async function M({payloads:e,namespace:n=a(m).params.namespace,settings:o=a(m).data.settings,accessToken:s=a(k).accessToken}){const c=E(o),i=S(o),d=q(o),r={"Content-Type":"application/json","X-Namespace":n};if(i)if(x(c))r.Authorization=`Bearer ${s}`;else return C(),e;const u=d?{headers:r,credentials:"include",method:"POST",body:p(e)}:{headers:r,method:"POST",body:p(e)};return fetch(c+"/encode",u).then(t=>{if(f(t,"ok")&&!t.ok)throw{statusCode:t.status,statusText:t.statusText,response:t,message:w("common.encode-failed")};return t.json()}).then(t=>(R(),t)).catch(t=>{throw C(t),t})}const B=e=>Array.isArray(e)?e:[e];function h(e,n=!0){var s;if(e===null)return e;const o=O(String(((s=e==null?void 0:e.metadata)==null?void 0:s.encoding)??""));if(e!=null&&e.metadata&&(e.metadata.encodingDecoded=o),o!=null&&o.startsWith("json/"))try{const c=z(O(String((e==null?void 0:e.data)??"")));return n?c:{...e,data:c}}catch(c){console.warn("Could not parse payload: ",c)}return o==="binary/null"?n?null:{...e,data:null}:e}const Q=(e,n=!0)=>{if(f(e,"searchAttributes")&&f(e.searchAttributes,"indexedFields")){const o=e.searchAttributes.indexedFields;Object.entries(o).forEach(([s,c])=>{o[s]=h(c,n)})}else if(f(e,"searchAttributes")){const o=e.searchAttributes;Object.entries(o).forEach(([s,c])=>{o[s]=h(c,n)})}if(f(e,"memo")&&f(e.memo,"fields")){const o=e.memo.fields;Object.entries(o).forEach(([s,c])=>{o[s]=h(c,n)})}if(f(e,"header")&&f(e.header,"fields")){const o=e.header.fields;Object.entries(o).forEach(([s,c])=>{o[s]=h(c,n)})}if(f(e,"queryResult")){const o=e==null?void 0:e.queryResult;Object.entries(o).forEach(([s,c])=>{o[s]=h(c,n)})}return e},I=e=>async(n,o=!0)=>{if(E(e)){const s=await L({payloads:{payloads:n},settings:e});return((s==null?void 0:s.payloads)??[]).map(c=>h(c,o))}else return n.map(s=>h(s,o))},T=(e,...n)=>{for(const o of n)if(e===o)return!0;return!1},b=async(e,n=a(m).params.namespace,o=a(m).data.settings,s=a(k).accessToken)=>{const c=I(o);if(e)for(const i of Object.keys(e))if(T(i,"payloads","encodedAttributes")&&e[i]){const d=B(e[i]),r=await c(d);e[i]=T(i,"encodedAttributes")?r[0]:r}else{const d=e[i];W(d)&&(e[i]=await b(d,n,o,s))}return e},N=async(e,n,o,s,c=!0)=>{if(!e)return e;const i=I(o),d={...e};if(e)for(const r of Object.keys(d))if(T(r,"payloads","encodedAttributes")&&d[r]){const u=B(d[r]),l=await i(u,c);d[r]=T(r,"encodedAttributes")?l[0]:l}else{const u=d[r];W(u)&&(d[r]=await N(u,n,o,s,c))}return d},V=async({attributes:e,namespace:n,settings:o,accessToken:s})=>await b(e,n,o,s);export{S as a,q as b,N as c,Q as d,M as e,V as f,E as g,h}; +import{C as a}from"./scheduler.AWtTlMeO.js";import{p as m}from"./stores.meYYndLY.js";import{t as w}from"./translate.HrioCK44.js";import{a as k}from"./auth-user.13zVs2Gb.js";import{c as P,o as j,p as F,i as _,v as x,s as C,a as R,b as O}from"./data-encoder-config.VanBuir1.js";import{h as f,j as W}from"./has.-dFYEuQV.js";import{s as p,p as z}from"./parse-with-big-int.e3oI4SEy.js";const E=(e,n=P,o=j)=>{var c;return a(o)&&a(n)||((c=e==null?void 0:e.codec)==null?void 0:c.endpoint)||a(n)||""},S=(e,n=F,o=P,s=j)=>{var d,r;const c=a(s)&&a(o),i=(d=e==null?void 0:e.codec)!=null&&d.endpoint?!!((r=e==null?void 0:e.codec)!=null&&r.passAccessToken):!!a(n);return c?!!a(n):i},q=(e,n=_,o=P,s=j)=>{var d,r;const c=a(s)&&a(o),i=(d=e==null?void 0:e.codec)!=null&&d.endpoint?!!((r=e==null?void 0:e.codec)!=null&&r.includeCredentials):!!a(n);return c?!!a(n):i};async function L({payloads:e,namespace:n=a(m).params.namespace,settings:o=a(m).data.settings,accessToken:s=a(k).accessToken}){const c=E(o),i=S(o),d=q(o),r={"Content-Type":"application/json","X-Namespace":n};if(i)if(x(c))r.Authorization=`Bearer ${s}`;else return C(),e;const u=d?{headers:r,credentials:"include",method:"POST",body:p(e)}:{headers:r,method:"POST",body:p(e)};return fetch(c+"/decode",u).then(t=>{if(f(t,"ok")&&!t.ok)throw{statusCode:t.status,statusText:t.statusText,response:t,message:w("common.decode-failed")};return t.json()}).then(t=>(R(),t)).catch(t=>(C(t),e))}async function M({payloads:e,namespace:n=a(m).params.namespace,settings:o=a(m).data.settings,accessToken:s=a(k).accessToken}){const c=E(o),i=S(o),d=q(o),r={"Content-Type":"application/json","X-Namespace":n};if(i)if(x(c))r.Authorization=`Bearer ${s}`;else return C(),e;const u=d?{headers:r,credentials:"include",method:"POST",body:p(e)}:{headers:r,method:"POST",body:p(e)};return fetch(c+"/encode",u).then(t=>{if(f(t,"ok")&&!t.ok)throw{statusCode:t.status,statusText:t.statusText,response:t,message:w("common.encode-failed")};return t.json()}).then(t=>(R(),t)).catch(t=>{throw C(t),t})}const B=e=>Array.isArray(e)?e:[e];function h(e,n=!0){var s;if(e===null)return e;const o=O(String(((s=e==null?void 0:e.metadata)==null?void 0:s.encoding)??""));if(e!=null&&e.metadata&&(e.metadata.encodingDecoded=o),o!=null&&o.startsWith("json/"))try{const c=z(O(String((e==null?void 0:e.data)??"")));return n?c:{...e,data:c}}catch(c){console.warn("Could not parse payload: ",c)}return o==="binary/null"?n?null:{...e,data:null}:e}const Q=(e,n=!0)=>{if(f(e,"searchAttributes")&&f(e.searchAttributes,"indexedFields")){const o=e.searchAttributes.indexedFields;Object.entries(o).forEach(([s,c])=>{o[s]=h(c,n)})}else if(f(e,"searchAttributes")){const o=e.searchAttributes;Object.entries(o).forEach(([s,c])=>{o[s]=h(c,n)})}if(f(e,"memo")&&f(e.memo,"fields")){const o=e.memo.fields;Object.entries(o).forEach(([s,c])=>{o[s]=h(c,n)})}if(f(e,"header")&&f(e.header,"fields")){const o=e.header.fields;Object.entries(o).forEach(([s,c])=>{o[s]=h(c,n)})}if(f(e,"queryResult")){const o=e==null?void 0:e.queryResult;Object.entries(o).forEach(([s,c])=>{o[s]=h(c,n)})}return e},I=e=>async(n,o=!0)=>{if(E(e)){const s=await L({payloads:{payloads:n},settings:e});return((s==null?void 0:s.payloads)??[]).map(c=>h(c,o))}else return n.map(s=>h(s,o))},T=(e,...n)=>{for(const o of n)if(e===o)return!0;return!1},b=async(e,n=a(m).params.namespace,o=a(m).data.settings,s=a(k).accessToken)=>{const c=I(o);if(e)for(const i of Object.keys(e))if(T(i,"payloads","encodedAttributes")&&e[i]){const d=B(e[i]),r=await c(d);e[i]=T(i,"encodedAttributes")?r[0]:r}else{const d=e[i];W(d)&&(e[i]=await b(d,n,o,s))}return e},N=async(e,n,o,s,c=!0)=>{if(!e)return e;const i=I(o),d={...e};if(e)for(const r of Object.keys(d))if(T(r,"payloads","encodedAttributes")&&d[r]){const u=B(d[r]),l=await i(u,c);d[r]=T(r,"encodedAttributes")?l[0]:l}else{const u=d[r];W(u)&&(d[r]=await N(u,n,o,s,c))}return d},V=async({attributes:e,namespace:n,settings:o,accessToken:s})=>await b(e,n,o,s);export{S as a,q as b,N as c,Q as d,M as e,V as f,E as g,h}; diff --git a/ui/assets/local/_app/immutable/chunks/encode-payload.fJnyVVKQ.js b/ui/assets/local/_app/immutable/chunks/encode-payload.mYRoJRmH.js similarity index 82% rename from ui/assets/local/_app/immutable/chunks/encode-payload.fJnyVVKQ.js rename to ui/assets/local/_app/immutable/chunks/encode-payload.mYRoJRmH.js index c1209b9ce..d602d4b7b 100644 --- a/ui/assets/local/_app/immutable/chunks/encode-payload.fJnyVVKQ.js +++ b/ui/assets/local/_app/immutable/chunks/encode-payload.mYRoJRmH.js @@ -1 +1 @@ -import{C as r}from"./scheduler.AWtTlMeO.js";import{e as s}from"./decode-payload.-K-YkwX5.js";import{d as i}from"./data-encoder.NJvAc-C6.js";import{B as d}from"./prod-browser.6V4A_NcJ.js";import{p as c,s as p}from"./parse-with-big-int.e3oI4SEy.js";const l=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(n,t)=>String.fromCharCode(parseInt(t,16)))),e=(o,n=d)=>n?l(o):o,I=o=>{if(o){const n=c(o),t=n==null?void 0:n[0];if(t)return p(t)}return""},f=o=>({metadata:{encoding:e("json/plain")},data:e(JSON.stringify(o))}),P=async o=>{let n=null;if(o){const t=JSON.parse(o);if(n=[f(t)],r(i).endpoint){const a=await s({payloads:{payloads:n}});n=(a==null?void 0:a.payloads)??null}}return n};export{P as e,I as g}; +import{C as r}from"./scheduler.AWtTlMeO.js";import{e as s}from"./decode-payload.QBGHBsqc.js";import{d as i}from"./data-encoder.wJxMMBGk.js";import{B as d}from"./prod-browser.6V4A_NcJ.js";import{p as c,s as p}from"./parse-with-big-int.e3oI4SEy.js";const l=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(n,t)=>String.fromCharCode(parseInt(t,16)))),e=(o,n=d)=>n?l(o):o,I=o=>{if(o){const n=c(o),t=n==null?void 0:n[0];if(t)return p(t)}return""},f=o=>({metadata:{encoding:e("json/plain")},data:e(JSON.stringify(o))}),P=async o=>{let n=null;if(o){const t=JSON.parse(o);if(n=[f(t)],r(i).endpoint){const a=await s({payloads:{payloads:n}});n=(a==null?void 0:a.payloads)??null}}return n};export{P as e,I as g}; diff --git a/ui/assets/local/_app/immutable/chunks/entry.49-_VqMH.js b/ui/assets/local/_app/immutable/chunks/entry.Yz1YyohR.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/entry.49-_VqMH.js rename to ui/assets/local/_app/immutable/chunks/entry.Yz1YyohR.js index 1561e7458..8c40a519e 100644 --- a/ui/assets/local/_app/immutable/chunks/entry.49-_VqMH.js +++ b/ui/assets/local/_app/immutable/chunks/entry.Yz1YyohR.js @@ -1,3 +1,3 @@ -import{v as F,a6 as ot,G as st,s as it,a1 as ct,ac as lt,S as ft}from"./scheduler.AWtTlMeO.js";import{a as ut,b as I}from"./paths.0kQCowj0.js";import{H as ne,S as ge,R as je}from"./control.pJ1mnnAb.js";new URL("sveltekit-internal://");function dt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ht(e){return e.split("%25").map(decodeURI).join("%25")}function pt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function le({href:e}){return e.split("#")[0]}const gt=["href","pathname","search","toString","toJSON"];function mt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),a[o](s));t();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of gt)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const _t="/__data.json",yt=".html__data.json";function wt(e){return e.endsWith(".html")?e.replace(/\.html$/,yt):e.replace(/\/$/,"")+_t}function vt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function bt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&q.delete(me(e)),De(e,t));const q=new Map;function Et(e,t){const n=me(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&q.set(n,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=bt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function kt(e,t,n){if(q.size>0){const r=me(e,n),a=q.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return fe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return fe(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const u=St.exec(c),[,h,g,d,m]=u;return t.push({name:d,matcher:m,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return fe(c)}).join("")}).join("")}/?$`),params:t}}function Rt(e){return!/^\([^)]+\)$/.test(e)}function It(e){return e.slice(1).split("/").filter(Rt)}function Lt(e,t,n){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const u=t[s+1],h=a[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function fe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Pt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,u]])=>{const{pattern:h,params:g}=At(s),d={id:s,exec:m=>{const f=h.exec(m);if(f)return Lt(f,g,r)},errors:[1,...u||[]].map(m=>e[m]),layouts:[0,...l||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function $e(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Le(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const O=[];function Ut(e,t){return{subscribe:ae(e,t).subscribe}}function ae(e,t=F){let n;const r=new Set;function a(s){if(it(e,s)&&(e=s,n)){const c=!O.length;for(const l of r)l[1](),O.push(l,e);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:o,subscribe:i}}function on(e,t,n){const r=!Array.isArray(e),a=r?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ut(n,(i,s)=>{let c=!1;const l=[];let u=0,h=F;const g=()=>{if(u)return;h();const m=t(r?l[0]:l,i,s);o?i(m):h=ct(m)?m:F},d=a.map((m,f)=>ot(m,_=>{l[f]=_,u&=~(1<{u|=1<i)}function a(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Tt(){const{set:e,subscribe:t}=ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==xt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function re(e,t){return e.origin!==K||!e.pathname.startsWith(t)}const Ot=-1,jt=-2,Dt=-3,$t=-4,Ct=-5,Vt=-6;function Ft(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,i=!1){if(o===Ot)return;if(o===Dt)return NaN;if(o===$t)return 1/0;if(o===Ct)return-1/0;if(o===Vt)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t==null?void 0:t[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;dt!=null)}const Mt="x-sveltekit-invalidated",Ht="x-sveltekit-trailing-slash";function J(e){return e instanceof ne||e instanceof ge?e.status:500}function Bt(e){return e instanceof ge?e.text:"Internal Error"}const T=$e(Ve)??{},M=$e(Ce)??{},U={url:Ue({}),page:Ue({}),navigating:ae(null),updated:Tt()};function ye(e){T[e]=_e()}function Kt(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;M[n];)delete M[n],n+=1}function $(e){return location.href=e.href,new Promise(()=>{})}function xe(){}let oe,he,X,L,pe,C;const Be=[],Z=[];let P=null;const we=[],zt=[];let N=[],w={branch:[],error:null,url:null},ve=!1,Q=!1,Ne=!0,H=!1,V=!1,Ke=!1,be=!1,Ee,k,A,R,ee;async function sn(e,t,n){var a,o;document.URL!==location.href&&(location.href=location.href),C=e,oe=Pt(e),L=document.documentElement,pe=t,he=e.nodes[0],X=e.nodes[1],he(),X(),k=(a=history.state)==null?void 0:a[D],A=(o=history.state)==null?void 0:o[G],k||(k=A=Date.now(),history.replaceState({...history.state,[D]:k,[G]:A},""));const r=T[k];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await en(pe,n):Zt(location.href,{replaceState:!0}),Qt()}function ze(e){Z.some(t=>t==null?void 0:t.snapshot)&&(M[e]=Z.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function Ye(e){var t;(t=M[e])==null||t.forEach((n,r)=>{var a,o;(o=(a=Z[r])==null?void 0:a.snapshot)==null||o.restore(n)})}function Te(){ye(k),Le(Ve,T),ze(A),Le(Ce,M)}async function We(e,t,n,r){return z({type:"goto",url:qe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(be=!0)}})}async function Yt(e){return P={id:e.id,promise:Xe(e).then(t=>(t.type==="loaded"&&t.state.error&&(P=null),t))},P.promise}async function ue(e){const t=oe.find(n=>n.exec(Ze(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n==null?void 0:n[1]()))}function Je(e,t){var a;w=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),R=e.props.page,Ee=new C.root({target:t,props:{...e.props,stores:U,components:Z},hydrate:!0}),Ye(A);const r={from:null,to:{params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};N.forEach(o=>o(r)),Q=!0}async function te({url:e,params:t,branch:n,status:r,error:a,route:o,form:i}){let s="never";if(I&&(e.pathname===I||e.pathname===I+"/"))s="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=dt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Gt(n).map(d=>d.node.component),page:R}};i!==void 0&&(c.props.form=i);let l={},u=!R,h=0;for(let d=0;d(s&&(c.route=!0),f[_])}),params:new Proxy(r,{get:(f,_)=>(s&&c.params.add(_),f[_])}),data:(o==null?void 0:o.data)??null,url:mt(n,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,_){let v;f instanceof Request?(v=f.url,_={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,..._}):v=f;const S=new URL(v,n);return s&&d(S.href),S.origin===n.origin&&(v=S.href.slice(n.origin.length)),Q?kt(v,S.href,_):Et(v,_)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Oe(e,t,n,r,a,o){if(be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==w.params[i])return!0;for(const i of a.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function Se(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function Wt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&n.delete(r)}return n}async function Xe({id:e,invalidating:t,url:n,params:r,route:a}){if((P==null?void 0:P.id)===e)return P.promise;const{errors:o,layouts:i,leaf:s}=a,c=[...i,s];o.forEach(p=>p==null?void 0:p().catch(()=>{})),c.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let l=null;const u=w.url?e!==w.url.pathname+w.url.search:!1,h=w.route?a.id!==w.route.id:!1,g=Wt(w.url,n);let d=!1;const m=c.map((p,y)=>{var x;const b=w.branch[y],E=!!(p!=null&&p[0])&&((b==null?void 0:b.loader)!==p[1]||Oe(d,h,u,g,(x=b.server)==null?void 0:x.uses,r));return E&&(d=!0),E});if(m.some(Boolean)){try{l=await nt(n,m)}catch(p){return se({status:J(p),error:await B(p,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(l.type==="redirect")return l}const f=l==null?void 0:l.nodes;let _=!1;const v=c.map(async(p,y)=>{var ie;if(!p)return;const b=w.branch[y],E=f==null?void 0:f[y];if((!E||E.type==="skip")&&p[1]===(b==null?void 0:b.loader)&&!Oe(_,h,u,g,(ie=b.universal)==null?void 0:ie.uses,r))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return ke({loader:p[1],url:n,params:r,route:a,parent:async()=>{var Ie;const Re={};for(let ce=0;ce{});const S=[];for(let p=0;pPromise.resolve({}),server_data_node:Se(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return await te({url:n,params:a,branch:[s,c],status:e,error:t,route:null})}function Ae(e,t){if(!e||re(e,I))return;let n;try{n=C.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Ze(n);for(const a of oe){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:pt(o),url:e}}}function Ze(e){return ht(e.slice(I.length)||"/")}function Qe({url:e,type:t,intent:n,delta:r}){let a=!1;const o=rt(w,n,e,t);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||we.forEach(s=>s(i)),a?null:o}async function z({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=xe,block:u=xe}){const h=Ae(t,!1),g=Qe({url:t,type:e,delta:n==null?void 0:n.delta,intent:h});if(!g){u();return}const d=k,m=A;l(),H=!0,Q&&U.navigating.set(g.navigation),ee=c;let f=h&&await Xe(h);if(!f){if(re(t,I))return await $(t);f=await et(t,{id:null},await B(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(h==null?void 0:h.url)||t,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await se({status:500,error:await B(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return We(new URL(f.location,t).href,{},s+1,c),!1;else f.props.page.status>=400&&await U.updated.check()&&await $(t);if(Be.length=0,be=!1,ye(d),ze(m),f.props.page.url.pathname!==t.pathname&&(t.pathname=f.props.page.url.pathname),i=n?n.state:i,!n){const p=o?0:1,y={[D]:k+=p,[G]:A+=p,[Fe]:i};(o?history.replaceState:history.pushState).call(history,y,"",t),o||Kt(k,A)}if(P=null,f.props.page.state=i,Q){w=f.state,f.props.page&&(f.props.page.url=t);const p=(await Promise.all(zt.map(y=>y(g.navigation)))).filter(y=>typeof y=="function");if(p.length>0){let y=function(){N=N.filter(b=>!p.includes(b))};p.push(y),N.push(...p)}Ee.$set(f.props),Ke=!0}else Je(f,pe);const{activeElement:_}=document;await lt();const v=n?n.scroll:a?_e():null;if(Ne){const p=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));v?scrollTo(v.x,v.y):p?p.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==_&&document.activeElement!==document.body;!r&&!S&&tn(),Ne=!0,f.props.page&&(R=f.props.page),H=!1,e==="popstate"&&Ye(A),g.fulfil(void 0),N.forEach(p=>p(g.navigation)),U.navigating.set(null)}async function et(e,t,n,r){return e.origin===K&&e.pathname===location.pathname&&!ve?await se({status:r,error:n,url:e,route:t}):await $(e)}function Xt(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ue(i.target.href),n.unobserve(i.target))},{threshold:0});function r(o,i){const s=Me(o,L);if(!s)return;const{url:c,external:l,download:u}=de(s,I);if(l||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Ae(c,!1);g&&Yt(g)}else i<=h.preload_code&&ue(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=de(o,I);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===Y.viewport&&n.observe(o),l.preload_code===Y.eager&&ue(i.pathname))}}N.push(a),a()}function B(e,t){if(e instanceof ne)return e.body;const n=J(e),r=Bt(e);return C.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function tt(e,t){ft(()=>(e.push(t),()=>{const n=e.indexOf(t);e.splice(n,1)}))}function cn(e){tt(N,e)}function ln(e){tt(we,e)}function Zt(e,t={}){return e=qe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):We(e,t,0)}function Qt(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(Te(),!H){const a=rt(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};we.forEach(i=>i(o))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),(t=navigator.connection)!=null&&t.saveData||Xt(),L.addEventListener("click",n=>{var g;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=Me(n.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=de(r,I);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){Qe({url:a,type:"link"})?H=!0:n.preventDefault();return}const[u,h]=a.href.split("#");if(h!==void 0&&u===le(location)){const[,d]=w.url.href.split("#");if(d===h){n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(V=!0,ye(k),e(a),!c.replace_state)return;V=!1}n.preventDefault(),z({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(re(i,I))return;const s=n.target,c=W(s);if(c.reload)return;n.preventDefault(),n.stopPropagation();const l=new FormData(s),u=a==null?void 0:a.getAttribute("name");u&&l.append(u,(a==null?void 0:a.getAttribute("value"))??""),i.search=new URLSearchParams(l).toString(),z({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[D]){const a=n.state[D];if(ee={},a===k)return;const o=T[a],i=n.state[Fe]??{},s=new URL(n.state[Nt]??location.href),c=n.state[G],l=le(location)===le(w.url);if(c===A&&(Ke||l)){e(s),T[k]=_e(),o&&scrollTo(o.x,o.y),i!==R.state&&(R={...R,state:i},Ee.$set({page:R})),k=a;return}const h=a-k;await z({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{k=a,A=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!V){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[D]:++k,[G]:A},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&U.navigating.set(null)});function e(n){w.url=n,U.page.set({...R,url:n}),U.page.notify()}}async function en(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:i,form:s}){ve=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Ae(c,!1)||{});let l;try{const u=r.map(async(d,m)=>{const f=i[m];return f!=null&&f.uses&&(f.uses=at(f.uses)),ke({loader:C.nodes[d],url:c,params:a,route:o,parent:async()=>{const _={};for(let v=0;vd===o.id);if(g){const d=g.layouts;for(let m=0;mo?"1":"0").join(""));const r=await De(n.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new ne(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function l(g){return Ft(g,{Promise:d=>new Promise((m,f)=>{i.set(d,{fulfil:m,reject:f})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` +import{v as F,a6 as ot,G as st,s as it,a1 as ct,ac as lt,S as ft}from"./scheduler.AWtTlMeO.js";import{a as ut,b as I}from"./paths.Ow6cpyoT.js";import{H as ne,S as ge,R as je}from"./control.pJ1mnnAb.js";new URL("sveltekit-internal://");function dt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ht(e){return e.split("%25").map(decodeURI).join("%25")}function pt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function le({href:e}){return e.split("#")[0]}const gt=["href","pathname","search","toString","toJSON"];function mt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),a[o](s));t();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of gt)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const _t="/__data.json",yt=".html__data.json";function wt(e){return e.endsWith(".html")?e.replace(/\.html$/,yt):e.replace(/\/$/,"")+_t}function vt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function bt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&q.delete(me(e)),De(e,t));const q=new Map;function Et(e,t){const n=me(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&q.set(n,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=bt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function kt(e,t,n){if(q.size>0){const r=me(e,n),a=q.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return fe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return fe(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const u=St.exec(c),[,h,g,d,m]=u;return t.push({name:d,matcher:m,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return fe(c)}).join("")}).join("")}/?$`),params:t}}function Rt(e){return!/^\([^)]+\)$/.test(e)}function It(e){return e.slice(1).split("/").filter(Rt)}function Lt(e,t,n){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const u=t[s+1],h=a[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function fe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Pt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,u]])=>{const{pattern:h,params:g}=At(s),d={id:s,exec:m=>{const f=h.exec(m);if(f)return Lt(f,g,r)},errors:[1,...u||[]].map(m=>e[m]),layouts:[0,...l||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function $e(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Le(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const O=[];function Ut(e,t){return{subscribe:ae(e,t).subscribe}}function ae(e,t=F){let n;const r=new Set;function a(s){if(it(e,s)&&(e=s,n)){const c=!O.length;for(const l of r)l[1](),O.push(l,e);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:o,subscribe:i}}function on(e,t,n){const r=!Array.isArray(e),a=r?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ut(n,(i,s)=>{let c=!1;const l=[];let u=0,h=F;const g=()=>{if(u)return;h();const m=t(r?l[0]:l,i,s);o?i(m):h=ct(m)?m:F},d=a.map((m,f)=>ot(m,_=>{l[f]=_,u&=~(1<{u|=1<i)}function a(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Tt(){const{set:e,subscribe:t}=ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==xt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function re(e,t){return e.origin!==K||!e.pathname.startsWith(t)}const Ot=-1,jt=-2,Dt=-3,$t=-4,Ct=-5,Vt=-6;function Ft(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,i=!1){if(o===Ot)return;if(o===Dt)return NaN;if(o===$t)return 1/0;if(o===Ct)return-1/0;if(o===Vt)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t==null?void 0:t[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;dt!=null)}const Mt="x-sveltekit-invalidated",Ht="x-sveltekit-trailing-slash";function J(e){return e instanceof ne||e instanceof ge?e.status:500}function Bt(e){return e instanceof ge?e.text:"Internal Error"}const T=$e(Ve)??{},M=$e(Ce)??{},U={url:Ue({}),page:Ue({}),navigating:ae(null),updated:Tt()};function ye(e){T[e]=_e()}function Kt(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;M[n];)delete M[n],n+=1}function $(e){return location.href=e.href,new Promise(()=>{})}function xe(){}let oe,he,X,L,pe,C;const Be=[],Z=[];let P=null;const we=[],zt=[];let N=[],w={branch:[],error:null,url:null},ve=!1,Q=!1,Ne=!0,H=!1,V=!1,Ke=!1,be=!1,Ee,k,A,R,ee;async function sn(e,t,n){var a,o;document.URL!==location.href&&(location.href=location.href),C=e,oe=Pt(e),L=document.documentElement,pe=t,he=e.nodes[0],X=e.nodes[1],he(),X(),k=(a=history.state)==null?void 0:a[D],A=(o=history.state)==null?void 0:o[G],k||(k=A=Date.now(),history.replaceState({...history.state,[D]:k,[G]:A},""));const r=T[k];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await en(pe,n):Zt(location.href,{replaceState:!0}),Qt()}function ze(e){Z.some(t=>t==null?void 0:t.snapshot)&&(M[e]=Z.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function Ye(e){var t;(t=M[e])==null||t.forEach((n,r)=>{var a,o;(o=(a=Z[r])==null?void 0:a.snapshot)==null||o.restore(n)})}function Te(){ye(k),Le(Ve,T),ze(A),Le(Ce,M)}async function We(e,t,n,r){return z({type:"goto",url:qe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(be=!0)}})}async function Yt(e){return P={id:e.id,promise:Xe(e).then(t=>(t.type==="loaded"&&t.state.error&&(P=null),t))},P.promise}async function ue(e){const t=oe.find(n=>n.exec(Ze(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n==null?void 0:n[1]()))}function Je(e,t){var a;w=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),R=e.props.page,Ee=new C.root({target:t,props:{...e.props,stores:U,components:Z},hydrate:!0}),Ye(A);const r={from:null,to:{params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};N.forEach(o=>o(r)),Q=!0}async function te({url:e,params:t,branch:n,status:r,error:a,route:o,form:i}){let s="never";if(I&&(e.pathname===I||e.pathname===I+"/"))s="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=dt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Gt(n).map(d=>d.node.component),page:R}};i!==void 0&&(c.props.form=i);let l={},u=!R,h=0;for(let d=0;d(s&&(c.route=!0),f[_])}),params:new Proxy(r,{get:(f,_)=>(s&&c.params.add(_),f[_])}),data:(o==null?void 0:o.data)??null,url:mt(n,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,_){let v;f instanceof Request?(v=f.url,_={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,..._}):v=f;const S=new URL(v,n);return s&&d(S.href),S.origin===n.origin&&(v=S.href.slice(n.origin.length)),Q?kt(v,S.href,_):Et(v,_)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Oe(e,t,n,r,a,o){if(be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==w.params[i])return!0;for(const i of a.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function Se(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function Wt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&n.delete(r)}return n}async function Xe({id:e,invalidating:t,url:n,params:r,route:a}){if((P==null?void 0:P.id)===e)return P.promise;const{errors:o,layouts:i,leaf:s}=a,c=[...i,s];o.forEach(p=>p==null?void 0:p().catch(()=>{})),c.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let l=null;const u=w.url?e!==w.url.pathname+w.url.search:!1,h=w.route?a.id!==w.route.id:!1,g=Wt(w.url,n);let d=!1;const m=c.map((p,y)=>{var x;const b=w.branch[y],E=!!(p!=null&&p[0])&&((b==null?void 0:b.loader)!==p[1]||Oe(d,h,u,g,(x=b.server)==null?void 0:x.uses,r));return E&&(d=!0),E});if(m.some(Boolean)){try{l=await nt(n,m)}catch(p){return se({status:J(p),error:await B(p,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(l.type==="redirect")return l}const f=l==null?void 0:l.nodes;let _=!1;const v=c.map(async(p,y)=>{var ie;if(!p)return;const b=w.branch[y],E=f==null?void 0:f[y];if((!E||E.type==="skip")&&p[1]===(b==null?void 0:b.loader)&&!Oe(_,h,u,g,(ie=b.universal)==null?void 0:ie.uses,r))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return ke({loader:p[1],url:n,params:r,route:a,parent:async()=>{var Ie;const Re={};for(let ce=0;ce{});const S=[];for(let p=0;pPromise.resolve({}),server_data_node:Se(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return await te({url:n,params:a,branch:[s,c],status:e,error:t,route:null})}function Ae(e,t){if(!e||re(e,I))return;let n;try{n=C.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Ze(n);for(const a of oe){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:pt(o),url:e}}}function Ze(e){return ht(e.slice(I.length)||"/")}function Qe({url:e,type:t,intent:n,delta:r}){let a=!1;const o=rt(w,n,e,t);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||we.forEach(s=>s(i)),a?null:o}async function z({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=xe,block:u=xe}){const h=Ae(t,!1),g=Qe({url:t,type:e,delta:n==null?void 0:n.delta,intent:h});if(!g){u();return}const d=k,m=A;l(),H=!0,Q&&U.navigating.set(g.navigation),ee=c;let f=h&&await Xe(h);if(!f){if(re(t,I))return await $(t);f=await et(t,{id:null},await B(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(h==null?void 0:h.url)||t,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await se({status:500,error:await B(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return We(new URL(f.location,t).href,{},s+1,c),!1;else f.props.page.status>=400&&await U.updated.check()&&await $(t);if(Be.length=0,be=!1,ye(d),ze(m),f.props.page.url.pathname!==t.pathname&&(t.pathname=f.props.page.url.pathname),i=n?n.state:i,!n){const p=o?0:1,y={[D]:k+=p,[G]:A+=p,[Fe]:i};(o?history.replaceState:history.pushState).call(history,y,"",t),o||Kt(k,A)}if(P=null,f.props.page.state=i,Q){w=f.state,f.props.page&&(f.props.page.url=t);const p=(await Promise.all(zt.map(y=>y(g.navigation)))).filter(y=>typeof y=="function");if(p.length>0){let y=function(){N=N.filter(b=>!p.includes(b))};p.push(y),N.push(...p)}Ee.$set(f.props),Ke=!0}else Je(f,pe);const{activeElement:_}=document;await lt();const v=n?n.scroll:a?_e():null;if(Ne){const p=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));v?scrollTo(v.x,v.y):p?p.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==_&&document.activeElement!==document.body;!r&&!S&&tn(),Ne=!0,f.props.page&&(R=f.props.page),H=!1,e==="popstate"&&Ye(A),g.fulfil(void 0),N.forEach(p=>p(g.navigation)),U.navigating.set(null)}async function et(e,t,n,r){return e.origin===K&&e.pathname===location.pathname&&!ve?await se({status:r,error:n,url:e,route:t}):await $(e)}function Xt(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ue(i.target.href),n.unobserve(i.target))},{threshold:0});function r(o,i){const s=Me(o,L);if(!s)return;const{url:c,external:l,download:u}=de(s,I);if(l||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Ae(c,!1);g&&Yt(g)}else i<=h.preload_code&&ue(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=de(o,I);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===Y.viewport&&n.observe(o),l.preload_code===Y.eager&&ue(i.pathname))}}N.push(a),a()}function B(e,t){if(e instanceof ne)return e.body;const n=J(e),r=Bt(e);return C.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function tt(e,t){ft(()=>(e.push(t),()=>{const n=e.indexOf(t);e.splice(n,1)}))}function cn(e){tt(N,e)}function ln(e){tt(we,e)}function Zt(e,t={}){return e=qe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):We(e,t,0)}function Qt(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(Te(),!H){const a=rt(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};we.forEach(i=>i(o))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),(t=navigator.connection)!=null&&t.saveData||Xt(),L.addEventListener("click",n=>{var g;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=Me(n.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=de(r,I);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){Qe({url:a,type:"link"})?H=!0:n.preventDefault();return}const[u,h]=a.href.split("#");if(h!==void 0&&u===le(location)){const[,d]=w.url.href.split("#");if(d===h){n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(V=!0,ye(k),e(a),!c.replace_state)return;V=!1}n.preventDefault(),z({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(re(i,I))return;const s=n.target,c=W(s);if(c.reload)return;n.preventDefault(),n.stopPropagation();const l=new FormData(s),u=a==null?void 0:a.getAttribute("name");u&&l.append(u,(a==null?void 0:a.getAttribute("value"))??""),i.search=new URLSearchParams(l).toString(),z({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[D]){const a=n.state[D];if(ee={},a===k)return;const o=T[a],i=n.state[Fe]??{},s=new URL(n.state[Nt]??location.href),c=n.state[G],l=le(location)===le(w.url);if(c===A&&(Ke||l)){e(s),T[k]=_e(),o&&scrollTo(o.x,o.y),i!==R.state&&(R={...R,state:i},Ee.$set({page:R})),k=a;return}const h=a-k;await z({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{k=a,A=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!V){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[D]:++k,[G]:A},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&U.navigating.set(null)});function e(n){w.url=n,U.page.set({...R,url:n}),U.page.notify()}}async function en(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:i,form:s}){ve=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Ae(c,!1)||{});let l;try{const u=r.map(async(d,m)=>{const f=i[m];return f!=null&&f.uses&&(f.uses=at(f.uses)),ke({loader:C.nodes[d],url:c,params:a,route:o,parent:async()=>{const _={};for(let v=0;vd===o.id);if(g){const d=g.layouts;for(let m=0;mo?"1":"0").join(""));const r=await De(n.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new ne(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function l(g){return Ft(g,{Promise:d=>new Promise((m,f)=>{i.set(d,{fulfil:m,reject:f})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` `:c.decode(d,{stream:!0});;){const m=u.indexOf(` `);if(m===-1)break;const f=JSON.parse(u.slice(0,m));if(u=u.slice(m+1),f.type==="redirect")return o(f);if(f.type==="data")(h=f.nodes)==null||h.forEach(_=>{(_==null?void 0:_.type)==="data"&&(_.uses=at(_.uses),_.data=l(_.data))}),o(f);else if(f.type==="chunk"){const{id:_,data:v,error:S}=f,p=i.get(_);i.delete(_),S?p.reject(l(S)):p.fulfil(l(v))}}}})}function at(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function tn(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((l=t==null?void 0:t.route)==null?void 0:l.id)??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:o}}export{cn as a,ln as b,sn as c,on as d,Zt as g,Ut as r,U as s,ae as w}; diff --git a/ui/assets/local/_app/immutable/chunks/error.K_W9miWl.js b/ui/assets/local/_app/immutable/chunks/error.kUqJ8Dzr.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/error.K_W9miWl.js rename to ui/assets/local/_app/immutable/chunks/error.kUqJ8Dzr.js index 446c14f27..42331bead 100644 --- a/ui/assets/local/_app/immutable/chunks/error.K_W9miWl.js +++ b/ui/assets/local/_app/immutable/chunks/error.kUqJ8Dzr.js @@ -1,4 +1,4 @@ -import{s as D,e as h,t as C,a as y,b as p,d as $,f as k,g as _,h as N,i as U,j as m,k as B,l as n,m as H,n as I,o as z}from"./scheduler.AWtTlMeO.js";import{S as A,i as F,c as G,a as J,m as K,t as M,b as Q,d as R}from"./index.91lpp7Ff.js";import{a as V}from"./entry.49-_VqMH.js";import{L as W}from"./link.cs7LzqaH.js";import{h as X}from"./has.-dFYEuQV.js";function Y(l){let t;return{c(){t=C("jump on our Slack Channel")},l(e){t=k(e,"jump on our Slack Channel")},m(e,a){B(e,t,a)},d(e){e&&_(t)}}}function Z(l){let t,e,a,d,i,E="Uh oh. There's an error.",x,o,T,w,c,u,P="Try a refresh",S,f,j,g,q,L;return f=new W({props:{newTab:!0,href:"https://temporal.io/slack",$$slots:{default:[Y]},$$scope:{ctx:l}}}),{c(){t=h("section"),e=h("h1"),a=C(l[0]),d=y(),i=h("p"),i.textContent=E,x=y(),o=h("p"),T=C(l[1]),w=y(),c=h("p"),u=h("button"),u.textContent=P,S=C(` +import{s as D,e as h,t as C,a as y,b as p,d as $,f as k,g as _,h as N,i as U,j as m,k as B,l as n,m as H,n as I,o as z}from"./scheduler.AWtTlMeO.js";import{S as A,i as F,c as G,a as J,m as K,t as M,b as Q,d as R}from"./index.91lpp7Ff.js";import{a as V}from"./entry.Yz1YyohR.js";import{L as W}from"./link.DdkOc0EY.js";import{h as X}from"./has.-dFYEuQV.js";function Y(l){let t;return{c(){t=C("jump on our Slack Channel")},l(e){t=k(e,"jump on our Slack Channel")},m(e,a){B(e,t,a)},d(e){e&&_(t)}}}function Z(l){let t,e,a,d,i,E="Uh oh. There's an error.",x,o,T,w,c,u,P="Try a refresh",S,f,j,g,q,L;return f=new W({props:{newTab:!0,href:"https://temporal.io/slack",$$slots:{default:[Y]},$$scope:{ctx:l}}}),{c(){t=h("section"),e=h("h1"),a=C(l[0]),d=y(),i=h("p"),i.textContent=E,x=y(),o=h("p"),T=C(l[1]),w=y(),c=h("p"),u=h("button"),u.textContent=P,S=C(` or `),G(f.$$.fragment),j=C("."),this.h()},l(r){t=p(r,"SECTION",{"aria-roledescription":!0,class:!0,role:!0});var s=$(t);e=p(s,"H1",{class:!0});var v=$(e);a=k(v,l[0]),v.forEach(_),d=N(s),i=p(s,"P",{class:!0,"data-svelte-h":!0}),U(i)!=="svelte-h7qijb"&&(i.textContent=E),x=N(s),o=p(s,"P",{class:!0});var O=$(o);T=k(O,l[1]),O.forEach(_),w=N(s),c=p(s,"P",{class:!0});var b=$(c);u=p(b,"BUTTON",{class:!0,tabindex:!0,"data-svelte-h":!0}),U(u)!=="svelte-kruuqs"&&(u.textContent=P),S=k(b,` or diff --git a/ui/assets/local/_app/immutable/chunks/event-history-file-import.D8w-4Mun.js b/ui/assets/local/_app/immutable/chunks/event-history-file-import.4KIfkaSK.js similarity index 82% rename from ui/assets/local/_app/immutable/chunks/event-history-file-import.D8w-4Mun.js rename to ui/assets/local/_app/immutable/chunks/event-history-file-import.4KIfkaSK.js index 59dc1853f..d0f5b8d67 100644 --- a/ui/assets/local/_app/immutable/chunks/event-history-file-import.D8w-4Mun.js +++ b/ui/assets/local/_app/immutable/chunks/event-history-file-import.4KIfkaSK.js @@ -1 +1 @@ -import{s as B,a as y,e as C,h as b,b as L,j as u,k as d,m as N,g as v,c as U,t as j,f as x,v as G}from"./scheduler.AWtTlMeO.js";import{S as H,i as T,c as E,a as w,m as S,t as F,b as I,d as k}from"./index.91lpp7Ff.js";import{g as q}from"./entry.49-_VqMH.js";import{B as P}from"./button.J_9D2qip.js";import{L as R}from"./label.2vZCl_WE.js";import{t as _}from"./translate.HrioCK44.js";import{g as W}from"./index.D8-DrHo_.js";import{t as z}from"./index.R0s2mZbJ.js";import{i as D,a as J}from"./import-events.tyarLDHL.js";import{l as K}from"./namespaces.AZAalcgs.js";import{t as A}from"./toaster.JA1rZe2a.js";import{p as M}from"./parse-with-big-int.e3oI4SEy.js";import{r as O}from"./route-for.LRddn_DS.js";function Q(l){let a=_("common.import")+"",r;return{c(){r=j(a)},l(e){r=x(e,a)},m(e,n){d(e,r,n)},p:G,d(e){e&&v(r)}}}function V(l){let a,r,e,n,s,p,c,i;return a=new R({props:{hidden:!0,for:"import-event-history-file-upload",label:_("events.import-event-history-file-upload")}}),s=new P({props:{leadingIcon:"file-upload",disabled:!l[0],$$slots:{default:[Q]},$$scope:{ctx:l}}}),s.$on("click",l[2]),{c(){E(a.$$.fragment),r=y(),e=C("input"),n=y(),E(s.$$.fragment),this.h()},l(t){w(a.$$.fragment,t),r=b(t),e=L(t,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),n=b(t),w(s.$$.fragment,t),this.h()},h(){u(e,"id","import-event-history-file-upload"),u(e,"class","import-input block rounded-md border border-slate-200 p-2"),u(e,"type","file"),u(e,"accept",".json")},m(t,o){S(a,t,o),d(t,r,o),d(t,e,o),d(t,n,o),S(s,t,o),p=!0,c||(i=N(e,"change",l[1]),c=!0)},p(t,[o]){const m={};o&1&&(m.disabled=!t[0]),o&32&&(m.$$scope={dirty:o,ctx:t}),s.$set(m)},i(t){p||(F(a.$$.fragment,t),F(s.$$.fragment,t),p=!0)},o(t){I(a.$$.fragment,t),I(s.$$.fragment,t),p=!1},d(t){t&&(v(r),v(e),v(n)),k(a,t),k(s,t),c=!1,i()}}}function X(l,a,r){let e;U(l,K,i=>r(4,e=i));let n,s=!1;return[s,async i=>{var t;const o=i.target,m=(t=o==null?void 0:o.files)===null||t===void 0?void 0:t[0],f=new FileReader;m&&(f.readAsText(m),f.onload=()=>{var $,h;try{const g=(h=($=f==null?void 0:f.result)===null||$===void 0?void 0:$.toString())!==null&&h!==void 0?h:"";n=M(g),r(0,s=!0)}catch{A.push({variant:"error",message:_("events.event-history-load-error")}),r(0,s=!1)}})},async()=>{try{const i=await z(Array.isArray(n)?n:n==null?void 0:n.events),t=W(i);D.set(i),J.set(t),r(0,s=!1);const o=O(e,"feed");q(o)}catch(i){console.error(i),A.push({variant:"error",message:_("events.event-history-import-error")})}}]}class ft extends H{constructor(a){super(),T(this,a,X,V,B,{})}}export{ft as E}; +import{s as B,a as y,e as C,h as b,b as L,j as u,k as d,m as N,g as v,c as U,t as j,f as x,v as G}from"./scheduler.AWtTlMeO.js";import{S as H,i as T,c as E,a as w,m as S,t as F,b as I,d as k}from"./index.91lpp7Ff.js";import{g as q}from"./entry.Yz1YyohR.js";import{B as P}from"./button.bjyERRn9.js";import{L as R}from"./label.2vZCl_WE.js";import{t as _}from"./translate.HrioCK44.js";import{g as W}from"./index._MTkGJor.js";import{t as z}from"./index.PDR9Tyn3.js";import{i as D,a as J}from"./import-events._LSwAHOQ.js";import{l as K}from"./namespaces.ZCqOs8RA.js";import{t as A}from"./toaster.tT6uD5UN.js";import{p as M}from"./parse-with-big-int.e3oI4SEy.js";import{r as O}from"./route-for.ezVRK9wE.js";function Q(l){let a=_("common.import")+"",r;return{c(){r=j(a)},l(e){r=x(e,a)},m(e,n){d(e,r,n)},p:G,d(e){e&&v(r)}}}function V(l){let a,r,e,n,s,p,c,i;return a=new R({props:{hidden:!0,for:"import-event-history-file-upload",label:_("events.import-event-history-file-upload")}}),s=new P({props:{leadingIcon:"file-upload",disabled:!l[0],$$slots:{default:[Q]},$$scope:{ctx:l}}}),s.$on("click",l[2]),{c(){E(a.$$.fragment),r=y(),e=C("input"),n=y(),E(s.$$.fragment),this.h()},l(t){w(a.$$.fragment,t),r=b(t),e=L(t,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),n=b(t),w(s.$$.fragment,t),this.h()},h(){u(e,"id","import-event-history-file-upload"),u(e,"class","import-input block rounded-md border border-slate-200 p-2"),u(e,"type","file"),u(e,"accept",".json")},m(t,o){S(a,t,o),d(t,r,o),d(t,e,o),d(t,n,o),S(s,t,o),p=!0,c||(i=N(e,"change",l[1]),c=!0)},p(t,[o]){const m={};o&1&&(m.disabled=!t[0]),o&32&&(m.$$scope={dirty:o,ctx:t}),s.$set(m)},i(t){p||(F(a.$$.fragment,t),F(s.$$.fragment,t),p=!0)},o(t){I(a.$$.fragment,t),I(s.$$.fragment,t),p=!1},d(t){t&&(v(r),v(e),v(n)),k(a,t),k(s,t),c=!1,i()}}}function X(l,a,r){let e;U(l,K,i=>r(4,e=i));let n,s=!1;return[s,async i=>{var t;const o=i.target,m=(t=o==null?void 0:o.files)===null||t===void 0?void 0:t[0],f=new FileReader;m&&(f.readAsText(m),f.onload=()=>{var $,h;try{const g=(h=($=f==null?void 0:f.result)===null||$===void 0?void 0:$.toString())!==null&&h!==void 0?h:"";n=M(g),r(0,s=!0)}catch{A.push({variant:"error",message:_("events.event-history-load-error")}),r(0,s=!1)}})},async()=>{try{const i=await z(Array.isArray(n)?n:n==null?void 0:n.events),t=W(i);D.set(i),J.set(t),r(0,s=!1);const o=O(e,"feed");q(o)}catch(i){console.error(i),A.push({variant:"error",message:_("events.event-history-import-error")})}}]}class ft extends H{constructor(a){super(),T(this,a,X,V,B,{})}}export{ft as E}; diff --git a/ui/assets/local/_app/immutable/chunks/event-history-timeline.k0juh-Rh.js b/ui/assets/local/_app/immutable/chunks/event-history-timeline.Gyu9Xqc5.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/event-history-timeline.k0juh-Rh.js rename to ui/assets/local/_app/immutable/chunks/event-history-timeline.Gyu9Xqc5.js index 7d4cb03a5..d6b90a891 100644 --- a/ui/assets/local/_app/immutable/chunks/event-history-timeline.k0juh-Rh.js +++ b/ui/assets/local/_app/immutable/chunks/event-history-timeline.Gyu9Xqc5.js @@ -1,4 +1,4 @@ -import{C as Ir,s as U3,e as _o,a as $d,b as wo,d as xo,g as $r,h as Id,j as So,k as zn,l as ko,c as wn,S as W3,L as V3,t as Wf,f as Vf}from"./scheduler.AWtTlMeO.js";import{S as q3,i as X3,c as Ba,a as Ga,m as za,t as yi,g as K3,b as zi,e as Z3,d as Ua}from"./index.91lpp7Ff.js";import{c as ve,a as Q3,g as J3}from"./_commonjsHelpers.4gQjN7DL.js";import{p as eT,I as uv}from"./icon.hlu3-iXK.js";import{p as tT}from"./stores.BjeHb2_D.js";import{H as rT}from"./heart-beat-indicator.fVG-MBgW.js";import{L as iT}from"./link.cs7LzqaH.js";import{L as nT}from"./loading.ZhwIBa5k.js";import{T as aT,a as ec}from"./toggle-buttons.Q4BcN_kj.js";import{g as sT,t as oT}from"./index.D8-DrHo_.js";import{C as uT}from"./get-event-categorization.6rt2m6KE.js";import{a as lT}from"./event-view.GLm4GtMe.js";import{e as cT}from"./filters.1ozdh_8f.js";import{f as ts,r as rs,t as Un,j as dT}from"./time-format.gNW0s4c3.js";import{w as fT,b as hT}from"./workflow-run.ZUOIerA5.js";import{c as pT}from"./format-camel-case.z6e2GZpK.js";import{j as vT,i as tc}from"./is-event-type._gd1DXTE.js";import{s as mT}from"./parse-with-big-int.e3oI4SEy.js";import{z as gT}from"./route-for.LRddn_DS.js";import{r as Sy,t as ky,p as Ty}from"./format-time.6T8OwT4v.js";function yT(e){Sy(1,arguments);var r=ky(e);return r.setSeconds(0,0),r}function bT(e){Sy(1,arguments);var r=ky(e);return r.setSeconds(59,999),r}var Ey={},Xu={},qf={},is={},Xf={};Object.defineProperty(Xf,"__esModule",{value:!0});Xf.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var Kf={};Object.defineProperty(Kf,"__esModule",{value:!0});Kf.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var Pd={};(function(e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var t=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(r=String.fromCodePoint)!==null&&r!==void 0?r:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function n(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=t.get(s))!==null&&o!==void 0?o:s}e.replaceCodePoint=n;function a(s){return(0,e.fromCodePoint)(n(s))}e.default=a})(Pd);(function(e){var r=ve&&ve.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var t=r(Xf);e.htmlDecodeTree=t.default;var n=r(Kf);e.xmlDecodeTree=n.default;var a=r(Pd);e.decodeCodePoint=a.default;var s=Pd;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return s.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return s.fromCodePoint}});var o;(function(w){w[w.NUM=35]="NUM",w[w.SEMI=59]="SEMI",w[w.ZERO=48]="ZERO",w[w.NINE=57]="NINE",w[w.LOWER_A=97]="LOWER_A",w[w.LOWER_F=102]="LOWER_F",w[w.LOWER_X=120]="LOWER_X",w[w.To_LOWER_BIT=32]="To_LOWER_BIT"})(o||(o={}));var u;(function(w){w[w.VALUE_LENGTH=49152]="VALUE_LENGTH",w[w.BRANCH_LENGTH=16256]="BRANCH_LENGTH",w[w.JUMP_TABLE=127]="JUMP_TABLE"})(u=e.BinTrieFlags||(e.BinTrieFlags={}));function l(w){return function(k,E){for(var O="",D=0,M=0;(M=k.indexOf("&",M))>=0;){if(O+=k.slice(D,M),D=M,M+=1,k.charCodeAt(M)===o.NUM){var P=M+1,R=10,C=k.charCodeAt(P);(C|o.To_LOWER_BIT)===o.LOWER_X&&(R=16,M+=1,P+=1);do C=k.charCodeAt(++M);while(C>=o.ZERO&&C<=o.NINE||R===16&&(C|o.To_LOWER_BIT)>=o.LOWER_A&&(C|o.To_LOWER_BIT)<=o.LOWER_F);if(P!==M){var G=k.substring(P,M),z=parseInt(G,R);if(k.charCodeAt(M)===o.SEMI)M+=1;else if(E)continue;O+=(0,a.default)(z),D=M}continue}for(var N=0,L=1,W=0,re=w[W];M>14)-1;if(j===0)break;W+=j}}if(N!==0){var j=(w[N]&u.VALUE_LENGTH)>>14;O+=j===1?String.fromCharCode(w[N]&~u.VALUE_LENGTH):j===2?String.fromCharCode(w[N+1]):String.fromCharCode(w[N+1],w[N+2]),D=M-L+1}}return O+k.slice(D)}}function c(w,_,k,E){var O=(_&u.BRANCH_LENGTH)>>7,D=_&u.JUMP_TABLE;if(O===0)return D!==0&&E===D?k:-1;if(D){var M=E-D;return M<0||M>=O?-1:w[k+M]-1}for(var P=k,R=P+O-1;P<=R;){var C=P+R>>>1,G=w[C];if(GE)R=C-1;else return w[C+O]}return-1}e.determineBranch=c;var f=l(t.default),m=l(n.default);function h(w){return f(w,!1)}e.decodeHTML=h;function v(w){return f(w,!0)}e.decodeHTMLStrict=v;function y(w){return m(w,!0)}e.decodeXML=y})(is);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var r=is,t;(function(h){h[h.Tab=9]="Tab",h[h.NewLine=10]="NewLine",h[h.FormFeed=12]="FormFeed",h[h.CarriageReturn=13]="CarriageReturn",h[h.Space=32]="Space",h[h.ExclamationMark=33]="ExclamationMark",h[h.Num=35]="Num",h[h.Amp=38]="Amp",h[h.SingleQuote=39]="SingleQuote",h[h.DoubleQuote=34]="DoubleQuote",h[h.Dash=45]="Dash",h[h.Slash=47]="Slash",h[h.Zero=48]="Zero",h[h.Nine=57]="Nine",h[h.Semi=59]="Semi",h[h.Lt=60]="Lt",h[h.Eq=61]="Eq",h[h.Gt=62]="Gt",h[h.Questionmark=63]="Questionmark",h[h.UpperA=65]="UpperA",h[h.LowerA=97]="LowerA",h[h.UpperF=70]="UpperF",h[h.LowerF=102]="LowerF",h[h.UpperZ=90]="UpperZ",h[h.LowerZ=122]="LowerZ",h[h.LowerX=120]="LowerX",h[h.OpeningSquareBracket=91]="OpeningSquareBracket"})(t||(t={}));var n;(function(h){h[h.Text=1]="Text",h[h.BeforeTagName=2]="BeforeTagName",h[h.InTagName=3]="InTagName",h[h.InSelfClosingTag=4]="InSelfClosingTag",h[h.BeforeClosingTagName=5]="BeforeClosingTagName",h[h.InClosingTagName=6]="InClosingTagName",h[h.AfterClosingTagName=7]="AfterClosingTagName",h[h.BeforeAttributeName=8]="BeforeAttributeName",h[h.InAttributeName=9]="InAttributeName",h[h.AfterAttributeName=10]="AfterAttributeName",h[h.BeforeAttributeValue=11]="BeforeAttributeValue",h[h.InAttributeValueDq=12]="InAttributeValueDq",h[h.InAttributeValueSq=13]="InAttributeValueSq",h[h.InAttributeValueNq=14]="InAttributeValueNq",h[h.BeforeDeclaration=15]="BeforeDeclaration",h[h.InDeclaration=16]="InDeclaration",h[h.InProcessingInstruction=17]="InProcessingInstruction",h[h.BeforeComment=18]="BeforeComment",h[h.CDATASequence=19]="CDATASequence",h[h.InSpecialComment=20]="InSpecialComment",h[h.InCommentLike=21]="InCommentLike",h[h.BeforeSpecialS=22]="BeforeSpecialS",h[h.SpecialStartSequence=23]="SpecialStartSequence",h[h.InSpecialTag=24]="InSpecialTag",h[h.BeforeEntity=25]="BeforeEntity",h[h.BeforeNumericEntity=26]="BeforeNumericEntity",h[h.InNamedEntity=27]="InNamedEntity",h[h.InNumericEntity=28]="InNumericEntity",h[h.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(h){return h===t.Space||h===t.NewLine||h===t.Tab||h===t.FormFeed||h===t.CarriageReturn}function s(h){return h===t.Slash||h===t.Gt||a(h)}function o(h){return h>=t.Zero&&h<=t.Nine}function u(h){return h>=t.LowerA&&h<=t.LowerZ||h>=t.UpperA&&h<=t.UpperZ}function l(h){return h>=t.UpperA&&h<=t.UpperF||h>=t.LowerA&&h<=t.LowerF}var c;(function(h){h[h.NoValue=0]="NoValue",h[h.Unquoted=1]="Unquoted",h[h.Single=2]="Single",h[h.Double=3]="Double"})(c=e.QuoteType||(e.QuoteType={}));var f={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},m=function(){function h(v,y){var w=v.xmlMode,_=w===void 0?!1:w,k=v.decodeEntities,E=k===void 0?!0:k;this.cbs=y,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=_,this.decodeEntities=E,this.entityTrie=_?r.xmlDecodeTree:r.htmlDecodeTree}return h.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},h.prototype.write=function(v){this.offset+=this.buffer.length,this.buffer=v,this.parse()},h.prototype.end=function(){this.running&&this.finish()},h.prototype.pause=function(){this.running=!1},h.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&v===t.Amp&&(this.state=n.BeforeEntity)},h.prototype.stateSpecialStartSequence=function(v){var y=this.sequenceIndex===this.currentSequence.length,w=y?s(v):(v|32)===this.currentSequence[this.sequenceIndex];if(!w)this.isSpecial=!1;else if(!y){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(v)},h.prototype.stateInSpecialTag=function(v){if(this.sequenceIndex===this.currentSequence.length){if(v===t.Gt||a(v)){var y=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&v!==t.Semi)this.trieIndex+=w;else{var _=this.index-this.entityExcess+1;_>this.sectionStart&&this.emitPartial(this.sectionStart,_),this.entityResult=this.trieIndex,this.trieIndex+=w,this.entityExcess=0,this.sectionStart=this.index+1,w===0&&this.emitNamedEntity()}}},h.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var v=(this.entityTrie[this.entityResult]&r.BinTrieFlags.VALUE_LENGTH)>>14;switch(v){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~r.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},h.prototype.stateBeforeNumericEntity=function(v){(v|32)===t.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(v))},h.prototype.emitNumericEntity=function(v){var y=this.index-this.entityExcess-1,w=y+2+ +(this.state===n.InHexEntity);w!==this.index&&(y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.sectionStart=this.index+Number(v),this.emitCodePoint((0,r.replaceCodePoint)(this.entityResult))),this.state=this.baseState},h.prototype.stateInNumericEntity=function(v){v===t.Semi?this.emitNumericEntity(!0):o(v)?(this.entityResult=this.entityResult*10+(v-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.stateInHexEntity=function(v){v===t.Semi?this.emitNumericEntity(!0):o(v)?(this.entityResult=this.entityResult*16+(v-t.Zero),this.entityExcess++):l(v)?(this.entityResult=this.entityResult*16+((v|32)-t.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},h.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},h.prototype.shouldContinue=function(){return this.index0&&o.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(t=this.cbs).onclosetag)===null||n===void 0||n.call(t,u,!0)}this.isVoidElement(r)||(this.stack.push(r),hv.has(r)?this.foreignContext.push(!0):pv.has(r)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,r),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(r){var t,n;this.startIndex=this.openTagStart,this.attribs&&((n=(t=this.cbs).onopentag)===null||n===void 0||n.call(t,this.tagname,this.attribs,r),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(r){this.endIndex=r,this.endOpenTag(!1),this.startIndex=r+1},e.prototype.onclosetag=function(r,t){var n,a,s,o,u,l;this.endIndex=t;var c=this.getSlice(r,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(hv.has(c)||pv.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(l=(u=this.cbs).onclosetag)===null||l===void 0||l.call(u,"br",!1));else{var f=this.stack.lastIndexOf(c);if(f!==-1)if(this.cbs.onclosetag)for(var m=this.stack.length-f;m--;)this.cbs.onclosetag(this.stack.pop(),m!==0);else this.stack.length=f;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(r){this.endIndex=r,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=r+1):this.onopentagend(r)},e.prototype.closeCurrentTag=function(r){var t,n,a=this.tagname;this.endOpenTag(r),this.stack[this.stack.length-1]===a&&((n=(t=this.cbs).onclosetag)===null||n===void 0||n.call(t,a,!r),this.stack.pop())},e.prototype.onattribname=function(r,t){this.startIndex=r;var n=this.getSlice(r,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(r,t){this.attribvalue+=this.getSlice(r,t)},e.prototype.onattribentity=function(r){this.attribvalue+=(0,lv.fromCodePoint)(r)},e.prototype.onattribend=function(r,t){var n,a;this.endIndex=t,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,r===To.QuoteType.Double?'"':r===To.QuoteType.Single?"'":r===To.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(r){var t=r.search(TT),n=t<0?r:r.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(r,t){this.endIndex=t;var n=this.getSlice(r,t);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(r,t){this.endIndex=t;var n=this.getSlice(r,t);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(r,t,n){var a,s,o,u;this.endIndex=t,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(r,t-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=t+1},e.prototype.oncdata=function(r,t,n){var a,s,o,u,l,c,f,m,h,v;this.endIndex=t;var y=this.getSlice(r,t-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,y),(c=(l=this.cbs).oncdataend)===null||c===void 0||c.call(l)):((m=(f=this.cbs).oncomment)===null||m===void 0||m.call(f,"[CDATA[".concat(y,"]]")),(v=(h=this.cbs).oncommentend)===null||v===void 0||v.call(h)),this.startIndex=t+1},e.prototype.onend=function(){var r,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(t=(r=this.cbs).onend)===null||t===void 0||t.call(r)},e.prototype.reset=function(){var r,t,n,a;(t=(r=this.cbs).onreset)===null||t===void 0||t.call(r),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(r){this.reset(),this.end(r)},e.prototype.getSlice=function(r,t){for(;r-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(r-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(r){var t,n;if(this.ended){(n=(t=this.cbs).onerror)===null||n===void 0||n.call(t,new Error(".write() after done!"));return}this.buffers.push(r),this.tokenizer.running&&(this.tokenizer.write(r),this.writeIndex++)},e.prototype.end=function(r){var t,n;if(this.ended){(n=(t=this.cbs).onerror)===null||n===void 0||n.call(t,Error(".end() after done!"));return}r&&this.write(r),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),r}(Zf);be.NodeWithChildren=Zu;var $y=function(e){Ei(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bt.ElementType.CDATA,t}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),r}(Zu);be.CDATA=$y;var Iy=function(e){Ei(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bt.ElementType.Root,t}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),r}(Zu);be.Document=Iy;var Py=function(e){Ei(r,e);function r(t,n,a,s){a===void 0&&(a=[]),s===void 0&&(s=t==="script"?Bt.ElementType.Script:t==="style"?Bt.ElementType.Style:Bt.ElementType.Tag);var o=e.call(this,a)||this;return o.name=t,o.attribs=n,o.type=s,o}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(n){var a,s;return{name:n,value:t.attribs[n],namespace:(a=t["x-attribsNamespace"])===null||a===void 0?void 0:a[n],prefix:(s=t["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),r}(Zu);be.Element=Py;function My(e){return(0,Bt.isTag)(e)}be.isTag=My;function Ay(e){return e.type===Bt.ElementType.CDATA}be.isCDATA=Ay;function Ny(e){return e.type===Bt.ElementType.Text}be.isText=Ny;function Ry(e){return e.type===Bt.ElementType.Comment}be.isComment=Ry;function Ly(e){return e.type===Bt.ElementType.Directive}be.isDirective=Ly;function Fy(e){return e.type===Bt.ElementType.Root}be.isDocument=Fy;function OT(e){return Object.prototype.hasOwnProperty.call(e,"children")}be.hasChildren=OT;function Qf(e,r){r===void 0&&(r=!1);var t;if(Ny(e))t=new Oy(e.data);else if(Ry(e))t=new Dy(e.data);else if(My(e)){var n=r?rc(e.children):[],a=new Py(e.name,Wa({},e.attribs),n);n.forEach(function(l){return l.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=Wa({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=Wa({},e["x-attribsPrefix"])),t=a}else if(Ay(e)){var n=r?rc(e.children):[],s=new $y(n);n.forEach(function(c){return c.parent=s}),t=s}else if(Fy(e)){var n=r?rc(e.children):[],o=new Iy(n);n.forEach(function(c){return c.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),t=o}else if(Ly(e)){var u=new Cy(e.name,e.data);e["x-name"]!=null&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),t=u}else throw new Error("Not implemented yet: ".concat(e.type));return t.startIndex=e.startIndex,t.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(t.sourceCodeLocation=e.sourceCodeLocation),t}be.cloneNode=Qf;function rc(e){for(var r=e.map(function(n){return Qf(n,!0)}),t=1;t$\x80-\uFFFF]/g;var r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function t(a){for(var s="",o=0,u;(u=e.xmlReplacer.exec(a))!==null;){var l=u.index,c=a.charCodeAt(l),f=r.get(c);f!==void 0?(s+=a.substring(o,l)+f,o=l+1):(s+="".concat(a.substring(o,l),"&#x").concat((0,e.getCodePoint)(a,l).toString(16),";"),o=e.xmlReplacer.lastIndex+=+((c&64512)===55296))}return s+a.substr(o)}e.encodeXML=t,e.escape=t;function n(a,s){return function(u){for(var l,c=0,f="";l=a.exec(u);)c!==l.index&&(f+=u.substring(c,l.index)),f+=s.get(l[0].charCodeAt(0)),c=l.index+1;return f+u.substring(c)}}e.escapeUTF8=n(/[&<>'"]/g,r),e.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(gu);var DT=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.encodeNonAsciiHTML=Zi.encodeHTML=void 0;var CT=DT(Jf),Hy=gu,$T=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function IT(e){return Yy($T,e)}Zi.encodeHTML=IT;function PT(e){return Yy(Hy.xmlReplacer,e)}Zi.encodeNonAsciiHTML=PT;function Yy(e,r){for(var t="",n=0,a;(a=e.exec(r))!==null;){var s=a.index;t+=r.substring(n,s);var o=r.charCodeAt(s),u=CT.default.get(o);if(typeof u=="object"){if(s+10&&(n+=Qu(e.children,r)),(r.xmlMode||!vv.has(e.name))&&(n+=""))),n}function GT(e){return"<".concat(e.data,">")}function zT(e,r){var t,n=e.data||"";return((t=r.encodeEntities)!==null&&t!==void 0?t:r.decodeEntities)!==!1&&!(!r.xmlMode&&e.parent&&RT.has(e.parent.name))&&(n=r.xmlMode||r.encodeEntities!=="utf8"?(0,yu.encodeXML)(n):(0,yu.escapeText)(n)),n}function UT(e){return"")}function WT(e){return"")}var VT=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tr,"__esModule",{value:!0});tr.innerText=tr.textContent=tr.getText=tr.getInnerHTML=tr.getOuterHTML=void 0;var Nr=Ti,qT=VT(xs),XT=sa;function Gy(e,r){return(0,qT.default)(e,r)}tr.getOuterHTML=Gy;function KT(e,r){return(0,Nr.hasChildren)(e)?e.children.map(function(t){return Gy(t,r)}).join(""):""}tr.getInnerHTML=KT;function ou(e){return Array.isArray(e)?e.map(ou).join(""):(0,Nr.isTag)(e)?e.name==="br"?` +import{C as Ir,s as U3,e as _o,a as $d,b as wo,d as xo,g as $r,h as Id,j as So,k as zn,l as ko,c as wn,S as W3,L as V3,t as Wf,f as Vf}from"./scheduler.AWtTlMeO.js";import{S as q3,i as X3,c as Ba,a as Ga,m as za,t as yi,g as K3,b as zi,e as Z3,d as Ua}from"./index.91lpp7Ff.js";import{c as ve,a as Q3,g as J3}from"./_commonjsHelpers.4gQjN7DL.js";import{p as eT,I as uv}from"./icon.hlu3-iXK.js";import{p as tT}from"./stores.meYYndLY.js";import{H as rT}from"./heart-beat-indicator.fVG-MBgW.js";import{L as iT}from"./link.DdkOc0EY.js";import{L as nT}from"./loading.ZhwIBa5k.js";import{T as aT,a as ec}from"./toggle-buttons.G5X0hB9M.js";import{g as sT,t as oT}from"./index._MTkGJor.js";import{C as uT}from"./get-event-categorization.6rt2m6KE.js";import{a as lT}from"./event-view.qxFByNIO.js";import{e as cT}from"./filters.cUjieRhB.js";import{f as ts,r as rs,t as Un,j as dT}from"./time-format.Z3EDfPl8.js";import{w as fT,b as hT}from"./workflow-run.x_o75HKu.js";import{c as pT}from"./format-camel-case.z6e2GZpK.js";import{j as vT,i as tc}from"./is-event-type._gd1DXTE.js";import{s as mT}from"./parse-with-big-int.e3oI4SEy.js";import{z as gT}from"./route-for.ezVRK9wE.js";import{r as Sy,t as ky,p as Ty}from"./format-time.6T8OwT4v.js";function yT(e){Sy(1,arguments);var r=ky(e);return r.setSeconds(0,0),r}function bT(e){Sy(1,arguments);var r=ky(e);return r.setSeconds(59,999),r}var Ey={},Xu={},qf={},is={},Xf={};Object.defineProperty(Xf,"__esModule",{value:!0});Xf.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var Kf={};Object.defineProperty(Kf,"__esModule",{value:!0});Kf.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var Pd={};(function(e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var t=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(r=String.fromCodePoint)!==null&&r!==void 0?r:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function n(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=t.get(s))!==null&&o!==void 0?o:s}e.replaceCodePoint=n;function a(s){return(0,e.fromCodePoint)(n(s))}e.default=a})(Pd);(function(e){var r=ve&&ve.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var t=r(Xf);e.htmlDecodeTree=t.default;var n=r(Kf);e.xmlDecodeTree=n.default;var a=r(Pd);e.decodeCodePoint=a.default;var s=Pd;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return s.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return s.fromCodePoint}});var o;(function(w){w[w.NUM=35]="NUM",w[w.SEMI=59]="SEMI",w[w.ZERO=48]="ZERO",w[w.NINE=57]="NINE",w[w.LOWER_A=97]="LOWER_A",w[w.LOWER_F=102]="LOWER_F",w[w.LOWER_X=120]="LOWER_X",w[w.To_LOWER_BIT=32]="To_LOWER_BIT"})(o||(o={}));var u;(function(w){w[w.VALUE_LENGTH=49152]="VALUE_LENGTH",w[w.BRANCH_LENGTH=16256]="BRANCH_LENGTH",w[w.JUMP_TABLE=127]="JUMP_TABLE"})(u=e.BinTrieFlags||(e.BinTrieFlags={}));function l(w){return function(k,E){for(var O="",D=0,M=0;(M=k.indexOf("&",M))>=0;){if(O+=k.slice(D,M),D=M,M+=1,k.charCodeAt(M)===o.NUM){var P=M+1,R=10,C=k.charCodeAt(P);(C|o.To_LOWER_BIT)===o.LOWER_X&&(R=16,M+=1,P+=1);do C=k.charCodeAt(++M);while(C>=o.ZERO&&C<=o.NINE||R===16&&(C|o.To_LOWER_BIT)>=o.LOWER_A&&(C|o.To_LOWER_BIT)<=o.LOWER_F);if(P!==M){var G=k.substring(P,M),z=parseInt(G,R);if(k.charCodeAt(M)===o.SEMI)M+=1;else if(E)continue;O+=(0,a.default)(z),D=M}continue}for(var N=0,L=1,W=0,re=w[W];M>14)-1;if(j===0)break;W+=j}}if(N!==0){var j=(w[N]&u.VALUE_LENGTH)>>14;O+=j===1?String.fromCharCode(w[N]&~u.VALUE_LENGTH):j===2?String.fromCharCode(w[N+1]):String.fromCharCode(w[N+1],w[N+2]),D=M-L+1}}return O+k.slice(D)}}function c(w,_,k,E){var O=(_&u.BRANCH_LENGTH)>>7,D=_&u.JUMP_TABLE;if(O===0)return D!==0&&E===D?k:-1;if(D){var M=E-D;return M<0||M>=O?-1:w[k+M]-1}for(var P=k,R=P+O-1;P<=R;){var C=P+R>>>1,G=w[C];if(GE)R=C-1;else return w[C+O]}return-1}e.determineBranch=c;var f=l(t.default),m=l(n.default);function h(w){return f(w,!1)}e.decodeHTML=h;function v(w){return f(w,!0)}e.decodeHTMLStrict=v;function y(w){return m(w,!0)}e.decodeXML=y})(is);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var r=is,t;(function(h){h[h.Tab=9]="Tab",h[h.NewLine=10]="NewLine",h[h.FormFeed=12]="FormFeed",h[h.CarriageReturn=13]="CarriageReturn",h[h.Space=32]="Space",h[h.ExclamationMark=33]="ExclamationMark",h[h.Num=35]="Num",h[h.Amp=38]="Amp",h[h.SingleQuote=39]="SingleQuote",h[h.DoubleQuote=34]="DoubleQuote",h[h.Dash=45]="Dash",h[h.Slash=47]="Slash",h[h.Zero=48]="Zero",h[h.Nine=57]="Nine",h[h.Semi=59]="Semi",h[h.Lt=60]="Lt",h[h.Eq=61]="Eq",h[h.Gt=62]="Gt",h[h.Questionmark=63]="Questionmark",h[h.UpperA=65]="UpperA",h[h.LowerA=97]="LowerA",h[h.UpperF=70]="UpperF",h[h.LowerF=102]="LowerF",h[h.UpperZ=90]="UpperZ",h[h.LowerZ=122]="LowerZ",h[h.LowerX=120]="LowerX",h[h.OpeningSquareBracket=91]="OpeningSquareBracket"})(t||(t={}));var n;(function(h){h[h.Text=1]="Text",h[h.BeforeTagName=2]="BeforeTagName",h[h.InTagName=3]="InTagName",h[h.InSelfClosingTag=4]="InSelfClosingTag",h[h.BeforeClosingTagName=5]="BeforeClosingTagName",h[h.InClosingTagName=6]="InClosingTagName",h[h.AfterClosingTagName=7]="AfterClosingTagName",h[h.BeforeAttributeName=8]="BeforeAttributeName",h[h.InAttributeName=9]="InAttributeName",h[h.AfterAttributeName=10]="AfterAttributeName",h[h.BeforeAttributeValue=11]="BeforeAttributeValue",h[h.InAttributeValueDq=12]="InAttributeValueDq",h[h.InAttributeValueSq=13]="InAttributeValueSq",h[h.InAttributeValueNq=14]="InAttributeValueNq",h[h.BeforeDeclaration=15]="BeforeDeclaration",h[h.InDeclaration=16]="InDeclaration",h[h.InProcessingInstruction=17]="InProcessingInstruction",h[h.BeforeComment=18]="BeforeComment",h[h.CDATASequence=19]="CDATASequence",h[h.InSpecialComment=20]="InSpecialComment",h[h.InCommentLike=21]="InCommentLike",h[h.BeforeSpecialS=22]="BeforeSpecialS",h[h.SpecialStartSequence=23]="SpecialStartSequence",h[h.InSpecialTag=24]="InSpecialTag",h[h.BeforeEntity=25]="BeforeEntity",h[h.BeforeNumericEntity=26]="BeforeNumericEntity",h[h.InNamedEntity=27]="InNamedEntity",h[h.InNumericEntity=28]="InNumericEntity",h[h.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(h){return h===t.Space||h===t.NewLine||h===t.Tab||h===t.FormFeed||h===t.CarriageReturn}function s(h){return h===t.Slash||h===t.Gt||a(h)}function o(h){return h>=t.Zero&&h<=t.Nine}function u(h){return h>=t.LowerA&&h<=t.LowerZ||h>=t.UpperA&&h<=t.UpperZ}function l(h){return h>=t.UpperA&&h<=t.UpperF||h>=t.LowerA&&h<=t.LowerF}var c;(function(h){h[h.NoValue=0]="NoValue",h[h.Unquoted=1]="Unquoted",h[h.Single=2]="Single",h[h.Double=3]="Double"})(c=e.QuoteType||(e.QuoteType={}));var f={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},m=function(){function h(v,y){var w=v.xmlMode,_=w===void 0?!1:w,k=v.decodeEntities,E=k===void 0?!0:k;this.cbs=y,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=_,this.decodeEntities=E,this.entityTrie=_?r.xmlDecodeTree:r.htmlDecodeTree}return h.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},h.prototype.write=function(v){this.offset+=this.buffer.length,this.buffer=v,this.parse()},h.prototype.end=function(){this.running&&this.finish()},h.prototype.pause=function(){this.running=!1},h.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&v===t.Amp&&(this.state=n.BeforeEntity)},h.prototype.stateSpecialStartSequence=function(v){var y=this.sequenceIndex===this.currentSequence.length,w=y?s(v):(v|32)===this.currentSequence[this.sequenceIndex];if(!w)this.isSpecial=!1;else if(!y){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(v)},h.prototype.stateInSpecialTag=function(v){if(this.sequenceIndex===this.currentSequence.length){if(v===t.Gt||a(v)){var y=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&v!==t.Semi)this.trieIndex+=w;else{var _=this.index-this.entityExcess+1;_>this.sectionStart&&this.emitPartial(this.sectionStart,_),this.entityResult=this.trieIndex,this.trieIndex+=w,this.entityExcess=0,this.sectionStart=this.index+1,w===0&&this.emitNamedEntity()}}},h.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var v=(this.entityTrie[this.entityResult]&r.BinTrieFlags.VALUE_LENGTH)>>14;switch(v){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~r.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},h.prototype.stateBeforeNumericEntity=function(v){(v|32)===t.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(v))},h.prototype.emitNumericEntity=function(v){var y=this.index-this.entityExcess-1,w=y+2+ +(this.state===n.InHexEntity);w!==this.index&&(y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.sectionStart=this.index+Number(v),this.emitCodePoint((0,r.replaceCodePoint)(this.entityResult))),this.state=this.baseState},h.prototype.stateInNumericEntity=function(v){v===t.Semi?this.emitNumericEntity(!0):o(v)?(this.entityResult=this.entityResult*10+(v-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.stateInHexEntity=function(v){v===t.Semi?this.emitNumericEntity(!0):o(v)?(this.entityResult=this.entityResult*16+(v-t.Zero),this.entityExcess++):l(v)?(this.entityResult=this.entityResult*16+((v|32)-t.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},h.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},h.prototype.shouldContinue=function(){return this.index0&&o.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(t=this.cbs).onclosetag)===null||n===void 0||n.call(t,u,!0)}this.isVoidElement(r)||(this.stack.push(r),hv.has(r)?this.foreignContext.push(!0):pv.has(r)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,r),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(r){var t,n;this.startIndex=this.openTagStart,this.attribs&&((n=(t=this.cbs).onopentag)===null||n===void 0||n.call(t,this.tagname,this.attribs,r),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(r){this.endIndex=r,this.endOpenTag(!1),this.startIndex=r+1},e.prototype.onclosetag=function(r,t){var n,a,s,o,u,l;this.endIndex=t;var c=this.getSlice(r,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(hv.has(c)||pv.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(l=(u=this.cbs).onclosetag)===null||l===void 0||l.call(u,"br",!1));else{var f=this.stack.lastIndexOf(c);if(f!==-1)if(this.cbs.onclosetag)for(var m=this.stack.length-f;m--;)this.cbs.onclosetag(this.stack.pop(),m!==0);else this.stack.length=f;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(r){this.endIndex=r,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=r+1):this.onopentagend(r)},e.prototype.closeCurrentTag=function(r){var t,n,a=this.tagname;this.endOpenTag(r),this.stack[this.stack.length-1]===a&&((n=(t=this.cbs).onclosetag)===null||n===void 0||n.call(t,a,!r),this.stack.pop())},e.prototype.onattribname=function(r,t){this.startIndex=r;var n=this.getSlice(r,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(r,t){this.attribvalue+=this.getSlice(r,t)},e.prototype.onattribentity=function(r){this.attribvalue+=(0,lv.fromCodePoint)(r)},e.prototype.onattribend=function(r,t){var n,a;this.endIndex=t,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,r===To.QuoteType.Double?'"':r===To.QuoteType.Single?"'":r===To.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(r){var t=r.search(TT),n=t<0?r:r.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(r,t){this.endIndex=t;var n=this.getSlice(r,t);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(r,t){this.endIndex=t;var n=this.getSlice(r,t);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(r,t,n){var a,s,o,u;this.endIndex=t,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(r,t-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=t+1},e.prototype.oncdata=function(r,t,n){var a,s,o,u,l,c,f,m,h,v;this.endIndex=t;var y=this.getSlice(r,t-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,y),(c=(l=this.cbs).oncdataend)===null||c===void 0||c.call(l)):((m=(f=this.cbs).oncomment)===null||m===void 0||m.call(f,"[CDATA[".concat(y,"]]")),(v=(h=this.cbs).oncommentend)===null||v===void 0||v.call(h)),this.startIndex=t+1},e.prototype.onend=function(){var r,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(t=(r=this.cbs).onend)===null||t===void 0||t.call(r)},e.prototype.reset=function(){var r,t,n,a;(t=(r=this.cbs).onreset)===null||t===void 0||t.call(r),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(r){this.reset(),this.end(r)},e.prototype.getSlice=function(r,t){for(;r-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(r-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(r){var t,n;if(this.ended){(n=(t=this.cbs).onerror)===null||n===void 0||n.call(t,new Error(".write() after done!"));return}this.buffers.push(r),this.tokenizer.running&&(this.tokenizer.write(r),this.writeIndex++)},e.prototype.end=function(r){var t,n;if(this.ended){(n=(t=this.cbs).onerror)===null||n===void 0||n.call(t,Error(".end() after done!"));return}r&&this.write(r),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),r}(Zf);be.NodeWithChildren=Zu;var $y=function(e){Ei(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bt.ElementType.CDATA,t}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),r}(Zu);be.CDATA=$y;var Iy=function(e){Ei(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Bt.ElementType.Root,t}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),r}(Zu);be.Document=Iy;var Py=function(e){Ei(r,e);function r(t,n,a,s){a===void 0&&(a=[]),s===void 0&&(s=t==="script"?Bt.ElementType.Script:t==="style"?Bt.ElementType.Style:Bt.ElementType.Tag);var o=e.call(this,a)||this;return o.name=t,o.attribs=n,o.type=s,o}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(n){var a,s;return{name:n,value:t.attribs[n],namespace:(a=t["x-attribsNamespace"])===null||a===void 0?void 0:a[n],prefix:(s=t["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),r}(Zu);be.Element=Py;function My(e){return(0,Bt.isTag)(e)}be.isTag=My;function Ay(e){return e.type===Bt.ElementType.CDATA}be.isCDATA=Ay;function Ny(e){return e.type===Bt.ElementType.Text}be.isText=Ny;function Ry(e){return e.type===Bt.ElementType.Comment}be.isComment=Ry;function Ly(e){return e.type===Bt.ElementType.Directive}be.isDirective=Ly;function Fy(e){return e.type===Bt.ElementType.Root}be.isDocument=Fy;function OT(e){return Object.prototype.hasOwnProperty.call(e,"children")}be.hasChildren=OT;function Qf(e,r){r===void 0&&(r=!1);var t;if(Ny(e))t=new Oy(e.data);else if(Ry(e))t=new Dy(e.data);else if(My(e)){var n=r?rc(e.children):[],a=new Py(e.name,Wa({},e.attribs),n);n.forEach(function(l){return l.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=Wa({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=Wa({},e["x-attribsPrefix"])),t=a}else if(Ay(e)){var n=r?rc(e.children):[],s=new $y(n);n.forEach(function(c){return c.parent=s}),t=s}else if(Fy(e)){var n=r?rc(e.children):[],o=new Iy(n);n.forEach(function(c){return c.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),t=o}else if(Ly(e)){var u=new Cy(e.name,e.data);e["x-name"]!=null&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),t=u}else throw new Error("Not implemented yet: ".concat(e.type));return t.startIndex=e.startIndex,t.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(t.sourceCodeLocation=e.sourceCodeLocation),t}be.cloneNode=Qf;function rc(e){for(var r=e.map(function(n){return Qf(n,!0)}),t=1;t$\x80-\uFFFF]/g;var r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function t(a){for(var s="",o=0,u;(u=e.xmlReplacer.exec(a))!==null;){var l=u.index,c=a.charCodeAt(l),f=r.get(c);f!==void 0?(s+=a.substring(o,l)+f,o=l+1):(s+="".concat(a.substring(o,l),"&#x").concat((0,e.getCodePoint)(a,l).toString(16),";"),o=e.xmlReplacer.lastIndex+=+((c&64512)===55296))}return s+a.substr(o)}e.encodeXML=t,e.escape=t;function n(a,s){return function(u){for(var l,c=0,f="";l=a.exec(u);)c!==l.index&&(f+=u.substring(c,l.index)),f+=s.get(l[0].charCodeAt(0)),c=l.index+1;return f+u.substring(c)}}e.escapeUTF8=n(/[&<>'"]/g,r),e.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(gu);var DT=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.encodeNonAsciiHTML=Zi.encodeHTML=void 0;var CT=DT(Jf),Hy=gu,$T=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function IT(e){return Yy($T,e)}Zi.encodeHTML=IT;function PT(e){return Yy(Hy.xmlReplacer,e)}Zi.encodeNonAsciiHTML=PT;function Yy(e,r){for(var t="",n=0,a;(a=e.exec(r))!==null;){var s=a.index;t+=r.substring(n,s);var o=r.charCodeAt(s),u=CT.default.get(o);if(typeof u=="object"){if(s+10&&(n+=Qu(e.children,r)),(r.xmlMode||!vv.has(e.name))&&(n+=""))),n}function GT(e){return"<".concat(e.data,">")}function zT(e,r){var t,n=e.data||"";return((t=r.encodeEntities)!==null&&t!==void 0?t:r.decodeEntities)!==!1&&!(!r.xmlMode&&e.parent&&RT.has(e.parent.name))&&(n=r.xmlMode||r.encodeEntities!=="utf8"?(0,yu.encodeXML)(n):(0,yu.escapeText)(n)),n}function UT(e){return"")}function WT(e){return"")}var VT=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tr,"__esModule",{value:!0});tr.innerText=tr.textContent=tr.getText=tr.getInnerHTML=tr.getOuterHTML=void 0;var Nr=Ti,qT=VT(xs),XT=sa;function Gy(e,r){return(0,qT.default)(e,r)}tr.getOuterHTML=Gy;function KT(e,r){return(0,Nr.hasChildren)(e)?e.children.map(function(t){return Gy(t,r)}).join(""):""}tr.getInnerHTML=KT;function ou(e){return Array.isArray(e)?e.map(ou).join(""):(0,Nr.isTag)(e)?e.name==="br"?` `:ou(e.children):(0,Nr.isCDATA)(e)?ou(e.children):(0,Nr.isText)(e)?e.data:""}tr.getText=ou;function Ad(e){return Array.isArray(e)?e.map(Ad).join(""):(0,Nr.hasChildren)(e)&&!(0,Nr.isComment)(e)?Ad(e.children):(0,Nr.isText)(e)?e.data:""}tr.textContent=Ad;function Nd(e){return Array.isArray(e)?e.map(Nd).join(""):(0,Nr.hasChildren)(e)&&(e.type===XT.ElementType.Tag||(0,Nr.isCDATA)(e))?Nd(e.children):(0,Nr.isText)(e)?e.data:""}tr.innerText=Nd;var ct={};Object.defineProperty(ct,"__esModule",{value:!0});ct.prevElementSibling=ct.nextElementSibling=ct.getName=ct.hasAttrib=ct.getAttributeValue=ct.getSiblings=ct.getParent=ct.getChildren=void 0;var eh=Ti;function zy(e){return(0,eh.hasChildren)(e)?e.children:[]}ct.getChildren=zy;function Uy(e){return e.parent||null}ct.getParent=Uy;function ZT(e){var r,t,n=Uy(e);if(n!=null)return zy(n);for(var a=[e],s=e.prev,o=e.next;s!=null;)a.unshift(s),r=s,s=r.prev;for(;o!=null;)a.push(o),t=o,o=t.next;return a}ct.getSiblings=ZT;function QT(e,r){var t;return(t=e.attribs)===null||t===void 0?void 0:t[r]}ct.getAttributeValue=QT;function JT(e,r){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,r)&&e.attribs[r]!=null}ct.hasAttrib=JT;function e6(e){return e.name}ct.getName=e6;function t6(e){for(var r,t=e.next;t!==null&&!(0,eh.isTag)(t);)r=t,t=r.next;return t}ct.nextElementSibling=t6;function r6(e){for(var r,t=e.prev;t!==null&&!(0,eh.isTag)(t);)r=t,t=r.prev;return t}ct.prevElementSibling=r6;var jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.prepend=jt.prependChild=jt.append=jt.appendChild=jt.replaceElement=jt.removeElement=void 0;function Ss(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var r=e.parent.children;r.splice(r.lastIndexOf(e),1)}}jt.removeElement=Ss;function i6(e,r){var t=r.prev=e.prev;t&&(t.next=r);var n=r.next=e.next;n&&(n.prev=r);var a=r.parent=e.parent;if(a){var s=a.children;s[s.lastIndexOf(e)]=r,e.parent=null}}jt.replaceElement=i6;function n6(e,r){if(Ss(r),r.next=null,r.parent=e,e.children.push(r)>1){var t=e.children[e.children.length-2];t.next=r,r.prev=t}else r.prev=null}jt.appendChild=n6;function a6(e,r){Ss(r);var t=e.parent,n=e.next;if(r.next=n,r.prev=e,e.next=r,r.parent=t,n){if(n.prev=r,t){var a=t.children;a.splice(a.lastIndexOf(n),0,r)}}else t&&t.children.push(r)}jt.append=a6;function s6(e,r){if(Ss(r),r.parent=e,r.prev=null,e.children.unshift(r)!==1){var t=e.children[1];t.prev=r,r.next=t}else r.next=null}jt.prependChild=s6;function o6(e,r){Ss(r);var t=e.parent;if(t){var n=t.children;n.splice(n.indexOf(e),0,r)}e.prev&&(e.prev.next=r),r.parent=t,r.prev=e.prev,r.next=e,e.prev=r}jt.prepend=o6;var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.findAll=Ot.existsOne=Ot.findOne=Ot.findOneChild=Ot.find=Ot.filter=void 0;var ns=Ti;function u6(e,r,t,n){return t===void 0&&(t=!0),n===void 0&&(n=1/0),Array.isArray(r)||(r=[r]),th(e,r,t,n)}Ot.filter=u6;function th(e,r,t,n){for(var a=[],s=0,o=r;s0){var l=th(e,u.children,t,n);if(a.push.apply(a,l),n-=l.length,n<=0)break}}return a}Ot.find=th;function l6(e,r){return r.find(e)}Ot.findOneChild=l6;function Wy(e,r,t){t===void 0&&(t=!0);for(var n=null,a=0;a0&&(n=Wy(e,s.children,!0));else continue}return n}Ot.findOne=Wy;function Vy(e,r){return r.some(function(t){return(0,ns.isTag)(t)&&(e(t)||t.children.length>0&&Vy(e,t.children))})}Ot.existsOne=Vy;function c6(e,r){for(var t,n=[],a=r.filter(ns.isTag),s;s=a.shift();){var o=(t=s.children)===null||t===void 0?void 0:t.filter(ns.isTag);o&&o.length>0&&a.unshift.apply(a,o),e(s)&&n.push(s)}return n}Ot.findAll=c6;var rr={};Object.defineProperty(rr,"__esModule",{value:!0});rr.getElementsByTagType=rr.getElementsByTagName=rr.getElementById=rr.getElements=rr.testElement=void 0;var Yi=Ti,Ju=Ot,bu={tag_name:function(e){return typeof e=="function"?function(r){return(0,Yi.isTag)(r)&&e(r.name)}:e==="*"?Yi.isTag:function(r){return(0,Yi.isTag)(r)&&r.name===e}},tag_type:function(e){return typeof e=="function"?function(r){return e(r.type)}:function(r){return r.type===e}},tag_contains:function(e){return typeof e=="function"?function(r){return(0,Yi.isText)(r)&&e(r.data)}:function(r){return(0,Yi.isText)(r)&&r.data===e}}};function qy(e,r){return typeof r=="function"?function(t){return(0,Yi.isTag)(t)&&r(t.attribs[e])}:function(t){return(0,Yi.isTag)(t)&&t.attribs[e]===r}}function d6(e,r){return function(t){return e(t)||r(t)}}function Xy(e){var r=Object.keys(e).map(function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(bu,t)?bu[t](n):qy(t,n)});return r.length===0?null:r.reduce(d6)}function f6(e,r){var t=Xy(e);return t?t(r):!0}rr.testElement=f6;function h6(e,r,t,n){n===void 0&&(n=1/0);var a=Xy(e);return a?(0,Ju.filter)(a,r,t,n):[]}rr.getElements=h6;function p6(e,r,t){return t===void 0&&(t=!0),Array.isArray(r)||(r=[r]),(0,Ju.findOne)(qy("id",e),r,t)}rr.getElementById=p6;function v6(e,r,t,n){return t===void 0&&(t=!0),n===void 0&&(n=1/0),(0,Ju.filter)(bu.tag_name(e),r,t,n)}rr.getElementsByTagName=v6;function m6(e,r,t,n){return t===void 0&&(t=!0),n===void 0&&(n=1/0),(0,Ju.filter)(bu.tag_type(e),r,t,n)}rr.getElementsByTagType=m6;var Ky={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var r=Ti;function t(o){for(var u=o.length;--u>=0;){var l=o[u];if(u>0&&o.lastIndexOf(l,u-1)>=0){o.splice(u,1);continue}for(var c=l.parent;c;c=c.parent)if(o.includes(c)){o.splice(u,1);break}}return o}e.removeSubsets=t;var n;(function(o){o[o.DISCONNECTED=1]="DISCONNECTED",o[o.PRECEDING=2]="PRECEDING",o[o.FOLLOWING=4]="FOLLOWING",o[o.CONTAINS=8]="CONTAINS",o[o.CONTAINED_BY=16]="CONTAINED_BY"})(n=e.DocumentPosition||(e.DocumentPosition={}));function a(o,u){var l=[],c=[];if(o===u)return 0;for(var f=(0,r.hasChildren)(o)?o:o.parent;f;)l.unshift(f),f=f.parent;for(f=(0,r.hasChildren)(u)?u:u.parent;f;)c.unshift(f),f=f.parent;for(var m=Math.min(l.length,c.length),h=0;hy.indexOf(_)?v===u?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:v===o?n.PRECEDING|n.CONTAINS:n.PRECEDING}e.compareDocumentPosition=a;function s(o){return o=o.filter(function(u,l,c){return!c.includes(u,l+1)}),o.sort(function(u,l){var c=a(u,l);return c&n.PRECEDING?-1:c&n.FOLLOWING?1:0}),o}e.uniqueSort=s})(Ky);var el={};Object.defineProperty(el,"__esModule",{value:!0});el.getFeed=void 0;var g6=tr,ks=rr;function y6(e){var r=_u(S6,e);return r?r.name==="feed"?b6(r):_6(r):null}el.getFeed=y6;function b6(e){var r,t=e.children,n={type:"atom",items:(0,ks.getElementsByTagName)("entry",t).map(function(o){var u,l=o.children,c={media:Zy(l)};Ft(c,"id","id",l),Ft(c,"title","title",l);var f=(u=_u("link",l))===null||u===void 0?void 0:u.attribs.href;f&&(c.link=f);var m=Bi("summary",l)||Bi("content",l);m&&(c.description=m);var h=Bi("updated",l);return h&&(c.pubDate=new Date(h)),c})};Ft(n,"id","id",t),Ft(n,"title","title",t);var a=(r=_u("link",t))===null||r===void 0?void 0:r.attribs.href;a&&(n.link=a),Ft(n,"description","subtitle",t);var s=Bi("updated",t);return s&&(n.updated=new Date(s)),Ft(n,"author","email",t,!0),n}function _6(e){var r,t,n=(t=(r=_u("channel",e.children))===null||r===void 0?void 0:r.children)!==null&&t!==void 0?t:[],a={type:e.name.substr(0,3),id:"",items:(0,ks.getElementsByTagName)("item",e.children).map(function(o){var u=o.children,l={media:Zy(u)};Ft(l,"id","guid",u),Ft(l,"title","title",u),Ft(l,"link","link",u),Ft(l,"description","description",u);var c=Bi("pubDate",u);return c&&(l.pubDate=new Date(c)),l})};Ft(a,"title","title",n),Ft(a,"link","link",n),Ft(a,"description","description",n);var s=Bi("lastBuildDate",n);return s&&(a.updated=new Date(s)),Ft(a,"author","managingEditor",n,!0),a}var w6=["url","type","lang"],x6=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Zy(e){return(0,ks.getElementsByTagName)("media:content",e).map(function(r){for(var t=r.attribs,n={medium:t.medium,isDefault:!!t.isDefault},a=0,s=w6;a{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},rh={};Object.defineProperty(rh,"__esModule",{value:!0});/*! * is-plain-object * diff --git a/ui/assets/local/_app/immutable/chunks/event-summary-table.PldlBLuu.js b/ui/assets/local/_app/immutable/chunks/event-summary-table.KKhOuxW-.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/event-summary-table.PldlBLuu.js rename to ui/assets/local/_app/immutable/chunks/event-summary-table.KKhOuxW-.js index fd29e77c6..8e567ff3e 100644 --- a/ui/assets/local/_app/immutable/chunks/event-summary-table.PldlBLuu.js +++ b/ui/assets/local/_app/immutable/chunks/event-summary-table.KKhOuxW-.js @@ -1 +1 @@ -import{s as ie,e as b,b as k,d as w,g as d,j as v,k as E,l as g,v as se,p as yt,a as y,h as G,m as Ue,F as Je,u as Gt,q as Nt,r as Lt,H as W,B as Kt,x as U,o as Ot,t as M,f as F,n as H,c as ne,z as Ae,A as Oe,a0 as Xt,L as Yt,V as Zt,$ as xt,w as He,y as el}from"./scheduler.AWtTlMeO.js";import{S as oe,i as fe,g as z,b as h,e as Q,t as p,c as I,a as T,m as D,d as A,f as tl,h as ll}from"./index.91lpp7Ff.js";import{E as nl}from"./empty-state.cnx-bHYa.js";import{L as rl}from"./loading.ZhwIBa5k.js";import{t as N}from"./translate.HrioCK44.js";import{g as sl,a as al}from"./spread.rEx3vLA9.js";import{f as il}from"./index.VrdFapBL.js";import{p as be}from"./stores.BjeHb2_D.js";import{I as ue}from"./icon.hlu3-iXK.js";import{L as $e}from"./link.cs7LzqaH.js";import{d as ol,e as fl,f as jt,h as Mt,i as Ft,j as je,k as Be,l as qe,m as We,n as ve,o as xe}from"./index.D8-DrHo_.js";import{b as Le,a as ze,e as cl}from"./event-view.GLm4GtMe.js";import{t as ul,r as ml,f as et}from"./time-format.gNW0s4c3.js";import{c as tt,d as Rt,e as _l}from"./format-event-attributes.MiJoTPLS.js";import{p as lt}from"./format-time.6T8OwT4v.js";import{i as Me}from"./is-event-type._gd1DXTE.js";import{v as Fe,b as ge,w as Qe}from"./route-for.LRddn_DS.js";import{e as ae,u as Pe,o as Ce}from"./each.QPLN4A2E.js";import{t as nt}from"./tw-merge.NbP7EmZe.js";import{C as Se}from"./code-block.PIA3laOL.js";import{C as Te}from"./index.YV2NV-TI.js";import{f as X}from"./format-camel-case.z6e2GZpK.js";import{P as Re}from"./payload-decoder.NtOFwqeB.js";import{T as Ht,a as dl}from"./table-header-row.xBvT5iU5.js";import{M as Bt,a as qt,b as Wt,c as Ve}from"./menu.clBpn3HP.js";import{M as zt}from"./menu-divider.ULnGNTZu.js";import{u as Qt}from"./update-query-parameters.Mxd4zKR7.js";import{B as pl}from"./button.J_9D2qip.js";import{w as hl}from"./entry.49-_VqMH.js";import{C as gl}from"./checkbox.FE5a4WJj.js";import{c as $l,a as vl}from"./get-event-categorization.6rt2m6KE.js";import{e as bl}from"./filters.1ozdh_8f.js";import{t as kl}from"./versions.VZx8Ysww.js";import{i as wl}from"./version-check.HLZIw2tw.js";function El(s){let e,l;return e=new nl({props:{title:s[1],content:s[2]}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.title=t[1]),n&4&&(r.content=t[2]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Il(s){let e,l;return e=new rl({}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Tl(s){let e,l,t,n,r;const a=[Il,El],i=[];function c(o,f){return o[0]?0:1}return t=c(s),n=i[t]=a[t](s),{c(){e=b("tr"),l=b("td"),n.c(),this.h()},l(o){e=k(o,"TR",{class:!0});var f=w(e);l=k(f,"TD",{colspan:!0});var u=w(l);n.l(u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"colspan","6"),v(e,"class","row svelte-1q8wnnl")},m(o,f){E(o,e,f),g(e,l),i[t].m(l,null),r=!0},p(o,[f]){let u=t;t=c(o),t===u?i[t].p(o,f):(z(),h(i[u],1,1,()=>{i[u]=null}),Q(),n=i[t],n?n.p(o,f):(n=i[t]=a[t](o),n.c()),p(n,1),n.m(l,null))},i(o){r||(p(n),r=!0)},o(o){h(n),r=!1},d(o){o&&d(e),i[t].d()}}}function Dl(s,e,l){let{loading:t=!1}=e,{title:n=N("events.empty-state-title")}=e,{content:r=N("events.empty-state-description")}=e;return s.$$set=a=>{"loading"in a&&l(0,t=a.loading),"title"in a&&l(1,n=a.title),"content"in a&&l(2,r=a.content)},[t,n,r]}class Fr extends oe{constructor(e){super(),fe(this,e,Dl,Tl,ie,{loading:0,title:1,content:2})}}function rt(s){let e,l,t;return l=new ue({props:{name:s[1]?"spinner":s[3]}}),{c(){e=b("span"),I(l.$$.fragment),this.h()},l(n){e=k(n,"SPAN",{});var r=w(e);T(l.$$.fragment,r),r.forEach(d),this.h()},h(){W(e,"animate-spin",s[1])},m(n,r){E(n,e,r),D(l,e,null),t=!0},p(n,r){const a={};r&10&&(a.name=n[1]?"spinner":n[3]),l.$set(a),(!t||r&2)&&W(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&d(e),A(l)}}}function Al(s){let e,l,t,n,r,a,i=s[3]&&rt(s);const c=s[6].default,o=yt(c,s,s[5],null);return{c(){e=b("button"),i&&i.c(),l=y(),o&&o.c(),this.h()},l(f){e=k(f,"BUTTON",{class:!0});var u=w(e);i&&i.l(u),l=G(u),o&&o.l(u),u.forEach(d),this.h()},h(){v(e,"class",t=nt("surface-subtle flex items-center justify-center gap-2 rounded-full px-3 py-1 text-sm",s[2]&&"bg-interactive text-white",s[4])),e.disabled=s[0]},m(f,u){E(f,e,u),i&&i.m(e,null),g(e,l),o&&o.m(e,null),n=!0,r||(a=Ue(e,"click",Je(s[7])),r=!0)},p(f,[u]){f[3]?i?(i.p(f,u),u&8&&p(i,1)):(i=rt(f),i.c(),p(i,1),i.m(e,l)):i&&(z(),h(i,1,1,()=>{i=null}),Q()),o&&o.p&&(!n||u&32)&&Gt(o,c,f,f[5],n?Lt(c,f[5],u,null):Nt(f[5]),null),(!n||u&20&&t!==(t=nt("surface-subtle flex items-center justify-center gap-2 rounded-full px-3 py-1 text-sm",f[2]&&"bg-interactive text-white",f[4])))&&v(e,"class",t),(!n||u&1)&&(e.disabled=f[0])},i(f){n||(p(i),p(o,f),n=!0)},o(f){h(i),h(o,f),n=!1},d(f){f&&d(e),i&&i.d(),o&&o.d(f),r=!1,a()}}}function Vl(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:a=!1}=e,{active:i=!1}=e,{icon:c=null}=e,{class:o=""}=e;function f(u){Kt.call(this,s,u)}return s.$$set=u=>{"disabled"in u&&l(0,r=u.disabled),"loading"in u&&l(1,a=u.loading),"active"in u&&l(2,i=u.active),"icon"in u&&l(3,c=u.icon),"class"in u&&l(4,o=u.class),"$$scope"in u&&l(5,n=u.$$scope)},[r,a,i,c,o,n,t,f]}class Pl extends oe{constructor(e){super(),fe(this,e,Vl,Al,ie,{disabled:0,loading:1,active:2,icon:3,class:4})}}function st(s,e,l){const t=s.slice();t[5]=e[l][0],t[6]=e[l][1];const n=t[1]===t[5];return t[7]=n,t}function at(s){let e,l,t=[],n=new Map,r,a=ae(Object.entries(s[0]));const i=c=>c[5];for(let c=0;c{r=null}),Q())},i(a){n||(p(r),n=!0)},o(a){h(r),n=!1},d(a){a&&(d(l),d(t)),r&&r.d(a)}}}function Sl(s){let e,l,t=s[2]>1&&at(s);return{c(){t&&t.c(),e=U()},l(n){t&&t.l(n),e=U()},m(n,r){t&&t.m(n,r),E(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=at(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(z(),h(t,1,1,()=>{t=null}),Q())},i(n){l||(p(t),l=!0)},o(n){h(t),l=!1},d(n){n&&d(e),t&&t.d(n)}}}function yl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const a=Ot(),i=c=>a("pillChange",{key:c});return s.$$set=c=>{"attributeGrouping"in c&&l(0,n=c.attributeGrouping),"activePill"in c&&l(1,r=c.activePill)},s.$$.update=()=>{s.$$.dirty&1&&l(2,t=Object.values(n).reduce((c,o)=>(o.length&&(c+=1),c),0))},[n,r,t,a,i]}class Ut extends oe{constructor(e){super(),fe(this,e,yl,Sl,ie,{attributeGrouping:0,activePill:1})}}function Gl(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("p"),i=b("span"),c=M(s[1]),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"P",{class:!0});var m=w(a);i=k(m,"SPAN",{class:!0});var _=w(i);c=F(_,s[1]),_.forEach(d),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(i,"class","select-all px-2 svelte-n0wabv"),W(i,"badge",!je(s[0])),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),g(a,i),g(i,c)},p(o,f){f&1&&t!==(t=X(o[0])+"")&&H(n,t),f&2&&H(c,o[1]),f&1&&W(i,"badge",!je(o[0]))},i:se,o:se,d(o){o&&d(e)}}}function Nl(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Fl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&2050&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function Ll(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Hl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&2054&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function Ol(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[ql]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&2050&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function jl(s){let e,l,t,n=X(s[0])+"",r,a,i,c,o,f,u;const m=[Ql,zl,Wl],_=[];function $(P,L){var B;return(B=P[1])!=null&&B.payloads?0:P[0]==="searchAttributes"?1:2}i=$(s),c=_[i]=m[i](s);let V=s[5]&&!s[3]&&ft(s);return{c(){e=b("div"),l=b("div"),t=b("p"),r=M(n),a=y(),c.c(),f=y(),V&&V.c(),this.h()},l(P){e=k(P,"DIV",{class:!0});var L=w(e);l=k(L,"DIV",{class:!0});var B=w(l);t=k(B,"P",{class:!0});var le=w(t);r=F(le,n),le.forEach(d),a=G(B),c.l(B),B.forEach(d),f=G(L),V&&V.l(L),L.forEach(d),this.h()},h(){v(t,"class","text-sm"),v(l,"class",o="flex flex-col "+(s[5]?"lg:w-1/2":"")),v(e,"class","content code-block-row svelte-n0wabv"),W(e,"code-with-stack-trace",s[5])},m(P,L){E(P,e,L),g(e,l),g(l,t),g(t,r),g(l,a),_[i].m(l,null),g(e,f),V&&V.m(e,null),u=!0},p(P,L){(!u||L&1)&&n!==(n=X(P[0])+"")&&H(r,n);let B=i;i=$(P),i===B?_[i].p(P,L):(z(),h(_[B],1,1,()=>{_[B]=null}),Q(),c=_[i],c?c.p(P,L):(c=_[i]=m[i](P),c.c()),p(c,1),c.m(l,null)),(!u||L&32&&o!==(o="flex flex-col "+(P[5]?"lg:w-1/2":"")))&&v(l,"class",o),P[5]&&!P[3]?V?(V.p(P,L),L&40&&p(V,1)):(V=ft(P),V.c(),p(V,1),V.m(e,null)):V&&(z(),h(V,1,1,()=>{V=null}),Q()),(!u||L&32)&&W(e,"code-with-stack-trace",P[5])},i(P){u||(p(c),p(V),u=!0)},o(P){h(c),h(V),u=!1},d(P){P&&d(e),_[i].d(),V&&V.d()}}}function Ml(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function Fl(s){let e,l;return e=new $e({props:{href:Fe({namespace:s[7],queue:s[1]}),$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Fe({namespace:t[7],queue:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Rl(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function Hl(s){var t;let e,l;return e=new $e({props:{href:ge({namespace:((t=s[2])==null?void 0:t.namespace)||s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Rl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){var i;const a={};r&4&&(a.href=ge({namespace:((i=n[2])==null?void 0:i.namespace)||n[7],workflow:n[2].workflowExecutionWorkflowId,run:n[2].workflowExecutionRunId})),r&2050&&(a.$$scope={dirty:r,ctx:n}),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){A(e,n)}}}function Bl(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function ql(s){let e,l;return e=new $e({props:{href:ge({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[Bl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ge({namespace:t[7],workflow:t[6],run:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Wl(s){let e,l;return e=new Re({props:{value:s[4],$$slots:{default:[Ul,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value=t[4]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function zl(s){let e,l;return e=new Re({props:{key:"searchAttributes",value:{searchAttributes:s[4]},$$slots:{default:[Jl,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value={searchAttributes:t[4]}),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Ql(s){let e,l;return e=new Re({props:{value:s[1],key:"payloads",$$slots:{default:[Kl,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.value=t[1]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Ul(s){let e,l;return e=new Se({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Jl(s){let e,l;return e=new Se({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Kl(s){let e,l;return e=new Se({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function ft(s){let e,l,t=N("workflows.call-stack-tab")+"",n,r,a,i;return a=new Se({props:{content:s[5],language:"text",class:"mb-2 h-full lg:pr-2",copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),I(a.$$.fragment),this.h()},l(c){e=k(c,"DIV",{class:!0});var o=w(e);l=k(o,"P",{class:!0});var f=w(l);n=F(f,t),f.forEach(d),r=G(o),T(a.$$.fragment,o),o.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(e,"class","flex flex-col lg:w-1/2")},m(c,o){E(c,e,o),g(e,l),g(l,n),g(e,r),D(a,e,null),i=!0},p(c,o){const f={};o&32&&(f.content=c[5]),a.$set(f)},i(c){i||(p(a.$$.fragment,c),i=!0)},o(c){h(a.$$.fragment,c),i=!1},d(c){c&&d(e),A(a)}}}function Xl(s){let e,l,t,n,r,a,i,c;const o=[jl,Ol,Ll,Nl,Gl],f=[];function u(m,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof m[1]=="object"?0:(l==null&&(l=!!jt(m[0])),l?1:(t==null&&(t=!!Mt(m[0],m[2])),t?2:(n==null&&(n=!!Ft(m[0])),n?3:4)))}return r=u(s,-1),a=f[r]=o[r](s),{c(){e=b("div"),a.c(),this.h()},l(m){e=k(m,"DIV",{class:!0});var _=w(e);a.l(_),_.forEach(d),this.h()},h(){v(e,"class",i="row "+s[8].class+" svelte-n0wabv")},m(m,_){E(m,e,_),f[r].m(e,null),c=!0},p(m,[_]){let $=r;r=u(m,_),r===$?f[r].p(m,_):(z(),h(f[$],1,1,()=>{f[$]=null}),Q(),a=f[r],a?a.p(m,_):(a=f[r]=o[r](m),a.c()),p(a,1),a.m(e,null)),(!c||_&256&&i!==(i="row "+m[8].class+" svelte-n0wabv"))&&v(e,"class",i)},i(m){c||(p(a),c=!0)},o(m){h(a),c=!1},d(m){m&&d(e),f[r].d()}}}function Yl(s,e,l){let t,n,r;ne(s,be,m=>l(9,r=m));let{key:a}=e,{value:i}=e,{attributes:c}=e,{inline:o=!1}=e;const{workflow:f,namespace:u}=r.params;return s.$$set=m=>{l(8,e=Ae(Ae({},e),Oe(m))),"key"in m&&l(0,a=m.key),"value"in m&&l(1,i=m.value),"attributes"in m&&l(2,c=m.attributes),"inline"in m&&l(3,o=m.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=ol(i)),s.$$.dirty&16&&l(5,n=fl(t))},e=Oe(e),[a,i,c,o,t,n,f,u,e]}class Jt extends oe{constructor(e){super(),fe(this,e,Yl,Xl,ie,{key:0,value:1,attributes:2,inline:3})}}function ct(s,e,l){const t=s.slice();return t[8]=e[l][0],t[9]=e[l][1],t}function Zl(s){let e=s[8]+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[8]+"")&&H(l,e)},d(t){t&&d(l)}}}function ut(s,e){let l,t,n,r,a,i,c,o,f,u=(Me(e[9])?"LocalActivity":e[9].eventType)+"",m,_,$,V,P,L,B;i=new $e({props:{class:"truncate",href:Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]}),$$slots:{default:[Zl]},$$scope:{ctx:e}}});function le(){return e[7](e[8])}return{key:s,first:null,c(){l=b("tr"),t=b("td"),n=y(),r=b("td"),a=b("p"),I(i.$$.fragment),c=y(),o=b("td"),f=b("p"),m=M(u),_=y(),$=b("td"),V=y(),this.h()},l(O){l=k(O,"TR",{class:!0});var R=w(l);t=k(R,"TD",{class:!0}),w(t).forEach(d),n=G(R),r=k(R,"TD",{class:!0});var C=w(r);a=k(C,"P",{class:!0});var te=w(a);T(i.$$.fragment,te),te.forEach(d),C.forEach(d),c=G(R),o=k(R,"TD",{});var me=w(o);f=k(me,"P",{class:!0});var ce=w(f);m=F(ce,u),ce.forEach(d),me.forEach(d),_=G(R),$=k(R,"TD",{}),w($).forEach(d),V=G(R),R.forEach(d),this.h()},h(){v(t,"class","w-1/12"),v(a,"class","truncate text-sm text-slate-500 md:text-base"),v(r,"class","w-24"),v(f,"class","event-type truncate text-sm md:text-base svelte-jfcgn1"),v(l,"class","row svelte-jfcgn1"),W(l,"active",e[8]===e[1]),W(l,"failure",Be(e[9])),W(l,"canceled",qe(e[9])),W(l,"terminated",We(e[9])),this.first=l},m(O,R){E(O,l,R),g(l,t),g(l,n),g(l,r),g(r,a),D(i,a,null),g(l,c),g(l,o),g(o,f),g(f,m),g(l,_),g(l,$),g(l,V),P=!0,L||(B=Ue(l,"click",Je(Xt(le))),L=!0)},p(O,R){e=O;const C={};R&57&&(C.href=Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]})),R&4097&&(C.$$scope={dirty:R,ctx:e}),i.$set(C),(!P||R&1)&&u!==(u=(Me(e[9])?"LocalActivity":e[9].eventType)+"")&&H(m,u),(!P||R&3)&&W(l,"active",e[8]===e[1]),(!P||R&1)&&W(l,"failure",Be(e[9])),(!P||R&1)&&W(l,"canceled",qe(e[9])),(!P||R&1)&&W(l,"terminated",We(e[9]))},i(O){P||(p(i.$$.fragment,O),P=!0)},o(O){h(i.$$.fragment,O),P=!1},d(O){O&&d(l),A(i),L=!1,B()}}}function xl(s){let e=[],l=new Map,t,n,r=ae([...s[0].events].reverse());const a=i=>i[8];for(let i=0;il(6,a=u));let{eventGroup:i}=e,{selectedId:c}=e,{onGroupClick:o}=e;const f=u=>o(u);return s.$$set=u=>{"eventGroup"in u&&l(0,i=u.eventGroup),"selectedId"in u&&l(1,c=u.selectedId),"onGroupClick"in u&&l(2,o=u.onGroupClick)},s.$$.update=()=>{s.$$.dirty&64&&l(5,{workflow:t,run:n,namespace:r}=a.params,t,(l(4,n),l(6,a)),(l(3,r),l(6,a)))},[i,c,o,r,n,t,a,f]}class ln extends oe{constructor(e){super(),fe(this,e,tn,en,ie,{eventGroup:0,selectedId:1,onGroupClick:2})}}function mt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function _t(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function nn(s){let e,l,t,n=[],r=new Map,a;l=new Ut({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let i=ae(s[6]);const c=o=>o[10];for(let o=0;om[10];for(let m=0;m{a=null}),Q())},i(c){r||(p(a),r=!0)},o(c){h(a),r=!1},d(c){c&&(d(l),d(n)),a&&a.d(c)}}}function ht(s){let e,l;return e=new Jt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&64&&(r.key=t[10]),n&64&&(r.value=t[11]),n&8&&(r.attributes=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function gt(s,e){var i;let l,t=(i=e[4][e[5]])==null?void 0:i.includes(e[10]),n,r,a=t&&ht(e);return{key:s,first:null,c(){l=U(),a&&a.c(),n=U(),this.h()},l(c){l=U(),a&&a.l(c),n=U(),this.h()},h(){this.first=l},m(c,o){E(c,l,o),a&&a.m(c,o),E(c,n,o),r=!0},p(c,o){var f;e=c,o&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?a?(a.p(e,o),o&112&&p(a,1)):(a=ht(e),a.c(),p(a,1),a.m(n.parentNode,n)):a&&(z(),h(a,1,1,()=>{a=null}),Q())},i(c){r||(p(a),r=!0)},o(c){h(a),r=!1},d(c){c&&(d(l),d(n)),a&&a.d(c)}}}function sn(s){let e,l,t,n,r;const a=[rn,nn],i=[];function c(o,f){return f&6&&(e=null),e==null&&(e=!!(o[2]&&ve(o[1]))),e?0:1}return l=c(s,-1),t=i[l]=a[l](s),{c(){t.c(),n=U()},l(o){t.l(o),n=U()},m(o,f){i[l].m(o,f),E(o,n,f),r=!0},p(o,[f]){let u=l;l=c(o,f),l===u?i[l].p(o,f):(z(),h(i[u],1,1,()=>{i[u]=null}),Q(),t=i[l],t?t.p(o,f):(t=i[l]=a[l](o),t.c()),p(t,1),t.m(n.parentNode,n))},i(o){r||(p(t),r=!0)},o(o){h(t),r=!1},d(o){o&&d(n),i[l].d(o)}}}function an(s,e,l){let t,n,r,a,{event:i}=e,{currentEvent:c}=e,{compact:o=!1}=e,{selectedId:f}=e;const u=_=>{l(5,r=_.detail.key)},m=_=>l(0,f=_);return s.$$set=_=>{"event"in _&&l(1,i=_.event),"currentEvent"in _&&l(9,c=_.currentEvent),"compact"in _&&l(2,o=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Rt(c,{compact:o})),s.$$.dirty&10&&l(4,n=_l(i,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,a=Object.entries(t))},[f,i,o,t,n,r,a,u,m,c]}class on extends oe{constructor(e){super(),fe(this,e,an,sn,ie,{event:1,currentEvent:9,compact:2,selectedId:0})}}function fn(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("p"),i=b("span"),c=M(s[1]),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"P",{class:!0});var m=w(a);i=k(m,"SPAN",{class:!0});var _=w(i);c=F(_,s[1]),_.forEach(d),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(i,"class","w-full select-all text-slate-700 svelte-17d0us2"),W(i,"badge",!je(s[0])),v(a,"class","truncate text-right text-sm xl:text-left"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),g(a,i),g(i,c)},p(o,f){f&1&&t!==(t=X(o[0])+"")&&H(n,t),f&2&&H(c,o[1]),f&1&&W(i,"badge",!je(o[0]))},i:se,o:se,d(o){o&&d(e)}}}function cn(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],$$slots:{default:[pn]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&514&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function un(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[gn]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&518&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function mn(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[vn]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&514&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function _n(s){let e,l,t=X(s[0])+"",n,r,a,i;return a=new Re({props:{value:s[1],key:"payloads",$$slots:{default:[bn,({decodedValue:c})=>({8:c}),({decodedValue:c})=>c?256:0]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),I(a.$$.fragment),this.h()},l(c){e=k(c,"DIV",{class:!0});var o=w(e);l=k(o,"P",{class:!0});var f=w(l);n=F(f,t),f.forEach(d),r=G(o),T(a.$$.fragment,o),o.forEach(d),this.h()},h(){v(l,"class","min-w-fit text-sm"),v(e,"class","flex w-full flex-wrap items-center justify-between gap-1 pr-1 xl:flex-nowrap xl:gap-4")},m(c,o){E(c,e,o),g(e,l),g(l,n),g(e,r),D(a,e,null),i=!0},p(c,o){(!i||o&1)&&t!==(t=X(c[0])+"")&&H(n,t);const f={};o&2&&(f.value=c[1]),o&776&&(f.$$scope={dirty:o,ctx:c}),a.$set(f)},i(c){i||(p(a.$$.fragment,c),i=!0)},o(c){h(a.$$.fragment,c),i=!1},d(c){c&&d(e),A(a)}}}function dn(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function pn(s){let e,l;return e=new $e({props:{class:"truncate",href:Fe({namespace:s[5],queue:s[1]}),$$slots:{default:[dn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Fe({namespace:t[5],queue:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function hn(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function gn(s){let e,l;return e=new $e({props:{class:"truncate",href:ge({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[hn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=ge({namespace:t[5],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function $n(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function vn(s){let e,l;return e=new $e({props:{class:"truncate",href:ge({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[$n]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ge({namespace:t[5],workflow:t[4],run:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function bn(s){let e,l;return e=new Se({props:{content:s[8],inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&256&&(r.content=t[8]),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function kn(s){let e,l,t,n,r,a,i,c;const o=[_n,mn,un,cn,fn],f=[];function u(m,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof m[1]=="object"?0:(l==null&&(l=!!jt(m[0])),l?1:(t==null&&(t=!!Mt(m[0],m[2])),t?2:(n==null&&(n=!!Ft(m[0])),n?3:4)))}return r=u(s,-1),a=f[r]=o[r](s),{c(){e=b("div"),a.c(),this.h()},l(m){e=k(m,"DIV",{class:!0});var _=w(e);a.l(_),_.forEach(d),this.h()},h(){v(e,"class",i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-17d0us2")},m(m,_){E(m,e,_),f[r].m(e,null),c=!0},p(m,[_]){let $=r;r=u(m,_),r===$?f[r].p(m,_):(z(),h(f[$],1,1,()=>{f[$]=null}),Q(),a=f[r],a?a.p(m,_):(a=f[r]=o[r](m),a.c()),p(a,1),a.m(e,null)),(!c||_&64&&i!==(i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+m[6].class+" svelte-17d0us2"))&&v(e,"class",i)},i(m){c||(p(a),c=!0)},o(m){h(a),c=!1},d(m){m&&d(e),f[r].d()}}}function wn(s,e,l){let t;ne(s,be,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:a}=e,{inline:i=!1}=e;const{workflow:c,namespace:o}=t.params;return s.$$set=f=>{l(6,e=Ae(Ae({},e),Oe(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,a=f.attributes),"inline"in f&&l(3,i=f.inline)},e=Oe(e),[n,r,a,i,c,o,e]}class En extends oe{constructor(e){super(),fe(this,e,wn,kn,ie,{key:0,value:1,attributes:2,inline:3})}}function In(s){let e=s[0].id+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[0].id+"")&&H(l,e)},d(t){t&&d(l)}}}function Tn(s){var n;let e,l=et((n=s[0])==null?void 0:n.eventTime,s[14],{relative:s[15]})+"",t;return{c(){e=b("p"),t=M(l),this.h()},l(r){e=k(r,"P",{class:!0});var a=w(e);t=F(a,l),a.forEach(d),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal md:text-base")},m(r,a){E(r,e,a),g(e,t)},p(r,a){var i;a&49153&&l!==(l=et((i=r[0])==null?void 0:i.eventTime,r[14],{relative:r[15]})+"")&&H(t,l)},i:se,o:se,d(r){r&&d(e)}}}function Dn(s){let e,l,t,n,r=s[9]&&$t(s),a=s[8]&&s[8]!=="0ms"&&vt(s);return{c(){e=b("p"),r&&r.c(),l=y(),a&&a.c(),t=U(),this.h()},l(i){e=k(i,"P",{class:!0});var c=w(e);r&&r.l(c),c.forEach(d),l=G(i),a&&a.l(i),t=U(),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal")},m(i,c){E(i,e,c),r&&r.m(e,null),E(i,l,c),a&&a.m(i,c),E(i,t,c),n=!0},p(i,c){i[9]?r?r.p(i,c):(r=$t(i),r.c(),r.m(e,null)):r&&(r.d(1),r=null),i[8]&&i[8]!=="0ms"?a?(a.p(i,c),c&256&&p(a,1)):(a=vt(i),a.c(),p(a,1),a.m(t.parentNode,t)):a&&(z(),h(a,1,1,()=>{a=null}),Q())},i(i){n||(p(a),n=!0)},o(i){h(a),n=!1},d(i){i&&(d(e),d(l),d(t)),r&&r.d(),a&&a.d(i)}}}function $t(s){let e=s[12]?"-":"+",l,t;return{c(){l=M(e),t=M(s[9])},l(n){l=F(n,e),t=F(n,s[9])},m(n,r){E(n,l,r),E(n,t,r)},p(n,r){r&4096&&e!==(e=n[12]?"-":"+")&&H(l,e),r&512&&H(t,n[9])},d(n){n&&(d(l),d(t))}}}function vt(s){let e,l,t,n,r,a;return l=new ue({props:{class:"inline",name:"clock"}}),{c(){e=b("div"),I(l.$$.fragment),t=y(),n=b("p"),r=M(s[8]),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);T(l.$$.fragment,c),t=G(c),n=k(c,"P",{class:!0});var o=w(n);r=F(o,s[8]),o.forEach(d),c.forEach(d),this.h()},h(){v(n,"class","break-word truncate text-sm md:whitespace-normal"),v(e,"class","flex flex-row items-center gap-1")},m(i,c){E(i,e,c),D(l,e,null),g(e,t),g(e,n),g(n,r),a=!0},p(i,c){(!a||c&256)&&H(r,i[8])},i(i){a||(p(l.$$.fragment,i),a=!0)},o(i){h(l.$$.fragment,i),a=!1},d(i){i&&d(e),A(l)}}}function bt(s){let e,l;return e=new ue({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function kt(s){let e,l;return e=new ue({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function wt(s){let e,l;return e=new ue({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Et(s){let e,l,t;return l=new ue({props:{class:"inline",name:"chevron-up"}}),{c(){e=b("div"),I(l.$$.fragment)},l(n){e=k(n,"DIV",{});var r=w(e);T(l.$$.fragment,r),r.forEach(d)},m(n,r){E(n,e,r),D(l,e,null),t=!0},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&d(e),A(l)}}}function It(s){let e,l,t,n,r,a,i,c;const o=[xe(s[6]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let f={};for(let u=0;utl(t,"selectedId",i)),{c(){e=b("tr"),l=b("td"),I(t.$$.fragment),this.h()},l(o){e=k(o,"TR",{class:!0});var f=w(e);l=k(f,"TD",{class:!0,colspan:!0});var u=w(l);T(t.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","expanded-cell svelte-by09h1"),v(l,"colspan","6"),v(e,"class","svelte-by09h1"),W(e,"typedError",s[3])},m(o,f){E(o,e,f),g(e,l),D(t,l,null),a=!0},p(o,f){const u={};f&1&&(u.event=o[0]),f&64&&(u.currentEvent=o[6]),f&2&&(u.compact=o[1]),!n&&f&32&&(n=!0,u.selectedId=o[5],Zt(()=>n=!1)),t.$set(u),(!a||f&8)&&W(e,"typedError",o[3])},i(o){a||(p(t.$$.fragment,o),o&&(r||xt(()=>{r=ll(e,il,{}),r.start()})),a=!0)},o(o){h(t.$$.fragment,o),a=!1},d(o){o&&d(e),A(t)}}}function An(s){let e,l,t,n,r,a,i,c,o,f,u,m,_,$,V,P,L,B,le,O=(ve(s[0])?s[0].displayName:Me(s[0])?"LocalActivity":s[0].name)+"",R,C,te,me,ce,de,_e,ke,pe,re,De,ye;r=new $e({props:{class:"truncate","data-testid":"link",href:s[13],$$slots:{default:[In]},$$scope:{ctx:s}}});const q=[Dn,Tn],he=[];function Ke(S,j){return S[11]?0:1}o=Ke(s),f=he[o]=q[o](s);let Y=s[1]&&s[17]&&bt(),Z=s[1]&&s[18]&&kt(),x=s[1]&&s[19]&&wt(),ee=s[7]&&Et(),J=!s[7]&&It(s),K=s[7]&&Tt(s);return{c(){e=b("tr"),l=b("td"),t=y(),n=b("td"),I(r.$$.fragment),a=y(),i=b("td"),c=b("div"),f.c(),u=y(),m=b("td"),_=b("div"),$=b("div"),Y&&Y.c(),V=y(),Z&&Z.c(),P=y(),x&&x.c(),L=y(),B=b("div"),le=b("p"),R=M(O),C=y(),ee&&ee.c(),me=y(),J&&J.c(),ce=y(),de=b("td"),ke=y(),K&&K.c(),pe=U(),this.h()},l(S){e=k(S,"TR",{class:!0,id:!0,"data-testid":!0});var j=w(e);l=k(j,"TD",{}),w(l).forEach(d),t=G(j),n=k(j,"TD",{class:!0});var we=w(n);T(r.$$.fragment,we),we.forEach(d),a=G(j),i=k(j,"TD",{class:!0});var Ee=w(i);c=k(Ee,"DIV",{class:!0});var Xe=w(c);f.l(Xe),Xe.forEach(d),Ee.forEach(d),u=G(j),m=k(j,"TD",{colspan:!0,class:!0});var Ye=w(m);_=k(Ye,"DIV",{class:!0});var Ge=w(_);$=k(Ge,"DIV",{});var Ie=w($);Y&&Y.l(Ie),V=G(Ie),Z&&Z.l(Ie),P=G(Ie),x&&x.l(Ie),Ie.forEach(d),L=G(Ge),B=k(Ge,"DIV",{class:!0});var Ne=w(B);le=k(Ne,"P",{class:!0});var Ze=w(le);R=F(Ze,O),Ze.forEach(d),C=G(Ne),ee&&ee.l(Ne),Ne.forEach(d),Ge.forEach(d),Ye.forEach(d),me=G(j),J&&J.l(j),ce=G(j),de=k(j,"TD",{}),w(de).forEach(d),j.forEach(d),ke=G(S),K&&K.l(S),pe=U(),this.h()},h(){v(n,"class","w-24 text-left"),v(c,"class","flex flex-col gap-0"),v(i,"class","text-left"),v(le,"class","event-name truncate text-sm font-semibold md:text-base svelte-by09h1"),v(B,"class","flex w-full items-center justify-between truncate"),v(_,"class","flex"),v(m,"colspan",te=s[7]?2:1),v(m,"class","text-right text-sm font-normal xl:text-left"),v(e,"class","row svelte-by09h1"),v(e,"id",_e=s[0].id),v(e,"data-testid","event-summary-row"),W(e,"expanded",s[7]&&!s[2]),W(e,"active",s[4]),W(e,"failure",s[17]),W(e,"canceled",s[18]),W(e,"terminated",s[19]),W(e,"typedError",s[3])},m(S,j){E(S,e,j),g(e,l),g(e,t),g(e,n),D(r,n,null),g(e,a),g(e,i),g(i,c),he[o].m(c,null),g(e,u),g(e,m),g(m,_),g(_,$),Y&&Y.m($,null),g($,V),Z&&Z.m($,null),g($,P),x&&x.m($,null),g(_,L),g(_,B),g(B,le),g(le,R),g(B,C),ee&&ee.m(B,null),g(e,me),J&&J.m(e,null),g(e,ce),g(e,de),E(S,ke,j),K&&K.m(S,j),E(S,pe,j),re=!0,De||(ye=Ue(e,"click",Je(s[16])),De=!0)},p(S,[j]){const we={};j&8192&&(we.href=S[13]),j&1073741825&&(we.$$scope={dirty:j,ctx:S}),r.$set(we);let Ee=o;o=Ke(S),o===Ee?he[o].p(S,j):(z(),h(he[Ee],1,1,()=>{he[Ee]=null}),Q(),f=he[o],f?f.p(S,j):(f=he[o]=q[o](S),f.c()),p(f,1),f.m(c,null)),S[1]&&S[17]?Y?j&2&&p(Y,1):(Y=bt(),Y.c(),p(Y,1),Y.m($,V)):Y&&(z(),h(Y,1,1,()=>{Y=null}),Q()),S[1]&&S[18]?Z?j&2&&p(Z,1):(Z=kt(),Z.c(),p(Z,1),Z.m($,P)):Z&&(z(),h(Z,1,1,()=>{Z=null}),Q()),S[1]&&S[19]?x?j&2&&p(x,1):(x=wt(),x.c(),p(x,1),x.m($,null)):x&&(z(),h(x,1,1,()=>{x=null}),Q()),(!re||j&1)&&O!==(O=(ve(S[0])?S[0].displayName:Me(S[0])?"LocalActivity":S[0].name)+"")&&H(R,O),S[7]?ee?j&128&&p(ee,1):(ee=Et(),ee.c(),p(ee,1),ee.m(B,null)):ee&&(z(),h(ee,1,1,()=>{ee=null}),Q()),(!re||j&128&&te!==(te=S[7]?2:1))&&v(m,"colspan",te),S[7]?J&&(z(),h(J,1,1,()=>{J=null}),Q()):J?(J.p(S,j),j&128&&p(J,1)):(J=It(S),J.c(),p(J,1),J.m(e,ce)),(!re||j&1&&_e!==(_e=S[0].id))&&v(e,"id",_e),(!re||j&132)&&W(e,"expanded",S[7]&&!S[2]),(!re||j&16)&&W(e,"active",S[4]),(!re||j&8)&&W(e,"typedError",S[3]),S[7]?K?(K.p(S,j),j&128&&p(K,1)):(K=Tt(S),K.c(),p(K,1),K.m(pe.parentNode,pe)):K&&(z(),h(K,1,1,()=>{K=null}),Q())},i(S){re||(p(r.$$.fragment,S),p(f),p(Y),p(Z),p(x),p(ee),p(J),p(K),re=!0)},o(S){h(r.$$.fragment,S),h(f),h(Y),h(Z),h(x),h(ee),h(J),h(K),re=!1},d(S){S&&(d(e),d(ke),d(pe)),A(r),he[o].d(),Y&&Y.d(),Z&&Z.d(),x&&x.d(),ee&&ee.d(),J&&J.d(),K&&K.d(S),De=!1,ye()}}}function Vn(s,e,l){let t,n,r,a,i,c,o,f,u,m,_,$,V,P,L,B,le;ne(s,Le,q=>l(26,V=q)),ne(s,ze,q=>l(27,P=q)),ne(s,be,q=>l(28,L=q)),ne(s,ul,q=>l(14,B=q)),ne(s,ml,q=>l(15,le=q));let{event:O}=e,{initialItem:R}=e,{compact:C=!1}=e,{expandAll:te=!1}=e,{typedError:me=!1}=e,{active:ce=!1}=e,{onRowClick:de=se}=e,_e=ve(O)?Array.from(O.events.keys()).pop():O.id;const ke=()=>{l(7,i=!i),de()},pe=Be(O),re=qe(O),De=We(O);function ye(q){_e=q,l(5,_e)}return s.$$set=q=>{"event"in q&&l(0,O=q.event),"initialItem"in q&&l(20,R=q.initialItem),"compact"in q&&l(1,C=q.compact),"expandAll"in q&&l(2,te=q.expandAll),"typedError"in q&&l(3,me=q.typedError),"active"in q&&l(4,ce=q.active),"onRowClick"in q&&l(21,de=q.onRowClick)},s.$$.update=()=>{s.$$.dirty&268435456&&l(24,{workflow:t,run:n,namespace:r}=L.params,t,(l(23,n),l(28,L)),(l(25,r),l(28,L))),s.$$.dirty&58720257&&l(13,a=Qe({eventId:O.id,namespace:r,workflow:t,run:n})),s.$$.dirty&4&&l(7,i=te),s.$$.dirty&134217728&&l(12,c=P==="descending"),s.$$.dirty&67108864&&l(22,o=V==="true"),s.$$.dirty&5242881&&l(11,f=o&&R&&O.id!==R.id),s.$$.dirty&3&&l(10,u=Rt(O,{compact:C})),s.$$.dirty&33&&l(6,m=ve(O)?O.events.get(_e):O),s.$$.dirty&1048641&&l(9,_=lt({start:R.eventTime,end:ve(O)?O.initialEvent.eventTime:m.eventTime,includeMilliseconds:!0})),s.$$.dirty&1&&l(8,$=ve(O)?lt({start:O.initialEvent.eventTime,end:O.lastEvent.eventTime,includeMilliseconds:!0}):"")},[O,C,te,me,ce,_e,m,i,$,_,u,f,c,a,B,le,ke,pe,re,De,R,de,o,n,t,r,V,P,L,ye]}class Rr extends oe{constructor(e){super(),fe(this,e,Vn,An,ie,{event:0,initialItem:20,compact:1,expandAll:2,typedError:3,active:4,onRowClick:21})}}const Pn=({compact:s,sortOrder:e,showElapsed:l})=>{if(!((s||e==="descending")&&l==="false"))return`${e}:${l}`};function Dt(s,e,l){const t=s.slice();return t[9]=e[l].option,t[10]=e[l].label,t}function Cn(s){let e,l,t,n=N("common.date-and-time")+"",r,a;return e=new ue({props:{class:"md:hidden",name:"clock"}}),{c(){I(e.$$.fragment),l=y(),t=b("span"),r=M(n),this.h()},l(i){T(e.$$.fragment,i),l=G(i),t=k(i,"SPAN",{class:!0});var c=w(t);r=F(c,n),c.forEach(d),this.h()},h(){v(t,"class","max-md:hidden")},m(i,c){D(e,i,c),E(i,l,c),E(i,t,c),g(t,r),a=!0},p:se,i(i){a||(p(e.$$.fragment,i),a=!0)},o(i){h(e.$$.fragment,i),a=!1},d(i){i&&(d(l),d(t)),A(e,i)}}}function Sn(s){let e=s[10]+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p:se,d(t){t&&d(l)}}}function At(s){let e,l;function t(){return s[7](s[9])}return e=new Ve({props:{selected:s[1]===s[9],$$slots:{default:[Sn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const a={};r&2&&(a.selected=s[1]===s[9]),r&8192&&(a.$$scope={dirty:r,ctx:s}),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){A(e,n)}}}function yn(s){let e=N("events.show-elapsed-time")+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p:se,d(t){t&&d(l)}}}function Gn(s){let e,l,t,n,r,a=ae(s[3]),i=[];for(let o=0;oh(i[o],1,1,()=>{i[o]=null});return l=new zt({}),n=new Ve({props:{selected:s[0]==="true",$$slots:{default:[yn]},$$scope:{ctx:s}}}),n.$on("click",s[5]),{c(){for(let o=0;ol(0,n=m)),ne(s,ze,m=>l(1,r=m)),ne(s,be,m=>l(8,a=m));let{compact:i}=e,c=[{label:N("events.sort-ascending"),option:"ascending"},{label:N("events.sort-descending"),option:"descending"}];const o=m=>{He(ze,r=m,r),Qt({parameter:"sort",value:m,url:a.url})},f=()=>{n==="true"?He(Le,n="false",n):He(Le,n="true",n)},u=m=>o(m);return s.$$set=m=>{"compact"in m&&l(6,i=m.compact)},s.$$.update=()=>{s.$$.dirty&67&&l(2,t=Pn({compact:i,sortOrder:r,showElapsed:n}))},[n,r,t,c,o,f,i,u]}class jn extends oe{constructor(e){super(),fe(this,e,On,Ln,ie,{compact:6})}}function Vt(s,e,l){const t=s.slice();t[19]=e[l];const n=!!t[9].find(function(...a){return s[18](t[19],...a)});return t[20]=n,t}function Pt(s){let e,l;return e=new ue({props:{class:"md:hidden",name:s[4]}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.name=t[4]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Mn(s){let e,l,t,n,r=s[4]&&Pt(s);return{c(){r&&r.c(),e=y(),l=b("span"),t=M(s[1]),this.h()},l(a){r&&r.l(a),e=G(a),l=k(a,"SPAN",{class:!0});var i=w(l);t=F(i,s[1]),i.forEach(d),this.h()},h(){v(l,"class","max-md:hidden")},m(a,i){r&&r.m(a,i),E(a,e,i),E(a,l,i),g(l,t),n=!0},p(a,i){a[4]?r?(r.p(a,i),i&16&&p(r,1)):(r=Pt(a),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(z(),h(r,1,1,()=>{r=null}),Q()),(!n||i&2)&&H(t,a[1])},i(a){n||(p(r),n=!0)},o(a){h(r),n=!1},d(a){a&&(d(e),d(l)),r&&r.d(a)}}}function Ct(s){let e,l;return e=new ue({props:{slot:"trailing",name:s[19].icon}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1&&(r.name=t[19].icon),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Fn(s){let e,l,t=s[19].label+"",n,r,a=s[19].icon&&Ct(s);return{c(){e=b("div"),a&&a.c(),l=y(),n=M(t),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);a&&a.l(c),l=G(c),n=F(c,t),c.forEach(d),this.h()},h(){v(e,"class","flex items-center gap-2")},m(i,c){E(i,e,c),a&&a.m(e,null),g(e,l),g(e,n),r=!0},p(i,c){i[19].icon?a?(a.p(i,c),c&1&&p(a,1)):(a=Ct(i),a.c(),p(a,1),a.m(e,l)):a&&(z(),h(a,1,1,()=>{a=null}),Q()),(!r||c&1)&&t!==(t=i[19].label+"")&&H(n,t)},i(i){r||(p(a),r=!0)},o(i){h(a),r=!1},d(i){i&&d(e),a&&a.d()}}}function Rn(s){let e,l;function t(){return s[16](s[19])}return e=new gl({props:{slot:"leading",checked:s[20],label:s[19].label,labelHidden:!0}}),e.$on("click",t),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const a={};r&513&&(a.checked=s[20]),r&1&&(a.label=s[19].label),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){A(e,n)}}}function St(s,e){let l,t,n;function r(){return e[17](e[19])}return t=new Ve({props:{"data-testid":e[19].label,$$slots:{leading:[Rn],default:[Fn]},$$scope:{ctx:e}}}),t.$on("click",r),{key:s,first:null,c(){l=U(),I(t.$$.fragment),this.h()},l(a){l=U(),T(t.$$.fragment,a),this.h()},h(){this.first=l},m(a,i){E(a,l,i),D(t,a,i),n=!0},p(a,i){e=a;const c={};i&1&&(c["data-testid"]=e[19].label),i&8389121&&(c.$$scope={dirty:i,ctx:e}),t.$set(c)},i(a){n||(p(t.$$.fragment,a),n=!0)},o(a){h(t.$$.fragment,a),n=!1},d(a){a&&d(l),A(t,a)}}}function Hn(s){let e;return{c(){e=M(s[5])},l(l){e=F(l,s[5])},m(l,t){E(l,e,t)},p(l,t){t&32&&H(e,l[5])},d(l){l&&d(e)}}}function Bn(s){let e;return{c(){e=M(s[6])},l(l){e=F(l,s[6])},m(l,t){E(l,e,t)},p(l,t){t&64&&H(e,l[6])},d(l){l&&d(e)}}}function qn(s){let e=[],l=new Map,t,n,r,a,i,c,o,f=ae(s[0]);const u=m=>m[19];for(let m=0;m{$.some(te=>te.value===C.value)?l(9,$=$.filter(te=>te.value!==C.value)):l(9,$=[...$,C]),r($)},L=()=>{l(9,$=t),r($)},B=()=>{l(9,$=[]),r($)},le=C=>P(C),O=C=>{P(C)},R=(C,te)=>te.value===C.value;return s.$$set=C=>{"options"in C&&l(0,t=C.options),"initialSelected"in C&&l(14,n=C.initialSelected),"onChange"in C&&l(15,r=C.onChange),"label"in C&&l(1,a=C.label),"id"in C&&l(2,i=C.id),"variant"in C&&l(3,c=C.variant),"icon"in C&&l(4,o=C.icon),"selectAllLabel"in C&&l(5,f=C.selectAllLabel),"clearAllLabel"in C&&l(6,u=C.clearAllLabel),"active"in C&&l(7,m=C.active),"position"in C&&l(8,_=C.position)},[t,a,i,c,o,f,u,m,_,$,V,P,L,B,n,r,le,O,R]}class Un extends oe{constructor(e){super(),fe(this,e,Qn,zn,ie,{options:0,initialSelected:14,onChange:15,label:1,id:2,variant:3,icon:4,selectAllLabel:5,clearAllLabel:6,active:7,position:8})}}function Jn(s){let e,l;return e=new Un({props:{id:"event-category-filter-menu",options:s[0],initialSelected:s[2],label:s[3],active:!!s[1],selectAllLabel:N("common.select-all"),clearAllLabel:N("common.clear-all-capitalized"),onChange:s[4],variant:"table-header",icon:"filter"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.options=t[0]),n&4&&(r.initialSelected=t[2]),n&8&&(r.label=t[3]),n&2&&(r.active=!!t[1]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}let Kn="category";function Xn(s,e,l){let t,n,r,a,i;ne(s,be,u=>l(7,r=u)),ne(s,bl,u=>l(1,a=u)),ne(s,kl,u=>l(6,i=u));let{compact:c=!1}=e,o=(c?$l:vl).map(u=>({...u,label:N(u.label)}));const f=u=>{u.length===o.length&&(u=[]);const m=u.map(_=>_.value).join(",");Qt({parameter:Kn,value:m,url:r.url})};return s.$$set=u=>{"compact"in u&&l(5,c=u.compact)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=c?N("events.event-type"):N("events.workflow-events")),s.$$.dirty&65&&wl("1.21",i)&&l(0,o=o.filter(({value:u})=>u!=="update")),s.$$.dirty&3&&l(2,n=a?o.filter(u=>a.includes(u.value)):[])},[o,a,n,t,f,c,i]}class Yn extends oe{constructor(e){super(),fe(this,e,Xn,Jn,ie,{compact:5})}}function Zn(s){let e;const l=s[6].default,t=yt(l,s,s[7],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&128)&&Gt(t,l,n,n[7],e?Lt(l,n[7],r,null):Nt(n[7]),null)},i(n){e||(p(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function xn(s){let e,l=N("workflows.event-history")+"",t;return{c(){e=b("caption"),t=M(l),this.h()},l(n){e=k(n,"CAPTION",{class:!0,slot:!0});var r=w(e);t=F(r,l),r.forEach(d),this.h()},h(){v(e,"class","sr-only"),v(e,"slot","caption")},m(n,r){E(n,e,r),g(e,t)},p:se,d(n){n&&d(e)}}}function er(s){let e,l=(s[2]?N("common.collapse-all"):N("common.expand-all"))+"",t;return{c(){e=b("span"),t=M(l),this.h()},l(n){e=k(n,"SPAN",{class:!0});var r=w(e);t=F(r,l),r.forEach(d),this.h()},h(){v(e,"class","hidden sm:block")},m(n,r){E(n,e,r),g(e,t)},p(n,r){r&4&&l!==(l=(n[2]?N("common.collapse-all"):N("common.expand-all"))+"")&&H(t,l)},d(n){n&&d(e)}}}function tr(s){let e,l,t,n,r,a,i,c,o,f,u,m;return n=new jn({props:{compact:s[0]}}),i=new Yn({props:{compact:s[0]}}),u=new pl({props:{size:"sm",variant:"table-header",trailingIcon:s[2]?"chevron-up":"chevron-down",disabled:!!s[3],$$slots:{default:[er]},$$scope:{ctx:s}}}),u.$on("click",s[4]),{c(){e=b("td"),l=y(),t=b("th"),I(n.$$.fragment),r=y(),a=b("th"),I(i.$$.fragment),c=y(),o=b("th"),f=b("div"),I(u.$$.fragment),this.h()},l(_){e=k(_,"TD",{class:!0}),w(e).forEach(d),l=G(_),t=k(_,"TH",{class:!0});var $=w(t);T(n.$$.fragment,$),$.forEach(d),r=G(_),a=k(_,"TH",{class:!0});var V=w(a);T(i.$$.fragment,V),V.forEach(d),c=G(_),o=k(_,"TH",{class:!0});var P=w(o);f=k(P,"DIV",{class:!0});var L=w(f);T(u.$$.fragment,L),L.forEach(d),P.forEach(d),this.h()},h(){v(e,"class","w-14 xl:w-10"),v(t,"class","w-16 md:w-32"),v(a,"class","w-44"),v(f,"class","flex w-full justify-end"),v(o,"class","w-auto xl:w-80")},m(_,$){E(_,e,$),E(_,l,$),E(_,t,$),D(n,t,null),E(_,r,$),E(_,a,$),D(i,a,null),E(_,c,$),E(_,o,$),g(o,f),D(u,f,null),m=!0},p(_,$){const V={};$&1&&(V.compact=_[0]),n.$set(V);const P={};$&1&&(P.compact=_[0]),i.$set(P);const L={};$&4&&(L.trailingIcon=_[2]?"chevron-up":"chevron-down"),$&8&&(L.disabled=!!_[3]),$&132&&(L.$$scope={dirty:$,ctx:_}),u.$set(L)},i(_){m||(p(n.$$.fragment,_),p(i.$$.fragment,_),p(u.$$.fragment,_),m=!0)},o(_){h(n.$$.fragment,_),h(i.$$.fragment,_),h(u.$$.fragment,_),m=!1},d(_){_&&(d(e),d(l),d(t),d(r),d(a),d(c),d(o)),A(n),A(i),A(u)}}}function lr(s){let e,l;return e=new dl({props:{slot:"headers",$$slots:{default:[tr]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function nr(s){let e,l;return e=new Ht({props:{updating:s[1],class:"w-full table-fixed","data-testid":"event-summary-table",$$slots:{headers:[lr],caption:[xn],default:[Zn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,[n]){const r={};n&2&&(r.updating=t[1]),n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function rr(s,e,l){let t,n,r;ne(s,be,_=>l(5,n=_)),ne(s,cl,_=>l(8,r=_));let{$$slots:a={},$$scope:i}=e,{compact:c=!1}=e,{updating:o=!1}=e,f=r==="true";const u=Ot();function m(){l(2,f=!f),u("expandAll",{expanded:f?"true":"false"})}return s.$$set=_=>{"compact"in _&&l(0,c=_.compact),"updating"in _&&l(1,o=_.updating),"$$scope"in _&&l(7,i=_.$$scope)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=n.params.id)},[c,o,f,t,m,n,a,i]}class Hr extends oe{constructor(e){super(),fe(this,e,rr,nr,ie,{compact:0,updating:1})}}export{Hr as E,Fr as a,Rr as b}; +import{s as ie,e as b,b as k,d as w,g as d,j as v,k as E,l as g,v as se,p as yt,a as y,h as G,m as Ue,F as Je,u as Gt,q as Nt,r as Lt,H as W,B as Kt,x as U,o as Ot,t as M,f as F,n as H,c as ne,z as Ae,A as Oe,a0 as Xt,L as Yt,V as Zt,$ as xt,w as He,y as el}from"./scheduler.AWtTlMeO.js";import{S as oe,i as fe,g as z,b as h,e as Q,t as p,c as I,a as T,m as D,d as A,f as tl,h as ll}from"./index.91lpp7Ff.js";import{E as nl}from"./empty-state.cnx-bHYa.js";import{L as rl}from"./loading.ZhwIBa5k.js";import{t as N}from"./translate.HrioCK44.js";import{g as sl,a as al}from"./spread.rEx3vLA9.js";import{f as il}from"./index.VrdFapBL.js";import{p as be}from"./stores.meYYndLY.js";import{I as ue}from"./icon.hlu3-iXK.js";import{L as $e}from"./link.DdkOc0EY.js";import{d as ol,e as fl,f as jt,h as Mt,i as Ft,j as je,k as Be,l as qe,m as We,n as ve,o as xe}from"./index._MTkGJor.js";import{b as Le,a as ze,e as cl}from"./event-view.qxFByNIO.js";import{t as ul,r as ml,f as et}from"./time-format.Z3EDfPl8.js";import{c as tt,d as Rt,e as _l}from"./format-event-attributes.M8uwiSGk.js";import{p as lt}from"./format-time.6T8OwT4v.js";import{i as Me}from"./is-event-type._gd1DXTE.js";import{v as Fe,b as ge,w as Qe}from"./route-for.ezVRK9wE.js";import{e as ae,u as Pe,o as Ce}from"./each.QPLN4A2E.js";import{t as nt}from"./tw-merge.NbP7EmZe.js";import{C as Se}from"./code-block.XXHS15kp.js";import{C as Te}from"./index.CY49Yv_w.js";import{f as X}from"./format-camel-case.z6e2GZpK.js";import{P as Re}from"./payload-decoder.YeQWFAju.js";import{T as Ht,a as dl}from"./table-header-row.xBvT5iU5.js";import{M as Bt,a as qt,b as Wt,c as Ve}from"./menu.RlaY2l8z.js";import{M as zt}from"./menu-divider.ULnGNTZu.js";import{u as Qt}from"./update-query-parameters.DBfsiMjL.js";import{B as pl}from"./button.bjyERRn9.js";import{w as hl}from"./entry.Yz1YyohR.js";import{C as gl}from"./checkbox.FE5a4WJj.js";import{c as $l,a as vl}from"./get-event-categorization.6rt2m6KE.js";import{e as bl}from"./filters.cUjieRhB.js";import{t as kl}from"./versions.l3g3WUor.js";import{i as wl}from"./version-check.HLZIw2tw.js";function El(s){let e,l;return e=new nl({props:{title:s[1],content:s[2]}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.title=t[1]),n&4&&(r.content=t[2]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Il(s){let e,l;return e=new rl({}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p:se,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Tl(s){let e,l,t,n,r;const a=[Il,El],i=[];function c(o,f){return o[0]?0:1}return t=c(s),n=i[t]=a[t](s),{c(){e=b("tr"),l=b("td"),n.c(),this.h()},l(o){e=k(o,"TR",{class:!0});var f=w(e);l=k(f,"TD",{colspan:!0});var u=w(l);n.l(u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"colspan","6"),v(e,"class","row svelte-1q8wnnl")},m(o,f){E(o,e,f),g(e,l),i[t].m(l,null),r=!0},p(o,[f]){let u=t;t=c(o),t===u?i[t].p(o,f):(z(),h(i[u],1,1,()=>{i[u]=null}),Q(),n=i[t],n?n.p(o,f):(n=i[t]=a[t](o),n.c()),p(n,1),n.m(l,null))},i(o){r||(p(n),r=!0)},o(o){h(n),r=!1},d(o){o&&d(e),i[t].d()}}}function Dl(s,e,l){let{loading:t=!1}=e,{title:n=N("events.empty-state-title")}=e,{content:r=N("events.empty-state-description")}=e;return s.$$set=a=>{"loading"in a&&l(0,t=a.loading),"title"in a&&l(1,n=a.title),"content"in a&&l(2,r=a.content)},[t,n,r]}class Fr extends oe{constructor(e){super(),fe(this,e,Dl,Tl,ie,{loading:0,title:1,content:2})}}function rt(s){let e,l,t;return l=new ue({props:{name:s[1]?"spinner":s[3]}}),{c(){e=b("span"),I(l.$$.fragment),this.h()},l(n){e=k(n,"SPAN",{});var r=w(e);T(l.$$.fragment,r),r.forEach(d),this.h()},h(){W(e,"animate-spin",s[1])},m(n,r){E(n,e,r),D(l,e,null),t=!0},p(n,r){const a={};r&10&&(a.name=n[1]?"spinner":n[3]),l.$set(a),(!t||r&2)&&W(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&d(e),A(l)}}}function Al(s){let e,l,t,n,r,a,i=s[3]&&rt(s);const c=s[6].default,o=yt(c,s,s[5],null);return{c(){e=b("button"),i&&i.c(),l=y(),o&&o.c(),this.h()},l(f){e=k(f,"BUTTON",{class:!0});var u=w(e);i&&i.l(u),l=G(u),o&&o.l(u),u.forEach(d),this.h()},h(){v(e,"class",t=nt("surface-subtle flex items-center justify-center gap-2 rounded-full px-3 py-1 text-sm",s[2]&&"bg-interactive text-white",s[4])),e.disabled=s[0]},m(f,u){E(f,e,u),i&&i.m(e,null),g(e,l),o&&o.m(e,null),n=!0,r||(a=Ue(e,"click",Je(s[7])),r=!0)},p(f,[u]){f[3]?i?(i.p(f,u),u&8&&p(i,1)):(i=rt(f),i.c(),p(i,1),i.m(e,l)):i&&(z(),h(i,1,1,()=>{i=null}),Q()),o&&o.p&&(!n||u&32)&&Gt(o,c,f,f[5],n?Lt(c,f[5],u,null):Nt(f[5]),null),(!n||u&20&&t!==(t=nt("surface-subtle flex items-center justify-center gap-2 rounded-full px-3 py-1 text-sm",f[2]&&"bg-interactive text-white",f[4])))&&v(e,"class",t),(!n||u&1)&&(e.disabled=f[0])},i(f){n||(p(i),p(o,f),n=!0)},o(f){h(i),h(o,f),n=!1},d(f){f&&d(e),i&&i.d(),o&&o.d(f),r=!1,a()}}}function Vl(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:a=!1}=e,{active:i=!1}=e,{icon:c=null}=e,{class:o=""}=e;function f(u){Kt.call(this,s,u)}return s.$$set=u=>{"disabled"in u&&l(0,r=u.disabled),"loading"in u&&l(1,a=u.loading),"active"in u&&l(2,i=u.active),"icon"in u&&l(3,c=u.icon),"class"in u&&l(4,o=u.class),"$$scope"in u&&l(5,n=u.$$scope)},[r,a,i,c,o,n,t,f]}class Pl extends oe{constructor(e){super(),fe(this,e,Vl,Al,ie,{disabled:0,loading:1,active:2,icon:3,class:4})}}function st(s,e,l){const t=s.slice();t[5]=e[l][0],t[6]=e[l][1];const n=t[1]===t[5];return t[7]=n,t}function at(s){let e,l,t=[],n=new Map,r,a=ae(Object.entries(s[0]));const i=c=>c[5];for(let c=0;c{r=null}),Q())},i(a){n||(p(r),n=!0)},o(a){h(r),n=!1},d(a){a&&(d(l),d(t)),r&&r.d(a)}}}function Sl(s){let e,l,t=s[2]>1&&at(s);return{c(){t&&t.c(),e=U()},l(n){t&&t.l(n),e=U()},m(n,r){t&&t.m(n,r),E(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=at(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(z(),h(t,1,1,()=>{t=null}),Q())},i(n){l||(p(t),l=!0)},o(n){h(t),l=!1},d(n){n&&d(e),t&&t.d(n)}}}function yl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const a=Ot(),i=c=>a("pillChange",{key:c});return s.$$set=c=>{"attributeGrouping"in c&&l(0,n=c.attributeGrouping),"activePill"in c&&l(1,r=c.activePill)},s.$$.update=()=>{s.$$.dirty&1&&l(2,t=Object.values(n).reduce((c,o)=>(o.length&&(c+=1),c),0))},[n,r,t,a,i]}class Ut extends oe{constructor(e){super(),fe(this,e,yl,Sl,ie,{attributeGrouping:0,activePill:1})}}function Gl(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("p"),i=b("span"),c=M(s[1]),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"P",{class:!0});var m=w(a);i=k(m,"SPAN",{class:!0});var _=w(i);c=F(_,s[1]),_.forEach(d),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(i,"class","select-all px-2 svelte-n0wabv"),W(i,"badge",!je(s[0])),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),g(a,i),g(i,c)},p(o,f){f&1&&t!==(t=X(o[0])+"")&&H(n,t),f&2&&H(c,o[1]),f&1&&W(i,"badge",!je(o[0]))},i:se,o:se,d(o){o&&d(e)}}}function Nl(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Fl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&2050&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function Ll(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Hl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&2054&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function Ol(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[ql]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(a,"class","text-sm"),v(e,"class","content detail-row svelte-n0wabv")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&2050&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function jl(s){let e,l,t,n=X(s[0])+"",r,a,i,c,o,f,u;const m=[Ql,zl,Wl],_=[];function $(P,L){var B;return(B=P[1])!=null&&B.payloads?0:P[0]==="searchAttributes"?1:2}i=$(s),c=_[i]=m[i](s);let V=s[5]&&!s[3]&&ft(s);return{c(){e=b("div"),l=b("div"),t=b("p"),r=M(n),a=y(),c.c(),f=y(),V&&V.c(),this.h()},l(P){e=k(P,"DIV",{class:!0});var L=w(e);l=k(L,"DIV",{class:!0});var B=w(l);t=k(B,"P",{class:!0});var le=w(t);r=F(le,n),le.forEach(d),a=G(B),c.l(B),B.forEach(d),f=G(L),V&&V.l(L),L.forEach(d),this.h()},h(){v(t,"class","text-sm"),v(l,"class",o="flex flex-col "+(s[5]?"lg:w-1/2":"")),v(e,"class","content code-block-row svelte-n0wabv"),W(e,"code-with-stack-trace",s[5])},m(P,L){E(P,e,L),g(e,l),g(l,t),g(t,r),g(l,a),_[i].m(l,null),g(e,f),V&&V.m(e,null),u=!0},p(P,L){(!u||L&1)&&n!==(n=X(P[0])+"")&&H(r,n);let B=i;i=$(P),i===B?_[i].p(P,L):(z(),h(_[B],1,1,()=>{_[B]=null}),Q(),c=_[i],c?c.p(P,L):(c=_[i]=m[i](P),c.c()),p(c,1),c.m(l,null)),(!u||L&32&&o!==(o="flex flex-col "+(P[5]?"lg:w-1/2":"")))&&v(l,"class",o),P[5]&&!P[3]?V?(V.p(P,L),L&40&&p(V,1)):(V=ft(P),V.c(),p(V,1),V.m(e,null)):V&&(z(),h(V,1,1,()=>{V=null}),Q()),(!u||L&32)&&W(e,"code-with-stack-trace",P[5])},i(P){u||(p(c),p(V),u=!0)},o(P){h(c),h(V),u=!1},d(P){P&&d(e),_[i].d(),V&&V.d()}}}function Ml(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function Fl(s){let e,l;return e=new $e({props:{href:Fe({namespace:s[7],queue:s[1]}),$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Fe({namespace:t[7],queue:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Rl(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function Hl(s){var t;let e,l;return e=new $e({props:{href:ge({namespace:((t=s[2])==null?void 0:t.namespace)||s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Rl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){var i;const a={};r&4&&(a.href=ge({namespace:((i=n[2])==null?void 0:i.namespace)||n[7],workflow:n[2].workflowExecutionWorkflowId,run:n[2].workflowExecutionRunId})),r&2050&&(a.$$scope={dirty:r,ctx:n}),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){A(e,n)}}}function Bl(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function ql(s){let e,l;return e=new $e({props:{href:ge({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[Bl]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ge({namespace:t[7],workflow:t[6],run:t[1]})),n&2050&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Wl(s){let e,l;return e=new Re({props:{value:s[4],$$slots:{default:[Ul,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value=t[4]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function zl(s){let e,l;return e=new Re({props:{key:"searchAttributes",value:{searchAttributes:s[4]},$$slots:{default:[Jl,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.value={searchAttributes:t[4]}),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Ql(s){let e,l;return e=new Re({props:{value:s[1],key:"payloads",$$slots:{default:[Kl,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.value=t[1]),n&3112&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Ul(s){let e,l;return e=new Se({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Jl(s){let e,l;return e=new Se({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Kl(s){let e,l;return e=new Se({props:{content:s[10],class:s[5]?"mb-2":"",maxHeight:384,inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1024&&(r.content=t[10]),n&32&&(r.class=t[5]?"mb-2":""),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function ft(s){let e,l,t=N("workflows.call-stack-tab")+"",n,r,a,i;return a=new Se({props:{content:s[5],language:"text",class:"mb-2 h-full lg:pr-2",copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),I(a.$$.fragment),this.h()},l(c){e=k(c,"DIV",{class:!0});var o=w(e);l=k(o,"P",{class:!0});var f=w(l);n=F(f,t),f.forEach(d),r=G(o),T(a.$$.fragment,o),o.forEach(d),this.h()},h(){v(l,"class","text-sm"),v(e,"class","flex flex-col lg:w-1/2")},m(c,o){E(c,e,o),g(e,l),g(l,n),g(e,r),D(a,e,null),i=!0},p(c,o){const f={};o&32&&(f.content=c[5]),a.$set(f)},i(c){i||(p(a.$$.fragment,c),i=!0)},o(c){h(a.$$.fragment,c),i=!1},d(c){c&&d(e),A(a)}}}function Xl(s){let e,l,t,n,r,a,i,c;const o=[jl,Ol,Ll,Nl,Gl],f=[];function u(m,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof m[1]=="object"?0:(l==null&&(l=!!jt(m[0])),l?1:(t==null&&(t=!!Mt(m[0],m[2])),t?2:(n==null&&(n=!!Ft(m[0])),n?3:4)))}return r=u(s,-1),a=f[r]=o[r](s),{c(){e=b("div"),a.c(),this.h()},l(m){e=k(m,"DIV",{class:!0});var _=w(e);a.l(_),_.forEach(d),this.h()},h(){v(e,"class",i="row "+s[8].class+" svelte-n0wabv")},m(m,_){E(m,e,_),f[r].m(e,null),c=!0},p(m,[_]){let $=r;r=u(m,_),r===$?f[r].p(m,_):(z(),h(f[$],1,1,()=>{f[$]=null}),Q(),a=f[r],a?a.p(m,_):(a=f[r]=o[r](m),a.c()),p(a,1),a.m(e,null)),(!c||_&256&&i!==(i="row "+m[8].class+" svelte-n0wabv"))&&v(e,"class",i)},i(m){c||(p(a),c=!0)},o(m){h(a),c=!1},d(m){m&&d(e),f[r].d()}}}function Yl(s,e,l){let t,n,r;ne(s,be,m=>l(9,r=m));let{key:a}=e,{value:i}=e,{attributes:c}=e,{inline:o=!1}=e;const{workflow:f,namespace:u}=r.params;return s.$$set=m=>{l(8,e=Ae(Ae({},e),Oe(m))),"key"in m&&l(0,a=m.key),"value"in m&&l(1,i=m.value),"attributes"in m&&l(2,c=m.attributes),"inline"in m&&l(3,o=m.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=ol(i)),s.$$.dirty&16&&l(5,n=fl(t))},e=Oe(e),[a,i,c,o,t,n,f,u,e]}class Jt extends oe{constructor(e){super(),fe(this,e,Yl,Xl,ie,{key:0,value:1,attributes:2,inline:3})}}function ct(s,e,l){const t=s.slice();return t[8]=e[l][0],t[9]=e[l][1],t}function Zl(s){let e=s[8]+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[8]+"")&&H(l,e)},d(t){t&&d(l)}}}function ut(s,e){let l,t,n,r,a,i,c,o,f,u=(Me(e[9])?"LocalActivity":e[9].eventType)+"",m,_,$,V,P,L,B;i=new $e({props:{class:"truncate",href:Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]}),$$slots:{default:[Zl]},$$scope:{ctx:e}}});function le(){return e[7](e[8])}return{key:s,first:null,c(){l=b("tr"),t=b("td"),n=y(),r=b("td"),a=b("p"),I(i.$$.fragment),c=y(),o=b("td"),f=b("p"),m=M(u),_=y(),$=b("td"),V=y(),this.h()},l(O){l=k(O,"TR",{class:!0});var R=w(l);t=k(R,"TD",{class:!0}),w(t).forEach(d),n=G(R),r=k(R,"TD",{class:!0});var C=w(r);a=k(C,"P",{class:!0});var te=w(a);T(i.$$.fragment,te),te.forEach(d),C.forEach(d),c=G(R),o=k(R,"TD",{});var me=w(o);f=k(me,"P",{class:!0});var ce=w(f);m=F(ce,u),ce.forEach(d),me.forEach(d),_=G(R),$=k(R,"TD",{}),w($).forEach(d),V=G(R),R.forEach(d),this.h()},h(){v(t,"class","w-1/12"),v(a,"class","truncate text-sm text-slate-500 md:text-base"),v(r,"class","w-24"),v(f,"class","event-type truncate text-sm md:text-base svelte-jfcgn1"),v(l,"class","row svelte-jfcgn1"),W(l,"active",e[8]===e[1]),W(l,"failure",Be(e[9])),W(l,"canceled",qe(e[9])),W(l,"terminated",We(e[9])),this.first=l},m(O,R){E(O,l,R),g(l,t),g(l,n),g(l,r),g(r,a),D(i,a,null),g(l,c),g(l,o),g(o,f),g(f,m),g(l,_),g(l,$),g(l,V),P=!0,L||(B=Ue(l,"click",Je(Xt(le))),L=!0)},p(O,R){e=O;const C={};R&57&&(C.href=Qe({eventId:e[8],namespace:e[3],workflow:e[5],run:e[4]})),R&4097&&(C.$$scope={dirty:R,ctx:e}),i.$set(C),(!P||R&1)&&u!==(u=(Me(e[9])?"LocalActivity":e[9].eventType)+"")&&H(m,u),(!P||R&3)&&W(l,"active",e[8]===e[1]),(!P||R&1)&&W(l,"failure",Be(e[9])),(!P||R&1)&&W(l,"canceled",qe(e[9])),(!P||R&1)&&W(l,"terminated",We(e[9]))},i(O){P||(p(i.$$.fragment,O),P=!0)},o(O){h(i.$$.fragment,O),P=!1},d(O){O&&d(l),A(i),L=!1,B()}}}function xl(s){let e=[],l=new Map,t,n,r=ae([...s[0].events].reverse());const a=i=>i[8];for(let i=0;il(6,a=u));let{eventGroup:i}=e,{selectedId:c}=e,{onGroupClick:o}=e;const f=u=>o(u);return s.$$set=u=>{"eventGroup"in u&&l(0,i=u.eventGroup),"selectedId"in u&&l(1,c=u.selectedId),"onGroupClick"in u&&l(2,o=u.onGroupClick)},s.$$.update=()=>{s.$$.dirty&64&&l(5,{workflow:t,run:n,namespace:r}=a.params,t,(l(4,n),l(6,a)),(l(3,r),l(6,a)))},[i,c,o,r,n,t,a,f]}class ln extends oe{constructor(e){super(),fe(this,e,tn,en,ie,{eventGroup:0,selectedId:1,onGroupClick:2})}}function mt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function _t(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function nn(s){let e,l,t,n=[],r=new Map,a;l=new Ut({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let i=ae(s[6]);const c=o=>o[10];for(let o=0;om[10];for(let m=0;m{a=null}),Q())},i(c){r||(p(a),r=!0)},o(c){h(a),r=!1},d(c){c&&(d(l),d(n)),a&&a.d(c)}}}function ht(s){let e,l;return e=new Jt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&64&&(r.key=t[10]),n&64&&(r.value=t[11]),n&8&&(r.attributes=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function gt(s,e){var i;let l,t=(i=e[4][e[5]])==null?void 0:i.includes(e[10]),n,r,a=t&&ht(e);return{key:s,first:null,c(){l=U(),a&&a.c(),n=U(),this.h()},l(c){l=U(),a&&a.l(c),n=U(),this.h()},h(){this.first=l},m(c,o){E(c,l,o),a&&a.m(c,o),E(c,n,o),r=!0},p(c,o){var f;e=c,o&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?a?(a.p(e,o),o&112&&p(a,1)):(a=ht(e),a.c(),p(a,1),a.m(n.parentNode,n)):a&&(z(),h(a,1,1,()=>{a=null}),Q())},i(c){r||(p(a),r=!0)},o(c){h(a),r=!1},d(c){c&&(d(l),d(n)),a&&a.d(c)}}}function sn(s){let e,l,t,n,r;const a=[rn,nn],i=[];function c(o,f){return f&6&&(e=null),e==null&&(e=!!(o[2]&&ve(o[1]))),e?0:1}return l=c(s,-1),t=i[l]=a[l](s),{c(){t.c(),n=U()},l(o){t.l(o),n=U()},m(o,f){i[l].m(o,f),E(o,n,f),r=!0},p(o,[f]){let u=l;l=c(o,f),l===u?i[l].p(o,f):(z(),h(i[u],1,1,()=>{i[u]=null}),Q(),t=i[l],t?t.p(o,f):(t=i[l]=a[l](o),t.c()),p(t,1),t.m(n.parentNode,n))},i(o){r||(p(t),r=!0)},o(o){h(t),r=!1},d(o){o&&d(n),i[l].d(o)}}}function an(s,e,l){let t,n,r,a,{event:i}=e,{currentEvent:c}=e,{compact:o=!1}=e,{selectedId:f}=e;const u=_=>{l(5,r=_.detail.key)},m=_=>l(0,f=_);return s.$$set=_=>{"event"in _&&l(1,i=_.event),"currentEvent"in _&&l(9,c=_.currentEvent),"compact"in _&&l(2,o=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Rt(c,{compact:o})),s.$$.dirty&10&&l(4,n=_l(i,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,a=Object.entries(t))},[f,i,o,t,n,r,a,u,m,c]}class on extends oe{constructor(e){super(),fe(this,e,an,sn,ie,{event:1,currentEvent:9,compact:2,selectedId:0})}}function fn(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("p"),i=b("span"),c=M(s[1]),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"P",{class:!0});var m=w(a);i=k(m,"SPAN",{class:!0});var _=w(i);c=F(_,s[1]),_.forEach(d),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(i,"class","w-full select-all text-slate-700 svelte-17d0us2"),W(i,"badge",!je(s[0])),v(a,"class","truncate text-right text-sm xl:text-left"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),g(a,i),g(i,c)},p(o,f){f&1&&t!==(t=X(o[0])+"")&&H(n,t),f&2&&H(c,o[1]),f&1&&W(i,"badge",!je(o[0]))},i:se,o:se,d(o){o&&d(e)}}}function cn(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],$$slots:{default:[pn]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&514&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function un(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[gn]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&518&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function mn(s){let e,l,t=X(s[0])+"",n,r,a,i,c;return i=new Te({props:{copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[vn]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),a=b("div"),I(i.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=w(e);l=k(f,"P",{class:!0});var u=w(l);n=F(u,t),u.forEach(d),r=G(f),a=k(f,"DIV",{class:!0});var m=w(a);T(i.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","mr-3 truncate text-sm"),v(a,"class","truncate text-sm"),v(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),g(e,l),g(l,n),g(e,r),g(e,a),D(i,a,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=X(o[0])+"")&&H(n,t);const u={};f&2&&(u.content=o[1]),f&514&&(u.$$scope={dirty:f,ctx:o}),i.$set(u)},i(o){c||(p(i.$$.fragment,o),c=!0)},o(o){h(i.$$.fragment,o),c=!1},d(o){o&&d(e),A(i)}}}function _n(s){let e,l,t=X(s[0])+"",n,r,a,i;return a=new Re({props:{value:s[1],key:"payloads",$$slots:{default:[bn,({decodedValue:c})=>({8:c}),({decodedValue:c})=>c?256:0]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=M(t),r=y(),I(a.$$.fragment),this.h()},l(c){e=k(c,"DIV",{class:!0});var o=w(e);l=k(o,"P",{class:!0});var f=w(l);n=F(f,t),f.forEach(d),r=G(o),T(a.$$.fragment,o),o.forEach(d),this.h()},h(){v(l,"class","min-w-fit text-sm"),v(e,"class","flex w-full flex-wrap items-center justify-between gap-1 pr-1 xl:flex-nowrap xl:gap-4")},m(c,o){E(c,e,o),g(e,l),g(l,n),g(e,r),D(a,e,null),i=!0},p(c,o){(!i||o&1)&&t!==(t=X(c[0])+"")&&H(n,t);const f={};o&2&&(f.value=c[1]),o&776&&(f.$$scope={dirty:o,ctx:c}),a.$set(f)},i(c){i||(p(a.$$.fragment,c),i=!0)},o(c){h(a.$$.fragment,c),i=!1},d(c){c&&d(e),A(a)}}}function dn(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function pn(s){let e,l;return e=new $e({props:{class:"truncate",href:Fe({namespace:s[5],queue:s[1]}),$$slots:{default:[dn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Fe({namespace:t[5],queue:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function hn(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function gn(s){let e,l;return e=new $e({props:{class:"truncate",href:ge({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[hn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=ge({namespace:t[5],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function $n(s){let e;return{c(){e=M(s[1])},l(l){e=F(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&H(e,l[1])},d(l){l&&d(e)}}}function vn(s){let e,l;return e=new $e({props:{class:"truncate",href:ge({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[$n]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ge({namespace:t[5],workflow:t[4],run:t[1]})),n&514&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function bn(s){let e,l;return e=new Se({props:{content:s[8],inline:s[3],copyIconTitle:N("common.copy-icon-title"),copySuccessIconTitle:N("common.copy-success-icon-title")}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&256&&(r.content=t[8]),n&8&&(r.inline=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function kn(s){let e,l,t,n,r,a,i,c;const o=[_n,mn,un,cn,fn],f=[];function u(m,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof m[1]=="object"?0:(l==null&&(l=!!jt(m[0])),l?1:(t==null&&(t=!!Mt(m[0],m[2])),t?2:(n==null&&(n=!!Ft(m[0])),n?3:4)))}return r=u(s,-1),a=f[r]=o[r](s),{c(){e=b("div"),a.c(),this.h()},l(m){e=k(m,"DIV",{class:!0});var _=w(e);a.l(_),_.forEach(d),this.h()},h(){v(e,"class",i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-17d0us2")},m(m,_){E(m,e,_),f[r].m(e,null),c=!0},p(m,[_]){let $=r;r=u(m,_),r===$?f[r].p(m,_):(z(),h(f[$],1,1,()=>{f[$]=null}),Q(),a=f[r],a?a.p(m,_):(a=f[r]=o[r](m),a.c()),p(a,1),a.m(e,null)),(!c||_&64&&i!==(i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+m[6].class+" svelte-17d0us2"))&&v(e,"class",i)},i(m){c||(p(a),c=!0)},o(m){h(a),c=!1},d(m){m&&d(e),f[r].d()}}}function wn(s,e,l){let t;ne(s,be,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:a}=e,{inline:i=!1}=e;const{workflow:c,namespace:o}=t.params;return s.$$set=f=>{l(6,e=Ae(Ae({},e),Oe(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,a=f.attributes),"inline"in f&&l(3,i=f.inline)},e=Oe(e),[n,r,a,i,c,o,e]}class En extends oe{constructor(e){super(),fe(this,e,wn,kn,ie,{key:0,value:1,attributes:2,inline:3})}}function In(s){let e=s[0].id+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[0].id+"")&&H(l,e)},d(t){t&&d(l)}}}function Tn(s){var n;let e,l=et((n=s[0])==null?void 0:n.eventTime,s[14],{relative:s[15]})+"",t;return{c(){e=b("p"),t=M(l),this.h()},l(r){e=k(r,"P",{class:!0});var a=w(e);t=F(a,l),a.forEach(d),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal md:text-base")},m(r,a){E(r,e,a),g(e,t)},p(r,a){var i;a&49153&&l!==(l=et((i=r[0])==null?void 0:i.eventTime,r[14],{relative:r[15]})+"")&&H(t,l)},i:se,o:se,d(r){r&&d(e)}}}function Dn(s){let e,l,t,n,r=s[9]&&$t(s),a=s[8]&&s[8]!=="0ms"&&vt(s);return{c(){e=b("p"),r&&r.c(),l=y(),a&&a.c(),t=U(),this.h()},l(i){e=k(i,"P",{class:!0});var c=w(e);r&&r.l(c),c.forEach(d),l=G(i),a&&a.l(i),t=U(),this.h()},h(){v(e,"class","break-word truncate text-sm md:whitespace-normal")},m(i,c){E(i,e,c),r&&r.m(e,null),E(i,l,c),a&&a.m(i,c),E(i,t,c),n=!0},p(i,c){i[9]?r?r.p(i,c):(r=$t(i),r.c(),r.m(e,null)):r&&(r.d(1),r=null),i[8]&&i[8]!=="0ms"?a?(a.p(i,c),c&256&&p(a,1)):(a=vt(i),a.c(),p(a,1),a.m(t.parentNode,t)):a&&(z(),h(a,1,1,()=>{a=null}),Q())},i(i){n||(p(a),n=!0)},o(i){h(a),n=!1},d(i){i&&(d(e),d(l),d(t)),r&&r.d(),a&&a.d(i)}}}function $t(s){let e=s[12]?"-":"+",l,t;return{c(){l=M(e),t=M(s[9])},l(n){l=F(n,e),t=F(n,s[9])},m(n,r){E(n,l,r),E(n,t,r)},p(n,r){r&4096&&e!==(e=n[12]?"-":"+")&&H(l,e),r&512&&H(t,n[9])},d(n){n&&(d(l),d(t))}}}function vt(s){let e,l,t,n,r,a;return l=new ue({props:{class:"inline",name:"clock"}}),{c(){e=b("div"),I(l.$$.fragment),t=y(),n=b("p"),r=M(s[8]),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);T(l.$$.fragment,c),t=G(c),n=k(c,"P",{class:!0});var o=w(n);r=F(o,s[8]),o.forEach(d),c.forEach(d),this.h()},h(){v(n,"class","break-word truncate text-sm md:whitespace-normal"),v(e,"class","flex flex-row items-center gap-1")},m(i,c){E(i,e,c),D(l,e,null),g(e,t),g(e,n),g(n,r),a=!0},p(i,c){(!a||c&256)&&H(r,i[8])},i(i){a||(p(l.$$.fragment,i),a=!0)},o(i){h(l.$$.fragment,i),a=!1},d(i){i&&d(e),A(l)}}}function bt(s){let e,l;return e=new ue({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function kt(s){let e,l;return e=new ue({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function wt(s){let e,l;return e=new ue({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Et(s){let e,l,t;return l=new ue({props:{class:"inline",name:"chevron-up"}}),{c(){e=b("div"),I(l.$$.fragment)},l(n){e=k(n,"DIV",{});var r=w(e);T(l.$$.fragment,r),r.forEach(d)},m(n,r){E(n,e,r),D(l,e,null),t=!0},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&d(e),A(l)}}}function It(s){let e,l,t,n,r,a,i,c;const o=[xe(s[6]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let f={};for(let u=0;utl(t,"selectedId",i)),{c(){e=b("tr"),l=b("td"),I(t.$$.fragment),this.h()},l(o){e=k(o,"TR",{class:!0});var f=w(e);l=k(f,"TD",{class:!0,colspan:!0});var u=w(l);T(t.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){v(l,"class","expanded-cell svelte-by09h1"),v(l,"colspan","6"),v(e,"class","svelte-by09h1"),W(e,"typedError",s[3])},m(o,f){E(o,e,f),g(e,l),D(t,l,null),a=!0},p(o,f){const u={};f&1&&(u.event=o[0]),f&64&&(u.currentEvent=o[6]),f&2&&(u.compact=o[1]),!n&&f&32&&(n=!0,u.selectedId=o[5],Zt(()=>n=!1)),t.$set(u),(!a||f&8)&&W(e,"typedError",o[3])},i(o){a||(p(t.$$.fragment,o),o&&(r||xt(()=>{r=ll(e,il,{}),r.start()})),a=!0)},o(o){h(t.$$.fragment,o),a=!1},d(o){o&&d(e),A(t)}}}function An(s){let e,l,t,n,r,a,i,c,o,f,u,m,_,$,V,P,L,B,le,O=(ve(s[0])?s[0].displayName:Me(s[0])?"LocalActivity":s[0].name)+"",R,C,te,me,ce,de,_e,ke,pe,re,De,ye;r=new $e({props:{class:"truncate","data-testid":"link",href:s[13],$$slots:{default:[In]},$$scope:{ctx:s}}});const q=[Dn,Tn],he=[];function Ke(S,j){return S[11]?0:1}o=Ke(s),f=he[o]=q[o](s);let Y=s[1]&&s[17]&&bt(),Z=s[1]&&s[18]&&kt(),x=s[1]&&s[19]&&wt(),ee=s[7]&&Et(),J=!s[7]&&It(s),K=s[7]&&Tt(s);return{c(){e=b("tr"),l=b("td"),t=y(),n=b("td"),I(r.$$.fragment),a=y(),i=b("td"),c=b("div"),f.c(),u=y(),m=b("td"),_=b("div"),$=b("div"),Y&&Y.c(),V=y(),Z&&Z.c(),P=y(),x&&x.c(),L=y(),B=b("div"),le=b("p"),R=M(O),C=y(),ee&&ee.c(),me=y(),J&&J.c(),ce=y(),de=b("td"),ke=y(),K&&K.c(),pe=U(),this.h()},l(S){e=k(S,"TR",{class:!0,id:!0,"data-testid":!0});var j=w(e);l=k(j,"TD",{}),w(l).forEach(d),t=G(j),n=k(j,"TD",{class:!0});var we=w(n);T(r.$$.fragment,we),we.forEach(d),a=G(j),i=k(j,"TD",{class:!0});var Ee=w(i);c=k(Ee,"DIV",{class:!0});var Xe=w(c);f.l(Xe),Xe.forEach(d),Ee.forEach(d),u=G(j),m=k(j,"TD",{colspan:!0,class:!0});var Ye=w(m);_=k(Ye,"DIV",{class:!0});var Ge=w(_);$=k(Ge,"DIV",{});var Ie=w($);Y&&Y.l(Ie),V=G(Ie),Z&&Z.l(Ie),P=G(Ie),x&&x.l(Ie),Ie.forEach(d),L=G(Ge),B=k(Ge,"DIV",{class:!0});var Ne=w(B);le=k(Ne,"P",{class:!0});var Ze=w(le);R=F(Ze,O),Ze.forEach(d),C=G(Ne),ee&&ee.l(Ne),Ne.forEach(d),Ge.forEach(d),Ye.forEach(d),me=G(j),J&&J.l(j),ce=G(j),de=k(j,"TD",{}),w(de).forEach(d),j.forEach(d),ke=G(S),K&&K.l(S),pe=U(),this.h()},h(){v(n,"class","w-24 text-left"),v(c,"class","flex flex-col gap-0"),v(i,"class","text-left"),v(le,"class","event-name truncate text-sm font-semibold md:text-base svelte-by09h1"),v(B,"class","flex w-full items-center justify-between truncate"),v(_,"class","flex"),v(m,"colspan",te=s[7]?2:1),v(m,"class","text-right text-sm font-normal xl:text-left"),v(e,"class","row svelte-by09h1"),v(e,"id",_e=s[0].id),v(e,"data-testid","event-summary-row"),W(e,"expanded",s[7]&&!s[2]),W(e,"active",s[4]),W(e,"failure",s[17]),W(e,"canceled",s[18]),W(e,"terminated",s[19]),W(e,"typedError",s[3])},m(S,j){E(S,e,j),g(e,l),g(e,t),g(e,n),D(r,n,null),g(e,a),g(e,i),g(i,c),he[o].m(c,null),g(e,u),g(e,m),g(m,_),g(_,$),Y&&Y.m($,null),g($,V),Z&&Z.m($,null),g($,P),x&&x.m($,null),g(_,L),g(_,B),g(B,le),g(le,R),g(B,C),ee&&ee.m(B,null),g(e,me),J&&J.m(e,null),g(e,ce),g(e,de),E(S,ke,j),K&&K.m(S,j),E(S,pe,j),re=!0,De||(ye=Ue(e,"click",Je(s[16])),De=!0)},p(S,[j]){const we={};j&8192&&(we.href=S[13]),j&1073741825&&(we.$$scope={dirty:j,ctx:S}),r.$set(we);let Ee=o;o=Ke(S),o===Ee?he[o].p(S,j):(z(),h(he[Ee],1,1,()=>{he[Ee]=null}),Q(),f=he[o],f?f.p(S,j):(f=he[o]=q[o](S),f.c()),p(f,1),f.m(c,null)),S[1]&&S[17]?Y?j&2&&p(Y,1):(Y=bt(),Y.c(),p(Y,1),Y.m($,V)):Y&&(z(),h(Y,1,1,()=>{Y=null}),Q()),S[1]&&S[18]?Z?j&2&&p(Z,1):(Z=kt(),Z.c(),p(Z,1),Z.m($,P)):Z&&(z(),h(Z,1,1,()=>{Z=null}),Q()),S[1]&&S[19]?x?j&2&&p(x,1):(x=wt(),x.c(),p(x,1),x.m($,null)):x&&(z(),h(x,1,1,()=>{x=null}),Q()),(!re||j&1)&&O!==(O=(ve(S[0])?S[0].displayName:Me(S[0])?"LocalActivity":S[0].name)+"")&&H(R,O),S[7]?ee?j&128&&p(ee,1):(ee=Et(),ee.c(),p(ee,1),ee.m(B,null)):ee&&(z(),h(ee,1,1,()=>{ee=null}),Q()),(!re||j&128&&te!==(te=S[7]?2:1))&&v(m,"colspan",te),S[7]?J&&(z(),h(J,1,1,()=>{J=null}),Q()):J?(J.p(S,j),j&128&&p(J,1)):(J=It(S),J.c(),p(J,1),J.m(e,ce)),(!re||j&1&&_e!==(_e=S[0].id))&&v(e,"id",_e),(!re||j&132)&&W(e,"expanded",S[7]&&!S[2]),(!re||j&16)&&W(e,"active",S[4]),(!re||j&8)&&W(e,"typedError",S[3]),S[7]?K?(K.p(S,j),j&128&&p(K,1)):(K=Tt(S),K.c(),p(K,1),K.m(pe.parentNode,pe)):K&&(z(),h(K,1,1,()=>{K=null}),Q())},i(S){re||(p(r.$$.fragment,S),p(f),p(Y),p(Z),p(x),p(ee),p(J),p(K),re=!0)},o(S){h(r.$$.fragment,S),h(f),h(Y),h(Z),h(x),h(ee),h(J),h(K),re=!1},d(S){S&&(d(e),d(ke),d(pe)),A(r),he[o].d(),Y&&Y.d(),Z&&Z.d(),x&&x.d(),ee&&ee.d(),J&&J.d(),K&&K.d(S),De=!1,ye()}}}function Vn(s,e,l){let t,n,r,a,i,c,o,f,u,m,_,$,V,P,L,B,le;ne(s,Le,q=>l(26,V=q)),ne(s,ze,q=>l(27,P=q)),ne(s,be,q=>l(28,L=q)),ne(s,ul,q=>l(14,B=q)),ne(s,ml,q=>l(15,le=q));let{event:O}=e,{initialItem:R}=e,{compact:C=!1}=e,{expandAll:te=!1}=e,{typedError:me=!1}=e,{active:ce=!1}=e,{onRowClick:de=se}=e,_e=ve(O)?Array.from(O.events.keys()).pop():O.id;const ke=()=>{l(7,i=!i),de()},pe=Be(O),re=qe(O),De=We(O);function ye(q){_e=q,l(5,_e)}return s.$$set=q=>{"event"in q&&l(0,O=q.event),"initialItem"in q&&l(20,R=q.initialItem),"compact"in q&&l(1,C=q.compact),"expandAll"in q&&l(2,te=q.expandAll),"typedError"in q&&l(3,me=q.typedError),"active"in q&&l(4,ce=q.active),"onRowClick"in q&&l(21,de=q.onRowClick)},s.$$.update=()=>{s.$$.dirty&268435456&&l(24,{workflow:t,run:n,namespace:r}=L.params,t,(l(23,n),l(28,L)),(l(25,r),l(28,L))),s.$$.dirty&58720257&&l(13,a=Qe({eventId:O.id,namespace:r,workflow:t,run:n})),s.$$.dirty&4&&l(7,i=te),s.$$.dirty&134217728&&l(12,c=P==="descending"),s.$$.dirty&67108864&&l(22,o=V==="true"),s.$$.dirty&5242881&&l(11,f=o&&R&&O.id!==R.id),s.$$.dirty&3&&l(10,u=Rt(O,{compact:C})),s.$$.dirty&33&&l(6,m=ve(O)?O.events.get(_e):O),s.$$.dirty&1048641&&l(9,_=lt({start:R.eventTime,end:ve(O)?O.initialEvent.eventTime:m.eventTime,includeMilliseconds:!0})),s.$$.dirty&1&&l(8,$=ve(O)?lt({start:O.initialEvent.eventTime,end:O.lastEvent.eventTime,includeMilliseconds:!0}):"")},[O,C,te,me,ce,_e,m,i,$,_,u,f,c,a,B,le,ke,pe,re,De,R,de,o,n,t,r,V,P,L,ye]}class Rr extends oe{constructor(e){super(),fe(this,e,Vn,An,ie,{event:0,initialItem:20,compact:1,expandAll:2,typedError:3,active:4,onRowClick:21})}}const Pn=({compact:s,sortOrder:e,showElapsed:l})=>{if(!((s||e==="descending")&&l==="false"))return`${e}:${l}`};function Dt(s,e,l){const t=s.slice();return t[9]=e[l].option,t[10]=e[l].label,t}function Cn(s){let e,l,t,n=N("common.date-and-time")+"",r,a;return e=new ue({props:{class:"md:hidden",name:"clock"}}),{c(){I(e.$$.fragment),l=y(),t=b("span"),r=M(n),this.h()},l(i){T(e.$$.fragment,i),l=G(i),t=k(i,"SPAN",{class:!0});var c=w(t);r=F(c,n),c.forEach(d),this.h()},h(){v(t,"class","max-md:hidden")},m(i,c){D(e,i,c),E(i,l,c),E(i,t,c),g(t,r),a=!0},p:se,i(i){a||(p(e.$$.fragment,i),a=!0)},o(i){h(e.$$.fragment,i),a=!1},d(i){i&&(d(l),d(t)),A(e,i)}}}function Sn(s){let e=s[10]+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p:se,d(t){t&&d(l)}}}function At(s){let e,l;function t(){return s[7](s[9])}return e=new Ve({props:{selected:s[1]===s[9],$$slots:{default:[Sn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const a={};r&2&&(a.selected=s[1]===s[9]),r&8192&&(a.$$scope={dirty:r,ctx:s}),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){A(e,n)}}}function yn(s){let e=N("events.show-elapsed-time")+"",l;return{c(){l=M(e)},l(t){l=F(t,e)},m(t,n){E(t,l,n)},p:se,d(t){t&&d(l)}}}function Gn(s){let e,l,t,n,r,a=ae(s[3]),i=[];for(let o=0;oh(i[o],1,1,()=>{i[o]=null});return l=new zt({}),n=new Ve({props:{selected:s[0]==="true",$$slots:{default:[yn]},$$scope:{ctx:s}}}),n.$on("click",s[5]),{c(){for(let o=0;ol(0,n=m)),ne(s,ze,m=>l(1,r=m)),ne(s,be,m=>l(8,a=m));let{compact:i}=e,c=[{label:N("events.sort-ascending"),option:"ascending"},{label:N("events.sort-descending"),option:"descending"}];const o=m=>{He(ze,r=m,r),Qt({parameter:"sort",value:m,url:a.url})},f=()=>{n==="true"?He(Le,n="false",n):He(Le,n="true",n)},u=m=>o(m);return s.$$set=m=>{"compact"in m&&l(6,i=m.compact)},s.$$.update=()=>{s.$$.dirty&67&&l(2,t=Pn({compact:i,sortOrder:r,showElapsed:n}))},[n,r,t,c,o,f,i,u]}class jn extends oe{constructor(e){super(),fe(this,e,On,Ln,ie,{compact:6})}}function Vt(s,e,l){const t=s.slice();t[19]=e[l];const n=!!t[9].find(function(...a){return s[18](t[19],...a)});return t[20]=n,t}function Pt(s){let e,l;return e=new ue({props:{class:"md:hidden",name:s[4]}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&16&&(r.name=t[4]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Mn(s){let e,l,t,n,r=s[4]&&Pt(s);return{c(){r&&r.c(),e=y(),l=b("span"),t=M(s[1]),this.h()},l(a){r&&r.l(a),e=G(a),l=k(a,"SPAN",{class:!0});var i=w(l);t=F(i,s[1]),i.forEach(d),this.h()},h(){v(l,"class","max-md:hidden")},m(a,i){r&&r.m(a,i),E(a,e,i),E(a,l,i),g(l,t),n=!0},p(a,i){a[4]?r?(r.p(a,i),i&16&&p(r,1)):(r=Pt(a),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(z(),h(r,1,1,()=>{r=null}),Q()),(!n||i&2)&&H(t,a[1])},i(a){n||(p(r),n=!0)},o(a){h(r),n=!1},d(a){a&&(d(e),d(l)),r&&r.d(a)}}}function Ct(s){let e,l;return e=new ue({props:{slot:"trailing",name:s[19].icon}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&1&&(r.name=t[19].icon),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Fn(s){let e,l,t=s[19].label+"",n,r,a=s[19].icon&&Ct(s);return{c(){e=b("div"),a&&a.c(),l=y(),n=M(t),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=w(e);a&&a.l(c),l=G(c),n=F(c,t),c.forEach(d),this.h()},h(){v(e,"class","flex items-center gap-2")},m(i,c){E(i,e,c),a&&a.m(e,null),g(e,l),g(e,n),r=!0},p(i,c){i[19].icon?a?(a.p(i,c),c&1&&p(a,1)):(a=Ct(i),a.c(),p(a,1),a.m(e,l)):a&&(z(),h(a,1,1,()=>{a=null}),Q()),(!r||c&1)&&t!==(t=i[19].label+"")&&H(n,t)},i(i){r||(p(a),r=!0)},o(i){h(a),r=!1},d(i){i&&d(e),a&&a.d()}}}function Rn(s){let e,l;function t(){return s[16](s[19])}return e=new gl({props:{slot:"leading",checked:s[20],label:s[19].label,labelHidden:!0}}),e.$on("click",t),{c(){I(e.$$.fragment)},l(n){T(e.$$.fragment,n)},m(n,r){D(e,n,r),l=!0},p(n,r){s=n;const a={};r&513&&(a.checked=s[20]),r&1&&(a.label=s[19].label),e.$set(a)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){A(e,n)}}}function St(s,e){let l,t,n;function r(){return e[17](e[19])}return t=new Ve({props:{"data-testid":e[19].label,$$slots:{leading:[Rn],default:[Fn]},$$scope:{ctx:e}}}),t.$on("click",r),{key:s,first:null,c(){l=U(),I(t.$$.fragment),this.h()},l(a){l=U(),T(t.$$.fragment,a),this.h()},h(){this.first=l},m(a,i){E(a,l,i),D(t,a,i),n=!0},p(a,i){e=a;const c={};i&1&&(c["data-testid"]=e[19].label),i&8389121&&(c.$$scope={dirty:i,ctx:e}),t.$set(c)},i(a){n||(p(t.$$.fragment,a),n=!0)},o(a){h(t.$$.fragment,a),n=!1},d(a){a&&d(l),A(t,a)}}}function Hn(s){let e;return{c(){e=M(s[5])},l(l){e=F(l,s[5])},m(l,t){E(l,e,t)},p(l,t){t&32&&H(e,l[5])},d(l){l&&d(e)}}}function Bn(s){let e;return{c(){e=M(s[6])},l(l){e=F(l,s[6])},m(l,t){E(l,e,t)},p(l,t){t&64&&H(e,l[6])},d(l){l&&d(e)}}}function qn(s){let e=[],l=new Map,t,n,r,a,i,c,o,f=ae(s[0]);const u=m=>m[19];for(let m=0;m{$.some(te=>te.value===C.value)?l(9,$=$.filter(te=>te.value!==C.value)):l(9,$=[...$,C]),r($)},L=()=>{l(9,$=t),r($)},B=()=>{l(9,$=[]),r($)},le=C=>P(C),O=C=>{P(C)},R=(C,te)=>te.value===C.value;return s.$$set=C=>{"options"in C&&l(0,t=C.options),"initialSelected"in C&&l(14,n=C.initialSelected),"onChange"in C&&l(15,r=C.onChange),"label"in C&&l(1,a=C.label),"id"in C&&l(2,i=C.id),"variant"in C&&l(3,c=C.variant),"icon"in C&&l(4,o=C.icon),"selectAllLabel"in C&&l(5,f=C.selectAllLabel),"clearAllLabel"in C&&l(6,u=C.clearAllLabel),"active"in C&&l(7,m=C.active),"position"in C&&l(8,_=C.position)},[t,a,i,c,o,f,u,m,_,$,V,P,L,B,n,r,le,O,R]}class Un extends oe{constructor(e){super(),fe(this,e,Qn,zn,ie,{options:0,initialSelected:14,onChange:15,label:1,id:2,variant:3,icon:4,selectAllLabel:5,clearAllLabel:6,active:7,position:8})}}function Jn(s){let e,l;return e=new Un({props:{id:"event-category-filter-menu",options:s[0],initialSelected:s[2],label:s[3],active:!!s[1],selectAllLabel:N("common.select-all"),clearAllLabel:N("common.clear-all-capitalized"),onChange:s[4],variant:"table-header",icon:"filter"}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.options=t[0]),n&4&&(r.initialSelected=t[2]),n&8&&(r.label=t[3]),n&2&&(r.active=!!t[1]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}let Kn="category";function Xn(s,e,l){let t,n,r,a,i;ne(s,be,u=>l(7,r=u)),ne(s,bl,u=>l(1,a=u)),ne(s,kl,u=>l(6,i=u));let{compact:c=!1}=e,o=(c?$l:vl).map(u=>({...u,label:N(u.label)}));const f=u=>{u.length===o.length&&(u=[]);const m=u.map(_=>_.value).join(",");Qt({parameter:Kn,value:m,url:r.url})};return s.$$set=u=>{"compact"in u&&l(5,c=u.compact)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=c?N("events.event-type"):N("events.workflow-events")),s.$$.dirty&65&&wl("1.21",i)&&l(0,o=o.filter(({value:u})=>u!=="update")),s.$$.dirty&3&&l(2,n=a?o.filter(u=>a.includes(u.value)):[])},[o,a,n,t,f,c,i]}class Yn extends oe{constructor(e){super(),fe(this,e,Xn,Jn,ie,{compact:5})}}function Zn(s){let e;const l=s[6].default,t=yt(l,s,s[7],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&128)&&Gt(t,l,n,n[7],e?Lt(l,n[7],r,null):Nt(n[7]),null)},i(n){e||(p(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function xn(s){let e,l=N("workflows.event-history")+"",t;return{c(){e=b("caption"),t=M(l),this.h()},l(n){e=k(n,"CAPTION",{class:!0,slot:!0});var r=w(e);t=F(r,l),r.forEach(d),this.h()},h(){v(e,"class","sr-only"),v(e,"slot","caption")},m(n,r){E(n,e,r),g(e,t)},p:se,d(n){n&&d(e)}}}function er(s){let e,l=(s[2]?N("common.collapse-all"):N("common.expand-all"))+"",t;return{c(){e=b("span"),t=M(l),this.h()},l(n){e=k(n,"SPAN",{class:!0});var r=w(e);t=F(r,l),r.forEach(d),this.h()},h(){v(e,"class","hidden sm:block")},m(n,r){E(n,e,r),g(e,t)},p(n,r){r&4&&l!==(l=(n[2]?N("common.collapse-all"):N("common.expand-all"))+"")&&H(t,l)},d(n){n&&d(e)}}}function tr(s){let e,l,t,n,r,a,i,c,o,f,u,m;return n=new jn({props:{compact:s[0]}}),i=new Yn({props:{compact:s[0]}}),u=new pl({props:{size:"sm",variant:"table-header",trailingIcon:s[2]?"chevron-up":"chevron-down",disabled:!!s[3],$$slots:{default:[er]},$$scope:{ctx:s}}}),u.$on("click",s[4]),{c(){e=b("td"),l=y(),t=b("th"),I(n.$$.fragment),r=y(),a=b("th"),I(i.$$.fragment),c=y(),o=b("th"),f=b("div"),I(u.$$.fragment),this.h()},l(_){e=k(_,"TD",{class:!0}),w(e).forEach(d),l=G(_),t=k(_,"TH",{class:!0});var $=w(t);T(n.$$.fragment,$),$.forEach(d),r=G(_),a=k(_,"TH",{class:!0});var V=w(a);T(i.$$.fragment,V),V.forEach(d),c=G(_),o=k(_,"TH",{class:!0});var P=w(o);f=k(P,"DIV",{class:!0});var L=w(f);T(u.$$.fragment,L),L.forEach(d),P.forEach(d),this.h()},h(){v(e,"class","w-14 xl:w-10"),v(t,"class","w-16 md:w-32"),v(a,"class","w-44"),v(f,"class","flex w-full justify-end"),v(o,"class","w-auto xl:w-80")},m(_,$){E(_,e,$),E(_,l,$),E(_,t,$),D(n,t,null),E(_,r,$),E(_,a,$),D(i,a,null),E(_,c,$),E(_,o,$),g(o,f),D(u,f,null),m=!0},p(_,$){const V={};$&1&&(V.compact=_[0]),n.$set(V);const P={};$&1&&(P.compact=_[0]),i.$set(P);const L={};$&4&&(L.trailingIcon=_[2]?"chevron-up":"chevron-down"),$&8&&(L.disabled=!!_[3]),$&132&&(L.$$scope={dirty:$,ctx:_}),u.$set(L)},i(_){m||(p(n.$$.fragment,_),p(i.$$.fragment,_),p(u.$$.fragment,_),m=!0)},o(_){h(n.$$.fragment,_),h(i.$$.fragment,_),h(u.$$.fragment,_),m=!1},d(_){_&&(d(e),d(l),d(t),d(r),d(a),d(c),d(o)),A(n),A(i),A(u)}}}function lr(s){let e,l;return e=new dl({props:{slot:"headers",$$slots:{default:[tr]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,n){const r={};n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function nr(s){let e,l;return e=new Ht({props:{updating:s[1],class:"w-full table-fixed","data-testid":"event-summary-table",$$slots:{headers:[lr],caption:[xn],default:[Zn]},$$scope:{ctx:s}}}),{c(){I(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,n){D(e,t,n),l=!0},p(t,[n]){const r={};n&2&&(r.updating=t[1]),n&141&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function rr(s,e,l){let t,n,r;ne(s,be,_=>l(5,n=_)),ne(s,cl,_=>l(8,r=_));let{$$slots:a={},$$scope:i}=e,{compact:c=!1}=e,{updating:o=!1}=e,f=r==="true";const u=Ot();function m(){l(2,f=!f),u("expandAll",{expanded:f?"true":"false"})}return s.$$set=_=>{"compact"in _&&l(0,c=_.compact),"updating"in _&&l(1,o=_.updating),"$$scope"in _&&l(7,i=_.$$scope)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=n.params.id)},[c,o,f,t,m,n,a,i]}class Hr extends oe{constructor(e){super(),fe(this,e,rr,nr,ie,{compact:0,updating:1})}}export{Hr as E,Fr as a,Rr as b}; diff --git a/ui/assets/local/_app/immutable/chunks/event-view.GLm4GtMe.js b/ui/assets/local/_app/immutable/chunks/event-view.qxFByNIO.js similarity index 74% rename from ui/assets/local/_app/immutable/chunks/event-view.GLm4GtMe.js rename to ui/assets/local/_app/immutable/chunks/event-view.qxFByNIO.js index 2c29aab24..8d622fc10 100644 --- a/ui/assets/local/_app/immutable/chunks/event-view.GLm4GtMe.js +++ b/ui/assets/local/_app/immutable/chunks/event-view.qxFByNIO.js @@ -1 +1 @@ -import{p as e}from"./persist-store.79TECdfr.js";e("autoRefreshWorkflow","off");const s=e("eventView","feed",!0),n=e("expandAllEvents","false"),o=e("eventFilterSort","descending"),a=e("eventShowElapsed","false");export{o as a,a as b,s as c,n as e}; +import{p as e}from"./persist-store.8QJu1WeF.js";e("autoRefreshWorkflow","off");const s=e("eventView","feed",!0),n=e("expandAllEvents","false"),o=e("eventFilterSort","descending"),a=e("eventShowElapsed","false");export{o as a,a as b,s as c,n as e}; diff --git a/ui/assets/local/_app/immutable/chunks/events-service.nbRs1TRb.js b/ui/assets/local/_app/immutable/chunks/events-service.20fG09Ws.js similarity index 84% rename from ui/assets/local/_app/immutable/chunks/events-service.nbRs1TRb.js rename to ui/assets/local/_app/immutable/chunks/events-service.20fG09Ws.js index 94c2e86b2..ad7e02be8 100644 --- a/ui/assets/local/_app/immutable/chunks/events-service.nbRs1TRb.js +++ b/ui/assets/local/_app/immutable/chunks/events-service.20fG09Ws.js @@ -1 +1 @@ -import{t as g}from"./index.R0s2mZbJ.js";import{f as w}from"./events.bSFWyNpS.js";import{r as E}from"./workflow-run.ZUOIerA5.js";import{a as x}from"./has.-dFYEuQV.js";import{p as I}from"./paginated.7Y-q8l-w.js";import{r as F,a as H}from"./route-for-api.Fwy3ccvq.js";var A=T;function T(r,f,o){var e=null,t=null,n=o&&o.leading,a=o&&o.trailing;n==null&&(n=!0),a==null&&(a=!n),n==!0&&(a=!1);var i=function(){e&&(clearTimeout(e),e=null)},l=function(){var s=t;i(),s&&s()},u=function(){var s=n&&!e,c=this,h=arguments;if(t=function(){return r.apply(c,h)},e||(e=setTimeout(function(){if(e=null,a)return t()},f)),s)return s=!1,t()};return u.cancel=i,u.flush=l,u}const N=r=>!x(r)||r==="descending"?"events.descending":r==="ascending"?"events.ascending":"events.descending",j=async({namespace:r,workflowId:f,runId:o,sort:e,onStart:t,onUpdate:n,onComplete:a})=>{const i=N(e),l=F(i,{namespace:r,workflowId:f});return(await I(async s=>H(l,{token:s,request:fetch,params:{"execution.runId":o}}),{onStart:t,onUpdate:n,onComplete:a})).history.events},D=A(()=>{E.set(Date.now())},5e3),k=async({namespace:r,workflowId:f,runId:o,sort:e="ascending",signal:t,historySize:n})=>{const a=()=>{t&&w.set([])},i=(v,d)=>{var m,y;if(!t)return;w.set([...g((m=v.history)==null?void 0:m.events)]);const p=(y=d==null?void 0:d.history)==null?void 0:y.events;n&&(p==null?void 0:p.every(q=>parseInt(q.eventId)>parseInt(n)))&&D()},l=()=>{t&&E.set(Date.now())},u=N(e),s=F(u,{namespace:r,workflowId:f}),c=await I(async v=>H(s,{token:v,request:fetch,params:{"execution.runId":o,waitNewEvent:t?"true":"false"},options:{signal:t}}),{onStart:a,onUpdate:i,onComplete:l});return c!=null&&c.history?await g(c.history.events):[]};export{j as a,k as f}; +import{t as g}from"./index.PDR9Tyn3.js";import{f as w}from"./events.xGcD40Yy.js";import{r as E}from"./workflow-run.x_o75HKu.js";import{a as x}from"./has.-dFYEuQV.js";import{p as I}from"./paginated.ekNvFt7Q.js";import{r as F,a as H}from"./route-for-api.n9XkRS8h.js";var A=T;function T(r,f,o){var e=null,t=null,n=o&&o.leading,a=o&&o.trailing;n==null&&(n=!0),a==null&&(a=!n),n==!0&&(a=!1);var i=function(){e&&(clearTimeout(e),e=null)},l=function(){var s=t;i(),s&&s()},u=function(){var s=n&&!e,c=this,h=arguments;if(t=function(){return r.apply(c,h)},e||(e=setTimeout(function(){if(e=null,a)return t()},f)),s)return s=!1,t()};return u.cancel=i,u.flush=l,u}const N=r=>!x(r)||r==="descending"?"events.descending":r==="ascending"?"events.ascending":"events.descending",j=async({namespace:r,workflowId:f,runId:o,sort:e,onStart:t,onUpdate:n,onComplete:a})=>{const i=N(e),l=F(i,{namespace:r,workflowId:f});return(await I(async s=>H(l,{token:s,request:fetch,params:{"execution.runId":o}}),{onStart:t,onUpdate:n,onComplete:a})).history.events},D=A(()=>{E.set(Date.now())},5e3),k=async({namespace:r,workflowId:f,runId:o,sort:e="ascending",signal:t,historySize:n})=>{const a=()=>{t&&w.set([])},i=(v,d)=>{var m,y;if(!t)return;w.set([...g((m=v.history)==null?void 0:m.events)]);const p=(y=d==null?void 0:d.history)==null?void 0:y.events;n&&(p==null?void 0:p.every(q=>parseInt(q.eventId)>parseInt(n)))&&D()},l=()=>{t&&E.set(Date.now())},u=N(e),s=F(u,{namespace:r,workflowId:f}),c=await I(async v=>H(s,{token:v,request:fetch,params:{"execution.runId":o,waitNewEvent:t?"true":"false"},options:{signal:t}}),{onStart:a,onUpdate:i,onComplete:l});return c!=null&&c.history?await g(c.history.events):[]};export{j as a,k as f}; diff --git a/ui/assets/local/_app/immutable/chunks/events.bSFWyNpS.js b/ui/assets/local/_app/immutable/chunks/events.xGcD40Yy.js similarity index 63% rename from ui/assets/local/_app/immutable/chunks/events.bSFWyNpS.js rename to ui/assets/local/_app/immutable/chunks/events.xGcD40Yy.js index dc2b525bd..da1e4c439 100644 --- a/ui/assets/local/_app/immutable/chunks/events.bSFWyNpS.js +++ b/ui/assets/local/_app/immutable/chunks/events.xGcD40Yy.js @@ -1 +1 @@ -import{d as e,w as c}from"./entry.49-_VqMH.js";import{p as o}from"./stores.BjeHb2_D.js";import{a as f}from"./auth-user.qLkr7QCG.js";import{r as i}from"./workflow-run.ZUOIerA5.js";import{d as n}from"./encode-uri.Mzeiosm2.js";import{i as p,a as l}from"./is-event-type._gd1DXTE.js";import{a as d}from"./event-view.GLm4GtMe.js";import{a as u}from"./filters.1ozdh_8f.js";import{p as v}from"./persist-store.79TECdfr.js";const w=e([o],([r])=>r.params.namespace?n(r.params.namespace):""),k=e([o],([r])=>r.params.workflow?n(r.params.workflow):""),E=e([o],([r])=>r.params.run?n(r.params.run):""),y=e([o],([r])=>{var t;return(t=r.data)==null?void 0:t.settings}),I=e([f],([r])=>r==null?void 0:r.accessToken),H=e([w,k,E,d],([r,t,s,a])=>({namespace:r,workflowId:t,runId:s,sort:a}));e([H,y,I,i],([r,t,s,a])=>({...r,settings:t,accessToken:s,refresh:i,$refresh:a}));const M=c(null),m=c([]),j=e([m,u],([r,t])=>r.filter(s=>p(s)?t.includes("local-activity"):t.includes(s.category))),q=e(m,r=>r.filter(l)),z=v("decodeEventHistory",!0,!0);export{j as a,z as d,m as f,q as r,M as t}; +import{d as e,w as c}from"./entry.Yz1YyohR.js";import{p as o}from"./stores.meYYndLY.js";import{a as f}from"./auth-user.13zVs2Gb.js";import{r as i}from"./workflow-run.x_o75HKu.js";import{d as n}from"./encode-uri.Mzeiosm2.js";import{i as p,a as l}from"./is-event-type._gd1DXTE.js";import{a as d}from"./event-view.qxFByNIO.js";import{a as u}from"./filters.cUjieRhB.js";import{p as v}from"./persist-store.8QJu1WeF.js";const w=e([o],([r])=>r.params.namespace?n(r.params.namespace):""),k=e([o],([r])=>r.params.workflow?n(r.params.workflow):""),E=e([o],([r])=>r.params.run?n(r.params.run):""),y=e([o],([r])=>{var t;return(t=r.data)==null?void 0:t.settings}),I=e([f],([r])=>r==null?void 0:r.accessToken),H=e([w,k,E,d],([r,t,s,a])=>({namespace:r,workflowId:t,runId:s,sort:a}));e([H,y,I,i],([r,t,s,a])=>({...r,settings:t,accessToken:s,refresh:i,$refresh:a}));const M=c(null),m=c([]),j=e([m,u],([r,t])=>r.filter(s=>p(s)?t.includes("local-activity"):t.includes(s.category))),q=e(m,r=>r.filter(l)),z=v("decodeEventHistory",!0,!0);export{j as a,z as d,m as f,q as r,M as t}; diff --git a/ui/assets/local/_app/immutable/chunks/filters.1ozdh_8f.js b/ui/assets/local/_app/immutable/chunks/filters.cUjieRhB.js similarity index 74% rename from ui/assets/local/_app/immutable/chunks/filters.1ozdh_8f.js rename to ui/assets/local/_app/immutable/chunks/filters.cUjieRhB.js index 6ef3dcc8e..a57d4071b 100644 --- a/ui/assets/local/_app/immutable/chunks/filters.1ozdh_8f.js +++ b/ui/assets/local/_app/immutable/chunks/filters.cUjieRhB.js @@ -1 +1 @@ -import{d as t,w as s}from"./entry.49-_VqMH.js";import{p as a}from"./stores.BjeHb2_D.js";import{a as l}from"./get-event-categorization.6rt2m6KE.js";import{p as o}from"./persist-store.79TECdfr.js";import{C as i}from"./scheduler.AWtTlMeO.js";const u=t([a],([e])=>e.url.searchParams.get("query")),F=o("showChildWorkflows",!0,!0),p=t([a],([e])=>e.url.searchParams.get("category")),f=t([a],([e])=>e.url.searchParams.get("classification")),c=t([u,p,f],([e,r,n])=>({query:e,category:r,classification:n})),m=e=>c.subscribe(({query:r})=>{!r&&i(g).length&&e([])}),q=o("searchInputView",!1,!0),g=s([],m),w=e=>c.subscribe(({category:r})=>{!r&&i(y)&&e(null)}),y=s(void 0,w),h=l.map(({value:e})=>e).filter(e=>e!=="marker"),O=s(h);export{O as a,q as b,y as e,F as s,g as w}; +import{d as t,w as s}from"./entry.Yz1YyohR.js";import{p as a}from"./stores.meYYndLY.js";import{a as l}from"./get-event-categorization.6rt2m6KE.js";import{p as o}from"./persist-store.8QJu1WeF.js";import{C as i}from"./scheduler.AWtTlMeO.js";const u=t([a],([e])=>e.url.searchParams.get("query")),F=o("showChildWorkflows",!0,!0),p=t([a],([e])=>e.url.searchParams.get("category")),f=t([a],([e])=>e.url.searchParams.get("classification")),c=t([u,p,f],([e,r,n])=>({query:e,category:r,classification:n})),m=e=>c.subscribe(({query:r})=>{!r&&i(g).length&&e([])}),q=o("searchInputView",!1,!0),g=s([],m),w=e=>c.subscribe(({category:r})=>{!r&&i(y)&&e(null)}),y=s(void 0,w),h=l.map(({value:e})=>e).filter(e=>e!=="marker"),O=s(h);export{O as a,q as b,y as e,F as s,g as w}; diff --git a/ui/assets/local/_app/immutable/chunks/format-event-attributes.MiJoTPLS.js b/ui/assets/local/_app/immutable/chunks/format-event-attributes.M8uwiSGk.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/format-event-attributes.MiJoTPLS.js rename to ui/assets/local/_app/immutable/chunks/format-event-attributes.M8uwiSGk.js index bdaa7e820..5fd5500a7 100644 --- a/ui/assets/local/_app/immutable/chunks/format-event-attributes.MiJoTPLS.js +++ b/ui/assets/local/_app/immutable/chunks/format-event-attributes.M8uwiSGk.js @@ -1 +1 @@ -import{C as i}from"./scheduler.AWtTlMeO.js";import{t as n}from"./translate.HrioCK44.js";import{f as y,r as h,t as w}from"./time-format.gNW0s4c3.js";import{c as m}from"./format-camel-case.z6e2GZpK.js";import{s as p,a as b,b as k,p as f,c as d}from"./index.D8-DrHo_.js";const l=new Set(["header"]),D=new Set(["taskQueue","retryPolicy","parentWorkflowExecution","workflowExecution","meta"]),O=new Set(["maximumAttempts"]),$=(a,t)=>a===0?n("workflows.no-expiration"):t,L=(a,t)=>a?a-t:n("workflows.unlimited"),Q=a=>a||n("workflows.unlimited"),x=(a,t)=>a==="maximumAttempts"&&!t?n("workflows.unlimited"):t,c=(a,t)=>{if(D.has(t)&&typeof a[t]=="object"){for(const[s,e]of Object.entries(a[t]))b(e)&&(O.has(s)?a[`${t}${m(s)}`]=x(s,e):a[`${t}${m(s)}`]=e);delete a[t]}},V=(a,{compact:t}={compact:!1})=>{const s={};t&&(s.eventTime=y(a.eventTime,i(w),{relative:i(h)}));for(const[e,o]of Object.entries(a.attributes)){const r=p(e,o);!l.has(e)&&r&&(s[e]=o),c(s,e)}return s},g=a=>{const t={};return a.eventList.forEach(s=>{for(const[e,o]of Object.entries(s.attributes)){const r=p(e,o);!l.has(e)&&r&&(t[e]=o),c(t,e)}}),Object.keys(t).forEach(s=>{k(s,t[s])||delete t[s]}),t},C=a=>{const t={},s=Object.entries(a).sort(([e],[o])=>f.indexOf(e)-f.indexOf(o));for(const[e,o]of s){const r=d(e),v=e.toLowerCase().includes("time")?y(String(o),i(w),{relative:i(h)}):o;!l.has(e)&&r&&(t[e]=v),c(t,e)}return t},u=["summary","parent","activity","taskQueue","schedule","retryPolicy","workflow","searchAttributes"],F={activity:{label:"events.attribute-group.activity"},parent:{label:"events.attribute-group.parent"},retryPolicy:{label:"events.attribute-group.retry-policy"},schedule:{label:"events.attribute-group.schedule"},searchAttributes:{label:"events.attribute-group.search-attributes"},summary:{label:"events.attribute-group.summary"},taskQueue:{label:"events.attribute-group.task-queue"},workflow:{label:"events.attribute-group.workflow"}},j=(a,t)=>{var s,e;a.category==="activity"&&((s=t==null?void 0:t.activity)!=null&&s.length)&&(t.summary=[...t.activity,...t.summary],t.activity=[]),a.category==="activity"&&((e=t==null?void 0:t.workflow)!=null&&e.length)&&(t.summary=[...t.summary,...t.workflow],t.workflow=[])},E=a=>{const t=new Set(["summary","searchAttributes"]);for(const[s,e]of Object.entries(a))e.length===1&&!t.has(s)&&(a.summary=[...a.summary,...e],a[s]=[])},I=(a,t)=>{const s={};u.forEach(e=>{e==="summary"?s[e]=Object.keys(t):s[e]=[]});for(const e in t){const o=u.find(r=>e.includes(r));o&&(s[o]=[e,...s[o]],s.summary=s.summary.filter(r=>r!==e))}return j(a,s),E(s),s};export{Q as a,$ as b,F as c,V as d,I as e,L as f,g,C as h}; +import{C as i}from"./scheduler.AWtTlMeO.js";import{t as n}from"./translate.HrioCK44.js";import{f as y,r as h,t as w}from"./time-format.Z3EDfPl8.js";import{c as m}from"./format-camel-case.z6e2GZpK.js";import{s as p,a as b,b as k,p as f,c as d}from"./index._MTkGJor.js";const l=new Set(["header"]),D=new Set(["taskQueue","retryPolicy","parentWorkflowExecution","workflowExecution","meta"]),O=new Set(["maximumAttempts"]),$=(a,t)=>a===0?n("workflows.no-expiration"):t,L=(a,t)=>a?a-t:n("workflows.unlimited"),Q=a=>a||n("workflows.unlimited"),x=(a,t)=>a==="maximumAttempts"&&!t?n("workflows.unlimited"):t,c=(a,t)=>{if(D.has(t)&&typeof a[t]=="object"){for(const[s,e]of Object.entries(a[t]))b(e)&&(O.has(s)?a[`${t}${m(s)}`]=x(s,e):a[`${t}${m(s)}`]=e);delete a[t]}},V=(a,{compact:t}={compact:!1})=>{const s={};t&&(s.eventTime=y(a.eventTime,i(w),{relative:i(h)}));for(const[e,o]of Object.entries(a.attributes)){const r=p(e,o);!l.has(e)&&r&&(s[e]=o),c(s,e)}return s},g=a=>{const t={};return a.eventList.forEach(s=>{for(const[e,o]of Object.entries(s.attributes)){const r=p(e,o);!l.has(e)&&r&&(t[e]=o),c(t,e)}}),Object.keys(t).forEach(s=>{k(s,t[s])||delete t[s]}),t},C=a=>{const t={},s=Object.entries(a).sort(([e],[o])=>f.indexOf(e)-f.indexOf(o));for(const[e,o]of s){const r=d(e),v=e.toLowerCase().includes("time")?y(String(o),i(w),{relative:i(h)}):o;!l.has(e)&&r&&(t[e]=v),c(t,e)}return t},u=["summary","parent","activity","taskQueue","schedule","retryPolicy","workflow","searchAttributes"],F={activity:{label:"events.attribute-group.activity"},parent:{label:"events.attribute-group.parent"},retryPolicy:{label:"events.attribute-group.retry-policy"},schedule:{label:"events.attribute-group.schedule"},searchAttributes:{label:"events.attribute-group.search-attributes"},summary:{label:"events.attribute-group.summary"},taskQueue:{label:"events.attribute-group.task-queue"},workflow:{label:"events.attribute-group.workflow"}},j=(a,t)=>{var s,e;a.category==="activity"&&((s=t==null?void 0:t.activity)!=null&&s.length)&&(t.summary=[...t.activity,...t.summary],t.activity=[]),a.category==="activity"&&((e=t==null?void 0:t.workflow)!=null&&e.length)&&(t.summary=[...t.summary,...t.workflow],t.workflow=[])},E=a=>{const t=new Set(["summary","searchAttributes"]);for(const[s,e]of Object.entries(a))e.length===1&&!t.has(s)&&(a.summary=[...a.summary,...e],a[s]=[])},I=(a,t)=>{const s={};u.forEach(e=>{e==="summary"?s[e]=Object.keys(t):s[e]=[]});for(const e in t){const o=u.find(r=>e.includes(r));o&&(s[o]=[e,...s[o]],s.summary=s.summary.filter(r=>r!==e))}return j(a,s),E(s),s};export{Q as a,$ as b,F as c,V as d,I as e,L as f,g,C as h}; diff --git a/ui/assets/local/_app/immutable/chunks/icon-button.bzDf4VVI.js b/ui/assets/local/_app/immutable/chunks/icon-button.ihAAw8eC.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/icon-button.bzDf4VVI.js rename to ui/assets/local/_app/immutable/chunks/icon-button.ihAAw8eC.js index 92ed16a4b..6aed101f9 100644 --- a/ui/assets/local/_app/immutable/chunks/icon-button.bzDf4VVI.js +++ b/ui/assets/local/_app/immutable/chunks/icon-button.ihAAw8eC.js @@ -1 +1 @@ -import{s as _,z as i,D as m,A as b,B as g}from"./scheduler.AWtTlMeO.js";import{S as h,i as d,c as p,a as k,m as I,t as B,b as S,d as j}from"./index.91lpp7Ff.js";import{g as q,a as z}from"./spread.rEx3vLA9.js";import{B as A}from"./button.J_9D2qip.js";import{t as u}from"./tw-merge.NbP7EmZe.js";function C(a){let e,s;const l=[{variant:"ghost"},{leadingIcon:a[1]},{class:u("h-9 w-9 shrink-0 rounded-full p-0",a[0])},{"aria-label":a[2]},a[3]];let r={};for(let t=0;t{e=i(i({},e),b(o)),s(3,r=m(e,l)),"class"in o&&s(0,t=o.class),"icon"in o&&s(1,n=o.icon),"label"in o&&s(2,c=o.label)},[t,n,c,r,f]}class F extends h{constructor(e){super(),d(this,e,D,C,_,{class:0,icon:1,label:2})}}export{F as I}; +import{s as _,z as i,D as m,A as b,B as g}from"./scheduler.AWtTlMeO.js";import{S as h,i as d,c as p,a as k,m as I,t as B,b as S,d as j}from"./index.91lpp7Ff.js";import{g as q,a as z}from"./spread.rEx3vLA9.js";import{B as A}from"./button.bjyERRn9.js";import{t as u}from"./tw-merge.NbP7EmZe.js";function C(a){let e,s;const l=[{variant:"ghost"},{leadingIcon:a[1]},{class:u("h-9 w-9 shrink-0 rounded-full p-0",a[0])},{"aria-label":a[2]},a[3]];let r={};for(let t=0;t{e=i(i({},e),b(o)),s(3,r=m(e,l)),"class"in o&&s(0,t=o.class),"icon"in o&&s(1,n=o.icon),"label"in o&&s(2,c=o.label)},[t,n,c,r,f]}class F extends h{constructor(e){super(),d(this,e,D,C,_,{class:0,icon:1,label:2})}}export{F as I}; diff --git a/ui/assets/local/_app/immutable/chunks/import-events._LSwAHOQ.js b/ui/assets/local/_app/immutable/chunks/import-events._LSwAHOQ.js new file mode 100644 index 000000000..4ed60ea05 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/import-events._LSwAHOQ.js @@ -0,0 +1 @@ +import{w as t}from"./entry.Yz1YyohR.js";const r=t([]),s=t([]);export{s as a,r as i}; diff --git a/ui/assets/local/_app/immutable/chunks/import-events.tyarLDHL.js b/ui/assets/local/_app/immutable/chunks/import-events.tyarLDHL.js deleted file mode 100644 index e5189a2ce..000000000 --- a/ui/assets/local/_app/immutable/chunks/import-events.tyarLDHL.js +++ /dev/null @@ -1 +0,0 @@ -import{w as t}from"./entry.49-_VqMH.js";const r=t([]),s=t([]);export{s as a,r as i}; diff --git a/ui/assets/local/_app/immutable/chunks/index.YV2NV-TI.js b/ui/assets/local/_app/immutable/chunks/index.CY49Yv_w.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/index.YV2NV-TI.js rename to ui/assets/local/_app/immutable/chunks/index.CY49Yv_w.js index 6df9dab84..82d98519d 100644 --- a/ui/assets/local/_app/immutable/chunks/index.YV2NV-TI.js +++ b/ui/assets/local/_app/immutable/chunks/index.CY49Yv_w.js @@ -1 +1 @@ -import{s as L,x as C,k as v,g as m,K as M,c as Q,z as A,A as E,p as N,e as T,a as B,b as I,d as y,h as q,j as h,l as S,u as O,q as P,r as j,m as R,t as z,f as D,H as d,n as H}from"./scheduler.AWtTlMeO.js";import{S as W,i as X,g as Y,b as g,e as Z,t as k,c as K,a as U,m as V,d as F}from"./index.91lpp7Ff.js";import{c as w}from"./copy-to-clipboard.DsLGuhkA.js";import{B as G}from"./button.Ub6koOFz.js";function $(s){let e,o,t,n,l;const u=s[11].default,p=N(u,s,s[10],null),c=p||ee(s);return t=new G({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("div"),c&&c.c(),o=B(),K(t.$$.fragment),this.h()},l(a){e=I(a,"DIV",{class:!0});var i=y(e);c&&c.l(i),o=q(i),U(t.$$.fragment,i),i.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 "+s[8]["container-class"])},m(a,i){v(a,e,i),c&&c.m(e,null),S(e,o),V(t,e,null),l=!0},p(a,i){p?p.p&&(!l||i&1024)&&O(p,u,a,a[10],l?j(u,a[10],i,null):P(a[10]),null):c&&c.p&&(!l||i&769)&&c.p(a,l?i:-1);const f={};i&8&&(f.copyIconTitle=a[3]),i&16&&(f.copySuccessIconTitle=a[4]),i&2&&(f.class=a[1]?"visible":"invisible group-hover:visible"),i&32&&(f.copied=a[5]),t.$set(f),(!l||i&256&&n!==(n="group flex items-center gap-1 "+a[8]["container-class"]))&&h(e,"class",n)},i(a){l||(k(c,a),k(t.$$.fragment,a),l=!0)},o(a){g(c,a),g(t.$$.fragment,a),l=!1},d(a){a&&m(e),c&&c.d(a),F(t)}}}function x(s){let e,o,t,n,l,u,p;const c=s[11].default,a=N(c,s,s[10],null),i=a||le(s);return t=new G({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("button"),i&&i.c(),o=B(),K(t.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0});var r=y(e);i&&i.l(r),o=q(r),U(t.$$.fragment,r),r.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 break-all "+s[8]["container-class"])},m(f,r){v(f,e,r),i&&i.m(e,null),S(e,o),V(t,e,null),l=!0,u||(p=R(e,"click",s[7]),u=!0)},p(f,r){a?a.p&&(!l||r&1024)&&O(a,c,f,f[10],l?j(c,f[10],r,null):P(f[10]),null):i&&i.p&&(!l||r&769)&&i.p(f,l?r:-1);const b={};r&8&&(b.copyIconTitle=f[3]),r&16&&(b.copySuccessIconTitle=f[4]),r&2&&(b.class=f[1]?"visible":"invisible group-hover:visible"),r&32&&(b.copied=f[5]),t.$set(b),(!l||r&256&&n!==(n="group flex items-center gap-1 break-all "+f[8]["container-class"]))&&h(e,"class",n)},i(f){l||(k(i,f),k(t.$$.fragment,f),l=!0)},o(f){g(i,f),g(t.$$.fragment,f),l=!1},d(f){f&&m(e),i&&i.d(f),F(t),u=!1,p()}}}function ee(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&H(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function le(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&H(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function se(s){let e,o,t,n;const l=[x,$],u=[];function p(c,a){return c[2]?0:1}return e=p(s),o=u[e]=l[e](s),{c(){o.c(),t=C()},l(c){o.l(c),t=C()},m(c,a){u[e].m(c,a),v(c,t,a),n=!0},p(c,[a]){let i=e;e=p(c),e===i?u[e].p(c,a):(Y(),g(u[i],1,1,()=>{u[i]=null}),Z(),o=u[e],o?o.p(c,a):(o=u[e]=l[e](c),o.c()),k(o,1),o.m(t.parentNode,t))},i(c){n||(k(o),n=!0)},o(c){g(o),n=!1},d(c){c&&m(t),u[e].d(c)}}}function oe(s,e,o){let t,{$$slots:n={},$$scope:l}=e;const u=M(n);let{content:p}=e,{visible:c=!1}=e,{clickAllToCopy:a=!1}=e,{copyIconTitle:i}=e,{copySuccessIconTitle:f}=e;const{copy:r,copied:b}=w();Q(s,b,_=>o(5,t=_));function J(_){r(_,p)}return s.$$set=_=>{o(8,e=A(A({},e),E(_))),"content"in _&&o(0,p=_.content),"visible"in _&&o(1,c=_.visible),"clickAllToCopy"in _&&o(2,a=_.clickAllToCopy),"copyIconTitle"in _&&o(3,i=_.copyIconTitle),"copySuccessIconTitle"in _&&o(4,f=_.copySuccessIconTitle),"$$scope"in _&&o(10,l=_.$$scope)},e=E(e),[p,c,a,i,f,t,b,J,e,u,l,n]}class ie extends W{constructor(e){super(),X(this,e,oe,se,L,{content:0,visible:1,clickAllToCopy:2,copyIconTitle:3,copySuccessIconTitle:4})}}export{ie as C}; +import{s as L,x as C,k as v,g as m,K as M,c as Q,z as A,A as E,p as N,e as T,a as B,b as I,d as y,h as q,j as h,l as S,u as O,q as P,r as j,m as R,t as z,f as D,H as d,n as H}from"./scheduler.AWtTlMeO.js";import{S as W,i as X,g as Y,b as g,e as Z,t as k,c as K,a as U,m as V,d as F}from"./index.91lpp7Ff.js";import{c as w}from"./copy-to-clipboard.DKpAmXze.js";import{B as G}from"./button.Ub6koOFz.js";function $(s){let e,o,t,n,l;const u=s[11].default,p=N(u,s,s[10],null),c=p||ee(s);return t=new G({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("div"),c&&c.c(),o=B(),K(t.$$.fragment),this.h()},l(a){e=I(a,"DIV",{class:!0});var i=y(e);c&&c.l(i),o=q(i),U(t.$$.fragment,i),i.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 "+s[8]["container-class"])},m(a,i){v(a,e,i),c&&c.m(e,null),S(e,o),V(t,e,null),l=!0},p(a,i){p?p.p&&(!l||i&1024)&&O(p,u,a,a[10],l?j(u,a[10],i,null):P(a[10]),null):c&&c.p&&(!l||i&769)&&c.p(a,l?i:-1);const f={};i&8&&(f.copyIconTitle=a[3]),i&16&&(f.copySuccessIconTitle=a[4]),i&2&&(f.class=a[1]?"visible":"invisible group-hover:visible"),i&32&&(f.copied=a[5]),t.$set(f),(!l||i&256&&n!==(n="group flex items-center gap-1 "+a[8]["container-class"]))&&h(e,"class",n)},i(a){l||(k(c,a),k(t.$$.fragment,a),l=!0)},o(a){g(c,a),g(t.$$.fragment,a),l=!1},d(a){a&&m(e),c&&c.d(a),F(t)}}}function x(s){let e,o,t,n,l,u,p;const c=s[11].default,a=N(c,s,s[10],null),i=a||le(s);return t=new G({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("button"),i&&i.c(),o=B(),K(t.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0});var r=y(e);i&&i.l(r),o=q(r),U(t.$$.fragment,r),r.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 break-all "+s[8]["container-class"])},m(f,r){v(f,e,r),i&&i.m(e,null),S(e,o),V(t,e,null),l=!0,u||(p=R(e,"click",s[7]),u=!0)},p(f,r){a?a.p&&(!l||r&1024)&&O(a,c,f,f[10],l?j(c,f[10],r,null):P(f[10]),null):i&&i.p&&(!l||r&769)&&i.p(f,l?r:-1);const b={};r&8&&(b.copyIconTitle=f[3]),r&16&&(b.copySuccessIconTitle=f[4]),r&2&&(b.class=f[1]?"visible":"invisible group-hover:visible"),r&32&&(b.copied=f[5]),t.$set(b),(!l||r&256&&n!==(n="group flex items-center gap-1 break-all "+f[8]["container-class"]))&&h(e,"class",n)},i(f){l||(k(i,f),k(t.$$.fragment,f),l=!0)},o(f){g(i,f),g(t.$$.fragment,f),l=!1},d(f){f&&m(e),i&&i.d(f),F(t),u=!1,p()}}}function ee(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&H(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function le(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&H(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function se(s){let e,o,t,n;const l=[x,$],u=[];function p(c,a){return c[2]?0:1}return e=p(s),o=u[e]=l[e](s),{c(){o.c(),t=C()},l(c){o.l(c),t=C()},m(c,a){u[e].m(c,a),v(c,t,a),n=!0},p(c,[a]){let i=e;e=p(c),e===i?u[e].p(c,a):(Y(),g(u[i],1,1,()=>{u[i]=null}),Z(),o=u[e],o?o.p(c,a):(o=u[e]=l[e](c),o.c()),k(o,1),o.m(t.parentNode,t))},i(c){n||(k(o),n=!0)},o(c){g(o),n=!1},d(c){c&&m(t),u[e].d(c)}}}function oe(s,e,o){let t,{$$slots:n={},$$scope:l}=e;const u=M(n);let{content:p}=e,{visible:c=!1}=e,{clickAllToCopy:a=!1}=e,{copyIconTitle:i}=e,{copySuccessIconTitle:f}=e;const{copy:r,copied:b}=w();Q(s,b,_=>o(5,t=_));function J(_){r(_,p)}return s.$$set=_=>{o(8,e=A(A({},e),E(_))),"content"in _&&o(0,p=_.content),"visible"in _&&o(1,c=_.visible),"clickAllToCopy"in _&&o(2,a=_.clickAllToCopy),"copyIconTitle"in _&&o(3,i=_.copyIconTitle),"copySuccessIconTitle"in _&&o(4,f=_.copySuccessIconTitle),"$$scope"in _&&o(10,l=_.$$scope)},e=E(e),[p,c,a,i,f,t,b,J,e,u,l,n]}class ie extends W{constructor(e){super(),X(this,e,oe,se,L,{content:0,visible:1,clickAllToCopy:2,copyIconTitle:3,copySuccessIconTitle:4})}}export{ie as C}; diff --git a/ui/assets/local/_app/immutable/chunks/index.R0s2mZbJ.js b/ui/assets/local/_app/immutable/chunks/index.PDR9Tyn3.js similarity index 76% rename from ui/assets/local/_app/immutable/chunks/index.R0s2mZbJ.js rename to ui/assets/local/_app/immutable/chunks/index.PDR9Tyn3.js index e6aed832b..714ecc5c7 100644 --- a/ui/assets/local/_app/immutable/chunks/index.R0s2mZbJ.js +++ b/ui/assets/local/_app/immutable/chunks/index.PDR9Tyn3.js @@ -1 +1 @@ -import"./entry.49-_VqMH.js";import"./i18next.dQ3wfJvm.js";import"./auth-user.qLkr7QCG.js";import"./data-encoder-config.q7-G5c7P.js";import"./parse-with-big-int.e3oI4SEy.js";import{f as c}from"./time-format.gNW0s4c3.js";import{h as m}from"./is-event-type._gd1DXTE.js";import{e as d}from"./screaming-enums.NBZzZ07O.js";import{g as l}from"./get-event-categorization.6rt2m6KE.js";import{s as f}from"./simplify-attributes.CFz5PLMp.js";const p=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],u=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const t of p)if(e.includes(t))return t},g=e=>{const t=String(e.eventId),i=d(e.eventType),n=c(String(e.eventTime)),o=u(i),a=l(i),{key:s,attributes:r}=m(e);return{...e,name:i,id:t,eventType:i,timestamp:n,classification:o,category:a,attributes:f({type:s,...r})}},A=e=>e.map(g),k=e=>{const t={...e};return delete t.name,delete t.id,delete t.timestamp,delete t.classification,delete t.category,delete t.attributes,t};export{k as f,A as t}; +import"./entry.Yz1YyohR.js";import"./i18next.dQ3wfJvm.js";import"./auth-user.13zVs2Gb.js";import"./data-encoder-config.VanBuir1.js";import"./parse-with-big-int.e3oI4SEy.js";import{f as c}from"./time-format.Z3EDfPl8.js";import{h as m}from"./is-event-type._gd1DXTE.js";import{e as d}from"./screaming-enums.NBZzZ07O.js";import{g as l}from"./get-event-categorization.6rt2m6KE.js";import{s as f}from"./simplify-attributes.H9OUGjUS.js";const p=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],u=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const t of p)if(e.includes(t))return t},g=e=>{const t=String(e.eventId),i=d(e.eventType),n=c(String(e.eventTime)),o=u(i),a=l(i),{key:s,attributes:r}=m(e);return{...e,name:i,id:t,eventType:i,timestamp:n,classification:o,category:a,attributes:f({type:s,...r})}},A=e=>e.map(g),k=e=>{const t={...e};return delete t.name,delete t.id,delete t.timestamp,delete t.classification,delete t.category,delete t.attributes,t};export{k as f,A as t}; diff --git a/ui/assets/local/_app/immutable/chunks/index.D8-DrHo_.js b/ui/assets/local/_app/immutable/chunks/index._MTkGJor.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/index.D8-DrHo_.js rename to ui/assets/local/_app/immutable/chunks/index._MTkGJor.js index 9265b8b3f..10434ea4c 100644 --- a/ui/assets/local/_app/immutable/chunks/index.D8-DrHo_.js +++ b/ui/assets/local/_app/immutable/chunks/index._MTkGJor.js @@ -1 +1 @@ -import{h as g,j as C}from"./has.-dFYEuQV.js";import{j as k,k as F,l as O,m as H,n as V,o as v,p as _,c as L,e as R,q as J,r as $,s as G,t as D,u as X,d as j,v as Y,f as K,w as Z,x as tt,y as it,z as rt,b as et,A as st,B as nt,C as ot,D as at,E as dt,F as ut,i as p,G as w,H as I,I as b,J as x,K as T,L as m,M as ct}from"./is-event-type._gd1DXTE.js";import{b as ft}from"./format-time.6T8OwT4v.js";import{c as lt}from"./format-camel-case.z6e2GZpK.js";import{h as Et}from"./decode-payload.-K-YkwX5.js";const kt=(t,i)=>{let r;return k(t)&&(r=i.find(e=>e.activityId===t.attributes.activityId)),r},Kt=(t,i)=>k(t)&&i?i.activityId===t.attributes.activityId:!1,N=t=>F(t)||O(t)||H(t)||V(t)||v(t)||_(t)||L(t)||R(t)||J(t)||$(t),Nt=t=>A(t)?t.isFailureOrTimedOut:N(t),q=t=>G(t)||D(t)||X(t)||j(t),qt=t=>A(t)?t.isCanceled:q(t),B=t=>Y(t)||K(t),Bt=t=>A(t)?t.isTerminated:B(t),S=t=>Z(t)?String(t.activityTaskStartedEventAttributes.scheduledEventId):G(t)?String(t.activityTaskCanceledEventAttributes.scheduledEventId):tt(t)?String(t.activityTaskCancelRequestedEventAttributes.scheduledEventId):O(t)?String(t.activityTaskFailedEventAttributes.scheduledEventId):F(t)?String(t.activityTaskTimedOutEventAttributes.scheduledEventId):it(t)?String(t.activityTaskCompletedEventAttributes.scheduledEventId):rt(t)?String(t.childWorkflowExecutionStartedEventAttributes.initiatedEventId):K(t)?String(t.childWorkflowExecutionTerminatedEventAttributes.initiatedEventId):et(t)?String(t.childWorkflowExecutionCompletedEventAttributes.initiatedEventId):j(t)?String(t.childWorkflowExecutionCanceledEventAttributes.initiatedEventId):L(t)?String(t.childWorkflowExecutionFailedEventAttributes.initiatedEventId):R(t)?String(t.childWorkflowExecutionTimedOutEventAttributes.initiatedEventId):st(t)?String(t.timerFiredEventAttributes.startedEventId):D(t)?String(t.timerCanceledEventAttributes.startedEventId):nt(t)?String(t.workflowExecutionUpdateCompletedEventAttributes.acceptedEventId):ot(t)?String(t.externalWorkflowExecutionSignaledEventAttributes.initiatedEventId):at(t)?String(t.workflowTaskStartedEventAttributes.scheduledEventId):dt(t)?String(t.workflowTaskCompletedEventAttributes.scheduledEventId):ut(t)?String(t.workflowTaskFailedEventAttributes.scheduledEventId):v(t)?String(t.workflowTaskTimedOutEventAttributes.scheduledEventId):t.id,pt={key:"",value:""},mt=new Set(["activityId","attempt","binaryChecksum","identity","parentInitiatedEventId","requestId","scheduledEventId","startedEventId","lastHeartbeatTime","scheduledTime","expirationTime"]),Pt=t=>mt.has(t),P=new Set(["suggestContinueAsNew","historySizeBytes"]),Q=(t,i)=>!(i===null||i===void 0||i===""||i==="0s"||t==="type"||(!i||i==="0")&&P.has(t)),yt=["attempt","maximumAttempts","heartbeatDetails","lastHeartbeatTime","lastFailure","lastStartedTime","scheduledTime","expirationTime","lastWorkerIdentity"],Qt=t=>yt.includes(t),Ut=(t,i)=>!(i===null||i===void 0||i===""||i==="0s"||t==="type"||t==="workflowId"||t==="initiatedEventId"||t==="startedEventId"||t==="scheduledEventId"||t==="activityId"||t==="namespace"||t==="namespaceId"||t==="workflowTaskCompletedEventId"||t==="taskQueueKind"||(!i||i==="0")&&P.has(t)),Mt=t=>!(t===null||t===void 0||t===""||Array.isArray(t)&&!t.length),zt=t=>typeof t=="string"?t:[t==null?void 0:t.payloads,t==null?void 0:t.indexedFields,t==null?void 0:t.points,t].find(i=>i!==void 0),gt=t=>{if(C(t)){if(g(t,"stackTrace")&&t.stackTrace)return t.stackTrace;for(const i in t)if(C(t[i]))return gt(t[i])}},wt=["baseRunId","continuedExecutionRunId","firstExecutionRunId","newExecutionRunId","newRunId","originalExecutionRunId"],Ht=t=>{for(const i of wt)if(t===i)return!0;return!1},Tt=["taskQueueName"],Vt=t=>{for(const i of Tt)if(t===i)return!0;return!1},At=["workflowExecutionWorkflowId","workflowExecutionRunId"],_t=(t,i)=>{const r=!!(i!=null&&i.workflowExecutionWorkflowId&&(i!=null&&i.workflowExecutionRunId));for(const e of At)if(t===e&&r)return!0;return!1},y=(t,i)=>{if(typeof i=="object"){const[r]=Object.keys(i);return r?r==="payloads"?{key:t,value:i}:{key:t+lt(r),value:i[r]}:{key:t,value:{}}}else return{key:t,value:i.toString()}},ht=["failure","input","activityType","parentInitiatedEventId","workflowExecution","workflowType","taskQueue"],It=({attributes:t})=>{for(const[i,r]of Object.entries(t))if(Q(i,r))return y(i,r)},bt=t=>{if(g(t,"ActivityType"))return t.ActivityType;if(g(t,"activity_type"))return t.activity_type},xt=t=>{var i,r,e;return!!((e=(r=(i=t.markerRecordedEventAttributes)==null?void 0:i.details)==null?void 0:r.type)!=null&&e.payloads)},W=t=>{var r,e,s,n,a,c;const i=It(t);if(p(t)){const o=(((s=(e=(r=t.markerRecordedEventAttributes)==null?void 0:r.details)==null?void 0:e.data)==null?void 0:s.payloads)||((c=(a=(n=t.markerRecordedEventAttributes)==null?void 0:n.details)==null?void 0:a.type)==null?void 0:c.payloads)||[]).map(f=>Et(f)),u=o==null?void 0:o[0];if(xt(t)&&u)return y("ActivityType",u);const l=bt(u);if(l)return y("ActivityType",l)}for(const[d,o]of Object.entries(t.attributes))for(const u of ht)if(d===u&&Q(d,o))return y(d,o);return i},St=({lastEvent:t})=>W(t),Jt=t=>t?A(t)?St(t):W(t):pt,U=t=>{var i,r,e,s,n,a,c,d,o,u,l,f;if(!t)return"";if(k(t))return(r=(i=t.activityTaskScheduledEventAttributes)==null?void 0:i.activityType)==null?void 0:r.name;if(w(t))return`${(e=t.timerStartedEventAttributes)==null?void 0:e.timerId} (${ft((s=t.timerStartedEventAttributes)==null?void 0:s.startToFireTimeout)})`;if(I(t))return(n=t.signalExternalWorkflowExecutionInitiatedEventAttributes)==null?void 0:n.signalName;if(b(t))return(a=t.workflowExecutionSignaledEventAttributes)==null?void 0:a.signalName;if(x(t))return p(t)?"Local Activity":(c=t.markerRecordedEventAttributes)==null?void 0:c.markerName;if(T(t))return(o=(d=t.startChildWorkflowExecutionInitiatedEventAttributes)==null?void 0:d.workflowType)==null?void 0:o.name;if(m(t))return(f=(l=(u=t.workflowExecutionUpdateAcceptedEventAttributes)==null?void 0:u.acceptedRequest)==null?void 0:l.input)==null?void 0:f.name},Wt=t=>{if(!t||k(t))return"";if(w(t))return"Timer";if(I(t))return"Signal";if(b(t))return"Signal received";if(x(t))return"Marker";if(T(t))return"Child Workflow";if(m(t))return""},Ct=t=>{var i,r;return t?p(t)?((r=(i=W(t))==null?void 0:i.value)==null?void 0:r.toString())??"Local Activity":U(t):""},h=({events:t})=>{let i=0,r;for(const e of t.values()){const s=Number(e.id);s>=i&&(i=s,r=e)}return r},Ft=(t,i)=>i!=null&&i.length&&m(t)?i.find(r=>{var e;return r.id===((e=t.workflowExecutionUpdateAcceptedEventAttributes)==null?void 0:e.acceptedRequestSequencingEventId.toString())}):t,E=(t,i)=>{const r=S(t),e=U(t),s=Wt(t),n=Ct(t),{timestamp:a,category:c,classification:d}=t,o=Ft(t,i),u=new Map,l=new Set;return o&&m(t)?(u.set(o.id,o),u.set(t.id,t),l.add(o.id),l.add(t.id)):(u.set(t.id,t),l.add(t.id)),{id:r,name:e,label:s,displayName:n,events:u,eventIds:l,initialEvent:o,timestamp:a,category:p(t)?"local-activity":c,classification:d,level:void 0,pendingActivity:void 0,get eventTime(){var f;return(f=this.lastEvent)==null?void 0:f.eventTime},get attributes(){var f;return(f=h(this))==null?void 0:f.attributes},get eventList(){return Array.from(this.events,([f,z])=>z)},get lastEvent(){return h(this)},get finalClassification(){return h(this).classification},get isPending(){return this.pendingActivity||w(this.initialEvent)&&this.eventList.length===1||T(this.initialEvent)&&this.eventList.length===2},get isFailureOrTimedOut(){return!!this.eventList.find(N)},get isCanceled(){return!!this.eventList.find(q)},get isTerminated(){return!!this.eventList.find(B)}}},Ot=(t,i)=>{if(k(t)||T(t)||w(t)||I(t)||b(t))return E(t);if(x(t))return p(t),E(t);if(m(t))return E(t,i)},vt=(t,i)=>{if(ct(t))return E(t,i)},M=(t,i,r=void 0)=>{t&&(t.events.set(i.id,i),t.eventIds.add(i.id),t.timestamp=i.timestamp,r&&(t.pendingActivity=r),t.pendingActivity&&t.eventList.length===3&&delete t.pendingActivity)},$t=(t,i="ascending",r=[])=>{const e={},s=n=>{const a=S(n),c=Ot(n,t),d=kt(n,r);c?(e[c.id]=c,d&&(c.pendingActivity=d)):M(e[a],n,d)};if(i==="ascending")for(const n of t)s(n);else for(let n=t.length-1;n>=0;n--)s(t[n]);return i==="descending"?Object.values(e).reverse():Object.values(e)},A=t=>t==null?!1:g(t,"events"),Xt=(t,i="ascending")=>{const r={},e=s=>{const n=S(s),a=vt(s,t);a?r[a.id]=a:M(r[n],s)};if(i==="ascending")for(const s of t)e(s);else for(let s=t.length-1;s>=0;s--)e(t[s]);return i==="descending"?Object.values(r).reverse():Object.values(r)};export{Mt as a,Ut as b,Qt as c,zt as d,gt as e,Ht as f,$t as g,_t as h,Vt as i,Pt as j,Nt as k,qt as l,Bt as m,A as n,Jt as o,yt as p,Kt as q,Xt as r,Q as s,W as t}; +import{h as g,j as C}from"./has.-dFYEuQV.js";import{j as k,k as F,l as O,m as H,n as V,o as v,p as _,c as L,e as R,q as J,r as $,s as G,t as D,u as X,d as j,v as Y,f as K,w as Z,x as tt,y as it,z as rt,b as et,A as st,B as nt,C as ot,D as at,E as dt,F as ut,i as p,G as w,H as I,I as b,J as x,K as T,L as m,M as ct}from"./is-event-type._gd1DXTE.js";import{b as ft}from"./format-time.6T8OwT4v.js";import{c as lt}from"./format-camel-case.z6e2GZpK.js";import{h as Et}from"./decode-payload.QBGHBsqc.js";const kt=(t,i)=>{let r;return k(t)&&(r=i.find(e=>e.activityId===t.attributes.activityId)),r},Kt=(t,i)=>k(t)&&i?i.activityId===t.attributes.activityId:!1,N=t=>F(t)||O(t)||H(t)||V(t)||v(t)||_(t)||L(t)||R(t)||J(t)||$(t),Nt=t=>A(t)?t.isFailureOrTimedOut:N(t),q=t=>G(t)||D(t)||X(t)||j(t),qt=t=>A(t)?t.isCanceled:q(t),B=t=>Y(t)||K(t),Bt=t=>A(t)?t.isTerminated:B(t),S=t=>Z(t)?String(t.activityTaskStartedEventAttributes.scheduledEventId):G(t)?String(t.activityTaskCanceledEventAttributes.scheduledEventId):tt(t)?String(t.activityTaskCancelRequestedEventAttributes.scheduledEventId):O(t)?String(t.activityTaskFailedEventAttributes.scheduledEventId):F(t)?String(t.activityTaskTimedOutEventAttributes.scheduledEventId):it(t)?String(t.activityTaskCompletedEventAttributes.scheduledEventId):rt(t)?String(t.childWorkflowExecutionStartedEventAttributes.initiatedEventId):K(t)?String(t.childWorkflowExecutionTerminatedEventAttributes.initiatedEventId):et(t)?String(t.childWorkflowExecutionCompletedEventAttributes.initiatedEventId):j(t)?String(t.childWorkflowExecutionCanceledEventAttributes.initiatedEventId):L(t)?String(t.childWorkflowExecutionFailedEventAttributes.initiatedEventId):R(t)?String(t.childWorkflowExecutionTimedOutEventAttributes.initiatedEventId):st(t)?String(t.timerFiredEventAttributes.startedEventId):D(t)?String(t.timerCanceledEventAttributes.startedEventId):nt(t)?String(t.workflowExecutionUpdateCompletedEventAttributes.acceptedEventId):ot(t)?String(t.externalWorkflowExecutionSignaledEventAttributes.initiatedEventId):at(t)?String(t.workflowTaskStartedEventAttributes.scheduledEventId):dt(t)?String(t.workflowTaskCompletedEventAttributes.scheduledEventId):ut(t)?String(t.workflowTaskFailedEventAttributes.scheduledEventId):v(t)?String(t.workflowTaskTimedOutEventAttributes.scheduledEventId):t.id,pt={key:"",value:""},mt=new Set(["activityId","attempt","binaryChecksum","identity","parentInitiatedEventId","requestId","scheduledEventId","startedEventId","lastHeartbeatTime","scheduledTime","expirationTime"]),Pt=t=>mt.has(t),P=new Set(["suggestContinueAsNew","historySizeBytes"]),Q=(t,i)=>!(i===null||i===void 0||i===""||i==="0s"||t==="type"||(!i||i==="0")&&P.has(t)),yt=["attempt","maximumAttempts","heartbeatDetails","lastHeartbeatTime","lastFailure","lastStartedTime","scheduledTime","expirationTime","lastWorkerIdentity"],Qt=t=>yt.includes(t),Ut=(t,i)=>!(i===null||i===void 0||i===""||i==="0s"||t==="type"||t==="workflowId"||t==="initiatedEventId"||t==="startedEventId"||t==="scheduledEventId"||t==="activityId"||t==="namespace"||t==="namespaceId"||t==="workflowTaskCompletedEventId"||t==="taskQueueKind"||(!i||i==="0")&&P.has(t)),Mt=t=>!(t===null||t===void 0||t===""||Array.isArray(t)&&!t.length),zt=t=>typeof t=="string"?t:[t==null?void 0:t.payloads,t==null?void 0:t.indexedFields,t==null?void 0:t.points,t].find(i=>i!==void 0),gt=t=>{if(C(t)){if(g(t,"stackTrace")&&t.stackTrace)return t.stackTrace;for(const i in t)if(C(t[i]))return gt(t[i])}},wt=["baseRunId","continuedExecutionRunId","firstExecutionRunId","newExecutionRunId","newRunId","originalExecutionRunId"],Ht=t=>{for(const i of wt)if(t===i)return!0;return!1},Tt=["taskQueueName"],Vt=t=>{for(const i of Tt)if(t===i)return!0;return!1},At=["workflowExecutionWorkflowId","workflowExecutionRunId"],_t=(t,i)=>{const r=!!(i!=null&&i.workflowExecutionWorkflowId&&(i!=null&&i.workflowExecutionRunId));for(const e of At)if(t===e&&r)return!0;return!1},y=(t,i)=>{if(typeof i=="object"){const[r]=Object.keys(i);return r?r==="payloads"?{key:t,value:i}:{key:t+lt(r),value:i[r]}:{key:t,value:{}}}else return{key:t,value:i.toString()}},ht=["failure","input","activityType","parentInitiatedEventId","workflowExecution","workflowType","taskQueue"],It=({attributes:t})=>{for(const[i,r]of Object.entries(t))if(Q(i,r))return y(i,r)},bt=t=>{if(g(t,"ActivityType"))return t.ActivityType;if(g(t,"activity_type"))return t.activity_type},xt=t=>{var i,r,e;return!!((e=(r=(i=t.markerRecordedEventAttributes)==null?void 0:i.details)==null?void 0:r.type)!=null&&e.payloads)},W=t=>{var r,e,s,n,a,c;const i=It(t);if(p(t)){const o=(((s=(e=(r=t.markerRecordedEventAttributes)==null?void 0:r.details)==null?void 0:e.data)==null?void 0:s.payloads)||((c=(a=(n=t.markerRecordedEventAttributes)==null?void 0:n.details)==null?void 0:a.type)==null?void 0:c.payloads)||[]).map(f=>Et(f)),u=o==null?void 0:o[0];if(xt(t)&&u)return y("ActivityType",u);const l=bt(u);if(l)return y("ActivityType",l)}for(const[d,o]of Object.entries(t.attributes))for(const u of ht)if(d===u&&Q(d,o))return y(d,o);return i},St=({lastEvent:t})=>W(t),Jt=t=>t?A(t)?St(t):W(t):pt,U=t=>{var i,r,e,s,n,a,c,d,o,u,l,f;if(!t)return"";if(k(t))return(r=(i=t.activityTaskScheduledEventAttributes)==null?void 0:i.activityType)==null?void 0:r.name;if(w(t))return`${(e=t.timerStartedEventAttributes)==null?void 0:e.timerId} (${ft((s=t.timerStartedEventAttributes)==null?void 0:s.startToFireTimeout)})`;if(I(t))return(n=t.signalExternalWorkflowExecutionInitiatedEventAttributes)==null?void 0:n.signalName;if(b(t))return(a=t.workflowExecutionSignaledEventAttributes)==null?void 0:a.signalName;if(x(t))return p(t)?"Local Activity":(c=t.markerRecordedEventAttributes)==null?void 0:c.markerName;if(T(t))return(o=(d=t.startChildWorkflowExecutionInitiatedEventAttributes)==null?void 0:d.workflowType)==null?void 0:o.name;if(m(t))return(f=(l=(u=t.workflowExecutionUpdateAcceptedEventAttributes)==null?void 0:u.acceptedRequest)==null?void 0:l.input)==null?void 0:f.name},Wt=t=>{if(!t||k(t))return"";if(w(t))return"Timer";if(I(t))return"Signal";if(b(t))return"Signal received";if(x(t))return"Marker";if(T(t))return"Child Workflow";if(m(t))return""},Ct=t=>{var i,r;return t?p(t)?((r=(i=W(t))==null?void 0:i.value)==null?void 0:r.toString())??"Local Activity":U(t):""},h=({events:t})=>{let i=0,r;for(const e of t.values()){const s=Number(e.id);s>=i&&(i=s,r=e)}return r},Ft=(t,i)=>i!=null&&i.length&&m(t)?i.find(r=>{var e;return r.id===((e=t.workflowExecutionUpdateAcceptedEventAttributes)==null?void 0:e.acceptedRequestSequencingEventId.toString())}):t,E=(t,i)=>{const r=S(t),e=U(t),s=Wt(t),n=Ct(t),{timestamp:a,category:c,classification:d}=t,o=Ft(t,i),u=new Map,l=new Set;return o&&m(t)?(u.set(o.id,o),u.set(t.id,t),l.add(o.id),l.add(t.id)):(u.set(t.id,t),l.add(t.id)),{id:r,name:e,label:s,displayName:n,events:u,eventIds:l,initialEvent:o,timestamp:a,category:p(t)?"local-activity":c,classification:d,level:void 0,pendingActivity:void 0,get eventTime(){var f;return(f=this.lastEvent)==null?void 0:f.eventTime},get attributes(){var f;return(f=h(this))==null?void 0:f.attributes},get eventList(){return Array.from(this.events,([f,z])=>z)},get lastEvent(){return h(this)},get finalClassification(){return h(this).classification},get isPending(){return this.pendingActivity||w(this.initialEvent)&&this.eventList.length===1||T(this.initialEvent)&&this.eventList.length===2},get isFailureOrTimedOut(){return!!this.eventList.find(N)},get isCanceled(){return!!this.eventList.find(q)},get isTerminated(){return!!this.eventList.find(B)}}},Ot=(t,i)=>{if(k(t)||T(t)||w(t)||I(t)||b(t))return E(t);if(x(t))return p(t),E(t);if(m(t))return E(t,i)},vt=(t,i)=>{if(ct(t))return E(t,i)},M=(t,i,r=void 0)=>{t&&(t.events.set(i.id,i),t.eventIds.add(i.id),t.timestamp=i.timestamp,r&&(t.pendingActivity=r),t.pendingActivity&&t.eventList.length===3&&delete t.pendingActivity)},$t=(t,i="ascending",r=[])=>{const e={},s=n=>{const a=S(n),c=Ot(n,t),d=kt(n,r);c?(e[c.id]=c,d&&(c.pendingActivity=d)):M(e[a],n,d)};if(i==="ascending")for(const n of t)s(n);else for(let n=t.length-1;n>=0;n--)s(t[n]);return i==="descending"?Object.values(e).reverse():Object.values(e)},A=t=>t==null?!1:g(t,"events"),Xt=(t,i="ascending")=>{const r={},e=s=>{const n=S(s),a=vt(s,t);a?r[a.id]=a:M(r[n],s)};if(i==="ascending")for(const s of t)e(s);else for(let s=t.length-1;s>=0;s--)e(t[s]);return i==="descending"?Object.values(r).reverse():Object.values(r)};export{Mt as a,Ut as b,Qt as c,zt as d,gt as e,Ht as f,$t as g,_t as h,Vt as i,Pt as j,Nt as k,qt as l,Bt as m,A as n,Jt as o,yt as p,Kt as q,Xt as r,Q as s,W as t}; diff --git a/ui/assets/local/_app/immutable/chunks/input-and-results.TekNR-ku.js b/ui/assets/local/_app/immutable/chunks/input-and-results.iaD2Qo3z.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/input-and-results.TekNR-ku.js rename to ui/assets/local/_app/immutable/chunks/input-and-results.iaD2Qo3z.js index d95438241..84627a12a 100644 --- a/ui/assets/local/_app/immutable/chunks/input-and-results.TekNR-ku.js +++ b/ui/assets/local/_app/immutable/chunks/input-and-results.iaD2Qo3z.js @@ -1 +1 @@ -import{s as Y,z as H,e as R,t as M,a as j,b as D,d as N,f as O,h as q,g as h,j as Q,E as z,k as w,l as A,n as U,D as L,A as Z,x as B,y as x}from"./scheduler.AWtTlMeO.js";import{S as ee,i as te,t as m,g as E,b as _,e as T,c as $,a as y,m as k,d as v}from"./index.91lpp7Ff.js";import{e as V}from"./each.QPLN4A2E.js";import{g as ne}from"./spread.rEx3vLA9.js";import{B as le}from"./badge.mHsIdLRu.js";import{C as W}from"./code-block.PIA3laOL.js";import{t as S}from"./translate.HrioCK44.js";import{p as C,s as F}from"./parse-with-big-int.e3oI4SEy.js";import{P as X}from"./payload-decoder.NtOFwqeB.js";function G(a,t,l){const e=a.slice();return e[12]=t[l],e}function J(a){let t,l;return t=new le({props:{type:"count",class:"rounded-sm",$$slots:{default:[oe]},$$scope:{ctx:a}}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&32776&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function oe(a){let t=a[3].length+"",l;return{c(){l=M(t)},l(e){l=O(e,t)},m(e,n){w(e,l,n)},p(e,n){n&8&&t!==(t=e[3].length+"")&&U(l,t)},d(e){e&&h(l)}}}function re(a){let t,l;return t=new W({props:{content:a[2]?"Results will appear upon completion.":"",language:"text",class:"mb-2 pt-1",maxHeight:384,copyable:!1}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&4&&(s.content=e[2]?"Results will appear upon completion.":""),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function ae(a){let t,l,e,n;const s=[se,ce],o=[];function i(r,f){return r[6]?0:1}return t=i(a),l=o[t]=s[t](a),{c(){l.c(),e=B()},l(r){l.l(r),e=B()},m(r,f){o[t].m(r,f),w(r,e,f),n=!0},p(r,f){let d=t;t=i(r),t===d?o[t].p(r,f):(E(),_(o[d],1,1,()=>{o[d]=null}),T(),l=o[t],l?l.p(r,f):(l=o[t]=s[t](r),l.c()),m(l,1),l.m(e.parentNode,e))},i(r){n||(m(l),n=!0)},o(r){_(l),n=!1},d(r){r&&h(e),o[t].d(r)}}}function ce(a){let t,l;return t=new X({props:{value:C(a[0]),$$slots:{default:[ie,({decodedValue:e})=>({11:e}),({decodedValue:e})=>e?2048:0]},$$scope:{ctx:a}}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&1&&(s.value=C(e[0])),n&34816&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function se(a){let t,l,e;return l=new X({props:{value:a[4],key:"payloads",$$slots:{default:[fe,({decodedValue:n})=>({11:n}),({decodedValue:n})=>n?2048:0]},$$scope:{ctx:a}}}),{c(){t=R("div"),$(l.$$.fragment),this.h()},l(n){t=D(n,"DIV",{class:!0});var s=N(t);y(l.$$.fragment,s),s.forEach(h),this.h()},h(){Q(t,"class","max-h-96 overflow-auto p-1")},m(n,s){w(n,t,s),k(l,t,null),e=!0},p(n,s){const o={};s&16&&(o.value=n[4]),s&34816&&(o.$$scope={dirty:s,ctx:n}),l.$set(o)},i(n){e||(m(l.$$.fragment,n),e=!0)},o(n){_(l.$$.fragment,n),e=!1},d(n){n&&h(t),v(l)}}}function ie(a){let t,l;return t=new W({props:{content:a[11],class:"mb-2 pt-1",maxHeight:384,copyIconTitle:S("common.copy-icon-title"),copySuccessIconTitle:S("common.copy-success-icon-title")}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&2048&&(s.content=e[11]),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function K(a){let t,l;return t=new W({props:{content:F(a[12]),class:"mb-2",copyIconTitle:S("common.copy-icon-title"),copySuccessIconTitle:S("common.copy-success-icon-title")}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&2048&&(s.content=F(e[12])),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function fe(a){let t,l,e=V(a[7](a[11])),n=[];for(let o=0;o_(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o{f=null}),T());let g=o;o=P(c),o===g?p[o].p(c,u):(E(),_(p[g],1,1,()=>{p[g]=null}),T(),i=p[o],i?i.p(c,u):(i=p[o]=d[o](c),i.c()),m(i,1),i.m(t,null)),z(t,b=ne(I,[{class:"flex w-full flex-col"},u&256&&c[8]]))},i(c){r||(m(f),m(i),r=!0)},o(c){_(f),_(i),r=!1},d(c){c&&h(t),f&&f.d(),p[o].d()}}}function me(a,t,l){let e,n,s,o;const i=["content","title","running"];let r=L(t,i),{content:f}=t,{title:d}=t,{running:p=!1}=t;const P=c=>{try{return C(c)}catch{return}},I=c=>{try{const u=C(c);return Array.isArray(u)?C(c):[]}catch{return[]}},b=c=>{try{const u=c==null?void 0:c.payloads;return Array.isArray(u)?u:[]}catch{return[]}};return a.$$set=c=>{t=H(H({},t),Z(c)),l(8,r=L(t,i)),"content"in c&&l(0,f=c.content),"title"in c&&l(1,d=c.title),"running"in c&&l(2,p=c.running)},a.$$.update=()=>{a.$$.dirty&1&&l(4,e=P(f)),a.$$.dirty&16&&l(3,n=b(e)),a.$$.dirty&8&&l(6,s=n.length>0),a.$$.dirty&8&&l(5,o=n.length>1)},[f,d,p,n,e,o,s,I,r]}class ve extends ee{constructor(t){super(),te(this,t,me,ue,Y,{content:0,title:1,running:2})}}export{ve as I}; +import{s as Y,z as H,e as R,t as M,a as j,b as D,d as N,f as O,h as q,g as h,j as Q,E as z,k as w,l as A,n as U,D as L,A as Z,x as B,y as x}from"./scheduler.AWtTlMeO.js";import{S as ee,i as te,t as m,g as E,b as _,e as T,c as $,a as y,m as k,d as v}from"./index.91lpp7Ff.js";import{e as V}from"./each.QPLN4A2E.js";import{g as ne}from"./spread.rEx3vLA9.js";import{B as le}from"./badge.mHsIdLRu.js";import{C as W}from"./code-block.XXHS15kp.js";import{t as S}from"./translate.HrioCK44.js";import{p as C,s as F}from"./parse-with-big-int.e3oI4SEy.js";import{P as X}from"./payload-decoder.YeQWFAju.js";function G(a,t,l){const e=a.slice();return e[12]=t[l],e}function J(a){let t,l;return t=new le({props:{type:"count",class:"rounded-sm",$$slots:{default:[oe]},$$scope:{ctx:a}}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&32776&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function oe(a){let t=a[3].length+"",l;return{c(){l=M(t)},l(e){l=O(e,t)},m(e,n){w(e,l,n)},p(e,n){n&8&&t!==(t=e[3].length+"")&&U(l,t)},d(e){e&&h(l)}}}function re(a){let t,l;return t=new W({props:{content:a[2]?"Results will appear upon completion.":"",language:"text",class:"mb-2 pt-1",maxHeight:384,copyable:!1}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&4&&(s.content=e[2]?"Results will appear upon completion.":""),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function ae(a){let t,l,e,n;const s=[se,ce],o=[];function i(r,f){return r[6]?0:1}return t=i(a),l=o[t]=s[t](a),{c(){l.c(),e=B()},l(r){l.l(r),e=B()},m(r,f){o[t].m(r,f),w(r,e,f),n=!0},p(r,f){let d=t;t=i(r),t===d?o[t].p(r,f):(E(),_(o[d],1,1,()=>{o[d]=null}),T(),l=o[t],l?l.p(r,f):(l=o[t]=s[t](r),l.c()),m(l,1),l.m(e.parentNode,e))},i(r){n||(m(l),n=!0)},o(r){_(l),n=!1},d(r){r&&h(e),o[t].d(r)}}}function ce(a){let t,l;return t=new X({props:{value:C(a[0]),$$slots:{default:[ie,({decodedValue:e})=>({11:e}),({decodedValue:e})=>e?2048:0]},$$scope:{ctx:a}}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&1&&(s.value=C(e[0])),n&34816&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function se(a){let t,l,e;return l=new X({props:{value:a[4],key:"payloads",$$slots:{default:[fe,({decodedValue:n})=>({11:n}),({decodedValue:n})=>n?2048:0]},$$scope:{ctx:a}}}),{c(){t=R("div"),$(l.$$.fragment),this.h()},l(n){t=D(n,"DIV",{class:!0});var s=N(t);y(l.$$.fragment,s),s.forEach(h),this.h()},h(){Q(t,"class","max-h-96 overflow-auto p-1")},m(n,s){w(n,t,s),k(l,t,null),e=!0},p(n,s){const o={};s&16&&(o.value=n[4]),s&34816&&(o.$$scope={dirty:s,ctx:n}),l.$set(o)},i(n){e||(m(l.$$.fragment,n),e=!0)},o(n){_(l.$$.fragment,n),e=!1},d(n){n&&h(t),v(l)}}}function ie(a){let t,l;return t=new W({props:{content:a[11],class:"mb-2 pt-1",maxHeight:384,copyIconTitle:S("common.copy-icon-title"),copySuccessIconTitle:S("common.copy-success-icon-title")}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&2048&&(s.content=e[11]),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function K(a){let t,l;return t=new W({props:{content:F(a[12]),class:"mb-2",copyIconTitle:S("common.copy-icon-title"),copySuccessIconTitle:S("common.copy-success-icon-title")}}),{c(){$(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,n){k(t,e,n),l=!0},p(e,n){const s={};n&2048&&(s.content=F(e[12])),t.$set(s)},i(e){l||(m(t.$$.fragment,e),l=!0)},o(e){_(t.$$.fragment,e),l=!1},d(e){v(t,e)}}}function fe(a){let t,l,e=V(a[7](a[11])),n=[];for(let o=0;o_(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o{f=null}),T());let g=o;o=P(c),o===g?p[o].p(c,u):(E(),_(p[g],1,1,()=>{p[g]=null}),T(),i=p[o],i?i.p(c,u):(i=p[o]=d[o](c),i.c()),m(i,1),i.m(t,null)),z(t,b=ne(I,[{class:"flex w-full flex-col"},u&256&&c[8]]))},i(c){r||(m(f),m(i),r=!0)},o(c){_(f),_(i),r=!1},d(c){c&&h(t),f&&f.d(),p[o].d()}}}function me(a,t,l){let e,n,s,o;const i=["content","title","running"];let r=L(t,i),{content:f}=t,{title:d}=t,{running:p=!1}=t;const P=c=>{try{return C(c)}catch{return}},I=c=>{try{const u=C(c);return Array.isArray(u)?C(c):[]}catch{return[]}},b=c=>{try{const u=c==null?void 0:c.payloads;return Array.isArray(u)?u:[]}catch{return[]}};return a.$$set=c=>{t=H(H({},t),Z(c)),l(8,r=L(t,i)),"content"in c&&l(0,f=c.content),"title"in c&&l(1,d=c.title),"running"in c&&l(2,p=c.running)},a.$$.update=()=>{a.$$.dirty&1&&l(4,e=P(f)),a.$$.dirty&16&&l(3,n=b(e)),a.$$.dirty&8&&l(6,s=n.length>0),a.$$.dirty&8&&l(5,o=n.length>1)},[f,d,p,n,e,o,s,I,r]}class ve extends ee{constructor(t){super(),te(this,t,me,ue,Y,{content:0,title:1,running:2})}}export{ve as I}; diff --git a/ui/assets/local/_app/immutable/chunks/input.Oj66r1n-.js b/ui/assets/local/_app/immutable/chunks/input.EAz4myrb.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/input.Oj66r1n-.js rename to ui/assets/local/_app/immutable/chunks/input.EAz4myrb.js index 3d7b542ef..7f70e55d6 100644 --- a/ui/assets/local/_app/immutable/chunks/input.Oj66r1n-.js +++ b/ui/assets/local/_app/immutable/chunks/input.EAz4myrb.js @@ -1 +1 @@ -import{s as Ue,p as me,z as ce,e as R,a as U,t as ue,b as V,d as P,h as p,g as j,f as oe,E as _e,H as d,j as I,Y as be,k as J,l as B,Z as ge,m as z,F as ke,_ as pe,u as ve,q as qe,r as Le,n as fe,G as ze,D as Be,K as Ge,o as Ke,c as Me,A as Ie,B as w,v as Oe}from"./scheduler.AWtTlMeO.js";import{S as Ye,i as Ze,c as x,a as $,m as ee,t as F,g as de,b as N,e as he,d as le}from"./index.91lpp7Ff.js";import{g as Je}from"./spread.rEx3vLA9.js";import{I as re}from"./icon.hlu3-iXK.js";import{L as Qe}from"./label.2vZCl_WE.js";import{c as We}from"./copy-to-clipboard.DsLGuhkA.js";import{I as Xe}from"./icon-button.bzDf4VVI.js";import{t as je}from"./tw-merge.NbP7EmZe.js";const ye=t=>({disabled:t[0]&1}),Ee=t=>({disabled:t[0]}),we=t=>({disabled:t[0]&1}),De=t=>({disabled:t[0]});function Te(t){let e,l,u;return l=new re({props:{name:t[5]}}),{c(){e=R("span"),x(l.$$.fragment),this.h()},l(n){e=V(n,"SPAN",{class:!0});var r=P(e);$(l.$$.fragment,r),r.forEach(j),this.h()},h(){I(e,"class","icon-container svelte-8ig1qj")},m(n,r){J(n,e,r),ee(l,e,null),u=!0},p(n,r){const s={};r[0]&32&&(s.name=n[5]),l.$set(s)},i(n){u||(F(l.$$.fragment,n),u=!0)},o(n){N(l.$$.fragment,n),u=!1},d(n){n&&j(e),le(l)}}}function xe(t){let e,l,u;return l=new Xe({props:{label:t[23],icon:"close"}}),l.$on("click",t[28]),{c(){e=R("div"),x(l.$$.fragment),this.h()},l(n){e=V(n,"DIV",{class:!0,"data-testid":!0});var r=P(e);$(l.$$.fragment,r),r.forEach(j),this.h()},h(){I(e,"class","clear-icon-container svelte-8ig1qj"),I(e,"data-testid","clear-input")},m(n,r){J(n,e,r),ee(l,e,null),u=!0},p(n,r){const s={};r[0]&8388608&&(s.label=n[23]),l.$set(s)},i(n){u||(F(l.$$.fragment,n),u=!0)},o(n){N(l.$$.fragment,n),u=!1},d(n){n&&j(e),le(l)}}}function $e(t){let e,l,u;return l=new re({props:{name:"lock"}}),{c(){e=R("div"),x(l.$$.fragment),this.h()},l(n){e=V(n,"DIV",{class:!0});var r=P(e);$(l.$$.fragment,r),r.forEach(j),this.h()},h(){I(e,"class","disabled-icon-container svelte-8ig1qj")},m(n,r){J(n,e,r),ee(l,e,null),u=!0},p:Oe,i(n){u||(F(l.$$.fragment,n),u=!0)},o(n){N(l.$$.fragment,n),u=!1},d(n){n&&j(e),le(l)}}}function el(t){let e,l,u,n,r,s,_;const f=[tl,ll],g=[];function H(k,h){return k[25]?0:1}return u=H(t),n=g[u]=f[u](t),{c(){e=R("div"),l=R("button"),n.c(),this.h()},l(k){e=V(k,"DIV",{class:!0});var h=P(e);l=V(h,"BUTTON",{"aria-label":!0});var m=P(l);n.l(m),m.forEach(j),h.forEach(j),this.h()},h(){I(l,"aria-label",t[22]),I(e,"class","copy-icon-container svelte-8ig1qj")},m(k,h){J(k,e,h),B(e,l),g[u].m(l,null),r=!0,s||(_=z(l,"click",t[43]),s=!0)},p(k,h){let m=u;u=H(k),u!==m&&(de(),N(g[m],1,1,()=>{g[m]=null}),he(),n=g[u],n||(n=g[u]=f[u](k),n.c()),F(n,1),n.m(l,null)),(!r||h[0]&4194304)&&I(l,"aria-label",k[22])},i(k){r||(F(n),r=!0)},o(k){N(n),r=!1},d(k){k&&j(e),g[u].d(),s=!1,_()}}}function ll(t){let e,l;return e=new re({props:{name:"copy"}}),{c(){x(e.$$.fragment)},l(u){$(e.$$.fragment,u)},m(u,n){ee(e,u,n),l=!0},i(u){l||(F(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){le(e,u)}}}function tl(t){let e,l;return e=new re({props:{name:"checkmark"}}),{c(){x(e.$$.fragment)},l(u){$(e.$$.fragment,u)},m(u,n){ee(e,u,n),l=!0},i(u){l||(F(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){le(e,u)}}}function Ce(t){let e,l,u=t[1].length+"",n,r,s;return{c(){e=R("span"),l=R("span"),n=ue(u),r=ue("/"),s=ue(t[14]),this.h()},l(_){e=V(_,"SPAN",{class:!0});var f=P(e);l=V(f,"SPAN",{class:!0});var g=P(l);n=oe(g,u),g.forEach(j),r=oe(f,"/"),s=oe(f,t[14]),f.forEach(j),this.h()},h(){I(l,"class","svelte-8ig1qj"),d(l,"ok",t[14]-t[1].length>5),d(l,"warn",t[14]-t[1].length<=5),d(l,"error",t[14]===t[1].length),I(e,"class","count svelte-8ig1qj")},m(_,f){J(_,e,f),B(e,l),B(l,n),B(e,r),B(e,s)},p(_,f){f[0]&2&&u!==(u=_[1].length+"")&&fe(n,u),f[0]&16386&&d(l,"ok",_[14]-_[1].length>5),f[0]&16386&&d(l,"warn",_[14]-_[1].length<=5),f[0]&16386&&d(l,"error",_[14]===_[1].length),f[0]&16384&&fe(s,_[14])},d(_){_&&j(e)}}}function Fe(t){let e,l;return{c(){e=R("div"),l=ue(t[7]),this.h()},l(u){e=V(u,"DIV",{class:!0});var n=P(e);l=oe(n,t[7]),n.forEach(j),this.h()},h(){I(e,"class","suffix svelte-8ig1qj")},m(u,n){J(u,e,n),B(e,l)},p(u,n){n[0]&128&&fe(l,u[7])},d(u){u&&j(e)}}}function al(t){let e,l,u,n,r,s,_,f,g,H,k,h,m,G,K,Q,M,v,O,Y,Z,c,W,te;l=new Qe({props:{required:t[21],label:t[3],hidden:t[4],for:t[2]}});const X=t[35]["before-input"],D=me(X,t,t[34],De);let b=t[5]&&Te(t),y=[{class:"input"},{disabled:t[0]},{"data-lpignore":"true"},{maxlength:g=t[14]>0?t[14]:void 0},{placeholder:t[6]},{id:t[2]},{name:t[8]},{spellcheck:t[16]},{required:t[21]},{autocomplete:t[11]},{"data-testid":H=t[26]+"-input"},t[32]],A={};for(let a=0;a{b=null}),he()),_e(f,A=Je(y,[{class:"input"},(!c||o[0]&1)&&{disabled:a[0]},{"data-lpignore":"true"},(!c||o[0]&16384&&g!==(g=a[14]>0?a[14]:void 0))&&{maxlength:g},(!c||o[0]&64)&&{placeholder:a[6]},(!c||o[0]&4)&&{id:a[2]},(!c||o[0]&256)&&{name:a[8]},(!c||o[0]&65536)&&{spellcheck:a[16]},(!c||o[0]&2097152)&&{required:a[21]},(!c||o[0]&2048)&&{autocomplete:a[11]},{"data-testid":H},o[1]&2&&a[32]])),o[0]&2&&f.value!==a[1]&&ge(f,a[1]),d(f,"disabled",a[0]),d(f,"svelte-8ig1qj",!0);let E=h;h=ne(a),h===E?~h&&S[h].p(a,o):(m&&(de(),N(S[E],1,1,()=>{S[E]=null}),he()),~h?(m=S[h],m?m.p(a,o):(m=S[h]=ae[h](a),m.c()),F(m,1),m.m(s,G)):m=null),a[14]&&!a[0]&&!a[15]?q?q.p(a,o):(q=Ce(a),q.c(),q.m(s,K)):q&&(q.d(1),q=null),a[7]?L?L.p(a,o):(L=Fe(a),L.c(),L.m(s,null)):L&&(L.d(1),L=null),(!c||o[0]&1)&&d(s,"disabled",a[0]),(!c||o[0]&1048576)&&d(s,"error",a[20]),(!c||o[0]&524288)&&d(s,"noBorder",a[19]),(!c||o[0]&262144|o[1]&1)&&d(s,"unroundLeft",a[18]||a[31]["before-input"]),(!c||o[0]&131072|o[1]&1)&&d(s,"unroundRight",a[17]||a[31]["after-input"]),(!c||o[0]&4096)&&d(s,"invalid",!a[12]),T&&T.p&&(!c||o[0]&1|o[1]&8)&&ve(T,ie,a,a[34],c?Le(ie,a[34],o,ye):qe(a[34]),Ee),(!c||o[0]&8192)&&fe(O,a[13]),(!c||o[0]&1048576&&Y!==(Y=a[20]?"alert":null))&&I(v,"role",Y),(!c||o[0]&4096)&&d(v,"invalid",!a[12]),(!c||o[0]&1048576)&&d(v,"error",a[20]),(!c||o[0]&8192)&&d(v,"hidden",!a[13]),(!c||o[0]&16777216&&Z!==(Z=be(je("flex flex-col gap-1",a[24]))+" svelte-8ig1qj"))&&I(e,"class",Z)},i(a){c||(F(l.$$.fragment,a),F(D,a),F(b),F(m),F(T,a),c=!0)},o(a){N(l.$$.fragment,a),N(D,a),N(b),N(m),N(T,a),c=!1},d(a){a&&j(e),le(l),D&&D.d(a),b&&b.d(),~h&&S[h].d(),q&&q.d(),L&&L.d(),T&&T.d(a),W=!1,ze(te)}}}function nl(t,e,l){const u=["id","value","label","labelHidden","icon","placeholder","suffix","name","copyable","disabled","clearable","autocomplete","valid","hintText","maxLength","hideCount","spellcheck","unroundRight","unroundLeft","noBorder","autoFocus","error","required","copyButtonLabel","clearButtonLabel","class"];let n=Be(e,u),r,{$$slots:s={},$$scope:_}=e;const f=Ge(s);let{id:g}=e,{value:H}=e,{label:k}=e,{labelHidden:h=!1}=e,{icon:m=null}=e,{placeholder:G=""}=e,{suffix:K=""}=e,{name:Q=g}=e,{copyable:M=!1}=e,{disabled:v=!1}=e,{clearable:O=!1}=e,{autocomplete:Y="off"}=e,{valid:Z=!0}=e,{hintText:c=""}=e,{maxLength:W=0}=e,{hideCount:te=!1}=e,{spellcheck:X=null}=e,{unroundRight:D=!1}=e,{unroundLeft:b=!1}=e,{noBorder:y=!1}=e,{autoFocus:A=!1}=e,{error:ae=!1}=e,{required:S=!1}=e,{copyButtonLabel:ne=""}=e,{clearButtonLabel:q=""}=e,{class:L=""}=e,ie=e["data-testid"]||g;function T(i){A&&i&&i.focus()}const a=Ke();function o(){l(1,H=""),a("clear",{})}const{copy:C,copied:E}=We();Me(t,E,i=>l(25,r=i));function se(i){w.call(this,t,i)}function Ne(i){w.call(this,t,i)}function Re(i){w.call(this,t,i)}function Ve(i){w.call(this,t,i)}function He(i){w.call(this,t,i)}function Pe(i){w.call(this,t,i)}function Se(){H=this.value,l(1,H)}const Ae=i=>C(i,H);return t.$$set=i=>{l(45,e=ce(ce({},e),Ie(i))),l(32,n=Be(e,u)),"id"in i&&l(2,g=i.id),"value"in i&&l(1,H=i.value),"label"in i&&l(3,k=i.label),"labelHidden"in i&&l(4,h=i.labelHidden),"icon"in i&&l(5,m=i.icon),"placeholder"in i&&l(6,G=i.placeholder),"suffix"in i&&l(7,K=i.suffix),"name"in i&&l(8,Q=i.name),"copyable"in i&&l(9,M=i.copyable),"disabled"in i&&l(0,v=i.disabled),"clearable"in i&&l(10,O=i.clearable),"autocomplete"in i&&l(11,Y=i.autocomplete),"valid"in i&&l(12,Z=i.valid),"hintText"in i&&l(13,c=i.hintText),"maxLength"in i&&l(14,W=i.maxLength),"hideCount"in i&&l(15,te=i.hideCount),"spellcheck"in i&&l(16,X=i.spellcheck),"unroundRight"in i&&l(17,D=i.unroundRight),"unroundLeft"in i&&l(18,b=i.unroundLeft),"noBorder"in i&&l(19,y=i.noBorder),"autoFocus"in i&&l(33,A=i.autoFocus),"error"in i&&l(20,ae=i.error),"required"in i&&l(21,S=i.required),"copyButtonLabel"in i&&l(22,ne=i.copyButtonLabel),"clearButtonLabel"in i&&l(23,q=i.clearButtonLabel),"class"in i&&l(24,L=i.class),"$$scope"in i&&l(34,_=i.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&513&&l(0,v=v||M)},e=Ie(e),[v,H,g,k,h,m,G,K,Q,M,O,Y,Z,c,W,te,X,D,b,y,ae,S,ne,q,L,r,ie,T,o,C,E,f,n,A,_,s,se,Ne,Re,Ve,He,Pe,Se,Ae]}class hl extends Ye{constructor(e){super(),Ze(this,e,nl,al,Ue,{id:2,value:1,label:3,labelHidden:4,icon:5,placeholder:6,suffix:7,name:8,copyable:9,disabled:0,clearable:10,autocomplete:11,valid:12,hintText:13,maxLength:14,hideCount:15,spellcheck:16,unroundRight:17,unroundLeft:18,noBorder:19,autoFocus:33,error:20,required:21,copyButtonLabel:22,clearButtonLabel:23,class:24},null,[-1,-1])}}export{hl as I}; +import{s as Ue,p as me,z as ce,e as R,a as U,t as ue,b as V,d as P,h as p,g as j,f as oe,E as _e,H as d,j as I,Y as be,k as J,l as B,Z as ge,m as z,F as ke,_ as pe,u as ve,q as qe,r as Le,n as fe,G as ze,D as Be,K as Ge,o as Ke,c as Me,A as Ie,B as w,v as Oe}from"./scheduler.AWtTlMeO.js";import{S as Ye,i as Ze,c as x,a as $,m as ee,t as F,g as de,b as N,e as he,d as le}from"./index.91lpp7Ff.js";import{g as Je}from"./spread.rEx3vLA9.js";import{I as re}from"./icon.hlu3-iXK.js";import{L as Qe}from"./label.2vZCl_WE.js";import{c as We}from"./copy-to-clipboard.DKpAmXze.js";import{I as Xe}from"./icon-button.ihAAw8eC.js";import{t as je}from"./tw-merge.NbP7EmZe.js";const ye=t=>({disabled:t[0]&1}),Ee=t=>({disabled:t[0]}),we=t=>({disabled:t[0]&1}),De=t=>({disabled:t[0]});function Te(t){let e,l,u;return l=new re({props:{name:t[5]}}),{c(){e=R("span"),x(l.$$.fragment),this.h()},l(n){e=V(n,"SPAN",{class:!0});var r=P(e);$(l.$$.fragment,r),r.forEach(j),this.h()},h(){I(e,"class","icon-container svelte-8ig1qj")},m(n,r){J(n,e,r),ee(l,e,null),u=!0},p(n,r){const s={};r[0]&32&&(s.name=n[5]),l.$set(s)},i(n){u||(F(l.$$.fragment,n),u=!0)},o(n){N(l.$$.fragment,n),u=!1},d(n){n&&j(e),le(l)}}}function xe(t){let e,l,u;return l=new Xe({props:{label:t[23],icon:"close"}}),l.$on("click",t[28]),{c(){e=R("div"),x(l.$$.fragment),this.h()},l(n){e=V(n,"DIV",{class:!0,"data-testid":!0});var r=P(e);$(l.$$.fragment,r),r.forEach(j),this.h()},h(){I(e,"class","clear-icon-container svelte-8ig1qj"),I(e,"data-testid","clear-input")},m(n,r){J(n,e,r),ee(l,e,null),u=!0},p(n,r){const s={};r[0]&8388608&&(s.label=n[23]),l.$set(s)},i(n){u||(F(l.$$.fragment,n),u=!0)},o(n){N(l.$$.fragment,n),u=!1},d(n){n&&j(e),le(l)}}}function $e(t){let e,l,u;return l=new re({props:{name:"lock"}}),{c(){e=R("div"),x(l.$$.fragment),this.h()},l(n){e=V(n,"DIV",{class:!0});var r=P(e);$(l.$$.fragment,r),r.forEach(j),this.h()},h(){I(e,"class","disabled-icon-container svelte-8ig1qj")},m(n,r){J(n,e,r),ee(l,e,null),u=!0},p:Oe,i(n){u||(F(l.$$.fragment,n),u=!0)},o(n){N(l.$$.fragment,n),u=!1},d(n){n&&j(e),le(l)}}}function el(t){let e,l,u,n,r,s,_;const f=[tl,ll],g=[];function H(k,h){return k[25]?0:1}return u=H(t),n=g[u]=f[u](t),{c(){e=R("div"),l=R("button"),n.c(),this.h()},l(k){e=V(k,"DIV",{class:!0});var h=P(e);l=V(h,"BUTTON",{"aria-label":!0});var m=P(l);n.l(m),m.forEach(j),h.forEach(j),this.h()},h(){I(l,"aria-label",t[22]),I(e,"class","copy-icon-container svelte-8ig1qj")},m(k,h){J(k,e,h),B(e,l),g[u].m(l,null),r=!0,s||(_=z(l,"click",t[43]),s=!0)},p(k,h){let m=u;u=H(k),u!==m&&(de(),N(g[m],1,1,()=>{g[m]=null}),he(),n=g[u],n||(n=g[u]=f[u](k),n.c()),F(n,1),n.m(l,null)),(!r||h[0]&4194304)&&I(l,"aria-label",k[22])},i(k){r||(F(n),r=!0)},o(k){N(n),r=!1},d(k){k&&j(e),g[u].d(),s=!1,_()}}}function ll(t){let e,l;return e=new re({props:{name:"copy"}}),{c(){x(e.$$.fragment)},l(u){$(e.$$.fragment,u)},m(u,n){ee(e,u,n),l=!0},i(u){l||(F(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){le(e,u)}}}function tl(t){let e,l;return e=new re({props:{name:"checkmark"}}),{c(){x(e.$$.fragment)},l(u){$(e.$$.fragment,u)},m(u,n){ee(e,u,n),l=!0},i(u){l||(F(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){le(e,u)}}}function Ce(t){let e,l,u=t[1].length+"",n,r,s;return{c(){e=R("span"),l=R("span"),n=ue(u),r=ue("/"),s=ue(t[14]),this.h()},l(_){e=V(_,"SPAN",{class:!0});var f=P(e);l=V(f,"SPAN",{class:!0});var g=P(l);n=oe(g,u),g.forEach(j),r=oe(f,"/"),s=oe(f,t[14]),f.forEach(j),this.h()},h(){I(l,"class","svelte-8ig1qj"),d(l,"ok",t[14]-t[1].length>5),d(l,"warn",t[14]-t[1].length<=5),d(l,"error",t[14]===t[1].length),I(e,"class","count svelte-8ig1qj")},m(_,f){J(_,e,f),B(e,l),B(l,n),B(e,r),B(e,s)},p(_,f){f[0]&2&&u!==(u=_[1].length+"")&&fe(n,u),f[0]&16386&&d(l,"ok",_[14]-_[1].length>5),f[0]&16386&&d(l,"warn",_[14]-_[1].length<=5),f[0]&16386&&d(l,"error",_[14]===_[1].length),f[0]&16384&&fe(s,_[14])},d(_){_&&j(e)}}}function Fe(t){let e,l;return{c(){e=R("div"),l=ue(t[7]),this.h()},l(u){e=V(u,"DIV",{class:!0});var n=P(e);l=oe(n,t[7]),n.forEach(j),this.h()},h(){I(e,"class","suffix svelte-8ig1qj")},m(u,n){J(u,e,n),B(e,l)},p(u,n){n[0]&128&&fe(l,u[7])},d(u){u&&j(e)}}}function al(t){let e,l,u,n,r,s,_,f,g,H,k,h,m,G,K,Q,M,v,O,Y,Z,c,W,te;l=new Qe({props:{required:t[21],label:t[3],hidden:t[4],for:t[2]}});const X=t[35]["before-input"],D=me(X,t,t[34],De);let b=t[5]&&Te(t),y=[{class:"input"},{disabled:t[0]},{"data-lpignore":"true"},{maxlength:g=t[14]>0?t[14]:void 0},{placeholder:t[6]},{id:t[2]},{name:t[8]},{spellcheck:t[16]},{required:t[21]},{autocomplete:t[11]},{"data-testid":H=t[26]+"-input"},t[32]],A={};for(let a=0;a{b=null}),he()),_e(f,A=Je(y,[{class:"input"},(!c||o[0]&1)&&{disabled:a[0]},{"data-lpignore":"true"},(!c||o[0]&16384&&g!==(g=a[14]>0?a[14]:void 0))&&{maxlength:g},(!c||o[0]&64)&&{placeholder:a[6]},(!c||o[0]&4)&&{id:a[2]},(!c||o[0]&256)&&{name:a[8]},(!c||o[0]&65536)&&{spellcheck:a[16]},(!c||o[0]&2097152)&&{required:a[21]},(!c||o[0]&2048)&&{autocomplete:a[11]},{"data-testid":H},o[1]&2&&a[32]])),o[0]&2&&f.value!==a[1]&&ge(f,a[1]),d(f,"disabled",a[0]),d(f,"svelte-8ig1qj",!0);let E=h;h=ne(a),h===E?~h&&S[h].p(a,o):(m&&(de(),N(S[E],1,1,()=>{S[E]=null}),he()),~h?(m=S[h],m?m.p(a,o):(m=S[h]=ae[h](a),m.c()),F(m,1),m.m(s,G)):m=null),a[14]&&!a[0]&&!a[15]?q?q.p(a,o):(q=Ce(a),q.c(),q.m(s,K)):q&&(q.d(1),q=null),a[7]?L?L.p(a,o):(L=Fe(a),L.c(),L.m(s,null)):L&&(L.d(1),L=null),(!c||o[0]&1)&&d(s,"disabled",a[0]),(!c||o[0]&1048576)&&d(s,"error",a[20]),(!c||o[0]&524288)&&d(s,"noBorder",a[19]),(!c||o[0]&262144|o[1]&1)&&d(s,"unroundLeft",a[18]||a[31]["before-input"]),(!c||o[0]&131072|o[1]&1)&&d(s,"unroundRight",a[17]||a[31]["after-input"]),(!c||o[0]&4096)&&d(s,"invalid",!a[12]),T&&T.p&&(!c||o[0]&1|o[1]&8)&&ve(T,ie,a,a[34],c?Le(ie,a[34],o,ye):qe(a[34]),Ee),(!c||o[0]&8192)&&fe(O,a[13]),(!c||o[0]&1048576&&Y!==(Y=a[20]?"alert":null))&&I(v,"role",Y),(!c||o[0]&4096)&&d(v,"invalid",!a[12]),(!c||o[0]&1048576)&&d(v,"error",a[20]),(!c||o[0]&8192)&&d(v,"hidden",!a[13]),(!c||o[0]&16777216&&Z!==(Z=be(je("flex flex-col gap-1",a[24]))+" svelte-8ig1qj"))&&I(e,"class",Z)},i(a){c||(F(l.$$.fragment,a),F(D,a),F(b),F(m),F(T,a),c=!0)},o(a){N(l.$$.fragment,a),N(D,a),N(b),N(m),N(T,a),c=!1},d(a){a&&j(e),le(l),D&&D.d(a),b&&b.d(),~h&&S[h].d(),q&&q.d(),L&&L.d(),T&&T.d(a),W=!1,ze(te)}}}function nl(t,e,l){const u=["id","value","label","labelHidden","icon","placeholder","suffix","name","copyable","disabled","clearable","autocomplete","valid","hintText","maxLength","hideCount","spellcheck","unroundRight","unroundLeft","noBorder","autoFocus","error","required","copyButtonLabel","clearButtonLabel","class"];let n=Be(e,u),r,{$$slots:s={},$$scope:_}=e;const f=Ge(s);let{id:g}=e,{value:H}=e,{label:k}=e,{labelHidden:h=!1}=e,{icon:m=null}=e,{placeholder:G=""}=e,{suffix:K=""}=e,{name:Q=g}=e,{copyable:M=!1}=e,{disabled:v=!1}=e,{clearable:O=!1}=e,{autocomplete:Y="off"}=e,{valid:Z=!0}=e,{hintText:c=""}=e,{maxLength:W=0}=e,{hideCount:te=!1}=e,{spellcheck:X=null}=e,{unroundRight:D=!1}=e,{unroundLeft:b=!1}=e,{noBorder:y=!1}=e,{autoFocus:A=!1}=e,{error:ae=!1}=e,{required:S=!1}=e,{copyButtonLabel:ne=""}=e,{clearButtonLabel:q=""}=e,{class:L=""}=e,ie=e["data-testid"]||g;function T(i){A&&i&&i.focus()}const a=Ke();function o(){l(1,H=""),a("clear",{})}const{copy:C,copied:E}=We();Me(t,E,i=>l(25,r=i));function se(i){w.call(this,t,i)}function Ne(i){w.call(this,t,i)}function Re(i){w.call(this,t,i)}function Ve(i){w.call(this,t,i)}function He(i){w.call(this,t,i)}function Pe(i){w.call(this,t,i)}function Se(){H=this.value,l(1,H)}const Ae=i=>C(i,H);return t.$$set=i=>{l(45,e=ce(ce({},e),Ie(i))),l(32,n=Be(e,u)),"id"in i&&l(2,g=i.id),"value"in i&&l(1,H=i.value),"label"in i&&l(3,k=i.label),"labelHidden"in i&&l(4,h=i.labelHidden),"icon"in i&&l(5,m=i.icon),"placeholder"in i&&l(6,G=i.placeholder),"suffix"in i&&l(7,K=i.suffix),"name"in i&&l(8,Q=i.name),"copyable"in i&&l(9,M=i.copyable),"disabled"in i&&l(0,v=i.disabled),"clearable"in i&&l(10,O=i.clearable),"autocomplete"in i&&l(11,Y=i.autocomplete),"valid"in i&&l(12,Z=i.valid),"hintText"in i&&l(13,c=i.hintText),"maxLength"in i&&l(14,W=i.maxLength),"hideCount"in i&&l(15,te=i.hideCount),"spellcheck"in i&&l(16,X=i.spellcheck),"unroundRight"in i&&l(17,D=i.unroundRight),"unroundLeft"in i&&l(18,b=i.unroundLeft),"noBorder"in i&&l(19,y=i.noBorder),"autoFocus"in i&&l(33,A=i.autoFocus),"error"in i&&l(20,ae=i.error),"required"in i&&l(21,S=i.required),"copyButtonLabel"in i&&l(22,ne=i.copyButtonLabel),"clearButtonLabel"in i&&l(23,q=i.clearButtonLabel),"class"in i&&l(24,L=i.class),"$$scope"in i&&l(34,_=i.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&513&&l(0,v=v||M)},e=Ie(e),[v,H,g,k,h,m,G,K,Q,M,O,Y,Z,c,W,te,X,D,b,y,ae,S,ne,q,L,r,ie,T,o,C,E,f,n,A,_,s,se,Ne,Re,Ve,He,Pe,Se,Ae]}class hl extends Ye{constructor(e){super(),Ze(this,e,nl,al,Ue,{id:2,value:1,label:3,labelHidden:4,icon:5,placeholder:6,suffix:7,name:8,copyable:9,disabled:0,clearable:10,autocomplete:11,valid:12,hintText:13,maxLength:14,hideCount:15,spellcheck:16,unroundRight:17,unroundLeft:18,noBorder:19,autoFocus:33,error:20,required:21,copyButtonLabel:22,clearButtonLabel:23,class:24},null,[-1,-1])}}export{hl as I}; diff --git a/ui/assets/local/_app/immutable/chunks/labs-mode-guard.15bwZDx8.js b/ui/assets/local/_app/immutable/chunks/labs-mode-guard.-5NFppIE.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/labs-mode-guard.15bwZDx8.js rename to ui/assets/local/_app/immutable/chunks/labs-mode-guard.-5NFppIE.js index 58c57b2a1..aa6c140ab 100644 --- a/ui/assets/local/_app/immutable/chunks/labs-mode-guard.15bwZDx8.js +++ b/ui/assets/local/_app/immutable/chunks/labs-mode-guard.-5NFppIE.js @@ -1 +1 @@ -import{s as P,x as m,k as S,g as q,c as b,w as d,p as g,u as h,q as y,r as M}from"./scheduler.AWtTlMeO.js";import{S as L,i as O,g as w,b as f,e as C,t as _}from"./index.91lpp7Ff.js";import{p as N}from"./stores.BjeHb2_D.js";import{p as j}from"./persist-store.79TECdfr.js";const p=j("labsMode",!1,!0),z=o=>({}),k=o=>({});function A(o){let s;const l=o[5].fallback,e=g(l,o,o[4],k);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,r){e&&e.m(t,r),s=!0},p(t,r){e&&e.p&&(!s||r&16)&&h(e,l,t,t[4],s?M(l,t[4],r,z):y(t[4]),k)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function B(o){let s;const l=o[5].default,e=g(l,o,o[4],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,r){e&&e.m(t,r),s=!0},p(t,r){e&&e.p&&(!s||r&16)&&h(e,l,t,t[4],s?M(l,t[4],r,null):y(t[4]),null)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function D(o){let s,l,e,t;const r=[B,A],n=[];function c(a,i){return a[0]?0:1}return s=c(o),l=n[s]=r[s](o),{c(){l.c(),e=m()},l(a){l.l(a),e=m()},m(a,i){n[s].m(a,i),S(a,e,i),t=!0},p(a,[i]){let u=s;s=c(a),s===u?n[s].p(a,i):(w(),f(n[u],1,1,()=>{n[u]=null}),C(),l=n[s],l?l.p(a,i):(l=n[s]=r[s](a),l.c()),_(l,1),l.m(e.parentNode,e))},i(a){t||(_(l),t=!0)},o(a){f(l),t=!1},d(a){a&&q(e),n[s].d(a)}}}function E(o,s,l){let e,t,r,n;b(o,p,i=>l(0,r=i)),b(o,N,i=>l(3,n=i));let{$$slots:c={},$$scope:a}=s;return o.$$set=i=>{"$$scope"in i&&l(4,a=i.$$scope)},o.$$.update=()=>{o.$$.dirty&8&&l(2,e=n.url.searchParams.get("labs")==="true"),o.$$.dirty&8&&l(1,t=n.url.searchParams.get("labs")==="false"),o.$$.dirty&6&&(e?d(p,r=!0,r):t&&d(p,r=!1,r))},[r,t,e,n,a,c]}class J extends L{constructor(s){super(),O(this,s,E,D,P,{})}}export{J as L,p as l}; +import{s as P,x as m,k as S,g as q,c as b,w as d,p as g,u as h,q as y,r as M}from"./scheduler.AWtTlMeO.js";import{S as L,i as O,g as w,b as f,e as C,t as _}from"./index.91lpp7Ff.js";import{p as N}from"./stores.meYYndLY.js";import{p as j}from"./persist-store.8QJu1WeF.js";const p=j("labsMode",!1,!0),z=o=>({}),k=o=>({});function A(o){let s;const l=o[5].fallback,e=g(l,o,o[4],k);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,r){e&&e.m(t,r),s=!0},p(t,r){e&&e.p&&(!s||r&16)&&h(e,l,t,t[4],s?M(l,t[4],r,z):y(t[4]),k)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function B(o){let s;const l=o[5].default,e=g(l,o,o[4],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,r){e&&e.m(t,r),s=!0},p(t,r){e&&e.p&&(!s||r&16)&&h(e,l,t,t[4],s?M(l,t[4],r,null):y(t[4]),null)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function D(o){let s,l,e,t;const r=[B,A],n=[];function c(a,i){return a[0]?0:1}return s=c(o),l=n[s]=r[s](o),{c(){l.c(),e=m()},l(a){l.l(a),e=m()},m(a,i){n[s].m(a,i),S(a,e,i),t=!0},p(a,[i]){let u=s;s=c(a),s===u?n[s].p(a,i):(w(),f(n[u],1,1,()=>{n[u]=null}),C(),l=n[s],l?l.p(a,i):(l=n[s]=r[s](a),l.c()),_(l,1),l.m(e.parentNode,e))},i(a){t||(_(l),t=!0)},o(a){f(l),t=!1},d(a){a&&q(e),n[s].d(a)}}}function E(o,s,l){let e,t,r,n;b(o,p,i=>l(0,r=i)),b(o,N,i=>l(3,n=i));let{$$slots:c={},$$scope:a}=s;return o.$$set=i=>{"$$scope"in i&&l(4,a=i.$$scope)},o.$$.update=()=>{o.$$.dirty&8&&l(2,e=n.url.searchParams.get("labs")==="true"),o.$$.dirty&8&&l(1,t=n.url.searchParams.get("labs")==="false"),o.$$.dirty&6&&(e?d(p,r=!0,r):t&&d(p,r=!1,r))},[r,t,e,n,a,c]}class J extends L{constructor(s){super(),O(this,s,E,D,P,{})}}export{J as L,p as l}; diff --git a/ui/assets/local/_app/immutable/chunks/link.cs7LzqaH.js b/ui/assets/local/_app/immutable/chunks/link.DdkOc0EY.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/link.cs7LzqaH.js rename to ui/assets/local/_app/immutable/chunks/link.DdkOc0EY.js index af077b38e..47578c58c 100644 --- a/ui/assets/local/_app/immutable/chunks/link.cs7LzqaH.js +++ b/ui/assets/local/_app/immutable/chunks/link.DdkOc0EY.js @@ -1 +1 @@ -import{s as M,p as N,z as q,e as j,a as C,b as B,d as F,h as D,g as A,E,H as v,k as K,l as I,m as G,u as J,q as O,r as Q,D as P,A as R,t as U,f as V,n as W}from"./scheduler.AWtTlMeO.js";import{S as X,i as Y,t as d,g as Z,b as L,e as y,c as p,a as w,m as x,d as $}from"./index.91lpp7Ff.js";import{g as ee}from"./spread.rEx3vLA9.js";import{g as te}from"./entry.49-_VqMH.js";import{I as le}from"./icon.hlu3-iXK.js";import{t as S}from"./tw-merge.NbP7EmZe.js";function z(s){let e,l;return e=new le({props:{width:20,height:20,class:"mt-0.5",name:s[4]}}),{c(){p(e.$$.fragment)},l(n){w(e.$$.fragment,n)},m(n,m){x(e,n,m),l=!0},p(n,m){const c={};m&16&&(c.name=n[4]),e.$set(c)},i(n){l||(d(e.$$.fragment,n),l=!0)},o(n){L(e.$$.fragment,n),l=!1},d(n){$(e,n)}}}function H(s){let e;return{c(){e=U(s[5])},l(l){e=V(l,s[5])},m(l,n){K(l,e,n)},p(l,n){n&32&&W(e,l[5])},d(l){l&&A(e)}}}function ae(s){let e,l,n,m,c,_,g,o,h,b,i=s[4]&&z(s),r=s[5]&&H(s);const k=s[10].default,u=N(k,s,s[9],null);let a=[{href:s[1]},{target:m=s[3]?"_blank":null},{rel:c=s[3]?"noreferrer":null},{class:_=S("link",s[4]?"inline-flex":"inline",s[0])},{tabindex:g=s[1]?null:0},s[8]],T={};for(let t=0;t{i=null}),y()),t[5]?r?r.p(t,f):(r=H(t),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u&&u.p&&(!o||f&512)&&J(u,k,t,t[9],o?Q(k,t[9],f,null):O(t[9]),null),E(e,T=ee(a,[(!o||f&2)&&{href:t[1]},(!o||f&8&&m!==(m=t[3]?"_blank":null))&&{target:m},(!o||f&8&&c!==(c=t[3]?"noreferrer":null))&&{rel:c},(!o||f&17&&_!==(_=S("link",t[4]?"inline-flex":"inline",t[0])))&&{class:_},(!o||f&2&&g!==(g=t[1]?null:0))&&{tabindex:g},f&256&&t[8]])),v(e,"active",t[2]),v(e,"inverse",t[6]),v(e,"svelte-1m1kigg",!0)},i(t){o||(d(i),d(u,t),o=!0)},o(t){L(i),L(u,t),o=!1},d(t){t&&A(e),i&&i.d(),r&&r.d(),u&&u.d(t),h=!1,b()}}}function se(s,e,l){const n=["class","href","active","newTab","icon","text","inverse"];let m=P(e,n),{$$slots:c={},$$scope:_}=e,{class:g=""}=e,{href:o}=e,{active:h=!1}=e,{newTab:b=!1}=e,{icon:i=null}=e,{text:r=""}=e,{inverse:k=!1}=e;const u=a=>{a.button===1||b||a.metaKey||(a.preventDefault(),a.stopPropagation(),te(o))};return s.$$set=a=>{e=q(q({},e),R(a)),l(8,m=P(e,n)),"class"in a&&l(0,g=a.class),"href"in a&&l(1,o=a.href),"active"in a&&l(2,h=a.active),"newTab"in a&&l(3,b=a.newTab),"icon"in a&&l(4,i=a.icon),"text"in a&&l(5,r=a.text),"inverse"in a&&l(6,k=a.inverse),"$$scope"in a&&l(9,_=a.$$scope)},[g,o,h,b,i,r,k,u,m,_,c]}class me extends X{constructor(e){super(),Y(this,e,se,ae,M,{class:0,href:1,active:2,newTab:3,icon:4,text:5,inverse:6})}}export{me as L}; +import{s as M,p as N,z as q,e as j,a as C,b as B,d as F,h as D,g as A,E,H as v,k as K,l as I,m as G,u as J,q as O,r as Q,D as P,A as R,t as U,f as V,n as W}from"./scheduler.AWtTlMeO.js";import{S as X,i as Y,t as d,g as Z,b as L,e as y,c as p,a as w,m as x,d as $}from"./index.91lpp7Ff.js";import{g as ee}from"./spread.rEx3vLA9.js";import{g as te}from"./entry.Yz1YyohR.js";import{I as le}from"./icon.hlu3-iXK.js";import{t as S}from"./tw-merge.NbP7EmZe.js";function z(s){let e,l;return e=new le({props:{width:20,height:20,class:"mt-0.5",name:s[4]}}),{c(){p(e.$$.fragment)},l(n){w(e.$$.fragment,n)},m(n,m){x(e,n,m),l=!0},p(n,m){const c={};m&16&&(c.name=n[4]),e.$set(c)},i(n){l||(d(e.$$.fragment,n),l=!0)},o(n){L(e.$$.fragment,n),l=!1},d(n){$(e,n)}}}function H(s){let e;return{c(){e=U(s[5])},l(l){e=V(l,s[5])},m(l,n){K(l,e,n)},p(l,n){n&32&&W(e,l[5])},d(l){l&&A(e)}}}function ae(s){let e,l,n,m,c,_,g,o,h,b,i=s[4]&&z(s),r=s[5]&&H(s);const k=s[10].default,u=N(k,s,s[9],null);let a=[{href:s[1]},{target:m=s[3]?"_blank":null},{rel:c=s[3]?"noreferrer":null},{class:_=S("link",s[4]?"inline-flex":"inline",s[0])},{tabindex:g=s[1]?null:0},s[8]],T={};for(let t=0;t{i=null}),y()),t[5]?r?r.p(t,f):(r=H(t),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u&&u.p&&(!o||f&512)&&J(u,k,t,t[9],o?Q(k,t[9],f,null):O(t[9]),null),E(e,T=ee(a,[(!o||f&2)&&{href:t[1]},(!o||f&8&&m!==(m=t[3]?"_blank":null))&&{target:m},(!o||f&8&&c!==(c=t[3]?"noreferrer":null))&&{rel:c},(!o||f&17&&_!==(_=S("link",t[4]?"inline-flex":"inline",t[0])))&&{class:_},(!o||f&2&&g!==(g=t[1]?null:0))&&{tabindex:g},f&256&&t[8]])),v(e,"active",t[2]),v(e,"inverse",t[6]),v(e,"svelte-1m1kigg",!0)},i(t){o||(d(i),d(u,t),o=!0)},o(t){L(i),L(u,t),o=!1},d(t){t&&A(e),i&&i.d(),r&&r.d(),u&&u.d(t),h=!1,b()}}}function se(s,e,l){const n=["class","href","active","newTab","icon","text","inverse"];let m=P(e,n),{$$slots:c={},$$scope:_}=e,{class:g=""}=e,{href:o}=e,{active:h=!1}=e,{newTab:b=!1}=e,{icon:i=null}=e,{text:r=""}=e,{inverse:k=!1}=e;const u=a=>{a.button===1||b||a.metaKey||(a.preventDefault(),a.stopPropagation(),te(o))};return s.$$set=a=>{e=q(q({},e),R(a)),l(8,m=P(e,n)),"class"in a&&l(0,g=a.class),"href"in a&&l(1,o=a.href),"active"in a&&l(2,h=a.active),"newTab"in a&&l(3,b=a.newTab),"icon"in a&&l(4,i=a.icon),"text"in a&&l(5,r=a.text),"inverse"in a&&l(6,k=a.inverse),"$$scope"in a&&l(9,_=a.$$scope)},[g,o,h,b,i,r,k,u,m,_,c]}class me extends X{constructor(e){super(),Y(this,e,se,ae,M,{class:0,href:1,active:2,newTab:3,icon:4,text:5,inverse:6})}}export{me as L}; diff --git a/ui/assets/local/_app/immutable/chunks/logo.cZOlJWlm.js b/ui/assets/local/_app/immutable/chunks/logo.9CBQUGDp.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/logo.cZOlJWlm.js rename to ui/assets/local/_app/immutable/chunks/logo.9CBQUGDp.js index 553ee7c98..634785270 100644 --- a/ui/assets/local/_app/immutable/chunks/logo.cZOlJWlm.js +++ b/ui/assets/local/_app/immutable/chunks/logo.9CBQUGDp.js @@ -1,3 +1,3 @@ -import{s as g,e as m,t as _,b as p,d as h,g as d,f as b,j as o,k as x,l as u,v as k,c as w}from"./scheduler.AWtTlMeO.js";import{S as $,i as y,c as C,a as F,m as I,t as M,b as Z,d as j}from"./index.91lpp7Ff.js";import{p as E}from"./stores.BjeHb2_D.js";import{I as G}from"./icon.hlu3-iXK.js";function L(c){let e,s,n,t,r,i;return t=new G({props:{class:"text-purple-200",name:"feedback",height:12,width:12}}),{c(){e=m("a"),s=m("div"),n=m("div"),C(t.$$.fragment),r=_(` +import{s as g,e as m,t as _,b as p,d as h,g as d,f as b,j as o,k as x,l as u,v as k,c as w}from"./scheduler.AWtTlMeO.js";import{S as $,i as y,c as C,a as F,m as I,t as M,b as Z,d as j}from"./index.91lpp7Ff.js";import{p as E}from"./stores.meYYndLY.js";import{I as G}from"./icon.hlu3-iXK.js";function L(c){let e,s,n,t,r,i;return t=new G({props:{class:"text-purple-200",name:"feedback",height:12,width:12}}),{c(){e=m("a"),s=m("div"),n=m("div"),C(t.$$.fragment),r=_(` Give Feedback`),this.h()},l(a){e=p(a,"A",{href:!0,target:!0,"data-testid":!0,rel:!0});var l=h(e);s=p(l,"DIV",{class:!0});var f=h(s);n=p(f,"DIV",{class:!0});var v=h(n);F(t.$$.fragment,v),v.forEach(d),r=b(f,` Give Feedback`),f.forEach(d),l.forEach(d),this.h()},h(){o(n,"class","feedback-icon svelte-1909j35"),o(s,"class","feedback-button svelte-1909j35"),o(e,"href",c[0]),o(e,"target","_blank"),o(e,"data-testid","give-feedback"),o(e,"rel","noreferrer")},m(a,l){x(a,e,l),u(e,s),u(s,n),I(t,n,null),u(s,r),i=!0},p:k,i(a){i||(M(t.$$.fragment,a),i=!0)},o(a){Z(t.$$.fragment,a),i=!1},d(a){a&&d(e),j(t)}}}function P(c,e,s){let n;w(c,E,a=>s(3,n=a));var t,r;return[((r=(t=n.data)===null||t===void 0?void 0:t.settings)===null||r===void 0?void 0:r.feedbackURL)||"https://github.com/temporalio/ui/issues/new/choose"]}class q extends ${constructor(e){super(),y(this,e,P,L,g,{})}}const A="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='100px'%20height='100px'%20viewBox='0%200%20100%20100'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%3e%3c!--%20Generated%20by%20Pixelmator%20Pro%202.1.3%20--%3e%3cpath%20id='Path'%20d='M65.816%2034.224%20C63.684%2018.251%2058.288%204.917%2049.999%204.917%2041.711%204.917%2036.314%2018.251%2034.182%2034.224%2018.208%2036.357%204.874%2041.753%204.874%2050.042%204.874%2058.33%2018.211%2063.727%2034.182%2065.859%2036.314%2081.83%2041.711%2095.167%2049.999%2095.167%2058.288%2095.167%2063.684%2081.83%2065.816%2065.859%2081.79%2063.727%2095.124%2058.33%2095.124%2050.042%2095.124%2041.753%2081.788%2036.357%2065.816%2034.224%20Z%20M33.661%2061.206%20C18.363%2058.997%209.44%2053.939%209.44%2050.042%209.44%2046.144%2018.363%2041.087%2033.661%2038.877%2033.324%2042.56%2033.149%2046.319%2033.149%2050.042%2033.149%2053.764%2033.324%2057.526%2033.661%2061.206%20Z%20M49.999%209.483%20C53.897%209.483%2058.954%2018.405%2061.164%2033.703%2057.483%2033.367%2053.721%2033.191%2049.999%2033.191%2046.277%2033.191%2042.515%2033.367%2038.835%2033.703%2041.044%2018.405%2046.102%209.483%2049.999%209.483%20Z%20M66.338%2061.206%20C65.585%2061.316%2062.496%2061.678%2061.715%2061.755%2061.638%2062.539%2061.273%2065.625%2061.166%2066.378%2058.956%2081.676%2053.899%2090.598%2050.001%2090.598%2046.104%2090.598%2041.047%2081.676%2038.837%2066.378%2038.73%2065.625%2038.365%2062.536%2038.288%2061.755%2037.932%2058.129%2037.717%2054.234%2037.717%2050.042%2037.717%2045.85%2037.932%2041.954%2038.288%2038.326%2041.914%2037.97%2045.809%2037.755%2050.001%2037.755%2054.194%2037.755%2058.089%2037.97%2061.715%2038.326%2062.499%2038.403%2065.585%2038.767%2066.338%2038.875%2081.636%2041.085%2090.56%2046.144%2090.56%2050.039%2090.56%2053.935%2081.636%2058.997%2066.338%2061.206%20Z'%20fill='%23ffffff'%20fill-opacity='1'%20stroke='none'/%3e%3c/svg%3e";export{q as F,A as L}; diff --git a/ui/assets/local/_app/immutable/chunks/main-content-container.5d_ZxAyo.js b/ui/assets/local/_app/immutable/chunks/main-content-container.IUC91KWw.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/main-content-container.5d_ZxAyo.js rename to ui/assets/local/_app/immutable/chunks/main-content-container.IUC91KWw.js index ae9b78d1d..1aa7b120d 100644 --- a/ui/assets/local/_app/immutable/chunks/main-content-container.5d_ZxAyo.js +++ b/ui/assets/local/_app/immutable/chunks/main-content-container.IUC91KWw.js @@ -1 +1 @@ -import{C as T,s as O,a1 as ot,e as H,b as E,d as y,g as p,j as k,H as V,k as P,a as F,h as J,Y as Q,l as z,c as B,z as R,A as U,p as W,m as nt,u as X,q as Z,r as $,v as st,w as b}from"./scheduler.AWtTlMeO.js";import{S as L,i as N,c as I,a as A,m as w,t as v,b as S,d as j,g as it,e as rt}from"./index.91lpp7Ff.js";import{w as q}from"./entry.49-_VqMH.js";import{h as ct}from"./has.-dFYEuQV.js";import{f as at,a as ft}from"./events.bSFWyNpS.js";import{B as lt}from"./button.J_9D2qip.js";const dt=e=>e===null||typeof e!="object"||Array.isArray(e)?!1:!!ct(e,"activityType"),M=200,D=q(0),G=q(M),d=q([]),h=q([]),ut=()=>{h.set([]),d.set([]),D.set(0),G.set(M)},zt=()=>{h.set([]),d.set([])},Dt=e=>{d.set([]),T(h).includes(e.id)?h.set(T(h).filter(t=>t!==e.id)):h.set([...T(h),e.id])},Gt=e=>{d.set([]),T(h).includes(e.id)?h.set([]):h.set([e.id])},Vt=e=>{h.set([]),T(d).includes(e.id)?d.set([]):d.set([e.id])},Mt=(e,t)=>{if(h.set([]),dt(e)){d.set(T(d).filter(o=>o!==e.activityId));return}if(T(d).includes(e.id))d.set(T(d).filter(o=>o!==e.id));else{const o=T(d).find(l=>t==null?void 0:t.eventIds.has(l));o?d.set([...T(d).filter(l=>l!==o),e.id]):d.set([...T(d),e.id])}};function mt(e){let t,o,l;return o=new lt({props:{size:"sm",variant:"primary",leadingIcon:"arrow-down"}}),o.$on("click",function(){ot(e[1])&&e[1].apply(this,arguments)}),{c(){t=H("div"),I(o.$$.fragment),this.h()},l(s){t=E(s,"DIV",{class:!0});var n=y(t);A(o.$$.fragment,n),n.forEach(p),this.h()},h(){k(t,"class","jump-to-bottom relative svelte-1a615g3"),V(t,"hidden",e[0])},m(s,n){P(s,t,n),w(o,t,null),l=!0},p(s,[n]){e=s,(!l||n&1)&&V(t,"hidden",e[0])},i(s){l||(v(o.$$.fragment,s),l=!0)},o(s){S(o.$$.fragment,s),l=!1},d(s){s&&p(t),j(o)}}}function ht(e,t,o){let{hidden:l}=t,{onScrollToBottomClick:s}=t;return e.$$set=n=>{"hidden"in n&&o(0,l=n.hidden),"onScrollToBottomClick"in n&&o(1,s=n.onScrollToBottomClick)},[l,s]}class _t extends L{constructor(t){super(),N(this,t,ht,mt,O,{hidden:0,onScrollToBottomClick:1})}}function Tt(e){let t,o,l;return o=new lt({props:{size:"sm",variant:"primary",leadingIcon:"arrow-up"}}),o.$on("click",function(){ot(e[1])&&e[1].apply(this,arguments)}),{c(){t=H("div"),I(o.$$.fragment),this.h()},l(s){t=E(s,"DIV",{});var n=y(t);A(o.$$.fragment,n),n.forEach(p),this.h()},h(){V(t,"invisible",e[0])},m(s,n){P(s,t,n),w(o,t,null),l=!0},p(s,[n]){e=s,(!l||n&1)&&V(t,"invisible",e[0])},i(s){l||(v(o.$$.fragment,s),l=!0)},o(s){S(o.$$.fragment,s),l=!1},d(s){s&&p(t),j(o)}}}function gt(e,t,o){let{hidden:l}=t,{onScrollToTopClick:s}=t;return e.$$set=n=>{"hidden"in n&&o(0,l=n.hidden),"onScrollToTopClick"in n&&o(1,s=n.onScrollToTopClick)},[l,s]}class vt extends L{constructor(t){super(),N(this,t,gt,Tt,O,{hidden:0,onScrollToTopClick:1})}}function x(e){let t,o;return t=new _t({props:{hidden:e[1],onScrollToBottomClick:e[3]}}),{c(){I(t.$$.fragment)},l(l){A(t.$$.fragment,l)},m(l,s){w(t,l,s),o=!0},p(l,s){const n={};s&2&&(n.hidden=l[1]),s&8&&(n.onScrollToBottomClick=l[3]),t.$set(n)},i(l){o||(v(t.$$.fragment,l),o=!0)},o(l){S(t.$$.fragment,l),o=!1},d(l){j(t,l)}}}function pt(e){let t,o,l,s,n;o=new vt({props:{hidden:e[0],onScrollToTopClick:e[2]}});let i=e[4].length&&x(e);return{c(){t=H("div"),I(o.$$.fragment),l=F(),i&&i.c(),this.h()},l(a){t=E(a,"DIV",{id:!0,class:!0});var c=y(t);A(o.$$.fragment,c),l=J(c),i&&i.l(c),c.forEach(p),this.h()},h(){k(t,"id","scroll-container"),k(t,"class",s=Q(e[5].class)+" svelte-1qpv1pk")},m(a,c){P(a,t,c),w(o,t,null),z(t,l),i&&i.m(t,null),n=!0},p(a,[c]){const g={};c&1&&(g.hidden=a[0]),c&4&&(g.onScrollToTopClick=a[2]),o.$set(g),a[4].length?i?(i.p(a,c),c&16&&v(i,1)):(i=x(a),i.c(),v(i,1),i.m(t,null)):i&&(it(),S(i,1,1,()=>{i=null}),rt()),(!n||c&32&&s!==(s=Q(a[5].class)+" svelte-1qpv1pk"))&&k(t,"class",s)},i(a){n||(v(o.$$.fragment,a),v(i),n=!0)},o(a){S(o.$$.fragment,a),S(i),n=!1},d(a){a&&p(t),j(o),i&&i.d()}}}function St(e,t,o){let l;B(e,at,c=>o(4,l=c));let{scrollToTopHidden:s=!0}=t,{scrollToBottomHidden:n=!1}=t,{onScrollToTopClick:i}=t,{onScrollToBottomClick:a}=t;return e.$$set=c=>{o(5,t=R(R({},t),U(c))),"scrollToTopHidden"in c&&o(0,s=c.scrollToTopHidden),"scrollToBottomHidden"in c&&o(1,n=c.scrollToBottomHidden),"onScrollToTopClick"in c&&o(2,i=c.onScrollToTopClick),"onScrollToBottomClick"in c&&o(3,a=c.onScrollToBottomClick)},t=U(t),[s,n,i,a,l,t]}class kt extends L{constructor(t){super(),N(this,t,St,pt,O,{scrollToTopHidden:0,scrollToBottomHidden:1,onScrollToTopClick:2,onScrollToBottomClick:3})}}const Ct=e=>({}),tt=e=>({});function bt(e){let t,o,l,s,n,i,a,c;const g=e[5].default,u=W(g,e,e[4],null),C=e[5].main,m=W(C,e,e[4],tt);return n=new kt({props:{scrollToTopHidden:e[0],scrollToBottomHidden:Bt,onScrollToTopClick:e[1],onScrollToBottomClick:e[2]}}),{c(){t=H("div"),u&&u.c(),o=F(),l=H("main"),m&&m.c(),s=F(),I(n.$$.fragment),this.h()},l(f){t=E(f,"DIV",{id:!0,class:!0});var r=y(t);u&&u.l(r),o=J(r),l=E(r,"MAIN",{id:!0});var _=y(l);m&&m.l(_),_.forEach(p),s=J(r),A(n.$$.fragment,r),r.forEach(p),this.h()},h(){k(l,"id","content"),k(t,"id","content-wrapper"),k(t,"class","relative h-screen w-max flex-auto overflow-auto")},m(f,r){P(f,t,r),u&&u.m(t,null),z(t,o),z(t,l),m&&m.m(l,null),z(t,s),w(n,t,null),i=!0,a||(c=nt(t,"scroll",e[3]),a=!0)},p(f,[r]){u&&u.p&&(!i||r&16)&&X(u,g,f,f[4],i?$(g,f[4],r,null):Z(f[4]),null),m&&m.p&&(!i||r&16)&&X(m,C,f,f[4],i?$(C,f[4],r,Ct):Z(f[4]),tt);const _={};r&1&&(_.scrollToTopHidden=f[0]),n.$set(_)},i(f){i||(v(u,f),v(m,f),v(n.$$.fragment,f),i=!0)},o(f){S(u,f),S(m,f),S(n.$$.fragment,f),i=!1},d(f){f&&p(t),u&&u.d(f),m&&m.d(f),j(n),a=!1,c()}}}const et=q(0);let Bt=!1,Ht=150;function Y(){return document.getElementById("content-wrapper")}function Et(e,t,o){let l,s=st,n,i,a;B(e,et,r=>o(6,l=r)),B(e,G,r=>o(7,n=r)),B(e,D,r=>o(8,i=r)),B(e,ft,r=>o(9,a=r)),e.$$.on_destroy.push(()=>s());let{$$slots:c={},$$scope:g}=t,u=!0;function C(){var r;b(D,i=0,i),b(G,n=M,n),(r=Y())===null||r===void 0||r.scrollTo(0,0)}function m(){var r,_;const K=a==null?void 0:a.length;K&&(ut(),b(G,n=K,n),b(D,i=n-M,i)),(r=Y())===null||r===void 0||r.scrollTo(0,(_=Y())===null||_===void 0?void 0:_.scrollHeight)}function f(r){const _=r.target;b(et,l=_.scrollTop,l),o(0,u=l{"$$scope"in r&&o(4,g=r.$$scope)},[u,C,m,f,g,c]}class Ot extends L{constructor(t){super(),N(this,t,Et,bt,O,{})}}export{Ot as M,Vt as a,D as b,zt as c,et as d,G as e,M as f,Dt as g,Gt as h,dt as i,ut as j,h as k,d as l,Mt as s}; +import{C as T,s as O,a1 as ot,e as H,b as E,d as y,g as p,j as k,H as V,k as P,a as F,h as J,Y as Q,l as z,c as B,z as R,A as U,p as W,m as nt,u as X,q as Z,r as $,v as st,w as b}from"./scheduler.AWtTlMeO.js";import{S as L,i as N,c as I,a as A,m as w,t as v,b as S,d as j,g as it,e as rt}from"./index.91lpp7Ff.js";import{w as q}from"./entry.Yz1YyohR.js";import{h as ct}from"./has.-dFYEuQV.js";import{f as at,a as ft}from"./events.xGcD40Yy.js";import{B as lt}from"./button.bjyERRn9.js";const dt=e=>e===null||typeof e!="object"||Array.isArray(e)?!1:!!ct(e,"activityType"),M=200,D=q(0),G=q(M),d=q([]),h=q([]),ut=()=>{h.set([]),d.set([]),D.set(0),G.set(M)},zt=()=>{h.set([]),d.set([])},Dt=e=>{d.set([]),T(h).includes(e.id)?h.set(T(h).filter(t=>t!==e.id)):h.set([...T(h),e.id])},Gt=e=>{d.set([]),T(h).includes(e.id)?h.set([]):h.set([e.id])},Vt=e=>{h.set([]),T(d).includes(e.id)?d.set([]):d.set([e.id])},Mt=(e,t)=>{if(h.set([]),dt(e)){d.set(T(d).filter(o=>o!==e.activityId));return}if(T(d).includes(e.id))d.set(T(d).filter(o=>o!==e.id));else{const o=T(d).find(l=>t==null?void 0:t.eventIds.has(l));o?d.set([...T(d).filter(l=>l!==o),e.id]):d.set([...T(d),e.id])}};function mt(e){let t,o,l;return o=new lt({props:{size:"sm",variant:"primary",leadingIcon:"arrow-down"}}),o.$on("click",function(){ot(e[1])&&e[1].apply(this,arguments)}),{c(){t=H("div"),I(o.$$.fragment),this.h()},l(s){t=E(s,"DIV",{class:!0});var n=y(t);A(o.$$.fragment,n),n.forEach(p),this.h()},h(){k(t,"class","jump-to-bottom relative svelte-1a615g3"),V(t,"hidden",e[0])},m(s,n){P(s,t,n),w(o,t,null),l=!0},p(s,[n]){e=s,(!l||n&1)&&V(t,"hidden",e[0])},i(s){l||(v(o.$$.fragment,s),l=!0)},o(s){S(o.$$.fragment,s),l=!1},d(s){s&&p(t),j(o)}}}function ht(e,t,o){let{hidden:l}=t,{onScrollToBottomClick:s}=t;return e.$$set=n=>{"hidden"in n&&o(0,l=n.hidden),"onScrollToBottomClick"in n&&o(1,s=n.onScrollToBottomClick)},[l,s]}class _t extends L{constructor(t){super(),N(this,t,ht,mt,O,{hidden:0,onScrollToBottomClick:1})}}function Tt(e){let t,o,l;return o=new lt({props:{size:"sm",variant:"primary",leadingIcon:"arrow-up"}}),o.$on("click",function(){ot(e[1])&&e[1].apply(this,arguments)}),{c(){t=H("div"),I(o.$$.fragment),this.h()},l(s){t=E(s,"DIV",{});var n=y(t);A(o.$$.fragment,n),n.forEach(p),this.h()},h(){V(t,"invisible",e[0])},m(s,n){P(s,t,n),w(o,t,null),l=!0},p(s,[n]){e=s,(!l||n&1)&&V(t,"invisible",e[0])},i(s){l||(v(o.$$.fragment,s),l=!0)},o(s){S(o.$$.fragment,s),l=!1},d(s){s&&p(t),j(o)}}}function gt(e,t,o){let{hidden:l}=t,{onScrollToTopClick:s}=t;return e.$$set=n=>{"hidden"in n&&o(0,l=n.hidden),"onScrollToTopClick"in n&&o(1,s=n.onScrollToTopClick)},[l,s]}class vt extends L{constructor(t){super(),N(this,t,gt,Tt,O,{hidden:0,onScrollToTopClick:1})}}function x(e){let t,o;return t=new _t({props:{hidden:e[1],onScrollToBottomClick:e[3]}}),{c(){I(t.$$.fragment)},l(l){A(t.$$.fragment,l)},m(l,s){w(t,l,s),o=!0},p(l,s){const n={};s&2&&(n.hidden=l[1]),s&8&&(n.onScrollToBottomClick=l[3]),t.$set(n)},i(l){o||(v(t.$$.fragment,l),o=!0)},o(l){S(t.$$.fragment,l),o=!1},d(l){j(t,l)}}}function pt(e){let t,o,l,s,n;o=new vt({props:{hidden:e[0],onScrollToTopClick:e[2]}});let i=e[4].length&&x(e);return{c(){t=H("div"),I(o.$$.fragment),l=F(),i&&i.c(),this.h()},l(a){t=E(a,"DIV",{id:!0,class:!0});var c=y(t);A(o.$$.fragment,c),l=J(c),i&&i.l(c),c.forEach(p),this.h()},h(){k(t,"id","scroll-container"),k(t,"class",s=Q(e[5].class)+" svelte-1qpv1pk")},m(a,c){P(a,t,c),w(o,t,null),z(t,l),i&&i.m(t,null),n=!0},p(a,[c]){const g={};c&1&&(g.hidden=a[0]),c&4&&(g.onScrollToTopClick=a[2]),o.$set(g),a[4].length?i?(i.p(a,c),c&16&&v(i,1)):(i=x(a),i.c(),v(i,1),i.m(t,null)):i&&(it(),S(i,1,1,()=>{i=null}),rt()),(!n||c&32&&s!==(s=Q(a[5].class)+" svelte-1qpv1pk"))&&k(t,"class",s)},i(a){n||(v(o.$$.fragment,a),v(i),n=!0)},o(a){S(o.$$.fragment,a),S(i),n=!1},d(a){a&&p(t),j(o),i&&i.d()}}}function St(e,t,o){let l;B(e,at,c=>o(4,l=c));let{scrollToTopHidden:s=!0}=t,{scrollToBottomHidden:n=!1}=t,{onScrollToTopClick:i}=t,{onScrollToBottomClick:a}=t;return e.$$set=c=>{o(5,t=R(R({},t),U(c))),"scrollToTopHidden"in c&&o(0,s=c.scrollToTopHidden),"scrollToBottomHidden"in c&&o(1,n=c.scrollToBottomHidden),"onScrollToTopClick"in c&&o(2,i=c.onScrollToTopClick),"onScrollToBottomClick"in c&&o(3,a=c.onScrollToBottomClick)},t=U(t),[s,n,i,a,l,t]}class kt extends L{constructor(t){super(),N(this,t,St,pt,O,{scrollToTopHidden:0,scrollToBottomHidden:1,onScrollToTopClick:2,onScrollToBottomClick:3})}}const Ct=e=>({}),tt=e=>({});function bt(e){let t,o,l,s,n,i,a,c;const g=e[5].default,u=W(g,e,e[4],null),C=e[5].main,m=W(C,e,e[4],tt);return n=new kt({props:{scrollToTopHidden:e[0],scrollToBottomHidden:Bt,onScrollToTopClick:e[1],onScrollToBottomClick:e[2]}}),{c(){t=H("div"),u&&u.c(),o=F(),l=H("main"),m&&m.c(),s=F(),I(n.$$.fragment),this.h()},l(f){t=E(f,"DIV",{id:!0,class:!0});var r=y(t);u&&u.l(r),o=J(r),l=E(r,"MAIN",{id:!0});var _=y(l);m&&m.l(_),_.forEach(p),s=J(r),A(n.$$.fragment,r),r.forEach(p),this.h()},h(){k(l,"id","content"),k(t,"id","content-wrapper"),k(t,"class","relative h-screen w-max flex-auto overflow-auto")},m(f,r){P(f,t,r),u&&u.m(t,null),z(t,o),z(t,l),m&&m.m(l,null),z(t,s),w(n,t,null),i=!0,a||(c=nt(t,"scroll",e[3]),a=!0)},p(f,[r]){u&&u.p&&(!i||r&16)&&X(u,g,f,f[4],i?$(g,f[4],r,null):Z(f[4]),null),m&&m.p&&(!i||r&16)&&X(m,C,f,f[4],i?$(C,f[4],r,Ct):Z(f[4]),tt);const _={};r&1&&(_.scrollToTopHidden=f[0]),n.$set(_)},i(f){i||(v(u,f),v(m,f),v(n.$$.fragment,f),i=!0)},o(f){S(u,f),S(m,f),S(n.$$.fragment,f),i=!1},d(f){f&&p(t),u&&u.d(f),m&&m.d(f),j(n),a=!1,c()}}}const et=q(0);let Bt=!1,Ht=150;function Y(){return document.getElementById("content-wrapper")}function Et(e,t,o){let l,s=st,n,i,a;B(e,et,r=>o(6,l=r)),B(e,G,r=>o(7,n=r)),B(e,D,r=>o(8,i=r)),B(e,ft,r=>o(9,a=r)),e.$$.on_destroy.push(()=>s());let{$$slots:c={},$$scope:g}=t,u=!0;function C(){var r;b(D,i=0,i),b(G,n=M,n),(r=Y())===null||r===void 0||r.scrollTo(0,0)}function m(){var r,_;const K=a==null?void 0:a.length;K&&(ut(),b(G,n=K,n),b(D,i=n-M,i)),(r=Y())===null||r===void 0||r.scrollTo(0,(_=Y())===null||_===void 0?void 0:_.scrollHeight)}function f(r){const _=r.target;b(et,l=_.scrollTop,l),o(0,u=l{"$$scope"in r&&o(4,g=r.$$scope)},[u,C,m,f,g,c]}class Ot extends L{constructor(t){super(),N(this,t,Et,bt,O,{})}}export{Ot as M,Vt as a,D as b,zt as c,et as d,G as e,M as f,Dt as g,Gt as h,dt as i,ut as j,h as k,d as l,Mt as s}; diff --git a/ui/assets/local/_app/immutable/chunks/menu.clBpn3HP.js b/ui/assets/local/_app/immutable/chunks/menu.RlaY2l8z.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/menu.clBpn3HP.js rename to ui/assets/local/_app/immutable/chunks/menu.RlaY2l8z.js index c37330a27..d820ba329 100644 --- a/ui/assets/local/_app/immutable/chunks/menu.clBpn3HP.js +++ b/ui/assets/local/_app/immutable/chunks/menu.RlaY2l8z.js @@ -1 +1 @@ -import{s as ee,p as T,z as C,e as q,b as B,d as K,g as L,E as J,k as D,_ as Ne,u as P,q as U,r as V,D as Q,o as ce,a2 as Se,A as le,v as Te,a6 as Pe,w as R,x as $,U as de,c as Y,a as G,h as X,j as Z,H as O,l as W,m as w,F as me,G as Me,t as Le,f as Oe,n as Ae,K as Ue,$ as Ve,B as qe,L as Be}from"./scheduler.AWtTlMeO.js";import{S as te,i as se,t as p,b as M,g as y,e as F,c as ne,a as ie,m as ae,d as oe,h as Ke}from"./index.91lpp7Ff.js";import{g as x,a as He}from"./spread.rEx3vLA9.js";import{B as je}from"./badge.mHsIdLRu.js";import{B as Re}from"./button.J_9D2qip.js";import{I as De}from"./icon.hlu3-iXK.js";import{t as H}from"./tw-merge.NbP7EmZe.js";import{a as ze}from"./index.VrdFapBL.js";import{w as re}from"./entry.49-_VqMH.js";const Ge=(l,e)=>{const t=s=>{l&&!l.contains(s.target)&&!s.defaultPrevented&&e(s)};return document.addEventListener("click",t,!0),{destroy(){document.removeEventListener("click",t,!0)}}},Xe=l=>({open:l&2}),_e=l=>({open:l[1]});function Je(l){let e,t,s,i,n;const f=l[5].default,c=T(f,l,l[4],_e);let d=[{class:t=H("relative",l[0])},l[3]],o={};for(let h=0;h(f(),f=Pe(m,r=>t(6,n=r)),m);l.$$.on_destroy.push(()=>f());let{$$slots:d={},$$scope:o}=e,{class:h=""}=e,{open:m=re(!1)}=e;c();const u=re(!1),k=re(null),E=ce(),g=()=>{n&&(E("close"),R(m,n=!1,n))};return Se(ue,{open:m,keepOpen:u,menuElement:k}),l.$$set=r=>{e=C(C({},e),le(r)),t(3,i=Q(e,s)),"class"in r&&t(0,h=r.class),"open"in r&&c(t(1,m=r.open)),"$$scope"in r&&t(4,o=r.$$scope)},[h,m,g,i,o,d]}class gl extends te{constructor(e){super(),se(this,e,Qe,Je,ee,{class:0,open:1})}}const We=l=>({}),he=l=>({}),Ye=l=>({}),be=l=>({});function Ze(l){let e,t,s,i,n,f,c,d,o,h,m,u,k;const E=l[13].leading,g=T(E,l,l[12],be),r=[we,Fe],b=[];function N(a,I){return a[5]?0:1}i=N(l),n=b[i]=r[i](l);let v=l[1]!==void 0&&ge(l);const S=l[13].trailing,A=T(S,l,l[12],he);let j=[{role:"menuitem"},{class:d=H("menu-item","m-1","px-3","py-2",l[0])},{"aria-hidden":o=l[3]?"true":"false"},{"aria-disabled":l[3]},{tabindex:h=l[3]?-1:0},l[11]],_={};for(let a=0;a{b[z]=null}),F(),n=b[i],n?n.p(a,I):(n=b[i]=r[i](a),n.c()),p(n,1),n.m(s,f)),a[1]!==void 0?v?(v.p(a,I),I&2&&p(v,1)):(v=ge(a),v.c(),p(v,1),v.m(s,null)):v&&(y(),M(v,1,1,()=>{v=null}),F()),(!m||I&64)&&O(s,"centered",a[6]),A&&A.p&&(!m||I&4096)&&P(A,S,a,a[12],m?V(S,a[12],I,We):U(a[12]),he),J(e,_=x(j,[{role:"menuitem"},(!m||I&1&&d!==(d=H("menu-item","m-1","px-3","py-2",a[0])))&&{class:d},(!m||I&8&&o!==(o=a[3]?"true":"false"))&&{"aria-hidden":o},(!m||I&8)&&{"aria-disabled":a[3]},(!m||I&8&&h!==(h=a[3]?-1:0))&&{tabindex:h},I&2048&&a[11]])),O(e,"destructive",a[2]),O(e,"disabled",a[3]),O(e,"selected",a[1]),O(e,"svelte-sphlvo",!0)},i(a){m||(p(g,a),p(n),p(v),p(A,a),m=!0)},o(a){M(g,a),M(n),M(v),M(A,a),m=!1},d(a){a&&L(e),g&&g.d(a),b[i].d(),v&&v.d(),A&&A.d(a),u=!1,Me(k)}}}function ye(l){let e,t,s,i,n,f,c;const d=l[13].default,o=T(d,l,l[12],null);let h=[{href:l[4]},{role:"menuitem"},{class:t=H("menu-item","m-1","px-3","py-2",l[0])},{"aria-hidden":s=l[3]?"true":"false"},{"aria-disabled":l[3]},{tabindex:i=l[3]?-1:0},l[11]],m={};for(let u=0;u{s=null}),F())},i(i){t||(p(s),t=!0)},o(i){M(s),t=!1},d(i){i&&L(e),s&&s.d()}}}function ke(l){let e,t;return e=new De({props:{name:"checkmark"}}),{c(){ne(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,i){ae(e,s,i),t=!0},i(s){t||(p(e.$$.fragment,s),t=!0)},o(s){M(e.$$.fragment,s),t=!1},d(s){oe(e,s)}}}function xe(l){let e,t,s,i;const n=[ye,Ze],f=[];function c(d,o){return d[4]?0:1}return e=c(l),t=f[e]=n[e](l),{c(){t.c(),s=$()},l(d){t.l(d),s=$()},m(d,o){f[e].m(d,o),D(d,s,o),i=!0},p(d,[o]){let h=e;e=c(d),e===h?f[e].p(d,o):(y(),M(f[h],1,1,()=>{f[h]=null}),F(),t=f[e],t?t.p(d,o):(t=f[e]=n[e](d),t.c()),p(t,1),t.m(s.parentNode,s))},i(d){i||(p(t),i=!0)},o(d){M(t),i=!1},d(d){d&&L(s),f[e].d(d)}}}const fe='input, li[role="option"]:not([aria-disabled="true"]), li[role="menuitem"]:not([aria-disabled="true"])';function $e(l,e,t){const s=["class","selected","destructive","disabled","href","description","centered"];let i=Q(e,s),n,f,{$$slots:c={},$$scope:d}=e,{class:o=""}=e,{selected:h=void 0}=e,{destructive:m=!1}=e,{disabled:u=!1}=e,{href:k=null}=e,{description:E=null}=e,{centered:g=!1}=e;const{keepOpen:r,open:b}=de(ue);Y(l,r,_=>t(15,f=_)),Y(l,b,_=>t(14,n=_));const N=ce(),v=_=>{switch(_.key){case"Escape":R(b,n=!1,n);break;case"ArrowDown":case"ArrowRight":S(_.currentTarget);break;case"ArrowUp":case"ArrowLeft":A(_.currentTarget);break;case" ":case"Enter":N("click"),f||R(b,n=!1,n);break}},S=_=>{let a=_.nextElementSibling;for(;a&&!a.matches(fe);)a=a.nextElementSibling;a&&a instanceof HTMLLIElement&&a.focus()},A=_=>{let a=_.previousElementSibling;for(;a&&!a.matches(fe);)a=a.previousElementSibling;a&&a instanceof HTMLLIElement&&a.focus()},j=()=>{f||R(b,n=!1,n),N("click")};return l.$$set=_=>{e=C(C({},e),le(_)),t(11,i=Q(e,s)),"class"in _&&t(0,o=_.class),"selected"in _&&t(1,h=_.selected),"destructive"in _&&t(2,m=_.destructive),"disabled"in _&&t(3,u=_.disabled),"href"in _&&t(4,k=_.href),"description"in _&&t(5,E=_.description),"centered"in _&&t(6,g=_.centered),"$$scope"in _&&t(12,d=_.$$scope)},[o,h,m,u,k,E,g,r,b,v,j,i,d,c]}class kl extends te{constructor(e){super(),se(this,e,$e,xe,ee,{class:0,selected:1,destructive:2,disabled:3,href:4,description:5,centered:6})}}const el=l=>({}),ve=l=>({}),ll=l=>({}),pe=l=>({});function Ee(l){let e,t,s;return t=new De({props:{name:l[8]?"chevron-up":"chevron-down"}}),{c(){e=q("div"),ne(t.$$.fragment),this.h()},l(i){e=B(i,"DIV",{class:!0});var n=K(e);ie(t.$$.fragment,n),n.forEach(L),this.h()},h(){Z(e,"class","flex")},m(i,n){D(i,e,n),ae(t,e,null),s=!0},p(i,n){const f={};n&256&&(f.name=i[8]?"chevron-up":"chevron-down"),t.$set(f)},i(i){s||(p(t.$$.fragment,i),s=!0)},o(i){M(t.$$.fragment,i),s=!1},d(i){i&&L(e),oe(t)}}}function Ie(l){let e,t;return e=new je({props:{class:"absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[tl]},$$scope:{ctx:l}}}),{c(){ne(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,i){ae(e,s,i),t=!0},p(s,i){const n={};i&65540&&(n.$$scope={dirty:i,ctx:s}),e.$set(n)},i(s){t||(p(e.$$.fragment,s),t=!0)},o(s){M(e.$$.fragment,s),t=!1},d(s){oe(e,s)}}}function tl(l){let e;return{c(){e=Le(l[2])},l(t){e=Oe(t,l[2])},m(t,s){D(t,e,s)},p(t,s){s&4&&Ae(e,t[2])},d(t){t&&L(e)}}}function sl(l){let e,t,s,i,n,f,c;const d=l[15].leading,o=T(d,l,l[16],pe),h=l[15].default,m=T(h,l,l[16],null);let u=l[4]&&Ee(l);const k=l[15].trailing,E=T(k,l,l[16],ve);let g=l[2]>0&&Ie(l);return{c(){o&&o.c(),e=G(),t=q("div"),m&&m.c(),s=G(),u&&u.c(),i=G(),E&&E.c(),n=G(),g&&g.c(),f=$(),this.h()},l(r){o&&o.l(r),e=X(r),t=B(r,"DIV",{class:!0});var b=K(t);m&&m.l(b),b.forEach(L),s=X(r),u&&u.l(r),i=X(r),E&&E.l(r),n=X(r),g&&g.l(r),f=$(),this.h()},h(){Z(t,"class","flex grow items-center"),O(t,"hidden",!l[14].default)},m(r,b){o&&o.m(r,b),D(r,e,b),D(r,t,b),m&&m.m(t,null),D(r,s,b),u&&u.m(r,b),D(r,i,b),E&&E.m(r,b),D(r,n,b),g&&g.m(r,b),D(r,f,b),c=!0},p(r,b){o&&o.p&&(!c||b&65536)&&P(o,d,r,r[16],c?V(d,r[16],b,ll):U(r[16]),pe),m&&m.p&&(!c||b&65536)&&P(m,h,r,r[16],c?V(h,r[16],b,null):U(r[16]),null),(!c||b&16384)&&O(t,"hidden",!r[14].default),r[4]?u?(u.p(r,b),b&16&&p(u,1)):(u=Ee(r),u.c(),p(u,1),u.m(i.parentNode,i)):u&&(y(),M(u,1,1,()=>{u=null}),F()),E&&E.p&&(!c||b&65536)&&P(E,k,r,r[16],c?V(k,r[16],b,el):U(r[16]),ve),r[2]>0?g?(g.p(r,b),b&4&&p(g,1)):(g=Ie(r),g.c(),p(g,1),g.m(f.parentNode,f)):g&&(y(),M(g,1,1,()=>{g=null}),F())},i(r){c||(p(o,r),p(m,r),p(u),p(E,r),p(g),c=!0)},o(r){M(o,r),M(m,r),M(u),M(E,r),M(g),c=!1},d(r){r&&(L(e),L(t),L(s),L(i),L(n),L(f)),o&&o.d(r),m&&m.d(r),u&&u.d(r),E&&E.d(r),g&&g.d(r)}}}function nl(l){let e,t;const s=[{id:l[5]},{disabled:l[3]},{type:"button"},{"aria-haspopup":!l[3]},{"aria-controls":l[1]},{"aria-expanded":l[8]},{"aria-label":l[6]},{variant:l[7]},{class:H(l[0])},l[13]];let i={$$slots:{default:[sl]},$$scope:{ctx:l}};for(let n=0;nt(8,f=a)),Y(l,S,a=>t(17,n=a));const A=()=>{v.update(a=>{let I=a;return k||(I=!a),N("click",{open:I}),I})},j=a=>{switch(a.key){case"Escape":R(v,f=!1,f);break;case"ArrowDown":a.preventDefault(),f?_():R(v,f=!0,f);break}},_=()=>{const a=Array.from(n.querySelectorAll(fe));a&&a[0]&&requestAnimationFrame(()=>a[0].focus())};return l.$$set=a=>{e=C(C({},e),le(a)),t(13,i=Q(e,s)),"class"in a&&t(0,h=a.class),"controls"in a&&t(1,m=a.controls),"count"in a&&t(2,u=a.count),"disabled"in a&&t(3,k=a.disabled),"hasIndicator"in a&&t(4,E=a.hasIndicator),"id"in a&&t(5,g=a.id),"label"in a&&t(6,r=a.label),"variant"in a&&t(7,b=a.variant),"$$scope"in a&&t(16,d=a.$$scope)},[h,m,u,k,E,g,r,b,f,v,S,A,j,i,o,c,d]}class vl extends te{constructor(e){super(),se(this,e,il,nl,ee,{class:0,controls:1,count:2,disabled:3,hasIndicator:4,id:5,label:6,variant:7})}}const Ce=l=>Array.from(l.querySelectorAll('[href], button, textarea, input, div[contentEditable="true"], select, [tabindex][tabindex="0"]')).filter(e=>!e.hasAttribute("disabled")&&e.getAttribute("tabindex")!=="-1"),pl=(l,e)=>{let t,s;const i=o=>{o.key==="Tab"&&(o.shiftKey?document.activeElement===t&&(s.focus(),o.preventDefault()):document.activeElement===s&&(t.focus(),o.preventDefault()))},n=(o=!1)=>{if(e===!1)return;const h=Ce(l);t=h[0],s=h[h.length-1],o||t==null||t.focus(),t==null||t.addEventListener("keydown",i),s==null||s.addEventListener("keydown",i)},f=()=>{t==null||t.removeEventListener("keydown",i),s==null||s.removeEventListener("keydown",i)},c=(o,h)=>(o.length&&(f(),n(!0)),h);return new MutationObserver(c).observe(l,{childList:!0,subtree:!0}),n(),{update(o){e=o,o?n():f()},destroy(){f()}}};function al(l){let e,t,s,i,n,f,c;const d=l[13].default,o=T(d,l,l[12],null);let h=[{role:"menu"},{class:t=H(["menu","max-h-[320px]"],l[3],l[1])},{"aria-labelledby":l[2]},{tabindex:s=-1},{id:l[2]},l[9]],m={};for(let u=0;u{i=Ke(e,ze,{duration:100}),i.start()})),n=!0)},o(u){M(o,u),n=!1},d(u){u&&L(e),o&&o.d(u),l[15](null),f=!1,Me(c)}}}function ol(l,e,t){let s,i;const n=["class","id","keepOpen","position","menuElement"];let f=Q(e,n),c,d,o,{$$slots:h={},$$scope:m}=e,{class:u=""}=e,{id:k}=e,{keepOpen:E=!1}=e,{position:g="left"}=e,{menuElement:r=null}=e;const{keepOpen:b,menuElement:N,open:v}=de(ue);Y(l,b,_=>t(17,d=_)),Y(l,N,_=>t(18,o=_)),Y(l,v,_=>t(4,c=_));const S=_=>{!d&&_.target===i&&R(v,c=!1,c)};function A(_){qe.call(this,l,_)}function j(_){Be[_?"unshift":"push"](()=>{r=_,t(0,r)})}return l.$$set=_=>{e=C(C({},e),le(_)),t(9,f=Q(e,n)),"class"in _&&t(1,u=_.class),"id"in _&&t(2,k=_.id),"keepOpen"in _&&t(10,E=_.keepOpen),"position"in _&&t(3,g=_.position),"menuElement"in _&&t(0,r=_.menuElement),"$$scope"in _&&t(12,m=_.$$scope)},l.$$.update=()=>{l.$$.dirty&1024&&R(b,d=E,d),l.$$.dirty&1&&R(N,o=r,o),l.$$.dirty&1&&t(11,s=r?Ce(r):[]),l.$$.dirty&2048&&(i=s[s.length-1])},[r,u,k,g,c,b,N,v,S,f,E,s,m,h,A,j]}class El extends te{constructor(e){super(),se(this,e,ol,al,ee,{class:1,id:2,keepOpen:10,position:3,menuElement:0})}}export{gl as M,vl as a,El as b,kl as c,Ge as d,pl as f}; +import{s as ee,p as T,z as C,e as q,b as B,d as K,g as L,E as J,k as D,_ as Ne,u as P,q as U,r as V,D as Q,o as ce,a2 as Se,A as le,v as Te,a6 as Pe,w as R,x as $,U as de,c as Y,a as G,h as X,j as Z,H as O,l as W,m as w,F as me,G as Me,t as Le,f as Oe,n as Ae,K as Ue,$ as Ve,B as qe,L as Be}from"./scheduler.AWtTlMeO.js";import{S as te,i as se,t as p,b as M,g as y,e as F,c as ne,a as ie,m as ae,d as oe,h as Ke}from"./index.91lpp7Ff.js";import{g as x,a as He}from"./spread.rEx3vLA9.js";import{B as je}from"./badge.mHsIdLRu.js";import{B as Re}from"./button.bjyERRn9.js";import{I as De}from"./icon.hlu3-iXK.js";import{t as H}from"./tw-merge.NbP7EmZe.js";import{a as ze}from"./index.VrdFapBL.js";import{w as re}from"./entry.Yz1YyohR.js";const Ge=(l,e)=>{const t=s=>{l&&!l.contains(s.target)&&!s.defaultPrevented&&e(s)};return document.addEventListener("click",t,!0),{destroy(){document.removeEventListener("click",t,!0)}}},Xe=l=>({open:l&2}),_e=l=>({open:l[1]});function Je(l){let e,t,s,i,n;const f=l[5].default,c=T(f,l,l[4],_e);let d=[{class:t=H("relative",l[0])},l[3]],o={};for(let h=0;h(f(),f=Pe(m,r=>t(6,n=r)),m);l.$$.on_destroy.push(()=>f());let{$$slots:d={},$$scope:o}=e,{class:h=""}=e,{open:m=re(!1)}=e;c();const u=re(!1),k=re(null),E=ce(),g=()=>{n&&(E("close"),R(m,n=!1,n))};return Se(ue,{open:m,keepOpen:u,menuElement:k}),l.$$set=r=>{e=C(C({},e),le(r)),t(3,i=Q(e,s)),"class"in r&&t(0,h=r.class),"open"in r&&c(t(1,m=r.open)),"$$scope"in r&&t(4,o=r.$$scope)},[h,m,g,i,o,d]}class gl extends te{constructor(e){super(),se(this,e,Qe,Je,ee,{class:0,open:1})}}const We=l=>({}),he=l=>({}),Ye=l=>({}),be=l=>({});function Ze(l){let e,t,s,i,n,f,c,d,o,h,m,u,k;const E=l[13].leading,g=T(E,l,l[12],be),r=[we,Fe],b=[];function N(a,I){return a[5]?0:1}i=N(l),n=b[i]=r[i](l);let v=l[1]!==void 0&&ge(l);const S=l[13].trailing,A=T(S,l,l[12],he);let j=[{role:"menuitem"},{class:d=H("menu-item","m-1","px-3","py-2",l[0])},{"aria-hidden":o=l[3]?"true":"false"},{"aria-disabled":l[3]},{tabindex:h=l[3]?-1:0},l[11]],_={};for(let a=0;a{b[z]=null}),F(),n=b[i],n?n.p(a,I):(n=b[i]=r[i](a),n.c()),p(n,1),n.m(s,f)),a[1]!==void 0?v?(v.p(a,I),I&2&&p(v,1)):(v=ge(a),v.c(),p(v,1),v.m(s,null)):v&&(y(),M(v,1,1,()=>{v=null}),F()),(!m||I&64)&&O(s,"centered",a[6]),A&&A.p&&(!m||I&4096)&&P(A,S,a,a[12],m?V(S,a[12],I,We):U(a[12]),he),J(e,_=x(j,[{role:"menuitem"},(!m||I&1&&d!==(d=H("menu-item","m-1","px-3","py-2",a[0])))&&{class:d},(!m||I&8&&o!==(o=a[3]?"true":"false"))&&{"aria-hidden":o},(!m||I&8)&&{"aria-disabled":a[3]},(!m||I&8&&h!==(h=a[3]?-1:0))&&{tabindex:h},I&2048&&a[11]])),O(e,"destructive",a[2]),O(e,"disabled",a[3]),O(e,"selected",a[1]),O(e,"svelte-sphlvo",!0)},i(a){m||(p(g,a),p(n),p(v),p(A,a),m=!0)},o(a){M(g,a),M(n),M(v),M(A,a),m=!1},d(a){a&&L(e),g&&g.d(a),b[i].d(),v&&v.d(),A&&A.d(a),u=!1,Me(k)}}}function ye(l){let e,t,s,i,n,f,c;const d=l[13].default,o=T(d,l,l[12],null);let h=[{href:l[4]},{role:"menuitem"},{class:t=H("menu-item","m-1","px-3","py-2",l[0])},{"aria-hidden":s=l[3]?"true":"false"},{"aria-disabled":l[3]},{tabindex:i=l[3]?-1:0},l[11]],m={};for(let u=0;u{s=null}),F())},i(i){t||(p(s),t=!0)},o(i){M(s),t=!1},d(i){i&&L(e),s&&s.d()}}}function ke(l){let e,t;return e=new De({props:{name:"checkmark"}}),{c(){ne(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,i){ae(e,s,i),t=!0},i(s){t||(p(e.$$.fragment,s),t=!0)},o(s){M(e.$$.fragment,s),t=!1},d(s){oe(e,s)}}}function xe(l){let e,t,s,i;const n=[ye,Ze],f=[];function c(d,o){return d[4]?0:1}return e=c(l),t=f[e]=n[e](l),{c(){t.c(),s=$()},l(d){t.l(d),s=$()},m(d,o){f[e].m(d,o),D(d,s,o),i=!0},p(d,[o]){let h=e;e=c(d),e===h?f[e].p(d,o):(y(),M(f[h],1,1,()=>{f[h]=null}),F(),t=f[e],t?t.p(d,o):(t=f[e]=n[e](d),t.c()),p(t,1),t.m(s.parentNode,s))},i(d){i||(p(t),i=!0)},o(d){M(t),i=!1},d(d){d&&L(s),f[e].d(d)}}}const fe='input, li[role="option"]:not([aria-disabled="true"]), li[role="menuitem"]:not([aria-disabled="true"])';function $e(l,e,t){const s=["class","selected","destructive","disabled","href","description","centered"];let i=Q(e,s),n,f,{$$slots:c={},$$scope:d}=e,{class:o=""}=e,{selected:h=void 0}=e,{destructive:m=!1}=e,{disabled:u=!1}=e,{href:k=null}=e,{description:E=null}=e,{centered:g=!1}=e;const{keepOpen:r,open:b}=de(ue);Y(l,r,_=>t(15,f=_)),Y(l,b,_=>t(14,n=_));const N=ce(),v=_=>{switch(_.key){case"Escape":R(b,n=!1,n);break;case"ArrowDown":case"ArrowRight":S(_.currentTarget);break;case"ArrowUp":case"ArrowLeft":A(_.currentTarget);break;case" ":case"Enter":N("click"),f||R(b,n=!1,n);break}},S=_=>{let a=_.nextElementSibling;for(;a&&!a.matches(fe);)a=a.nextElementSibling;a&&a instanceof HTMLLIElement&&a.focus()},A=_=>{let a=_.previousElementSibling;for(;a&&!a.matches(fe);)a=a.previousElementSibling;a&&a instanceof HTMLLIElement&&a.focus()},j=()=>{f||R(b,n=!1,n),N("click")};return l.$$set=_=>{e=C(C({},e),le(_)),t(11,i=Q(e,s)),"class"in _&&t(0,o=_.class),"selected"in _&&t(1,h=_.selected),"destructive"in _&&t(2,m=_.destructive),"disabled"in _&&t(3,u=_.disabled),"href"in _&&t(4,k=_.href),"description"in _&&t(5,E=_.description),"centered"in _&&t(6,g=_.centered),"$$scope"in _&&t(12,d=_.$$scope)},[o,h,m,u,k,E,g,r,b,v,j,i,d,c]}class kl extends te{constructor(e){super(),se(this,e,$e,xe,ee,{class:0,selected:1,destructive:2,disabled:3,href:4,description:5,centered:6})}}const el=l=>({}),ve=l=>({}),ll=l=>({}),pe=l=>({});function Ee(l){let e,t,s;return t=new De({props:{name:l[8]?"chevron-up":"chevron-down"}}),{c(){e=q("div"),ne(t.$$.fragment),this.h()},l(i){e=B(i,"DIV",{class:!0});var n=K(e);ie(t.$$.fragment,n),n.forEach(L),this.h()},h(){Z(e,"class","flex")},m(i,n){D(i,e,n),ae(t,e,null),s=!0},p(i,n){const f={};n&256&&(f.name=i[8]?"chevron-up":"chevron-down"),t.$set(f)},i(i){s||(p(t.$$.fragment,i),s=!0)},o(i){M(t.$$.fragment,i),s=!1},d(i){i&&L(e),oe(t)}}}function Ie(l){let e,t;return e=new je({props:{class:"absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[tl]},$$scope:{ctx:l}}}),{c(){ne(e.$$.fragment)},l(s){ie(e.$$.fragment,s)},m(s,i){ae(e,s,i),t=!0},p(s,i){const n={};i&65540&&(n.$$scope={dirty:i,ctx:s}),e.$set(n)},i(s){t||(p(e.$$.fragment,s),t=!0)},o(s){M(e.$$.fragment,s),t=!1},d(s){oe(e,s)}}}function tl(l){let e;return{c(){e=Le(l[2])},l(t){e=Oe(t,l[2])},m(t,s){D(t,e,s)},p(t,s){s&4&&Ae(e,t[2])},d(t){t&&L(e)}}}function sl(l){let e,t,s,i,n,f,c;const d=l[15].leading,o=T(d,l,l[16],pe),h=l[15].default,m=T(h,l,l[16],null);let u=l[4]&&Ee(l);const k=l[15].trailing,E=T(k,l,l[16],ve);let g=l[2]>0&&Ie(l);return{c(){o&&o.c(),e=G(),t=q("div"),m&&m.c(),s=G(),u&&u.c(),i=G(),E&&E.c(),n=G(),g&&g.c(),f=$(),this.h()},l(r){o&&o.l(r),e=X(r),t=B(r,"DIV",{class:!0});var b=K(t);m&&m.l(b),b.forEach(L),s=X(r),u&&u.l(r),i=X(r),E&&E.l(r),n=X(r),g&&g.l(r),f=$(),this.h()},h(){Z(t,"class","flex grow items-center"),O(t,"hidden",!l[14].default)},m(r,b){o&&o.m(r,b),D(r,e,b),D(r,t,b),m&&m.m(t,null),D(r,s,b),u&&u.m(r,b),D(r,i,b),E&&E.m(r,b),D(r,n,b),g&&g.m(r,b),D(r,f,b),c=!0},p(r,b){o&&o.p&&(!c||b&65536)&&P(o,d,r,r[16],c?V(d,r[16],b,ll):U(r[16]),pe),m&&m.p&&(!c||b&65536)&&P(m,h,r,r[16],c?V(h,r[16],b,null):U(r[16]),null),(!c||b&16384)&&O(t,"hidden",!r[14].default),r[4]?u?(u.p(r,b),b&16&&p(u,1)):(u=Ee(r),u.c(),p(u,1),u.m(i.parentNode,i)):u&&(y(),M(u,1,1,()=>{u=null}),F()),E&&E.p&&(!c||b&65536)&&P(E,k,r,r[16],c?V(k,r[16],b,el):U(r[16]),ve),r[2]>0?g?(g.p(r,b),b&4&&p(g,1)):(g=Ie(r),g.c(),p(g,1),g.m(f.parentNode,f)):g&&(y(),M(g,1,1,()=>{g=null}),F())},i(r){c||(p(o,r),p(m,r),p(u),p(E,r),p(g),c=!0)},o(r){M(o,r),M(m,r),M(u),M(E,r),M(g),c=!1},d(r){r&&(L(e),L(t),L(s),L(i),L(n),L(f)),o&&o.d(r),m&&m.d(r),u&&u.d(r),E&&E.d(r),g&&g.d(r)}}}function nl(l){let e,t;const s=[{id:l[5]},{disabled:l[3]},{type:"button"},{"aria-haspopup":!l[3]},{"aria-controls":l[1]},{"aria-expanded":l[8]},{"aria-label":l[6]},{variant:l[7]},{class:H(l[0])},l[13]];let i={$$slots:{default:[sl]},$$scope:{ctx:l}};for(let n=0;nt(8,f=a)),Y(l,S,a=>t(17,n=a));const A=()=>{v.update(a=>{let I=a;return k||(I=!a),N("click",{open:I}),I})},j=a=>{switch(a.key){case"Escape":R(v,f=!1,f);break;case"ArrowDown":a.preventDefault(),f?_():R(v,f=!0,f);break}},_=()=>{const a=Array.from(n.querySelectorAll(fe));a&&a[0]&&requestAnimationFrame(()=>a[0].focus())};return l.$$set=a=>{e=C(C({},e),le(a)),t(13,i=Q(e,s)),"class"in a&&t(0,h=a.class),"controls"in a&&t(1,m=a.controls),"count"in a&&t(2,u=a.count),"disabled"in a&&t(3,k=a.disabled),"hasIndicator"in a&&t(4,E=a.hasIndicator),"id"in a&&t(5,g=a.id),"label"in a&&t(6,r=a.label),"variant"in a&&t(7,b=a.variant),"$$scope"in a&&t(16,d=a.$$scope)},[h,m,u,k,E,g,r,b,f,v,S,A,j,i,o,c,d]}class vl extends te{constructor(e){super(),se(this,e,il,nl,ee,{class:0,controls:1,count:2,disabled:3,hasIndicator:4,id:5,label:6,variant:7})}}const Ce=l=>Array.from(l.querySelectorAll('[href], button, textarea, input, div[contentEditable="true"], select, [tabindex][tabindex="0"]')).filter(e=>!e.hasAttribute("disabled")&&e.getAttribute("tabindex")!=="-1"),pl=(l,e)=>{let t,s;const i=o=>{o.key==="Tab"&&(o.shiftKey?document.activeElement===t&&(s.focus(),o.preventDefault()):document.activeElement===s&&(t.focus(),o.preventDefault()))},n=(o=!1)=>{if(e===!1)return;const h=Ce(l);t=h[0],s=h[h.length-1],o||t==null||t.focus(),t==null||t.addEventListener("keydown",i),s==null||s.addEventListener("keydown",i)},f=()=>{t==null||t.removeEventListener("keydown",i),s==null||s.removeEventListener("keydown",i)},c=(o,h)=>(o.length&&(f(),n(!0)),h);return new MutationObserver(c).observe(l,{childList:!0,subtree:!0}),n(),{update(o){e=o,o?n():f()},destroy(){f()}}};function al(l){let e,t,s,i,n,f,c;const d=l[13].default,o=T(d,l,l[12],null);let h=[{role:"menu"},{class:t=H(["menu","max-h-[320px]"],l[3],l[1])},{"aria-labelledby":l[2]},{tabindex:s=-1},{id:l[2]},l[9]],m={};for(let u=0;u{i=Ke(e,ze,{duration:100}),i.start()})),n=!0)},o(u){M(o,u),n=!1},d(u){u&&L(e),o&&o.d(u),l[15](null),f=!1,Me(c)}}}function ol(l,e,t){let s,i;const n=["class","id","keepOpen","position","menuElement"];let f=Q(e,n),c,d,o,{$$slots:h={},$$scope:m}=e,{class:u=""}=e,{id:k}=e,{keepOpen:E=!1}=e,{position:g="left"}=e,{menuElement:r=null}=e;const{keepOpen:b,menuElement:N,open:v}=de(ue);Y(l,b,_=>t(17,d=_)),Y(l,N,_=>t(18,o=_)),Y(l,v,_=>t(4,c=_));const S=_=>{!d&&_.target===i&&R(v,c=!1,c)};function A(_){qe.call(this,l,_)}function j(_){Be[_?"unshift":"push"](()=>{r=_,t(0,r)})}return l.$$set=_=>{e=C(C({},e),le(_)),t(9,f=Q(e,n)),"class"in _&&t(1,u=_.class),"id"in _&&t(2,k=_.id),"keepOpen"in _&&t(10,E=_.keepOpen),"position"in _&&t(3,g=_.position),"menuElement"in _&&t(0,r=_.menuElement),"$$scope"in _&&t(12,m=_.$$scope)},l.$$.update=()=>{l.$$.dirty&1024&&R(b,d=E,d),l.$$.dirty&1&&R(N,o=r,o),l.$$.dirty&1&&t(11,s=r?Ce(r):[]),l.$$.dirty&2048&&(i=s[s.length-1])},[r,u,k,g,c,b,N,v,S,f,E,s,m,h,A,j]}class El extends te{constructor(e){super(),se(this,e,ol,al,ee,{class:1,id:2,keepOpen:10,position:3,menuElement:0})}}export{gl as M,vl as a,El as b,kl as c,Ge as d,pl as f}; diff --git a/ui/assets/local/_app/immutable/chunks/modal._fUsCkow.js b/ui/assets/local/_app/immutable/chunks/modal.6JWN7kGw.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/modal._fUsCkow.js rename to ui/assets/local/_app/immutable/chunks/modal.6JWN7kGw.js index c957b3cac..2b290334f 100644 --- a/ui/assets/local/_app/immutable/chunks/modal._fUsCkow.js +++ b/ui/assets/local/_app/immutable/chunks/modal.6JWN7kGw.js @@ -1 +1 @@ -import{s as ve,p as ae,z as X,e as P,a as H,t as Y,b as S,d as y,h as R,g as C,f as Z,j as E,H as V,E as ie,k as p,l as T,m as W,a0 as Te,_ as Me,u as oe,q as se,r as ne,n as w,G as ke,D as fe,o as De,A as re,L as Ee}from"./scheduler.AWtTlMeO.js";import{S as Ce,i as Ne,c as x,a as $,m as ee,t as M,g as de,b as N,e as ce,d as te}from"./index.91lpp7Ff.js";import{g as Ie}from"./spread.rEx3vLA9.js";import{B as be}from"./button.J_9D2qip.js";import{f as Ve}from"./menu.clBpn3HP.js";import{I as je}from"./icon-button.bzDf4VVI.js";import{t as me}from"./tw-merge.NbP7EmZe.js";const qe=l=>({}),ue=l=>({}),Ae=l=>({}),ge=l=>({});function _e(l){let e,a;return e=new je({props:{label:l[3],icon:"close",class:"float-right m-4"}}),e.$on("click",l[12]),{c(){x(e.$$.fragment)},l(i){$(e.$$.fragment,i)},m(i,f){ee(e,i,f),a=!0},p(i,f){const m={};f&8&&(m.label=i[3]),e.$set(m)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){N(e.$$.fragment,i),a=!1},d(i){te(e,i)}}}function Be(l){let e;return{c(){e=Y(l[3])},l(a){e=Z(a,l[3])},m(a,i){p(a,e,i)},p(a,i){i&8&&w(e,a[3])},d(a){a&&C(e)}}}function he(l){let e,a;return e=new be({props:{variant:l[4],loading:l[7],disabled:l[5]||l[7],"data-testid":"confirm-modal-button",type:"submit",$$slots:{default:[Ge]},$$scope:{ctx:l}}}),{c(){x(e.$$.fragment)},l(i){$(e.$$.fragment,i)},m(i,f){ee(e,i,f),a=!0},p(i,f){const m={};f&16&&(m.variant=i[4]),f&128&&(m.loading=i[7]),f&160&&(m.disabled=i[5]||i[7]),f&2097156&&(m.$$scope={dirty:f,ctx:i}),e.$set(m)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){N(e.$$.fragment,i),a=!1},d(i){te(e,i)}}}function Ge(l){let e;return{c(){e=Y(l[2])},l(a){e=Z(a,l[2])},m(a,i){p(a,e,i)},p(a,i){i&4&&w(e,a[2])},d(a){a&&C(e)}}}function Le(l){let e,a,i,f,m,g,u,A,_,j,q,B,h,b,G,k,I,r,v,z,n=!l[7]&&_e(l);const L=l[19].title,d=ae(L,l,l[21],ge),F=l[19].content,c=ae(F,l,l[21],ue);b=new be({props:{variant:"secondary",disabled:l[7],$$slots:{default:[Be]},$$scope:{ctx:l}}}),b.$on("click",l[12]);let t=!l[1]&&he(l),D=[{id:l[9]},{class:k=me("body",l[10])},{"aria-modal":"true"},{"aria-labelledby":"modal-title"},{"data-testid":I=l[15]["data-testid"]},l[16]],J={};for(let o=0;o{n=null}),ce()):n?(n.p(o,s),s&128&&M(n,1)):(n=_e(o),n.c(),M(n,1),n.m(e,a)),d&&d.p&&(!r||s&2097152)&&oe(d,L,o,o[21],r?ne(L,o[21],s,Ae):se(o[21]),ge),(!r||s&512&&f!==(f="modal-title-"+o[9]))&&E(i,"id",f),c&&c.p&&(!r||s&2097152)&&oe(c,F,o,o[21],r?ne(F,o[21],s,qe):se(o[21]),ue),(!r||s&1)&&w(j,o[0]),(!r||s&1)&&V(_,"hidden",!o[0]),(!r||s&512&&q!==(q="modal-content-"+o[9]))&&E(u,"id",q);const O={};s&128&&(O.disabled=o[7]),s&2097160&&(O.$$scope={dirty:s,ctx:o}),b.$set(O),o[1]?t&&(de(),N(t,1,1,()=>{t=null}),ce()):t?(t.p(o,s),s&2&&M(t,1)):(t=he(o),t.c(),M(t,1),t.m(h,null)),ie(e,J=Ie(D,[(!r||s&512)&&{id:o[9]},(!r||s&1024&&k!==(k=me("body",o[10])))&&{class:k},{"aria-modal":"true"},{"aria-labelledby":"modal-title"},(!r||s&32768&&I!==(I=o[15]["data-testid"]))&&{"data-testid":I},s&65536&&o[16]])),V(e,"large",o[6]),V(e,"hightlightNav",o[8]),V(e,"svelte-evf103",!0)},i(o){r||(M(n),M(d,o),M(c,o),M(b.$$.fragment,o),M(t),r=!0)},o(o){N(n),N(d,o),N(c,o),N(b.$$.fragment,o),N(t),r=!1},d(o){o&&C(e),n&&n.d(),d&&d.d(o),c&&c.d(o),te(b),t&&t.d(),l[20](null),v=!1,ke(z)}}}function Oe(l,e,a){const i=["hideConfirm","confirmText","cancelText","confirmType","confirmDisabled","large","loading","hightlightNav","id","open","error","class","toggleModal"];let f=fe(e,i),{$$slots:m={},$$scope:g}=e,{hideConfirm:u=!1}=e,{confirmText:A}=e,{cancelText:_}=e,{confirmType:j="primary"}=e,{confirmDisabled:q=!1}=e,{large:B=!1}=e,{loading:h=!1}=e,{hightlightNav:b=!1}=e,{id:G}=e,{open:k}=e,{error:I=""}=e,{class:r=""}=e,v;const z=(t,D)=>{t?D==null||D.showModal():D==null||D.close()},n=De(),L=()=>{n("cancelModal"),a(17,k=!1),a(0,I="")},d=()=>{n("confirmModal")},F=t=>{t.target===v&&L()};function c(t){Ee[t?"unshift":"push"](()=>{v=t,a(11,v)})}return l.$$set=t=>{a(15,e=X(X({},e),re(t))),a(16,f=fe(e,i)),"hideConfirm"in t&&a(1,u=t.hideConfirm),"confirmText"in t&&a(2,A=t.confirmText),"cancelText"in t&&a(3,_=t.cancelText),"confirmType"in t&&a(4,j=t.confirmType),"confirmDisabled"in t&&a(5,q=t.confirmDisabled),"large"in t&&a(6,B=t.large),"loading"in t&&a(7,h=t.loading),"hightlightNav"in t&&a(8,b=t.hightlightNav),"id"in t&&a(9,G=t.id),"open"in t&&a(17,k=t.open),"error"in t&&a(0,I=t.error),"class"in t&&a(10,r=t.class),"$$scope"in t&&a(21,g=t.$$scope)},l.$$.update=()=>{l.$$.dirty&133120&&z(k,v),l.$$.dirty&133120&&k&&v&&v.focus()},e=re(e),[I,u,A,_,j,q,B,h,b,G,r,v,L,d,F,e,f,k,z,m,c,g]}class Je extends Ce{constructor(e){super(),Ne(this,e,Oe,Le,ve,{hideConfirm:1,confirmText:2,cancelText:3,confirmType:4,confirmDisabled:5,large:6,loading:7,hightlightNav:8,id:9,open:17,error:0,class:10,toggleModal:18})}get toggleModal(){return this.$$.ctx[18]}}export{Je as M}; +import{s as ve,p as ae,z as X,e as P,a as H,t as Y,b as S,d as y,h as R,g as C,f as Z,j as E,H as V,E as ie,k as p,l as T,m as W,a0 as Te,_ as Me,u as oe,q as se,r as ne,n as w,G as ke,D as fe,o as De,A as re,L as Ee}from"./scheduler.AWtTlMeO.js";import{S as Ce,i as Ne,c as x,a as $,m as ee,t as M,g as de,b as N,e as ce,d as te}from"./index.91lpp7Ff.js";import{g as Ie}from"./spread.rEx3vLA9.js";import{B as be}from"./button.bjyERRn9.js";import{f as Ve}from"./menu.RlaY2l8z.js";import{I as je}from"./icon-button.ihAAw8eC.js";import{t as me}from"./tw-merge.NbP7EmZe.js";const qe=l=>({}),ue=l=>({}),Ae=l=>({}),ge=l=>({});function _e(l){let e,a;return e=new je({props:{label:l[3],icon:"close",class:"float-right m-4"}}),e.$on("click",l[12]),{c(){x(e.$$.fragment)},l(i){$(e.$$.fragment,i)},m(i,f){ee(e,i,f),a=!0},p(i,f){const m={};f&8&&(m.label=i[3]),e.$set(m)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){N(e.$$.fragment,i),a=!1},d(i){te(e,i)}}}function Be(l){let e;return{c(){e=Y(l[3])},l(a){e=Z(a,l[3])},m(a,i){p(a,e,i)},p(a,i){i&8&&w(e,a[3])},d(a){a&&C(e)}}}function he(l){let e,a;return e=new be({props:{variant:l[4],loading:l[7],disabled:l[5]||l[7],"data-testid":"confirm-modal-button",type:"submit",$$slots:{default:[Ge]},$$scope:{ctx:l}}}),{c(){x(e.$$.fragment)},l(i){$(e.$$.fragment,i)},m(i,f){ee(e,i,f),a=!0},p(i,f){const m={};f&16&&(m.variant=i[4]),f&128&&(m.loading=i[7]),f&160&&(m.disabled=i[5]||i[7]),f&2097156&&(m.$$scope={dirty:f,ctx:i}),e.$set(m)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){N(e.$$.fragment,i),a=!1},d(i){te(e,i)}}}function Ge(l){let e;return{c(){e=Y(l[2])},l(a){e=Z(a,l[2])},m(a,i){p(a,e,i)},p(a,i){i&4&&w(e,a[2])},d(a){a&&C(e)}}}function Le(l){let e,a,i,f,m,g,u,A,_,j,q,B,h,b,G,k,I,r,v,z,n=!l[7]&&_e(l);const L=l[19].title,d=ae(L,l,l[21],ge),F=l[19].content,c=ae(F,l,l[21],ue);b=new be({props:{variant:"secondary",disabled:l[7],$$slots:{default:[Be]},$$scope:{ctx:l}}}),b.$on("click",l[12]);let t=!l[1]&&he(l),D=[{id:l[9]},{class:k=me("body",l[10])},{"aria-modal":"true"},{"aria-labelledby":"modal-title"},{"data-testid":I=l[15]["data-testid"]},l[16]],J={};for(let o=0;o{n=null}),ce()):n?(n.p(o,s),s&128&&M(n,1)):(n=_e(o),n.c(),M(n,1),n.m(e,a)),d&&d.p&&(!r||s&2097152)&&oe(d,L,o,o[21],r?ne(L,o[21],s,Ae):se(o[21]),ge),(!r||s&512&&f!==(f="modal-title-"+o[9]))&&E(i,"id",f),c&&c.p&&(!r||s&2097152)&&oe(c,F,o,o[21],r?ne(F,o[21],s,qe):se(o[21]),ue),(!r||s&1)&&w(j,o[0]),(!r||s&1)&&V(_,"hidden",!o[0]),(!r||s&512&&q!==(q="modal-content-"+o[9]))&&E(u,"id",q);const O={};s&128&&(O.disabled=o[7]),s&2097160&&(O.$$scope={dirty:s,ctx:o}),b.$set(O),o[1]?t&&(de(),N(t,1,1,()=>{t=null}),ce()):t?(t.p(o,s),s&2&&M(t,1)):(t=he(o),t.c(),M(t,1),t.m(h,null)),ie(e,J=Ie(D,[(!r||s&512)&&{id:o[9]},(!r||s&1024&&k!==(k=me("body",o[10])))&&{class:k},{"aria-modal":"true"},{"aria-labelledby":"modal-title"},(!r||s&32768&&I!==(I=o[15]["data-testid"]))&&{"data-testid":I},s&65536&&o[16]])),V(e,"large",o[6]),V(e,"hightlightNav",o[8]),V(e,"svelte-evf103",!0)},i(o){r||(M(n),M(d,o),M(c,o),M(b.$$.fragment,o),M(t),r=!0)},o(o){N(n),N(d,o),N(c,o),N(b.$$.fragment,o),N(t),r=!1},d(o){o&&C(e),n&&n.d(),d&&d.d(o),c&&c.d(o),te(b),t&&t.d(),l[20](null),v=!1,ke(z)}}}function Oe(l,e,a){const i=["hideConfirm","confirmText","cancelText","confirmType","confirmDisabled","large","loading","hightlightNav","id","open","error","class","toggleModal"];let f=fe(e,i),{$$slots:m={},$$scope:g}=e,{hideConfirm:u=!1}=e,{confirmText:A}=e,{cancelText:_}=e,{confirmType:j="primary"}=e,{confirmDisabled:q=!1}=e,{large:B=!1}=e,{loading:h=!1}=e,{hightlightNav:b=!1}=e,{id:G}=e,{open:k}=e,{error:I=""}=e,{class:r=""}=e,v;const z=(t,D)=>{t?D==null||D.showModal():D==null||D.close()},n=De(),L=()=>{n("cancelModal"),a(17,k=!1),a(0,I="")},d=()=>{n("confirmModal")},F=t=>{t.target===v&&L()};function c(t){Ee[t?"unshift":"push"](()=>{v=t,a(11,v)})}return l.$$set=t=>{a(15,e=X(X({},e),re(t))),a(16,f=fe(e,i)),"hideConfirm"in t&&a(1,u=t.hideConfirm),"confirmText"in t&&a(2,A=t.confirmText),"cancelText"in t&&a(3,_=t.cancelText),"confirmType"in t&&a(4,j=t.confirmType),"confirmDisabled"in t&&a(5,q=t.confirmDisabled),"large"in t&&a(6,B=t.large),"loading"in t&&a(7,h=t.loading),"hightlightNav"in t&&a(8,b=t.hightlightNav),"id"in t&&a(9,G=t.id),"open"in t&&a(17,k=t.open),"error"in t&&a(0,I=t.error),"class"in t&&a(10,r=t.class),"$$scope"in t&&a(21,g=t.$$scope)},l.$$.update=()=>{l.$$.dirty&133120&&z(k,v),l.$$.dirty&133120&&k&&v&&v.focus()},e=re(e),[I,u,A,_,j,q,B,h,b,G,r,v,L,d,F,e,f,k,z,m,c,g]}class Je extends Ce{constructor(e){super(),Ne(this,e,Oe,Le,ve,{hideConfirm:1,confirmText:2,cancelText:3,confirmType:4,confirmDisabled:5,large:6,loading:7,hightlightNav:8,id:9,open:17,error:0,class:10,toggleModal:18})}get toggleModal(){return this.$$.ctx[18]}}export{Je as M}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces-service.qZq6gppP.js b/ui/assets/local/_app/immutable/chunks/namespaces-service.1V5QHpxG.js similarity index 84% rename from ui/assets/local/_app/immutable/chunks/namespaces-service.qZq6gppP.js rename to ui/assets/local/_app/immutable/chunks/namespaces-service.1V5QHpxG.js index 071fb9f9e..dbc0a7930 100644 --- a/ui/assets/local/_app/immutable/chunks/namespaces-service.qZq6gppP.js +++ b/ui/assets/local/_app/immutable/chunks/namespaces-service.1V5QHpxG.js @@ -1 +1 @@ -import{n as i}from"./namespaces.AZAalcgs.js";import{t as f}from"./toaster.JA1rZe2a.js";import{p as u}from"./paginated.7Y-q8l-w.js";import{r as p,a as h}from"./route-for-api.Fwy3ccvq.js";import{t as m,a as y}from"./screaming-enums.NBZzZ07O.js";const v={namespaces:[]},l=a=>{var e;return a.config&&(a.config.historyArchivalState=m(a.config.historyArchivalState),a.config.visibilityArchivalState=m(a.config.visibilityArchivalState)),a.namespaceInfo&&(a.namespaceInfo.state=y((e=a.namespaceInfo)==null?void 0:e.state)),a};async function I(a,e=fetch){const{showTemporalSystemNamespace:n,runtimeEnvironment:s}=a;if(s.isCloud){i.set([]);return}try{const o=p("namespaces"),t=await u(async c=>h(o,{request:e,token:c,onError:()=>f.push({variant:"error",message:"Unable to fetch namespaces"})})),r=((t==null?void 0:t.namespaces)??[]).filter(c=>n||c.namespaceInfo.name!=="temporal-system").map(l);i.set(r)}catch{i.set([])}}async function g(a,e,n=fetch){var r;const[s]=v.namespaces;if((r=e==null?void 0:e.runtimeEnvironment)!=null&&r.isCloud)return s;const o=p("namespace",{namespace:a}),t=await h(o,{request:n,onError:()=>f.push({variant:"error",message:"Unable to fetch namespaces"})});return t?l(t):s}export{I as a,g as f}; +import{n as i}from"./namespaces.ZCqOs8RA.js";import{t as f}from"./toaster.tT6uD5UN.js";import{p as u}from"./paginated.ekNvFt7Q.js";import{r as p,a as h}from"./route-for-api.n9XkRS8h.js";import{t as m,a as y}from"./screaming-enums.NBZzZ07O.js";const v={namespaces:[]},l=a=>{var e;return a.config&&(a.config.historyArchivalState=m(a.config.historyArchivalState),a.config.visibilityArchivalState=m(a.config.visibilityArchivalState)),a.namespaceInfo&&(a.namespaceInfo.state=y((e=a.namespaceInfo)==null?void 0:e.state)),a};async function I(a,e=fetch){const{showTemporalSystemNamespace:n,runtimeEnvironment:s}=a;if(s.isCloud){i.set([]);return}try{const o=p("namespaces"),t=await u(async c=>h(o,{request:e,token:c,onError:()=>f.push({variant:"error",message:"Unable to fetch namespaces"})})),r=((t==null?void 0:t.namespaces)??[]).filter(c=>n||c.namespaceInfo.name!=="temporal-system").map(l);i.set(r)}catch{i.set([])}}async function g(a,e,n=fetch){var r;const[s]=v.namespaces;if((r=e==null?void 0:e.runtimeEnvironment)!=null&&r.isCloud)return s;const o=p("namespace",{namespace:a}),t=await h(o,{request:n,onError:()=>f.push({variant:"error",message:"Unable to fetch namespaces"})});return t?l(t):s}export{I as a,g as f}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces.AZAalcgs.js b/ui/assets/local/_app/immutable/chunks/namespaces.AZAalcgs.js deleted file mode 100644 index ffd916aba..000000000 --- a/ui/assets/local/_app/immutable/chunks/namespaces.AZAalcgs.js +++ /dev/null @@ -1 +0,0 @@ -import{w as s}from"./entry.49-_VqMH.js";import{p as a}from"./persist-store.79TECdfr.js";const r=a("lastNamespace","default",!0),o=s([]);export{r as l,o as n}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces.ZCqOs8RA.js b/ui/assets/local/_app/immutable/chunks/namespaces.ZCqOs8RA.js new file mode 100644 index 000000000..bb776f158 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/namespaces.ZCqOs8RA.js @@ -0,0 +1 @@ +import{w as s}from"./entry.Yz1YyohR.js";import{p as a}from"./persist-store.8QJu1WeF.js";const r=a("lastNamespace","default",!0),o=s([]);export{r as l,o as n}; diff --git a/ui/assets/local/_app/immutable/chunks/option.-xgiYgTD.js b/ui/assets/local/_app/immutable/chunks/option.7qDbbB8o.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/option.-xgiYgTD.js rename to ui/assets/local/_app/immutable/chunks/option.7qDbbB8o.js index 7e9181cf5..2bd5c15cb 100644 --- a/ui/assets/local/_app/immutable/chunks/option.-xgiYgTD.js +++ b/ui/assets/local/_app/immutable/chunks/option.7qDbbB8o.js @@ -1 +1 @@ -import{s as B,D as Q,c as N,a2 as de,S as x,w as F,z as W,A as me,a as X,h as j,k as M,v as ee,g as k,p as q,u as A,q as U,r as z,e as te,x as R,b as le,E as Y,H as P,U as _e,o as ge,a4 as be,d as pe,L as he}from"./scheduler.AWtTlMeO.js";import{S as ne,i as ae,c as I,a as E,m as S,t as m,b as _,d as H,g as se,e as ie}from"./index.91lpp7Ff.js";import{w as V}from"./entry.49-_VqMH.js";import{I as oe}from"./icon.hlu3-iXK.js";import{M as ve,b as Ce,a as ke,c as Ie}from"./menu.clBpn3HP.js";import{g as Ee}from"./spread.rEx3vLA9.js";import{L as Se}from"./label.2vZCl_WE.js";function Z(s){let t,n;return t=new oe({props:{slot:"trailing",name:"lock"}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){S(t,e,l),n=!0},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){H(t,e)}}}function He(s){let t,n,e,l,a,f=[{id:s[3]},{value:n=!s[0]&&s[4]!==""?s[4]:s[8]},{tabindex:"-1"},{class:"select-input"},{disabled:!0},s[13]],r={};for(let o=0;o{i=null}),ie())},i(o){a||(m(i),a=!0)},o(o){_(i),a=!1},d(o){o&&(k(t),k(e),k(l)),i&&i.d(o)}}}function Le(s){let t,n;return t=new oe({props:{slot:"leading",name:s[6]}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){S(t,e,l),n=!0},p(e,l){const a={};l&64&&(a.name=e[6]),t.$set(a)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){H(t,e)}}}function w(s){let t,n;return t=new ke({props:{hasIndicator:!s[5],disabled:s[5],controls:s[3]+"-select",variant:s[7],$$slots:{leading:[Le],default:[He]},$$scope:{ctx:s}}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){S(t,e,l),n=!0},p(e,l){const a={};l&32&&(a.hasIndicator=!e[5]),l&32&&(a.disabled=e[5]),l&8&&(a.controls=e[3]+"-select"),l&128&&(a.variant=e[7]),l&74105&&(a.$$scope={dirty:l,ctx:e}),t.$set(a)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){H(t,e)}}}function Me(s){let t;const n=s[15].default,e=q(n,s,s[16],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,a){e&&e.m(l,a),t=!0},p(l,a){e&&e.p&&(!t||a&65536)&&A(e,n,l,l[16],t?z(n,l[16],a,null):U(l[16]),null)},i(l){t||(m(e,l),t=!0)},o(l){_(e,l),t=!1},d(l){e&&e.d(l)}}}function Oe(s){let t,n,e=s[8],l,a,f;t=new Se({props:{label:s[1],hidden:s[2],for:s[3]}});let r=w(s);return a=new Ce({props:{role:"listbox",id:s[3]+"-select",$$slots:{default:[Me]},$$scope:{ctx:s}}}),{c(){I(t.$$.fragment),n=X(),r.c(),l=X(),I(a.$$.fragment)},l(i){E(t.$$.fragment,i),n=j(i),r.l(i),l=j(i),E(a.$$.fragment,i)},m(i,o){S(t,i,o),M(i,n,o),r.m(i,o),M(i,l,o),S(a,i,o),f=!0},p(i,o){const d={};o&2&&(d.label=i[1]),o&4&&(d.hidden=i[2]),o&8&&(d.for=i[3]),t.$set(d),o&256&&B(e,e=i[8])?(se(),_(r,1,1,ee),ie(),r=w(i),r.c(),m(r,1),r.m(l.parentNode,l)):r.p(i,o);const g={};o&8&&(g.id=i[3]+"-select"),o&65536&&(g.$$scope={dirty:o,ctx:i}),a.$set(g)},i(i){f||(m(t.$$.fragment,i),m(r),m(a.$$.fragment,i),f=!0)},o(i){_(t.$$.fragment,i),_(r),_(a.$$.fragment,i),f=!1},d(i){i&&(k(n),k(l)),H(t,i),r.d(i),H(a,i)}}}function Ne(s){let t,n;return t=new ve({props:{class:"w-full",open:s[12],$$slots:{default:[Oe]},$$scope:{ctx:s}}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){S(t,e,l),n=!0},p(e,[l]){const a={};l&74239&&(a.$$scope={dirty:l,ctx:e}),t.$set(a)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){H(t,e)}}}const ue="select-context";function Te(s,t,n){const e=["label","labelHidden","id","value","placeholder","disabled","leadingIcon","onChange","variant"];let l=Q(t,e),a,f,r,{$$slots:i={},$$scope:o}=t,{label:d}=t,{labelHidden:g=!1}=t,{id:O}=t,{value:b=void 0}=t,{placeholder:h=""}=t,{disabled:p=!1}=t,{leadingIcon:T=null}=t,{onChange:v=ee}=t,{variant:D="secondary"}=t;const L=V(b);N(s,L,u=>n(18,r=u));const c=V([]);N(s,c,u=>n(17,f=u));const C=V(b==null?void 0:b.toString());N(s,C,u=>n(8,a=u));const G=V(!1);function re(){F(L,r=b,r),F(C,a=J(b),a)}const fe=u=>{n(0,b=u),v(b)};function J(u){const K=f.find(ce=>ce.value===u);return K!==void 0?K.label:""}return de(ue,{selectValue:L,selectLabel:C,options:c,open:G,handleChange:fe}),x(()=>{F(C,a=J(b),a)}),s.$$set=u=>{t=W(W({},t),me(u)),n(13,l=Q(t,e)),"label"in u&&n(1,d=u.label),"labelHidden"in u&&n(2,g=u.labelHidden),"id"in u&&n(3,O=u.id),"value"in u&&n(0,b=u.value),"placeholder"in u&&n(4,h=u.placeholder),"disabled"in u&&n(5,p=u.disabled),"leadingIcon"in u&&n(6,T=u.leadingIcon),"onChange"in u&&n(14,v=u.onChange),"variant"in u&&n(7,D=u.variant),"$$scope"in u&&n(16,o=u.$$scope)},s.$$.update=()=>{s.$$.dirty&1&&re()},[b,d,g,O,h,p,T,D,a,L,c,C,G,l,v,i,o]}class Ke extends ne{constructor(t){super(),ae(this,t,Te,Ne,B,{label:1,labelHidden:2,id:3,value:0,placeholder:4,disabled:5,leadingIcon:6,onChange:14,variant:7})}}const De=s=>({}),y=s=>({slot:"leading"}),Pe=s=>({}),$=s=>({slot:"trailing"});function Ve(s){let t,n;const e=s[9].default,l=q(e,s,s[11],null);return{c(){t=te("span"),l&&l.c()},l(a){t=le(a,"SPAN",{});var f=pe(t);l&&l.l(f),f.forEach(k)},m(a,f){M(a,t,f),l&&l.m(t,null),s[10](t),n=!0},p(a,f){l&&l.p&&(!n||f&2048)&&A(l,e,a,a[11],n?z(e,a[11],f,null):U(a[11]),null)},i(a){n||(m(l,a),n=!0)},o(a){_(l,a),n=!1},d(a){a&&k(t),l&&l.d(a),s[10](null)}}}function qe(s){let t;const n=s[9].leading,e=q(n,s,s[11],y);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,a){e&&e.m(l,a),t=!0},p(l,a){e&&e.p&&(!t||a&2048)&&A(e,n,l,l[11],t?z(n,l[11],a,De):U(l[11]),y)},i(l){t||(m(e,l),t=!0)},o(l){_(e,l),t=!1},d(l){e&&e.d(l)}}}function Ae(s){let t;const n=s[9].trailing,e=q(n,s,s[11],$);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,a){e&&e.m(l,a),t=!0},p(l,a){e&&e.p&&(!t||a&2048)&&A(e,n,l,l[11],t?z(n,l[11],a,Pe):U(l[11]),$)},i(l){t||(m(e,l),t=!0)},o(l){_(e,l),t=!1},d(l){e&&e.d(l)}}}function Ue(s){let t,n;return t=new Ie({props:{role:"option",selected:s[2],description:s[0],$$slots:{trailing:[Ae],leading:[qe],default:[Ve]},$$scope:{ctx:s}}}),t.$on("click",s[5]),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){S(t,e,l),n=!0},p(e,[l]){const a={};l&4&&(a.selected=e[2]),l&1&&(a.description=e[0]),l&2050&&(a.$$scope={dirty:l,ctx:e}),t.$set(a)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){H(t,e)}}}function ze(s,t,n){let e,l,{$$slots:a={},$$scope:f}=t;const{selectValue:r,handleChange:i,options:o}=_e(ue);N(s,r,c=>n(8,l=c)),N(s,o,c=>n(13,e=c));const d=ge();let{value:g}=t,{description:O=""}=t,b=!1,h,p,T,v;x(()=>{p&&(v=p.textContent,e.push({value:g,label:v,nativeElement:T}))}),be(()=>{let c=e.findIndex(C=>C.value===g);c!==void 0&&e.splice(c,1)});const D=()=>{i(h),d("click",{value:h})};function L(c){he[c?"unshift":"push"](()=>{p=c,n(1,p)})}return s.$$set=c=>{"value"in c&&n(6,g=c.value),"description"in c&&n(0,O=c.description),"$$scope"in c&&n(11,f=c.$$scope)},s.$$.update=()=>{s.$$.dirty&450&&p&&(n(7,h=g??p.textContent),n(2,b=l===h),v=p.textContent)},[O,p,b,r,o,D,g,h,l,a,L,f]}class Qe extends ne{constructor(t){super(),ae(this,t,ze,Ue,B,{value:6,description:0})}}export{Qe as O,Ke as S}; +import{s as B,D as Q,c as N,a2 as de,S as x,w as F,z as W,A as me,a as X,h as j,k as M,v as ee,g as k,p as q,u as A,q as U,r as z,e as te,x as R,b as le,E as Y,H as P,U as _e,o as ge,a4 as be,d as pe,L as he}from"./scheduler.AWtTlMeO.js";import{S as ne,i as ae,c as I,a as E,m as S,t as m,b as _,d as H,g as se,e as ie}from"./index.91lpp7Ff.js";import{w as V}from"./entry.Yz1YyohR.js";import{I as oe}from"./icon.hlu3-iXK.js";import{M as ve,b as Ce,a as ke,c as Ie}from"./menu.RlaY2l8z.js";import{g as Ee}from"./spread.rEx3vLA9.js";import{L as Se}from"./label.2vZCl_WE.js";function Z(s){let t,n;return t=new oe({props:{slot:"trailing",name:"lock"}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){S(t,e,l),n=!0},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){H(t,e)}}}function He(s){let t,n,e,l,a,f=[{id:s[3]},{value:n=!s[0]&&s[4]!==""?s[4]:s[8]},{tabindex:"-1"},{class:"select-input"},{disabled:!0},s[13]],r={};for(let o=0;o{i=null}),ie())},i(o){a||(m(i),a=!0)},o(o){_(i),a=!1},d(o){o&&(k(t),k(e),k(l)),i&&i.d(o)}}}function Le(s){let t,n;return t=new oe({props:{slot:"leading",name:s[6]}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){S(t,e,l),n=!0},p(e,l){const a={};l&64&&(a.name=e[6]),t.$set(a)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){H(t,e)}}}function w(s){let t,n;return t=new ke({props:{hasIndicator:!s[5],disabled:s[5],controls:s[3]+"-select",variant:s[7],$$slots:{leading:[Le],default:[He]},$$scope:{ctx:s}}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){S(t,e,l),n=!0},p(e,l){const a={};l&32&&(a.hasIndicator=!e[5]),l&32&&(a.disabled=e[5]),l&8&&(a.controls=e[3]+"-select"),l&128&&(a.variant=e[7]),l&74105&&(a.$$scope={dirty:l,ctx:e}),t.$set(a)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){H(t,e)}}}function Me(s){let t;const n=s[15].default,e=q(n,s,s[16],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,a){e&&e.m(l,a),t=!0},p(l,a){e&&e.p&&(!t||a&65536)&&A(e,n,l,l[16],t?z(n,l[16],a,null):U(l[16]),null)},i(l){t||(m(e,l),t=!0)},o(l){_(e,l),t=!1},d(l){e&&e.d(l)}}}function Oe(s){let t,n,e=s[8],l,a,f;t=new Se({props:{label:s[1],hidden:s[2],for:s[3]}});let r=w(s);return a=new Ce({props:{role:"listbox",id:s[3]+"-select",$$slots:{default:[Me]},$$scope:{ctx:s}}}),{c(){I(t.$$.fragment),n=X(),r.c(),l=X(),I(a.$$.fragment)},l(i){E(t.$$.fragment,i),n=j(i),r.l(i),l=j(i),E(a.$$.fragment,i)},m(i,o){S(t,i,o),M(i,n,o),r.m(i,o),M(i,l,o),S(a,i,o),f=!0},p(i,o){const d={};o&2&&(d.label=i[1]),o&4&&(d.hidden=i[2]),o&8&&(d.for=i[3]),t.$set(d),o&256&&B(e,e=i[8])?(se(),_(r,1,1,ee),ie(),r=w(i),r.c(),m(r,1),r.m(l.parentNode,l)):r.p(i,o);const g={};o&8&&(g.id=i[3]+"-select"),o&65536&&(g.$$scope={dirty:o,ctx:i}),a.$set(g)},i(i){f||(m(t.$$.fragment,i),m(r),m(a.$$.fragment,i),f=!0)},o(i){_(t.$$.fragment,i),_(r),_(a.$$.fragment,i),f=!1},d(i){i&&(k(n),k(l)),H(t,i),r.d(i),H(a,i)}}}function Ne(s){let t,n;return t=new ve({props:{class:"w-full",open:s[12],$$slots:{default:[Oe]},$$scope:{ctx:s}}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){S(t,e,l),n=!0},p(e,[l]){const a={};l&74239&&(a.$$scope={dirty:l,ctx:e}),t.$set(a)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){H(t,e)}}}const ue="select-context";function Te(s,t,n){const e=["label","labelHidden","id","value","placeholder","disabled","leadingIcon","onChange","variant"];let l=Q(t,e),a,f,r,{$$slots:i={},$$scope:o}=t,{label:d}=t,{labelHidden:g=!1}=t,{id:O}=t,{value:b=void 0}=t,{placeholder:h=""}=t,{disabled:p=!1}=t,{leadingIcon:T=null}=t,{onChange:v=ee}=t,{variant:D="secondary"}=t;const L=V(b);N(s,L,u=>n(18,r=u));const c=V([]);N(s,c,u=>n(17,f=u));const C=V(b==null?void 0:b.toString());N(s,C,u=>n(8,a=u));const G=V(!1);function re(){F(L,r=b,r),F(C,a=J(b),a)}const fe=u=>{n(0,b=u),v(b)};function J(u){const K=f.find(ce=>ce.value===u);return K!==void 0?K.label:""}return de(ue,{selectValue:L,selectLabel:C,options:c,open:G,handleChange:fe}),x(()=>{F(C,a=J(b),a)}),s.$$set=u=>{t=W(W({},t),me(u)),n(13,l=Q(t,e)),"label"in u&&n(1,d=u.label),"labelHidden"in u&&n(2,g=u.labelHidden),"id"in u&&n(3,O=u.id),"value"in u&&n(0,b=u.value),"placeholder"in u&&n(4,h=u.placeholder),"disabled"in u&&n(5,p=u.disabled),"leadingIcon"in u&&n(6,T=u.leadingIcon),"onChange"in u&&n(14,v=u.onChange),"variant"in u&&n(7,D=u.variant),"$$scope"in u&&n(16,o=u.$$scope)},s.$$.update=()=>{s.$$.dirty&1&&re()},[b,d,g,O,h,p,T,D,a,L,c,C,G,l,v,i,o]}class Ke extends ne{constructor(t){super(),ae(this,t,Te,Ne,B,{label:1,labelHidden:2,id:3,value:0,placeholder:4,disabled:5,leadingIcon:6,onChange:14,variant:7})}}const De=s=>({}),y=s=>({slot:"leading"}),Pe=s=>({}),$=s=>({slot:"trailing"});function Ve(s){let t,n;const e=s[9].default,l=q(e,s,s[11],null);return{c(){t=te("span"),l&&l.c()},l(a){t=le(a,"SPAN",{});var f=pe(t);l&&l.l(f),f.forEach(k)},m(a,f){M(a,t,f),l&&l.m(t,null),s[10](t),n=!0},p(a,f){l&&l.p&&(!n||f&2048)&&A(l,e,a,a[11],n?z(e,a[11],f,null):U(a[11]),null)},i(a){n||(m(l,a),n=!0)},o(a){_(l,a),n=!1},d(a){a&&k(t),l&&l.d(a),s[10](null)}}}function qe(s){let t;const n=s[9].leading,e=q(n,s,s[11],y);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,a){e&&e.m(l,a),t=!0},p(l,a){e&&e.p&&(!t||a&2048)&&A(e,n,l,l[11],t?z(n,l[11],a,De):U(l[11]),y)},i(l){t||(m(e,l),t=!0)},o(l){_(e,l),t=!1},d(l){e&&e.d(l)}}}function Ae(s){let t;const n=s[9].trailing,e=q(n,s,s[11],$);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,a){e&&e.m(l,a),t=!0},p(l,a){e&&e.p&&(!t||a&2048)&&A(e,n,l,l[11],t?z(n,l[11],a,Pe):U(l[11]),$)},i(l){t||(m(e,l),t=!0)},o(l){_(e,l),t=!1},d(l){e&&e.d(l)}}}function Ue(s){let t,n;return t=new Ie({props:{role:"option",selected:s[2],description:s[0],$$slots:{trailing:[Ae],leading:[qe],default:[Ve]},$$scope:{ctx:s}}}),t.$on("click",s[5]),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){S(t,e,l),n=!0},p(e,[l]){const a={};l&4&&(a.selected=e[2]),l&1&&(a.description=e[0]),l&2050&&(a.$$scope={dirty:l,ctx:e}),t.$set(a)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){H(t,e)}}}function ze(s,t,n){let e,l,{$$slots:a={},$$scope:f}=t;const{selectValue:r,handleChange:i,options:o}=_e(ue);N(s,r,c=>n(8,l=c)),N(s,o,c=>n(13,e=c));const d=ge();let{value:g}=t,{description:O=""}=t,b=!1,h,p,T,v;x(()=>{p&&(v=p.textContent,e.push({value:g,label:v,nativeElement:T}))}),be(()=>{let c=e.findIndex(C=>C.value===g);c!==void 0&&e.splice(c,1)});const D=()=>{i(h),d("click",{value:h})};function L(c){he[c?"unshift":"push"](()=>{p=c,n(1,p)})}return s.$$set=c=>{"value"in c&&n(6,g=c.value),"description"in c&&n(0,O=c.description),"$$scope"in c&&n(11,f=c.$$scope)},s.$$.update=()=>{s.$$.dirty&450&&p&&(n(7,h=g??p.textContent),n(2,b=l===h),v=p.textContent)},[O,p,b,r,o,D,g,h,l,a,L,f]}class Qe extends ne{constructor(t){super(),ae(this,t,ze,Ue,B,{value:6,description:0})}}export{Qe as O,Ke as S}; diff --git a/ui/assets/local/_app/immutable/chunks/paginated.7Y-q8l-w.js b/ui/assets/local/_app/immutable/chunks/paginated.ekNvFt7Q.js similarity index 78% rename from ui/assets/local/_app/immutable/chunks/paginated.7Y-q8l-w.js rename to ui/assets/local/_app/immutable/chunks/paginated.ekNvFt7Q.js index 6b71b760b..ff09ff45a 100644 --- a/ui/assets/local/_app/immutable/chunks/paginated.7Y-q8l-w.js +++ b/ui/assets/local/_app/immutable/chunks/paginated.ekNvFt7Q.js @@ -1 +1 @@ -import{h as g}from"./route-for-api.Fwy3ccvq.js";import{i as c}from"./persist-store.79TECdfr.js";const p=(i={},e={})=>{const s={...i};for(const r of Object.keys(e)){const t=s[r];Array.isArray(t)?s[r]=s[r].concat(e[r]):typeof t=="object"&&!Array.isArray(t)?s[r]=p(s[r],e[r]):s[r]=e[r]}return s},k=async(i,{onStart:e,onUpdate:s,onComplete:r,onError:t=g,token:u,previousProps:f}={})=>{!f&&c(e)&&e();try{const o=await i(u);if(o){const{nextPageToken:n,...y}=o,a=p(f,y);return c(s)&&s(a,y),n?k(i,{onStart:e,onUpdate:s,onComplete:r,token:n,previousProps:a}):(c(r)&&r(a),a)}}catch(o){t(o)}};export{k as p}; +import{h as g}from"./route-for-api.n9XkRS8h.js";import{i as c}from"./persist-store.8QJu1WeF.js";const p=(i={},e={})=>{const s={...i};for(const r of Object.keys(e)){const t=s[r];Array.isArray(t)?s[r]=s[r].concat(e[r]):typeof t=="object"&&!Array.isArray(t)?s[r]=p(s[r],e[r]):s[r]=e[r]}return s},k=async(i,{onStart:e,onUpdate:s,onComplete:r,onError:t=g,token:u,previousProps:f}={})=>{!f&&c(e)&&e();try{const o=await i(u);if(o){const{nextPageToken:n,...y}=o,a=p(f,y);return c(s)&&s(a,y),n?k(i,{onStart:e,onUpdate:s,onComplete:r,token:n,previousProps:a}):(c(r)&&r(a),a)}}catch(o){t(o)}};export{k as p}; diff --git a/ui/assets/local/_app/immutable/chunks/pagination.EhyZpL-k.js b/ui/assets/local/_app/immutable/chunks/pagination.b8M6G9WD.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/pagination.EhyZpL-k.js rename to ui/assets/local/_app/immutable/chunks/pagination.b8M6G9WD.js index 6de798c24..b8d1f4163 100644 --- a/ui/assets/local/_app/immutable/chunks/pagination.EhyZpL-k.js +++ b/ui/assets/local/_app/immutable/chunks/pagination.b8M6G9WD.js @@ -1 +1 @@ -import{s as it,$ as qe,p as se,e as w,a as C,b as E,d as L,g as b,h as G,j as g,Y as Ce,k as J,l as p,a5 as ot,m as re,u as ne,q as ie,r as oe,G as at,D as Ge,c as rt,K as ft,S as ut,z as He,A as _t,v as fe,a6 as ct,t as Z,f as $,n as de}from"./scheduler.AWtTlMeO.js";import{S as mt,i as gt,t as k,g as we,b as A,e as Ee,c as Le,a as Ae,m as Ne,d as Be}from"./index.91lpp7Ff.js";import{p as bt}from"./stores.BjeHb2_D.js";import{p as dt,a as he,M as Je,o as Te,d as pt,b as vt,F as st}from"./pagination.9GMcGm8o.js";import{S as nt}from"./index.JaKJff3q.js";import{u as Re}from"./update-query-parameters.Mxd4zKR7.js";const ht=({width:e,height:t,screenWidth:a,breakpoint:s=1279})=>e&&t&&a>s?`position: absolute; right: ${e+20}px; top: -${t}px`:"",kt=e=>({}),Qe=e=>({}),Pt=e=>({}),Xe=e=>({}),It=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),Ye=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),St=e=>({}),Ze=e=>({}),wt=e=>({}),$e=e=>({}),Et=e=>({}),xe=e=>({}),Lt=e=>({}),et=e=>({});function tt(e){let t,a;return t=new st({props:{label:e[2],parameter:he,value:e[8],options:Te,position:"top"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p(s,i){const o={};i[0]&4&&(o.label=s[2]),i[0]&256&&(o.value=s[8]),t.$set(o)},i(s){a||(k(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function At(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",a,s,i=e[9].endingIndex+1+"",o,h,u=e[9].length+"",m;return{c(){a=Z(t),s=Z("–"),o=Z(i),h=Z(" of "),m=Z(u)},l(n){a=$(n,t),s=$(n,"–"),o=$(n,i),h=$(n," of "),m=$(n,u)},m(n,r){J(n,a,r),J(n,s,r),J(n,o,r),J(n,h,r),J(n,m,r)},p(n,r){r[0]&512&&t!==(t=(n[9].length?n[9].startingIndex+1:0)+"")&&de(a,t),r[0]&512&&i!==(i=n[9].endingIndex+1+"")&&de(o,i),r[0]&512&&u!==(u=n[9].length+"")&&de(m,u)},i:fe,o:fe,d(n){n&&(b(a),b(s),b(o),b(h),b(m))}}}function Nt(e){let t,a;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p:fe,i(s){a||(k(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function Bt(e){let t,a,s,i,o,h,u,m,n,r,X,z,j,N,ee;const S=[Nt,At],K=[];function B(c,v){return c[1]?0:1}return u=B(e),m=K[u]=S[u](e),{c(){t=w("div"),a=w("button"),s=w("span"),o=C(),h=w("p"),m.c(),n=C(),r=w("button"),X=w("span"),this.h()},l(c){t=E(c,"DIV",{class:!0});var v=L(t);a=E(v,"BUTTON",{class:!0,"aria-label":!0});var y=L(a);s=E(y,"SPAN",{class:!0}),L(s).forEach(b),y.forEach(b),o=G(v),h=E(v,"P",{});var x=L(h);m.l(x),x.forEach(b),n=G(v),r=E(v,"BUTTON",{class:!0,"aria-label":!0});var H=L(r);X=E(H,"SPAN",{class:!0}),L(X).forEach(b),H.forEach(b),v.forEach(b),this.h()},h(){g(s,"class","arrow arrow-left svelte-1rg14t4"),g(a,"class","caret svelte-1rg14t4"),a.disabled=i=!e[9].hasPrevious,g(a,"aria-label",e[3]),g(X,"class","arrow arrow-right svelte-1rg14t4"),g(r,"class","caret svelte-1rg14t4"),r.disabled=z=!e[9].hasNext,g(r,"aria-label",e[4]),g(t,"class","flex items-center justify-center gap-3")},m(c,v){J(c,t,v),p(t,a),p(a,s),p(t,o),p(t,h),K[u].m(h,null),p(t,n),p(t,r),p(r,X),j=!0,N||(ee=[re(a,"click",e[27]),re(r,"click",e[28])],N=!0)},p(c,v){(!j||v[0]&512&&i!==(i=!c[9].hasPrevious))&&(a.disabled=i),(!j||v[0]&8)&&g(a,"aria-label",c[3]);let y=u;u=B(c),u===y?K[u].p(c,v):(we(),A(K[y],1,1,()=>{K[y]=null}),Ee(),m=K[u],m?m.p(c,v):(m=K[u]=S[u](c),m.c()),k(m,1),m.m(h,null)),(!j||v[0]&512&&z!==(z=!c[9].hasNext))&&(r.disabled=z),(!j||v[0]&16)&&g(r,"aria-label",c[4])},i(c){j||(k(m),j=!0)},o(c){A(m),j=!1},d(c){c&&b(t),K[u].d(),N=!1,at(ee)}}}function lt(e){let t,a;return t=new st({props:{label:e[2],parameter:he,value:e[8],options:Te,position:"bottom"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p(s,i){const o={};i[0]&4&&(o.label=s[2]),i[0]&256&&(o.value=s[8]),t.$set(o)},i(s){a||(k(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function Kt(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",a,s,i=e[9].endingIndex+1+"",o,h,u=e[9].length+"",m;return{c(){a=Z(t),s=Z("–"),o=Z(i),h=Z(" of "),m=Z(u)},l(n){a=$(n,t),s=$(n,"–"),o=$(n,i),h=$(n," of "),m=$(n,u)},m(n,r){J(n,a,r),J(n,s,r),J(n,o,r),J(n,h,r),J(n,m,r)},p(n,r){r[0]&512&&t!==(t=(n[9].length?n[9].startingIndex+1:0)+"")&&de(a,t),r[0]&512&&i!==(i=n[9].endingIndex+1+"")&&de(o,i),r[0]&512&&u!==(u=n[9].length+"")&&de(m,u)},i:fe,o:fe,d(n){n&&(b(a),b(s),b(o),b(h),b(m))}}}function zt(e){let t,a;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p:fe,i(s){a||(k(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function yt(e){let t,a,s,i,o,h,u,m,n,r,X,z,j,N,ee,S,K,B,c,v,y,x,H,D,R,ae,T,Y,Q,ue,_e,ce,d,pe,ke;qe(e[26]);const ve=e[25]["action-top-left"],V=se(ve,e,e[24],et),_=e[25]["action-top-center"],U=se(_,e,e[24],xe);let P=!e[0]&&tt(e);const Ke=e[25]["pagination-top"],Pe=se(Ke,e,e[24],$e),F=Pe||Bt(e),ze=e[25]["action-top-right"],O=se(ze,e,e[24],Ze),ye=e[25].default,W=se(ye,e,e[24],Ye),je=e[25]["action-bottom-left"],M=se(je,e,e[24],Xe);let I=!e[0]&<(e);const Ve=[zt,Kt],te=[];function Ue(l,f){return l[1]?0:1}D=Ue(e),R=te[D]=Ve[D](e);const De=e[25]["action-bottom-right"],q=se(De,e,e[24],Qe);return{c(){t=w("div"),a=w("div"),s=w("div"),V&&V.c(),i=C(),o=w("nav"),U&&U.c(),h=C(),u=w("div"),P&&P.c(),m=C(),F&&F.c(),n=C(),O&&O.c(),z=C(),W&&W.c(),j=C(),N=w("nav"),M&&M.c(),ee=C(),S=w("div"),I&&I.c(),K=C(),B=w("div"),c=w("button"),v=w("span"),x=C(),H=w("p"),R.c(),ae=C(),T=w("button"),Y=w("span"),ue=C(),q&&q.c(),this.h()},l(l){t=E(l,"DIV",{class:!0});var f=L(t);a=E(f,"DIV",{class:!0});var le=L(a);s=E(le,"DIV",{class:!0});var Fe=L(s);V&&V.l(Fe),Fe.forEach(b),i=G(le),o=E(le,"NAV",{style:!0,class:!0,"aria-label":!0});var me=L(o);U&&U.l(me),h=G(me),u=E(me,"DIV",{class:!0});var Ie=L(u);P&&P.l(Ie),m=G(Ie),F&&F.l(Ie),Ie.forEach(b),n=G(me),O&&O.l(me),me.forEach(b),le.forEach(b),z=G(f),W&&W.l(f),j=G(f),N=E(f,"NAV",{class:!0,"aria-label":!0});var Se=L(N);M&&M.l(Se),ee=G(Se),S=E(Se,"DIV",{class:!0});var ge=L(S);I&&I.l(ge),K=G(ge),B=E(ge,"DIV",{class:!0});var be=L(B);c=E(be,"BUTTON",{class:!0,"aria-label":!0});var Oe=L(c);v=E(Oe,"SPAN",{class:!0}),L(v).forEach(b),Oe.forEach(b),x=G(be),H=E(be,"P",{});var We=L(H);R.l(We),We.forEach(b),ae=G(be),T=E(be,"BUTTON",{class:!0,"aria-label":!0});var Me=L(T);Y=E(Me,"SPAN",{class:!0}),L(Y).forEach(b),Me.forEach(b),be.forEach(b),ue=G(ge),q&&q.l(ge),ge.forEach(b),Se.forEach(b),f.forEach(b),this.h()},h(){g(s,"class","w-full"),g(u,"class","flex gap-4"),g(o,"style",e[10]),g(o,"class","flex min-w-fit flex-col items-end gap-4 md:flex-row"),g(o,"aria-label",r=e[14]["aria-label"]+" 1"),qe(()=>e[29].call(o)),g(a,"class","flex flex-col items-end justify-end gap-4 lg:justify-start"),g(v,"class","arrow arrow-left svelte-1rg14t4"),g(c,"class","caret svelte-1rg14t4"),c.disabled=y=!e[9].hasPrevious,g(c,"aria-label",e[3]),g(Y,"class","arrow arrow-right svelte-1rg14t4"),g(T,"class","caret svelte-1rg14t4"),T.disabled=Q=!e[9].hasNext,g(T,"aria-label",e[4]),g(B,"class","flex items-center justify-center gap-3"),g(S,"class","flex gap-4"),g(N,"class",_e=Ce(`flex ${e[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1rg14t4"),g(N,"aria-label",ce=e[14]["aria-label"]+" 2"),g(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(l,f){J(l,t,f),p(t,a),p(a,s),V&&V.m(s,null),p(a,i),p(a,o),U&&U.m(o,null),p(o,h),p(o,u),P&&P.m(u,null),p(u,m),F&&F.m(u,null),p(o,n),O&&O.m(o,null),X=ot(o,e[29].bind(o)),p(t,z),W&&W.m(t,null),p(t,j),p(t,N),M&&M.m(N,null),p(N,ee),p(N,S),I&&I.m(S,null),p(S,K),p(S,B),p(B,c),p(c,v),p(B,x),p(B,H),te[D].m(H,null),p(B,ae),p(B,T),p(T,Y),p(S,ue),q&&q.m(S,null),d=!0,pe||(ke=[re(window,"resize",e[12]),re(window,"keydown",e[13]),re(window,"resize",e[26]),re(c,"click",e[30]),re(T,"click",e[31])],pe=!0)},p(l,f){V&&V.p&&(!d||f[0]&16777216)&&ne(V,ve,l,l[24],d?oe(ve,l[24],f,Lt):ie(l[24]),et),U&&U.p&&(!d||f[0]&16777216)&&ne(U,_,l,l[24],d?oe(_,l[24],f,Et):ie(l[24]),xe),l[0]?P&&(we(),A(P,1,1,()=>{P=null}),Ee()):P?(P.p(l,f),f[0]&1&&k(P,1)):(P=tt(l),P.c(),k(P,1),P.m(u,m)),Pe?Pe.p&&(!d||f[0]&16777216)&&ne(Pe,Ke,l,l[24],d?oe(Ke,l[24],f,wt):ie(l[24]),$e):F&&F.p&&(!d||f[0]&666)&&F.p(l,d?f:[-1,-1]),O&&O.p&&(!d||f[0]&16777216)&&ne(O,ze,l,l[24],d?oe(ze,l[24],f,St):ie(l[24]),Ze),(!d||f[0]&1024)&&g(o,"style",l[10]),(!d||f[0]&16384&&r!==(r=l[14]["aria-label"]+" 1"))&&g(o,"aria-label",r),W&&W.p&&(!d||f[0]&16777856)&&ne(W,ye,l,l[24],d?oe(ye,l[24],f,It):ie(l[24]),Ye),M&&M.p&&(!d||f[0]&16777216)&&ne(M,je,l,l[24],d?oe(je,l[24],f,Pt):ie(l[24]),Xe),l[0]?I&&(we(),A(I,1,1,()=>{I=null}),Ee()):I?(I.p(l,f),f[0]&1&&k(I,1)):(I=lt(l),I.c(),k(I,1),I.m(S,K)),(!d||f[0]&512&&y!==(y=!l[9].hasPrevious))&&(c.disabled=y),(!d||f[0]&8)&&g(c,"aria-label",l[3]);let le=D;D=Ue(l),D===le?te[D].p(l,f):(we(),A(te[le],1,1,()=>{te[le]=null}),Ee(),R=te[D],R?R.p(l,f):(R=te[D]=Ve[D](l),R.c()),k(R,1),R.m(H,null)),(!d||f[0]&512&&Q!==(Q=!l[9].hasNext))&&(T.disabled=Q),(!d||f[0]&16)&&g(T,"aria-label",l[4]),q&&q.p&&(!d||f[0]&16777216)&&ne(q,De,l,l[24],d?oe(De,l[24],f,kt):ie(l[24]),Qe),(!d||f[0]&32768&&_e!==(_e=Ce(`flex ${l[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1rg14t4"))&&g(N,"class",_e),(!d||f[0]&16384&&ce!==(ce=l[14]["aria-label"]+" 2"))&&g(N,"aria-label",ce)},i(l){d||(k(V,l),k(U,l),k(P),k(F,l),k(O,l),k(W,l),k(M,l),k(I),k(R),k(q,l),d=!0)},o(l){A(V,l),A(U,l),A(P),A(F,l),A(O,l),A(W,l),A(M,l),A(I),A(R),A(q,l),d=!1},d(l){l&&b(t),V&&V.d(l),U&&U.d(l),P&&P.d(),F&&F.d(l),O&&O.d(l),X(),W&&W.d(l),M&&M.d(l),I&&I.d(),te[D].d(),q&&q.d(l),pe=!1,at(ke)}}}function jt(e,t,a){let s,i,o,h;const u=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating","pageSizeSelectLabel","previousButtonLabel","nextButtonLabel"];let m=Ge(t,u),n,r=fe,X=()=>(r(),r=ct(i,_=>a(9,n=_)),i),z;rt(e,bt,_=>a(23,z=_)),e.$$.on_destroy.push(()=>r());let{$$slots:j={},$$scope:N}=t;const ee=ft(j);var S;let{items:K}=t,{floatId:B=void 0}=t,{startingIndex:c=0}=t,{currentPageKey:v="page"}=t,{itemsPerPage:y=null}=t,{updating:x=!1}=t,{pageSizeSelectLabel:H}=t,{previousButtonLabel:D}=t,{nextButtonLabel:R}=t,ae,T,Y;ut(()=>{ue(),Number(c)>0&&Q()});const Q=()=>{Re({parameter:v,value:n.currentPage,url:z.url})},ue=()=>{var _;B&&a(21,T=(_=document.getElementById(B))===null||_===void 0?void 0:_.clientWidth)};async function _e(_){switch(_.code){case"ArrowRight":case"KeyL":n.hasNext&&!_.metaKey&&(i.next(),Q());break;case"ArrowLeft":case"KeyH":n.hasPrevious&&!_.metaKey&&(i.previous(),Q());break;case"ArrowUp":case"KeyK":i.previousRow();break;case"ArrowDown":case"KeyJ":i.nextRow();break}}function ce(){a(5,ae=window.innerWidth)}const d=()=>{i.previous(),Q()},pe=()=>{i.next(),Q()};function ke(){Y=this.clientHeight,a(6,Y)}const ve=()=>i.previous(),V=()=>i.next();return e.$$set=_=>{t=He(He({},t),_t(_)),a(14,m=Ge(t,u)),"items"in _&&a(16,K=_.items),"floatId"in _&&a(17,B=_.floatId),"startingIndex"in _&&a(18,c=_.startingIndex),"currentPageKey"in _&&a(19,v=_.currentPageKey),"itemsPerPage"in _&&a(0,y=_.itemsPerPage),"updating"in _&&a(1,x=_.updating),"pageSizeSelectLabel"in _&&a(2,H=_.pageSizeSelectLabel),"previousButtonLabel"in _&&a(3,D=_.previousButtonLabel),"nextButtonLabel"in _&&a(4,R=_.nextButtonLabel),"$$scope"in _&&a(24,N=_.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&8388609&&a(8,s=y!==null?String(y):String(dt(z.url.searchParams.get(he))).toString()),e.$$.dirty[0]&8388864&&(parseInt(s,10)>parseInt(Je,10)?Re({parameter:he,value:Je,url:z.url}):Te.includes(s)||Re({parameter:he,value:pt,url:z.url})),e.$$.dirty[0]&327936&&X(a(7,i=vt(K,s,c))),e.$$.dirty[0]&9961984&&a(22,o=a(20,S=z.url.searchParams.get(v))!==null&&S!==void 0?S:n.currentPage),e.$$.dirty[0]&4194432&&i.jumpToPage(o),e.$$.dirty[0]&2097248&&a(10,h=ht({width:T,height:Y,screenWidth:ae}))},[y,x,H,D,R,ae,Y,i,s,n,h,Q,ue,_e,m,ee,K,B,c,v,S,T,o,z,N,j,ce,d,pe,ke,ve,V]}class Ot extends mt{constructor(t){super(),gt(this,t,jt,yt,it,{items:16,floatId:17,startingIndex:18,currentPageKey:19,itemsPerPage:0,updating:1,pageSizeSelectLabel:2,previousButtonLabel:3,nextButtonLabel:4},null,[-1,-1])}}export{Ot as P}; +import{s as it,$ as qe,p as se,e as w,a as C,b as E,d as L,g as b,h as G,j as g,Y as Ce,k as J,l as p,a5 as ot,m as re,u as ne,q as ie,r as oe,G as at,D as Ge,c as rt,K as ft,S as ut,z as He,A as _t,v as fe,a6 as ct,t as Z,f as $,n as de}from"./scheduler.AWtTlMeO.js";import{S as mt,i as gt,t as k,g as we,b as A,e as Ee,c as Le,a as Ae,m as Ne,d as Be}from"./index.91lpp7Ff.js";import{p as bt}from"./stores.meYYndLY.js";import{p as dt,a as he,M as Je,o as Te,d as pt,b as vt,F as st}from"./pagination.tZJpGBWa.js";import{S as nt}from"./index.JaKJff3q.js";import{u as Re}from"./update-query-parameters.DBfsiMjL.js";const ht=({width:e,height:t,screenWidth:a,breakpoint:s=1279})=>e&&t&&a>s?`position: absolute; right: ${e+20}px; top: -${t}px`:"",kt=e=>({}),Qe=e=>({}),Pt=e=>({}),Xe=e=>({}),It=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),Ye=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),St=e=>({}),Ze=e=>({}),wt=e=>({}),$e=e=>({}),Et=e=>({}),xe=e=>({}),Lt=e=>({}),et=e=>({});function tt(e){let t,a;return t=new st({props:{label:e[2],parameter:he,value:e[8],options:Te,position:"top"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p(s,i){const o={};i[0]&4&&(o.label=s[2]),i[0]&256&&(o.value=s[8]),t.$set(o)},i(s){a||(k(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function At(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",a,s,i=e[9].endingIndex+1+"",o,h,u=e[9].length+"",m;return{c(){a=Z(t),s=Z("–"),o=Z(i),h=Z(" of "),m=Z(u)},l(n){a=$(n,t),s=$(n,"–"),o=$(n,i),h=$(n," of "),m=$(n,u)},m(n,r){J(n,a,r),J(n,s,r),J(n,o,r),J(n,h,r),J(n,m,r)},p(n,r){r[0]&512&&t!==(t=(n[9].length?n[9].startingIndex+1:0)+"")&&de(a,t),r[0]&512&&i!==(i=n[9].endingIndex+1+"")&&de(o,i),r[0]&512&&u!==(u=n[9].length+"")&&de(m,u)},i:fe,o:fe,d(n){n&&(b(a),b(s),b(o),b(h),b(m))}}}function Nt(e){let t,a;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p:fe,i(s){a||(k(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function Bt(e){let t,a,s,i,o,h,u,m,n,r,X,z,j,N,ee;const S=[Nt,At],K=[];function B(c,v){return c[1]?0:1}return u=B(e),m=K[u]=S[u](e),{c(){t=w("div"),a=w("button"),s=w("span"),o=C(),h=w("p"),m.c(),n=C(),r=w("button"),X=w("span"),this.h()},l(c){t=E(c,"DIV",{class:!0});var v=L(t);a=E(v,"BUTTON",{class:!0,"aria-label":!0});var y=L(a);s=E(y,"SPAN",{class:!0}),L(s).forEach(b),y.forEach(b),o=G(v),h=E(v,"P",{});var x=L(h);m.l(x),x.forEach(b),n=G(v),r=E(v,"BUTTON",{class:!0,"aria-label":!0});var H=L(r);X=E(H,"SPAN",{class:!0}),L(X).forEach(b),H.forEach(b),v.forEach(b),this.h()},h(){g(s,"class","arrow arrow-left svelte-1rg14t4"),g(a,"class","caret svelte-1rg14t4"),a.disabled=i=!e[9].hasPrevious,g(a,"aria-label",e[3]),g(X,"class","arrow arrow-right svelte-1rg14t4"),g(r,"class","caret svelte-1rg14t4"),r.disabled=z=!e[9].hasNext,g(r,"aria-label",e[4]),g(t,"class","flex items-center justify-center gap-3")},m(c,v){J(c,t,v),p(t,a),p(a,s),p(t,o),p(t,h),K[u].m(h,null),p(t,n),p(t,r),p(r,X),j=!0,N||(ee=[re(a,"click",e[27]),re(r,"click",e[28])],N=!0)},p(c,v){(!j||v[0]&512&&i!==(i=!c[9].hasPrevious))&&(a.disabled=i),(!j||v[0]&8)&&g(a,"aria-label",c[3]);let y=u;u=B(c),u===y?K[u].p(c,v):(we(),A(K[y],1,1,()=>{K[y]=null}),Ee(),m=K[u],m?m.p(c,v):(m=K[u]=S[u](c),m.c()),k(m,1),m.m(h,null)),(!j||v[0]&512&&z!==(z=!c[9].hasNext))&&(r.disabled=z),(!j||v[0]&16)&&g(r,"aria-label",c[4])},i(c){j||(k(m),j=!0)},o(c){A(m),j=!1},d(c){c&&b(t),K[u].d(),N=!1,at(ee)}}}function lt(e){let t,a;return t=new st({props:{label:e[2],parameter:he,value:e[8],options:Te,position:"bottom"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p(s,i){const o={};i[0]&4&&(o.label=s[2]),i[0]&256&&(o.value=s[8]),t.$set(o)},i(s){a||(k(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function Kt(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",a,s,i=e[9].endingIndex+1+"",o,h,u=e[9].length+"",m;return{c(){a=Z(t),s=Z("–"),o=Z(i),h=Z(" of "),m=Z(u)},l(n){a=$(n,t),s=$(n,"–"),o=$(n,i),h=$(n," of "),m=$(n,u)},m(n,r){J(n,a,r),J(n,s,r),J(n,o,r),J(n,h,r),J(n,m,r)},p(n,r){r[0]&512&&t!==(t=(n[9].length?n[9].startingIndex+1:0)+"")&&de(a,t),r[0]&512&&i!==(i=n[9].endingIndex+1+"")&&de(o,i),r[0]&512&&u!==(u=n[9].length+"")&&de(m,u)},i:fe,o:fe,d(n){n&&(b(a),b(s),b(o),b(h),b(m))}}}function zt(e){let t,a;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p:fe,i(s){a||(k(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function yt(e){let t,a,s,i,o,h,u,m,n,r,X,z,j,N,ee,S,K,B,c,v,y,x,H,D,R,ae,T,Y,Q,ue,_e,ce,d,pe,ke;qe(e[26]);const ve=e[25]["action-top-left"],V=se(ve,e,e[24],et),_=e[25]["action-top-center"],U=se(_,e,e[24],xe);let P=!e[0]&&tt(e);const Ke=e[25]["pagination-top"],Pe=se(Ke,e,e[24],$e),F=Pe||Bt(e),ze=e[25]["action-top-right"],O=se(ze,e,e[24],Ze),ye=e[25].default,W=se(ye,e,e[24],Ye),je=e[25]["action-bottom-left"],M=se(je,e,e[24],Xe);let I=!e[0]&<(e);const Ve=[zt,Kt],te=[];function Ue(l,f){return l[1]?0:1}D=Ue(e),R=te[D]=Ve[D](e);const De=e[25]["action-bottom-right"],q=se(De,e,e[24],Qe);return{c(){t=w("div"),a=w("div"),s=w("div"),V&&V.c(),i=C(),o=w("nav"),U&&U.c(),h=C(),u=w("div"),P&&P.c(),m=C(),F&&F.c(),n=C(),O&&O.c(),z=C(),W&&W.c(),j=C(),N=w("nav"),M&&M.c(),ee=C(),S=w("div"),I&&I.c(),K=C(),B=w("div"),c=w("button"),v=w("span"),x=C(),H=w("p"),R.c(),ae=C(),T=w("button"),Y=w("span"),ue=C(),q&&q.c(),this.h()},l(l){t=E(l,"DIV",{class:!0});var f=L(t);a=E(f,"DIV",{class:!0});var le=L(a);s=E(le,"DIV",{class:!0});var Fe=L(s);V&&V.l(Fe),Fe.forEach(b),i=G(le),o=E(le,"NAV",{style:!0,class:!0,"aria-label":!0});var me=L(o);U&&U.l(me),h=G(me),u=E(me,"DIV",{class:!0});var Ie=L(u);P&&P.l(Ie),m=G(Ie),F&&F.l(Ie),Ie.forEach(b),n=G(me),O&&O.l(me),me.forEach(b),le.forEach(b),z=G(f),W&&W.l(f),j=G(f),N=E(f,"NAV",{class:!0,"aria-label":!0});var Se=L(N);M&&M.l(Se),ee=G(Se),S=E(Se,"DIV",{class:!0});var ge=L(S);I&&I.l(ge),K=G(ge),B=E(ge,"DIV",{class:!0});var be=L(B);c=E(be,"BUTTON",{class:!0,"aria-label":!0});var Oe=L(c);v=E(Oe,"SPAN",{class:!0}),L(v).forEach(b),Oe.forEach(b),x=G(be),H=E(be,"P",{});var We=L(H);R.l(We),We.forEach(b),ae=G(be),T=E(be,"BUTTON",{class:!0,"aria-label":!0});var Me=L(T);Y=E(Me,"SPAN",{class:!0}),L(Y).forEach(b),Me.forEach(b),be.forEach(b),ue=G(ge),q&&q.l(ge),ge.forEach(b),Se.forEach(b),f.forEach(b),this.h()},h(){g(s,"class","w-full"),g(u,"class","flex gap-4"),g(o,"style",e[10]),g(o,"class","flex min-w-fit flex-col items-end gap-4 md:flex-row"),g(o,"aria-label",r=e[14]["aria-label"]+" 1"),qe(()=>e[29].call(o)),g(a,"class","flex flex-col items-end justify-end gap-4 lg:justify-start"),g(v,"class","arrow arrow-left svelte-1rg14t4"),g(c,"class","caret svelte-1rg14t4"),c.disabled=y=!e[9].hasPrevious,g(c,"aria-label",e[3]),g(Y,"class","arrow arrow-right svelte-1rg14t4"),g(T,"class","caret svelte-1rg14t4"),T.disabled=Q=!e[9].hasNext,g(T,"aria-label",e[4]),g(B,"class","flex items-center justify-center gap-3"),g(S,"class","flex gap-4"),g(N,"class",_e=Ce(`flex ${e[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1rg14t4"),g(N,"aria-label",ce=e[14]["aria-label"]+" 2"),g(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(l,f){J(l,t,f),p(t,a),p(a,s),V&&V.m(s,null),p(a,i),p(a,o),U&&U.m(o,null),p(o,h),p(o,u),P&&P.m(u,null),p(u,m),F&&F.m(u,null),p(o,n),O&&O.m(o,null),X=ot(o,e[29].bind(o)),p(t,z),W&&W.m(t,null),p(t,j),p(t,N),M&&M.m(N,null),p(N,ee),p(N,S),I&&I.m(S,null),p(S,K),p(S,B),p(B,c),p(c,v),p(B,x),p(B,H),te[D].m(H,null),p(B,ae),p(B,T),p(T,Y),p(S,ue),q&&q.m(S,null),d=!0,pe||(ke=[re(window,"resize",e[12]),re(window,"keydown",e[13]),re(window,"resize",e[26]),re(c,"click",e[30]),re(T,"click",e[31])],pe=!0)},p(l,f){V&&V.p&&(!d||f[0]&16777216)&&ne(V,ve,l,l[24],d?oe(ve,l[24],f,Lt):ie(l[24]),et),U&&U.p&&(!d||f[0]&16777216)&&ne(U,_,l,l[24],d?oe(_,l[24],f,Et):ie(l[24]),xe),l[0]?P&&(we(),A(P,1,1,()=>{P=null}),Ee()):P?(P.p(l,f),f[0]&1&&k(P,1)):(P=tt(l),P.c(),k(P,1),P.m(u,m)),Pe?Pe.p&&(!d||f[0]&16777216)&&ne(Pe,Ke,l,l[24],d?oe(Ke,l[24],f,wt):ie(l[24]),$e):F&&F.p&&(!d||f[0]&666)&&F.p(l,d?f:[-1,-1]),O&&O.p&&(!d||f[0]&16777216)&&ne(O,ze,l,l[24],d?oe(ze,l[24],f,St):ie(l[24]),Ze),(!d||f[0]&1024)&&g(o,"style",l[10]),(!d||f[0]&16384&&r!==(r=l[14]["aria-label"]+" 1"))&&g(o,"aria-label",r),W&&W.p&&(!d||f[0]&16777856)&&ne(W,ye,l,l[24],d?oe(ye,l[24],f,It):ie(l[24]),Ye),M&&M.p&&(!d||f[0]&16777216)&&ne(M,je,l,l[24],d?oe(je,l[24],f,Pt):ie(l[24]),Xe),l[0]?I&&(we(),A(I,1,1,()=>{I=null}),Ee()):I?(I.p(l,f),f[0]&1&&k(I,1)):(I=lt(l),I.c(),k(I,1),I.m(S,K)),(!d||f[0]&512&&y!==(y=!l[9].hasPrevious))&&(c.disabled=y),(!d||f[0]&8)&&g(c,"aria-label",l[3]);let le=D;D=Ue(l),D===le?te[D].p(l,f):(we(),A(te[le],1,1,()=>{te[le]=null}),Ee(),R=te[D],R?R.p(l,f):(R=te[D]=Ve[D](l),R.c()),k(R,1),R.m(H,null)),(!d||f[0]&512&&Q!==(Q=!l[9].hasNext))&&(T.disabled=Q),(!d||f[0]&16)&&g(T,"aria-label",l[4]),q&&q.p&&(!d||f[0]&16777216)&&ne(q,De,l,l[24],d?oe(De,l[24],f,kt):ie(l[24]),Qe),(!d||f[0]&32768&&_e!==(_e=Ce(`flex ${l[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1rg14t4"))&&g(N,"class",_e),(!d||f[0]&16384&&ce!==(ce=l[14]["aria-label"]+" 2"))&&g(N,"aria-label",ce)},i(l){d||(k(V,l),k(U,l),k(P),k(F,l),k(O,l),k(W,l),k(M,l),k(I),k(R),k(q,l),d=!0)},o(l){A(V,l),A(U,l),A(P),A(F,l),A(O,l),A(W,l),A(M,l),A(I),A(R),A(q,l),d=!1},d(l){l&&b(t),V&&V.d(l),U&&U.d(l),P&&P.d(),F&&F.d(l),O&&O.d(l),X(),W&&W.d(l),M&&M.d(l),I&&I.d(),te[D].d(),q&&q.d(l),pe=!1,at(ke)}}}function jt(e,t,a){let s,i,o,h;const u=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating","pageSizeSelectLabel","previousButtonLabel","nextButtonLabel"];let m=Ge(t,u),n,r=fe,X=()=>(r(),r=ct(i,_=>a(9,n=_)),i),z;rt(e,bt,_=>a(23,z=_)),e.$$.on_destroy.push(()=>r());let{$$slots:j={},$$scope:N}=t;const ee=ft(j);var S;let{items:K}=t,{floatId:B=void 0}=t,{startingIndex:c=0}=t,{currentPageKey:v="page"}=t,{itemsPerPage:y=null}=t,{updating:x=!1}=t,{pageSizeSelectLabel:H}=t,{previousButtonLabel:D}=t,{nextButtonLabel:R}=t,ae,T,Y;ut(()=>{ue(),Number(c)>0&&Q()});const Q=()=>{Re({parameter:v,value:n.currentPage,url:z.url})},ue=()=>{var _;B&&a(21,T=(_=document.getElementById(B))===null||_===void 0?void 0:_.clientWidth)};async function _e(_){switch(_.code){case"ArrowRight":case"KeyL":n.hasNext&&!_.metaKey&&(i.next(),Q());break;case"ArrowLeft":case"KeyH":n.hasPrevious&&!_.metaKey&&(i.previous(),Q());break;case"ArrowUp":case"KeyK":i.previousRow();break;case"ArrowDown":case"KeyJ":i.nextRow();break}}function ce(){a(5,ae=window.innerWidth)}const d=()=>{i.previous(),Q()},pe=()=>{i.next(),Q()};function ke(){Y=this.clientHeight,a(6,Y)}const ve=()=>i.previous(),V=()=>i.next();return e.$$set=_=>{t=He(He({},t),_t(_)),a(14,m=Ge(t,u)),"items"in _&&a(16,K=_.items),"floatId"in _&&a(17,B=_.floatId),"startingIndex"in _&&a(18,c=_.startingIndex),"currentPageKey"in _&&a(19,v=_.currentPageKey),"itemsPerPage"in _&&a(0,y=_.itemsPerPage),"updating"in _&&a(1,x=_.updating),"pageSizeSelectLabel"in _&&a(2,H=_.pageSizeSelectLabel),"previousButtonLabel"in _&&a(3,D=_.previousButtonLabel),"nextButtonLabel"in _&&a(4,R=_.nextButtonLabel),"$$scope"in _&&a(24,N=_.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&8388609&&a(8,s=y!==null?String(y):String(dt(z.url.searchParams.get(he))).toString()),e.$$.dirty[0]&8388864&&(parseInt(s,10)>parseInt(Je,10)?Re({parameter:he,value:Je,url:z.url}):Te.includes(s)||Re({parameter:he,value:pt,url:z.url})),e.$$.dirty[0]&327936&&X(a(7,i=vt(K,s,c))),e.$$.dirty[0]&9961984&&a(22,o=a(20,S=z.url.searchParams.get(v))!==null&&S!==void 0?S:n.currentPage),e.$$.dirty[0]&4194432&&i.jumpToPage(o),e.$$.dirty[0]&2097248&&a(10,h=ht({width:T,height:Y,screenWidth:ae}))},[y,x,H,D,R,ae,Y,i,s,n,h,Q,ue,_e,m,ee,K,B,c,v,S,T,o,z,N,j,ce,d,pe,ke,ve,V]}class Ot extends mt{constructor(t){super(),gt(this,t,jt,yt,it,{items:16,floatId:17,startingIndex:18,currentPageKey:19,itemsPerPage:0,updating:1,pageSizeSelectLabel:2,previousButtonLabel:3,nextButtonLabel:4},null,[-1,-1])}}export{Ot as P}; diff --git a/ui/assets/local/_app/immutable/chunks/pagination.9GMcGm8o.js b/ui/assets/local/_app/immutable/chunks/pagination.tZJpGBWa.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/pagination.9GMcGm8o.js rename to ui/assets/local/_app/immutable/chunks/pagination.tZJpGBWa.js index ecee635ed..e2d5db2f4 100644 --- a/ui/assets/local/_app/immutable/chunks/pagination.9GMcGm8o.js +++ b/ui/assets/local/_app/immutable/chunks/pagination.tZJpGBWa.js @@ -1 +1 @@ -import{s as H,z as C,L as J,V as U,c as W,A as q,p as Y,u as P,q as $,r as ee,x as y,k as te,g as ne,y as re,C as _}from"./scheduler.AWtTlMeO.js";import{S as oe,i as se,f as ae,c as G,a as L,m as O,t as p,b as v,d as Q,g as le,e as ue}from"./index.91lpp7Ff.js";import{e as B}from"./each.QPLN4A2E.js";import{g as ce,a as ie}from"./spread.rEx3vLA9.js";import{p as fe}from"./stores.BjeHb2_D.js";import{u as _e}from"./update-query-parameters.Mxd4zKR7.js";import{S as me,a as ge}from"./simple-select.UwK7ouLh.js";import{d as he,w as A}from"./entry.49-_VqMH.js";function E(t,e,a){const s=t.slice();return s[14]=e[a],s}function K(t){let e,a;return e=new ge({props:{value:t[14]}}),{c(){G(e.$$.fragment)},l(s){L(e.$$.fragment,s)},m(s,n){O(e,s,n),a=!0},p(s,n){const l={};n&1&&(l.value=s[14]),e.$set(l)},i(s){a||(p(e.$$.fragment,s),a=!0)},o(s){v(e.$$.fragment,s),a=!1},d(s){Q(e,s)}}}function de(t){let e,a,s=B(t[0].map(w)),n=[];for(let r=0;rv(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;rae(e,"value",l)),e.$on("change",t[3]),{c(){G(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,u){O(e,o,u),s=!0},p(o,[u]){const m=u&20?ce(n,[u&4&&{id:o[2]},u&16&&ie(o[4])]):{};u&2049&&(m.$$scope={dirty:u,ctx:o}),!a&&u&2&&(a=!0,m.value=o[1],U(()=>a=!1)),e.$set(m)},i(o){s||(p(e.$$.fragment,o),s=!0)},o(o){v(e.$$.fragment,o),s=!1},d(o){Q(e,o)}}}const w=t=>t.toString();function Ne(t,e,a){let s;W(t,fe,f=>a(12,s=f));let{$$slots:n={},$$scope:l}=e,{label:r}=e,{value:o}=e,{options:u=[]}=e,{parameter:m=null}=e,{position:g=void 0}=e;const k=`${m||r}-${g?`${g}-filter`:"filter"}`;let d=m&&s.url.searchParams.get(m)||o&&o.toString();const b=()=>{_e({parameter:m,value:d,url:s.url}).then(f=>a(5,o=f))};function R(f){d=f,a(1,d)}return t.$$set=f=>{a(4,e=C(C({},e),q(f))),"label"in f&&a(6,r=f.label),"value"in f&&a(5,o=f.value),"options"in f&&a(0,u=f.options),"parameter"in f&&a(7,m=f.parameter),"position"in f&&a(8,g=f.position),"$$scope"in f&&a(11,l=f.$$scope)},e=q(e),[u,d,k,b,e,o,r,m,g,n,R,l]}class Ve extends oe{constructor(e){super(),se(this,e,Ne,be,H,{label:6,value:5,options:0,parameter:7,position:8})}}const I=100,x=["100","250","500"],qe="per-page",ye="page",Be=x[x.length-1],S=(t,e)=>Math.floor(t/e)+1,ve=(t,e)=>e<=9?new Array(e).fill(0).map((a,s)=>s+1):t<5?[1,2,3,4,5,NaN,e-2,e-1,e]:t>=5&&t<=e-5?[1,2,NaN,t-1,t,t+1,NaN,e-1,e]:t>=e-5?[1,2,NaN,e-5,e-4,e-3,e-2,e-1,e]:[],X=(t,e,a)=>{if(isNaN(t)||t<=1)return 0;if(t>Z(e,a)){const s=a.length-e;return s>0?s:0}return Math.floor(e*(t-1))},Ie=(t,e,a)=>{const s=S(t,e);return X(s,e,a)},z=(t,e)=>Math.min(t-1,e-1),Z=(t,e)=>Math.ceil(e.length/t),F=(t,e)=>isNaN(t)||t<0?0:tt>=e.length||t<0,Ee=(t=[],e=I,a=0)=>{e=Se(e);const s=Ie(T(a),e,t),n=A(e),l=A(s),r=A(void 0),o=c=>{n.set(T(c))},u=()=>{b(),l.update(c=>{const i=c+_(n);return j(i,t)?c:F(i,t)})},m=()=>{b(),l.update(c=>{const i=c-_(n);return F(i,t)})},g=c=>{const i=_(n),h=X(Number(c),i,t),N=t.slice(h,h+i).length;return _(r)>N-1&&r.set(N-1),l.set(h)},k=c=>{const i=S(Number(c),_(n));g(i)},M=c=>{for(let i=0;i{const i=M(c);return S(i,_(n))},b=(c=void 0)=>{c===void 0&&r.set(c);const i=t.slice(_(l),_(l)+_(n)).length,h=z(i,_(n));c<=h&&r.set(c)},R=()=>{const c=t.slice(_(l),_(l)+_(n)).length,i=z(c,_(n));_(r)===void 0?r.set(0):_(r){const c=_(r)>=1?_(r)-1:0;r.set(c)},{subscribe:D}=he([l,n,r],([c,i,h])=>{const N=Z(i,t),V=S(c,i);return{items:t.slice(c,c+i),initialItem:t[0],hasPrevious:!j(c-i,t),hasNext:!j(c+i,t),startingIndex:c,endingIndex:F(c+i-1,t),length:t.length,pageSize:i,currentPage:V,totalPages:N,activeRowIndex:h,pageShortcuts:ve(V,N)}});return{subscribe:D,adjustPageSize:o,next:u,previous:m,jumpToPage:g,jumpToIndex:k,findIndex:M,findPage:d,nextRow:R,previousRow:f,setActiveRowIndex:b}},Se=(t=I)=>{const e=T(t);return isNaN(e)||!e?I:e},T=(t=0)=>{const e=Number(t);return isNaN(e)||!e?0:Math.abs(e)};export{Ve as F,Be as M,qe as a,Ee as b,ye as c,I as d,x as o,Se as p}; +import{s as H,z as C,L as J,V as U,c as W,A as q,p as Y,u as P,q as $,r as ee,x as y,k as te,g as ne,y as re,C as _}from"./scheduler.AWtTlMeO.js";import{S as oe,i as se,f as ae,c as G,a as L,m as O,t as p,b as v,d as Q,g as le,e as ue}from"./index.91lpp7Ff.js";import{e as B}from"./each.QPLN4A2E.js";import{g as ce,a as ie}from"./spread.rEx3vLA9.js";import{p as fe}from"./stores.meYYndLY.js";import{u as _e}from"./update-query-parameters.DBfsiMjL.js";import{S as me,a as ge}from"./simple-select.UwK7ouLh.js";import{d as he,w as A}from"./entry.Yz1YyohR.js";function E(t,e,a){const s=t.slice();return s[14]=e[a],s}function K(t){let e,a;return e=new ge({props:{value:t[14]}}),{c(){G(e.$$.fragment)},l(s){L(e.$$.fragment,s)},m(s,n){O(e,s,n),a=!0},p(s,n){const l={};n&1&&(l.value=s[14]),e.$set(l)},i(s){a||(p(e.$$.fragment,s),a=!0)},o(s){v(e.$$.fragment,s),a=!1},d(s){Q(e,s)}}}function de(t){let e,a,s=B(t[0].map(w)),n=[];for(let r=0;rv(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;rae(e,"value",l)),e.$on("change",t[3]),{c(){G(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,u){O(e,o,u),s=!0},p(o,[u]){const m=u&20?ce(n,[u&4&&{id:o[2]},u&16&&ie(o[4])]):{};u&2049&&(m.$$scope={dirty:u,ctx:o}),!a&&u&2&&(a=!0,m.value=o[1],U(()=>a=!1)),e.$set(m)},i(o){s||(p(e.$$.fragment,o),s=!0)},o(o){v(e.$$.fragment,o),s=!1},d(o){Q(e,o)}}}const w=t=>t.toString();function Ne(t,e,a){let s;W(t,fe,f=>a(12,s=f));let{$$slots:n={},$$scope:l}=e,{label:r}=e,{value:o}=e,{options:u=[]}=e,{parameter:m=null}=e,{position:g=void 0}=e;const k=`${m||r}-${g?`${g}-filter`:"filter"}`;let d=m&&s.url.searchParams.get(m)||o&&o.toString();const b=()=>{_e({parameter:m,value:d,url:s.url}).then(f=>a(5,o=f))};function R(f){d=f,a(1,d)}return t.$$set=f=>{a(4,e=C(C({},e),q(f))),"label"in f&&a(6,r=f.label),"value"in f&&a(5,o=f.value),"options"in f&&a(0,u=f.options),"parameter"in f&&a(7,m=f.parameter),"position"in f&&a(8,g=f.position),"$$scope"in f&&a(11,l=f.$$scope)},e=q(e),[u,d,k,b,e,o,r,m,g,n,R,l]}class Ve extends oe{constructor(e){super(),se(this,e,Ne,be,H,{label:6,value:5,options:0,parameter:7,position:8})}}const I=100,x=["100","250","500"],qe="per-page",ye="page",Be=x[x.length-1],S=(t,e)=>Math.floor(t/e)+1,ve=(t,e)=>e<=9?new Array(e).fill(0).map((a,s)=>s+1):t<5?[1,2,3,4,5,NaN,e-2,e-1,e]:t>=5&&t<=e-5?[1,2,NaN,t-1,t,t+1,NaN,e-1,e]:t>=e-5?[1,2,NaN,e-5,e-4,e-3,e-2,e-1,e]:[],X=(t,e,a)=>{if(isNaN(t)||t<=1)return 0;if(t>Z(e,a)){const s=a.length-e;return s>0?s:0}return Math.floor(e*(t-1))},Ie=(t,e,a)=>{const s=S(t,e);return X(s,e,a)},z=(t,e)=>Math.min(t-1,e-1),Z=(t,e)=>Math.ceil(e.length/t),F=(t,e)=>isNaN(t)||t<0?0:tt>=e.length||t<0,Ee=(t=[],e=I,a=0)=>{e=Se(e);const s=Ie(T(a),e,t),n=A(e),l=A(s),r=A(void 0),o=c=>{n.set(T(c))},u=()=>{b(),l.update(c=>{const i=c+_(n);return j(i,t)?c:F(i,t)})},m=()=>{b(),l.update(c=>{const i=c-_(n);return F(i,t)})},g=c=>{const i=_(n),h=X(Number(c),i,t),N=t.slice(h,h+i).length;return _(r)>N-1&&r.set(N-1),l.set(h)},k=c=>{const i=S(Number(c),_(n));g(i)},M=c=>{for(let i=0;i{const i=M(c);return S(i,_(n))},b=(c=void 0)=>{c===void 0&&r.set(c);const i=t.slice(_(l),_(l)+_(n)).length,h=z(i,_(n));c<=h&&r.set(c)},R=()=>{const c=t.slice(_(l),_(l)+_(n)).length,i=z(c,_(n));_(r)===void 0?r.set(0):_(r){const c=_(r)>=1?_(r)-1:0;r.set(c)},{subscribe:D}=he([l,n,r],([c,i,h])=>{const N=Z(i,t),V=S(c,i);return{items:t.slice(c,c+i),initialItem:t[0],hasPrevious:!j(c-i,t),hasNext:!j(c+i,t),startingIndex:c,endingIndex:F(c+i-1,t),length:t.length,pageSize:i,currentPage:V,totalPages:N,activeRowIndex:h,pageShortcuts:ve(V,N)}});return{subscribe:D,adjustPageSize:o,next:u,previous:m,jumpToPage:g,jumpToIndex:k,findIndex:M,findPage:d,nextRow:R,previousRow:f,setActiveRowIndex:b}},Se=(t=I)=>{const e=T(t);return isNaN(e)||!e?I:e},T=(t=0)=>{const e=Number(t);return isNaN(e)||!e?0:Math.abs(e)};export{Ve as F,Be as M,qe as a,Ee as b,ye as c,I as d,x as o,Se as p}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.0kQCowj0.js b/ui/assets/local/_app/immutable/chunks/paths.0kQCowj0.js deleted file mode 100644 index 91d068921..000000000 --- a/ui/assets/local/_app/immutable/chunks/paths.0kQCowj0.js +++ /dev/null @@ -1 +0,0 @@ -var s;const a=((s=globalThis.__sveltekit_rb1b4t)==null?void 0:s.base)??"";var t;const b=((t=globalThis.__sveltekit_rb1b4t)==null?void 0:t.assets)??a;export{b as a,a as b}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.Ow6cpyoT.js b/ui/assets/local/_app/immutable/chunks/paths.Ow6cpyoT.js new file mode 100644 index 000000000..8c99cd1cb --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/paths.Ow6cpyoT.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_yku4yc)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_yku4yc)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/local/_app/immutable/chunks/payload-decoder.NtOFwqeB.js b/ui/assets/local/_app/immutable/chunks/payload-decoder.YeQWFAju.js similarity index 88% rename from ui/assets/local/_app/immutable/chunks/payload-decoder.NtOFwqeB.js rename to ui/assets/local/_app/immutable/chunks/payload-decoder.YeQWFAju.js index 2997686ab..7349cd70a 100644 --- a/ui/assets/local/_app/immutable/chunks/payload-decoder.NtOFwqeB.js +++ b/ui/assets/local/_app/immutable/chunks/payload-decoder.YeQWFAju.js @@ -1 +1 @@ -import{s as V,p as T,u as q,q as v,r as E,c as h}from"./scheduler.AWtTlMeO.js";import{S as I,i as S,t as U,b as W}from"./index.91lpp7Ff.js";import{p as w}from"./stores.BjeHb2_D.js";import{a as B}from"./auth-user.qLkr7QCG.js";import{g as j,a as z,b as F,c as G,d as H}from"./decode-payload.-K-YkwX5.js";import{s as g}from"./parse-with-big-int.e3oI4SEy.js";const J=e=>({decodedValue:e&1}),C=e=>({decodedValue:e[0]});function K(e){let n;const s=e[10].default,o=T(s,e,e[9],C);return{c(){o&&o.c()},l(t){o&&o.l(t)},m(t,d){o&&o.m(t,d),n=!0},p(t,[d]){o&&o.p&&(!n||d&513)&&q(o,s,t,t[9],n?E(s,t[9],d,J):v(t[9]),C)},i(t){n||(U(o,t),n=!0)},o(t){W(o,t),n=!1},d(t){o&&o.d(t)}}}function L(e,n,s){let o,t,d,m,y,c;h(e,B,a=>s(12,y=a)),h(e,w,a=>s(8,c=a));let{$$slots:P={},$$scope:k}=n;var r;let{value:i}=n,{key:l=""}=n,{onDecode:u=void 0}=n,A=l&&(i!=null&&i[l])?i[l]:i,f=g(A);const D=async a=>{try{const p=await G(a,c.params.namespace,m,y.accessToken),_=H(p),b=l&&(_==null?void 0:_[l]);b?s(0,f=g(b)):s(0,f=g(_)),u&&u(f)}catch{console.error("Could not decode payloads")}};return e.$$set=a=>{"value"in a&&s(1,i=a.value),"key"in a&&s(2,l=a.key),"onDecode"in a&&s(3,u=a.onDecode),"$$scope"in a&&s(9,k=a.$$scope)},e.$$.update=()=>{e.$$.dirty&256&&s(7,o=j(c.data.settings)),e.$$.dirty&256&&s(6,t=z(c.data.settings)),e.$$.dirty&256&&s(5,d=F(c.data.settings)),e.$$.dirty&496&&(m={...c.data.settings,codec:{...s(4,r=c.data.settings)===null||r===void 0?void 0:r.codec,endpoint:o,passAccessToken:t,includeCredentials:d}}),e.$$.dirty&2&&D(i)},[f,i,l,u,r,d,t,o,c,k,P]}class Y extends I{constructor(n){super(),S(this,n,L,K,V,{value:1,key:2,onDecode:3})}}export{Y as P}; +import{s as V,p as T,u as q,q as v,r as E,c as h}from"./scheduler.AWtTlMeO.js";import{S as I,i as S,t as U,b as W}from"./index.91lpp7Ff.js";import{p as w}from"./stores.meYYndLY.js";import{a as B}from"./auth-user.13zVs2Gb.js";import{g as j,a as z,b as F,c as G,d as H}from"./decode-payload.QBGHBsqc.js";import{s as g}from"./parse-with-big-int.e3oI4SEy.js";const J=e=>({decodedValue:e&1}),C=e=>({decodedValue:e[0]});function K(e){let n;const s=e[10].default,o=T(s,e,e[9],C);return{c(){o&&o.c()},l(t){o&&o.l(t)},m(t,d){o&&o.m(t,d),n=!0},p(t,[d]){o&&o.p&&(!n||d&513)&&q(o,s,t,t[9],n?E(s,t[9],d,J):v(t[9]),C)},i(t){n||(U(o,t),n=!0)},o(t){W(o,t),n=!1},d(t){o&&o.d(t)}}}function L(e,n,s){let o,t,d,m,y,c;h(e,B,a=>s(12,y=a)),h(e,w,a=>s(8,c=a));let{$$slots:P={},$$scope:k}=n;var r;let{value:i}=n,{key:l=""}=n,{onDecode:u=void 0}=n,A=l&&(i!=null&&i[l])?i[l]:i,f=g(A);const D=async a=>{try{const p=await G(a,c.params.namespace,m,y.accessToken),_=H(p),b=l&&(_==null?void 0:_[l]);b?s(0,f=g(b)):s(0,f=g(_)),u&&u(f)}catch{console.error("Could not decode payloads")}};return e.$$set=a=>{"value"in a&&s(1,i=a.value),"key"in a&&s(2,l=a.key),"onDecode"in a&&s(3,u=a.onDecode),"$$scope"in a&&s(9,k=a.$$scope)},e.$$.update=()=>{e.$$.dirty&256&&s(7,o=j(c.data.settings)),e.$$.dirty&256&&s(6,t=z(c.data.settings)),e.$$.dirty&256&&s(5,d=F(c.data.settings)),e.$$.dirty&496&&(m={...c.data.settings,codec:{...s(4,r=c.data.settings)===null||r===void 0?void 0:r.codec,endpoint:o,passAccessToken:t,includeCredentials:d}}),e.$$.dirty&2&&D(i)},[f,i,l,u,r,d,t,o,c,k,P]}class Y extends I{constructor(n){super(),S(this,n,L,K,V,{value:1,key:2,onDecode:3})}}export{Y as P}; diff --git a/ui/assets/local/_app/immutable/chunks/persist-store.79TECdfr.js b/ui/assets/local/_app/immutable/chunks/persist-store.8QJu1WeF.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/persist-store.79TECdfr.js rename to ui/assets/local/_app/immutable/chunks/persist-store.8QJu1WeF.js index 80e3d76e7..50ac5c3a8 100644 --- a/ui/assets/local/_app/immutable/chunks/persist-store.79TECdfr.js +++ b/ui/assets/local/_app/immutable/chunks/persist-store.8QJu1WeF.js @@ -1 +1 @@ -import{w as I}from"./entry.49-_VqMH.js";import{p as S,s as p}from"./parse-with-big-int.e3oI4SEy.js";const m=e=>typeof e=="function";function y(e,a=null,u=!1){var l,c;let n=m(a)?a():a,o;try{(l=window==null?void 0:window.localStorage)!=null&&l.getItem(e)&&(n=S(((c=window==null?void 0:window.localStorage)==null?void 0:c.getItem(e))??""))}catch{n=null}const{subscribe:g,set:i,update:f}=I(n);if(u)try{o=new BroadcastChannel(`persist-store-${e}`),o==null||o.addEventListener("message",t=>{i(t.data)})}catch{console.error("Browser does not support BroadcastChannel")}return{subscribe:g,set:t=>{var r,s;o&&o.postMessage(t),t===null?(r=window==null?void 0:window.localStorage)==null||r.removeItem(e):(s=window==null?void 0:window.localStorage)==null||s.setItem(e,p(t)),i(t)},update:t=>{var r;(r=window==null?void 0:window.localStorage)==null||r.removeItem(e),f(s=>{var d;const w=t(s);return(d=window==null?void 0:window.localStorage)==null||d.setItem(e,p(w)),w})}}}export{m as i,y as p}; +import{w as I}from"./entry.Yz1YyohR.js";import{p as S,s as p}from"./parse-with-big-int.e3oI4SEy.js";const m=e=>typeof e=="function";function y(e,a=null,u=!1){var l,c;let n=m(a)?a():a,o;try{(l=window==null?void 0:window.localStorage)!=null&&l.getItem(e)&&(n=S(((c=window==null?void 0:window.localStorage)==null?void 0:c.getItem(e))??""))}catch{n=null}const{subscribe:g,set:i,update:f}=I(n);if(u)try{o=new BroadcastChannel(`persist-store-${e}`),o==null||o.addEventListener("message",t=>{i(t.data)})}catch{console.error("Browser does not support BroadcastChannel")}return{subscribe:g,set:t=>{var r,s;o&&o.postMessage(t),t===null?(r=window==null?void 0:window.localStorage)==null||r.removeItem(e):(s=window==null?void 0:window.localStorage)==null||s.setItem(e,p(t)),i(t)},update:t=>{var r;(r=window==null?void 0:window.localStorage)==null||r.removeItem(e),f(s=>{var d;const w=t(s);return(d=window==null?void 0:window.localStorage)==null||d.setItem(e,p(w)),w})}}}export{m as i,y as p}; diff --git a/ui/assets/local/_app/immutable/chunks/pollers-service.YzvQhuCf.js b/ui/assets/local/_app/immutable/chunks/pollers-service.e2WOdz10.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/pollers-service.YzvQhuCf.js rename to ui/assets/local/_app/immutable/chunks/pollers-service.e2WOdz10.js index 3998eca8c..5e0a16c54 100644 --- a/ui/assets/local/_app/immutable/chunks/pollers-service.YzvQhuCf.js +++ b/ui/assets/local/_app/immutable/chunks/pollers-service.e2WOdz10.js @@ -1 +1 @@ -import{s as H,e as v,b as S,d as y,g as p,j as b,k as T,t as O,f as R,l as k,n as j,p as Q,a as w,h as C,u as A,q as F,r as E}from"./scheduler.AWtTlMeO.js";import{S as M,i as z,g as G,b as _,e as J,t as g,c as D,a as L,m as N,d as q}from"./index.91lpp7Ff.js";import{I as K}from"./icon.hlu3-iXK.js";import{t as W}from"./tw-merge.NbP7EmZe.js";import{t as V}from"./translate.HrioCK44.js";import{r as I,a as h}from"./route-for-api.Fwy3ccvq.js";const X=e=>({}),B=e=>({}),Z=e=>({}),P=e=>({});function $(e){let t,s,n,r;return s=new K({props:{name:"merge"}}),{c(){t=v("span"),D(s.$$.fragment),n=O(e[2]),this.h()},l(u){t=S(u,"SPAN",{class:!0});var o=y(t);L(s.$$.fragment,o),n=R(o,e[2]),o.forEach(p),this.h()},h(){b(t,"class","flex items-center gap-1 rounded border px-1 text-sm")},m(u,o){T(u,t,o),N(s,t,null),k(t,n),r=!0},p(u,o){(!r||o&4)&&j(n,u[2])},i(u){r||(g(s.$$.fragment,u),r=!0)},o(u){_(s.$$.fragment,u),r=!1},d(u){u&&p(t),q(s)}}}function x(e){let t,s,n,r,u,o,c;s=new K({props:{name:"merge"}});const a=e[4]["overall-default-worker"],i=Q(a,e,e[3],P),m=e[4]["default-worker"],f=Q(m,e,e[3],B);return{c(){t=v("span"),D(s.$$.fragment),n=O(e[2]),r=w(),i&&i.c(),u=w(),f&&f.c(),this.h()},l(l){t=S(l,"SPAN",{class:!0});var d=y(t);L(s.$$.fragment,d),n=R(d,e[2]),r=C(d),i&&i.l(d),u=C(d),f&&f.l(d),d.forEach(p),this.h()},h(){b(t,"class",o=W("flex items-center gap-1 rounded border px-1 text-sm",e[1]&&"border-green-100 bg-green-100 text-green-800"))},m(l,d){T(l,t,d),N(s,t,null),k(t,n),k(t,r),i&&i.m(t,null),k(t,u),f&&f.m(t,null),c=!0},p(l,d){(!c||d&4)&&j(n,l[2]),i&&i.p&&(!c||d&8)&&A(i,a,l,l[3],c?E(a,l[3],d,Z):F(l[3]),P),f&&f.p&&(!c||d&8)&&A(f,m,l,l[3],c?E(m,l[3],d,X):F(l[3]),B),(!c||d&2&&o!==(o=W("flex items-center gap-1 rounded border px-1 text-sm",l[1]&&"border-green-100 bg-green-100 text-green-800")))&&b(t,"class",o)},i(l){c||(g(s.$$.fragment,l),g(i,l),g(f,l),c=!0)},o(l){_(s.$$.fragment,l),_(i,l),_(f,l),c=!1},d(l){l&&p(t),q(s),i&&i.d(l),f&&f.d(l)}}}function ee(e){let t,s,n,r;const u=[x,$],o=[];function c(a,i){return a[0]&&a[2]?0:a[2]?1:-1}return~(s=c(e))&&(n=o[s]=u[s](e)),{c(){t=v("p"),n&&n.c(),this.h()},l(a){t=S(a,"P",{class:!0});var i=y(t);n&&n.l(i),i.forEach(p),this.h()},h(){b(t,"class","flex select-all gap-2 font-mono")},m(a,i){T(a,t,i),~s&&o[s].m(t,null),r=!0},p(a,[i]){let m=s;s=c(a),s===m?~s&&o[s].p(a,i):(n&&(G(),_(o[m],1,1,()=>{o[m]=null}),J()),~s?(n=o[s],n?n.p(a,i):(n=o[s]=u[s](a),n.c()),g(n,1),n.m(t,null)):n=null)},i(a){r||(g(n),r=!0)},o(a){_(n),r=!1},d(a){a&&p(t),~s&&o[s].d()}}}function te(e,t,s){let{$$slots:n={},$$scope:r}=t,{defaultVersion:u=!1}=t,{active:o=!1}=t,{buildId:c}=t;return e.$$set=a=>{"defaultVersion"in a&&s(0,u=a.defaultVersion),"active"in a&&s(1,o=a.active),"buildId"in a&&s(2,c=a.buildId),"$$scope"in a&&s(3,r=a.$$scope)},[u,o,c,r,n]}class ge extends M{constructor(t){super(),z(this,t,te,ee,H,{defaultVersion:0,active:1,buildId:2})}}const U=e=>(e!=null&&e.majorVersionSets?[...e.majorVersionSets]:[]).reverse(),Y=e=>{if(!(!e||!e.length))return e[e.length-1]},se=(e,t)=>{var n;const s=(n=e==null?void 0:e.majorVersionSets)==null?void 0:n.find(r=>{var u;return(u=r.buildIds)==null?void 0:u.includes(t)});return Y(s==null?void 0:s.buildIds)},pe=e=>e?e.slice(0,e.length-1).reverse():[],he=e=>{var n;const t=U(e);if(!t.length)return;const s=(n=t[0])==null?void 0:n.buildIds;if(s!=null&&s.length)return Y(t[0].buildIds)},ne=e=>{var t,s;if((t=e==null?void 0:e.mostRecentWorkerVersionStamp)!=null&&t.useVersioning)return((s=e.mostRecentWorkerVersionStamp)==null?void 0:s.buildId)||void 0},re=e=>{var t,s;if((t=e==null?void 0:e.workerVersionCapabilities)!=null&&t.useVersioning)return((s=e.workerVersionCapabilities)==null?void 0:s.buildId)||void 0},ae=e=>[...new Set(e==null?void 0:e.map(re).filter(Boolean))],ke=e=>e==null?void 0:e.some(t=>{var s;return(s=t==null?void 0:t.workerVersionCapabilities)==null?void 0:s.useVersioning}),be=(e,t,s)=>{const n=ne(e);if(!n)return!0;const r=se(s,n);return ae(t).includes(r)};async function Ie(e,t=fetch){var a;const s=I("task-queue",e),n=await h(s,{request:t,params:{taskQueueType:"1"}}),r=await h(s,{request:t,params:{taskQueueType:"2"}});n!=null&&n.pollers||(n.pollers=[]),r!=null&&r.pollers||(r.pollers=[]),r.pollers.forEach(i=>{i.taskQueueTypes=["ACTIVITY"]}),n.pollers.forEach(i=>{i.taskQueueTypes=["WORKFLOW"]});const u=i=>(m,f)=>{const l=m[f.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return m[f.identity]={lastAccessTime:!l.lastAccessTime||l.lastAccessTimen.pollers.some(m=>{if(i.identity===m.identity)return i.taskQueueTypes=[...m.taskQueueTypes,...i.taskQueueTypes],i})),(a=r.pollers)==null||a.reduce(u("ACTIVITY"),n.pollers.reduce(u("WORKFLOW"),{}));const o=r.pollers.length?r.pollers:n.pollers,c=r.pollers.length?r.taskQueueStatus:n.taskQueueStatus;return{pollers:o,taskQueueStatus:c}}async function Ve(e,t=fetch){const s=await oe(e,t),n=await ie(e,t),r=U(n);return{rules:s,compatibility:n,versionSets:r}}async function oe(e,t=fetch){const s=I("task-queue.rules",e);return h(s,{request:t,handleError:n=>{}})}async function ie(e,t=fetch){const s=I("task-queue.compatibility",e);return h(s,{request:t,handleError:n=>{}})}async function ve(e,t=fetch){const{namespace:s,buildIds:n,queue:r}=e,u=I("worker-task-reachability",{namespace:s}),o=new URLSearchParams;if(n.length)for(const c of n)o.append("buildIds",c);else o.append("buildIds",""),o.append("taskQueues",r);return await h(u,{request:t,params:o,handleError:c=>({buildIdReachability:[]})})}function ue(e){return!e||!e.length?V("workers.ready-to-be-retired"):e.length===1&&e.includes("CLOSED")?V("common.maybe"):V("common.no")}function Se(e,t,s){var o,c;const n=(o=e==null?void 0:e.buildIdReachability)==null?void 0:o.find(a=>a.buildId===s);if(!n)return"";const r=(c=n==null?void 0:n.taskQueueReachability)==null?void 0:c.find(a=>(a==null?void 0:a.taskQueue)===t);if(!r)return"";const u=r==null?void 0:r.reachability;return ue(u)}export{ge as C,U as a,he as b,re as c,Se as d,Y as e,pe as f,Ie as g,ae as h,Ve as i,ve as j,ne as k,ke as p,be as w}; +import{s as H,e as v,b as S,d as y,g as p,j as b,k as T,t as O,f as R,l as k,n as j,p as Q,a as w,h as C,u as A,q as F,r as E}from"./scheduler.AWtTlMeO.js";import{S as M,i as z,g as G,b as _,e as J,t as g,c as D,a as L,m as N,d as q}from"./index.91lpp7Ff.js";import{I as K}from"./icon.hlu3-iXK.js";import{t as W}from"./tw-merge.NbP7EmZe.js";import{t as V}from"./translate.HrioCK44.js";import{r as I,a as h}from"./route-for-api.n9XkRS8h.js";const X=e=>({}),B=e=>({}),Z=e=>({}),P=e=>({});function $(e){let t,s,n,r;return s=new K({props:{name:"merge"}}),{c(){t=v("span"),D(s.$$.fragment),n=O(e[2]),this.h()},l(u){t=S(u,"SPAN",{class:!0});var o=y(t);L(s.$$.fragment,o),n=R(o,e[2]),o.forEach(p),this.h()},h(){b(t,"class","flex items-center gap-1 rounded border px-1 text-sm")},m(u,o){T(u,t,o),N(s,t,null),k(t,n),r=!0},p(u,o){(!r||o&4)&&j(n,u[2])},i(u){r||(g(s.$$.fragment,u),r=!0)},o(u){_(s.$$.fragment,u),r=!1},d(u){u&&p(t),q(s)}}}function x(e){let t,s,n,r,u,o,c;s=new K({props:{name:"merge"}});const a=e[4]["overall-default-worker"],i=Q(a,e,e[3],P),m=e[4]["default-worker"],f=Q(m,e,e[3],B);return{c(){t=v("span"),D(s.$$.fragment),n=O(e[2]),r=w(),i&&i.c(),u=w(),f&&f.c(),this.h()},l(l){t=S(l,"SPAN",{class:!0});var d=y(t);L(s.$$.fragment,d),n=R(d,e[2]),r=C(d),i&&i.l(d),u=C(d),f&&f.l(d),d.forEach(p),this.h()},h(){b(t,"class",o=W("flex items-center gap-1 rounded border px-1 text-sm",e[1]&&"border-green-100 bg-green-100 text-green-800"))},m(l,d){T(l,t,d),N(s,t,null),k(t,n),k(t,r),i&&i.m(t,null),k(t,u),f&&f.m(t,null),c=!0},p(l,d){(!c||d&4)&&j(n,l[2]),i&&i.p&&(!c||d&8)&&A(i,a,l,l[3],c?E(a,l[3],d,Z):F(l[3]),P),f&&f.p&&(!c||d&8)&&A(f,m,l,l[3],c?E(m,l[3],d,X):F(l[3]),B),(!c||d&2&&o!==(o=W("flex items-center gap-1 rounded border px-1 text-sm",l[1]&&"border-green-100 bg-green-100 text-green-800")))&&b(t,"class",o)},i(l){c||(g(s.$$.fragment,l),g(i,l),g(f,l),c=!0)},o(l){_(s.$$.fragment,l),_(i,l),_(f,l),c=!1},d(l){l&&p(t),q(s),i&&i.d(l),f&&f.d(l)}}}function ee(e){let t,s,n,r;const u=[x,$],o=[];function c(a,i){return a[0]&&a[2]?0:a[2]?1:-1}return~(s=c(e))&&(n=o[s]=u[s](e)),{c(){t=v("p"),n&&n.c(),this.h()},l(a){t=S(a,"P",{class:!0});var i=y(t);n&&n.l(i),i.forEach(p),this.h()},h(){b(t,"class","flex select-all gap-2 font-mono")},m(a,i){T(a,t,i),~s&&o[s].m(t,null),r=!0},p(a,[i]){let m=s;s=c(a),s===m?~s&&o[s].p(a,i):(n&&(G(),_(o[m],1,1,()=>{o[m]=null}),J()),~s?(n=o[s],n?n.p(a,i):(n=o[s]=u[s](a),n.c()),g(n,1),n.m(t,null)):n=null)},i(a){r||(g(n),r=!0)},o(a){_(n),r=!1},d(a){a&&p(t),~s&&o[s].d()}}}function te(e,t,s){let{$$slots:n={},$$scope:r}=t,{defaultVersion:u=!1}=t,{active:o=!1}=t,{buildId:c}=t;return e.$$set=a=>{"defaultVersion"in a&&s(0,u=a.defaultVersion),"active"in a&&s(1,o=a.active),"buildId"in a&&s(2,c=a.buildId),"$$scope"in a&&s(3,r=a.$$scope)},[u,o,c,r,n]}class ge extends M{constructor(t){super(),z(this,t,te,ee,H,{defaultVersion:0,active:1,buildId:2})}}const U=e=>(e!=null&&e.majorVersionSets?[...e.majorVersionSets]:[]).reverse(),Y=e=>{if(!(!e||!e.length))return e[e.length-1]},se=(e,t)=>{var n;const s=(n=e==null?void 0:e.majorVersionSets)==null?void 0:n.find(r=>{var u;return(u=r.buildIds)==null?void 0:u.includes(t)});return Y(s==null?void 0:s.buildIds)},pe=e=>e?e.slice(0,e.length-1).reverse():[],he=e=>{var n;const t=U(e);if(!t.length)return;const s=(n=t[0])==null?void 0:n.buildIds;if(s!=null&&s.length)return Y(t[0].buildIds)},ne=e=>{var t,s;if((t=e==null?void 0:e.mostRecentWorkerVersionStamp)!=null&&t.useVersioning)return((s=e.mostRecentWorkerVersionStamp)==null?void 0:s.buildId)||void 0},re=e=>{var t,s;if((t=e==null?void 0:e.workerVersionCapabilities)!=null&&t.useVersioning)return((s=e.workerVersionCapabilities)==null?void 0:s.buildId)||void 0},ae=e=>[...new Set(e==null?void 0:e.map(re).filter(Boolean))],ke=e=>e==null?void 0:e.some(t=>{var s;return(s=t==null?void 0:t.workerVersionCapabilities)==null?void 0:s.useVersioning}),be=(e,t,s)=>{const n=ne(e);if(!n)return!0;const r=se(s,n);return ae(t).includes(r)};async function Ie(e,t=fetch){var a;const s=I("task-queue",e),n=await h(s,{request:t,params:{taskQueueType:"1"}}),r=await h(s,{request:t,params:{taskQueueType:"2"}});n!=null&&n.pollers||(n.pollers=[]),r!=null&&r.pollers||(r.pollers=[]),r.pollers.forEach(i=>{i.taskQueueTypes=["ACTIVITY"]}),n.pollers.forEach(i=>{i.taskQueueTypes=["WORKFLOW"]});const u=i=>(m,f)=>{const l=m[f.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return m[f.identity]={lastAccessTime:!l.lastAccessTime||l.lastAccessTimen.pollers.some(m=>{if(i.identity===m.identity)return i.taskQueueTypes=[...m.taskQueueTypes,...i.taskQueueTypes],i})),(a=r.pollers)==null||a.reduce(u("ACTIVITY"),n.pollers.reduce(u("WORKFLOW"),{}));const o=r.pollers.length?r.pollers:n.pollers,c=r.pollers.length?r.taskQueueStatus:n.taskQueueStatus;return{pollers:o,taskQueueStatus:c}}async function Ve(e,t=fetch){const s=await oe(e,t),n=await ie(e,t),r=U(n);return{rules:s,compatibility:n,versionSets:r}}async function oe(e,t=fetch){const s=I("task-queue.rules",e);return h(s,{request:t,handleError:n=>{}})}async function ie(e,t=fetch){const s=I("task-queue.compatibility",e);return h(s,{request:t,handleError:n=>{}})}async function ve(e,t=fetch){const{namespace:s,buildIds:n,queue:r}=e,u=I("worker-task-reachability",{namespace:s}),o=new URLSearchParams;if(n.length)for(const c of n)o.append("buildIds",c);else o.append("buildIds",""),o.append("taskQueues",r);return await h(u,{request:t,params:o,handleError:c=>({buildIdReachability:[]})})}function ue(e){return!e||!e.length?V("workers.ready-to-be-retired"):e.length===1&&e.includes("CLOSED")?V("common.maybe"):V("common.no")}function Se(e,t,s){var o,c;const n=(o=e==null?void 0:e.buildIdReachability)==null?void 0:o.find(a=>a.buildId===s);if(!n)return"";const r=(c=n==null?void 0:n.taskQueueReachability)==null?void 0:c.find(a=>(a==null?void 0:a.taskQueue)===t);if(!r)return"";const u=r==null?void 0:r.reachability;return ue(u)}export{ge as C,U as a,he as b,re as c,Se as d,Y as e,pe as f,Ie as g,ae as h,Ve as i,ve as j,ne as k,ke as p,be as w}; diff --git a/ui/assets/local/_app/immutable/chunks/query-service.HaikD-rG.js b/ui/assets/local/_app/immutable/chunks/query-service.08pRS3DP.js similarity index 90% rename from ui/assets/local/_app/immutable/chunks/query-service.HaikD-rG.js rename to ui/assets/local/_app/immutable/chunks/query-service.08pRS3DP.js index bc9bd6178..351162b06 100644 --- a/ui/assets/local/_app/immutable/chunks/query-service.HaikD-rG.js +++ b/ui/assets/local/_app/immutable/chunks/query-service.08pRS3DP.js @@ -1 +1 @@ -import{f as y}from"./decode-payload.-K-YkwX5.js";import{h as d}from"./has.-dFYEuQV.js";import{s as c,p as f}from"./parse-with-big-int.e3oI4SEy.js";import{r as l,a as p,i as m}from"./route-for-api.Fwy3ccvq.js";const h=t=>{const e=t.indexOf("["),r=t.indexOf("]");return t.slice(e+1,r).split(" ").filter(a=>a!=="__stack_trace").map(a=>a.endsWith(",")?a.slice(0,a.length-1):a)},g=async(t,e,r)=>(e=await e,{namespace:t,workflowId:e.id,queryType:r});async function u({workflow:t,namespace:e,queryType:r},a=fetch,n){t=await t;const i=await g(e,t,r),s=l("query",i);return await p(s,{options:{method:"POST",body:c({execution:{workflowId:t.id,runId:t.runId},query:{queryType:r}})},request:a,onError:n,notifyOnError:!1})}async function x(t,e=fetch){return new Promise((r,a)=>{u({...t,queryType:"@@temporal-internal__list"},e,n=>{m(n.body)&&n.body.message.includes("@@temporal-internal__list")?r(h(n.body.message)):a(n)})})}async function _(t,e,r,a=fetch){return u(t,a).then(async n=>{const{queryResult:i}=n??{queryResult:{payloads:[]}};let s=i.payloads;try{if(s[0]){const o=await y({attributes:i,namespace:t.namespace,settings:e,accessToken:r});d(o,"payloads")&&Array.isArray(o.payloads)&&(s=o.payloads[0])}return f(s)}catch{return typeof s!="string"?c(s):s}})}async function A(t,e,r){return _({...t,queryType:"__stack_trace"},e,r)}export{x as a,_ as b,A as g}; +import{f as y}from"./decode-payload.QBGHBsqc.js";import{h as d}from"./has.-dFYEuQV.js";import{s as c,p as f}from"./parse-with-big-int.e3oI4SEy.js";import{r as l,a as p,i as m}from"./route-for-api.n9XkRS8h.js";const h=t=>{const e=t.indexOf("["),r=t.indexOf("]");return t.slice(e+1,r).split(" ").filter(a=>a!=="__stack_trace").map(a=>a.endsWith(",")?a.slice(0,a.length-1):a)},g=async(t,e,r)=>(e=await e,{namespace:t,workflowId:e.id,queryType:r});async function u({workflow:t,namespace:e,queryType:r},a=fetch,n){t=await t;const i=await g(e,t,r),s=l("query",i);return await p(s,{options:{method:"POST",body:c({execution:{workflowId:t.id,runId:t.runId},query:{queryType:r}})},request:a,onError:n,notifyOnError:!1})}async function x(t,e=fetch){return new Promise((r,a)=>{u({...t,queryType:"@@temporal-internal__list"},e,n=>{m(n.body)&&n.body.message.includes("@@temporal-internal__list")?r(h(n.body.message)):a(n)})})}async function _(t,e,r,a=fetch){return u(t,a).then(async n=>{const{queryResult:i}=n??{queryResult:{payloads:[]}};let s=i.payloads;try{if(s[0]){const o=await y({attributes:i,namespace:t.namespace,settings:e,accessToken:r});d(o,"payloads")&&Array.isArray(o.payloads)&&(s=o.payloads[0])}return f(s)}catch{return typeof s!="string"?c(s):s}})}async function A(t,e,r){return _({...t,queryType:"__stack_trace"},e,r)}export{x as a,_ as b,A as g}; diff --git a/ui/assets/local/_app/immutable/chunks/radio-input.mvsumPD4.js b/ui/assets/local/_app/immutable/chunks/radio-input.VcwwInus.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/radio-input.mvsumPD4.js rename to ui/assets/local/_app/immutable/chunks/radio-input.VcwwInus.js index bad847021..3ba4fc2f3 100644 --- a/ui/assets/local/_app/immutable/chunks/radio-input.mvsumPD4.js +++ b/ui/assets/local/_app/immutable/chunks/radio-input.VcwwInus.js @@ -1 +1 @@ -import{s as L,p as Y,z as g,e as p,a as I,b as v,d as k,h as A,g as _,E as H,k as h,l as E,u as Z,q as y,r as w,D as N,a2 as x,A as V,t as O,f as S,j as b,n as T,U as $,c as ee,a3 as le,H as P,m as ae}from"./scheduler.AWtTlMeO.js";import{S as j,i as z,t as M,b as X,c as se,a as ie,m as te,d as ne}from"./index.91lpp7Ff.js";import{g as B}from"./spread.rEx3vLA9.js";import{w as ue}from"./entry.49-_VqMH.js";import{L as re}from"./label.2vZCl_WE.js";import{t as U}from"./tw-merge.NbP7EmZe.js";function q(t){let e,s;return{c(){e=p("p"),s=O(t[1]),this.h()},l(r){e=v(r,"P",{class:!0});var i=k(e);s=S(i,t[1]),i.forEach(_),this.h()},h(){b(e,"class","font-secondary text-sm font-medium")},m(r,i){h(r,e,i),E(e,s)},p(r,i){i&2&&T(s,r[1])},d(r){r&&_(e)}}}function fe(t){let e,s,r,i,l=t[1]&&q(t);const f=t[6].default,n=Y(f,t,t[5],null);let c=[{class:r=U("flex flex-col gap-2 p-1",t[0])},t[2]],m={};for(let u=0;u{e=g(g({},e),V(a)),s(2,i=N(e,r)),"class"in a&&s(0,n=a.class),"name"in a&&s(3,c=a.name),"group"in a&&s(4,m=a.group),"description"in a&&s(1,u=a.description),"$$scope"in a&&s(5,f=a.$$scope)},[n,u,i,c,m,f,l]}class ke extends j{constructor(e){super(),z(this,e,oe,fe,L,{class:0,name:3,group:4,description:1})}}function de(t){let e,s,r,i,l,f,n,c,m=[{type:"radio"},{class:"surface-primary"},{"aria-describedby":s=t[1]+"-description"},{name:t[7]},{__value:t[0]},{id:t[1]},{disabled:t[5]},t[9]],u={};for(let a=0;as(6,l=o));const Q=[[]];function W(){l=this.__value,D.set(l)}return t.$$set=o=>{e=g(g({},e),V(o)),s(9,i=N(e,r)),"value"in o&&s(0,n=o.value),"id"in o&&s(1,c=o.id),"label"in o&&s(2,m=o.label),"description"in o&&s(3,u=o.description),"labelHidden"in o&&s(4,a=o.labelHidden),"disabled"in o&&s(5,d=o.disabled),"group"in o&&s(10,R=o.group),"name"in o&&s(11,C=o.name)},[n,c,m,u,a,d,l,K,D,i,R,C,W,Q]}class Ee extends j{constructor(e){super(),z(this,e,me,ce,L,{value:0,id:1,label:2,description:3,labelHidden:4,disabled:5,group:10,name:11})}}export{ke as R,Ee as a}; +import{s as L,p as Y,z as g,e as p,a as I,b as v,d as k,h as A,g as _,E as H,k as h,l as E,u as Z,q as y,r as w,D as N,a2 as x,A as V,t as O,f as S,j as b,n as T,U as $,c as ee,a3 as le,H as P,m as ae}from"./scheduler.AWtTlMeO.js";import{S as j,i as z,t as M,b as X,c as se,a as ie,m as te,d as ne}from"./index.91lpp7Ff.js";import{g as B}from"./spread.rEx3vLA9.js";import{w as ue}from"./entry.Yz1YyohR.js";import{L as re}from"./label.2vZCl_WE.js";import{t as U}from"./tw-merge.NbP7EmZe.js";function q(t){let e,s;return{c(){e=p("p"),s=O(t[1]),this.h()},l(r){e=v(r,"P",{class:!0});var i=k(e);s=S(i,t[1]),i.forEach(_),this.h()},h(){b(e,"class","font-secondary text-sm font-medium")},m(r,i){h(r,e,i),E(e,s)},p(r,i){i&2&&T(s,r[1])},d(r){r&&_(e)}}}function fe(t){let e,s,r,i,l=t[1]&&q(t);const f=t[6].default,n=Y(f,t,t[5],null);let c=[{class:r=U("flex flex-col gap-2 p-1",t[0])},t[2]],m={};for(let u=0;u{e=g(g({},e),V(a)),s(2,i=N(e,r)),"class"in a&&s(0,n=a.class),"name"in a&&s(3,c=a.name),"group"in a&&s(4,m=a.group),"description"in a&&s(1,u=a.description),"$$scope"in a&&s(5,f=a.$$scope)},[n,u,i,c,m,f,l]}class ke extends j{constructor(e){super(),z(this,e,oe,fe,L,{class:0,name:3,group:4,description:1})}}function de(t){let e,s,r,i,l,f,n,c,m=[{type:"radio"},{class:"surface-primary"},{"aria-describedby":s=t[1]+"-description"},{name:t[7]},{__value:t[0]},{id:t[1]},{disabled:t[5]},t[9]],u={};for(let a=0;as(6,l=o));const Q=[[]];function W(){l=this.__value,D.set(l)}return t.$$set=o=>{e=g(g({},e),V(o)),s(9,i=N(e,r)),"value"in o&&s(0,n=o.value),"id"in o&&s(1,c=o.id),"label"in o&&s(2,m=o.label),"description"in o&&s(3,u=o.description),"labelHidden"in o&&s(4,a=o.labelHidden),"disabled"in o&&s(5,d=o.disabled),"group"in o&&s(10,R=o.group),"name"in o&&s(11,C=o.name)},[n,c,m,u,a,d,l,K,D,i,R,C,W,Q]}class Ee extends j{constructor(e){super(),z(this,e,me,ce,L,{value:0,id:1,label:2,description:3,labelHidden:4,disabled:5,group:10,name:11})}}export{ke as R,Ee as a}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for-api.Fwy3ccvq.js b/ui/assets/local/_app/immutable/chunks/route-for-api.n9XkRS8h.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/route-for-api.Fwy3ccvq.js rename to ui/assets/local/_app/immutable/chunks/route-for-api.n9XkRS8h.js index 6e43ba068..fc5aa2bf8 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for-api.Fwy3ccvq.js +++ b/ui/assets/local/_app/immutable/chunks/route-for-api.n9XkRS8h.js @@ -1 +1 @@ -import{B as t}from"./prod-browser.6V4A_NcJ.js";import{g as $}from"./auth-user.qLkr7QCG.js";import{w as A}from"./entry.49-_VqMH.js";import{t as x}from"./toaster.JA1rZe2a.js";import{h as y}from"./has.-dFYEuQV.js";import{i as C}from"./is-network-error.S4fYxeQT.js";import{j as e,t as R}from"./route-for.LRddn_DS.js";import{i as F}from"./persist-store.79TECdfr.js";import{C as O}from"./scheduler.AWtTlMeO.js";import{b as P}from"./paths.0kQCowj0.js";import{p as W}from"./stores.BjeHb2_D.js";const N=A(null),S=(c,n=x,i=N,s=t)=>{if(!(c instanceof DOMException&&c.name==="AbortError"))throw typeof c=="string"?n.push({variant:"error",message:c}):c.report=!1,c instanceof Error&&n.push({variant:"error",message:c.message}),I(c)&&s&&window.location.assign(e(c==null?void 0:c.message)),T(c)&&s&&window.location.assign(e(c==null?void 0:c.message)),C(c)&&(n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),i.set(c)),c},sn=(c,n=t)=>{var s;const i=`${c==null?void 0:c.status} ${(s=c==null?void 0:c.body)==null?void 0:s.message}`;if(I(c)&&n){window.location.assign(e(i));return}if(T(c)&&n){window.location.assign(e(i));return}},I=c=>v(c,401),T=c=>v(c,403),v=(c,n)=>y(c,"statusCode")?c.statusCode===n:y(c,"status")?c.status===n:!1,on=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",ln=async(c,n={})=>{const{params:i={},request:s=fetch,token:l,notifyOnError:u=!0,handleError:f=S,onError:k,isBrowser:g=t}=n;let{options:w}=n,d=new URLSearchParams;if(i!=null&&i.entries)d=i,l&&d.set("nextPageToken",l);else{const o=l?{next_page_token:l}:{};d=new URLSearchParams({...i,...o})}const U=R(c,d);try{w=_(w,g),c.endsWith("api/v1/settings")||(w=await z(w,g));const o=await s(U,w),h=await o.json(),{status:q,statusText:E}=o;if(!o.ok)if(k&&F(k))k({status:q,statusText:E,body:h});else throw{statusCode:o.status,statusText:o.statusText,response:o,message:(h==null?void 0:h.message)??o.statusText};return h}catch(o){if(u)f(o);else throw o}},_=(c,n=t)=>{const i={credentials:"include",...c};return i.headers=B(c==null?void 0:c.headers,n),i},z=async(c,n=t)=>(globalThis!=null&&globalThis.AccessToken?c.headers=await b(c==null?void 0:c.headers,globalThis.AccessToken,n):$().accessToken&&(c.headers=await b(c==null?void 0:c.headers,async()=>$().accessToken,n),c.headers=L(c==null?void 0:c.headers,$().idToken,n)),c),b=async(c,n,i=t)=>{if(c||(c={}),!i)return c;try{const s=await n();s&&(c.Authorization=`Bearer ${s}`)}catch(s){console.error(s)}return c},L=(c={},n,i=t)=>(i&&n&&(c["Authorization-Extras"]=n),c),B=(c,n=t)=>{if(c||(c={}),c["Caller-Type"]="operator",!n)return c;const i="_csrf=",s="X-CSRF-TOKEN";try{let u=document.cookie.split(";").find(f=>f.includes(i));u&&!c[s]&&(u=u.trim().slice(i.length),c[s]=u)}catch(l){console.error(l)}return c};function J(c=t){const n="",i=!n.startsWith("http");let s="";return i?s=c?window.location.origin+n:"":s=n,s.endsWith("/")&&(s=s.slice(0,-1)),s}const D=(c,n)=>c?c.replace("%namespace%",n):"",H=c=>{var u,f;let n="";const i=(u=O(W).data)==null?void 0:u.webUrl,s=i&&c,l=((f=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:f.apiUrl)&&c;return s?n=i:l?(console.warn("Using fallback api url, web url not found"),n=D(globalThis.AppConfig.apiUrl,c)):n=J(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${P}`,n},K=c=>(c.startsWith("/")&&(c=c.slice(1)),`/api/v1/${c}`),M=(c,n)=>`${H(n)}${c}`,X=c=>Object.keys(c??{}).reduce((n,i)=>(n[i]=encodeURIComponent(encodeURIComponent(c[i])),n),{namespace:"",workflowId:"",scheduleId:"",queue:"",queryType:"",signalName:"",batchJobId:"",activityId:""});function G(c,n,i=!0){i&&(n=X(n));const s={cluster:"/cluster-info",systemInfo:"/system-info","events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history-reverse`,namespaces:"/namespaces",namespace:`/namespaces/${n==null?void 0:n.namespace}`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/query/${n.queryType}`,schedule:`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,"schedule.patch":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/patch`,"schedule.edit":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/update`,schedules:`/namespaces/${n==null?void 0:n.namespace}/schedules`,"search-attributes":`/namespaces/${n.namespace}/search-attributes`,settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,"task-queue.compatibility":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-build-id-compatibility`,"task-queue.rules":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-versioning-rules`,user:"/me","worker-task-reachability":`/namespaces/${n==null?void 0:n.namespace}/worker-task-reachability`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/terminate`,"workflow.cancel":`/namespaces/${n.namespace}/workflows/${n.workflowId}/cancel`,"workflow.signal":`/namespaces/${n.namespace}/workflows/${n.workflowId}/signal/${n.signalName}`,"workflow.reset":`/namespaces/${n.namespace}/workflows/${n.workflowId}/reset`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/archived-workflows`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.count":`/namespaces/${n==null?void 0:n.namespace}/workflow-count`,"activity.complete":`/namespaces/${n.namespace}/activities/complete-by-id`,"activity.fail":`/namespaces/${n.namespace}/activities/fail-by-id`,"batch-operations.list":`/namespaces/${n.namespace}/batch-operations`,"batch-operations":`/namespaces/${n.namespace}/batch-operations/${n==null?void 0:n.batchJobId}`};return K(s[c])}function un(c,n,i=!0){const s=G(c,n,i);return M(s,n==null?void 0:n.namespace)}export{ln as a,H as b,sn as c,I as d,T as e,J as g,S as h,on as i,N as n,G as p,un as r}; +import{B as t}from"./prod-browser.6V4A_NcJ.js";import{g as $}from"./auth-user.13zVs2Gb.js";import{w as A}from"./entry.Yz1YyohR.js";import{t as x}from"./toaster.tT6uD5UN.js";import{h as y}from"./has.-dFYEuQV.js";import{i as C}from"./is-network-error.S4fYxeQT.js";import{j as e,t as R}from"./route-for.ezVRK9wE.js";import{i as F}from"./persist-store.8QJu1WeF.js";import{C as O}from"./scheduler.AWtTlMeO.js";import{b as P}from"./paths.Ow6cpyoT.js";import{p as W}from"./stores.meYYndLY.js";const N=A(null),S=(c,n=x,i=N,s=t)=>{if(!(c instanceof DOMException&&c.name==="AbortError"))throw typeof c=="string"?n.push({variant:"error",message:c}):c.report=!1,c instanceof Error&&n.push({variant:"error",message:c.message}),I(c)&&s&&window.location.assign(e(c==null?void 0:c.message)),T(c)&&s&&window.location.assign(e(c==null?void 0:c.message)),C(c)&&(n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),i.set(c)),c},sn=(c,n=t)=>{var s;const i=`${c==null?void 0:c.status} ${(s=c==null?void 0:c.body)==null?void 0:s.message}`;if(I(c)&&n){window.location.assign(e(i));return}if(T(c)&&n){window.location.assign(e(i));return}},I=c=>v(c,401),T=c=>v(c,403),v=(c,n)=>y(c,"statusCode")?c.statusCode===n:y(c,"status")?c.status===n:!1,on=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",ln=async(c,n={})=>{const{params:i={},request:s=fetch,token:l,notifyOnError:u=!0,handleError:f=S,onError:k,isBrowser:g=t}=n;let{options:w}=n,d=new URLSearchParams;if(i!=null&&i.entries)d=i,l&&d.set("nextPageToken",l);else{const o=l?{next_page_token:l}:{};d=new URLSearchParams({...i,...o})}const U=R(c,d);try{w=_(w,g),c.endsWith("api/v1/settings")||(w=await z(w,g));const o=await s(U,w),h=await o.json(),{status:q,statusText:E}=o;if(!o.ok)if(k&&F(k))k({status:q,statusText:E,body:h});else throw{statusCode:o.status,statusText:o.statusText,response:o,message:(h==null?void 0:h.message)??o.statusText};return h}catch(o){if(u)f(o);else throw o}},_=(c,n=t)=>{const i={credentials:"include",...c};return i.headers=B(c==null?void 0:c.headers,n),i},z=async(c,n=t)=>(globalThis!=null&&globalThis.AccessToken?c.headers=await b(c==null?void 0:c.headers,globalThis.AccessToken,n):$().accessToken&&(c.headers=await b(c==null?void 0:c.headers,async()=>$().accessToken,n),c.headers=L(c==null?void 0:c.headers,$().idToken,n)),c),b=async(c,n,i=t)=>{if(c||(c={}),!i)return c;try{const s=await n();s&&(c.Authorization=`Bearer ${s}`)}catch(s){console.error(s)}return c},L=(c={},n,i=t)=>(i&&n&&(c["Authorization-Extras"]=n),c),B=(c,n=t)=>{if(c||(c={}),c["Caller-Type"]="operator",!n)return c;const i="_csrf=",s="X-CSRF-TOKEN";try{let u=document.cookie.split(";").find(f=>f.includes(i));u&&!c[s]&&(u=u.trim().slice(i.length),c[s]=u)}catch(l){console.error(l)}return c};function J(c=t){const n="",i=!n.startsWith("http");let s="";return i?s=c?window.location.origin+n:"":s=n,s.endsWith("/")&&(s=s.slice(0,-1)),s}const D=(c,n)=>c?c.replace("%namespace%",n):"",H=c=>{var u,f;let n="";const i=(u=O(W).data)==null?void 0:u.webUrl,s=i&&c,l=((f=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:f.apiUrl)&&c;return s?n=i:l?(console.warn("Using fallback api url, web url not found"),n=D(globalThis.AppConfig.apiUrl,c)):n=J(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${P}`,n},K=c=>(c.startsWith("/")&&(c=c.slice(1)),`/api/v1/${c}`),M=(c,n)=>`${H(n)}${c}`,X=c=>Object.keys(c??{}).reduce((n,i)=>(n[i]=encodeURIComponent(encodeURIComponent(c[i])),n),{namespace:"",workflowId:"",scheduleId:"",queue:"",queryType:"",signalName:"",batchJobId:"",activityId:""});function G(c,n,i=!0){i&&(n=X(n));const s={cluster:"/cluster-info",systemInfo:"/system-info","events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history-reverse`,namespaces:"/namespaces",namespace:`/namespaces/${n==null?void 0:n.namespace}`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/query/${n.queryType}`,schedule:`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,"schedule.patch":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/patch`,"schedule.edit":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/update`,schedules:`/namespaces/${n==null?void 0:n.namespace}/schedules`,"search-attributes":`/namespaces/${n.namespace}/search-attributes`,settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,"task-queue.compatibility":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-build-id-compatibility`,"task-queue.rules":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-versioning-rules`,user:"/me","worker-task-reachability":`/namespaces/${n==null?void 0:n.namespace}/worker-task-reachability`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/terminate`,"workflow.cancel":`/namespaces/${n.namespace}/workflows/${n.workflowId}/cancel`,"workflow.signal":`/namespaces/${n.namespace}/workflows/${n.workflowId}/signal/${n.signalName}`,"workflow.reset":`/namespaces/${n.namespace}/workflows/${n.workflowId}/reset`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/archived-workflows`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.count":`/namespaces/${n==null?void 0:n.namespace}/workflow-count`,"activity.complete":`/namespaces/${n.namespace}/activities/complete-by-id`,"activity.fail":`/namespaces/${n.namespace}/activities/fail-by-id`,"batch-operations.list":`/namespaces/${n.namespace}/batch-operations`,"batch-operations":`/namespaces/${n.namespace}/batch-operations/${n==null?void 0:n.batchJobId}`};return K(s[c])}function un(c,n,i=!0){const s=G(c,n,i);return M(s,n==null?void 0:n.namespace)}export{ln as a,H as b,sn as c,I as d,T as e,J as g,S as h,on as i,N as n,G as p,un as r}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for.LRddn_DS.js b/ui/assets/local/_app/immutable/chunks/route-for.ezVRK9wE.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/route-for.LRddn_DS.js rename to ui/assets/local/_app/immutable/chunks/route-for.ezVRK9wE.js index abd236632..dc3309af8 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for.LRddn_DS.js +++ b/ui/assets/local/_app/immutable/chunks/route-for.ezVRK9wE.js @@ -1 +1 @@ -import{B as f}from"./prod-browser.6V4A_NcJ.js";import{b as o}from"./paths.0kQCowj0.js";import{e as c}from"./encode-uri.Mzeiosm2.js";const F=(r,t)=>{const e=t instanceof URLSearchParams;return t&&!e&&(t=new URLSearchParams(t)),t?`${r}?${t}`:r},g=()=>`${o}/namespaces`,u=({namespace:r})=>`${o}/namespaces/${r}`,k=()=>`${o}/select-namespace`,m=r=>`${u(r)}/workflows`,v=({namespace:r,query:t,page:e})=>F(m({namespace:r}),{query:t,...e&&{page:e}}),P=r=>`${u(r)}/archival`,s=({workflow:r,run:t,...e})=>{const n=c(r);return`${m(e)}/${n}/${t}`},$=r=>`${u(r)}/schedules`,S=({namespace:r})=>`${$({namespace:r})}/create`,U=({scheduleId:r,namespace:t})=>{const e=c(r);return`${$({namespace:t})}/${e}`},y=({scheduleId:r,namespace:t})=>{const e=c(r);return`${$({namespace:t})}/${e}/edit`},R=({queryParams:r,...t})=>{const e=`${s(t)}/history`;return F(`${e}`,r)},W=({eventId:r,...t})=>`${s(t)}/history/events/${r}`,E=({eventId:r,...t})=>`${s(t)}/history/event-groups/${r}`,L=r=>`${s(r)}/workers`,b=r=>`${s(r)}/relationships`,q=r=>{const t=c(r.queue);return`${u({namespace:r.namespace})}/task-queues/${t}`},B=r=>`${s(r)}/call-stack`,H=r=>`${s(r)}/query`,A=r=>`${s(r)}/metadata`,N=r=>`${s(r)}/pending-activities`,O=r=>{const{settings:t,searchParams:e,originUrl:n}=r,a=new URL(`${o}/auth/sso`,t.baseUrl);let i=t.auth.options??[];return i=[...i,"returnUrl"],i.forEach(h=>{if(!e)return;const l=e.get(h);l&&a.searchParams.set(h,l)}),!a.searchParams.get("returnUrl")&&n&&a.searchParams.set("returnUrl",n),a.toString()},Q=(r="",t=f)=>{if(t){const e=new URL(`${o}/login`,window.location.origin);return e.searchParams.set("returnUrl",window.location.href),r&&e.searchParams.set("error",r),e.toString()}return`${o}/login`},x=(r,t)=>r&&t?`${o}/import/events/${r}/workflow/run/history/${t}`:`${o}/import/events`,C=({namespace:r})=>`${o}/namespaces/${r}/batch-operations`,I=({namespace:r,jobId:t})=>`${o}/namespaces/${r}/batch-operations/${t}`;export{u as a,R as b,B as c,O as d,m as e,k as f,I as g,$ as h,U as i,Q as j,C as k,S as l,L as m,b as n,H as o,A as p,N as q,x as r,v as s,F as t,y as u,q as v,W as w,P as x,g as y,E as z}; +import{B as f}from"./prod-browser.6V4A_NcJ.js";import{b as o}from"./paths.Ow6cpyoT.js";import{e as c}from"./encode-uri.Mzeiosm2.js";const F=(r,t)=>{const e=t instanceof URLSearchParams;return t&&!e&&(t=new URLSearchParams(t)),t?`${r}?${t}`:r},g=()=>`${o}/namespaces`,u=({namespace:r})=>`${o}/namespaces/${r}`,k=()=>`${o}/select-namespace`,m=r=>`${u(r)}/workflows`,v=({namespace:r,query:t,page:e})=>F(m({namespace:r}),{query:t,...e&&{page:e}}),P=r=>`${u(r)}/archival`,s=({workflow:r,run:t,...e})=>{const n=c(r);return`${m(e)}/${n}/${t}`},$=r=>`${u(r)}/schedules`,S=({namespace:r})=>`${$({namespace:r})}/create`,U=({scheduleId:r,namespace:t})=>{const e=c(r);return`${$({namespace:t})}/${e}`},y=({scheduleId:r,namespace:t})=>{const e=c(r);return`${$({namespace:t})}/${e}/edit`},R=({queryParams:r,...t})=>{const e=`${s(t)}/history`;return F(`${e}`,r)},W=({eventId:r,...t})=>`${s(t)}/history/events/${r}`,E=({eventId:r,...t})=>`${s(t)}/history/event-groups/${r}`,L=r=>`${s(r)}/workers`,b=r=>`${s(r)}/relationships`,q=r=>{const t=c(r.queue);return`${u({namespace:r.namespace})}/task-queues/${t}`},B=r=>`${s(r)}/call-stack`,H=r=>`${s(r)}/query`,A=r=>`${s(r)}/metadata`,N=r=>`${s(r)}/pending-activities`,O=r=>{const{settings:t,searchParams:e,originUrl:n}=r,a=new URL(`${o}/auth/sso`,t.baseUrl);let i=t.auth.options??[];return i=[...i,"returnUrl"],i.forEach(h=>{if(!e)return;const l=e.get(h);l&&a.searchParams.set(h,l)}),!a.searchParams.get("returnUrl")&&n&&a.searchParams.set("returnUrl",n),a.toString()},Q=(r="",t=f)=>{if(t){const e=new URL(`${o}/login`,window.location.origin);return e.searchParams.set("returnUrl",window.location.href),r&&e.searchParams.set("error",r),e.toString()}return`${o}/login`},x=(r,t)=>r&&t?`${o}/import/events/${r}/workflow/run/history/${t}`:`${o}/import/events`,C=({namespace:r})=>`${o}/namespaces/${r}/batch-operations`,I=({namespace:r,jobId:t})=>`${o}/namespaces/${r}/batch-operations/${t}`;export{u as a,R as b,B as c,O as d,m as e,k as f,I as g,$ as h,U as i,Q as j,C as k,S as l,L as m,b as n,H as o,A as p,N as q,x as r,v as s,F as t,y as u,q as v,W as w,P as x,g as y,E as z}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-form-view.kun0m83N.js b/ui/assets/local/_app/immutable/chunks/schedule-form-view.HVYTgkEy.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/schedule-form-view.kun0m83N.js rename to ui/assets/local/_app/immutable/chunks/schedule-form-view.HVYTgkEy.js index aebb291b4..857b267f2 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-form-view.kun0m83N.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-form-view.HVYTgkEy.js @@ -1 +1 @@ -import{s as $e,p as Ct,z as st,e as B,b as U,d as R,g as p,E as ot,H as ze,k as q,u as Dt,q as Wt,r as Mt,D as ft,U as Ht,c as Ye,A as Pt,j as Y,l as b,y as et,t as ee,a as M,f as te,h as V,v as pe,L as Q,V as F,i as nt,x as ct,a4 as Lt,w as dt,n as Nt}from"./scheduler.AWtTlMeO.js";import{S as we,i as ke,t as $,b as I,g as De,e as We,c as T,a as H,m as P,d as L,f as K}from"./index.91lpp7Ff.js";import{p as Vt}from"./stores.BjeHb2_D.js";import{I as ye}from"./input.Oj66r1n-.js";import{T as At,a as qt,b as Bt,c as Ge}from"./tab.fhntVo9g.js";import{g as Ut}from"./spread.rEx3vLA9.js";import{t as J}from"./translate.HrioCK44.js";import{e as Ce}from"./each.QPLN4A2E.js";import{B as Qe}from"./button.J_9D2qip.js";import{m as ht,T as jt,b as tt,w as _t}from"./time-picker.WfS3p5z_.js";import{I as zt}from"./icon.hlu3-iXK.js";import{S as Qt,e as lt,l as Ft}from"./schedules.7ZX-HLZK.js";import{S as Kt,O as xe}from"./option.-xgiYgTD.js";import{A as Rt}from"./alert._GES0UbM.js";import{L as Jt}from"./link.cs7LzqaH.js";import{L as Gt}from"./loading.ZhwIBa5k.js";import{i as Xt,h as Yt}from"./route-for.LRddn_DS.js";import{w as mt}from"./write-actions-are-allowed.BsR296Mf.js";import{C as Zt}from"./code-block.PIA3laOL.js";import{L as xt}from"./label.2vZCl_WE.js";import{g as it}from"./encode-payload.fJnyVVKQ.js";import{P as en}from"./payload-decoder.NtOFwqeB.js";function tn(n){let e,t;const s=n[7].default,l=Ct(s,n,n[6],null);let a=[{id:n[0]},{"aria-labelledby":n[1]},{tabindex:"0"},{role:"tabpanel"},n[4]],f={};for(let i=0;it(5,f=_)),c(o),n.$$set=_=>{e=st(st({},e),Pt(_)),t(4,a=ft(e,l)),"id"in _&&t(0,o=_.id),"tabId"in _&&t(1,u=_.tabId),"$$scope"in _&&t(6,r=_.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&t(2,s=f===o)},[o,u,s,h,a,f,r,i]}class Xe extends we{constructor(e){super(),ke(this,e,nn,tn,$e,{id:0,tabId:1})}}function gt(n,e,t){const s=n.slice();s[4]=e[t];const l=s[0].includes(s[4]);return s[5]=l,s}function ln(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,a){q(l,t,a),q(l,s,a)},p:pe,d(l){l&&(p(t),p(s))}}}function pt(n){let e,t;function s(...l){return n[3](n[4],...l)}return e=new Qe({props:{variant:"secondary",class:n[5]&&"bg-interactive-secondary-active",$$slots:{default:[ln]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,a){P(e,l,a),t=!0},p(l,a){n=l;const f={};a&1&&(f.class=n[5]&&"bg-interactive-secondary-active"),a&256&&(f.$$scope={dirty:a,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function sn(n){let e,t,s,l=Ce(n[1]),a=[];for(let i=0;iI(a[i],1,1,()=>{a[i]=null});return{c(){e=B("div"),t=B("div");for(let i=0;ir+1);let{daysOfMonth:l}=e;const a=(i,r)=>{i.metaKey?l.includes(r)?l.filter(o=>o!==r):t(0,l=[...l,r]):t(0,l=[r])},f=(i,r)=>a(r,i);return n.$$set=i=>{"daysOfMonth"in i&&t(0,l=i.daysOfMonth)},[l,s,a,f]}class an extends we{constructor(e){super(),ke(this,e,un,sn,$e,{daysOfMonth:0})}}function vt(n,e,t){const s=n.slice();s[3]=e[t].label,s[4]=e[t].value;const l=s[0].includes(s[4]);return s[5]=l,s}function rn(n){let e=n[3]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,a){q(l,t,a),q(l,s,a)},p:pe,d(l){l&&(p(t),p(s))}}}function bt(n){let e,t;function s(...l){return n[2](n[4],...l)}return e=new Qe({props:{variant:"secondary",class:n[5]&&"bg-interactive-secondary-active",$$slots:{default:[rn]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,a){P(e,l,a),t=!0},p(l,a){n=l;const f={};a&1&&(f.class=n[5]&&"bg-interactive-secondary-active"),a&256&&(f.$$scope={dirty:a,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function on(n){let e,t,s=Ce(ht),l=[];for(let f=0;fI(l[f],1,1,()=>{l[f]=null});return{c(){e=B("div");for(let f=0;f{f.metaKey&&i!=="*"?(s.includes("*")&&t(0,s=s.filter(r=>r!=="*")),s.includes(i)?t(0,s=s.filter(r=>r!==i)):t(0,s=[...s,i])):t(0,s=[i])},a=(f,i)=>l(i,f);return n.$$set=f=>{"months"in f&&t(0,s=f.months)},[s,l,a]}class cn extends we{constructor(e){super(),ke(this,e,fn,on,$e,{months:0})}}function dn(n){let e,t,s=J("schedules.time-view-heading")+"",l,a,f,i=J("schedules.time-view-description")+"",r,o,u,c,h,_,d,g,y,v,O=J("common.based-on-time-preface")+"",X,j,w;function k(z){n[2](z)}function D(z){n[3](z)}let le={twelveHourClock:!1,includeSeconds:!1};return n[0]!==void 0&&(le.hour=n[0]),n[1]!==void 0&&(le.minute=n[1]),u=new jt({props:le}),Q.push(()=>K(u,"hour",k)),Q.push(()=>K(u,"minute",D)),g=new zt({props:{name:"clock","aria-hidden":"true"}}),{c(){e=B("div"),t=B("h3"),l=ee(s),a=M(),f=B("p"),r=ee(i),o=M(),T(u.$$.fragment),_=M(),d=B("div"),T(g.$$.fragment),y=M(),v=B("span"),X=ee(O),j=ee(" Universal Standard Time (UTC)"),this.h()},l(z){e=U(z,"DIV",{class:!0});var G=R(e);t=U(G,"H3",{class:!0});var Z=R(t);l=te(Z,s),Z.forEach(p),a=V(G),f=U(G,"P",{});var N=R(f);r=te(N,i),N.forEach(p),o=V(G),H(u.$$.fragment,G),_=V(G),d=U(G,"DIV",{class:!0});var W=R(d);H(g.$$.fragment,W),y=V(W),v=U(W,"SPAN",{class:!0});var ie=R(v);X=te(ie,O),j=te(ie," Universal Standard Time (UTC)"),ie.forEach(p),W.forEach(p),G.forEach(p),this.h()},h(){Y(t,"class","text-lg font-medium"),Y(v,"class","text-xs font-normal text-slate-500"),Y(d,"class","flex w-full flex-row items-center gap-2"),Y(e,"class","flex flex-col gap-4")},m(z,G){q(z,e,G),b(e,t),b(t,l),b(e,a),b(e,f),b(f,r),b(e,o),P(u,e,null),b(e,_),b(e,d),P(g,d,null),b(d,y),b(d,v),b(v,X),b(v,j),w=!0},p(z,[G]){const Z={};!c&&G&1&&(c=!0,Z.hour=z[0],F(()=>c=!1)),!h&&G&2&&(h=!0,Z.minute=z[1],F(()=>h=!1)),u.$set(Z)},i(z){w||($(u.$$.fragment,z),$(g.$$.fragment,z),w=!0)},o(z){I(u.$$.fragment,z),I(g.$$.fragment,z),w=!1},d(z){z&&p(e),L(u),L(g)}}}function hn(n,e,t){let{hour:s=""}=e,{minute:l=""}=e;function a(i){s=i,t(0,s)}function f(i){l=i,t(1,l)}return n.$$set=i=>{"hour"in i&&t(0,s=i.hour),"minute"in i&&t(1,l=i.minute)},[s,l,a,f]}class Tt extends we{constructor(e){super(),ke(this,e,hn,dn,$e,{hour:0,minute:1})}}function _n(n){let e,t,s=J("schedules.recurring-dates-heading")+"",l,a,f,i=J("schedules.recurring-dates-description")+"",r,o,u,c,h,_,d,g,y,v,O,X,j;function w(N){n[4](N)}let k={};n[0]!==void 0&&(k.daysOfMonth=n[0]),c=new an({props:k}),Q.push(()=>K(c,"daysOfMonth",w));function D(N){n[5](N)}let le={};n[1]!==void 0&&(le.months=n[1]),d=new cn({props:le}),Q.push(()=>K(d,"months",D));function z(N){n[6](N)}function G(N){n[7](N)}let Z={};return n[2]!==void 0&&(Z.hour=n[2]),n[3]!==void 0&&(Z.minute=n[3]),v=new Tt({props:Z}),Q.push(()=>K(v,"hour",z)),Q.push(()=>K(v,"minute",G)),{c(){e=B("div"),t=B("h3"),l=ee(s),a=M(),f=B("p"),r=ee(i),o=M(),u=B("div"),T(c.$$.fragment),_=M(),T(d.$$.fragment),y=M(),T(v.$$.fragment),this.h()},l(N){e=U(N,"DIV",{class:!0});var W=R(e);t=U(W,"H3",{class:!0});var ie=R(t);l=te(ie,s),ie.forEach(p),a=V(W),f=U(W,"P",{});var ue=R(f);r=te(ue,i),ue.forEach(p),o=V(W),u=U(W,"DIV",{class:!0});var ne=R(u);H(c.$$.fragment,ne),_=V(ne),H(d.$$.fragment,ne),ne.forEach(p),W.forEach(p),y=V(N),H(v.$$.fragment,N),this.h()},h(){Y(t,"class","text-lg font-medium"),Y(u,"class","flex w-full flex-col gap-4"),Y(e,"class","my-2 flex flex-col gap-4")},m(N,W){q(N,e,W),b(e,t),b(t,l),b(e,a),b(e,f),b(f,r),b(e,o),b(e,u),P(c,u,null),b(u,_),P(d,u,null),q(N,y,W),P(v,N,W),j=!0},p(N,[W]){const ie={};!h&&W&1&&(h=!0,ie.daysOfMonth=N[0],F(()=>h=!1)),c.$set(ie);const ue={};!g&&W&2&&(g=!0,ue.months=N[1],F(()=>g=!1)),d.$set(ue);const ne={};!O&&W&4&&(O=!0,ne.hour=N[2],F(()=>O=!1)),!X&&W&8&&(X=!0,ne.minute=N[3],F(()=>X=!1)),v.$set(ne)},i(N){j||($(c.$$.fragment,N),$(d.$$.fragment,N),$(v.$$.fragment,N),j=!0)},o(N){I(c.$$.fragment,N),I(d.$$.fragment,N),I(v.$$.fragment,N),j=!1},d(N){N&&(p(e),p(y)),L(c),L(d),L(v,N)}}}function mn(n,e,t){let{daysOfMonth:s}=e,{months:l}=e,{hour:a}=e,{minute:f}=e;function i(c){s=c,t(0,s)}function r(c){l=c,t(1,l)}function o(c){a=c,t(2,a)}function u(c){f=c,t(3,f)}return n.$$set=c=>{"daysOfMonth"in c&&t(0,s=c.daysOfMonth),"months"in c&&t(1,l=c.months),"hour"in c&&t(2,a=c.hour),"minute"in c&&t(3,f=c.minute)},[s,l,a,f,i,r,o,u]}class gn extends we{constructor(e){super(),ke(this,e,mn,_n,$e,{daysOfMonth:0,months:1,hour:2,minute:3})}}function $t(n,e,t){const s=n.slice();s[4]=e[t].label,s[5]=e[t].value;const l=s[0].includes(s[5]);return s[6]=l,s}function wt(n,e,t){const s=n.slice();s[4]=e[t].label,s[5]=e[t].value;const l=s[0].includes(s[5]);return s[6]=l,s}function pn(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,a){q(l,t,a),q(l,s,a)},p:pe,d(l){l&&(p(t),p(s))}}}function kt(n){let e,t;function s(...l){return n[2](n[5],...l)}return e=new Qe({props:{variant:"secondary",class:n[6]&&"bg-interactive-secondary-active",$$slots:{default:[pn]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,a){P(e,l,a),t=!0},p(l,a){n=l;const f={};a&1&&(f.class=n[6]&&"bg-interactive-secondary-active"),a&2048&&(f.$$scope={dirty:a,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function vn(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,a){q(l,t,a),q(l,s,a)},p:pe,d(l){l&&(p(t),p(s))}}}function yt(n){let e,t;function s(...l){return n[3](n[5],...l)}return e=new Qe({props:{variant:"secondary",class:n[6]&&"bg-interactive-secondary-active",$$slots:{default:[vn]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,a){P(e,l,a),t=!0},p(l,a){n=l;const f={};a&1&&(f.class=n[6]&&"bg-interactive-secondary-active"),a&2048&&(f.$$scope={dirty:a,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function bn(n){let e,t,s,l,a,f=Ce(tt),i=[];for(let h=0;hI(i[h],1,1,()=>{i[h]=null});let o=Ce(_t),u=[];for(let h=0;hI(u[h],1,1,()=>{u[h]=null});return{c(){e=B("div"),t=B("div");for(let h=0;h{i.metaKey?(tt.find(o=>o.value===r)?t(0,s=[r]):s.find(o=>tt.find(u=>u.value===o))&&t(0,s=[r]),s.includes(r)?s.filter(o=>o!==r):t(0,s=[...s,r])):t(0,s=[r])},a=(i,r)=>l(r,i),f=(i,r)=>l(r,i);return n.$$set=i=>{"daysOfWeek"in i&&t(0,s=i.daysOfWeek)},[s,l,a,f]}class wn extends we{constructor(e){super(),ke(this,e,$n,bn,$e,{daysOfWeek:0})}}function kn(n){let e,t,s=J("schedules.recurring-days-heading")+"",l,a,f,i=J("schedules.recurring-days-description")+"",r,o,u,c,h,_,d,g,y;function v(k){n[3](k)}let O={};n[0]!==void 0&&(O.daysOfWeek=n[0]),u=new wn({props:O}),Q.push(()=>K(u,"daysOfWeek",v));function X(k){n[4](k)}function j(k){n[5](k)}let w={};return n[1]!==void 0&&(w.hour=n[1]),n[2]!==void 0&&(w.minute=n[2]),_=new Tt({props:w}),Q.push(()=>K(_,"hour",X)),Q.push(()=>K(_,"minute",j)),{c(){e=B("div"),t=B("h3"),l=ee(s),a=M(),f=B("p"),r=ee(i),o=M(),T(u.$$.fragment),h=M(),T(_.$$.fragment),this.h()},l(k){e=U(k,"DIV",{class:!0});var D=R(e);t=U(D,"H3",{class:!0});var le=R(t);l=te(le,s),le.forEach(p),a=V(D),f=U(D,"P",{});var z=R(f);r=te(z,i),z.forEach(p),o=V(D),H(u.$$.fragment,D),D.forEach(p),h=V(k),H(_.$$.fragment,k),this.h()},h(){Y(t,"class","text-lg font-medium"),Y(e,"class","my-2 flex flex-col gap-4")},m(k,D){q(k,e,D),b(e,t),b(t,l),b(e,a),b(e,f),b(f,r),b(e,o),P(u,e,null),q(k,h,D),P(_,k,D),y=!0},p(k,[D]){const le={};!c&&D&1&&(c=!0,le.daysOfWeek=k[0],F(()=>c=!1)),u.$set(le);const z={};!d&&D&2&&(d=!0,z.hour=k[1],F(()=>d=!1)),!g&&D&4&&(g=!0,z.minute=k[2],F(()=>g=!1)),_.$set(z)},i(k){y||($(u.$$.fragment,k),$(_.$$.fragment,k),y=!0)},o(k){I(u.$$.fragment,k),I(_.$$.fragment,k),y=!1},d(k){k&&(p(e),p(h)),L(u),L(_,k)}}}function yn(n,e,t){let{daysOfWeek:s}=e,{hour:l}=e,{minute:a}=e;function f(o){s=o,t(0,s)}function i(o){l=o,t(1,l)}function r(o){a=o,t(2,a)}return n.$$set=o=>{"daysOfWeek"in o&&t(0,s=o.daysOfWeek),"hour"in o&&t(1,l=o.hour),"minute"in o&&t(2,a=o.minute)},[s,l,a,f,i,r]}class In extends we{constructor(e){super(),ke(this,e,yn,kn,$e,{daysOfWeek:0,hour:1,minute:2})}}function On(n){let e=J("common.days")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:pe,d(s){s&&p(t)}}}function En(n){let e=J("common.hours-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:pe,d(s){s&&p(t)}}}function Sn(n){let e=J("common.minutes-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:pe,d(s){s&&p(t)}}}function Cn(n){let e=J("common.seconds-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:pe,d(s){s&&p(t)}}}function Dn(n){let e,t,s,l,a,f,i,r;return e=new xe({props:{value:"days",$$slots:{default:[On]},$$scope:{ctx:n}}}),s=new xe({props:{value:"hrs",$$slots:{default:[En]},$$scope:{ctx:n}}}),a=new xe({props:{value:"min",$$slots:{default:[Sn]},$$scope:{ctx:n}}}),i=new xe({props:{value:"sec",$$slots:{default:[Cn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment),t=M(),T(s.$$.fragment),l=M(),T(a.$$.fragment),f=M(),T(i.$$.fragment)},l(o){H(e.$$.fragment,o),t=V(o),H(s.$$.fragment,o),l=V(o),H(a.$$.fragment,o),f=V(o),H(i.$$.fragment,o)},m(o,u){P(e,o,u),q(o,t,u),P(s,o,u),q(o,l,u),P(a,o,u),q(o,f,u),P(i,o,u),r=!0},p(o,u){const c={};u&16384&&(c.$$scope={dirty:u,ctx:o}),e.$set(c);const h={};u&16384&&(h.$$scope={dirty:u,ctx:o}),s.$set(h);const _={};u&16384&&(_.$$scope={dirty:u,ctx:o}),a.$set(_);const d={};u&16384&&(d.$$scope={dirty:u,ctx:o}),i.$set(d)},i(o){r||($(e.$$.fragment,o),$(s.$$.fragment,o),$(a.$$.fragment,o),$(i.$$.fragment,o),r=!0)},o(o){I(e.$$.fragment,o),I(s.$$.fragment,o),I(a.$$.fragment,o),I(i.$$.fragment,o),r=!1},d(o){o&&(p(t),p(l),p(f)),L(e,o),L(s,o),L(a,o),L(i,o)}}}function Wn(n){let e,t,s=J("schedules.interval-view-heading")+"",l,a,f,i=J("schedules.interval-view-description")+"",r,o,u,c,h,_,d,g=":",y,v,O,X,j,w=":",k,D,le,z,G,Z=":",N,W,ie,ue,ne,he=J("schedules.offset-heading")+"",fe,ce,re,E=J("schedules.offset-description")+"",me,_e,de,ae,Ie,Oe,ge,Ee,Se;function Me(C){n[8](C)}let Ve={id:"days",class:"w-28",label:J("common.days"),labelHidden:!0,placeholder:"000",suffix:J("common.days"),hideCount:!0,maxLength:3,error:n[7](n[0])};n[0]!==void 0&&(Ve.value=n[0]),c=new ye({props:Ve}),Q.push(()=>K(c,"value",Me));function Te(C){n[9](C)}let He={id:"hour-interval",class:"w-24",label:J("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.hours-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(He.value=n[1]),v=new ye({props:He}),Q.push(()=>K(v,"value",Te));function Fe(C){n[10](C)}let Pe={id:"minute-interval",class:"w-24",label:J("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.minutes-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(Pe.value=n[2]),D=new ye({props:Pe}),Q.push(()=>K(D,"value",Fe));function Ke(C){n[11](C)}let Le={id:"second",class:"w-24",label:J("common.seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.seconds-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(Le.value=n[3]),W=new ye({props:Le}),Q.push(()=>K(W,"value",Ke));function Re(C){n[12](C)}let Ne={id:"phase",class:"w-28",label:J("schedules.offset-heading"),labelHidden:!0,placeholder:"00",maxLength:3,hideCount:!0,error:n[7](n[4])};n[5]!==void 0&&(Ne.value=n[5]),ae=new ye({props:Ne}),Q.push(()=>K(ae,"value",Re));function Je(C){n[13](C)}let Ae={label:J("schedules.offset-unit"),labelHidden:!0,id:"phase-unit",$$slots:{default:[Dn]},$$scope:{ctx:n}};return n[6]!==void 0&&(Ae.value=n[6]),ge=new Kt({props:Ae}),Q.push(()=>K(ge,"value",Je)),{c(){e=B("div"),t=B("h3"),l=ee(s),a=M(),f=B("p"),r=ee(i),o=M(),u=B("div"),T(c.$$.fragment),_=M(),d=B("div"),d.textContent=g,y=M(),T(v.$$.fragment),X=M(),j=B("div"),j.textContent=w,k=M(),T(D.$$.fragment),z=M(),G=B("div"),G.textContent=Z,N=M(),T(W.$$.fragment),ue=M(),ne=B("h3"),fe=ee(he),ce=M(),re=B("p"),me=ee(E),_e=M(),de=B("div"),T(ae.$$.fragment),Oe=M(),T(ge.$$.fragment),this.h()},l(C){e=U(C,"DIV",{class:!0});var x=R(e);t=U(x,"H3",{class:!0});var S=R(t);l=te(S,s),S.forEach(p),a=V(x),f=U(x,"P",{});var oe=R(f);r=te(oe,i),oe.forEach(p),o=V(x),u=U(x,"DIV",{class:!0});var m=R(u);H(c.$$.fragment,m),_=V(m),d=U(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(d)!=="svelte-qa0xbj"&&(d.textContent=g),y=V(m),H(v.$$.fragment,m),X=V(m),j=U(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(j)!=="svelte-qa0xbj"&&(j.textContent=w),k=V(m),H(D.$$.fragment,m),z=V(m),G=U(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(G)!=="svelte-qa0xbj"&&(G.textContent=Z),N=V(m),H(W.$$.fragment,m),m.forEach(p),ue=V(x),ne=U(x,"H3",{class:!0});var A=R(ne);fe=te(A,he),A.forEach(p),ce=V(x),re=U(x,"P",{});var ve=R(re);me=te(ve,E),ve.forEach(p),_e=V(x),de=U(x,"DIV",{class:!0});var se=R(de);H(ae.$$.fragment,se),Oe=V(se),H(ge.$$.fragment,se),se.forEach(p),x.forEach(p),this.h()},h(){Y(t,"class","text-lg font-medium"),Y(d,"class","hidden lg:block"),Y(j,"class","hidden lg:block"),Y(G,"class","hidden lg:block"),Y(u,"class","flex flex-col items-center gap-2 lg:flex-row"),Y(ne,"class","mt-4 text-lg font-medium"),Y(de,"class","flex w-48 gap-2"),Y(e,"class","my-2 flex flex-col gap-4")},m(C,x){q(C,e,x),b(e,t),b(t,l),b(e,a),b(e,f),b(f,r),b(e,o),b(e,u),P(c,u,null),b(u,_),b(u,d),b(u,y),P(v,u,null),b(u,X),b(u,j),b(u,k),P(D,u,null),b(u,z),b(u,G),b(u,N),P(W,u,null),b(e,ue),b(e,ne),b(ne,fe),b(e,ce),b(e,re),b(re,me),b(e,_e),b(e,de),P(ae,de,null),b(de,Oe),P(ge,de,null),Se=!0},p(C,[x]){const S={};x&1&&(S.error=C[7](C[0])),!h&&x&1&&(h=!0,S.value=C[0],F(()=>h=!1)),c.$set(S);const oe={};x&2&&(oe.error=C[7](C[1])),!O&&x&2&&(O=!0,oe.value=C[1],F(()=>O=!1)),v.$set(oe);const m={};x&4&&(m.error=C[7](C[2])),!le&&x&4&&(le=!0,m.value=C[2],F(()=>le=!1)),D.$set(m);const A={};x&8&&(A.error=C[7](C[3])),!ie&&x&8&&(ie=!0,A.value=C[3],F(()=>ie=!1)),W.$set(A);const ve={};x&16&&(ve.error=C[7](C[4])),!Ie&&x&32&&(Ie=!0,ve.value=C[5],F(()=>Ie=!1)),ae.$set(ve);const se={};x&16384&&(se.$$scope={dirty:x,ctx:C}),!Ee&&x&64&&(Ee=!0,se.value=C[6],F(()=>Ee=!1)),ge.$set(se)},i(C){Se||($(c.$$.fragment,C),$(v.$$.fragment,C),$(D.$$.fragment,C),$(W.$$.fragment,C),$(ae.$$.fragment,C),$(ge.$$.fragment,C),Se=!0)},o(C){I(c.$$.fragment,C),I(v.$$.fragment,C),I(D.$$.fragment,C),I(W.$$.fragment,C),I(ae.$$.fragment,C),I(ge.$$.fragment,C),Se=!1},d(C){C&&p(e),L(c),L(v),L(D),L(W),L(ae),L(ge)}}}function Mn(n,e,t){let{days:s=""}=e,{hour:l=""}=e,{minute:a=""}=e,{second:f=""}=e,{phase:i=""}=e,r="",o="min";const u=v=>v?isNaN(parseInt(v)):!1;function c(v){s=v,t(0,s)}function h(v){l=v,t(1,l)}function _(v){a=v,t(2,a)}function d(v){f=v,t(3,f)}function g(v){r=v,t(5,r)}function y(v){o=v,t(6,o)}return n.$$set=v=>{"days"in v&&t(0,s=v.days),"hour"in v&&t(1,l=v.hour),"minute"in v&&t(2,a=v.minute),"second"in v&&t(3,f=v.second),"phase"in v&&t(4,i=v.phase)},n.$$.update=()=>{n.$$.dirty&96&&r&&(o==="days"?t(4,i=(parseInt(r)*60*60*24).toString()+"s"):o==="hrs"?t(4,i=(parseInt(r)*60*60).toString()+"s"):o==="min"?t(4,i=(parseInt(r)*60).toString()+"s"):o==="sec"&&t(4,i=parseInt(r).toString()+"s"))},[s,l,a,f,i,r,o,u,c,h,_,d,g,y]}class Vn extends we{constructor(e){super(),ke(this,e,Mn,Wn,$e,{days:0,hour:1,minute:2,second:3,phase:4})}}const Tn=n=>({preset:n[0]&1024}),It=n=>({preset:n[10]});function Ot(n){let e,t;return e=new Ge({props:{label:"Existing",id:"existing-tab",panelId:"existing-panel",onClick:n[12]}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const a={};l[0]&1024&&(a.onClick=s[12]),e.$set(a)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Hn(n){let e,t,s,l,a,f,i,r,o,u=n[9]&&Ot(n);return t=new Ge({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:n[13]}}),l=new Ge({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:n[14]}}),f=new Ge({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:n[15]}}),r=new Ge({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:n[16]}}),{c(){u&&u.c(),e=M(),T(t.$$.fragment),s=M(),T(l.$$.fragment),a=M(),T(f.$$.fragment),i=M(),T(r.$$.fragment)},l(c){u&&u.l(c),e=V(c),H(t.$$.fragment,c),s=V(c),H(l.$$.fragment,c),a=V(c),H(f.$$.fragment,c),i=V(c),H(r.$$.fragment,c)},m(c,h){u&&u.m(c,h),q(c,e,h),P(t,c,h),q(c,s,h),P(l,c,h),q(c,a,h),P(f,c,h),q(c,i,h),P(r,c,h),o=!0},p(c,h){c[9]?u?(u.p(c,h),h[0]&512&&$(u,1)):(u=Ot(c),u.c(),$(u,1),u.m(e.parentNode,e)):u&&(De(),I(u,1,1,()=>{u=null}),We());const _={};h[0]&1024&&(_.onClick=c[13]),t.$set(_);const d={};h[0]&1024&&(d.onClick=c[14]),l.$set(d);const g={};h[0]&1024&&(g.onClick=c[15]),f.$set(g);const y={};h[0]&1024&&(y.onClick=c[16]),r.$set(y)},i(c){o||($(u),$(t.$$.fragment,c),$(l.$$.fragment,c),$(f.$$.fragment,c),$(r.$$.fragment,c),o=!0)},o(c){I(u),I(t.$$.fragment,c),I(l.$$.fragment,c),I(f.$$.fragment,c),I(r.$$.fragment,c),o=!1},d(c){c&&(p(e),p(s),p(a),p(i)),u&&u.d(c),L(t,c),L(l,c),L(f,c),L(r,c)}}}function Et(n){let e,t;return e=new Xe({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[Pn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const a={};l[0]&1073742336&&(a.$$scope={dirty:l,ctx:s}),e.$set(a)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Pn(n){var s,l,a,f,i,r,o,u;let e,t;return e=new Qt({props:{calendar:(a=(l=(s=n[9])==null?void 0:s.spec)==null?void 0:l.structuredCalendar)==null?void 0:a[0],interval:(r=(i=(f=n[9])==null?void 0:f.spec)==null?void 0:i.interval)==null?void 0:r[0],timezoneName:(u=(o=n[9])==null?void 0:o.spec)==null?void 0:u.timezoneName}}),{c(){T(e.$$.fragment)},l(c){H(e.$$.fragment,c)},m(c,h){P(e,c,h),t=!0},p(c,h){var d,g,y,v,O,X,j,w;const _={};h[0]&512&&(_.calendar=(y=(g=(d=c[9])==null?void 0:d.spec)==null?void 0:g.structuredCalendar)==null?void 0:y[0]),h[0]&512&&(_.interval=(X=(O=(v=c[9])==null?void 0:v.spec)==null?void 0:O.interval)==null?void 0:X[0]),h[0]&512&&(_.timezoneName=(w=(j=c[9])==null?void 0:j.spec)==null?void 0:w.timezoneName),e.$set(_)},i(c){t||($(e.$$.fragment,c),t=!0)},o(c){I(e.$$.fragment,c),t=!1},d(c){L(e,c)}}}function Ln(n){let e,t,s,l,a,f,i;function r(d){n[17](d)}function o(d){n[18](d)}function u(d){n[19](d)}function c(d){n[20](d)}function h(d){n[21](d)}let _={};return n[3]!==void 0&&(_.days=n[3]),n[4]!==void 0&&(_.hour=n[4]),n[5]!==void 0&&(_.minute=n[5]),n[6]!==void 0&&(_.second=n[6]),n[7]!==void 0&&(_.phase=n[7]),e=new Vn({props:_}),Q.push(()=>K(e,"days",r)),Q.push(()=>K(e,"hour",o)),Q.push(()=>K(e,"minute",u)),Q.push(()=>K(e,"second",c)),Q.push(()=>K(e,"phase",h)),{c(){T(e.$$.fragment)},l(d){H(e.$$.fragment,d)},m(d,g){P(e,d,g),i=!0},p(d,g){const y={};!t&&g[0]&8&&(t=!0,y.days=d[3],F(()=>t=!1)),!s&&g[0]&16&&(s=!0,y.hour=d[4],F(()=>s=!1)),!l&&g[0]&32&&(l=!0,y.minute=d[5],F(()=>l=!1)),!a&&g[0]&64&&(a=!0,y.second=d[6],F(()=>a=!1)),!f&&g[0]&128&&(f=!0,y.phase=d[7],F(()=>f=!1)),e.$set(y)},i(d){i||($(e.$$.fragment,d),i=!0)},o(d){I(e.$$.fragment,d),i=!1},d(d){L(e,d)}}}function Nn(n){let e,t,s,l,a;function f(u){n[22](u)}function i(u){n[23](u)}function r(u){n[24](u)}let o={};return n[0]!==void 0&&(o.daysOfWeek=n[0]),n[4]!==void 0&&(o.hour=n[4]),n[5]!==void 0&&(o.minute=n[5]),e=new In({props:o}),Q.push(()=>K(e,"daysOfWeek",f)),Q.push(()=>K(e,"hour",i)),Q.push(()=>K(e,"minute",r)),{c(){T(e.$$.fragment)},l(u){H(e.$$.fragment,u)},m(u,c){P(e,u,c),a=!0},p(u,c){const h={};!t&&c[0]&1&&(t=!0,h.daysOfWeek=u[0],F(()=>t=!1)),!s&&c[0]&16&&(s=!0,h.hour=u[4],F(()=>s=!1)),!l&&c[0]&32&&(l=!0,h.minute=u[5],F(()=>l=!1)),e.$set(h)},i(u){a||($(e.$$.fragment,u),a=!0)},o(u){I(e.$$.fragment,u),a=!1},d(u){L(e,u)}}}function An(n){let e,t,s,l,a,f;function i(h){n[25](h)}function r(h){n[26](h)}function o(h){n[27](h)}function u(h){n[28](h)}let c={};return n[1]!==void 0&&(c.daysOfMonth=n[1]),n[2]!==void 0&&(c.months=n[2]),n[4]!==void 0&&(c.hour=n[4]),n[5]!==void 0&&(c.minute=n[5]),e=new gn({props:c}),Q.push(()=>K(e,"daysOfMonth",i)),Q.push(()=>K(e,"months",r)),Q.push(()=>K(e,"hour",o)),Q.push(()=>K(e,"minute",u)),{c(){T(e.$$.fragment)},l(h){H(e.$$.fragment,h)},m(h,_){P(e,h,_),f=!0},p(h,_){const d={};!t&&_[0]&2&&(t=!0,d.daysOfMonth=h[1],F(()=>t=!1)),!s&&_[0]&4&&(s=!0,d.months=h[2],F(()=>s=!1)),!l&&_[0]&16&&(l=!0,d.hour=h[4],F(()=>l=!1)),!a&&_[0]&32&&(a=!0,d.minute=h[5],F(()=>a=!1)),e.$set(d)},i(h){f||($(e.$$.fragment,h),f=!0)},o(h){I(e.$$.fragment,h),f=!1},d(h){L(e,h)}}}function qn(n){let e,t,s=J("schedules.cron-view-title")+"",l,a,f,i=J("schedules.cron-view-description")+"",r,o,u,c,h;function _(g){n[29](g)}let d={label:J("schedules.cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return n[8]!==void 0&&(d.value=n[8]),u=new ye({props:d}),Q.push(()=>K(u,"value",_)),{c(){e=B("div"),t=B("h3"),l=ee(s),a=M(),f=B("p"),r=ee(i),o=M(),T(u.$$.fragment),this.h()},l(g){e=U(g,"DIV",{class:!0});var y=R(e);t=U(y,"H3",{class:!0});var v=R(t);l=te(v,s),v.forEach(p),a=V(y),f=U(y,"P",{});var O=R(f);r=te(O,i),O.forEach(p),o=V(y),H(u.$$.fragment,y),y.forEach(p),this.h()},h(){Y(t,"class","text-lg font-medium"),Y(e,"class","my-2 flex w-full flex-col gap-4")},m(g,y){q(g,e,y),b(e,t),b(t,l),b(e,a),b(e,f),b(f,r),b(e,o),P(u,e,null),h=!0},p(g,y){const v={};!c&&y[0]&256&&(c=!0,v.value=g[8],F(()=>c=!1)),u.$set(v)},i(g){h||($(u.$$.fragment,g),h=!0)},o(g){I(u.$$.fragment,g),h=!1},d(g){g&&p(e),L(u)}}}function Bn(n){let e,t=J("schedules.schedule-spec")+"",s,l,a,f,i,r,o,u,c,h,_,d,g,y,v;a=new Bt({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[Hn]},$$scope:{ctx:n}}});let O=n[9]&&Et(n);o=new Xe({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[Ln]},$$scope:{ctx:n}}}),c=new Xe({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[Nn]},$$scope:{ctx:n}}}),_=new Xe({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[An]},$$scope:{ctx:n}}}),g=new Xe({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[qn]},$$scope:{ctx:n}}});const X=n[11].default,j=Ct(X,n,n[30],It);return{c(){e=B("h2"),s=ee(t),l=M(),T(a.$$.fragment),f=M(),i=B("div"),O&&O.c(),r=M(),T(o.$$.fragment),u=M(),T(c.$$.fragment),h=M(),T(_.$$.fragment),d=M(),T(g.$$.fragment),y=M(),j&&j.c(),this.h()},l(w){e=U(w,"H2",{class:!0});var k=R(e);s=te(k,t),k.forEach(p),l=V(w),H(a.$$.fragment,w),f=V(w),i=U(w,"DIV",{class:!0});var D=R(i);O&&O.l(D),r=V(D),H(o.$$.fragment,D),u=V(D),H(c.$$.fragment,D),h=V(D),H(_.$$.fragment,D),d=V(D),H(g.$$.fragment,D),D.forEach(p),y=V(w),j&&j.l(w),this.h()},h(){Y(e,"class","mb-4 text-lg"),Y(i,"class","mt-4 flex w-full flex-wrap gap-6")},m(w,k){q(w,e,k),b(e,s),q(w,l,k),P(a,w,k),q(w,f,k),q(w,i,k),O&&O.m(i,null),b(i,r),P(o,i,null),b(i,u),P(c,i,null),b(i,h),P(_,i,null),b(i,d),P(g,i,null),q(w,y,k),j&&j.m(w,k),v=!0},p(w,k){const D={};k[0]&1073743360&&(D.$$scope={dirty:k,ctx:w}),a.$set(D),w[9]?O?(O.p(w,k),k[0]&512&&$(O,1)):(O=Et(w),O.c(),$(O,1),O.m(i,r)):O&&(De(),I(O,1,1,()=>{O=null}),We());const le={};k[0]&1073742072&&(le.$$scope={dirty:k,ctx:w}),o.$set(le);const z={};k[0]&1073741873&&(z.$$scope={dirty:k,ctx:w}),c.$set(z);const G={};k[0]&1073741878&&(G.$$scope={dirty:k,ctx:w}),_.$set(G);const Z={};k[0]&1073742080&&(Z.$$scope={dirty:k,ctx:w}),g.$set(Z),j&&j.p&&(!v||k[0]&1073742848)&&Dt(j,X,w,w[30],v?Mt(X,w[30],k,Tn):Wt(w[30]),It)},i(w){v||($(a.$$.fragment,w),$(O),$(o.$$.fragment,w),$(c.$$.fragment,w),$(_.$$.fragment,w),$(g.$$.fragment,w),$(j,w),v=!0)},o(w){I(a.$$.fragment,w),I(O),I(o.$$.fragment,w),I(c.$$.fragment,w),I(_.$$.fragment,w),I(g.$$.fragment,w),I(j,w),v=!1},d(w){w&&(p(e),p(l),p(f),p(i),p(y)),L(a,w),O&&O.d(),L(o),L(c),L(_),L(g),j&&j.d(w)}}}function Un(n){let e,t;return e=new qt({props:{class:"mt-8 w-full",$$slots:{default:[Bn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const a={};l[0]&1073743871&&(a.$$scope={dirty:l,ctx:s}),e.$set(a)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function jn(n,e,t){let s;Ye(n,Vt,E=>t(31,s=E));let{$$slots:l={},$$scope:a}=e,i=s.params.schedule?"existing":"interval",{schedule:r=null}=e,{daysOfWeek:o}=e,{daysOfMonth:u}=e,{months:c}=e,{days:h}=e,{hour:_}=e,{minute:d}=e,{second:g}=e,{phase:y}=e,{cronString:v}=e;const O=()=>{t(0,o=[]),t(1,u=[]),t(2,c=[]),t(3,h=""),t(4,_=""),t(5,d=""),t(6,g=""),t(7,y=""),t(8,v="")},X=()=>t(10,i="existing"),j=()=>t(10,i="interval"),w=()=>t(10,i="week"),k=()=>t(10,i="month"),D=()=>t(10,i="string");function le(E){h=E,t(3,h)}function z(E){_=E,t(4,_)}function G(E){d=E,t(5,d)}function Z(E){g=E,t(6,g)}function N(E){y=E,t(7,y)}function W(E){o=E,t(0,o)}function ie(E){_=E,t(4,_)}function ue(E){d=E,t(5,d)}function ne(E){u=E,t(1,u)}function he(E){c=E,t(2,c)}function fe(E){_=E,t(4,_)}function ce(E){d=E,t(5,d)}function re(E){v=E,t(8,v)}return n.$$set=E=>{"schedule"in E&&t(9,r=E.schedule),"daysOfWeek"in E&&t(0,o=E.daysOfWeek),"daysOfMonth"in E&&t(1,u=E.daysOfMonth),"months"in E&&t(2,c=E.months),"days"in E&&t(3,h=E.days),"hour"in E&&t(4,_=E.hour),"minute"in E&&t(5,d=E.minute),"second"in E&&t(6,g=E.second),"phase"in E&&t(7,y=E.phase),"cronString"in E&&t(8,v=E.cronString),"$$scope"in E&&t(30,a=E.$$scope)},O(),[o,u,c,h,_,d,g,y,v,r,i,l,X,j,w,k,D,le,z,G,Z,N,W,ie,ue,ne,he,fe,ce,re,a]}class zn extends we{constructor(e){super(),ke(this,e,jn,Un,$e,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function St(n){let e,t;return e=new Zt({props:{id:"schedule-input",maxHeight:320,content:it(n[5]),editable:!0,copyable:!1}}),e.$on("change",n[2]),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const a={};l&32&&(a.content=it(s[5])),e.$set(a)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Qn(n){let e=n[5],t,s,l=St(n);return{c(){l.c(),t=ct()},l(a){l.l(a),t=ct()},m(a,f){l.m(a,f),q(a,t,f),s=!0},p(a,f){f&32&&$e(e,e=a[5])?(De(),I(l,1,1,pe),We(),l=St(a),l.c(),$(l,1),l.m(t.parentNode,t)):l.p(a,f)},i(a){s||($(l),s=!0)},o(a){I(l),s=!1},d(a){a&&p(t),l.d(a)}}}function Fn(n){let e,t,s,l,a,f,i=J("workflows.signal-payload-input-label-hint")+"",r,o;return t=new xt({props:{for:"schedule-input",label:J("workflows.input")}}),l=new en({props:{value:n[0],key:"payloads",onDecode:n[3],$$slots:{default:[Qn,({decodedValue:u})=>({5:u}),({decodedValue:u})=>u?32:0]},$$scope:{ctx:n}}}),{c(){e=B("div"),T(t.$$.fragment),s=M(),T(l.$$.fragment),a=M(),f=B("span"),r=ee(i),this.h()},l(u){e=U(u,"DIV",{class:!0});var c=R(e);H(t.$$.fragment,c),s=V(c),H(l.$$.fragment,c),a=V(c),f=U(c,"SPAN",{class:!0});var h=R(f);r=te(h,i),h.forEach(p),c.forEach(p),this.h()},h(){Y(f,"class","font-secondary text-xs font-light italic"),ze(f,"text-red-700",n[1]),Y(e,"class","flex flex-col gap-4")},m(u,c){q(u,e,c),P(t,e,null),b(e,s),P(l,e,null),b(e,a),b(e,f),b(f,r),o=!0},p(u,[c]){const h={};c&1&&(h.value=u[0]),c&96&&(h.$$scope={dirty:c,ctx:u}),l.$set(h),(!o||c&2)&&ze(f,"text-red-700",u[1])},i(u){o||($(t.$$.fragment,u),$(l.$$.fragment,u),o=!0)},o(u){I(t.$$.fragment,u),I(l.$$.fragment,u),o=!1},d(u){u&&p(e),L(t),L(l)}}}function Kn(n,e,t){let{input:s}=e,{payloads:l}=e,{error:a=!1}=e;const f=r=>{t(4,s=r.detail)},i=r=>{t(4,s=it(r))};return n.$$set=r=>{"input"in r&&t(4,s=r.input),"payloads"in r&&t(0,l=r.payloads),"error"in r&&t(1,a=r.error)},[l,a,f,i,s]}class Rn extends we{constructor(e){super(),ke(this,e,Kn,Fn,$e,{input:4,payloads:0,error:1})}}function Jn(n){var x,S,oe;let e,t,s,l,a,f,i,r,o,u,c,h,_,d,g,y,v,O,X,j,w,k,D,le,z,G,Z,N,W,ie,ue,ne,he,fe,ce,re,E,me,_e;t=new Jt({props:{href:n[23],icon:"chevron-left",$$slots:{default:[Xn]},$$scope:{ctx:n}}}),r=new Rt({props:{intent:"error",title:"",hidden:!n[17],bold:!0,$$slots:{default:[Yn]},$$scope:{ctx:n}}});function de(m){n[29](m)}let ae={id:"name",label:J("schedules.name-label"),error:n[14].name,maxLength:232,disabled:!!n[19]};n[1]!==void 0&&(ae.value=n[1]),c=new ye({props:ae}),Q.push(()=>K(c,"value",de)),c.$on("input",n[26]),c.$on("blur",n[27]);function Ie(m){n[30](m)}let Oe={id:"workflowType",label:J("schedules.workflow-type-label"),error:n[14].workflowType};n[2]!==void 0&&(Oe.value=n[2]),g=new ye({props:Oe}),Q.push(()=>K(g,"value",Ie)),g.$on("input",n[26]),g.$on("blur",n[27]);function ge(m){n[31](m)}let Ee={id:"workflowId",label:J("schedules.workflow-id-label"),error:n[14].workflowId};n[3]!==void 0&&(Ee.value=n[3]),X=new ye({props:Ee}),Q.push(()=>K(X,"value",ge)),X.$on("input",n[26]),X.$on("blur",n[27]);function Se(m){n[32](m)}let Me={id:"taskQueue",label:J("schedules.task-queue-label"),error:n[14].taskQueue};n[4]!==void 0&&(Me.value=n[4]),D=new ye({props:Me}),Q.push(()=>K(D,"value",Se)),D.$on("input",n[26]),D.$on("blur",n[27]);function Ve(m){n[33](m)}let Te={payloads:(oe=(S=(x=n[0])==null?void 0:x.action)==null?void 0:S.startWorkflow)==null?void 0:oe.input,error:n[14].input};n[5]!==void 0&&(Te.input=n[5]),G=new Rn({props:Te}),Q.push(()=>K(G,"input",Ve));function He(m){n[35](m)}function Fe(m){n[36](m)}function Pe(m){n[37](m)}function Ke(m){n[38](m)}function Le(m){n[39](m)}function Re(m){n[40](m)}function Ne(m){n[41](m)}function Je(m){n[42](m)}function Ae(m){n[43](m)}let C={schedule:n[0],$$slots:{default:[el,({preset:m})=>({58:m}),({preset:m})=>[0,m?134217728:0]]},$$scope:{ctx:n}};return n[6]!==void 0&&(C.daysOfWeek=n[6]),n[7]!==void 0&&(C.daysOfMonth=n[7]),n[8]!==void 0&&(C.months=n[8]),n[9]!==void 0&&(C.days=n[9]),n[10]!==void 0&&(C.hour=n[10]),n[11]!==void 0&&(C.minute=n[11]),n[12]!==void 0&&(C.second=n[12]),n[15]!==void 0&&(C.phase=n[15]),n[13]!==void 0&&(C.cronString=n[13]),W=new zn({props:C}),Q.push(()=>K(W,"daysOfWeek",He)),Q.push(()=>K(W,"daysOfMonth",Fe)),Q.push(()=>K(W,"months",Pe)),Q.push(()=>K(W,"days",Ke)),Q.push(()=>K(W,"hour",Le)),Q.push(()=>K(W,"minute",Re)),Q.push(()=>K(W,"second",Ne)),Q.push(()=>K(W,"phase",Je)),Q.push(()=>K(W,"cronString",Ae)),{c(){e=B("header"),T(t.$$.fragment),s=M(),l=B("h1"),a=ee(n[20]),f=M(),i=B("form"),T(r.$$.fragment),o=M(),u=B("div"),T(c.$$.fragment),_=M(),d=B("div"),T(g.$$.fragment),v=M(),O=B("div"),T(X.$$.fragment),w=M(),k=B("div"),T(D.$$.fragment),z=M(),T(G.$$.fragment),N=M(),T(W.$$.fragment),this.h()},l(m){e=U(m,"HEADER",{class:!0});var A=R(e);H(t.$$.fragment,A),s=V(A),l=U(A,"H1",{class:!0});var ve=R(l);a=te(ve,n[20]),ve.forEach(p),A.forEach(p),f=V(m),i=U(m,"FORM",{class:!0});var se=R(i);H(r.$$.fragment,se),o=V(se),u=U(se,"DIV",{class:!0});var qe=R(u);H(c.$$.fragment,qe),qe.forEach(p),_=V(se),d=U(se,"DIV",{class:!0});var Be=R(d);H(g.$$.fragment,Be),Be.forEach(p),v=V(se),O=U(se,"DIV",{class:!0});var Ue=R(O);H(X.$$.fragment,Ue),Ue.forEach(p),w=V(se),k=U(se,"DIV",{class:!0});var je=R(k);H(D.$$.fragment,je),je.forEach(p),z=V(se),H(G.$$.fragment,se),N=V(se),H(W.$$.fragment,se),se.forEach(p),this.h()},h(){Y(l,"class","font-base text-2xl"),Y(e,"class","mb-12 flex flex-col gap-4"),Y(u,"class","w-full"),Y(d,"class","w-full"),Y(O,"class","w-full"),Y(k,"class","w-full"),Y(i,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(m,A){q(m,e,A),P(t,e,null),b(e,s),b(e,l),b(l,a),q(m,f,A),q(m,i,A),P(r,i,null),b(i,o),b(i,u),P(c,u,null),b(i,_),b(i,d),P(g,d,null),b(i,v),b(i,O),P(X,O,null),b(i,w),b(i,k),P(D,k,null),b(i,z),P(G,i,null),b(i,N),P(W,i,null),_e=!0},p(m,A){var ut,at,rt;const ve={};A[1]&268435456&&(ve.$$scope={dirty:A,ctx:m}),t.$set(ve);const se={};A[0]&131072&&(se.hidden=!m[17]),A[0]&131072|A[1]&268435456&&(se.$$scope={dirty:A,ctx:m}),r.$set(se);const qe={};A[0]&16384&&(qe.error=m[14].name),!h&&A[0]&2&&(h=!0,qe.value=m[1],F(()=>h=!1)),c.$set(qe);const Be={};A[0]&16384&&(Be.error=m[14].workflowType),!y&&A[0]&4&&(y=!0,Be.value=m[2],F(()=>y=!1)),g.$set(Be);const Ue={};A[0]&16384&&(Ue.error=m[14].workflowId),!j&&A[0]&8&&(j=!0,Ue.value=m[3],F(()=>j=!1)),X.$set(Ue);const je={};A[0]&16384&&(je.error=m[14].taskQueue),!le&&A[0]&16&&(le=!0,je.value=m[4],F(()=>le=!1)),D.$set(je);const Ze={};A[0]&1&&(Ze.payloads=(rt=(at=(ut=m[0])==null?void 0:ut.action)==null?void 0:at.startWorkflow)==null?void 0:rt.input),A[0]&16384&&(Ze.error=m[14].input),!Z&&A[0]&32&&(Z=!0,Ze.input=m[5],F(()=>Z=!1)),G.$set(Ze);const be={};A[0]&1&&(be.schedule=m[0]),A[0]&65537|A[1]&402653184&&(be.$$scope={dirty:A,ctx:m}),!ie&&A[0]&64&&(ie=!0,be.daysOfWeek=m[6],F(()=>ie=!1)),!ue&&A[0]&128&&(ue=!0,be.daysOfMonth=m[7],F(()=>ue=!1)),!ne&&A[0]&256&&(ne=!0,be.months=m[8],F(()=>ne=!1)),!he&&A[0]&512&&(he=!0,be.days=m[9],F(()=>he=!1)),!fe&&A[0]&1024&&(fe=!0,be.hour=m[10],F(()=>fe=!1)),!ce&&A[0]&2048&&(ce=!0,be.minute=m[11],F(()=>ce=!1)),!re&&A[0]&4096&&(re=!0,be.second=m[12],F(()=>re=!1)),!E&&A[0]&32768&&(E=!0,be.phase=m[15],F(()=>E=!1)),!me&&A[0]&8192&&(me=!0,be.cronString=m[13],F(()=>me=!1)),W.$set(be)},i(m){_e||($(t.$$.fragment,m),$(r.$$.fragment,m),$(c.$$.fragment,m),$(g.$$.fragment,m),$(X.$$.fragment,m),$(D.$$.fragment,m),$(G.$$.fragment,m),$(W.$$.fragment,m),_e=!0)},o(m){I(t.$$.fragment,m),I(r.$$.fragment,m),I(c.$$.fragment,m),I(g.$$.fragment,m),I(X.$$.fragment,m),I(D.$$.fragment,m),I(G.$$.fragment,m),I(W.$$.fragment,m),_e=!1},d(m){m&&(p(e),p(f),p(i)),L(t),L(r),L(c),L(g),L(X),L(D),L(G),L(W)}}}function Gn(n){let e,t;return e=new Gt({props:{title:n[21]}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p:pe,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Xn(n){let e;return{c(){e=ee(n[22])},l(t){e=te(t,n[22])},m(t,s){q(t,e,s)},p:pe,d(t){t&&p(e)}}}function Yn(n){let e;return{c(){e=ee(n[17])},l(t){e=te(t,n[17])},m(t,s){q(t,e,s)},p(t,s){s[0]&131072&&Nt(e,t[17])},d(t){t&&p(e)}}}function Zn(n){let e;return{c(){e=ee(n[24])},l(t){e=te(t,n[24])},m(t,s){q(t,e,s)},p:pe,d(t){t&&p(e)}}}function xn(n){let e=J("common.cancel")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:pe,d(s){s&&p(t)}}}function el(n){let e,t,s,l,a;function f(){return n[34](n[58])}return t=new Qe({props:{disabled:n[16](n[58])||!mt(),$$slots:{default:[Zn]},$$scope:{ctx:n}}}),t.$on("click",f),l=new Qe({props:{variant:"ghost",href:n[23],$$slots:{default:[xn]},$$scope:{ctx:n}}}),{c(){e=B("div"),T(t.$$.fragment),s=M(),T(l.$$.fragment),this.h()},l(i){e=U(i,"DIV",{class:!0});var r=R(e);H(t.$$.fragment,r),s=V(r),H(l.$$.fragment,r),r.forEach(p),this.h()},h(){Y(e,"class","mt-8 flex items-center gap-2")},m(i,r){q(i,e,r),P(t,e,null),b(e,s),P(l,e,null),a=!0},p(i,r){n=i;const o={};r[0]&65536|r[1]&134217728&&(o.disabled=n[16](n[58])||!mt()),r[1]&268435456&&(o.$$scope={dirty:r,ctx:n}),t.$set(o);const u={};r[1]&268435456&&(u.$$scope={dirty:r,ctx:n}),l.$set(u)},i(i){a||($(t.$$.fragment,i),$(l.$$.fragment,i),a=!0)},o(i){I(t.$$.fragment,i),I(l.$$.fragment,i),a=!1},d(i){i&&p(e),L(t),L(l)}}}function tl(n){let e,t,s,l;const a=[Gn,Jn],f=[];function i(r,o){return r[18]?0:1}return t=i(n),s=f[t]=a[t](n),{c(){e=B("div"),s.c(),this.h()},l(r){e=U(r,"DIV",{class:!0});var o=R(e);s.l(o),o.forEach(p),this.h()},h(){Y(e,"class","pb-20")},m(r,o){q(r,e,o),f[t].m(e,null),l=!0},p(r,o){let u=t;t=i(r),t===u?f[t].p(r,o):(De(),I(f[u],1,1,()=>{f[u]=null}),We(),s=f[t],s?s.p(r,o):(s=f[t]=a[t](r),s.c()),$(s,1),s.m(e,null))},i(r){l||($(s),l=!0)},o(r){I(s),l=!1},d(r){r&&p(e),f[t].d()}}}function nl(n,e,t){let s,l,a,f;Ye(n,lt,S=>t(17,l=S)),Ye(n,Vt,S=>t(55,a=S)),Ye(n,Ft,S=>t(18,f=S));var i,r,o,u,c,h,_,d,g,y,v;let{schedule:O=null}=e,{onConfirm:X}=e,j=a.params.namespace,w=a.params.schedule,k=J(O?"schedules.edit":"schedules.create"),D=J(O?"schedules.editing":"schedules.creating"),le=J(O?"schedules.back-to-schedule":"schedules.back-to-schedules"),z=O?Xt({namespace:j,scheduleId:w}):Yt({namespace:j}),G=O?J("common.save"):J("schedules.create"),Z={},N=w??"",W=(u=(o=(r=(i=O==null?void 0:O.action)===null||i===void 0?void 0:i.startWorkflow)===null||r===void 0?void 0:r.workflowType)===null||o===void 0?void 0:o.name)!==null&&u!==void 0?u:"",ie=(_=(h=(c=O==null?void 0:O.action)===null||c===void 0?void 0:c.startWorkflow)===null||h===void 0?void 0:h.workflowId)!==null&&_!==void 0?_:"",ue=(v=(y=(g=(d=O==null?void 0:O.action)===null||d===void 0?void 0:d.startWorkflow)===null||g===void 0?void 0:g.taskQueue)===null||y===void 0?void 0:y.name)!==null&&v!==void 0?v:"",ne="",he=[],fe=[],ce=[],re="",E="",me="",_e="",de="",ae="";const Ie=(S,oe)=>{X(S,{name:N,workflowType:W,workflowId:ie,taskQueue:ue,input:ne,hour:E,minute:me,second:_e,phase:de,cronString:ae,daysOfWeek:he,daysOfMonth:fe,days:re,months:ce},oe)},Oe=S=>{const{id:oe}=S.target;t(14,Z[oe]=!1,Z),l&&dt(lt,l="",l)},ge=S=>{const{value:oe,id:m}=S.target;oe.trim()?t(14,Z[m]=!1,Z):t(14,Z[m]=!0,Z)},Ee=S=>{if(!ne)return t(14,Z.input=!1,Z),!0;try{return JSON.parse(S),t(14,Z.input=!1,Z),!0}catch{return t(14,Z.input=!0,Z),!1}};Lt(()=>dt(lt,l="",l));function Se(S){N=S,t(1,N)}function Me(S){W=S,t(2,W)}function Ve(S){ie=S,t(3,ie)}function Te(S){ue=S,t(4,ue)}function He(S){ne=S,t(5,ne)}const Fe=S=>Ie(S,O);function Pe(S){he=S,t(6,he)}function Ke(S){fe=S,t(7,fe)}function Le(S){ce=S,t(8,ce)}function Re(S){re=S,t(9,re)}function Ne(S){E=S,t(10,E)}function Je(S){me=S,t(11,me)}function Ae(S){_e=S,t(12,_e)}function C(S){de=S,t(15,de)}function x(S){ae=S,t(13,ae)}return n.$$set=S=>{"schedule"in S&&t(0,O=S.schedule),"onConfirm"in S&&t(28,X=S.onConfirm)},n.$$.update=()=>{n.$$.dirty[0]&16382&&t(16,s=S=>!N||!W||!ie||!ue||!Ee(ne)?!0:S==="interval"?!re&&!E&&!me&&!_e:S==="week"?!he.length:S==="month"?!fe.length||!ce.length:S==="string"?!ae:!1)},[O,N,W,ie,ue,ne,he,fe,ce,re,E,me,_e,ae,Z,de,s,l,f,w,k,D,le,z,G,Ie,Oe,ge,X,Se,Me,Ve,Te,He,Fe,Pe,Ke,Le,Re,Ne,Je,Ae,C,x]}class Ol extends we{constructor(e){super(),ke(this,e,nl,tl,$e,{schedule:0,onConfirm:28},null,[-1,-1])}}export{Ol as S}; +import{s as $e,p as Ct,z as st,e as B,b as U,d as R,g as p,E as ot,H as ze,k as q,u as Dt,q as Wt,r as Mt,D as ft,U as Ht,c as Ye,A as Pt,j as Y,l as b,y as et,t as ee,a as M,f as te,h as V,v as pe,L as Q,V as F,i as nt,x as ct,a4 as Lt,w as dt,n as Nt}from"./scheduler.AWtTlMeO.js";import{S as we,i as ke,t as $,b as I,g as De,e as We,c as T,a as H,m as P,d as L,f as K}from"./index.91lpp7Ff.js";import{p as Vt}from"./stores.meYYndLY.js";import{I as ye}from"./input.EAz4myrb.js";import{T as At,a as qt,b as Bt,c as Ge}from"./tab.XTXbSCSg.js";import{g as Ut}from"./spread.rEx3vLA9.js";import{t as J}from"./translate.HrioCK44.js";import{e as Ce}from"./each.QPLN4A2E.js";import{B as Qe}from"./button.bjyERRn9.js";import{m as ht,T as jt,b as tt,w as _t}from"./time-picker.IwHKoS08.js";import{I as zt}from"./icon.hlu3-iXK.js";import{S as Qt,e as lt,l as Ft}from"./schedules.HxDl_85W.js";import{S as Kt,O as xe}from"./option.7qDbbB8o.js";import{A as Rt}from"./alert._GES0UbM.js";import{L as Jt}from"./link.DdkOc0EY.js";import{L as Gt}from"./loading.ZhwIBa5k.js";import{i as Xt,h as Yt}from"./route-for.ezVRK9wE.js";import{w as mt}from"./write-actions-are-allowed.qnSR79t1.js";import{C as Zt}from"./code-block.XXHS15kp.js";import{L as xt}from"./label.2vZCl_WE.js";import{g as it}from"./encode-payload.mYRoJRmH.js";import{P as en}from"./payload-decoder.YeQWFAju.js";function tn(n){let e,t;const s=n[7].default,l=Ct(s,n,n[6],null);let a=[{id:n[0]},{"aria-labelledby":n[1]},{tabindex:"0"},{role:"tabpanel"},n[4]],f={};for(let i=0;it(5,f=_)),c(o),n.$$set=_=>{e=st(st({},e),Pt(_)),t(4,a=ft(e,l)),"id"in _&&t(0,o=_.id),"tabId"in _&&t(1,u=_.tabId),"$$scope"in _&&t(6,r=_.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&t(2,s=f===o)},[o,u,s,h,a,f,r,i]}class Xe extends we{constructor(e){super(),ke(this,e,nn,tn,$e,{id:0,tabId:1})}}function gt(n,e,t){const s=n.slice();s[4]=e[t];const l=s[0].includes(s[4]);return s[5]=l,s}function ln(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,a){q(l,t,a),q(l,s,a)},p:pe,d(l){l&&(p(t),p(s))}}}function pt(n){let e,t;function s(...l){return n[3](n[4],...l)}return e=new Qe({props:{variant:"secondary",class:n[5]&&"bg-interactive-secondary-active",$$slots:{default:[ln]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,a){P(e,l,a),t=!0},p(l,a){n=l;const f={};a&1&&(f.class=n[5]&&"bg-interactive-secondary-active"),a&256&&(f.$$scope={dirty:a,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function sn(n){let e,t,s,l=Ce(n[1]),a=[];for(let i=0;iI(a[i],1,1,()=>{a[i]=null});return{c(){e=B("div"),t=B("div");for(let i=0;ir+1);let{daysOfMonth:l}=e;const a=(i,r)=>{i.metaKey?l.includes(r)?l.filter(o=>o!==r):t(0,l=[...l,r]):t(0,l=[r])},f=(i,r)=>a(r,i);return n.$$set=i=>{"daysOfMonth"in i&&t(0,l=i.daysOfMonth)},[l,s,a,f]}class an extends we{constructor(e){super(),ke(this,e,un,sn,$e,{daysOfMonth:0})}}function vt(n,e,t){const s=n.slice();s[3]=e[t].label,s[4]=e[t].value;const l=s[0].includes(s[4]);return s[5]=l,s}function rn(n){let e=n[3]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,a){q(l,t,a),q(l,s,a)},p:pe,d(l){l&&(p(t),p(s))}}}function bt(n){let e,t;function s(...l){return n[2](n[4],...l)}return e=new Qe({props:{variant:"secondary",class:n[5]&&"bg-interactive-secondary-active",$$slots:{default:[rn]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,a){P(e,l,a),t=!0},p(l,a){n=l;const f={};a&1&&(f.class=n[5]&&"bg-interactive-secondary-active"),a&256&&(f.$$scope={dirty:a,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function on(n){let e,t,s=Ce(ht),l=[];for(let f=0;fI(l[f],1,1,()=>{l[f]=null});return{c(){e=B("div");for(let f=0;f{f.metaKey&&i!=="*"?(s.includes("*")&&t(0,s=s.filter(r=>r!=="*")),s.includes(i)?t(0,s=s.filter(r=>r!==i)):t(0,s=[...s,i])):t(0,s=[i])},a=(f,i)=>l(i,f);return n.$$set=f=>{"months"in f&&t(0,s=f.months)},[s,l,a]}class cn extends we{constructor(e){super(),ke(this,e,fn,on,$e,{months:0})}}function dn(n){let e,t,s=J("schedules.time-view-heading")+"",l,a,f,i=J("schedules.time-view-description")+"",r,o,u,c,h,_,d,g,y,v,O=J("common.based-on-time-preface")+"",X,j,w;function k(z){n[2](z)}function D(z){n[3](z)}let le={twelveHourClock:!1,includeSeconds:!1};return n[0]!==void 0&&(le.hour=n[0]),n[1]!==void 0&&(le.minute=n[1]),u=new jt({props:le}),Q.push(()=>K(u,"hour",k)),Q.push(()=>K(u,"minute",D)),g=new zt({props:{name:"clock","aria-hidden":"true"}}),{c(){e=B("div"),t=B("h3"),l=ee(s),a=M(),f=B("p"),r=ee(i),o=M(),T(u.$$.fragment),_=M(),d=B("div"),T(g.$$.fragment),y=M(),v=B("span"),X=ee(O),j=ee(" Universal Standard Time (UTC)"),this.h()},l(z){e=U(z,"DIV",{class:!0});var G=R(e);t=U(G,"H3",{class:!0});var Z=R(t);l=te(Z,s),Z.forEach(p),a=V(G),f=U(G,"P",{});var N=R(f);r=te(N,i),N.forEach(p),o=V(G),H(u.$$.fragment,G),_=V(G),d=U(G,"DIV",{class:!0});var W=R(d);H(g.$$.fragment,W),y=V(W),v=U(W,"SPAN",{class:!0});var ie=R(v);X=te(ie,O),j=te(ie," Universal Standard Time (UTC)"),ie.forEach(p),W.forEach(p),G.forEach(p),this.h()},h(){Y(t,"class","text-lg font-medium"),Y(v,"class","text-xs font-normal text-slate-500"),Y(d,"class","flex w-full flex-row items-center gap-2"),Y(e,"class","flex flex-col gap-4")},m(z,G){q(z,e,G),b(e,t),b(t,l),b(e,a),b(e,f),b(f,r),b(e,o),P(u,e,null),b(e,_),b(e,d),P(g,d,null),b(d,y),b(d,v),b(v,X),b(v,j),w=!0},p(z,[G]){const Z={};!c&&G&1&&(c=!0,Z.hour=z[0],F(()=>c=!1)),!h&&G&2&&(h=!0,Z.minute=z[1],F(()=>h=!1)),u.$set(Z)},i(z){w||($(u.$$.fragment,z),$(g.$$.fragment,z),w=!0)},o(z){I(u.$$.fragment,z),I(g.$$.fragment,z),w=!1},d(z){z&&p(e),L(u),L(g)}}}function hn(n,e,t){let{hour:s=""}=e,{minute:l=""}=e;function a(i){s=i,t(0,s)}function f(i){l=i,t(1,l)}return n.$$set=i=>{"hour"in i&&t(0,s=i.hour),"minute"in i&&t(1,l=i.minute)},[s,l,a,f]}class Tt extends we{constructor(e){super(),ke(this,e,hn,dn,$e,{hour:0,minute:1})}}function _n(n){let e,t,s=J("schedules.recurring-dates-heading")+"",l,a,f,i=J("schedules.recurring-dates-description")+"",r,o,u,c,h,_,d,g,y,v,O,X,j;function w(N){n[4](N)}let k={};n[0]!==void 0&&(k.daysOfMonth=n[0]),c=new an({props:k}),Q.push(()=>K(c,"daysOfMonth",w));function D(N){n[5](N)}let le={};n[1]!==void 0&&(le.months=n[1]),d=new cn({props:le}),Q.push(()=>K(d,"months",D));function z(N){n[6](N)}function G(N){n[7](N)}let Z={};return n[2]!==void 0&&(Z.hour=n[2]),n[3]!==void 0&&(Z.minute=n[3]),v=new Tt({props:Z}),Q.push(()=>K(v,"hour",z)),Q.push(()=>K(v,"minute",G)),{c(){e=B("div"),t=B("h3"),l=ee(s),a=M(),f=B("p"),r=ee(i),o=M(),u=B("div"),T(c.$$.fragment),_=M(),T(d.$$.fragment),y=M(),T(v.$$.fragment),this.h()},l(N){e=U(N,"DIV",{class:!0});var W=R(e);t=U(W,"H3",{class:!0});var ie=R(t);l=te(ie,s),ie.forEach(p),a=V(W),f=U(W,"P",{});var ue=R(f);r=te(ue,i),ue.forEach(p),o=V(W),u=U(W,"DIV",{class:!0});var ne=R(u);H(c.$$.fragment,ne),_=V(ne),H(d.$$.fragment,ne),ne.forEach(p),W.forEach(p),y=V(N),H(v.$$.fragment,N),this.h()},h(){Y(t,"class","text-lg font-medium"),Y(u,"class","flex w-full flex-col gap-4"),Y(e,"class","my-2 flex flex-col gap-4")},m(N,W){q(N,e,W),b(e,t),b(t,l),b(e,a),b(e,f),b(f,r),b(e,o),b(e,u),P(c,u,null),b(u,_),P(d,u,null),q(N,y,W),P(v,N,W),j=!0},p(N,[W]){const ie={};!h&&W&1&&(h=!0,ie.daysOfMonth=N[0],F(()=>h=!1)),c.$set(ie);const ue={};!g&&W&2&&(g=!0,ue.months=N[1],F(()=>g=!1)),d.$set(ue);const ne={};!O&&W&4&&(O=!0,ne.hour=N[2],F(()=>O=!1)),!X&&W&8&&(X=!0,ne.minute=N[3],F(()=>X=!1)),v.$set(ne)},i(N){j||($(c.$$.fragment,N),$(d.$$.fragment,N),$(v.$$.fragment,N),j=!0)},o(N){I(c.$$.fragment,N),I(d.$$.fragment,N),I(v.$$.fragment,N),j=!1},d(N){N&&(p(e),p(y)),L(c),L(d),L(v,N)}}}function mn(n,e,t){let{daysOfMonth:s}=e,{months:l}=e,{hour:a}=e,{minute:f}=e;function i(c){s=c,t(0,s)}function r(c){l=c,t(1,l)}function o(c){a=c,t(2,a)}function u(c){f=c,t(3,f)}return n.$$set=c=>{"daysOfMonth"in c&&t(0,s=c.daysOfMonth),"months"in c&&t(1,l=c.months),"hour"in c&&t(2,a=c.hour),"minute"in c&&t(3,f=c.minute)},[s,l,a,f,i,r,o,u]}class gn extends we{constructor(e){super(),ke(this,e,mn,_n,$e,{daysOfMonth:0,months:1,hour:2,minute:3})}}function $t(n,e,t){const s=n.slice();s[4]=e[t].label,s[5]=e[t].value;const l=s[0].includes(s[5]);return s[6]=l,s}function wt(n,e,t){const s=n.slice();s[4]=e[t].label,s[5]=e[t].value;const l=s[0].includes(s[5]);return s[6]=l,s}function pn(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,a){q(l,t,a),q(l,s,a)},p:pe,d(l){l&&(p(t),p(s))}}}function kt(n){let e,t;function s(...l){return n[2](n[5],...l)}return e=new Qe({props:{variant:"secondary",class:n[6]&&"bg-interactive-secondary-active",$$slots:{default:[pn]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,a){P(e,l,a),t=!0},p(l,a){n=l;const f={};a&1&&(f.class=n[6]&&"bg-interactive-secondary-active"),a&2048&&(f.$$scope={dirty:a,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function vn(n){let e=n[4]+"",t,s;return{c(){t=ee(e),s=M()},l(l){t=te(l,e),s=V(l)},m(l,a){q(l,t,a),q(l,s,a)},p:pe,d(l){l&&(p(t),p(s))}}}function yt(n){let e,t;function s(...l){return n[3](n[5],...l)}return e=new Qe({props:{variant:"secondary",class:n[6]&&"bg-interactive-secondary-active",$$slots:{default:[vn]},$$scope:{ctx:n}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,a){P(e,l,a),t=!0},p(l,a){n=l;const f={};a&1&&(f.class=n[6]&&"bg-interactive-secondary-active"),a&2048&&(f.$$scope={dirty:a,ctx:n}),e.$set(f)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){I(e.$$.fragment,l),t=!1},d(l){L(e,l)}}}function bn(n){let e,t,s,l,a,f=Ce(tt),i=[];for(let h=0;hI(i[h],1,1,()=>{i[h]=null});let o=Ce(_t),u=[];for(let h=0;hI(u[h],1,1,()=>{u[h]=null});return{c(){e=B("div"),t=B("div");for(let h=0;h{i.metaKey?(tt.find(o=>o.value===r)?t(0,s=[r]):s.find(o=>tt.find(u=>u.value===o))&&t(0,s=[r]),s.includes(r)?s.filter(o=>o!==r):t(0,s=[...s,r])):t(0,s=[r])},a=(i,r)=>l(r,i),f=(i,r)=>l(r,i);return n.$$set=i=>{"daysOfWeek"in i&&t(0,s=i.daysOfWeek)},[s,l,a,f]}class wn extends we{constructor(e){super(),ke(this,e,$n,bn,$e,{daysOfWeek:0})}}function kn(n){let e,t,s=J("schedules.recurring-days-heading")+"",l,a,f,i=J("schedules.recurring-days-description")+"",r,o,u,c,h,_,d,g,y;function v(k){n[3](k)}let O={};n[0]!==void 0&&(O.daysOfWeek=n[0]),u=new wn({props:O}),Q.push(()=>K(u,"daysOfWeek",v));function X(k){n[4](k)}function j(k){n[5](k)}let w={};return n[1]!==void 0&&(w.hour=n[1]),n[2]!==void 0&&(w.minute=n[2]),_=new Tt({props:w}),Q.push(()=>K(_,"hour",X)),Q.push(()=>K(_,"minute",j)),{c(){e=B("div"),t=B("h3"),l=ee(s),a=M(),f=B("p"),r=ee(i),o=M(),T(u.$$.fragment),h=M(),T(_.$$.fragment),this.h()},l(k){e=U(k,"DIV",{class:!0});var D=R(e);t=U(D,"H3",{class:!0});var le=R(t);l=te(le,s),le.forEach(p),a=V(D),f=U(D,"P",{});var z=R(f);r=te(z,i),z.forEach(p),o=V(D),H(u.$$.fragment,D),D.forEach(p),h=V(k),H(_.$$.fragment,k),this.h()},h(){Y(t,"class","text-lg font-medium"),Y(e,"class","my-2 flex flex-col gap-4")},m(k,D){q(k,e,D),b(e,t),b(t,l),b(e,a),b(e,f),b(f,r),b(e,o),P(u,e,null),q(k,h,D),P(_,k,D),y=!0},p(k,[D]){const le={};!c&&D&1&&(c=!0,le.daysOfWeek=k[0],F(()=>c=!1)),u.$set(le);const z={};!d&&D&2&&(d=!0,z.hour=k[1],F(()=>d=!1)),!g&&D&4&&(g=!0,z.minute=k[2],F(()=>g=!1)),_.$set(z)},i(k){y||($(u.$$.fragment,k),$(_.$$.fragment,k),y=!0)},o(k){I(u.$$.fragment,k),I(_.$$.fragment,k),y=!1},d(k){k&&(p(e),p(h)),L(u),L(_,k)}}}function yn(n,e,t){let{daysOfWeek:s}=e,{hour:l}=e,{minute:a}=e;function f(o){s=o,t(0,s)}function i(o){l=o,t(1,l)}function r(o){a=o,t(2,a)}return n.$$set=o=>{"daysOfWeek"in o&&t(0,s=o.daysOfWeek),"hour"in o&&t(1,l=o.hour),"minute"in o&&t(2,a=o.minute)},[s,l,a,f,i,r]}class In extends we{constructor(e){super(),ke(this,e,yn,kn,$e,{daysOfWeek:0,hour:1,minute:2})}}function On(n){let e=J("common.days")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:pe,d(s){s&&p(t)}}}function En(n){let e=J("common.hours-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:pe,d(s){s&&p(t)}}}function Sn(n){let e=J("common.minutes-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:pe,d(s){s&&p(t)}}}function Cn(n){let e=J("common.seconds-abbreviated")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:pe,d(s){s&&p(t)}}}function Dn(n){let e,t,s,l,a,f,i,r;return e=new xe({props:{value:"days",$$slots:{default:[On]},$$scope:{ctx:n}}}),s=new xe({props:{value:"hrs",$$slots:{default:[En]},$$scope:{ctx:n}}}),a=new xe({props:{value:"min",$$slots:{default:[Sn]},$$scope:{ctx:n}}}),i=new xe({props:{value:"sec",$$slots:{default:[Cn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment),t=M(),T(s.$$.fragment),l=M(),T(a.$$.fragment),f=M(),T(i.$$.fragment)},l(o){H(e.$$.fragment,o),t=V(o),H(s.$$.fragment,o),l=V(o),H(a.$$.fragment,o),f=V(o),H(i.$$.fragment,o)},m(o,u){P(e,o,u),q(o,t,u),P(s,o,u),q(o,l,u),P(a,o,u),q(o,f,u),P(i,o,u),r=!0},p(o,u){const c={};u&16384&&(c.$$scope={dirty:u,ctx:o}),e.$set(c);const h={};u&16384&&(h.$$scope={dirty:u,ctx:o}),s.$set(h);const _={};u&16384&&(_.$$scope={dirty:u,ctx:o}),a.$set(_);const d={};u&16384&&(d.$$scope={dirty:u,ctx:o}),i.$set(d)},i(o){r||($(e.$$.fragment,o),$(s.$$.fragment,o),$(a.$$.fragment,o),$(i.$$.fragment,o),r=!0)},o(o){I(e.$$.fragment,o),I(s.$$.fragment,o),I(a.$$.fragment,o),I(i.$$.fragment,o),r=!1},d(o){o&&(p(t),p(l),p(f)),L(e,o),L(s,o),L(a,o),L(i,o)}}}function Wn(n){let e,t,s=J("schedules.interval-view-heading")+"",l,a,f,i=J("schedules.interval-view-description")+"",r,o,u,c,h,_,d,g=":",y,v,O,X,j,w=":",k,D,le,z,G,Z=":",N,W,ie,ue,ne,he=J("schedules.offset-heading")+"",fe,ce,re,E=J("schedules.offset-description")+"",me,_e,de,ae,Ie,Oe,ge,Ee,Se;function Me(C){n[8](C)}let Ve={id:"days",class:"w-28",label:J("common.days"),labelHidden:!0,placeholder:"000",suffix:J("common.days"),hideCount:!0,maxLength:3,error:n[7](n[0])};n[0]!==void 0&&(Ve.value=n[0]),c=new ye({props:Ve}),Q.push(()=>K(c,"value",Me));function Te(C){n[9](C)}let He={id:"hour-interval",class:"w-24",label:J("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.hours-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(He.value=n[1]),v=new ye({props:He}),Q.push(()=>K(v,"value",Te));function Fe(C){n[10](C)}let Pe={id:"minute-interval",class:"w-24",label:J("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.minutes-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(Pe.value=n[2]),D=new ye({props:Pe}),Q.push(()=>K(D,"value",Fe));function Ke(C){n[11](C)}let Le={id:"second",class:"w-24",label:J("common.seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:J("common.seconds-abbreviated"),hideCount:!0,maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(Le.value=n[3]),W=new ye({props:Le}),Q.push(()=>K(W,"value",Ke));function Re(C){n[12](C)}let Ne={id:"phase",class:"w-28",label:J("schedules.offset-heading"),labelHidden:!0,placeholder:"00",maxLength:3,hideCount:!0,error:n[7](n[4])};n[5]!==void 0&&(Ne.value=n[5]),ae=new ye({props:Ne}),Q.push(()=>K(ae,"value",Re));function Je(C){n[13](C)}let Ae={label:J("schedules.offset-unit"),labelHidden:!0,id:"phase-unit",$$slots:{default:[Dn]},$$scope:{ctx:n}};return n[6]!==void 0&&(Ae.value=n[6]),ge=new Kt({props:Ae}),Q.push(()=>K(ge,"value",Je)),{c(){e=B("div"),t=B("h3"),l=ee(s),a=M(),f=B("p"),r=ee(i),o=M(),u=B("div"),T(c.$$.fragment),_=M(),d=B("div"),d.textContent=g,y=M(),T(v.$$.fragment),X=M(),j=B("div"),j.textContent=w,k=M(),T(D.$$.fragment),z=M(),G=B("div"),G.textContent=Z,N=M(),T(W.$$.fragment),ue=M(),ne=B("h3"),fe=ee(he),ce=M(),re=B("p"),me=ee(E),_e=M(),de=B("div"),T(ae.$$.fragment),Oe=M(),T(ge.$$.fragment),this.h()},l(C){e=U(C,"DIV",{class:!0});var x=R(e);t=U(x,"H3",{class:!0});var S=R(t);l=te(S,s),S.forEach(p),a=V(x),f=U(x,"P",{});var oe=R(f);r=te(oe,i),oe.forEach(p),o=V(x),u=U(x,"DIV",{class:!0});var m=R(u);H(c.$$.fragment,m),_=V(m),d=U(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(d)!=="svelte-qa0xbj"&&(d.textContent=g),y=V(m),H(v.$$.fragment,m),X=V(m),j=U(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(j)!=="svelte-qa0xbj"&&(j.textContent=w),k=V(m),H(D.$$.fragment,m),z=V(m),G=U(m,"DIV",{class:!0,"data-svelte-h":!0}),nt(G)!=="svelte-qa0xbj"&&(G.textContent=Z),N=V(m),H(W.$$.fragment,m),m.forEach(p),ue=V(x),ne=U(x,"H3",{class:!0});var A=R(ne);fe=te(A,he),A.forEach(p),ce=V(x),re=U(x,"P",{});var ve=R(re);me=te(ve,E),ve.forEach(p),_e=V(x),de=U(x,"DIV",{class:!0});var se=R(de);H(ae.$$.fragment,se),Oe=V(se),H(ge.$$.fragment,se),se.forEach(p),x.forEach(p),this.h()},h(){Y(t,"class","text-lg font-medium"),Y(d,"class","hidden lg:block"),Y(j,"class","hidden lg:block"),Y(G,"class","hidden lg:block"),Y(u,"class","flex flex-col items-center gap-2 lg:flex-row"),Y(ne,"class","mt-4 text-lg font-medium"),Y(de,"class","flex w-48 gap-2"),Y(e,"class","my-2 flex flex-col gap-4")},m(C,x){q(C,e,x),b(e,t),b(t,l),b(e,a),b(e,f),b(f,r),b(e,o),b(e,u),P(c,u,null),b(u,_),b(u,d),b(u,y),P(v,u,null),b(u,X),b(u,j),b(u,k),P(D,u,null),b(u,z),b(u,G),b(u,N),P(W,u,null),b(e,ue),b(e,ne),b(ne,fe),b(e,ce),b(e,re),b(re,me),b(e,_e),b(e,de),P(ae,de,null),b(de,Oe),P(ge,de,null),Se=!0},p(C,[x]){const S={};x&1&&(S.error=C[7](C[0])),!h&&x&1&&(h=!0,S.value=C[0],F(()=>h=!1)),c.$set(S);const oe={};x&2&&(oe.error=C[7](C[1])),!O&&x&2&&(O=!0,oe.value=C[1],F(()=>O=!1)),v.$set(oe);const m={};x&4&&(m.error=C[7](C[2])),!le&&x&4&&(le=!0,m.value=C[2],F(()=>le=!1)),D.$set(m);const A={};x&8&&(A.error=C[7](C[3])),!ie&&x&8&&(ie=!0,A.value=C[3],F(()=>ie=!1)),W.$set(A);const ve={};x&16&&(ve.error=C[7](C[4])),!Ie&&x&32&&(Ie=!0,ve.value=C[5],F(()=>Ie=!1)),ae.$set(ve);const se={};x&16384&&(se.$$scope={dirty:x,ctx:C}),!Ee&&x&64&&(Ee=!0,se.value=C[6],F(()=>Ee=!1)),ge.$set(se)},i(C){Se||($(c.$$.fragment,C),$(v.$$.fragment,C),$(D.$$.fragment,C),$(W.$$.fragment,C),$(ae.$$.fragment,C),$(ge.$$.fragment,C),Se=!0)},o(C){I(c.$$.fragment,C),I(v.$$.fragment,C),I(D.$$.fragment,C),I(W.$$.fragment,C),I(ae.$$.fragment,C),I(ge.$$.fragment,C),Se=!1},d(C){C&&p(e),L(c),L(v),L(D),L(W),L(ae),L(ge)}}}function Mn(n,e,t){let{days:s=""}=e,{hour:l=""}=e,{minute:a=""}=e,{second:f=""}=e,{phase:i=""}=e,r="",o="min";const u=v=>v?isNaN(parseInt(v)):!1;function c(v){s=v,t(0,s)}function h(v){l=v,t(1,l)}function _(v){a=v,t(2,a)}function d(v){f=v,t(3,f)}function g(v){r=v,t(5,r)}function y(v){o=v,t(6,o)}return n.$$set=v=>{"days"in v&&t(0,s=v.days),"hour"in v&&t(1,l=v.hour),"minute"in v&&t(2,a=v.minute),"second"in v&&t(3,f=v.second),"phase"in v&&t(4,i=v.phase)},n.$$.update=()=>{n.$$.dirty&96&&r&&(o==="days"?t(4,i=(parseInt(r)*60*60*24).toString()+"s"):o==="hrs"?t(4,i=(parseInt(r)*60*60).toString()+"s"):o==="min"?t(4,i=(parseInt(r)*60).toString()+"s"):o==="sec"&&t(4,i=parseInt(r).toString()+"s"))},[s,l,a,f,i,r,o,u,c,h,_,d,g,y]}class Vn extends we{constructor(e){super(),ke(this,e,Mn,Wn,$e,{days:0,hour:1,minute:2,second:3,phase:4})}}const Tn=n=>({preset:n[0]&1024}),It=n=>({preset:n[10]});function Ot(n){let e,t;return e=new Ge({props:{label:"Existing",id:"existing-tab",panelId:"existing-panel",onClick:n[12]}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const a={};l[0]&1024&&(a.onClick=s[12]),e.$set(a)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Hn(n){let e,t,s,l,a,f,i,r,o,u=n[9]&&Ot(n);return t=new Ge({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:n[13]}}),l=new Ge({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:n[14]}}),f=new Ge({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:n[15]}}),r=new Ge({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:n[16]}}),{c(){u&&u.c(),e=M(),T(t.$$.fragment),s=M(),T(l.$$.fragment),a=M(),T(f.$$.fragment),i=M(),T(r.$$.fragment)},l(c){u&&u.l(c),e=V(c),H(t.$$.fragment,c),s=V(c),H(l.$$.fragment,c),a=V(c),H(f.$$.fragment,c),i=V(c),H(r.$$.fragment,c)},m(c,h){u&&u.m(c,h),q(c,e,h),P(t,c,h),q(c,s,h),P(l,c,h),q(c,a,h),P(f,c,h),q(c,i,h),P(r,c,h),o=!0},p(c,h){c[9]?u?(u.p(c,h),h[0]&512&&$(u,1)):(u=Ot(c),u.c(),$(u,1),u.m(e.parentNode,e)):u&&(De(),I(u,1,1,()=>{u=null}),We());const _={};h[0]&1024&&(_.onClick=c[13]),t.$set(_);const d={};h[0]&1024&&(d.onClick=c[14]),l.$set(d);const g={};h[0]&1024&&(g.onClick=c[15]),f.$set(g);const y={};h[0]&1024&&(y.onClick=c[16]),r.$set(y)},i(c){o||($(u),$(t.$$.fragment,c),$(l.$$.fragment,c),$(f.$$.fragment,c),$(r.$$.fragment,c),o=!0)},o(c){I(u),I(t.$$.fragment,c),I(l.$$.fragment,c),I(f.$$.fragment,c),I(r.$$.fragment,c),o=!1},d(c){c&&(p(e),p(s),p(a),p(i)),u&&u.d(c),L(t,c),L(l,c),L(f,c),L(r,c)}}}function Et(n){let e,t;return e=new Xe({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[Pn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const a={};l[0]&1073742336&&(a.$$scope={dirty:l,ctx:s}),e.$set(a)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Pn(n){var s,l,a,f,i,r,o,u;let e,t;return e=new Qt({props:{calendar:(a=(l=(s=n[9])==null?void 0:s.spec)==null?void 0:l.structuredCalendar)==null?void 0:a[0],interval:(r=(i=(f=n[9])==null?void 0:f.spec)==null?void 0:i.interval)==null?void 0:r[0],timezoneName:(u=(o=n[9])==null?void 0:o.spec)==null?void 0:u.timezoneName}}),{c(){T(e.$$.fragment)},l(c){H(e.$$.fragment,c)},m(c,h){P(e,c,h),t=!0},p(c,h){var d,g,y,v,O,X,j,w;const _={};h[0]&512&&(_.calendar=(y=(g=(d=c[9])==null?void 0:d.spec)==null?void 0:g.structuredCalendar)==null?void 0:y[0]),h[0]&512&&(_.interval=(X=(O=(v=c[9])==null?void 0:v.spec)==null?void 0:O.interval)==null?void 0:X[0]),h[0]&512&&(_.timezoneName=(w=(j=c[9])==null?void 0:j.spec)==null?void 0:w.timezoneName),e.$set(_)},i(c){t||($(e.$$.fragment,c),t=!0)},o(c){I(e.$$.fragment,c),t=!1},d(c){L(e,c)}}}function Ln(n){let e,t,s,l,a,f,i;function r(d){n[17](d)}function o(d){n[18](d)}function u(d){n[19](d)}function c(d){n[20](d)}function h(d){n[21](d)}let _={};return n[3]!==void 0&&(_.days=n[3]),n[4]!==void 0&&(_.hour=n[4]),n[5]!==void 0&&(_.minute=n[5]),n[6]!==void 0&&(_.second=n[6]),n[7]!==void 0&&(_.phase=n[7]),e=new Vn({props:_}),Q.push(()=>K(e,"days",r)),Q.push(()=>K(e,"hour",o)),Q.push(()=>K(e,"minute",u)),Q.push(()=>K(e,"second",c)),Q.push(()=>K(e,"phase",h)),{c(){T(e.$$.fragment)},l(d){H(e.$$.fragment,d)},m(d,g){P(e,d,g),i=!0},p(d,g){const y={};!t&&g[0]&8&&(t=!0,y.days=d[3],F(()=>t=!1)),!s&&g[0]&16&&(s=!0,y.hour=d[4],F(()=>s=!1)),!l&&g[0]&32&&(l=!0,y.minute=d[5],F(()=>l=!1)),!a&&g[0]&64&&(a=!0,y.second=d[6],F(()=>a=!1)),!f&&g[0]&128&&(f=!0,y.phase=d[7],F(()=>f=!1)),e.$set(y)},i(d){i||($(e.$$.fragment,d),i=!0)},o(d){I(e.$$.fragment,d),i=!1},d(d){L(e,d)}}}function Nn(n){let e,t,s,l,a;function f(u){n[22](u)}function i(u){n[23](u)}function r(u){n[24](u)}let o={};return n[0]!==void 0&&(o.daysOfWeek=n[0]),n[4]!==void 0&&(o.hour=n[4]),n[5]!==void 0&&(o.minute=n[5]),e=new In({props:o}),Q.push(()=>K(e,"daysOfWeek",f)),Q.push(()=>K(e,"hour",i)),Q.push(()=>K(e,"minute",r)),{c(){T(e.$$.fragment)},l(u){H(e.$$.fragment,u)},m(u,c){P(e,u,c),a=!0},p(u,c){const h={};!t&&c[0]&1&&(t=!0,h.daysOfWeek=u[0],F(()=>t=!1)),!s&&c[0]&16&&(s=!0,h.hour=u[4],F(()=>s=!1)),!l&&c[0]&32&&(l=!0,h.minute=u[5],F(()=>l=!1)),e.$set(h)},i(u){a||($(e.$$.fragment,u),a=!0)},o(u){I(e.$$.fragment,u),a=!1},d(u){L(e,u)}}}function An(n){let e,t,s,l,a,f;function i(h){n[25](h)}function r(h){n[26](h)}function o(h){n[27](h)}function u(h){n[28](h)}let c={};return n[1]!==void 0&&(c.daysOfMonth=n[1]),n[2]!==void 0&&(c.months=n[2]),n[4]!==void 0&&(c.hour=n[4]),n[5]!==void 0&&(c.minute=n[5]),e=new gn({props:c}),Q.push(()=>K(e,"daysOfMonth",i)),Q.push(()=>K(e,"months",r)),Q.push(()=>K(e,"hour",o)),Q.push(()=>K(e,"minute",u)),{c(){T(e.$$.fragment)},l(h){H(e.$$.fragment,h)},m(h,_){P(e,h,_),f=!0},p(h,_){const d={};!t&&_[0]&2&&(t=!0,d.daysOfMonth=h[1],F(()=>t=!1)),!s&&_[0]&4&&(s=!0,d.months=h[2],F(()=>s=!1)),!l&&_[0]&16&&(l=!0,d.hour=h[4],F(()=>l=!1)),!a&&_[0]&32&&(a=!0,d.minute=h[5],F(()=>a=!1)),e.$set(d)},i(h){f||($(e.$$.fragment,h),f=!0)},o(h){I(e.$$.fragment,h),f=!1},d(h){L(e,h)}}}function qn(n){let e,t,s=J("schedules.cron-view-title")+"",l,a,f,i=J("schedules.cron-view-description")+"",r,o,u,c,h;function _(g){n[29](g)}let d={label:J("schedules.cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return n[8]!==void 0&&(d.value=n[8]),u=new ye({props:d}),Q.push(()=>K(u,"value",_)),{c(){e=B("div"),t=B("h3"),l=ee(s),a=M(),f=B("p"),r=ee(i),o=M(),T(u.$$.fragment),this.h()},l(g){e=U(g,"DIV",{class:!0});var y=R(e);t=U(y,"H3",{class:!0});var v=R(t);l=te(v,s),v.forEach(p),a=V(y),f=U(y,"P",{});var O=R(f);r=te(O,i),O.forEach(p),o=V(y),H(u.$$.fragment,y),y.forEach(p),this.h()},h(){Y(t,"class","text-lg font-medium"),Y(e,"class","my-2 flex w-full flex-col gap-4")},m(g,y){q(g,e,y),b(e,t),b(t,l),b(e,a),b(e,f),b(f,r),b(e,o),P(u,e,null),h=!0},p(g,y){const v={};!c&&y[0]&256&&(c=!0,v.value=g[8],F(()=>c=!1)),u.$set(v)},i(g){h||($(u.$$.fragment,g),h=!0)},o(g){I(u.$$.fragment,g),h=!1},d(g){g&&p(e),L(u)}}}function Bn(n){let e,t=J("schedules.schedule-spec")+"",s,l,a,f,i,r,o,u,c,h,_,d,g,y,v;a=new Bt({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[Hn]},$$scope:{ctx:n}}});let O=n[9]&&Et(n);o=new Xe({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[Ln]},$$scope:{ctx:n}}}),c=new Xe({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[Nn]},$$scope:{ctx:n}}}),_=new Xe({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[An]},$$scope:{ctx:n}}}),g=new Xe({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[qn]},$$scope:{ctx:n}}});const X=n[11].default,j=Ct(X,n,n[30],It);return{c(){e=B("h2"),s=ee(t),l=M(),T(a.$$.fragment),f=M(),i=B("div"),O&&O.c(),r=M(),T(o.$$.fragment),u=M(),T(c.$$.fragment),h=M(),T(_.$$.fragment),d=M(),T(g.$$.fragment),y=M(),j&&j.c(),this.h()},l(w){e=U(w,"H2",{class:!0});var k=R(e);s=te(k,t),k.forEach(p),l=V(w),H(a.$$.fragment,w),f=V(w),i=U(w,"DIV",{class:!0});var D=R(i);O&&O.l(D),r=V(D),H(o.$$.fragment,D),u=V(D),H(c.$$.fragment,D),h=V(D),H(_.$$.fragment,D),d=V(D),H(g.$$.fragment,D),D.forEach(p),y=V(w),j&&j.l(w),this.h()},h(){Y(e,"class","mb-4 text-lg"),Y(i,"class","mt-4 flex w-full flex-wrap gap-6")},m(w,k){q(w,e,k),b(e,s),q(w,l,k),P(a,w,k),q(w,f,k),q(w,i,k),O&&O.m(i,null),b(i,r),P(o,i,null),b(i,u),P(c,i,null),b(i,h),P(_,i,null),b(i,d),P(g,i,null),q(w,y,k),j&&j.m(w,k),v=!0},p(w,k){const D={};k[0]&1073743360&&(D.$$scope={dirty:k,ctx:w}),a.$set(D),w[9]?O?(O.p(w,k),k[0]&512&&$(O,1)):(O=Et(w),O.c(),$(O,1),O.m(i,r)):O&&(De(),I(O,1,1,()=>{O=null}),We());const le={};k[0]&1073742072&&(le.$$scope={dirty:k,ctx:w}),o.$set(le);const z={};k[0]&1073741873&&(z.$$scope={dirty:k,ctx:w}),c.$set(z);const G={};k[0]&1073741878&&(G.$$scope={dirty:k,ctx:w}),_.$set(G);const Z={};k[0]&1073742080&&(Z.$$scope={dirty:k,ctx:w}),g.$set(Z),j&&j.p&&(!v||k[0]&1073742848)&&Dt(j,X,w,w[30],v?Mt(X,w[30],k,Tn):Wt(w[30]),It)},i(w){v||($(a.$$.fragment,w),$(O),$(o.$$.fragment,w),$(c.$$.fragment,w),$(_.$$.fragment,w),$(g.$$.fragment,w),$(j,w),v=!0)},o(w){I(a.$$.fragment,w),I(O),I(o.$$.fragment,w),I(c.$$.fragment,w),I(_.$$.fragment,w),I(g.$$.fragment,w),I(j,w),v=!1},d(w){w&&(p(e),p(l),p(f),p(i),p(y)),L(a,w),O&&O.d(),L(o),L(c),L(_),L(g),j&&j.d(w)}}}function Un(n){let e,t;return e=new qt({props:{class:"mt-8 w-full",$$slots:{default:[Bn]},$$scope:{ctx:n}}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const a={};l[0]&1073743871&&(a.$$scope={dirty:l,ctx:s}),e.$set(a)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function jn(n,e,t){let s;Ye(n,Vt,E=>t(31,s=E));let{$$slots:l={},$$scope:a}=e,i=s.params.schedule?"existing":"interval",{schedule:r=null}=e,{daysOfWeek:o}=e,{daysOfMonth:u}=e,{months:c}=e,{days:h}=e,{hour:_}=e,{minute:d}=e,{second:g}=e,{phase:y}=e,{cronString:v}=e;const O=()=>{t(0,o=[]),t(1,u=[]),t(2,c=[]),t(3,h=""),t(4,_=""),t(5,d=""),t(6,g=""),t(7,y=""),t(8,v="")},X=()=>t(10,i="existing"),j=()=>t(10,i="interval"),w=()=>t(10,i="week"),k=()=>t(10,i="month"),D=()=>t(10,i="string");function le(E){h=E,t(3,h)}function z(E){_=E,t(4,_)}function G(E){d=E,t(5,d)}function Z(E){g=E,t(6,g)}function N(E){y=E,t(7,y)}function W(E){o=E,t(0,o)}function ie(E){_=E,t(4,_)}function ue(E){d=E,t(5,d)}function ne(E){u=E,t(1,u)}function he(E){c=E,t(2,c)}function fe(E){_=E,t(4,_)}function ce(E){d=E,t(5,d)}function re(E){v=E,t(8,v)}return n.$$set=E=>{"schedule"in E&&t(9,r=E.schedule),"daysOfWeek"in E&&t(0,o=E.daysOfWeek),"daysOfMonth"in E&&t(1,u=E.daysOfMonth),"months"in E&&t(2,c=E.months),"days"in E&&t(3,h=E.days),"hour"in E&&t(4,_=E.hour),"minute"in E&&t(5,d=E.minute),"second"in E&&t(6,g=E.second),"phase"in E&&t(7,y=E.phase),"cronString"in E&&t(8,v=E.cronString),"$$scope"in E&&t(30,a=E.$$scope)},O(),[o,u,c,h,_,d,g,y,v,r,i,l,X,j,w,k,D,le,z,G,Z,N,W,ie,ue,ne,he,fe,ce,re,a]}class zn extends we{constructor(e){super(),ke(this,e,jn,Un,$e,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function St(n){let e,t;return e=new Zt({props:{id:"schedule-input",maxHeight:320,content:it(n[5]),editable:!0,copyable:!1}}),e.$on("change",n[2]),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p(s,l){const a={};l&32&&(a.content=it(s[5])),e.$set(a)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Qn(n){let e=n[5],t,s,l=St(n);return{c(){l.c(),t=ct()},l(a){l.l(a),t=ct()},m(a,f){l.m(a,f),q(a,t,f),s=!0},p(a,f){f&32&&$e(e,e=a[5])?(De(),I(l,1,1,pe),We(),l=St(a),l.c(),$(l,1),l.m(t.parentNode,t)):l.p(a,f)},i(a){s||($(l),s=!0)},o(a){I(l),s=!1},d(a){a&&p(t),l.d(a)}}}function Fn(n){let e,t,s,l,a,f,i=J("workflows.signal-payload-input-label-hint")+"",r,o;return t=new xt({props:{for:"schedule-input",label:J("workflows.input")}}),l=new en({props:{value:n[0],key:"payloads",onDecode:n[3],$$slots:{default:[Qn,({decodedValue:u})=>({5:u}),({decodedValue:u})=>u?32:0]},$$scope:{ctx:n}}}),{c(){e=B("div"),T(t.$$.fragment),s=M(),T(l.$$.fragment),a=M(),f=B("span"),r=ee(i),this.h()},l(u){e=U(u,"DIV",{class:!0});var c=R(e);H(t.$$.fragment,c),s=V(c),H(l.$$.fragment,c),a=V(c),f=U(c,"SPAN",{class:!0});var h=R(f);r=te(h,i),h.forEach(p),c.forEach(p),this.h()},h(){Y(f,"class","font-secondary text-xs font-light italic"),ze(f,"text-red-700",n[1]),Y(e,"class","flex flex-col gap-4")},m(u,c){q(u,e,c),P(t,e,null),b(e,s),P(l,e,null),b(e,a),b(e,f),b(f,r),o=!0},p(u,[c]){const h={};c&1&&(h.value=u[0]),c&96&&(h.$$scope={dirty:c,ctx:u}),l.$set(h),(!o||c&2)&&ze(f,"text-red-700",u[1])},i(u){o||($(t.$$.fragment,u),$(l.$$.fragment,u),o=!0)},o(u){I(t.$$.fragment,u),I(l.$$.fragment,u),o=!1},d(u){u&&p(e),L(t),L(l)}}}function Kn(n,e,t){let{input:s}=e,{payloads:l}=e,{error:a=!1}=e;const f=r=>{t(4,s=r.detail)},i=r=>{t(4,s=it(r))};return n.$$set=r=>{"input"in r&&t(4,s=r.input),"payloads"in r&&t(0,l=r.payloads),"error"in r&&t(1,a=r.error)},[l,a,f,i,s]}class Rn extends we{constructor(e){super(),ke(this,e,Kn,Fn,$e,{input:4,payloads:0,error:1})}}function Jn(n){var x,S,oe;let e,t,s,l,a,f,i,r,o,u,c,h,_,d,g,y,v,O,X,j,w,k,D,le,z,G,Z,N,W,ie,ue,ne,he,fe,ce,re,E,me,_e;t=new Jt({props:{href:n[23],icon:"chevron-left",$$slots:{default:[Xn]},$$scope:{ctx:n}}}),r=new Rt({props:{intent:"error",title:"",hidden:!n[17],bold:!0,$$slots:{default:[Yn]},$$scope:{ctx:n}}});function de(m){n[29](m)}let ae={id:"name",label:J("schedules.name-label"),error:n[14].name,maxLength:232,disabled:!!n[19]};n[1]!==void 0&&(ae.value=n[1]),c=new ye({props:ae}),Q.push(()=>K(c,"value",de)),c.$on("input",n[26]),c.$on("blur",n[27]);function Ie(m){n[30](m)}let Oe={id:"workflowType",label:J("schedules.workflow-type-label"),error:n[14].workflowType};n[2]!==void 0&&(Oe.value=n[2]),g=new ye({props:Oe}),Q.push(()=>K(g,"value",Ie)),g.$on("input",n[26]),g.$on("blur",n[27]);function ge(m){n[31](m)}let Ee={id:"workflowId",label:J("schedules.workflow-id-label"),error:n[14].workflowId};n[3]!==void 0&&(Ee.value=n[3]),X=new ye({props:Ee}),Q.push(()=>K(X,"value",ge)),X.$on("input",n[26]),X.$on("blur",n[27]);function Se(m){n[32](m)}let Me={id:"taskQueue",label:J("schedules.task-queue-label"),error:n[14].taskQueue};n[4]!==void 0&&(Me.value=n[4]),D=new ye({props:Me}),Q.push(()=>K(D,"value",Se)),D.$on("input",n[26]),D.$on("blur",n[27]);function Ve(m){n[33](m)}let Te={payloads:(oe=(S=(x=n[0])==null?void 0:x.action)==null?void 0:S.startWorkflow)==null?void 0:oe.input,error:n[14].input};n[5]!==void 0&&(Te.input=n[5]),G=new Rn({props:Te}),Q.push(()=>K(G,"input",Ve));function He(m){n[35](m)}function Fe(m){n[36](m)}function Pe(m){n[37](m)}function Ke(m){n[38](m)}function Le(m){n[39](m)}function Re(m){n[40](m)}function Ne(m){n[41](m)}function Je(m){n[42](m)}function Ae(m){n[43](m)}let C={schedule:n[0],$$slots:{default:[el,({preset:m})=>({58:m}),({preset:m})=>[0,m?134217728:0]]},$$scope:{ctx:n}};return n[6]!==void 0&&(C.daysOfWeek=n[6]),n[7]!==void 0&&(C.daysOfMonth=n[7]),n[8]!==void 0&&(C.months=n[8]),n[9]!==void 0&&(C.days=n[9]),n[10]!==void 0&&(C.hour=n[10]),n[11]!==void 0&&(C.minute=n[11]),n[12]!==void 0&&(C.second=n[12]),n[15]!==void 0&&(C.phase=n[15]),n[13]!==void 0&&(C.cronString=n[13]),W=new zn({props:C}),Q.push(()=>K(W,"daysOfWeek",He)),Q.push(()=>K(W,"daysOfMonth",Fe)),Q.push(()=>K(W,"months",Pe)),Q.push(()=>K(W,"days",Ke)),Q.push(()=>K(W,"hour",Le)),Q.push(()=>K(W,"minute",Re)),Q.push(()=>K(W,"second",Ne)),Q.push(()=>K(W,"phase",Je)),Q.push(()=>K(W,"cronString",Ae)),{c(){e=B("header"),T(t.$$.fragment),s=M(),l=B("h1"),a=ee(n[20]),f=M(),i=B("form"),T(r.$$.fragment),o=M(),u=B("div"),T(c.$$.fragment),_=M(),d=B("div"),T(g.$$.fragment),v=M(),O=B("div"),T(X.$$.fragment),w=M(),k=B("div"),T(D.$$.fragment),z=M(),T(G.$$.fragment),N=M(),T(W.$$.fragment),this.h()},l(m){e=U(m,"HEADER",{class:!0});var A=R(e);H(t.$$.fragment,A),s=V(A),l=U(A,"H1",{class:!0});var ve=R(l);a=te(ve,n[20]),ve.forEach(p),A.forEach(p),f=V(m),i=U(m,"FORM",{class:!0});var se=R(i);H(r.$$.fragment,se),o=V(se),u=U(se,"DIV",{class:!0});var qe=R(u);H(c.$$.fragment,qe),qe.forEach(p),_=V(se),d=U(se,"DIV",{class:!0});var Be=R(d);H(g.$$.fragment,Be),Be.forEach(p),v=V(se),O=U(se,"DIV",{class:!0});var Ue=R(O);H(X.$$.fragment,Ue),Ue.forEach(p),w=V(se),k=U(se,"DIV",{class:!0});var je=R(k);H(D.$$.fragment,je),je.forEach(p),z=V(se),H(G.$$.fragment,se),N=V(se),H(W.$$.fragment,se),se.forEach(p),this.h()},h(){Y(l,"class","font-base text-2xl"),Y(e,"class","mb-12 flex flex-col gap-4"),Y(u,"class","w-full"),Y(d,"class","w-full"),Y(O,"class","w-full"),Y(k,"class","w-full"),Y(i,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(m,A){q(m,e,A),P(t,e,null),b(e,s),b(e,l),b(l,a),q(m,f,A),q(m,i,A),P(r,i,null),b(i,o),b(i,u),P(c,u,null),b(i,_),b(i,d),P(g,d,null),b(i,v),b(i,O),P(X,O,null),b(i,w),b(i,k),P(D,k,null),b(i,z),P(G,i,null),b(i,N),P(W,i,null),_e=!0},p(m,A){var ut,at,rt;const ve={};A[1]&268435456&&(ve.$$scope={dirty:A,ctx:m}),t.$set(ve);const se={};A[0]&131072&&(se.hidden=!m[17]),A[0]&131072|A[1]&268435456&&(se.$$scope={dirty:A,ctx:m}),r.$set(se);const qe={};A[0]&16384&&(qe.error=m[14].name),!h&&A[0]&2&&(h=!0,qe.value=m[1],F(()=>h=!1)),c.$set(qe);const Be={};A[0]&16384&&(Be.error=m[14].workflowType),!y&&A[0]&4&&(y=!0,Be.value=m[2],F(()=>y=!1)),g.$set(Be);const Ue={};A[0]&16384&&(Ue.error=m[14].workflowId),!j&&A[0]&8&&(j=!0,Ue.value=m[3],F(()=>j=!1)),X.$set(Ue);const je={};A[0]&16384&&(je.error=m[14].taskQueue),!le&&A[0]&16&&(le=!0,je.value=m[4],F(()=>le=!1)),D.$set(je);const Ze={};A[0]&1&&(Ze.payloads=(rt=(at=(ut=m[0])==null?void 0:ut.action)==null?void 0:at.startWorkflow)==null?void 0:rt.input),A[0]&16384&&(Ze.error=m[14].input),!Z&&A[0]&32&&(Z=!0,Ze.input=m[5],F(()=>Z=!1)),G.$set(Ze);const be={};A[0]&1&&(be.schedule=m[0]),A[0]&65537|A[1]&402653184&&(be.$$scope={dirty:A,ctx:m}),!ie&&A[0]&64&&(ie=!0,be.daysOfWeek=m[6],F(()=>ie=!1)),!ue&&A[0]&128&&(ue=!0,be.daysOfMonth=m[7],F(()=>ue=!1)),!ne&&A[0]&256&&(ne=!0,be.months=m[8],F(()=>ne=!1)),!he&&A[0]&512&&(he=!0,be.days=m[9],F(()=>he=!1)),!fe&&A[0]&1024&&(fe=!0,be.hour=m[10],F(()=>fe=!1)),!ce&&A[0]&2048&&(ce=!0,be.minute=m[11],F(()=>ce=!1)),!re&&A[0]&4096&&(re=!0,be.second=m[12],F(()=>re=!1)),!E&&A[0]&32768&&(E=!0,be.phase=m[15],F(()=>E=!1)),!me&&A[0]&8192&&(me=!0,be.cronString=m[13],F(()=>me=!1)),W.$set(be)},i(m){_e||($(t.$$.fragment,m),$(r.$$.fragment,m),$(c.$$.fragment,m),$(g.$$.fragment,m),$(X.$$.fragment,m),$(D.$$.fragment,m),$(G.$$.fragment,m),$(W.$$.fragment,m),_e=!0)},o(m){I(t.$$.fragment,m),I(r.$$.fragment,m),I(c.$$.fragment,m),I(g.$$.fragment,m),I(X.$$.fragment,m),I(D.$$.fragment,m),I(G.$$.fragment,m),I(W.$$.fragment,m),_e=!1},d(m){m&&(p(e),p(f),p(i)),L(t),L(r),L(c),L(g),L(X),L(D),L(G),L(W)}}}function Gn(n){let e,t;return e=new Gt({props:{title:n[21]}}),{c(){T(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,l){P(e,s,l),t=!0},p:pe,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){L(e,s)}}}function Xn(n){let e;return{c(){e=ee(n[22])},l(t){e=te(t,n[22])},m(t,s){q(t,e,s)},p:pe,d(t){t&&p(e)}}}function Yn(n){let e;return{c(){e=ee(n[17])},l(t){e=te(t,n[17])},m(t,s){q(t,e,s)},p(t,s){s[0]&131072&&Nt(e,t[17])},d(t){t&&p(e)}}}function Zn(n){let e;return{c(){e=ee(n[24])},l(t){e=te(t,n[24])},m(t,s){q(t,e,s)},p:pe,d(t){t&&p(e)}}}function xn(n){let e=J("common.cancel")+"",t;return{c(){t=ee(e)},l(s){t=te(s,e)},m(s,l){q(s,t,l)},p:pe,d(s){s&&p(t)}}}function el(n){let e,t,s,l,a;function f(){return n[34](n[58])}return t=new Qe({props:{disabled:n[16](n[58])||!mt(),$$slots:{default:[Zn]},$$scope:{ctx:n}}}),t.$on("click",f),l=new Qe({props:{variant:"ghost",href:n[23],$$slots:{default:[xn]},$$scope:{ctx:n}}}),{c(){e=B("div"),T(t.$$.fragment),s=M(),T(l.$$.fragment),this.h()},l(i){e=U(i,"DIV",{class:!0});var r=R(e);H(t.$$.fragment,r),s=V(r),H(l.$$.fragment,r),r.forEach(p),this.h()},h(){Y(e,"class","mt-8 flex items-center gap-2")},m(i,r){q(i,e,r),P(t,e,null),b(e,s),P(l,e,null),a=!0},p(i,r){n=i;const o={};r[0]&65536|r[1]&134217728&&(o.disabled=n[16](n[58])||!mt()),r[1]&268435456&&(o.$$scope={dirty:r,ctx:n}),t.$set(o);const u={};r[1]&268435456&&(u.$$scope={dirty:r,ctx:n}),l.$set(u)},i(i){a||($(t.$$.fragment,i),$(l.$$.fragment,i),a=!0)},o(i){I(t.$$.fragment,i),I(l.$$.fragment,i),a=!1},d(i){i&&p(e),L(t),L(l)}}}function tl(n){let e,t,s,l;const a=[Gn,Jn],f=[];function i(r,o){return r[18]?0:1}return t=i(n),s=f[t]=a[t](n),{c(){e=B("div"),s.c(),this.h()},l(r){e=U(r,"DIV",{class:!0});var o=R(e);s.l(o),o.forEach(p),this.h()},h(){Y(e,"class","pb-20")},m(r,o){q(r,e,o),f[t].m(e,null),l=!0},p(r,o){let u=t;t=i(r),t===u?f[t].p(r,o):(De(),I(f[u],1,1,()=>{f[u]=null}),We(),s=f[t],s?s.p(r,o):(s=f[t]=a[t](r),s.c()),$(s,1),s.m(e,null))},i(r){l||($(s),l=!0)},o(r){I(s),l=!1},d(r){r&&p(e),f[t].d()}}}function nl(n,e,t){let s,l,a,f;Ye(n,lt,S=>t(17,l=S)),Ye(n,Vt,S=>t(55,a=S)),Ye(n,Ft,S=>t(18,f=S));var i,r,o,u,c,h,_,d,g,y,v;let{schedule:O=null}=e,{onConfirm:X}=e,j=a.params.namespace,w=a.params.schedule,k=J(O?"schedules.edit":"schedules.create"),D=J(O?"schedules.editing":"schedules.creating"),le=J(O?"schedules.back-to-schedule":"schedules.back-to-schedules"),z=O?Xt({namespace:j,scheduleId:w}):Yt({namespace:j}),G=O?J("common.save"):J("schedules.create"),Z={},N=w??"",W=(u=(o=(r=(i=O==null?void 0:O.action)===null||i===void 0?void 0:i.startWorkflow)===null||r===void 0?void 0:r.workflowType)===null||o===void 0?void 0:o.name)!==null&&u!==void 0?u:"",ie=(_=(h=(c=O==null?void 0:O.action)===null||c===void 0?void 0:c.startWorkflow)===null||h===void 0?void 0:h.workflowId)!==null&&_!==void 0?_:"",ue=(v=(y=(g=(d=O==null?void 0:O.action)===null||d===void 0?void 0:d.startWorkflow)===null||g===void 0?void 0:g.taskQueue)===null||y===void 0?void 0:y.name)!==null&&v!==void 0?v:"",ne="",he=[],fe=[],ce=[],re="",E="",me="",_e="",de="",ae="";const Ie=(S,oe)=>{X(S,{name:N,workflowType:W,workflowId:ie,taskQueue:ue,input:ne,hour:E,minute:me,second:_e,phase:de,cronString:ae,daysOfWeek:he,daysOfMonth:fe,days:re,months:ce},oe)},Oe=S=>{const{id:oe}=S.target;t(14,Z[oe]=!1,Z),l&&dt(lt,l="",l)},ge=S=>{const{value:oe,id:m}=S.target;oe.trim()?t(14,Z[m]=!1,Z):t(14,Z[m]=!0,Z)},Ee=S=>{if(!ne)return t(14,Z.input=!1,Z),!0;try{return JSON.parse(S),t(14,Z.input=!1,Z),!0}catch{return t(14,Z.input=!0,Z),!1}};Lt(()=>dt(lt,l="",l));function Se(S){N=S,t(1,N)}function Me(S){W=S,t(2,W)}function Ve(S){ie=S,t(3,ie)}function Te(S){ue=S,t(4,ue)}function He(S){ne=S,t(5,ne)}const Fe=S=>Ie(S,O);function Pe(S){he=S,t(6,he)}function Ke(S){fe=S,t(7,fe)}function Le(S){ce=S,t(8,ce)}function Re(S){re=S,t(9,re)}function Ne(S){E=S,t(10,E)}function Je(S){me=S,t(11,me)}function Ae(S){_e=S,t(12,_e)}function C(S){de=S,t(15,de)}function x(S){ae=S,t(13,ae)}return n.$$set=S=>{"schedule"in S&&t(0,O=S.schedule),"onConfirm"in S&&t(28,X=S.onConfirm)},n.$$.update=()=>{n.$$.dirty[0]&16382&&t(16,s=S=>!N||!W||!ie||!ue||!Ee(ne)?!0:S==="interval"?!re&&!E&&!me&&!_e:S==="week"?!he.length:S==="month"?!fe.length||!ce.length:S==="string"?!ae:!1)},[O,N,W,ie,ue,ne,he,fe,ce,re,E,me,_e,ae,Z,de,s,l,f,w,k,D,le,z,G,Ie,Oe,ge,X,Se,Me,Ve,Te,He,Fe,Pe,Ke,Le,Re,Ne,Je,Ae,C,x]}class Ol extends we{constructor(e){super(),ke(this,e,nl,tl,$e,{schedule:0,onConfirm:28},null,[-1,-1])}}export{Ol as S}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-service.r3cr2EFk.js b/ui/assets/local/_app/immutable/chunks/schedule-service.ryU1eeth.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/schedule-service.r3cr2EFk.js rename to ui/assets/local/_app/immutable/chunks/schedule-service.ryU1eeth.js index b99ba7d6e..386765f27 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-service.r3cr2EFk.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-service.ryU1eeth.js @@ -1 +1 @@ -import"./i18next.dQ3wfJvm.js";import{s as d}from"./parse-with-big-int.e3oI4SEy.js";import{r as a,a as r}from"./route-for-api.Fwy3ccvq.js";import{v as h}from"./toaster.JA1rZe2a.js";const S=async(t,e=fetch)=>(o=100,s="")=>{const n=a("schedules",{namespace:t});return r(n,{params:{maximumPageSize:String(o),nextPageToken:s},request:e}).then(({schedules:u,nextPageToken:c})=>({items:u,nextPageToken:c?String(c):""}))};async function g(t,e=fetch){const o=a("schedule",t);return r(o,{request:e})}async function b(t,e=fetch){const o=a("schedule",t);return r(o,{request:e,options:{method:"DELETE"}})}async function T({namespace:t,scheduleId:e,body:o}){let s="";const n=i=>{var p;return s=((p=i==null?void 0:i.body)==null?void 0:p.message)??`Error creating schedule: ${i.status}: ${i.statusText}`},u=a("schedule",{namespace:t,scheduleId:e}),{conflictToken:c}=await r(u,{options:{method:"POST",body:d({request_id:h(),...o})},onError:n});return{conflictToken:c,error:s}}async function P({namespace:t,scheduleId:e,body:o}){let s="";const n=c=>{var i;return s=((i=c==null?void 0:c.body)==null?void 0:i.message)??`Error editing schedule: ${c.status}: ${c.statusText}`},u=a("schedule.edit",{namespace:t,scheduleId:e});return await r(u,{options:{method:"POST",body:d({request_id:h(),...o})},onError:n}),{error:s}}async function q({namespace:t,scheduleId:e,reason:o}){const s={patch:{pause:o}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})},onError:u=>console.error(u)})}async function E({namespace:t,scheduleId:e,reason:o}){const s={patch:{unpause:o}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})}})}async function w({namespace:t,scheduleId:e,overlapPolicy:o}){const s={patch:{triggerImmediately:{overlapPolicy:o}}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})}})}async function O({namespace:t,scheduleId:e,overlapPolicy:o,startTime:s,endTime:n}){const u={patch:{backfillRequest:[{overlapPolicy:o,startTime:s,endTime:n}]}},c=a("schedule.patch",{namespace:t,scheduleId:e});return await r(c,{options:{method:"POST",body:d({...u,request_id:h()})}})}export{S as a,O as b,T as c,b as d,P as e,g as f,q as p,w as t,E as u}; +import"./i18next.dQ3wfJvm.js";import{s as d}from"./parse-with-big-int.e3oI4SEy.js";import{r as a,a as r}from"./route-for-api.n9XkRS8h.js";import{v as h}from"./toaster.tT6uD5UN.js";const S=async(t,e=fetch)=>(o=100,s="")=>{const n=a("schedules",{namespace:t});return r(n,{params:{maximumPageSize:String(o),nextPageToken:s},request:e}).then(({schedules:u,nextPageToken:c})=>({items:u,nextPageToken:c?String(c):""}))};async function g(t,e=fetch){const o=a("schedule",t);return r(o,{request:e})}async function b(t,e=fetch){const o=a("schedule",t);return r(o,{request:e,options:{method:"DELETE"}})}async function T({namespace:t,scheduleId:e,body:o}){let s="";const n=i=>{var p;return s=((p=i==null?void 0:i.body)==null?void 0:p.message)??`Error creating schedule: ${i.status}: ${i.statusText}`},u=a("schedule",{namespace:t,scheduleId:e}),{conflictToken:c}=await r(u,{options:{method:"POST",body:d({request_id:h(),...o})},onError:n});return{conflictToken:c,error:s}}async function P({namespace:t,scheduleId:e,body:o}){let s="";const n=c=>{var i;return s=((i=c==null?void 0:c.body)==null?void 0:i.message)??`Error editing schedule: ${c.status}: ${c.statusText}`},u=a("schedule.edit",{namespace:t,scheduleId:e});return await r(u,{options:{method:"POST",body:d({request_id:h(),...o})},onError:n}),{error:s}}async function q({namespace:t,scheduleId:e,reason:o}){const s={patch:{pause:o}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})},onError:u=>console.error(u)})}async function E({namespace:t,scheduleId:e,reason:o}){const s={patch:{unpause:o}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})}})}async function w({namespace:t,scheduleId:e,overlapPolicy:o}){const s={patch:{triggerImmediately:{overlapPolicy:o}}},n=a("schedule.patch",{namespace:t,scheduleId:e});return await r(n,{options:{method:"POST",body:d({...s,request_id:h()})}})}async function O({namespace:t,scheduleId:e,overlapPolicy:o,startTime:s,endTime:n}){const u={patch:{backfillRequest:[{overlapPolicy:o,startTime:s,endTime:n}]}},c=a("schedule.patch",{namespace:t,scheduleId:e});return await r(c,{options:{method:"POST",body:d({...u,request_id:h()})}})}export{S as a,O as b,T as c,b as d,P as e,g as f,q as p,w as t,E as u}; diff --git a/ui/assets/local/_app/immutable/chunks/schedules.7ZX-HLZK.js b/ui/assets/local/_app/immutable/chunks/schedules.HxDl_85W.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/schedules.7ZX-HLZK.js rename to ui/assets/local/_app/immutable/chunks/schedules.HxDl_85W.js index 0ae010df3..070d9ae1b 100644 --- a/ui/assets/local/_app/immutable/chunks/schedules.7ZX-HLZK.js +++ b/ui/assets/local/_app/immutable/chunks/schedules.HxDl_85W.js @@ -1 +1 @@ -import{s as O,x as I,k as Q,v as F,g as v,z,A as T,e as C,a as H,b as M,d as b,h as L,j,l as N}from"./scheduler.AWtTlMeO.js";import{S as P,i as U,g as V,b as S,e as G,t as w,c as J,a as K,m as R,d as X}from"./index.91lpp7Ff.js";import{C as Y}from"./code-block.PIA3laOL.js";import{t as y}from"./translate.HrioCK44.js";import{s as W}from"./parse-with-big-int.e3oI4SEy.js";import{w as E,g as q}from"./entry.49-_VqMH.js";import{c as Z,e as x}from"./schedule-service.r3cr2EFk.js";import{e as A}from"./encode-payload.fJnyVVKQ.js";import{h as $,i as ee}from"./route-for.LRddn_DS.js";function D(s){let e,n,r=y("common.timezone",{timezone:s[2]})+"",a,t,i,l;return t=new Y({props:{copyable:!0,inline:s[3],testId:"schedule-calendar",language:"json",content:W(s[0]||s[1])}}),{c(){e=C("div"),n=C("p"),a=H(),J(t.$$.fragment),this.h()},l(o){e=M(o,"DIV",{class:!0});var c=b(e);n=M(c,"P",{});var u=b(n);u.forEach(v),a=L(c),K(t.$$.fragment,c),c.forEach(v),this.h()},h(){j(e,"class",i="flex flex-col "+s[4].class)},m(o,c){Q(o,e,c),N(e,n),n.innerHTML=r,N(e,a),R(t,e,null),l=!0},p(o,c){(!l||c&4)&&r!==(r=y("common.timezone",{timezone:o[2]})+"")&&(n.innerHTML=r);const u={};c&8&&(u.inline=o[3]),c&3&&(u.content=W(o[0]||o[1])),t.$set(u),(!l||c&16&&i!==(i="flex flex-col "+o[4].class))&&j(e,"class",i)},i(o){l||(w(t.$$.fragment,o),l=!0)},o(o){S(t.$$.fragment,o),l=!1},d(o){o&&v(e),X(t)}}}function te(s){let e=[s[0],s[1]],n,r,a=D(s);return{c(){a.c(),n=I()},l(t){a.l(t),n=I()},m(t,i){a.m(t,i),Q(t,n,i),r=!0},p(t,[i]){i&3&&O(e,e=[t[0],t[1]])?(V(),S(a,1,1,F),G(),a=D(t),a.c(),w(a,1),a.m(n.parentNode,n)):a.p(t,i)},i(t){r||(w(a),r=!0)},o(t){S(a),r=!1},d(t){t&&v(n),a.d(t)}}}function ne(s,e,n){let{calendar:r=void 0}=e,{interval:a=void 0}=e,{timezoneName:t="UTC"}=e,{inline:i=!1}=e;return s.$$set=l=>{n(4,e=z(z({},e),T(l))),"calendar"in l&&n(0,r=l.calendar),"interval"in l&&n(1,a=l.interval),"timezoneName"in l&&n(2,t=l.timezoneName),"inline"in l&&n(3,i=l.inline)},e=T(e),[r,a,t,i,e]}class he extends P{constructor(e){super(),U(this,e,ne,te,O,{calendar:0,interval:1,timezoneName:2,inline:3})}}const _=s=>s?parseInt(s):0,se=(s,e,n,r)=>`${_(s)*60*60*24+_(e)*60*60+_(n)*60+_(r)}s`,ae=({months:s=[],daysOfMonth:e=[],daysOfWeek:n=[]})=>{var l,o;const r=s.sort((c,u)=>parseInt(c)-parseInt(u)).join(","),a=e.sort((c,u)=>c-u).join(","),i=(((o=(l=n==null?void 0:n[0])==null?void 0:l.split(","))==null?void 0:o.length)>1?n[0].split(","):n).sort((c,u)=>parseInt(c)-parseInt(u)).join(",");return{month:r,dayOfMonth:a,dayOfWeek:i}},B=(s,e,n)=>{const{hour:r,minute:a,second:t,phase:i,cronString:l}=e,{preset:o,months:c,days:u,daysOfMonth:d,daysOfWeek:f}=n;if(o==="string"){const m=`${l}#${l}`;s.schedule.spec.cronString=[m],s.schedule.spec.calendar=[],s.schedule.spec.interval=[]}else if(o==="interval"){const m=se(u,r,a,t);s.schedule.spec.interval=[{interval:m,phase:i||"0s"}],s.schedule.spec.cronString=[],s.schedule.spec.calendar=[]}else{const{month:m,dayOfMonth:k,dayOfWeek:g}=ae({months:c,daysOfMonth:d,daysOfWeek:f});s.schedule.spec.calendar=[{year:"*",month:o==="month"?m:"",dayOfMonth:o==="month"?k:"",dayOfWeek:o==="week"?g:"",hour:r,minute:a,second:t}],s.schedule.spec.interval=[],s.schedule.spec.cronString=[]}},pe=async({action:s,spec:e,presets:n})=>{const{namespace:r,name:a,workflowId:t,workflowType:i,taskQueue:l,input:o}=s;let c;if(o)try{c=await A(o)}catch(f){p.set(`${y("data-encoder.encode-error")}: ${f==null?void 0:f.message}`);return}const u={schedule_id:a.trim(),schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:t,workflowType:{name:i},taskQueue:{name:l},input:c?{payloads:c}:null}}}};B(u,e,n),h.set(!0);const{error:d}=await Z({scheduleId:a,namespace:r,body:u});d?(p.set(d),h.set(!1)):setTimeout(()=>{p.set(""),h.set(!1),q($({namespace:r}))},2e3)},ge=async({action:s,spec:e,presets:n},r,a)=>{const{namespace:t,name:i,workflowId:l,workflowType:o,taskQueue:c,input:u}=s;let d;if(u)try{d=await A(u)}catch(g){p.set(`${y("data-encoder.encode-error")}: ${g==null?void 0:g.message}`);return}const{preset:f}=n,m={schedule_id:a,schedule:{...r,action:{startWorkflow:{...r.action.startWorkflow,workflowId:l,workflowType:{name:o},taskQueue:{name:c},input:d?{payloads:d}:null}}}};f==="existing"?m.schedule.spec=r.spec:(B(m,e,n),m.schedule.spec.structuredCalendar=[]),h.set(!0);const{error:k}=await x({namespace:t,scheduleId:a,body:m});k?(p.set(k),h.set(!1)):setTimeout(()=>{q(ee({namespace:t,scheduleId:i})),p.set(""),h.set(!1)},2e3)},h=E(!1),p=E("");export{he as S,pe as a,p as e,h as l,ge as s}; +import{s as O,x as I,k as Q,v as F,g as v,z,A as T,e as C,a as H,b as M,d as b,h as L,j,l as N}from"./scheduler.AWtTlMeO.js";import{S as P,i as U,g as V,b as S,e as G,t as w,c as J,a as K,m as R,d as X}from"./index.91lpp7Ff.js";import{C as Y}from"./code-block.XXHS15kp.js";import{t as y}from"./translate.HrioCK44.js";import{s as W}from"./parse-with-big-int.e3oI4SEy.js";import{w as E,g as q}from"./entry.Yz1YyohR.js";import{c as Z,e as x}from"./schedule-service.ryU1eeth.js";import{e as A}from"./encode-payload.mYRoJRmH.js";import{h as $,i as ee}from"./route-for.ezVRK9wE.js";function D(s){let e,n,r=y("common.timezone",{timezone:s[2]})+"",a,t,i,l;return t=new Y({props:{copyable:!0,inline:s[3],testId:"schedule-calendar",language:"json",content:W(s[0]||s[1])}}),{c(){e=C("div"),n=C("p"),a=H(),J(t.$$.fragment),this.h()},l(o){e=M(o,"DIV",{class:!0});var c=b(e);n=M(c,"P",{});var u=b(n);u.forEach(v),a=L(c),K(t.$$.fragment,c),c.forEach(v),this.h()},h(){j(e,"class",i="flex flex-col "+s[4].class)},m(o,c){Q(o,e,c),N(e,n),n.innerHTML=r,N(e,a),R(t,e,null),l=!0},p(o,c){(!l||c&4)&&r!==(r=y("common.timezone",{timezone:o[2]})+"")&&(n.innerHTML=r);const u={};c&8&&(u.inline=o[3]),c&3&&(u.content=W(o[0]||o[1])),t.$set(u),(!l||c&16&&i!==(i="flex flex-col "+o[4].class))&&j(e,"class",i)},i(o){l||(w(t.$$.fragment,o),l=!0)},o(o){S(t.$$.fragment,o),l=!1},d(o){o&&v(e),X(t)}}}function te(s){let e=[s[0],s[1]],n,r,a=D(s);return{c(){a.c(),n=I()},l(t){a.l(t),n=I()},m(t,i){a.m(t,i),Q(t,n,i),r=!0},p(t,[i]){i&3&&O(e,e=[t[0],t[1]])?(V(),S(a,1,1,F),G(),a=D(t),a.c(),w(a,1),a.m(n.parentNode,n)):a.p(t,i)},i(t){r||(w(a),r=!0)},o(t){S(a),r=!1},d(t){t&&v(n),a.d(t)}}}function ne(s,e,n){let{calendar:r=void 0}=e,{interval:a=void 0}=e,{timezoneName:t="UTC"}=e,{inline:i=!1}=e;return s.$$set=l=>{n(4,e=z(z({},e),T(l))),"calendar"in l&&n(0,r=l.calendar),"interval"in l&&n(1,a=l.interval),"timezoneName"in l&&n(2,t=l.timezoneName),"inline"in l&&n(3,i=l.inline)},e=T(e),[r,a,t,i,e]}class he extends P{constructor(e){super(),U(this,e,ne,te,O,{calendar:0,interval:1,timezoneName:2,inline:3})}}const _=s=>s?parseInt(s):0,se=(s,e,n,r)=>`${_(s)*60*60*24+_(e)*60*60+_(n)*60+_(r)}s`,ae=({months:s=[],daysOfMonth:e=[],daysOfWeek:n=[]})=>{var l,o;const r=s.sort((c,u)=>parseInt(c)-parseInt(u)).join(","),a=e.sort((c,u)=>c-u).join(","),i=(((o=(l=n==null?void 0:n[0])==null?void 0:l.split(","))==null?void 0:o.length)>1?n[0].split(","):n).sort((c,u)=>parseInt(c)-parseInt(u)).join(",");return{month:r,dayOfMonth:a,dayOfWeek:i}},B=(s,e,n)=>{const{hour:r,minute:a,second:t,phase:i,cronString:l}=e,{preset:o,months:c,days:u,daysOfMonth:d,daysOfWeek:f}=n;if(o==="string"){const m=`${l}#${l}`;s.schedule.spec.cronString=[m],s.schedule.spec.calendar=[],s.schedule.spec.interval=[]}else if(o==="interval"){const m=se(u,r,a,t);s.schedule.spec.interval=[{interval:m,phase:i||"0s"}],s.schedule.spec.cronString=[],s.schedule.spec.calendar=[]}else{const{month:m,dayOfMonth:k,dayOfWeek:g}=ae({months:c,daysOfMonth:d,daysOfWeek:f});s.schedule.spec.calendar=[{year:"*",month:o==="month"?m:"",dayOfMonth:o==="month"?k:"",dayOfWeek:o==="week"?g:"",hour:r,minute:a,second:t}],s.schedule.spec.interval=[],s.schedule.spec.cronString=[]}},pe=async({action:s,spec:e,presets:n})=>{const{namespace:r,name:a,workflowId:t,workflowType:i,taskQueue:l,input:o}=s;let c;if(o)try{c=await A(o)}catch(f){p.set(`${y("data-encoder.encode-error")}: ${f==null?void 0:f.message}`);return}const u={schedule_id:a.trim(),schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:t,workflowType:{name:i},taskQueue:{name:l},input:c?{payloads:c}:null}}}};B(u,e,n),h.set(!0);const{error:d}=await Z({scheduleId:a,namespace:r,body:u});d?(p.set(d),h.set(!1)):setTimeout(()=>{p.set(""),h.set(!1),q($({namespace:r}))},2e3)},ge=async({action:s,spec:e,presets:n},r,a)=>{const{namespace:t,name:i,workflowId:l,workflowType:o,taskQueue:c,input:u}=s;let d;if(u)try{d=await A(u)}catch(g){p.set(`${y("data-encoder.encode-error")}: ${g==null?void 0:g.message}`);return}const{preset:f}=n,m={schedule_id:a,schedule:{...r,action:{startWorkflow:{...r.action.startWorkflow,workflowId:l,workflowType:{name:o},taskQueue:{name:c},input:d?{payloads:d}:null}}}};f==="existing"?m.schedule.spec=r.spec:(B(m,e,n),m.schedule.spec.structuredCalendar=[]),h.set(!0);const{error:k}=await x({namespace:t,scheduleId:a,body:m});k?(p.set(k),h.set(!1)):setTimeout(()=>{q(ee({namespace:t,scheduleId:i})),p.set(""),h.set(!1)},2e3)},h=E(!1),p=E("");export{he as S,pe as a,p as e,h as l,ge as s}; diff --git a/ui/assets/local/_app/immutable/chunks/search-attributes.zceZ6mlR.js b/ui/assets/local/_app/immutable/chunks/search-attributes.lxP-EZjZ.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/search-attributes.zceZ6mlR.js rename to ui/assets/local/_app/immutable/chunks/search-attributes.lxP-EZjZ.js index b7a0d7764..d23cca1ab 100644 --- a/ui/assets/local/_app/immutable/chunks/search-attributes.zceZ6mlR.js +++ b/ui/assets/local/_app/immutable/chunks/search-attributes.lxP-EZjZ.js @@ -1 +1 @@ -import{d as r,w as o}from"./entry.49-_VqMH.js";import{C as c}from"./scheduler.AWtTlMeO.js";const i=o({customAttributes:{},systemAttributes:{}}),b=r([i],([t])=>({...t.customAttributes,...t.systemAttributes}));r([i],([t])=>t.systemAttributes);const l=r([i],([t])=>t.customAttributes),p=t=>{const e=c(l);return t in e},f=(t,e)=>{var s;return e in(((s=t==null?void 0:t.searchAttributes)==null?void 0:s.indexedFields)??{})},m=r([b],([t])=>t?Object.entries(t).map(([e,s])=>({label:e,value:e,type:s})):[]),h=r([m],([t])=>{const e=["ExecutionStatus","WorkflowId","WorkflowType","RunId","StartTime","CloseTime"];return t.sort((s,u)=>s.labelu.label?1:0).sort((s,u)=>{const n=e.indexOf(s.value),a=e.indexOf(u.value);return n<0?1:a<0?-1:n-a})});export{i as a,h as b,l as c,p as i,b as s,f as w}; +import{d as r,w as o}from"./entry.Yz1YyohR.js";import{C as c}from"./scheduler.AWtTlMeO.js";const i=o({customAttributes:{},systemAttributes:{}}),b=r([i],([t])=>({...t.customAttributes,...t.systemAttributes}));r([i],([t])=>t.systemAttributes);const l=r([i],([t])=>t.customAttributes),p=t=>{const e=c(l);return t in e},f=(t,e)=>{var s;return e in(((s=t==null?void 0:t.searchAttributes)==null?void 0:s.indexedFields)??{})},m=r([b],([t])=>t?Object.entries(t).map(([e,s])=>({label:e,value:e,type:s})):[]),h=r([m],([t])=>{const e=["ExecutionStatus","WorkflowId","WorkflowType","RunId","StartTime","CloseTime"];return t.sort((s,u)=>s.labelu.label?1:0).sort((s,u)=>{const n=e.indexOf(s.value),a=e.indexOf(u.value);return n<0?1:a<0?-1:n-a})});export{i as a,h as b,l as c,p as i,b as s,f as w}; diff --git a/ui/assets/local/_app/immutable/chunks/settings-service.gk5MAAVb.js b/ui/assets/local/_app/immutable/chunks/settings-service.LNiLsWYo.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/settings-service.gk5MAAVb.js rename to ui/assets/local/_app/immutable/chunks/settings-service.LNiLsWYo.js index 064179225..cd4958b15 100644 --- a/ui/assets/local/_app/immutable/chunks/settings-service.gk5MAAVb.js +++ b/ui/assets/local/_app/immutable/chunks/settings-service.LNiLsWYo.js @@ -1 +1 @@ -import{r as w,a as b,g as e}from"./route-for-api.Fwy3ccvq.js";var t={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function E(){return t.VITE_TEMPORAL_UI_BUILD_TARGET??null}const f=/(tmprl\.cloud|tmprl-test\.cloud)$/,A=async(u=fetch)=>{var l,o,c,d,i;const m=w("settings"),r=await b(m,{request:u}),a=E();return{auth:{enabled:!!((l=r==null?void 0:r.Auth)!=null&&l.Enabled),options:(o=r==null?void 0:r.Auth)==null?void 0:o.Options},bannerText:r==null?void 0:r.BannerText,baseUrl:e(),codec:{endpoint:(c=r==null?void 0:r.Codec)==null?void 0:c.Endpoint,passAccessToken:(d=r==null?void 0:r.Codec)==null?void 0:d.PassAccessToken,includeCredentials:(i=r==null?void 0:r.Codec)==null?void 0:i.IncludeCredentials},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,workflowTerminateDisabled:!!(r!=null&&r.WorkflowTerminateDisabled),workflowCancelDisabled:!!(r!=null&&r.WorkflowCancelDisabled),workflowSignalDisabled:!!(r!=null&&r.WorkflowSignalDisabled),workflowResetDisabled:!!(r!=null&&r.WorkflowResetDisabled),batchActionsDisabled:!!(r!=null&&r.BatchActionsDisabled),hideWorkflowQueryErrors:!!(r!=null&&r.HideWorkflowQueryErrors),showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return a?a==="cloud":f.test(window.location.hostname)},get isLocal(){return a?a==="local":f.test(window.location.hostname)},envOverride:!!a},version:r==null?void 0:r.Version}};export{A as f,f as i}; +import{r as w,a as b,g as e}from"./route-for-api.n9XkRS8h.js";var t={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function E(){return t.VITE_TEMPORAL_UI_BUILD_TARGET??null}const f=/(tmprl\.cloud|tmprl-test\.cloud)$/,A=async(u=fetch)=>{var l,o,c,d,i;const m=w("settings"),r=await b(m,{request:u}),a=E();return{auth:{enabled:!!((l=r==null?void 0:r.Auth)!=null&&l.Enabled),options:(o=r==null?void 0:r.Auth)==null?void 0:o.Options},bannerText:r==null?void 0:r.BannerText,baseUrl:e(),codec:{endpoint:(c=r==null?void 0:r.Codec)==null?void 0:c.Endpoint,passAccessToken:(d=r==null?void 0:r.Codec)==null?void 0:d.PassAccessToken,includeCredentials:(i=r==null?void 0:r.Codec)==null?void 0:i.IncludeCredentials},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,workflowTerminateDisabled:!!(r!=null&&r.WorkflowTerminateDisabled),workflowCancelDisabled:!!(r!=null&&r.WorkflowCancelDisabled),workflowSignalDisabled:!!(r!=null&&r.WorkflowSignalDisabled),workflowResetDisabled:!!(r!=null&&r.WorkflowResetDisabled),batchActionsDisabled:!!(r!=null&&r.BatchActionsDisabled),hideWorkflowQueryErrors:!!(r!=null&&r.HideWorkflowQueryErrors),showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return a?a==="cloud":f.test(window.location.hostname)},get isLocal(){return a?a==="local":f.test(window.location.hostname)},envOverride:!!a},version:r==null?void 0:r.Version}};export{A as f,f as i}; diff --git a/ui/assets/local/_app/immutable/chunks/settings.TuHg1P9A.js b/ui/assets/local/_app/immutable/chunks/settings.TuHg1P9A.js deleted file mode 100644 index 13ce49dc3..000000000 --- a/ui/assets/local/_app/immutable/chunks/settings.TuHg1P9A.js +++ /dev/null @@ -1 +0,0 @@ -import{d as t}from"./entry.49-_VqMH.js";import{p as a}from"./stores.BjeHb2_D.js";const r=t([a],([s])=>s.data.settings);export{r as s}; diff --git a/ui/assets/local/_app/immutable/chunks/settings.oP-XN2ls.js b/ui/assets/local/_app/immutable/chunks/settings.oP-XN2ls.js new file mode 100644 index 000000000..5fb4f1b7b --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/settings.oP-XN2ls.js @@ -0,0 +1 @@ +import{d as t}from"./entry.Yz1YyohR.js";import{p as a}from"./stores.meYYndLY.js";const r=t([a],([s])=>s.data.settings);export{r as s}; diff --git a/ui/assets/local/_app/immutable/chunks/simplify-attributes.CFz5PLMp.js b/ui/assets/local/_app/immutable/chunks/simplify-attributes.H9OUGjUS.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/simplify-attributes.CFz5PLMp.js rename to ui/assets/local/_app/immutable/chunks/simplify-attributes.H9OUGjUS.js index 9778e925a..3552f38d1 100644 --- a/ui/assets/local/_app/immutable/chunks/simplify-attributes.CFz5PLMp.js +++ b/ui/assets/local/_app/immutable/chunks/simplify-attributes.H9OUGjUS.js @@ -1 +1 @@ -import{f as r}from"./time-format.gNW0s4c3.js";import{f as s}from"./format-time.6T8OwT4v.js";const n=["closeTime","createTime","currentAttemptScheduledTime","earliestTime","eventTime","executionTime","expirationTime","expireTime","lastAccessTime","lastHeartbeatTime","lastStartedTime","lastUpdateTime","latestTime","releaseTime","scheduledTime","startedTime","startTime","workflowExecutionExpirationTime"],f=["backoffStartInterval","defaultWorkflowTaskTimeout","firstWorkflowTaskBackoff","heartbeatTimeout","initialInterval","maximumInterval","scheduleToCloseTimeout","scheduleToStartTimeout","startToCloseTimeout","startToFireTimeout","workflowExecutionRetentionPeriod","workflowExecutionRetentionTtl","workflowExecutionTimeout","workflowRunTimeout","workflowTaskTimeout"],a=e=>{for(const t of n)if(t===e)return!0;return!1},m=e=>{for(const t of f)if(t===e)return!0;return!1},l=e=>{if(e===null||e===void 0||typeof e!="object")return!1;const t=Object.keys(e),[o]=t;return!(t.length!==1||typeof e[o]!="string")},T=e=>{for(const t of Object.values(e))return t};function k(e,t=!1){for(const[o,i]of Object.entries(e))l(i)&&(e[o]=T(i)),a(o)&&!t&&(e[o]=r(i)),m(o)&&(e[o]=s(i));return e}export{k as s}; +import{f as r}from"./time-format.Z3EDfPl8.js";import{f as s}from"./format-time.6T8OwT4v.js";const n=["closeTime","createTime","currentAttemptScheduledTime","earliestTime","eventTime","executionTime","expirationTime","expireTime","lastAccessTime","lastHeartbeatTime","lastStartedTime","lastUpdateTime","latestTime","releaseTime","scheduledTime","startedTime","startTime","workflowExecutionExpirationTime"],f=["backoffStartInterval","defaultWorkflowTaskTimeout","firstWorkflowTaskBackoff","heartbeatTimeout","initialInterval","maximumInterval","scheduleToCloseTimeout","scheduleToStartTimeout","startToCloseTimeout","startToFireTimeout","workflowExecutionRetentionPeriod","workflowExecutionRetentionTtl","workflowExecutionTimeout","workflowRunTimeout","workflowTaskTimeout"],a=e=>{for(const t of n)if(t===e)return!0;return!1},m=e=>{for(const t of f)if(t===e)return!0;return!1},l=e=>{if(e===null||e===void 0||typeof e!="object")return!1;const t=Object.keys(e),[o]=t;return!(t.length!==1||typeof e[o]!="string")},T=e=>{for(const t of Object.values(e))return t};function k(e,t=!1){for(const[o,i]of Object.entries(e))l(i)&&(e[o]=T(i)),a(o)&&!t&&(e[o]=r(i)),m(o)&&(e[o]=s(i));return e}export{k as s}; diff --git a/ui/assets/local/_app/immutable/chunks/split-button.-WuMdkyr.js b/ui/assets/local/_app/immutable/chunks/split-button.hBguUu6q.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/split-button.-WuMdkyr.js rename to ui/assets/local/_app/immutable/chunks/split-button.hBguUu6q.js index bbbecc0da..ad9f7e4b2 100644 --- a/ui/assets/local/_app/immutable/chunks/split-button.-WuMdkyr.js +++ b/ui/assets/local/_app/immutable/chunks/split-button.hBguUu6q.js @@ -1 +1 @@ -import{s as q,z as M,A as S,e as j,a as I,b as z,d as C,h as L,g,j as E,k as D,l as N,B as V,t as F,f as G,n as H,p as J,u as K,q as O,r as P}from"./scheduler.AWtTlMeO.js";import{S as Q,i as R,c as h,a as p,m as k,t as r,b as c,d as A,g as T,e as U}from"./index.91lpp7Ff.js";import{B as W}from"./button.J_9D2qip.js";import{I as X}from"./icon.hlu3-iXK.js";import{M as Y,a as Z,b as $}from"./menu.clBpn3HP.js";function B(i){let e,a;return e=new X({props:{name:i[2]}}),{c(){h(e.$$.fragment)},l(n){p(e.$$.fragment,n)},m(n,t){k(e,n,t),a=!0},p(n,t){const l={};t&4&&(l.name=n[2]),e.$set(l)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){A(e,n)}}}function v(i){let e,a,n,t=i[2]&&B(i);return{c(){t&&t.c(),e=I(),a=F(i[0])},l(l){t&&t.l(l),e=L(l),a=G(l,i[0])},m(l,o){t&&t.m(l,o),D(l,e,o),D(l,a,o),n=!0},p(l,o){l[2]?t?(t.p(l,o),o&4&&r(t,1)):(t=B(l),t.c(),r(t,1),t.m(e.parentNode,e)):t&&(T(),c(t,1,1,()=>{t=null}),U()),(!n||o&1)&&H(a,l[0])},i(l){n||(r(t),n=!0)},o(l){c(t),n=!1},d(l){l&&(g(e),g(a)),t&&t.d(l)}}}function y(i){let e;const a=i[8].default,n=J(a,i,i[10],null);return{c(){n&&n.c()},l(t){n&&n.l(t)},m(t,l){n&&n.m(t,l),e=!0},p(t,l){n&&n.p&&(!e||l&1024)&&K(n,a,t,t[10],e?P(a,t[10],l,null):O(t[10]),null)},i(t){e||(r(n,t),e=!0)},o(t){c(n,t),e=!1},d(t){n&&n.d(t)}}}function w(i){let e,a,n,t,l,o,b;return a=new W({props:{disabled:i[4]||i[6],id:i[3]+"-primary-button",$$slots:{default:[v]},$$scope:{ctx:i}}}),a.$on("click",i[9]),t=new Z({props:{class:"max-w-fit grow-0 px-3",id:i[3]+"-menu-button",label:i[1],controls:i[3]+"-menu",variant:"primary",disabled:i[4],hasIndicator:!0}}),o=new $({props:{id:i[3]+"-menu",position:i[5],class:"w-full",$$slots:{default:[y]},$$scope:{ctx:i}}}),{c(){e=j("div"),h(a.$$.fragment),n=I(),h(t.$$.fragment),l=I(),h(o.$$.fragment),this.h()},l(s){e=z(s,"DIV",{class:!0});var f=C(e);p(a.$$.fragment,f),n=L(f),p(t.$$.fragment,f),f.forEach(g),l=L(s),p(o.$$.fragment,s),this.h()},h(){E(e,"class","button-group flex h-10 cursor-pointer flex-row gap-[1px]")},m(s,f){D(s,e,f),k(a,e,null),N(e,n),k(t,e,null),D(s,l,f),k(o,s,f),b=!0},p(s,f){const d={};f&80&&(d.disabled=s[4]||s[6]),f&8&&(d.id=s[3]+"-primary-button"),f&1029&&(d.$$scope={dirty:f,ctx:s}),a.$set(d);const m={};f&8&&(m.id=s[3]+"-menu-button"),f&2&&(m.label=s[1]),f&8&&(m.controls=s[3]+"-menu"),f&16&&(m.disabled=s[4]),t.$set(m);const _={};f&8&&(_.id=s[3]+"-menu"),f&32&&(_.position=s[5]),f&1024&&(_.$$scope={dirty:f,ctx:s}),o.$set(_)},i(s){b||(r(a.$$.fragment,s),r(t.$$.fragment,s),r(o.$$.fragment,s),b=!0)},o(s){c(a.$$.fragment,s),c(t.$$.fragment,s),c(o.$$.fragment,s),b=!1},d(s){s&&(g(e),g(l)),A(a),A(t),A(o,s)}}}function x(i){let e,a;return e=new Y({props:{class:i[7].class,$$slots:{default:[w]},$$scope:{ctx:i}}}),{c(){h(e.$$.fragment)},l(n){p(e.$$.fragment,n)},m(n,t){k(e,n,t),a=!0},p(n,[t]){const l={};t&128&&(l.class=n[7].class),t&1151&&(l.$$scope={dirty:t,ctx:n}),e.$set(l)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){A(e,n)}}}function ee(i,e,a){let{$$slots:n={},$$scope:t}=e,{label:l}=e,{menuLabel:o}=e,{icon:b=void 0}=e,{id:s}=e,{disabled:f=!1}=e,{position:d="left"}=e,{primaryActionDisabled:m=!1}=e;function _(u){V.call(this,i,u)}return i.$$set=u=>{a(7,e=M(M({},e),S(u))),"label"in u&&a(0,l=u.label),"menuLabel"in u&&a(1,o=u.menuLabel),"icon"in u&&a(2,b=u.icon),"id"in u&&a(3,s=u.id),"disabled"in u&&a(4,f=u.disabled),"position"in u&&a(5,d=u.position),"primaryActionDisabled"in u&&a(6,m=u.primaryActionDisabled),"$$scope"in u&&a(10,t=u.$$scope)},e=S(e),[l,o,b,s,f,d,m,e,n,_,t]}class ie extends Q{constructor(e){super(),R(this,e,ee,x,q,{label:0,menuLabel:1,icon:2,id:3,disabled:4,position:5,primaryActionDisabled:6})}}export{ie as S}; +import{s as q,z as M,A as S,e as j,a as I,b as z,d as C,h as L,g,j as E,k as D,l as N,B as V,t as F,f as G,n as H,p as J,u as K,q as O,r as P}from"./scheduler.AWtTlMeO.js";import{S as Q,i as R,c as h,a as p,m as k,t as r,b as c,d as A,g as T,e as U}from"./index.91lpp7Ff.js";import{B as W}from"./button.bjyERRn9.js";import{I as X}from"./icon.hlu3-iXK.js";import{M as Y,a as Z,b as $}from"./menu.RlaY2l8z.js";function B(i){let e,a;return e=new X({props:{name:i[2]}}),{c(){h(e.$$.fragment)},l(n){p(e.$$.fragment,n)},m(n,t){k(e,n,t),a=!0},p(n,t){const l={};t&4&&(l.name=n[2]),e.$set(l)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){A(e,n)}}}function v(i){let e,a,n,t=i[2]&&B(i);return{c(){t&&t.c(),e=I(),a=F(i[0])},l(l){t&&t.l(l),e=L(l),a=G(l,i[0])},m(l,o){t&&t.m(l,o),D(l,e,o),D(l,a,o),n=!0},p(l,o){l[2]?t?(t.p(l,o),o&4&&r(t,1)):(t=B(l),t.c(),r(t,1),t.m(e.parentNode,e)):t&&(T(),c(t,1,1,()=>{t=null}),U()),(!n||o&1)&&H(a,l[0])},i(l){n||(r(t),n=!0)},o(l){c(t),n=!1},d(l){l&&(g(e),g(a)),t&&t.d(l)}}}function y(i){let e;const a=i[8].default,n=J(a,i,i[10],null);return{c(){n&&n.c()},l(t){n&&n.l(t)},m(t,l){n&&n.m(t,l),e=!0},p(t,l){n&&n.p&&(!e||l&1024)&&K(n,a,t,t[10],e?P(a,t[10],l,null):O(t[10]),null)},i(t){e||(r(n,t),e=!0)},o(t){c(n,t),e=!1},d(t){n&&n.d(t)}}}function w(i){let e,a,n,t,l,o,b;return a=new W({props:{disabled:i[4]||i[6],id:i[3]+"-primary-button",$$slots:{default:[v]},$$scope:{ctx:i}}}),a.$on("click",i[9]),t=new Z({props:{class:"max-w-fit grow-0 px-3",id:i[3]+"-menu-button",label:i[1],controls:i[3]+"-menu",variant:"primary",disabled:i[4],hasIndicator:!0}}),o=new $({props:{id:i[3]+"-menu",position:i[5],class:"w-full",$$slots:{default:[y]},$$scope:{ctx:i}}}),{c(){e=j("div"),h(a.$$.fragment),n=I(),h(t.$$.fragment),l=I(),h(o.$$.fragment),this.h()},l(s){e=z(s,"DIV",{class:!0});var f=C(e);p(a.$$.fragment,f),n=L(f),p(t.$$.fragment,f),f.forEach(g),l=L(s),p(o.$$.fragment,s),this.h()},h(){E(e,"class","button-group flex h-10 cursor-pointer flex-row gap-[1px]")},m(s,f){D(s,e,f),k(a,e,null),N(e,n),k(t,e,null),D(s,l,f),k(o,s,f),b=!0},p(s,f){const d={};f&80&&(d.disabled=s[4]||s[6]),f&8&&(d.id=s[3]+"-primary-button"),f&1029&&(d.$$scope={dirty:f,ctx:s}),a.$set(d);const m={};f&8&&(m.id=s[3]+"-menu-button"),f&2&&(m.label=s[1]),f&8&&(m.controls=s[3]+"-menu"),f&16&&(m.disabled=s[4]),t.$set(m);const _={};f&8&&(_.id=s[3]+"-menu"),f&32&&(_.position=s[5]),f&1024&&(_.$$scope={dirty:f,ctx:s}),o.$set(_)},i(s){b||(r(a.$$.fragment,s),r(t.$$.fragment,s),r(o.$$.fragment,s),b=!0)},o(s){c(a.$$.fragment,s),c(t.$$.fragment,s),c(o.$$.fragment,s),b=!1},d(s){s&&(g(e),g(l)),A(a),A(t),A(o,s)}}}function x(i){let e,a;return e=new Y({props:{class:i[7].class,$$slots:{default:[w]},$$scope:{ctx:i}}}),{c(){h(e.$$.fragment)},l(n){p(e.$$.fragment,n)},m(n,t){k(e,n,t),a=!0},p(n,[t]){const l={};t&128&&(l.class=n[7].class),t&1151&&(l.$$scope={dirty:t,ctx:n}),e.$set(l)},i(n){a||(r(e.$$.fragment,n),a=!0)},o(n){c(e.$$.fragment,n),a=!1},d(n){A(e,n)}}}function ee(i,e,a){let{$$slots:n={},$$scope:t}=e,{label:l}=e,{menuLabel:o}=e,{icon:b=void 0}=e,{id:s}=e,{disabled:f=!1}=e,{position:d="left"}=e,{primaryActionDisabled:m=!1}=e;function _(u){V.call(this,i,u)}return i.$$set=u=>{a(7,e=M(M({},e),S(u))),"label"in u&&a(0,l=u.label),"menuLabel"in u&&a(1,o=u.menuLabel),"icon"in u&&a(2,b=u.icon),"id"in u&&a(3,s=u.id),"disabled"in u&&a(4,f=u.disabled),"position"in u&&a(5,d=u.position),"primaryActionDisabled"in u&&a(6,m=u.primaryActionDisabled),"$$scope"in u&&a(10,t=u.$$scope)},e=S(e),[l,o,b,s,f,d,m,e,n,_,t]}class ie extends Q{constructor(e){super(),R(this,e,ee,x,q,{label:0,menuLabel:1,icon:2,id:3,disabled:4,position:5,primaryActionDisabled:6})}}export{ie as S}; diff --git a/ui/assets/local/_app/immutable/chunks/stores.BjeHb2_D.js b/ui/assets/local/_app/immutable/chunks/stores.meYYndLY.js similarity index 83% rename from ui/assets/local/_app/immutable/chunks/stores.BjeHb2_D.js rename to ui/assets/local/_app/immutable/chunks/stores.meYYndLY.js index 324ac56d1..73f39cd04 100644 --- a/ui/assets/local/_app/immutable/chunks/stores.BjeHb2_D.js +++ b/ui/assets/local/_app/immutable/chunks/stores.meYYndLY.js @@ -1 +1 @@ -import{s as t}from"./entry.49-_VqMH.js";const r=()=>{const s=t;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}},c={subscribe(s){const e=r().updated;return c.check=e.check,e.subscribe(s)},check:()=>{throw new Error("Cannot check updated store before subscribing")}};export{b as p,c as u}; +import{s as t}from"./entry.Yz1YyohR.js";const r=()=>{const s=t;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}},c={subscribe(s){const e=r().updated;return c.check=e.check,e.subscribe(s)},check:()=>{throw new Error("Cannot check updated store before subscribing")}};export{b as p,c as u}; diff --git a/ui/assets/local/_app/immutable/chunks/tab.fhntVo9g.js b/ui/assets/local/_app/immutable/chunks/tab.XTXbSCSg.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/tab.fhntVo9g.js rename to ui/assets/local/_app/immutable/chunks/tab.XTXbSCSg.js index a151887bd..2e4b3908b 100644 --- a/ui/assets/local/_app/immutable/chunks/tab.fhntVo9g.js +++ b/ui/assets/local/_app/immutable/chunks/tab.XTXbSCSg.js @@ -1 +1 @@ -import{s as P,p as A,z as h,e as O,b as S,d as q,g,E as k,H as v,k as D,u as U,q as V,r as B,D as T,A as I,a2 as y,a4 as G,x as J,U as p,c as w,t as x,a as $,f as ee,h as te,af as K,l as L,m as le,ah as ae,v as se}from"./scheduler.AWtTlMeO.js";import{S as H,i as M,t as E,b as N}from"./index.91lpp7Ff.js";import{g as j}from"./spread.rEx3vLA9.js";import{t as Q}from"./tw-merge.NbP7EmZe.js";import{k as ie}from"./has.-dFYEuQV.js";import{w as R}from"./entry.49-_VqMH.js";function ne(s){let e,i,f;const t=s[4].default,l=A(t,s,s[3],null);let o=[{class:i=Q("tab-list",s[1])},{role:"tablist"},{"aria-label":s[0]},s[2]],n={};for(let a=0;a{e=h(h({},e),I(r)),i(2,t=T(e,f)),"label"in r&&i(0,n=r.label),"class"in r&&i(1,a=r.class),"$$scope"in r&&i(3,o=r.$$scope)},[n,a,t,o,l]}class ge extends H{constructor(e){super(),M(this,e,ue,ne,P,{label:0,class:1})}}function oe(s){let e,i;const f=s[2].default,t=A(f,s,s[1],null);let l=[{class:"tabs"},s[0]],o={};for(let n=0;n{n.push(c),r.update(m=>m||c),G(()=>{const m=n.indexOf(c);n.splice(m,1),r.update(u=>u===c?n[m]||n[n.length-1]:u)})},registerPanel:c=>{a.push(c),d.update(m=>m||c),G(()=>{const m=a.indexOf(c);a.splice(m,1),d.update(u=>u===c?a[m]||a[a.length-1]:u)})},selectTab:c=>{const m=n.indexOf(c);r.set(c),d.set(a[m])},activeTab:r,activePanel:d}),s.$$set=c=>{e=h(h({},e),I(c)),i(0,t=T(e,f)),"$$scope"in c&&i(1,o=c.$$scope)},[t,o,l]}class Te extends H{constructor(e){super(),M(this,e,fe,oe,P,{})}}function z(s){let e,i,f,t,l,o,n,a;const r=s[14].default,d=A(r,s,s[13],null);let c=[{role:"tab"},{class:"tab"},{"aria-selected":s[5]},{"aria-controls":s[3]},{tabindex:t=s[5]?0:-1},{id:s[1]},{href:s[2]},{"data-testid":l=s[1]??s[8]["data-testid"]},s[9]],m={};for(let u=0;ui(12,o=_)),X(d);const Z=()=>{u||(Y(d),C&&C())};return s.$$set=_=>{i(8,e=h(h({},e),I(_))),i(9,l=T(e,t)),"label"in _&&i(0,r=_.label),"id"in _&&i(1,d=_.id),"href"in _&&i(2,c=_.href),"panelId"in _&&i(3,m=_.panelId),"disabled"in _&&i(4,u=_.disabled),"active"in _&&i(10,b=_.active),"onClick"in _&&i(11,C=_.onClick),"$$scope"in _&&i(13,a=_.$$scope)},s.$$.update=()=>{s.$$.dirty&5122&&i(5,f=ie(b)?o===d:b)},e=I(e),[r,d,c,m,u,f,F,Z,e,l,b,C,o,a,n]}class Ce extends H{constructor(e){super(),M(this,e,de,re,P,{label:0,id:1,href:2,panelId:3,disabled:4,active:10,onClick:11})}}export{W as T,Te as a,ge as b,Ce as c}; +import{s as P,p as A,z as h,e as O,b as S,d as q,g,E as k,H as v,k as D,u as U,q as V,r as B,D as T,A as I,a2 as y,a4 as G,x as J,U as p,c as w,t as x,a as $,f as ee,h as te,af as K,l as L,m as le,ah as ae,v as se}from"./scheduler.AWtTlMeO.js";import{S as H,i as M,t as E,b as N}from"./index.91lpp7Ff.js";import{g as j}from"./spread.rEx3vLA9.js";import{t as Q}from"./tw-merge.NbP7EmZe.js";import{k as ie}from"./has.-dFYEuQV.js";import{w as R}from"./entry.Yz1YyohR.js";function ne(s){let e,i,f;const t=s[4].default,l=A(t,s,s[3],null);let o=[{class:i=Q("tab-list",s[1])},{role:"tablist"},{"aria-label":s[0]},s[2]],n={};for(let a=0;a{e=h(h({},e),I(r)),i(2,t=T(e,f)),"label"in r&&i(0,n=r.label),"class"in r&&i(1,a=r.class),"$$scope"in r&&i(3,o=r.$$scope)},[n,a,t,o,l]}class ge extends H{constructor(e){super(),M(this,e,ue,ne,P,{label:0,class:1})}}function oe(s){let e,i;const f=s[2].default,t=A(f,s,s[1],null);let l=[{class:"tabs"},s[0]],o={};for(let n=0;n{n.push(c),r.update(m=>m||c),G(()=>{const m=n.indexOf(c);n.splice(m,1),r.update(u=>u===c?n[m]||n[n.length-1]:u)})},registerPanel:c=>{a.push(c),d.update(m=>m||c),G(()=>{const m=a.indexOf(c);a.splice(m,1),d.update(u=>u===c?a[m]||a[a.length-1]:u)})},selectTab:c=>{const m=n.indexOf(c);r.set(c),d.set(a[m])},activeTab:r,activePanel:d}),s.$$set=c=>{e=h(h({},e),I(c)),i(0,t=T(e,f)),"$$scope"in c&&i(1,o=c.$$scope)},[t,o,l]}class Te extends H{constructor(e){super(),M(this,e,fe,oe,P,{})}}function z(s){let e,i,f,t,l,o,n,a;const r=s[14].default,d=A(r,s,s[13],null);let c=[{role:"tab"},{class:"tab"},{"aria-selected":s[5]},{"aria-controls":s[3]},{tabindex:t=s[5]?0:-1},{id:s[1]},{href:s[2]},{"data-testid":l=s[1]??s[8]["data-testid"]},s[9]],m={};for(let u=0;ui(12,o=_)),X(d);const Z=()=>{u||(Y(d),C&&C())};return s.$$set=_=>{i(8,e=h(h({},e),I(_))),i(9,l=T(e,t)),"label"in _&&i(0,r=_.label),"id"in _&&i(1,d=_.id),"href"in _&&i(2,c=_.href),"panelId"in _&&i(3,m=_.panelId),"disabled"in _&&i(4,u=_.disabled),"active"in _&&i(10,b=_.active),"onClick"in _&&i(11,C=_.onClick),"$$scope"in _&&i(13,a=_.$$scope)},s.$$.update=()=>{s.$$.dirty&5122&&i(5,f=ie(b)?o===d:b)},e=I(e),[r,d,c,m,u,f,F,Z,e,l,b,C,o,a,n]}class Ce extends H{constructor(e){super(),M(this,e,de,re,P,{label:0,id:1,href:2,panelId:3,disabled:4,active:10,onClick:11})}}export{W as T,Te as a,ge as b,Ce as c}; diff --git a/ui/assets/local/_app/immutable/chunks/task-queue-workers.LyqKtfJm.js b/ui/assets/local/_app/immutable/chunks/task-queue-workers.1omddeoe.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/task-queue-workers.LyqKtfJm.js rename to ui/assets/local/_app/immutable/chunks/task-queue-workers.1omddeoe.js index 79405f2b7..43442128f 100644 --- a/ui/assets/local/_app/immutable/chunks/task-queue-workers.LyqKtfJm.js +++ b/ui/assets/local/_app/immutable/chunks/task-queue-workers.1omddeoe.js @@ -1,3 +1,3 @@ -import{s as ce,e as b,t as A,a as R,b as g,d as y,f as O,g as c,h as P,j as $,k as d,l as C,c as te,x as M,n as G,v as Y,y as tt,H as ve,i as ue,p as lt,u as st,q as rt,r as at}from"./scheduler.AWtTlMeO.js";import{h as $e,u as xe}from"./await_block.yMzW6VTq.js";import{S as _e,i as de,c as W,a as B,m as F,t as D,b as N,d as q,g as J,e as X}from"./index.91lpp7Ff.js";import{p as nt}from"./stores.BjeHb2_D.js";import{e as Z,u as re,o as ae}from"./each.QPLN4A2E.js";import{B as me}from"./badge.mHsIdLRu.js";import{a as it,b as ot,c as ft,d as ut,C as he,e as Te,f as Ee,p as ct,h as _t,i as ye,j as Ie}from"./pollers-service.YzvQhuCf.js";import{E as ne}from"./empty-state.cnx-bHYa.js";import{T as le,a as ie}from"./table-header-row.xBvT5iU5.js";import{T as oe}from"./table-row.rkx8mFVk.js";import{t as S}from"./translate.HrioCK44.js";import{t as pe,r as ke,f as ee}from"./time-format.gNW0s4c3.js";import{I as dt}from"./icon.hlu3-iXK.js";import"./auth-user.qLkr7QCG.js";import"./toaster.JA1rZe2a.js";import"./paths.0kQCowj0.js";import"./entry.49-_VqMH.js";import{T as et}from"./table.wDD-GVbn.js";function $t(f){let e,s;return e=new dt({props:{name:f[0]?"checkmark":"close",class:"m-auto "+(f[0]?"text-blue-700":"text-primary"),title:f[0]?S("common.yes"):S("common.no")}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,[r]){const l={};r&1&&(l.name=t[0]?"checkmark":"close"),r&1&&(l.class="m-auto "+(t[0]?"text-blue-700":"text-primary")),r&1&&(l.title=t[0]?S("common.yes"):S("common.no")),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function ht(f,e,s){let{includesTaskQueueType:t}=e;return f.$$set=r=>{"includesTaskQueueType"in r&&s(0,t=r.includesTaskQueueType)},[t]}class se extends _e{constructor(e){super(),de(this,e,ht,$t,ce,{includesTaskQueueType:0})}}function Qe(f,e,s){const t=f.slice();t[8]=e[s];const r=ft(t[8]);t[9]=r;const l=ut(t[2],t[0],t[9]);return t[10]=l,t}function Ce(f,e,s){const t=f.slice();return t[13]=e[s],t[15]=s,t}function De(f,e,s){const t=f.slice();return t[9]=e[s],t}function He(f){let e,s,t,r,l;return t=new ne({props:{title:S("workers.no-version-sets-found")}}),{c(){e=b("tr"),s=b("td"),W(t.$$.fragment),r=R(),this.h()},l(i){e=g(i,"TR",{class:!0});var n=y(e);s=g(n,"TD",{colspan:!0});var o=y(s);B(t.$$.fragment,o),o.forEach(c),r=P(n),n.forEach(c),this.h()},h(){$(s,"colspan","6"),$(e,"class","w-full")},m(i,n){d(i,e,n),C(e,s),F(t,s,null),C(e,r),l=!0},p:Y,i(i){l||(D(t.$$.fragment,i),l=!0)},o(i){N(t.$$.fragment,i),l=!1},d(i){i&&c(e),q(t)}}}function Ne(f){let e=S("workers.overall")+"",s;return{c(){s=A(e)},l(t){s=O(t,e)},m(t,r){d(t,s,r)},p:Y,d(t){t&&c(s)}}}function mt(f){let e,s=f[15]===0&&Ne();return{c(){s&&s.c(),e=M()},l(t){s&&s.l(t),e=M()},m(t,r){s&&s.m(t,r),d(t,e,r)},p(t,r){t[15]===0?s?s.p(t,r):(s=Ne(),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},d(t){t&&c(e),s&&s.d(t)}}}function pt(f){let e=S("workers.default")+"",s;return{c(){s=A(e)},l(t){s=O(t,e)},m(t,r){d(t,s,r)},p:Y,d(t){t&&c(s)}}}function kt(f){let e=S("workers.default")+"",s,t;return{c(){s=A(e),t=R()},l(r){s=O(r,e),t=P(r)},m(r,l){d(r,s,l),d(r,t,l)},p:Y,d(r){r&&(c(s),c(t))}}}function Re(f){let e,s;return e=new he({props:{active:!1,buildId:f[9],$$slots:{"default-worker":[kt]},$$scope:{ctx:f}}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,r){const l={};r&16&&(l.buildId=t[9]),r&262144&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function wt(f){let e,s,t,r,l,i,n;s=new he({props:{defaultVersion:!0,active:f[15]===0,buildId:Te(f[13].buildIds),$$slots:{"default-worker":[pt],"overall-default-worker":[mt]},$$scope:{ctx:f}}});let o=Z(Ee(f[13].buildIds)),a=[];for(let _=0;_N(a[_],1,1,()=>{a[_]=null});return{c(){e=b("td"),W(s.$$.fragment),t=R(),r=b("td"),l=b("div");for(let _=0;_o[15];for(let o=0;o{n=null}),X()):(n=He(),n.c(),D(n,1),n.m(t.parentNode,t)))},i(o){if(!r){for(let a=0;a{E=null}),X()),(!w||I&98)&&a!==(a=ee(k[8].lastAccessTime,k[5],{relative:k[6]})+"")&&G(u,a);const T={};I&2&&(T.includesTaskQueueType=k[8].taskQueueTypes.includes("WORKFLOW")),m.$set(T);const L={};I&2&&(L.includesTaskQueueType=k[8].taskQueueTypes.includes("ACTIVITY")),Q.$set(L)},i(k){w||(D(E),D(m.$$.fragment,k),D(Q.$$.fragment,k),w=!0)},o(k){N(E),N(m.$$.fragment,k),N(Q.$$.fragment,k),w=!1},d(k){k&&(c(e),c(l),c(i),c(n),c(_),c(h),c(v),c(p),c(V)),E&&E.d(k),q(m),q(Q)}}}function We(f,e){let s,t,r;return t=new oe({props:{"data-testid":"worker-row",$$slots:{default:[It]},$$scope:{ctx:e}}}),{key:f,first:null,c(){s=M(),W(t.$$.fragment),this.h()},l(l){s=M(),B(t.$$.fragment,l),this.h()},h(){this.first=s},m(l,i){d(l,s,i),F(t,l,i),r=!0},p(l,i){e=l;const n={};i&262255&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(l){r||(D(t.$$.fragment,l),r=!0)},o(l){N(t.$$.fragment,l),r=!1},d(l){l&&c(s),q(t,l)}}}function Qt(f){var o;let e=[],s=new Map,t,r,l=Z((o=f[1])==null?void 0:o.pollers);const i=a=>a[8].identity;for(let a=0;a{n=null}),X()):(n=Ve(a),n.c(),D(n,1),n.m(t.parentNode,t)))},i(a){if(!r){for(let u=0;us(5,l=_)),te(f,ke,_=>s(6,i=_));let{taskQueue:n}=e,{workers:o}=e,{reachability:a=void 0}=e,{compatibility:u=void 0}=e;return f.$$set=_=>{"taskQueue"in _&&s(0,n=_.taskQueue),"workers"in _&&s(1,o=_.workers),"reachability"in _&&s(2,a=_.reachability),"compatibility"in _&&s(7,u=_.compatibility)},f.$$.update=()=>{f.$$.dirty&128&&s(4,t=it(u)),f.$$.dirty&128&&s(3,r=ot(u))},[n,o,a,r,t,l,i,u]}class Pt extends _e{constructor(e){super(),de(this,e,Rt,Nt,ce,{taskQueue:0,workers:1,reachability:2,compatibility:7})}}function Fe(f,e,s){const t=f.slice();return t[6]=e[s],t}function qe(f,e,s){const t=f.slice();return t[9]=e[s],t[11]=s,t}function Se(f,e,s){const t=f.slice();return t[9]=e[s],t[11]=s,t}function Ke(f){let e,s,t,r,l;return t=new ne({props:{title:S("workers.no-assignment-rules-found")}}),{c(){e=b("tr"),s=b("td"),W(t.$$.fragment),r=R(),this.h()},l(i){e=g(i,"TR",{class:!0});var n=y(e);s=g(n,"TD",{colspan:!0});var o=y(s);B(t.$$.fragment,o),o.forEach(c),r=P(n),n.forEach(c),this.h()},h(){$(s,"colspan","6"),$(e,"class","w-full")},m(i,n){d(i,e,n),C(e,s),F(t,s,null),C(e,r),l=!0},p:Y,i(i){l||(D(t.$$.fragment,i),l=!0)},o(i){N(t.$$.fragment,i),l=!1},d(i){i&&c(e),q(t)}}}function Vt(f){let e,s=f[9].rule.targetBuildId+"",t,r,l,i=ee(f[9].createTime,f[3])+"",n,o;return{c(){e=b("td"),t=A(s),r=R(),l=b("td"),n=A(i),o=R(),this.h()},l(a){e=g(a,"TD",{class:!0,"data-testid":!0});var u=y(e);t=O(u,s),u.forEach(c),r=P(a),l=g(a,"TD",{class:!0,"data-testid":!0});var _=y(l);n=O(_,i),_.forEach(c),o=P(a),this.h()},h(){$(e,"class","text-left"),$(e,"data-testid","target-source"),$(l,"class","text-right"),$(l,"data-testid","target-source")},m(a,u){d(a,e,u),C(e,t),d(a,r,u),d(a,l,u),C(l,n),d(a,o,u)},p(a,u){u&4&&s!==(s=a[9].rule.targetBuildId+"")&&G(t,s),u&12&&i!==(i=ee(a[9].createTime,a[3])+"")&&G(n,i)},d(a){a&&(c(e),c(r),c(l),c(o))}}}function Le(f,e){let s,t,r;return t=new oe({props:{"data-testid":"version-row",$$slots:{default:[Vt]},$$scope:{ctx:e}}}),{key:f,first:null,c(){s=M(),W(t.$$.fragment),this.h()},l(l){s=M(),B(t.$$.fragment,l),this.h()},h(){this.first=s},m(l,i){d(l,s,i),F(t,l,i),r=!0},p(l,i){e=l;const n={};i&8204&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(l){r||(D(t.$$.fragment,l),r=!0)},o(l){N(t.$$.fragment,l),r=!1},d(l){l&&c(s),q(t,l)}}}function At(f){let e=[],s=new Map,t,r,l=Z(f[2]);const i=o=>o[11];for(let o=0;o{n=null}),X()):(n=Ke(),n.c(),D(n,1),n.m(t.parentNode,t)))},i(o){if(!r){for(let a=0;ao[11];for(let o=0;o{n=null}),X()):(n=Me(),n.c(),D(n,1),n.m(t.parentNode,t)))},i(o){if(!r){for(let a=0;aa[6].identity;for(let a=0;a{n=null}),X()):(n=je(),n.c(),D(n,1),n.m(t.parentNode,t)))},i(a){if(!r){for(let u=0;us(3,l=a)),te(f,ke,a=>s(4,i=a));let{workers:n}=e,{rules:o=void 0}=e;return f.$$set=a=>{"workers"in a&&s(0,n=a.workers),"rules"in a&&s(5,o=a.rules)},f.$$.update=()=>{f.$$.dirty&32&&s(2,{assignmentRules:t,compatibleRedirectRules:r}=o,t,(s(1,r),s(5,o)))},[n,r,t,l,i,o]}class Jt extends _e{constructor(e){super(),de(this,e,Gt,Ut,ce,{workers:0,rules:5})}}function Ue(f,e,s){const t=f.slice();return t[3]=e[s],t}function Xt(f){var t,r;let e=(((r=(t=f[0])==null?void 0:t.pollers)==null?void 0:r.length)||0)+"",s;return{c(){s=A(e)},l(l){s=O(l,e)},m(l,i){d(l,s,i)},p(l,i){var n,o;i&1&&e!==(e=(((o=(n=l[0])==null?void 0:n.pollers)==null?void 0:o.length)||0)+"")&&G(s,e)},d(l){l&&c(s)}}}function Ge(f){let e,s,t,r,l;return t=new ne({props:{title:S("workflows.workers-empty-state")}}),{c(){e=b("tr"),s=b("td"),W(t.$$.fragment),r=R(),this.h()},l(i){e=g(i,"TR",{class:!0});var n=y(e);s=g(n,"TD",{colspan:!0});var o=y(s);B(t.$$.fragment,o),o.forEach(c),r=P(n),n.forEach(c),this.h()},h(){$(s,"colspan",6),$(e,"class","w-full")},m(i,n){d(i,e,n),C(e,s),F(t,s,null),C(e,r),l=!0},p:Y,i(i){l||(D(t.$$.fragment,i),l=!0)},o(i){N(t.$$.fragment,i),l=!1},d(i){i&&c(e),q(t)}}}function Zt(f){let e,s,t=f[3].identity+"",r,l,i,n,o=ee(f[3].lastAccessTime,f[1],{relative:f[2]})+"",a,u,_,h,m,v,p,Q,V;return h=new se({props:{includesTaskQueueType:f[3].taskQueueTypes.includes("WORKFLOW")}}),p=new se({props:{includesTaskQueueType:f[3].taskQueueTypes.includes("ACTIVITY")}}),{c(){e=b("td"),s=b("p"),r=A(t),l=R(),i=b("td"),n=b("p"),a=A(o),u=R(),_=b("td"),W(h.$$.fragment),m=R(),v=b("td"),W(p.$$.fragment),Q=R(),this.h()},l(w){e=g(w,"TD",{class:!0,"data-testid":!0});var E=y(e);s=g(E,"P",{class:!0});var K=y(s);r=O(K,t),K.forEach(c),E.forEach(c),l=P(w),i=g(w,"TD",{class:!0,"data-testid":!0});var H=y(i);n=g(H,"P",{class:!0});var k=y(n);a=O(k,o),k.forEach(c),H.forEach(c),u=P(w),_=g(w,"TD",{"data-testid":!0});var I=y(_);B(h.$$.fragment,I),I.forEach(c),m=P(w),v=g(w,"TD",{"data-testid":!0});var T=y(v);B(p.$$.fragment,T),T.forEach(c),Q=P(w),this.h()},h(){$(s,"class","select-all"),$(e,"class","text-left"),$(e,"data-testid","worker-identity"),$(n,"class","select-all"),$(i,"class","text-left"),$(i,"data-testid","worker-last-access-time"),$(_,"data-testid","workflow-poller"),$(v,"data-testid","activity-poller")},m(w,E){d(w,e,E),C(e,s),C(s,r),d(w,l,E),d(w,i,E),C(i,n),C(n,a),d(w,u,E),d(w,_,E),F(h,_,null),d(w,m,E),d(w,v,E),F(p,v,null),d(w,Q,E),V=!0},p(w,E){(!V||E&1)&&t!==(t=w[3].identity+"")&&G(r,t),(!V||E&7)&&o!==(o=ee(w[3].lastAccessTime,w[1],{relative:w[2]})+"")&&G(a,o);const K={};E&1&&(K.includesTaskQueueType=w[3].taskQueueTypes.includes("WORKFLOW")),h.$set(K);const H={};E&1&&(H.includesTaskQueueType=w[3].taskQueueTypes.includes("ACTIVITY")),p.$set(H)},i(w){V||(D(h.$$.fragment,w),D(p.$$.fragment,w),V=!0)},o(w){N(h.$$.fragment,w),N(p.$$.fragment,w),V=!1},d(w){w&&(c(e),c(l),c(i),c(u),c(_),c(m),c(v),c(Q)),q(h),q(p)}}}function Je(f,e){let s,t,r;return t=new oe({props:{"data-testid":"worker-row",$$slots:{default:[Zt]},$$scope:{ctx:e}}}),{key:f,first:null,c(){s=M(),W(t.$$.fragment),this.h()},l(l){s=M(),B(t.$$.fragment,l),this.h()},h(){this.first=s},m(l,i){d(l,s,i),F(t,l,i),r=!0},p(l,i){e=l;const n={};i&71&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(l){r||(D(t.$$.fragment,l),r=!0)},o(l){N(t.$$.fragment,l),r=!1},d(l){l&&c(s),q(t,l)}}}function xt(f){var o;let e=[],s=new Map,t,r,l=Z((o=f[0])==null?void 0:o.pollers);const i=a=>a[3].identity;for(let a=0;a{n=null}),X()):(n=Ge(),n.c(),D(n,1),n.m(t.parentNode,t)))},i(a){if(!r){for(let u=0;us(1,t=i)),te(f,ke,i=>s(2,r=i));let{workers:l}=e;return f.$$set=i=>{"workers"in i&&s(0,l=i.workers)},[l,t,r]}class we extends _e{constructor(e){super(),de(this,e,rl,sl,ce,{workers:0})}}function Xe(f){f[9]=f[12].rules,f[10]=f[12].compatibility,f[11]=f[12].versionSets}const al=f=>({compatibility:f&33}),Ze=f=>({compatibility:f[10]});function nl(f){let e,s;return e=new we({props:{workers:f[1]}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,r){const l={};r&2&&(l.workers=t[1]),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function il(f){let e,s,t,r={ctx:f,current:null,token:null,hasCatch:!0,pending:ml,then:fl,catch:ol,value:12,blocks:[,,,]};return $e(s=ye({namespace:f[5],queue:f[0]}),r),{c(){e=M(),r.block.c()},l(l){e=M(),r.block.l(l)},m(l,i){d(l,e,i),r.block.m(l,r.anchor=i),r.mount=()=>e.parentNode,r.anchor=e,t=!0},p(l,i){f=l,r.ctx=f,i&33&&s!==(s=ye({namespace:f[5],queue:f[0]}))&&$e(s,r)||xe(r,f,i)},i(l){t||(D(r.block),t=!0)},o(l){for(let i=0;i<3;i+=1){const n=r.blocks[i];N(n)}t=!1},d(l){l&&c(e),r.block.d(l),r.token=null,r=null}}}function ol(f){let e,s;return e=new we({props:{workers:f[1]}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,r){const l={};r&2&&(l.workers=t[1]),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function fl(f){Xe(f);let e,s,t,r;const l=[_l,cl,ul],i=[];function n(o,a){var u;return o[9]?0:o[4]&&((u=o[11])!=null&&u.length)?1:2}return e=n(f),s=i[e]=l[e](f),{c(){s.c(),t=M()},l(o){s.l(o),t=M()},m(o,a){i[e].m(o,a),d(o,t,a),r=!0},p(o,a){Xe(o);let u=e;e=n(o),e===u?i[e].p(o,a):(J(),N(i[u],1,1,()=>{i[u]=null}),X(),s=i[e],s?s.p(o,a):(s=i[e]=l[e](o),s.c()),D(s,1),s.m(t.parentNode,t))},i(o){r||(D(s),r=!0)},o(o){N(s),r=!1},d(o){o&&c(t),i[e].d(o)}}}function ul(f){let e,s;return e=new we({props:{workers:f[1]}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,r){const l={};r&2&&(l.workers=t[1]),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function cl(f){let e,s,t,r={ctx:f,current:null,token:null,hasCatch:!1,pending:hl,then:$l,catch:dl,value:13,blocks:[,,,]};return $e(s=Ie({namespace:f[5],buildIds:f[3],queue:f[0]}),r),{c(){e=M(),r.block.c()},l(l){e=M(),r.block.l(l)},m(l,i){d(l,e,i),r.block.m(l,r.anchor=i),r.mount=()=>e.parentNode,r.anchor=e,t=!0},p(l,i){f=l,r.ctx=f,i&41&&s!==(s=Ie({namespace:f[5],buildIds:f[3],queue:f[0]}))&&$e(s,r)||xe(r,f,i)},i(l){t||(D(r.block),t=!0)},o(l){for(let i=0;i<3;i+=1){const n=r.blocks[i];N(n)}t=!1},d(l){l&&c(e),r.block.d(l),r.token=null,r=null}}}function _l(f){let e,s;return e=new Jt({props:{workers:f[1],rules:f[9]}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,r){const l={};r&2&&(l.workers=t[1]),r&33&&(l.rules=t[9]),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function dl(f){return{c:Y,l:Y,m:Y,p:Y,i:Y,o:Y,d:Y}}function $l(f){let e,s,t;const r=f[8].default,l=lt(r,f,f[7],Ze);return s=new Pt({props:{taskQueue:f[0],workers:f[1],compatibility:f[10],reachability:f[13]}}),{c(){l&&l.c(),e=R(),W(s.$$.fragment)},l(i){l&&l.l(i),e=P(i),B(s.$$.fragment,i)},m(i,n){l&&l.m(i,n),d(i,e,n),F(s,i,n),t=!0},p(i,n){l&&l.p&&(!t||n&161)&&st(l,r,i,i[7],t?at(r,i[7],n,al):rt(i[7]),Ze);const o={};n&1&&(o.taskQueue=i[0]),n&2&&(o.workers=i[1]),n&33&&(o.compatibility=i[10]),n&41&&(o.reachability=i[13]),s.$set(o)},i(i){t||(D(l,i),D(s.$$.fragment,i),t=!0)},o(i){N(l,i),N(s.$$.fragment,i),t=!1},d(i){i&&c(e),l&&l.d(i),q(s,i)}}}function hl(f){let e,s;return e=new et({props:{rows:3}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p:Y,i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function ml(f){let e,s;return e=new et({props:{rows:3}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p:Y,i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function pl(f){let e,s,t=S("common.task-queue")+"",r,l,i,n,o,a,u,_;const h=[il,nl],m=[];function v(p,Q){return p[2]?0:1}return a=v(f),u=m[a]=h[a](f),{c(){e=b("section"),s=b("h2"),r=A(t),l=A(`: +import{s as ce,e as b,t as A,a as R,b as g,d as y,f as O,g as c,h as P,j as $,k as d,l as C,c as te,x as M,n as G,v as Y,y as tt,H as ve,i as ue,p as lt,u as st,q as rt,r as at}from"./scheduler.AWtTlMeO.js";import{h as $e,u as xe}from"./await_block.yMzW6VTq.js";import{S as _e,i as de,c as W,a as B,m as F,t as D,b as N,d as q,g as J,e as X}from"./index.91lpp7Ff.js";import{p as nt}from"./stores.meYYndLY.js";import{e as Z,u as re,o as ae}from"./each.QPLN4A2E.js";import{B as me}from"./badge.mHsIdLRu.js";import{a as it,b as ot,c as ft,d as ut,C as he,e as Te,f as Ee,p as ct,h as _t,i as ye,j as Ie}from"./pollers-service.e2WOdz10.js";import{E as ne}from"./empty-state.cnx-bHYa.js";import{T as le,a as ie}from"./table-header-row.xBvT5iU5.js";import{T as oe}from"./table-row.rkx8mFVk.js";import{t as S}from"./translate.HrioCK44.js";import{t as pe,r as ke,f as ee}from"./time-format.Z3EDfPl8.js";import{I as dt}from"./icon.hlu3-iXK.js";import"./auth-user.13zVs2Gb.js";import"./toaster.tT6uD5UN.js";import"./paths.Ow6cpyoT.js";import"./entry.Yz1YyohR.js";import{T as et}from"./table.wDD-GVbn.js";function $t(f){let e,s;return e=new dt({props:{name:f[0]?"checkmark":"close",class:"m-auto "+(f[0]?"text-blue-700":"text-primary"),title:f[0]?S("common.yes"):S("common.no")}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,[r]){const l={};r&1&&(l.name=t[0]?"checkmark":"close"),r&1&&(l.class="m-auto "+(t[0]?"text-blue-700":"text-primary")),r&1&&(l.title=t[0]?S("common.yes"):S("common.no")),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function ht(f,e,s){let{includesTaskQueueType:t}=e;return f.$$set=r=>{"includesTaskQueueType"in r&&s(0,t=r.includesTaskQueueType)},[t]}class se extends _e{constructor(e){super(),de(this,e,ht,$t,ce,{includesTaskQueueType:0})}}function Qe(f,e,s){const t=f.slice();t[8]=e[s];const r=ft(t[8]);t[9]=r;const l=ut(t[2],t[0],t[9]);return t[10]=l,t}function Ce(f,e,s){const t=f.slice();return t[13]=e[s],t[15]=s,t}function De(f,e,s){const t=f.slice();return t[9]=e[s],t}function He(f){let e,s,t,r,l;return t=new ne({props:{title:S("workers.no-version-sets-found")}}),{c(){e=b("tr"),s=b("td"),W(t.$$.fragment),r=R(),this.h()},l(i){e=g(i,"TR",{class:!0});var n=y(e);s=g(n,"TD",{colspan:!0});var o=y(s);B(t.$$.fragment,o),o.forEach(c),r=P(n),n.forEach(c),this.h()},h(){$(s,"colspan","6"),$(e,"class","w-full")},m(i,n){d(i,e,n),C(e,s),F(t,s,null),C(e,r),l=!0},p:Y,i(i){l||(D(t.$$.fragment,i),l=!0)},o(i){N(t.$$.fragment,i),l=!1},d(i){i&&c(e),q(t)}}}function Ne(f){let e=S("workers.overall")+"",s;return{c(){s=A(e)},l(t){s=O(t,e)},m(t,r){d(t,s,r)},p:Y,d(t){t&&c(s)}}}function mt(f){let e,s=f[15]===0&&Ne();return{c(){s&&s.c(),e=M()},l(t){s&&s.l(t),e=M()},m(t,r){s&&s.m(t,r),d(t,e,r)},p(t,r){t[15]===0?s?s.p(t,r):(s=Ne(),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},d(t){t&&c(e),s&&s.d(t)}}}function pt(f){let e=S("workers.default")+"",s;return{c(){s=A(e)},l(t){s=O(t,e)},m(t,r){d(t,s,r)},p:Y,d(t){t&&c(s)}}}function kt(f){let e=S("workers.default")+"",s,t;return{c(){s=A(e),t=R()},l(r){s=O(r,e),t=P(r)},m(r,l){d(r,s,l),d(r,t,l)},p:Y,d(r){r&&(c(s),c(t))}}}function Re(f){let e,s;return e=new he({props:{active:!1,buildId:f[9],$$slots:{"default-worker":[kt]},$$scope:{ctx:f}}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,r){const l={};r&16&&(l.buildId=t[9]),r&262144&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function wt(f){let e,s,t,r,l,i,n;s=new he({props:{defaultVersion:!0,active:f[15]===0,buildId:Te(f[13].buildIds),$$slots:{"default-worker":[pt],"overall-default-worker":[mt]},$$scope:{ctx:f}}});let o=Z(Ee(f[13].buildIds)),a=[];for(let _=0;_N(a[_],1,1,()=>{a[_]=null});return{c(){e=b("td"),W(s.$$.fragment),t=R(),r=b("td"),l=b("div");for(let _=0;_o[15];for(let o=0;o{n=null}),X()):(n=He(),n.c(),D(n,1),n.m(t.parentNode,t)))},i(o){if(!r){for(let a=0;a{E=null}),X()),(!w||I&98)&&a!==(a=ee(k[8].lastAccessTime,k[5],{relative:k[6]})+"")&&G(u,a);const T={};I&2&&(T.includesTaskQueueType=k[8].taskQueueTypes.includes("WORKFLOW")),m.$set(T);const L={};I&2&&(L.includesTaskQueueType=k[8].taskQueueTypes.includes("ACTIVITY")),Q.$set(L)},i(k){w||(D(E),D(m.$$.fragment,k),D(Q.$$.fragment,k),w=!0)},o(k){N(E),N(m.$$.fragment,k),N(Q.$$.fragment,k),w=!1},d(k){k&&(c(e),c(l),c(i),c(n),c(_),c(h),c(v),c(p),c(V)),E&&E.d(k),q(m),q(Q)}}}function We(f,e){let s,t,r;return t=new oe({props:{"data-testid":"worker-row",$$slots:{default:[It]},$$scope:{ctx:e}}}),{key:f,first:null,c(){s=M(),W(t.$$.fragment),this.h()},l(l){s=M(),B(t.$$.fragment,l),this.h()},h(){this.first=s},m(l,i){d(l,s,i),F(t,l,i),r=!0},p(l,i){e=l;const n={};i&262255&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(l){r||(D(t.$$.fragment,l),r=!0)},o(l){N(t.$$.fragment,l),r=!1},d(l){l&&c(s),q(t,l)}}}function Qt(f){var o;let e=[],s=new Map,t,r,l=Z((o=f[1])==null?void 0:o.pollers);const i=a=>a[8].identity;for(let a=0;a{n=null}),X()):(n=Ve(a),n.c(),D(n,1),n.m(t.parentNode,t)))},i(a){if(!r){for(let u=0;us(5,l=_)),te(f,ke,_=>s(6,i=_));let{taskQueue:n}=e,{workers:o}=e,{reachability:a=void 0}=e,{compatibility:u=void 0}=e;return f.$$set=_=>{"taskQueue"in _&&s(0,n=_.taskQueue),"workers"in _&&s(1,o=_.workers),"reachability"in _&&s(2,a=_.reachability),"compatibility"in _&&s(7,u=_.compatibility)},f.$$.update=()=>{f.$$.dirty&128&&s(4,t=it(u)),f.$$.dirty&128&&s(3,r=ot(u))},[n,o,a,r,t,l,i,u]}class Pt extends _e{constructor(e){super(),de(this,e,Rt,Nt,ce,{taskQueue:0,workers:1,reachability:2,compatibility:7})}}function Fe(f,e,s){const t=f.slice();return t[6]=e[s],t}function qe(f,e,s){const t=f.slice();return t[9]=e[s],t[11]=s,t}function Se(f,e,s){const t=f.slice();return t[9]=e[s],t[11]=s,t}function Ke(f){let e,s,t,r,l;return t=new ne({props:{title:S("workers.no-assignment-rules-found")}}),{c(){e=b("tr"),s=b("td"),W(t.$$.fragment),r=R(),this.h()},l(i){e=g(i,"TR",{class:!0});var n=y(e);s=g(n,"TD",{colspan:!0});var o=y(s);B(t.$$.fragment,o),o.forEach(c),r=P(n),n.forEach(c),this.h()},h(){$(s,"colspan","6"),$(e,"class","w-full")},m(i,n){d(i,e,n),C(e,s),F(t,s,null),C(e,r),l=!0},p:Y,i(i){l||(D(t.$$.fragment,i),l=!0)},o(i){N(t.$$.fragment,i),l=!1},d(i){i&&c(e),q(t)}}}function Vt(f){let e,s=f[9].rule.targetBuildId+"",t,r,l,i=ee(f[9].createTime,f[3])+"",n,o;return{c(){e=b("td"),t=A(s),r=R(),l=b("td"),n=A(i),o=R(),this.h()},l(a){e=g(a,"TD",{class:!0,"data-testid":!0});var u=y(e);t=O(u,s),u.forEach(c),r=P(a),l=g(a,"TD",{class:!0,"data-testid":!0});var _=y(l);n=O(_,i),_.forEach(c),o=P(a),this.h()},h(){$(e,"class","text-left"),$(e,"data-testid","target-source"),$(l,"class","text-right"),$(l,"data-testid","target-source")},m(a,u){d(a,e,u),C(e,t),d(a,r,u),d(a,l,u),C(l,n),d(a,o,u)},p(a,u){u&4&&s!==(s=a[9].rule.targetBuildId+"")&&G(t,s),u&12&&i!==(i=ee(a[9].createTime,a[3])+"")&&G(n,i)},d(a){a&&(c(e),c(r),c(l),c(o))}}}function Le(f,e){let s,t,r;return t=new oe({props:{"data-testid":"version-row",$$slots:{default:[Vt]},$$scope:{ctx:e}}}),{key:f,first:null,c(){s=M(),W(t.$$.fragment),this.h()},l(l){s=M(),B(t.$$.fragment,l),this.h()},h(){this.first=s},m(l,i){d(l,s,i),F(t,l,i),r=!0},p(l,i){e=l;const n={};i&8204&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(l){r||(D(t.$$.fragment,l),r=!0)},o(l){N(t.$$.fragment,l),r=!1},d(l){l&&c(s),q(t,l)}}}function At(f){let e=[],s=new Map,t,r,l=Z(f[2]);const i=o=>o[11];for(let o=0;o{n=null}),X()):(n=Ke(),n.c(),D(n,1),n.m(t.parentNode,t)))},i(o){if(!r){for(let a=0;ao[11];for(let o=0;o{n=null}),X()):(n=Me(),n.c(),D(n,1),n.m(t.parentNode,t)))},i(o){if(!r){for(let a=0;aa[6].identity;for(let a=0;a{n=null}),X()):(n=je(),n.c(),D(n,1),n.m(t.parentNode,t)))},i(a){if(!r){for(let u=0;us(3,l=a)),te(f,ke,a=>s(4,i=a));let{workers:n}=e,{rules:o=void 0}=e;return f.$$set=a=>{"workers"in a&&s(0,n=a.workers),"rules"in a&&s(5,o=a.rules)},f.$$.update=()=>{f.$$.dirty&32&&s(2,{assignmentRules:t,compatibleRedirectRules:r}=o,t,(s(1,r),s(5,o)))},[n,r,t,l,i,o]}class Jt extends _e{constructor(e){super(),de(this,e,Gt,Ut,ce,{workers:0,rules:5})}}function Ue(f,e,s){const t=f.slice();return t[3]=e[s],t}function Xt(f){var t,r;let e=(((r=(t=f[0])==null?void 0:t.pollers)==null?void 0:r.length)||0)+"",s;return{c(){s=A(e)},l(l){s=O(l,e)},m(l,i){d(l,s,i)},p(l,i){var n,o;i&1&&e!==(e=(((o=(n=l[0])==null?void 0:n.pollers)==null?void 0:o.length)||0)+"")&&G(s,e)},d(l){l&&c(s)}}}function Ge(f){let e,s,t,r,l;return t=new ne({props:{title:S("workflows.workers-empty-state")}}),{c(){e=b("tr"),s=b("td"),W(t.$$.fragment),r=R(),this.h()},l(i){e=g(i,"TR",{class:!0});var n=y(e);s=g(n,"TD",{colspan:!0});var o=y(s);B(t.$$.fragment,o),o.forEach(c),r=P(n),n.forEach(c),this.h()},h(){$(s,"colspan",6),$(e,"class","w-full")},m(i,n){d(i,e,n),C(e,s),F(t,s,null),C(e,r),l=!0},p:Y,i(i){l||(D(t.$$.fragment,i),l=!0)},o(i){N(t.$$.fragment,i),l=!1},d(i){i&&c(e),q(t)}}}function Zt(f){let e,s,t=f[3].identity+"",r,l,i,n,o=ee(f[3].lastAccessTime,f[1],{relative:f[2]})+"",a,u,_,h,m,v,p,Q,V;return h=new se({props:{includesTaskQueueType:f[3].taskQueueTypes.includes("WORKFLOW")}}),p=new se({props:{includesTaskQueueType:f[3].taskQueueTypes.includes("ACTIVITY")}}),{c(){e=b("td"),s=b("p"),r=A(t),l=R(),i=b("td"),n=b("p"),a=A(o),u=R(),_=b("td"),W(h.$$.fragment),m=R(),v=b("td"),W(p.$$.fragment),Q=R(),this.h()},l(w){e=g(w,"TD",{class:!0,"data-testid":!0});var E=y(e);s=g(E,"P",{class:!0});var K=y(s);r=O(K,t),K.forEach(c),E.forEach(c),l=P(w),i=g(w,"TD",{class:!0,"data-testid":!0});var H=y(i);n=g(H,"P",{class:!0});var k=y(n);a=O(k,o),k.forEach(c),H.forEach(c),u=P(w),_=g(w,"TD",{"data-testid":!0});var I=y(_);B(h.$$.fragment,I),I.forEach(c),m=P(w),v=g(w,"TD",{"data-testid":!0});var T=y(v);B(p.$$.fragment,T),T.forEach(c),Q=P(w),this.h()},h(){$(s,"class","select-all"),$(e,"class","text-left"),$(e,"data-testid","worker-identity"),$(n,"class","select-all"),$(i,"class","text-left"),$(i,"data-testid","worker-last-access-time"),$(_,"data-testid","workflow-poller"),$(v,"data-testid","activity-poller")},m(w,E){d(w,e,E),C(e,s),C(s,r),d(w,l,E),d(w,i,E),C(i,n),C(n,a),d(w,u,E),d(w,_,E),F(h,_,null),d(w,m,E),d(w,v,E),F(p,v,null),d(w,Q,E),V=!0},p(w,E){(!V||E&1)&&t!==(t=w[3].identity+"")&&G(r,t),(!V||E&7)&&o!==(o=ee(w[3].lastAccessTime,w[1],{relative:w[2]})+"")&&G(a,o);const K={};E&1&&(K.includesTaskQueueType=w[3].taskQueueTypes.includes("WORKFLOW")),h.$set(K);const H={};E&1&&(H.includesTaskQueueType=w[3].taskQueueTypes.includes("ACTIVITY")),p.$set(H)},i(w){V||(D(h.$$.fragment,w),D(p.$$.fragment,w),V=!0)},o(w){N(h.$$.fragment,w),N(p.$$.fragment,w),V=!1},d(w){w&&(c(e),c(l),c(i),c(u),c(_),c(m),c(v),c(Q)),q(h),q(p)}}}function Je(f,e){let s,t,r;return t=new oe({props:{"data-testid":"worker-row",$$slots:{default:[Zt]},$$scope:{ctx:e}}}),{key:f,first:null,c(){s=M(),W(t.$$.fragment),this.h()},l(l){s=M(),B(t.$$.fragment,l),this.h()},h(){this.first=s},m(l,i){d(l,s,i),F(t,l,i),r=!0},p(l,i){e=l;const n={};i&71&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(l){r||(D(t.$$.fragment,l),r=!0)},o(l){N(t.$$.fragment,l),r=!1},d(l){l&&c(s),q(t,l)}}}function xt(f){var o;let e=[],s=new Map,t,r,l=Z((o=f[0])==null?void 0:o.pollers);const i=a=>a[3].identity;for(let a=0;a{n=null}),X()):(n=Ge(),n.c(),D(n,1),n.m(t.parentNode,t)))},i(a){if(!r){for(let u=0;us(1,t=i)),te(f,ke,i=>s(2,r=i));let{workers:l}=e;return f.$$set=i=>{"workers"in i&&s(0,l=i.workers)},[l,t,r]}class we extends _e{constructor(e){super(),de(this,e,rl,sl,ce,{workers:0})}}function Xe(f){f[9]=f[12].rules,f[10]=f[12].compatibility,f[11]=f[12].versionSets}const al=f=>({compatibility:f&33}),Ze=f=>({compatibility:f[10]});function nl(f){let e,s;return e=new we({props:{workers:f[1]}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,r){const l={};r&2&&(l.workers=t[1]),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function il(f){let e,s,t,r={ctx:f,current:null,token:null,hasCatch:!0,pending:ml,then:fl,catch:ol,value:12,blocks:[,,,]};return $e(s=ye({namespace:f[5],queue:f[0]}),r),{c(){e=M(),r.block.c()},l(l){e=M(),r.block.l(l)},m(l,i){d(l,e,i),r.block.m(l,r.anchor=i),r.mount=()=>e.parentNode,r.anchor=e,t=!0},p(l,i){f=l,r.ctx=f,i&33&&s!==(s=ye({namespace:f[5],queue:f[0]}))&&$e(s,r)||xe(r,f,i)},i(l){t||(D(r.block),t=!0)},o(l){for(let i=0;i<3;i+=1){const n=r.blocks[i];N(n)}t=!1},d(l){l&&c(e),r.block.d(l),r.token=null,r=null}}}function ol(f){let e,s;return e=new we({props:{workers:f[1]}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,r){const l={};r&2&&(l.workers=t[1]),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function fl(f){Xe(f);let e,s,t,r;const l=[_l,cl,ul],i=[];function n(o,a){var u;return o[9]?0:o[4]&&((u=o[11])!=null&&u.length)?1:2}return e=n(f),s=i[e]=l[e](f),{c(){s.c(),t=M()},l(o){s.l(o),t=M()},m(o,a){i[e].m(o,a),d(o,t,a),r=!0},p(o,a){Xe(o);let u=e;e=n(o),e===u?i[e].p(o,a):(J(),N(i[u],1,1,()=>{i[u]=null}),X(),s=i[e],s?s.p(o,a):(s=i[e]=l[e](o),s.c()),D(s,1),s.m(t.parentNode,t))},i(o){r||(D(s),r=!0)},o(o){N(s),r=!1},d(o){o&&c(t),i[e].d(o)}}}function ul(f){let e,s;return e=new we({props:{workers:f[1]}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,r){const l={};r&2&&(l.workers=t[1]),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function cl(f){let e,s,t,r={ctx:f,current:null,token:null,hasCatch:!1,pending:hl,then:$l,catch:dl,value:13,blocks:[,,,]};return $e(s=Ie({namespace:f[5],buildIds:f[3],queue:f[0]}),r),{c(){e=M(),r.block.c()},l(l){e=M(),r.block.l(l)},m(l,i){d(l,e,i),r.block.m(l,r.anchor=i),r.mount=()=>e.parentNode,r.anchor=e,t=!0},p(l,i){f=l,r.ctx=f,i&41&&s!==(s=Ie({namespace:f[5],buildIds:f[3],queue:f[0]}))&&$e(s,r)||xe(r,f,i)},i(l){t||(D(r.block),t=!0)},o(l){for(let i=0;i<3;i+=1){const n=r.blocks[i];N(n)}t=!1},d(l){l&&c(e),r.block.d(l),r.token=null,r=null}}}function _l(f){let e,s;return e=new Jt({props:{workers:f[1],rules:f[9]}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p(t,r){const l={};r&2&&(l.workers=t[1]),r&33&&(l.rules=t[9]),e.$set(l)},i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function dl(f){return{c:Y,l:Y,m:Y,p:Y,i:Y,o:Y,d:Y}}function $l(f){let e,s,t;const r=f[8].default,l=lt(r,f,f[7],Ze);return s=new Pt({props:{taskQueue:f[0],workers:f[1],compatibility:f[10],reachability:f[13]}}),{c(){l&&l.c(),e=R(),W(s.$$.fragment)},l(i){l&&l.l(i),e=P(i),B(s.$$.fragment,i)},m(i,n){l&&l.m(i,n),d(i,e,n),F(s,i,n),t=!0},p(i,n){l&&l.p&&(!t||n&161)&&st(l,r,i,i[7],t?at(r,i[7],n,al):rt(i[7]),Ze);const o={};n&1&&(o.taskQueue=i[0]),n&2&&(o.workers=i[1]),n&33&&(o.compatibility=i[10]),n&41&&(o.reachability=i[13]),s.$set(o)},i(i){t||(D(l,i),D(s.$$.fragment,i),t=!0)},o(i){N(l,i),N(s.$$.fragment,i),t=!1},d(i){i&&c(e),l&&l.d(i),q(s,i)}}}function hl(f){let e,s;return e=new et({props:{rows:3}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p:Y,i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function ml(f){let e,s;return e=new et({props:{rows:3}}),{c(){W(e.$$.fragment)},l(t){B(e.$$.fragment,t)},m(t,r){F(e,t,r),s=!0},p:Y,i(t){s||(D(e.$$.fragment,t),s=!0)},o(t){N(e.$$.fragment,t),s=!1},d(t){q(e,t)}}}function pl(f){let e,s,t=S("common.task-queue")+"",r,l,i,n,o,a,u,_;const h=[il,nl],m=[];function v(p,Q){return p[2]?0:1}return a=v(f),u=m[a]=h[a](f),{c(){e=b("section"),s=b("h2"),r=A(t),l=A(`: `),i=b("span"),n=A(f[0]),o=R(),u.c(),this.h()},l(p){e=g(p,"SECTION",{class:!0});var Q=y(e);s=g(Q,"H2",{class:!0,"data-testid":!0});var V=y(s);r=O(V,t),l=O(V,`: `),i=g(V,"SPAN",{class:!0});var w=y(i);n=O(w,f[0]),w.forEach(c),V.forEach(c),o=P(Q),u.l(Q),Q.forEach(c),this.h()},h(){$(i,"class","select-all font-normal"),$(s,"class","text-lg font-medium"),$(s,"data-testid","task-queue-name"),$(e,"class","flex flex-col gap-4")},m(p,Q){d(p,e,Q),C(e,s),C(s,r),C(s,l),C(s,i),C(i,n),C(e,o),m[a].m(e,null),_=!0},p(p,[Q]){(!_||Q&1)&&G(n,p[0]);let V=a;a=v(p),a===V?m[a].p(p,Q):(J(),N(m[V],1,1,()=>{m[V]=null}),X(),u=m[a],u?u.p(p,Q):(u=m[a]=h[a](p),u.c()),D(u,1),u.m(e,null))},i(p){_||(D(u),_=!0)},o(p){N(u),_=!1},d(p){p&&c(e),m[a].d()}}}function kl(f,e,s){let t,r,l,i;te(f,nt,h=>s(6,i=h));let{$$slots:n={},$$scope:o}=e,{taskQueue:a}=e,{workers:u}=e,{useVersioning:_=!0}=e;return f.$$set=h=>{"taskQueue"in h&&s(0,a=h.taskQueue),"workers"in h&&s(1,u=h.workers),"useVersioning"in h&&s(2,_=h.useVersioning),"$$scope"in h&&s(7,o=h.$$scope)},f.$$.update=()=>{f.$$.dirty&64&&s(5,{namespace:t}=i.params,t),f.$$.dirty&2&&s(4,r=ct(u.pollers)),f.$$.dirty&2&&s(3,l=_t(u.pollers))},[a,u,_,l,r,t,i,o,n]}class Wl extends _e{constructor(e){super(),de(this,e,kl,pl,ce,{taskQueue:0,workers:1,useVersioning:2})}}export{Wl as T}; diff --git a/ui/assets/local/_app/immutable/chunks/time-format.gNW0s4c3.js b/ui/assets/local/_app/immutable/chunks/time-format.Z3EDfPl8.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/time-format.gNW0s4c3.js rename to ui/assets/local/_app/immutable/chunks/time-format.Z3EDfPl8.js index 2b6910a5c..ce0b082e1 100644 --- a/ui/assets/local/_app/immutable/chunks/time-format.gNW0s4c3.js +++ b/ui/assets/local/_app/immutable/chunks/time-format.Z3EDfPl8.js @@ -1 +1 @@ -import{p as la}from"./persist-store.79TECdfr.js";import{r as Q,w as da,x as ca,t as R,y as Ca,z as V,A as Ga,B as ma,C as ka,D as Na,E as Ia,F as Ua}from"./format-time.6T8OwT4v.js";var fe={exports:{}},le={exports:{}},de={exports:{}},ce={exports:{}},me={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){if(m.length1?"s":"")+" required, but only "+m.length+" present")}i.exports=e.default})(me,me.exports);var P=me.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function m(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(t){return typeof t}:m=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(n)}function s(n){return(0,o.default)(1,arguments),n instanceof Date||m(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}i.exports=e.default})(ce,ce.exports);var Ya=ce.exports,ve={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function m(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(t){return typeof t}:m=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(n)}function s(n){(0,o.default)(1,arguments);var a=Object.prototype.toString.call(n);return n instanceof Date||m(n)==="object"&&a==="[object Date]"?new Date(n.getTime()):typeof n=="number"||a==="[object Number]"?new Date(n):((typeof n=="string"||a==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}i.exports=e.default})(ve,ve.exports);var I=ve.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Ya),f=s(I),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a){if((0,m.default)(1,arguments),!(0,o.default)(a)&&typeof a!="number")return!1;var t=(0,f.default)(a);return!isNaN(Number(t))}i.exports=e.default})(de,de.exports);var Wa=de.exports,Te={exports:{}},he={exports:{}},be={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){if(f===null||f===!0||f===!1)return NaN;var m=Number(f);return isNaN(m)?m:m<0?Math.ceil(m):Math.floor(m)}i.exports=e.default})(be,be.exports);var H=be.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(H),f=s(I),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,m.default)(2,arguments);var r=(0,f.default)(a).getTime(),c=(0,o.default)(t);return new Date(r+c)}i.exports=e.default})(he,he.exports);var Ra=he.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Ra),f=s(P),m=s(H);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,f.default)(2,arguments);var r=(0,m.default)(t);return(0,o.default)(a,-r)}i.exports=e.default})(Te,Te.exports);var Ha=Te.exports,ge={exports:{}},pe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=m(I),f=m(P);function m(a){return a&&a.__esModule?a:{default:a}}var s=864e5;function n(a){(0,f.default)(1,arguments);var t=(0,o.default)(a),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var c=t.getTime(),g=r-c;return Math.floor(g/s)+1}i.exports=e.default})(pe,pe.exports);var Fa=pe.exports,Me={exports:{}},_e={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=m(I),f=m(P);function m(n){return n&&n.__esModule?n:{default:n}}function s(n){(0,f.default)(1,arguments);var a=1,t=(0,o.default)(n),r=t.getUTCDay(),c=(r=g.getTime()?r+1:t.getTime()>=h.getTime()?r:r-1}i.exports=e.default})(xe,xe.exports);var va=xe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(va),f=s(ra),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a){(0,m.default)(1,arguments);var t=(0,o.default)(a),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var c=(0,f.default)(r);return c}i.exports=e.default})(Ae,Ae.exports);var La=Ae.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=n(I),f=n(ra),m=n(La),s=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r){(0,s.default)(1,arguments);var c=(0,o.default)(r),g=(0,f.default)(c).getTime()-(0,m.default)(c).getTime();return Math.round(g/a)+1}i.exports=e.default})(Me,Me.exports);var $a=Me.exports,ye={exports:{}},we={exports:{}},F={};Object.defineProperty(F,"__esModule",{value:!0});F.getDefaultOptions=qa;F.setDefaultOptions=Ba;var Ta={};function qa(){return Ta}function Ba(i){Ta=i}(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=n(I),f=n(P),m=n(H),s=F;function n(t){return t&&t.__esModule?t:{default:t}}function a(t,r){var c,g,x,h,M,p,T,l;(0,f.default)(1,arguments);var v=(0,s.getDefaultOptions)(),u=(0,m.default)((c=(g=(x=(h=r==null?void 0:r.weekStartsOn)!==null&&h!==void 0?h:r==null||(M=r.locale)===null||M===void 0||(p=M.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&x!==void 0?x:v.weekStartsOn)!==null&&g!==void 0?g:(T=v.locale)===null||T===void 0||(l=T.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&c!==void 0?c:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,o.default)(t),b=d.getUTCDay(),w=(b=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(d+1,0,w),S.setUTCHours(0,0,0,0);var y=(0,m.default)(S,c),_=new Date(0);_.setUTCFullYear(d,0,w),_.setUTCHours(0,0,0,0);var A=(0,m.default)(_,c);return u.getTime()>=y.getTime()?d+1:u.getTime()>=A.getTime()?d:d-1}i.exports=e.default})(Se,Se.exports);var ha=Se.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=a(ha),f=a(P),m=a(na),s=a(H),n=F;function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c){var g,x,h,M,p,T,l,v;(0,f.default)(1,arguments);var u=(0,n.getDefaultOptions)(),d=(0,s.default)((g=(x=(h=(M=c==null?void 0:c.firstWeekContainsDate)!==null&&M!==void 0?M:c==null||(p=c.locale)===null||p===void 0||(T=p.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&h!==void 0?h:u.firstWeekContainsDate)!==null&&x!==void 0?x:(l=u.locale)===null||l===void 0||(v=l.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&g!==void 0?g:1),b=(0,o.default)(r,c),w=new Date(0);w.setUTCFullYear(b,0,d),w.setUTCHours(0,0,0,0);var S=(0,m.default)(w,c);return S}i.exports=e.default})(De,De.exports);var Xa=De.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=n(I),f=n(na),m=n(Xa),s=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r,c){(0,s.default)(1,arguments);var g=(0,o.default)(r),x=(0,f.default)(g,c).getTime()-(0,m.default)(g,c).getTime();return Math.round(x/a)+1}i.exports=e.default})(ye,ye.exports);var Za=ye.exports,ze={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){for(var s=f<0?"-":"",n=Math.abs(f).toString();n.length0?r:1-r;return(0,o.default)(t==="yy"?c%100:c,t.length)},M:function(a,t){var r=a.getUTCMonth();return t==="M"?String(r+1):(0,o.default)(r+1,2)},d:function(a,t){return(0,o.default)(a.getUTCDate(),t.length)},a:function(a,t){var r=a.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(a,t){return(0,o.default)(a.getUTCHours()%12||12,t.length)},H:function(a,t){return(0,o.default)(a.getUTCHours(),t.length)},m:function(a,t){return(0,o.default)(a.getUTCMinutes(),t.length)},s:function(a,t){return(0,o.default)(a.getUTCSeconds(),t.length)},S:function(a,t){var r=t.length,c=a.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,r-3));return(0,o.default)(g,t.length)}},s=m;e.default=s,i.exports=e.default})(Oe,Oe.exports);var Va=Oe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(Fa),f=r($a),m=r(va),s=r(Za),n=r(ha),a=r(ba),t=r(Va);function r(T){return T&&T.__esModule?T:{default:T}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g={G:function(l,v,u){var d=l.getUTCFullYear()>0?1:0;switch(v){case"G":case"GG":case"GGG":return u.era(d,{width:"abbreviated"});case"GGGGG":return u.era(d,{width:"narrow"});case"GGGG":default:return u.era(d,{width:"wide"})}},y:function(l,v,u){if(v==="yo"){var d=l.getUTCFullYear(),b=d>0?d:1-d;return u.ordinalNumber(b,{unit:"year"})}return t.default.y(l,v)},Y:function(l,v,u,d){var b=(0,n.default)(l,d),w=b>0?b:1-b;if(v==="YY"){var S=w%100;return(0,a.default)(S,2)}return v==="Yo"?u.ordinalNumber(w,{unit:"year"}):(0,a.default)(w,v.length)},R:function(l,v){var u=(0,m.default)(l);return(0,a.default)(u,v.length)},u:function(l,v){var u=l.getUTCFullYear();return(0,a.default)(u,v.length)},Q:function(l,v,u){var d=Math.ceil((l.getUTCMonth()+1)/3);switch(v){case"Q":return String(d);case"QQ":return(0,a.default)(d,2);case"Qo":return u.ordinalNumber(d,{unit:"quarter"});case"QQQ":return u.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return u.quarter(d,{width:"narrow",context:"formatting"});case"QQQQ":default:return u.quarter(d,{width:"wide",context:"formatting"})}},q:function(l,v,u){var d=Math.ceil((l.getUTCMonth()+1)/3);switch(v){case"q":return String(d);case"qq":return(0,a.default)(d,2);case"qo":return u.ordinalNumber(d,{unit:"quarter"});case"qqq":return u.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return u.quarter(d,{width:"narrow",context:"standalone"});case"qqqq":default:return u.quarter(d,{width:"wide",context:"standalone"})}},M:function(l,v,u){var d=l.getUTCMonth();switch(v){case"M":case"MM":return t.default.M(l,v);case"Mo":return u.ordinalNumber(d+1,{unit:"month"});case"MMM":return u.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return u.month(d,{width:"narrow",context:"formatting"});case"MMMM":default:return u.month(d,{width:"wide",context:"formatting"})}},L:function(l,v,u){var d=l.getUTCMonth();switch(v){case"L":return String(d+1);case"LL":return(0,a.default)(d+1,2);case"Lo":return u.ordinalNumber(d+1,{unit:"month"});case"LLL":return u.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return u.month(d,{width:"narrow",context:"standalone"});case"LLLL":default:return u.month(d,{width:"wide",context:"standalone"})}},w:function(l,v,u,d){var b=(0,s.default)(l,d);return v==="wo"?u.ordinalNumber(b,{unit:"week"}):(0,a.default)(b,v.length)},I:function(l,v,u){var d=(0,f.default)(l);return v==="Io"?u.ordinalNumber(d,{unit:"week"}):(0,a.default)(d,v.length)},d:function(l,v,u){return v==="do"?u.ordinalNumber(l.getUTCDate(),{unit:"date"}):t.default.d(l,v)},D:function(l,v,u){var d=(0,o.default)(l);return v==="Do"?u.ordinalNumber(d,{unit:"dayOfYear"}):(0,a.default)(d,v.length)},E:function(l,v,u){var d=l.getUTCDay();switch(v){case"E":case"EE":case"EEE":return u.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return u.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return u.day(d,{width:"short",context:"formatting"});case"EEEE":default:return u.day(d,{width:"wide",context:"formatting"})}},e:function(l,v,u,d){var b=l.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(v){case"e":return String(w);case"ee":return(0,a.default)(w,2);case"eo":return u.ordinalNumber(w,{unit:"day"});case"eee":return u.day(b,{width:"abbreviated",context:"formatting"});case"eeeee":return u.day(b,{width:"narrow",context:"formatting"});case"eeeeee":return u.day(b,{width:"short",context:"formatting"});case"eeee":default:return u.day(b,{width:"wide",context:"formatting"})}},c:function(l,v,u,d){var b=l.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(v){case"c":return String(w);case"cc":return(0,a.default)(w,v.length);case"co":return u.ordinalNumber(w,{unit:"day"});case"ccc":return u.day(b,{width:"abbreviated",context:"standalone"});case"ccccc":return u.day(b,{width:"narrow",context:"standalone"});case"cccccc":return u.day(b,{width:"short",context:"standalone"});case"cccc":default:return u.day(b,{width:"wide",context:"standalone"})}},i:function(l,v,u){var d=l.getUTCDay(),b=d===0?7:d;switch(v){case"i":return String(b);case"ii":return(0,a.default)(b,v.length);case"io":return u.ordinalNumber(b,{unit:"day"});case"iii":return u.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return u.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return u.day(d,{width:"short",context:"formatting"});case"iiii":default:return u.day(d,{width:"wide",context:"formatting"})}},a:function(l,v,u){var d=l.getUTCHours(),b=d/12>=1?"pm":"am";switch(v){case"a":case"aa":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"aaa":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"aaaa":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},b:function(l,v,u){var d=l.getUTCHours(),b;switch(d===12?b=c.noon:d===0?b=c.midnight:b=d/12>=1?"pm":"am",v){case"b":case"bb":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"bbb":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"bbbb":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},B:function(l,v,u){var d=l.getUTCHours(),b;switch(d>=17?b=c.evening:d>=12?b=c.afternoon:d>=4?b=c.morning:b=c.night,v){case"B":case"BB":case"BBB":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"BBBBB":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"BBBB":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},h:function(l,v,u){if(v==="ho"){var d=l.getUTCHours()%12;return d===0&&(d=12),u.ordinalNumber(d,{unit:"hour"})}return t.default.h(l,v)},H:function(l,v,u){return v==="Ho"?u.ordinalNumber(l.getUTCHours(),{unit:"hour"}):t.default.H(l,v)},K:function(l,v,u){var d=l.getUTCHours()%12;return v==="Ko"?u.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,v.length)},k:function(l,v,u){var d=l.getUTCHours();return d===0&&(d=24),v==="ko"?u.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,v.length)},m:function(l,v,u){return v==="mo"?u.ordinalNumber(l.getUTCMinutes(),{unit:"minute"}):t.default.m(l,v)},s:function(l,v,u){return v==="so"?u.ordinalNumber(l.getUTCSeconds(),{unit:"second"}):t.default.s(l,v)},S:function(l,v){return t.default.S(l,v)},X:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();if(w===0)return"Z";switch(v){case"X":return h(w);case"XXXX":case"XX":return M(w);case"XXXXX":case"XXX":default:return M(w,":")}},x:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"x":return h(w);case"xxxx":case"xx":return M(w);case"xxxxx":case"xxx":default:return M(w,":")}},O:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"O":case"OO":case"OOO":return"GMT"+x(w,":");case"OOOO":default:return"GMT"+M(w,":")}},z:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"z":case"zz":case"zzz":return"GMT"+x(w,":");case"zzzz":default:return"GMT"+M(w,":")}},t:function(l,v,u,d){var b=d._originalDate||l,w=Math.floor(b.getTime()/1e3);return(0,a.default)(w,v.length)},T:function(l,v,u,d){var b=d._originalDate||l,w=b.getTime();return(0,a.default)(w,v.length)}};function x(T,l){var v=T>0?"-":"+",u=Math.abs(T),d=Math.floor(u/60),b=u%60;if(b===0)return v+String(d);var w=l||"";return v+String(d)+w+(0,a.default)(b,2)}function h(T,l){if(T%60===0){var v=T>0?"-":"+";return v+(0,a.default)(Math.abs(T)/60,2)}return M(T,l)}function M(T,l){var v=l||"",u=T>0?"-":"+",d=Math.abs(T),b=(0,a.default)(Math.floor(d/60),2),w=(0,a.default)(d%60,2);return u+b+v+w}var p=g;e.default=p,i.exports=e.default})(ge,ge.exports);var Ka=ge.exports,Pe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},f=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},m=function(t,r){var c=t.match(/(P+)(p+)?/)||[],g=c[1],x=c[2];if(!x)return o(t,r);var h;switch(g){case"P":h=r.dateTime({width:"short"});break;case"PP":h=r.dateTime({width:"medium"});break;case"PPP":h=r.dateTime({width:"long"});break;case"PPPP":default:h=r.dateTime({width:"full"});break}return h.replace("{{date}}",o(g,r)).replace("{{time}}",f(x,r))},s={p:f,P:m},n=s;e.default=n,i.exports=e.default})(Pe,Pe.exports);var Qa=Pe.exports,Ee={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){var m=new Date(Date.UTC(f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()));return m.setUTCFullYear(f.getFullYear()),f.getTime()-m.getTime()}i.exports=e.default})(Ee,Ee.exports);var ga=Ee.exports,q={};Object.defineProperty(q,"__esModule",{value:!0});q.isProtectedDayOfYearToken=et;q.isProtectedWeekYearToken=at;q.throwProtectedError=tt;var Ja=["D","DD"],ja=["YY","YYYY"];function et(i){return Ja.indexOf(i)!==-1}function at(i){return ja.indexOf(i)!==-1}function tt(i,e,o){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ce={exports:{}},Ge={exports:{}},ke={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},f=function(n,a,t){var r,c=o[n];return typeof c=="string"?r=c:a===1?r=c.one:r=c.other.replace("{{count}}",a.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r},m=f;e.default=m,i.exports=e.default})(ke,ke.exports);var rt=ke.exports,Ne={exports:{}},Ie={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){return function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=m.width?String(m.width):f.defaultWidth,n=f.formats[s]||f.formats[f.defaultWidth];return n}}i.exports=e.default})(Ie,Ie.exports);var nt=Ie.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(nt);function f(r){return r&&r.__esModule?r:{default:r}}var m={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a={date:(0,o.default)({formats:m,defaultWidth:"full"}),time:(0,o.default)({formats:s,defaultWidth:"full"}),dateTime:(0,o.default)({formats:n,defaultWidth:"full"})},t=a;e.default=t,i.exports=e.default})(Ne,Ne.exports);var it=Ne.exports,Ue={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},f=function(n,a,t,r){return o[n]},m=f;e.default=m,i.exports=e.default})(Ue,Ue.exports);var ot=Ue.exports,Ye={exports:{}},We={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){return function(m,s){var n=s!=null&&s.context?String(s.context):"standalone",a;if(n==="formatting"&&f.formattingValues){var t=f.defaultFormattingWidth||f.defaultWidth,r=s!=null&&s.width?String(s.width):t;a=f.formattingValues[r]||f.formattingValues[t]}else{var c=f.defaultWidth,g=s!=null&&s.width?String(s.width):f.defaultWidth;a=f.values[g]||f.values[c]}var x=f.argumentCallback?f.argumentCallback(m):m;return a[x]}}i.exports=e.default})(We,We.exports);var ut=We.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(ut);function f(h){return h&&h.__esModule?h:{default:h}}var m={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},s={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},a={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(M,p){var T=Number(M),l=T%100;if(l>20||l<10)switch(l%10){case 1:return T+"st";case 2:return T+"nd";case 3:return T+"rd"}return T+"th"},g={ordinalNumber:c,era:(0,o.default)({values:m,defaultWidth:"wide"}),quarter:(0,o.default)({values:s,defaultWidth:"wide",argumentCallback:function(M){return M-1}}),month:(0,o.default)({values:n,defaultWidth:"wide"}),day:(0,o.default)({values:a,defaultWidth:"wide"}),dayPeriod:(0,o.default)({values:t,defaultWidth:"wide",formattingValues:r,defaultFormattingWidth:"wide"})},x=g;e.default=x,i.exports=e.default})(Ye,Ye.exports);var st=Ye.exports,Re={exports:{}},He={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(s){return function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=a.width,r=t&&s.matchPatterns[t]||s.matchPatterns[s.defaultMatchWidth],c=n.match(r);if(!c)return null;var g=c[0],x=t&&s.parsePatterns[t]||s.parsePatterns[s.defaultParseWidth],h=Array.isArray(x)?m(x,function(T){return T.test(g)}):f(x,function(T){return T.test(g)}),M;M=s.valueCallback?s.valueCallback(h):h,M=a.valueCallback?a.valueCallback(M):M;var p=n.slice(g.length);return{value:M,rest:p}}}function f(s,n){for(var a in s)if(s.hasOwnProperty(a)&&n(s[a]))return a}function m(s,n){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=m.match(f.matchPattern);if(!n)return null;var a=n[0],t=m.match(f.parsePattern);if(!t)return null;var r=f.valueCallback?f.valueCallback(t[0]):t[0];r=s.valueCallback?s.valueCallback(r):r;var c=m.slice(a.length);return{value:r,rest:c}}}i.exports=e.default})(Fe,Fe.exports);var lt=Fe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=m(ft),f=m(lt);function m(u){return u&&u.__esModule?u:{default:u}}var s=/^(\d+)(th|st|nd|rd)?/i,n=/\d+/i,a={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},t={any:[/^b/i,/^(a|c)/i]},r={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},g={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},x={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},M={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},l={ordinalNumber:(0,f.default)({matchPattern:s,parsePattern:n,valueCallback:function(d){return parseInt(d,10)}}),era:(0,o.default)({matchPatterns:a,defaultMatchWidth:"wide",parsePatterns:t,defaultParseWidth:"any"}),quarter:(0,o.default)({matchPatterns:r,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(d){return d+1}}),month:(0,o.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:x,defaultParseWidth:"any"}),day:(0,o.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:M,defaultParseWidth:"any"}),dayPeriod:(0,o.default)({matchPatterns:p,defaultMatchWidth:"any",parsePatterns:T,defaultParseWidth:"any"})},v=l;e.default=v,i.exports=e.default})(Re,Re.exports);var dt=Re.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(rt),f=a(it),m=a(ot),s=a(st),n=a(dt);function a(c){return c&&c.__esModule?c:{default:c}}var t={code:"en-US",formatDistance:o.default,formatLong:f.default,formatRelative:m.default,localize:s.default,match:n.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},r=t;e.default=r,i.exports=e.default})(Ge,Ge.exports);var ct=Ge.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(ct);function f(s){return s&&s.__esModule?s:{default:s}}var m=o.default;e.default=m,i.exports=e.default})(Ce,Ce.exports);var mt=Ce.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var o=h(Wa),f=h(Ha),m=h(I),s=h(Ka),n=h(Qa),a=h(ga),t=q,r=h(H),c=h(P),g=F,x=h(mt);function h(b){return b&&b.__esModule?b:{default:b}}var M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,l=/''/g,v=/[a-zA-Z]/;function u(b,w,S){var y,_,A,D,z,O,C,U,G,Y,k,N,ee,ae,te,re,ne,ie;(0,c.default)(2,arguments);var Sa=String(w),L=(0,g.getDefaultOptions)(),$=(y=(_=S==null?void 0:S.locale)!==null&&_!==void 0?_:L.locale)!==null&&y!==void 0?y:x.default,oe=(0,r.default)((A=(D=(z=(O=S==null?void 0:S.firstWeekContainsDate)!==null&&O!==void 0?O:S==null||(C=S.locale)===null||C===void 0||(U=C.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&z!==void 0?z:L.firstWeekContainsDate)!==null&&D!==void 0?D:(G=L.locale)===null||G===void 0||(Y=G.options)===null||Y===void 0?void 0:Y.firstWeekContainsDate)!==null&&A!==void 0?A:1);if(!(oe>=1&&oe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ue=(0,r.default)((k=(N=(ee=(ae=S==null?void 0:S.weekStartsOn)!==null&&ae!==void 0?ae:S==null||(te=S.locale)===null||te===void 0||(re=te.options)===null||re===void 0?void 0:re.weekStartsOn)!==null&&ee!==void 0?ee:L.weekStartsOn)!==null&&N!==void 0?N:(ne=L.locale)===null||ne===void 0||(ie=ne.options)===null||ie===void 0?void 0:ie.weekStartsOn)!==null&&k!==void 0?k:0);if(!(ue>=0&&ue<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw new RangeError("locale must contain localize property");if(!$.formatLong)throw new RangeError("locale must contain formatLong property");var X=(0,m.default)(b);if(!(0,o.default)(X))throw new RangeError("Invalid time value");var za=(0,a.default)(X),Oa=(0,f.default)(X,za),Pa={firstWeekContainsDate:oe,weekStartsOn:ue,locale:$,_originalDate:X},Ea=Sa.match(p).map(function(E){var W=E[0];if(W==="p"||W==="P"){var Z=n.default[W];return Z(E,$.formatLong)}return E}).join("").match(M).map(function(E){if(E==="''")return"'";var W=E[0];if(W==="'")return d(E);var Z=s.default[W];if(Z)return!(S!=null&&S.useAdditionalWeekYearTokens)&&(0,t.isProtectedWeekYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),!(S!=null&&S.useAdditionalDayOfYearTokens)&&(0,t.isProtectedDayOfYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),Z(Oa,E,$.localize,Pa);if(W.match(v))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return E}).join("");return Ea}function d(b){var w=b.match(T);return w?w[1].replace(l,"'"):b}i.exports=e.default})(le,le.exports);var vt=le.exports,Le={exports:{}},$e={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(n,a,t){var r=s(n,t.timeZone,t.locale);return r.formatToParts?f(r,a):m(r,a)}function f(n,a){for(var t=n.formatToParts(a),r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function m(n,a){var t=n.format(a).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function s(n,a,t){if(t&&!t.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:a,timeZoneName:n})}i.exports=e.default})($e,$e.exports);var Tt=$e.exports,qe={exports:{}},Be={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(t,r){var c=a(r);return c.formatToParts?m(c,t):s(c,t)}var f={year:0,month:1,day:2,hour:3,minute:4,second:5};function m(t,r){try{for(var c=t.formatToParts(r),g=[],x=0;x=0&&(g[h]=parseInt(c[x].value,10))}return g}catch(M){if(M instanceof RangeError)return[NaN];throw M}}function s(t,r){var c=t.format(r).replace(/\u200E/g,""),g=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[g[3],g[1],g[2],g[4],g[5],g[6]]}var n={};function a(t){if(!n[t]){var r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=r==="06/25/2014, 00:00:00"||r==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";n[t]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return n[t]}i.exports=e.default})(Be,Be.exports);var ht=Be.exports,Xe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m,s,n,a,t,r){var c=new Date(0);return c.setUTCFullYear(f,m,s),c.setUTCHours(n,a,t,r),c}i.exports=e.default})(Xe,Xe.exports);var pa=Xe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=m(ht),f=m(pa);function m(p){return p&&p.__esModule?p:{default:p}}var s=36e5,n=6e4,a={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function t(p,T,l){var v,u;if(p===""||(v=a.timezoneZ.exec(p),v))return 0;var d;if(v=a.timezoneHH.exec(p),v)return d=parseInt(v[1],10),x(d)?-(d*s):NaN;if(v=a.timezoneHHMM.exec(p),v){d=parseInt(v[1],10);var b=parseInt(v[2],10);return x(d,b)?(u=Math.abs(d)*s+b*n,d>0?-u:u):NaN}if(M(p)){T=new Date(T||Date.now());var w=l?T:r(T),S=c(w,p),y=l?S:g(T,S,p);return-y}return NaN}function r(p){return(0,f.default)(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds())}function c(p,T){var l=(0,o.default)(p,T),v=(0,f.default)(l[0],l[1]-1,l[2],l[3]%24,l[4],l[5],0).getTime(),u=p.getTime(),d=u%1e3;return u-=d>=0?d:1e3+d,v-u}function g(p,T,l){var v=p.getTime(),u=v-T,d=c(new Date(u),l);if(T===d)return T;u-=d-T;var b=c(new Date(u),l);return d===b?d:Math.max(d,b)}function x(p,T){return-23<=p&&p<=23&&(T==null||0<=T&&T<=59)}var h={};function M(p){if(h[p])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:p}),h[p]=!0,!0}catch{return!1}}i.exports=e.default})(qe,qe.exports);var B=qe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=m(Tt),f=m(B);function m(h){return h&&h.__esModule?h:{default:h}}var s=60*1e3,n={X:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);if(l===0)return"Z";switch(M){case"X":return c(l);case"XXXX":case"XX":return r(l);case"XXXXX":case"XXX":default:return r(l,":")}},x:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);switch(M){case"x":return c(l);case"xxxx":case"xx":return r(l);case"xxxxx":case"xxx":default:return r(l,":")}},O:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);switch(M){case"O":case"OO":case"OOO":return"GMT"+g(l,":");case"OOOO":default:return"GMT"+r(l,":")}},z:function(h,M,p,T){var l=T._originalDate||h;switch(M){case"z":case"zz":case"zzz":return(0,o.default)("short",l,T);case"zzzz":default:return(0,o.default)("long",l,T)}}};function a(h,M){var p=h?(0,f.default)(h,M,!0)/s:M.getTimezoneOffset();if(Number.isNaN(p))throw new RangeError("Invalid time zone specified: "+h);return p}function t(h,M){for(var p=h<0?"-":"",T=Math.abs(h).toString();T.length0?"-":"+",l=Math.abs(h),v=t(Math.floor(l/60),2),u=t(Math.floor(l%60),2);return T+v+p+u}function c(h,M){if(h%60===0){var p=h>0?"-":"+";return p+t(Math.abs(h)/60,2)}return r(h,M)}function g(h,M){var p=h>0?"-":"+",T=Math.abs(h),l=Math.floor(T/60),v=T%60;if(v===0)return p+String(l);var u=M||"";return p+String(l)+u+t(v,2)}var x=n;e.default=x,i.exports=e.default})(Le,Le.exports);var bt=Le.exports,Ze={exports:{}},Ve={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,f=o;e.default=f,i.exports=e.default})(Ve,Ve.exports);var Ma=Ve.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=g;var o=n(H),f=n(ga),m=n(B),s=n(Ma);function n(y){return y&&y.__esModule?y:{default:y}}var a=36e5,t=6e4,r=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:s.default};function g(y,_){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(y===null)return new Date(NaN);var A=_||{},D=A.additionalDigits==null?r:(0,o.default)(A.additionalDigits);if(D!==2&&D!==1&&D!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(y instanceof Date||typeof y=="object"&&Object.prototype.toString.call(y)==="[object Date]")return new Date(y.getTime());if(typeof y=="number"||Object.prototype.toString.call(y)==="[object Number]")return new Date(y);if(!(typeof y=="string"||Object.prototype.toString.call(y)==="[object String]"))return new Date(NaN);var z=x(y),O=h(z.date,D),C=O.year,U=O.restDateString,G=M(U,C);if(isNaN(G))return new Date(NaN);if(G){var Y=G.getTime(),k=0,N;if(z.time&&(k=p(z.time),isNaN(k)))return new Date(NaN);if(z.timeZone||A.timeZone){if(N=(0,m.default)(z.timeZone||A.timeZone,new Date(Y+k)),isNaN(N))return new Date(NaN)}else N=(0,f.default)(new Date(Y+k)),N=(0,f.default)(new Date(Y+k+N));return new Date(Y+k+N)}else return new Date(NaN)}function x(y){var _={},A=c.dateTimePattern.exec(y),D;if(A?(_.date=A[1],D=A[3]):(A=c.datePattern.exec(y),A?(_.date=A[1],D=A[2]):(_.date=null,D=y)),D){var z=c.timeZone.exec(D);z?(_.time=D.replace(z[1],""),_.timeZone=z[1].trim()):_.time=D}return _}function h(y,_){var A=c.YYY[_],D=c.YYYYY[_],z;if(z=c.YYYY.exec(y)||D.exec(y),z){var O=z[1];return{year:parseInt(O,10),restDateString:y.slice(O.length)}}if(z=c.YY.exec(y)||A.exec(y),z){var C=z[1];return{year:parseInt(C,10)*100,restDateString:y.slice(C.length)}}return{year:null}}function M(y,_){if(_===null)return null;var A,D,z,O;if(y.length===0)return D=new Date(0),D.setUTCFullYear(_),D;if(A=c.MM.exec(y),A)return D=new Date(0),z=parseInt(A[1],10)-1,d(_,z)?(D.setUTCFullYear(_,z),D):new Date(NaN);if(A=c.DDD.exec(y),A){D=new Date(0);var C=parseInt(A[1],10);return b(_,C)?(D.setUTCFullYear(_,0,C),D):new Date(NaN)}if(A=c.MMDD.exec(y),A){D=new Date(0),z=parseInt(A[1],10)-1;var U=parseInt(A[2],10);return d(_,z,U)?(D.setUTCFullYear(_,z,U),D):new Date(NaN)}if(A=c.Www.exec(y),A)return O=parseInt(A[1],10)-1,w(_,O)?T(_,O):new Date(NaN);if(A=c.WwwD.exec(y),A){O=parseInt(A[1],10)-1;var G=parseInt(A[2],10)-1;return w(_,O,G)?T(_,O,G):new Date(NaN)}return null}function p(y){var _,A,D;if(_=c.HH.exec(y),_)return A=parseFloat(_[1].replace(",",".")),S(A)?A%24*a:NaN;if(_=c.HHMM.exec(y),_)return A=parseInt(_[1],10),D=parseFloat(_[2].replace(",",".")),S(A,D)?A%24*a+D*t:NaN;if(_=c.HHMMSS.exec(y),_){A=parseInt(_[1],10),D=parseInt(_[2],10);var z=parseFloat(_[3].replace(",","."));return S(A,D,z)?A%24*a+D*t+z*1e3:NaN}return null}function T(y,_,A){_=_||0,A=A||0;var D=new Date(0);D.setUTCFullYear(y,0,4);var z=D.getUTCDay()||7,O=_*7+A+1-z;return D.setUTCDate(D.getUTCDate()+O),D}var l=[31,28,31,30,31,30,31,31,30,31,30,31],v=[31,29,31,30,31,30,31,31,30,31,30,31];function u(y){return y%400===0||y%4===0&&y%100!==0}function d(y,_,A){if(_<0||_>11)return!1;if(A!=null){if(A<1)return!1;var D=u(y);if(D&&A>v[_]||!D&&A>l[_])return!1}return!0}function b(y,_){if(_<1)return!1;var A=u(y);return!(A&&_>366||!A&&_>365)}function w(y,_,A){return!(_<0||_>52||A!=null&&(A<0||A>6))}function S(y,_,A){return!(y!=null&&(y<0||y>=25)||_!=null&&(_<0||_>=60)||A!=null&&(A<0||A>=60))}i.exports=e.default})(Ze,Ze.exports);var J=Ze.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=s(vt),f=s(bt),m=s(J);function s(t){return t&&t.__esModule?t:{default:t}}var n=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function a(t,r,c){var g=String(r),x=c||{},h=g.match(n);if(h){var M=(0,m.default)(t,x);g=h.reduce(function(p,T){if(T[0]==="'")return p;var l=p.indexOf(T),v=p[l-1]==="'",u=p.replace(T,"'"+f.default[T[0]](M,T,null,x)+"'");return v?u.substring(0,l-1)+u.substring(l+1):u},g)}return(0,o.default)(t,g,x)}i.exports=e.default})(fe,fe.exports);var _a=fe.exports,Ke={exports:{}},Qe={exports:{}},Je={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){if(f==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var s in m)Object.prototype.hasOwnProperty.call(m,s)&&(f[s]=m[s]);return f}i.exports=e.default})(Je,Je.exports);var gt=Je.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var o=f(gt);function f(s){return s&&s.__esModule?s:{default:s}}function m(s){return(0,o.default)({},s)}i.exports=e.default})(Qe,Qe.exports);var Aa=Qe.exports,je={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=m(B),f=m(J);function m(n){return n&&n.__esModule?n:{default:n}}function s(n,a,t){var r=(0,f.default)(n,t),c=(0,o.default)(a,r,!0),g=new Date(r.getTime()-c),x=new Date(0);return x.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),x.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),x}i.exports=e.default})(je,je.exports);var xa=je.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Aa),f=s(_a),m=s(xa);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t,r,c){var g=(0,o.default)(c);return g.timeZone=t,(0,f.default)((0,m.default)(a,t),r,g)}i.exports=e.default})(Ke,Ke.exports);var pt=Ke.exports,ea={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var o=f(B);function f(s){return s&&s.__esModule?s:{default:s}}function m(s,n){return-(0,o.default)(s,n)}i.exports=e.default})(ea,ea.exports);var Mt=ea.exports,aa={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=a(Aa),f=a(J),m=a(Ma),s=a(B),n=a(pa);function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c,g){if(typeof r=="string"&&!r.match(m.default)){var x=(0,o.default)(g);return x.timeZone=c,(0,f.default)(r,x)}var h=(0,f.default)(r,g),M=(0,n.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),p=(0,s.default)(c,new Date(M));return new Date(M+p)}i.exports=e.default})(aa,aa.exports);var _t=aa.exports,ta={format:_a,formatInTimeZone:pt,getTimezoneOffset:Mt,toDate:J,utcToZonedTime:xa,zonedTimeToUtc:_t};function ia(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o]);return i}function ya(i){return ia({},i)}var oa=1440,At=2520,se=43200,xt=86400;function yt(i,e,o){var f,m;Q(2,arguments);var s=ma(),n=(f=(m=o==null?void 0:o.locale)!==null&&m!==void 0?m:s.locale)!==null&&f!==void 0?f:da;if(!n.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=ca(i,e);if(isNaN(a))throw new RangeError("Invalid time value");var t=ia(ya(o),{addSuffix:!!(o!=null&&o.addSuffix),comparison:a}),r,c;a>0?(r=R(e),c=R(i)):(r=R(i),c=R(e));var g=Ca(c,r),x=(V(c)-V(r))/1e3,h=Math.round((g-x)/60),M;if(h<2)return o!=null&&o.includeSeconds?g<5?n.formatDistance("lessThanXSeconds",5,t):g<10?n.formatDistance("lessThanXSeconds",10,t):g<20?n.formatDistance("lessThanXSeconds",20,t):g<40?n.formatDistance("halfAMinute",0,t):g<60?n.formatDistance("lessThanXMinutes",1,t):n.formatDistance("xMinutes",1,t):h===0?n.formatDistance("lessThanXMinutes",1,t):n.formatDistance("xMinutes",h,t);if(h<45)return n.formatDistance("xMinutes",h,t);if(h<90)return n.formatDistance("aboutXHours",1,t);if(h0?(c=R(e),g=R(i)):(c=R(i),g=R(e));var x=String((s=o==null?void 0:o.roundingMethod)!==null&&s!==void 0?s:"round"),h;if(x==="floor")h=Math.floor;else if(x==="ceil")h=Math.ceil;else if(x==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var M=g.getTime()-c.getTime(),p=M/ua,T=V(g)-V(c),l=(M-T)/ua,v=o==null?void 0:o.unit,u;if(v?u=String(v):p<1?u="second":p<60?u="minute":p9?`${o}:00`:`0${o}:00`;if(i>0)return`${e}+${f}`;if(i<0)return`${e}-${f}`}function wa(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function Ot(){const i=wa(),e=Pt.find(({zones:o})=>o==null?void 0:o.includes(i));return e?`${e.label} (${e.abbr})`:i}function Ut(i){if(i==="local")return Ot();const e=j[i];return e?`${i} (${e.abbr})`:i}function Yt({date:i=new Date,hour:e=0,minute:o=0,second:f=0}={}){const m=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),Number(e),Number(o),Number(f));return new Date(m).toISOString()}const Wt=la("timeFormat","UTC"),Rt=la("relativeTime",!1),j={"Greenwich Mean Time":{abbr:"GMT",offset:0,zones:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","America/Danmarkshavn","Atlantic/Reykjavik","Atlantic/St_Helena"]},"East Africa Time":{abbr:"GMT+3",offset:3,zones:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Kampala","Africa/Mogadishu","Africa/Nairobi","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},"Central European Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Algiers","Africa/Tunis"]},"West Africa Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo"]},"Central Africa Time":{abbr:"GMT+2",offset:2,zones:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Juba","Africa/Khartoum","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Windhoek"]},"Eastern European Summer Time":{abbr:"GMT+3",offset:3,zones:["Africa/Cairo","Asia/Beirut","Asia/Gaza","Asia/Hebron","Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"]},"GMT+01:00":{abbr:"GMT+1",offset:1,zones:["Africa/Casablanca","Africa/El_Aaiun","Europe/Guernsey","Europe/Isle_of_Man","Europe/Jersey"]},"Central European Summer Time":{abbr:"GMT+2",offset:2,zones:["Africa/Ceuta","Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Budapest","Europe/Busingen","Europe/Copenhagen","Europe/Gibraltar","Europe/Ljubljana","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Rome","Europe/San_Marino","Europe/Sarajevo","Europe/Skopje","Europe/Stockholm","Europe/Tirane","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Warsaw","Europe/Zagreb","Europe/Zurich"]},"South Africa Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Johannesburg","Africa/Maseru","Africa/Mbabane"]},"Eastern European Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Tripoli","Europe/Kaliningrad"]},"Hawaii-Aleutian Daylight Time":{abbr:"HADT",offset:-9,zones:["America/Adak"]},"Alaska Daylight Time":{abbr:"AKDT",offset:-8,zones:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},"Atlantic Standard Time":{abbr:"AST",offset:-4,zones:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Curacao","America/Dominica","America/Grenada","America/Guadeloupe","America/Kralendijk","America/Lower_Princes","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola"]},"Brasilia Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Araguaina","America/Bahia","America/Belem","America/Fortaleza","America/Maceio","America/Recife","America/Santarem","America/Sao_Paulo"]},"Argentina Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},"Paraguay Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Asuncion"]},"Central Standard Time":{abbr:"CST",offset:-6,zones:["America/Bahia_Banderas","America/Belize","America/Chihuahua","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Merida","America/Mexico_City","America/Monterrey","America/Regina","America/Swift_Current","America/Tegucigalpa"]},"Amazon Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Boa_Vista","America/Campo_Grande","America/Cuiaba","America/Manaus","America/Porto_Velho"]},"Colombia Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Bogota"]},"Mountain Daylight Time":{abbr:"MDT",offset:-6,zones:["America/Boise","America/Cambridge_Bay","America/Ciudad_Juarez","America/Denver","America/Edmonton","America/Inuvik","America/Yellowknife"]},"Eastern Standard Time":{abbr:"EST",offset:-5,zones:["America/Cancun","America/Cayman","America/Coral_Harbour","America/Jamaica","America/Panama"]},"Venezuela Time":{abbr:"GMT-4",offset:-4,zones:["America/Caracas"]},"French Guiana Time":{abbr:"GMT-3",offset:-3,zones:["America/Cayenne"]},"Central Daylight Time":{abbr:"CDT",offset:-5,zones:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg"]},"Mountain Standard Time":{abbr:"MST",offset:-7,zones:["America/Creston","America/Dawson_Creek","America/Fort_Nelson","America/Phoenix"]},"Yukon Time":{abbr:"GMT-7",offset:-7,zones:["America/Dawson","America/Whitehorse"]},"Eastern Daylight Time":{abbr:"EDT",offset:-4,zones:["America/Detroit","America/Grand_Turk","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},"Acre Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Eirunepe","America/Rio_Branco"]},"Atlantic Daylight Time":{abbr:"ADT",offset:-3,zones:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},"West Greenland Summer Time":{abbr:"GMT-2",offset:-2,zones:["America/Godthab"]},"Ecuador Time":{abbr:"GMT-5",offset:-5,zones:["America/Guayaquil"]},"Guyana Time":{abbr:"GMT-4",offset:-4,zones:["America/Guyana"]},"Cuba Daylight Time":{abbr:"GMT-4",offset:-4,zones:["America/Havana"]},"Mexican Pacific Standard Time":{abbr:"GMT-7",offset:-7,zones:["America/Hermosillo","America/Mazatlan"]},"Bolivia Time":{abbr:"GMT-4",offset:-4,zones:["America/La_Paz"]},"Peru Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Lima"]},"Pacific Daylight Time":{abbr:"PDT",offset:-7,zones:["America/Los_Angeles","America/Tijuana","America/Vancouver"]},"St. Pierre & Miquelon Daylight Time":{abbr:"GMT-2",offset:-2,zones:["America/Miquelon"]},"Uruguay Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Montevideo"]},"GMT-04:00":{abbr:"GMT-4",offset:-4,zones:["America/Montreal"]},"Fernando de Noronha Standard Time":{abbr:"GMT-2",offset:-2,zones:["America/Noronha"]},"Suriname Time":{abbr:"GMT-3",offset:-3,zones:["America/Paramaribo"]},"GMT-03:00":{abbr:"GMT-3",offset:-3,zones:["America/Punta_Arenas","Antarctica/Palmer"]},"Northwest Mexico Daylight Time":{abbr:"GMT-7",offset:-7,zones:["America/Santa_Isabel"]},"Chile Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Santiago"]},"East Greenland Summer Time":{abbr:"GMT",offset:0,zones:["America/Scoresbysund"]},"Newfoundland Daylight Time":{abbr:"GMT-2:30",offset:-3,zones:["America/St_Johns"]},"Casey Time":{abbr:"GMT+11",offset:11,zones:["Antarctica/Casey"]},"Davis Time":{abbr:"GMT+7",offset:7,zones:["Antarctica/Davis"]},"Dumont-d’Urville Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/DumontDUrville"]},"Australian Eastern Standard Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/Macquarie","Australia/Brisbane","Australia/Currie","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Sydney"]},"Mawson Time":{abbr:"GMT+5",offset:5,zones:["Antarctica/Mawson"]},"New Zealand Standard Time":{abbr:"GMT+12",offset:12,zones:["Antarctica/McMurdo","Pacific/Auckland"]},"Rothera Time":{abbr:"GMT-3",offset:-3,zones:["Antarctica/Rothera"]},"Syowa Time":{abbr:"GMT+3",offset:3,zones:["Antarctica/Syowa"]},"GMT+02:00":{abbr:"GMT+2",offset:2,zones:["Antarctica/Troll"]},"Vostok Time":{abbr:"GMT+6",offset:6,zones:["Antarctica/Vostok"]},"Arabian Standard Time":{abbr:"GMT+3",offset:3,zones:["Asia/Aden","Asia/Baghdad","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},"East Kazakhstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Almaty","Asia/Qostanay"]},"GMT+03:00":{abbr:"GMT+3",offset:3,zones:["Asia/Amman","Asia/Damascus","Asia/Famagusta","Europe/Istanbul","Europe/Kirov"]},"Anadyr Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Anadyr"]},"West Kazakhstan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau","Asia/Oral","Asia/Qyzylorda"]},"Turkmenistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Ashgabat"]},"Azerbaijan Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Baku"]},"Indochina Time":{abbr:"GMT+7",offset:7,zones:["Asia/Bangkok","Asia/Phnom_Penh","Asia/Saigon","Asia/Vientiane"]},"GMT+07:00":{abbr:"GMT+7",offset:7,zones:["Asia/Barnaul","Asia/Tomsk"]},"Kyrgyzstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Bishkek"]},"Brunei Darussalam Time":{abbr:"GMT+8",offset:8,zones:["Asia/Brunei"]},"India Standard Time":{abbr:"GMT+5:30",offset:5,zones:["Asia/Calcutta","Asia/Colombo"]},"Yakutsk Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},"Ulaanbaatar Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Choibalsan","Asia/Ulaanbaatar"]},"Bangladesh Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Dhaka"]},"East Timor Time":{abbr:"GMT+9",offset:9,zones:["Asia/Dili"]},"Gulf Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Dubai","Asia/Muscat"]},"Tajikistan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Dushanbe"]},"Hong Kong Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Hong_Kong"]},"Hovd Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Hovd"]},"Irkutsk Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Irkutsk"]},"Western Indonesia Time":{abbr:"GMT+7",offset:7,zones:["Asia/Jakarta","Asia/Pontianak"]},"Eastern Indonesia Time":{abbr:"GMT+9",offset:9,zones:["Asia/Jayapura"]},"Israel Daylight Time":{abbr:"GMT+3",offset:3,zones:["Asia/Jerusalem"]},"Afghanistan Time":{abbr:"GMT+4:30",offset:4,zones:["Asia/Kabul"]},"Petropavlovsk-Kamchatski Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Kamchatka"]},"Pakistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Karachi"]},"Nepal Time":{abbr:"GMT+5:45",offset:5,zones:["Asia/Katmandu"]},"Krasnoyarsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},"Malaysia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Kuala_Lumpur","Asia/Kuching"]},"China Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Macau","Asia/Shanghai"]},"Magadan Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Magadan"]},"Central Indonesia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Makassar"]},"Philippine Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Manila"]},"Novosibirsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Novosibirsk"]},"Omsk Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Omsk"]},"Korean Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Pyongyang","Asia/Seoul"]},"Myanmar Time":{abbr:"GMT+6:30",offset:6,zones:["Asia/Rangoon"]},"Sakhalin Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Sakhalin"]},"Uzbekistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Samarkand","Asia/Tashkent"]},"Singapore Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Singapore"]},"GMT+11:00":{abbr:"GMT+11",offset:11,zones:["Asia/Srednekolymsk","Pacific/Bougainville"]},"Taipei Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Taipei"]},"Georgia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Tbilisi"]},"Iran Standard Time":{abbr:"GMT+3:30",offset:3,zones:["Asia/Tehran"]},"Bhutan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Thimphu"]},"Japan Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Tokyo"]},"GMT+06:00":{abbr:"GMT+6",offset:6,zones:["Asia/Urumqi"]},"Vladivostok Standard Time":{abbr:"GMT+10",offset:10,zones:["Asia/Ust-Nera","Asia/Vladivostok"]},"Yekaterinburg Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Yekaterinburg"]},"Armenia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Yerevan"]},"Azores Summer Time":{abbr:"GMT",offset:0,zones:["Atlantic/Azores"]},"Western European Summer Time":{abbr:"GMT+1",offset:1,zones:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Lisbon"]},"Cape Verde Standard Time":{abbr:"GMT-1",offset:-1,zones:["Atlantic/Cape_Verde"]},"South Georgia Time":{abbr:"GMT-2",offset:-2,zones:["Atlantic/South_Georgia"]},"Falkland Islands Standard Time":{abbr:"GMT-3",offset:-3,zones:["Atlantic/Stanley"]},"Australian Central Standard Time":{abbr:"GMT+9:30",offset:9,zones:["Australia/Adelaide","Australia/Broken_Hill","Australia/Darwin"]},"Australian Central Western Standard Time":{abbr:"GMT+8:45",offset:8,zones:["Australia/Eucla"]},"Lord Howe Standard Time":{abbr:"GMT+10:30",offset:10,zones:["Australia/Lord_Howe"]},"Australian Western Standard Time":{abbr:"GMT+8",offset:8,zones:["Australia/Perth"]},"GMT+04:00":{abbr:"GMT+4",offset:4,zones:["Europe/Astrakhan","Europe/Saratov","Europe/Ulyanovsk"]},"Irish Standard Time":{abbr:"GMT+1",offset:1,zones:["Europe/Dublin"]},"British Summer Time":{abbr:"GMT+1",offset:1,zones:["Europe/London"]},"Moscow Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Minsk","Europe/Moscow","Europe/Simferopol"]},"Samara Standard Time":{abbr:"GMT+4",offset:4,zones:["Europe/Samara"]},"Volgograd Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Volgograd"]},"Indian Ocean Time":{abbr:"GMT+6",offset:6,zones:["Indian/Chagos"]},"Christmas Island Time":{abbr:"GMT+7",offset:7,zones:["Indian/Christmas"]},"Cocos Islands Time":{abbr:"GMT+6:30",offset:6,zones:["Indian/Cocos"]},"French Southern & Antarctic Time":{abbr:"GMT+5",offset:5,zones:["Indian/Kerguelen"]},"Seychelles Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mahe"]},"Maldives Time":{abbr:"GMT+5",offset:5,zones:["Indian/Maldives"]},"Mauritius Standard Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mauritius"]},"Réunion Time":{abbr:"GMT+4",offset:4,zones:["Indian/Reunion"]},"Apia Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Apia"]},"Chatham Standard Time":{abbr:"GMT+12:45",offset:12,zones:["Pacific/Chatham"]},"Easter Island Standard Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Easter"]},"Vanuatu Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Efate"]},"Phoenix Islands Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Enderbury"]},"Tokelau Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Fakaofo"]},"Fiji Standard Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Fiji"]},"Tuvalu Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Funafuti"]},"Galapagos Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Galapagos"]},"Gambier Time":{abbr:"GMT-9",offset:-9,zones:["Pacific/Gambier"]},"Solomon Islands Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Guadalcanal"]},"Chamorro Standard Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Guam","Pacific/Saipan"]},"Hawaii-Aleutian Standard Time":{abbr:"HST",offset:-10,zones:["Pacific/Honolulu","Pacific/Johnston"]},"Line Islands Time":{abbr:"GMT+14",offset:14,zones:["Pacific/Kiritimati"]},"Kosrae Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Kosrae"]},"Marshall Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Kwajalein","Pacific/Majuro"]},"Marquesas Time":{abbr:"GMT-9:30",offset:-10,zones:["Pacific/Marquesas"]},"Samoa Standard Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Midway","Pacific/Pago_Pago"]},"Nauru Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Nauru"]},"Niue Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Niue"]},"Norfolk Island Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Norfolk"]},"New Caledonia Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Noumea"]},"Palau Time":{abbr:"GMT+9",offset:9,zones:["Pacific/Palau"]},"Pitcairn Time":{abbr:"GMT-8",offset:-8,zones:["Pacific/Pitcairn"]},"Ponape Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Ponape"]},"Papua New Guinea Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Port_Moresby"]},"Cook Islands Standard Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Rarotonga"]},"Tahiti Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Tahiti"]},"Gilbert Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Tarawa"]},"Tonga Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Tongatapu"]},"Chuuk Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Truk"]},"Wake Island Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wake"]},"Wallis & Futuna Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wallis"]}},Pt=Object.entries(j).map(([i,e])=>({label:i,value:i,...e})).sort((i,e)=>i.label>e.label?1:e.label>i.label?-1:0),Da=i=>{var e;return i==="local"?wa():((e=j[i])==null?void 0:e.zones[0])??i},Et=i=>{const e=String(Math.abs(i)).padStart(2,"0");return i>=0?`+${e}:00`:`-${e}:00`},Ht=i=>{var o;let e=(o=j[i])==null?void 0:o.offset;if(e===void 0){const f=Da(i),m=ta.getTimezoneOffset(f);m?e=m/1e3/60/60:e=0}return Et(e)};export{Pt as T,Ot as a,j as b,It as c,Ut as d,Da as e,kt as f,Yt as g,ta as h,Nt as i,Ht as j,Rt as r,Wt as t}; +import{p as la}from"./persist-store.8QJu1WeF.js";import{r as Q,w as da,x as ca,t as R,y as Ca,z as V,A as Ga,B as ma,C as ka,D as Na,E as Ia,F as Ua}from"./format-time.6T8OwT4v.js";var fe={exports:{}},le={exports:{}},de={exports:{}},ce={exports:{}},me={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){if(m.length1?"s":"")+" required, but only "+m.length+" present")}i.exports=e.default})(me,me.exports);var P=me.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function m(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(t){return typeof t}:m=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(n)}function s(n){return(0,o.default)(1,arguments),n instanceof Date||m(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}i.exports=e.default})(ce,ce.exports);var Ya=ce.exports,ve={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function m(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(t){return typeof t}:m=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(n)}function s(n){(0,o.default)(1,arguments);var a=Object.prototype.toString.call(n);return n instanceof Date||m(n)==="object"&&a==="[object Date]"?new Date(n.getTime()):typeof n=="number"||a==="[object Number]"?new Date(n):((typeof n=="string"||a==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}i.exports=e.default})(ve,ve.exports);var I=ve.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Ya),f=s(I),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a){if((0,m.default)(1,arguments),!(0,o.default)(a)&&typeof a!="number")return!1;var t=(0,f.default)(a);return!isNaN(Number(t))}i.exports=e.default})(de,de.exports);var Wa=de.exports,Te={exports:{}},he={exports:{}},be={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){if(f===null||f===!0||f===!1)return NaN;var m=Number(f);return isNaN(m)?m:m<0?Math.ceil(m):Math.floor(m)}i.exports=e.default})(be,be.exports);var H=be.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(H),f=s(I),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,m.default)(2,arguments);var r=(0,f.default)(a).getTime(),c=(0,o.default)(t);return new Date(r+c)}i.exports=e.default})(he,he.exports);var Ra=he.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Ra),f=s(P),m=s(H);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,f.default)(2,arguments);var r=(0,m.default)(t);return(0,o.default)(a,-r)}i.exports=e.default})(Te,Te.exports);var Ha=Te.exports,ge={exports:{}},pe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=m(I),f=m(P);function m(a){return a&&a.__esModule?a:{default:a}}var s=864e5;function n(a){(0,f.default)(1,arguments);var t=(0,o.default)(a),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var c=t.getTime(),g=r-c;return Math.floor(g/s)+1}i.exports=e.default})(pe,pe.exports);var Fa=pe.exports,Me={exports:{}},_e={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=m(I),f=m(P);function m(n){return n&&n.__esModule?n:{default:n}}function s(n){(0,f.default)(1,arguments);var a=1,t=(0,o.default)(n),r=t.getUTCDay(),c=(r=g.getTime()?r+1:t.getTime()>=h.getTime()?r:r-1}i.exports=e.default})(xe,xe.exports);var va=xe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(va),f=s(ra),m=s(P);function s(a){return a&&a.__esModule?a:{default:a}}function n(a){(0,m.default)(1,arguments);var t=(0,o.default)(a),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var c=(0,f.default)(r);return c}i.exports=e.default})(Ae,Ae.exports);var La=Ae.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=n(I),f=n(ra),m=n(La),s=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r){(0,s.default)(1,arguments);var c=(0,o.default)(r),g=(0,f.default)(c).getTime()-(0,m.default)(c).getTime();return Math.round(g/a)+1}i.exports=e.default})(Me,Me.exports);var $a=Me.exports,ye={exports:{}},we={exports:{}},F={};Object.defineProperty(F,"__esModule",{value:!0});F.getDefaultOptions=qa;F.setDefaultOptions=Ba;var Ta={};function qa(){return Ta}function Ba(i){Ta=i}(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=n(I),f=n(P),m=n(H),s=F;function n(t){return t&&t.__esModule?t:{default:t}}function a(t,r){var c,g,x,h,M,p,T,l;(0,f.default)(1,arguments);var v=(0,s.getDefaultOptions)(),u=(0,m.default)((c=(g=(x=(h=r==null?void 0:r.weekStartsOn)!==null&&h!==void 0?h:r==null||(M=r.locale)===null||M===void 0||(p=M.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&x!==void 0?x:v.weekStartsOn)!==null&&g!==void 0?g:(T=v.locale)===null||T===void 0||(l=T.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&c!==void 0?c:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,o.default)(t),b=d.getUTCDay(),w=(b=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(d+1,0,w),S.setUTCHours(0,0,0,0);var y=(0,m.default)(S,c),_=new Date(0);_.setUTCFullYear(d,0,w),_.setUTCHours(0,0,0,0);var A=(0,m.default)(_,c);return u.getTime()>=y.getTime()?d+1:u.getTime()>=A.getTime()?d:d-1}i.exports=e.default})(Se,Se.exports);var ha=Se.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=a(ha),f=a(P),m=a(na),s=a(H),n=F;function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c){var g,x,h,M,p,T,l,v;(0,f.default)(1,arguments);var u=(0,n.getDefaultOptions)(),d=(0,s.default)((g=(x=(h=(M=c==null?void 0:c.firstWeekContainsDate)!==null&&M!==void 0?M:c==null||(p=c.locale)===null||p===void 0||(T=p.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&h!==void 0?h:u.firstWeekContainsDate)!==null&&x!==void 0?x:(l=u.locale)===null||l===void 0||(v=l.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&g!==void 0?g:1),b=(0,o.default)(r,c),w=new Date(0);w.setUTCFullYear(b,0,d),w.setUTCHours(0,0,0,0);var S=(0,m.default)(w,c);return S}i.exports=e.default})(De,De.exports);var Xa=De.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=n(I),f=n(na),m=n(Xa),s=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r,c){(0,s.default)(1,arguments);var g=(0,o.default)(r),x=(0,f.default)(g,c).getTime()-(0,m.default)(g,c).getTime();return Math.round(x/a)+1}i.exports=e.default})(ye,ye.exports);var Za=ye.exports,ze={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){for(var s=f<0?"-":"",n=Math.abs(f).toString();n.length0?r:1-r;return(0,o.default)(t==="yy"?c%100:c,t.length)},M:function(a,t){var r=a.getUTCMonth();return t==="M"?String(r+1):(0,o.default)(r+1,2)},d:function(a,t){return(0,o.default)(a.getUTCDate(),t.length)},a:function(a,t){var r=a.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(a,t){return(0,o.default)(a.getUTCHours()%12||12,t.length)},H:function(a,t){return(0,o.default)(a.getUTCHours(),t.length)},m:function(a,t){return(0,o.default)(a.getUTCMinutes(),t.length)},s:function(a,t){return(0,o.default)(a.getUTCSeconds(),t.length)},S:function(a,t){var r=t.length,c=a.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,r-3));return(0,o.default)(g,t.length)}},s=m;e.default=s,i.exports=e.default})(Oe,Oe.exports);var Va=Oe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(Fa),f=r($a),m=r(va),s=r(Za),n=r(ha),a=r(ba),t=r(Va);function r(T){return T&&T.__esModule?T:{default:T}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g={G:function(l,v,u){var d=l.getUTCFullYear()>0?1:0;switch(v){case"G":case"GG":case"GGG":return u.era(d,{width:"abbreviated"});case"GGGGG":return u.era(d,{width:"narrow"});case"GGGG":default:return u.era(d,{width:"wide"})}},y:function(l,v,u){if(v==="yo"){var d=l.getUTCFullYear(),b=d>0?d:1-d;return u.ordinalNumber(b,{unit:"year"})}return t.default.y(l,v)},Y:function(l,v,u,d){var b=(0,n.default)(l,d),w=b>0?b:1-b;if(v==="YY"){var S=w%100;return(0,a.default)(S,2)}return v==="Yo"?u.ordinalNumber(w,{unit:"year"}):(0,a.default)(w,v.length)},R:function(l,v){var u=(0,m.default)(l);return(0,a.default)(u,v.length)},u:function(l,v){var u=l.getUTCFullYear();return(0,a.default)(u,v.length)},Q:function(l,v,u){var d=Math.ceil((l.getUTCMonth()+1)/3);switch(v){case"Q":return String(d);case"QQ":return(0,a.default)(d,2);case"Qo":return u.ordinalNumber(d,{unit:"quarter"});case"QQQ":return u.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return u.quarter(d,{width:"narrow",context:"formatting"});case"QQQQ":default:return u.quarter(d,{width:"wide",context:"formatting"})}},q:function(l,v,u){var d=Math.ceil((l.getUTCMonth()+1)/3);switch(v){case"q":return String(d);case"qq":return(0,a.default)(d,2);case"qo":return u.ordinalNumber(d,{unit:"quarter"});case"qqq":return u.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return u.quarter(d,{width:"narrow",context:"standalone"});case"qqqq":default:return u.quarter(d,{width:"wide",context:"standalone"})}},M:function(l,v,u){var d=l.getUTCMonth();switch(v){case"M":case"MM":return t.default.M(l,v);case"Mo":return u.ordinalNumber(d+1,{unit:"month"});case"MMM":return u.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return u.month(d,{width:"narrow",context:"formatting"});case"MMMM":default:return u.month(d,{width:"wide",context:"formatting"})}},L:function(l,v,u){var d=l.getUTCMonth();switch(v){case"L":return String(d+1);case"LL":return(0,a.default)(d+1,2);case"Lo":return u.ordinalNumber(d+1,{unit:"month"});case"LLL":return u.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return u.month(d,{width:"narrow",context:"standalone"});case"LLLL":default:return u.month(d,{width:"wide",context:"standalone"})}},w:function(l,v,u,d){var b=(0,s.default)(l,d);return v==="wo"?u.ordinalNumber(b,{unit:"week"}):(0,a.default)(b,v.length)},I:function(l,v,u){var d=(0,f.default)(l);return v==="Io"?u.ordinalNumber(d,{unit:"week"}):(0,a.default)(d,v.length)},d:function(l,v,u){return v==="do"?u.ordinalNumber(l.getUTCDate(),{unit:"date"}):t.default.d(l,v)},D:function(l,v,u){var d=(0,o.default)(l);return v==="Do"?u.ordinalNumber(d,{unit:"dayOfYear"}):(0,a.default)(d,v.length)},E:function(l,v,u){var d=l.getUTCDay();switch(v){case"E":case"EE":case"EEE":return u.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return u.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return u.day(d,{width:"short",context:"formatting"});case"EEEE":default:return u.day(d,{width:"wide",context:"formatting"})}},e:function(l,v,u,d){var b=l.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(v){case"e":return String(w);case"ee":return(0,a.default)(w,2);case"eo":return u.ordinalNumber(w,{unit:"day"});case"eee":return u.day(b,{width:"abbreviated",context:"formatting"});case"eeeee":return u.day(b,{width:"narrow",context:"formatting"});case"eeeeee":return u.day(b,{width:"short",context:"formatting"});case"eeee":default:return u.day(b,{width:"wide",context:"formatting"})}},c:function(l,v,u,d){var b=l.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(v){case"c":return String(w);case"cc":return(0,a.default)(w,v.length);case"co":return u.ordinalNumber(w,{unit:"day"});case"ccc":return u.day(b,{width:"abbreviated",context:"standalone"});case"ccccc":return u.day(b,{width:"narrow",context:"standalone"});case"cccccc":return u.day(b,{width:"short",context:"standalone"});case"cccc":default:return u.day(b,{width:"wide",context:"standalone"})}},i:function(l,v,u){var d=l.getUTCDay(),b=d===0?7:d;switch(v){case"i":return String(b);case"ii":return(0,a.default)(b,v.length);case"io":return u.ordinalNumber(b,{unit:"day"});case"iii":return u.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return u.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return u.day(d,{width:"short",context:"formatting"});case"iiii":default:return u.day(d,{width:"wide",context:"formatting"})}},a:function(l,v,u){var d=l.getUTCHours(),b=d/12>=1?"pm":"am";switch(v){case"a":case"aa":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"aaa":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"aaaa":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},b:function(l,v,u){var d=l.getUTCHours(),b;switch(d===12?b=c.noon:d===0?b=c.midnight:b=d/12>=1?"pm":"am",v){case"b":case"bb":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"bbb":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"bbbb":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},B:function(l,v,u){var d=l.getUTCHours(),b;switch(d>=17?b=c.evening:d>=12?b=c.afternoon:d>=4?b=c.morning:b=c.night,v){case"B":case"BB":case"BBB":return u.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"BBBBB":return u.dayPeriod(b,{width:"narrow",context:"formatting"});case"BBBB":default:return u.dayPeriod(b,{width:"wide",context:"formatting"})}},h:function(l,v,u){if(v==="ho"){var d=l.getUTCHours()%12;return d===0&&(d=12),u.ordinalNumber(d,{unit:"hour"})}return t.default.h(l,v)},H:function(l,v,u){return v==="Ho"?u.ordinalNumber(l.getUTCHours(),{unit:"hour"}):t.default.H(l,v)},K:function(l,v,u){var d=l.getUTCHours()%12;return v==="Ko"?u.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,v.length)},k:function(l,v,u){var d=l.getUTCHours();return d===0&&(d=24),v==="ko"?u.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,v.length)},m:function(l,v,u){return v==="mo"?u.ordinalNumber(l.getUTCMinutes(),{unit:"minute"}):t.default.m(l,v)},s:function(l,v,u){return v==="so"?u.ordinalNumber(l.getUTCSeconds(),{unit:"second"}):t.default.s(l,v)},S:function(l,v){return t.default.S(l,v)},X:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();if(w===0)return"Z";switch(v){case"X":return h(w);case"XXXX":case"XX":return M(w);case"XXXXX":case"XXX":default:return M(w,":")}},x:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"x":return h(w);case"xxxx":case"xx":return M(w);case"xxxxx":case"xxx":default:return M(w,":")}},O:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"O":case"OO":case"OOO":return"GMT"+x(w,":");case"OOOO":default:return"GMT"+M(w,":")}},z:function(l,v,u,d){var b=d._originalDate||l,w=b.getTimezoneOffset();switch(v){case"z":case"zz":case"zzz":return"GMT"+x(w,":");case"zzzz":default:return"GMT"+M(w,":")}},t:function(l,v,u,d){var b=d._originalDate||l,w=Math.floor(b.getTime()/1e3);return(0,a.default)(w,v.length)},T:function(l,v,u,d){var b=d._originalDate||l,w=b.getTime();return(0,a.default)(w,v.length)}};function x(T,l){var v=T>0?"-":"+",u=Math.abs(T),d=Math.floor(u/60),b=u%60;if(b===0)return v+String(d);var w=l||"";return v+String(d)+w+(0,a.default)(b,2)}function h(T,l){if(T%60===0){var v=T>0?"-":"+";return v+(0,a.default)(Math.abs(T)/60,2)}return M(T,l)}function M(T,l){var v=l||"",u=T>0?"-":"+",d=Math.abs(T),b=(0,a.default)(Math.floor(d/60),2),w=(0,a.default)(d%60,2);return u+b+v+w}var p=g;e.default=p,i.exports=e.default})(ge,ge.exports);var Ka=ge.exports,Pe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},f=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},m=function(t,r){var c=t.match(/(P+)(p+)?/)||[],g=c[1],x=c[2];if(!x)return o(t,r);var h;switch(g){case"P":h=r.dateTime({width:"short"});break;case"PP":h=r.dateTime({width:"medium"});break;case"PPP":h=r.dateTime({width:"long"});break;case"PPPP":default:h=r.dateTime({width:"full"});break}return h.replace("{{date}}",o(g,r)).replace("{{time}}",f(x,r))},s={p:f,P:m},n=s;e.default=n,i.exports=e.default})(Pe,Pe.exports);var Qa=Pe.exports,Ee={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){var m=new Date(Date.UTC(f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()));return m.setUTCFullYear(f.getFullYear()),f.getTime()-m.getTime()}i.exports=e.default})(Ee,Ee.exports);var ga=Ee.exports,q={};Object.defineProperty(q,"__esModule",{value:!0});q.isProtectedDayOfYearToken=et;q.isProtectedWeekYearToken=at;q.throwProtectedError=tt;var Ja=["D","DD"],ja=["YY","YYYY"];function et(i){return Ja.indexOf(i)!==-1}function at(i){return ja.indexOf(i)!==-1}function tt(i,e,o){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ce={exports:{}},Ge={exports:{}},ke={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},f=function(n,a,t){var r,c=o[n];return typeof c=="string"?r=c:a===1?r=c.one:r=c.other.replace("{{count}}",a.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r},m=f;e.default=m,i.exports=e.default})(ke,ke.exports);var rt=ke.exports,Ne={exports:{}},Ie={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){return function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=m.width?String(m.width):f.defaultWidth,n=f.formats[s]||f.formats[f.defaultWidth];return n}}i.exports=e.default})(Ie,Ie.exports);var nt=Ie.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(nt);function f(r){return r&&r.__esModule?r:{default:r}}var m={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a={date:(0,o.default)({formats:m,defaultWidth:"full"}),time:(0,o.default)({formats:s,defaultWidth:"full"}),dateTime:(0,o.default)({formats:n,defaultWidth:"full"})},t=a;e.default=t,i.exports=e.default})(Ne,Ne.exports);var it=Ne.exports,Ue={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},f=function(n,a,t,r){return o[n]},m=f;e.default=m,i.exports=e.default})(Ue,Ue.exports);var ot=Ue.exports,Ye={exports:{}},We={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f){return function(m,s){var n=s!=null&&s.context?String(s.context):"standalone",a;if(n==="formatting"&&f.formattingValues){var t=f.defaultFormattingWidth||f.defaultWidth,r=s!=null&&s.width?String(s.width):t;a=f.formattingValues[r]||f.formattingValues[t]}else{var c=f.defaultWidth,g=s!=null&&s.width?String(s.width):f.defaultWidth;a=f.values[g]||f.values[c]}var x=f.argumentCallback?f.argumentCallback(m):m;return a[x]}}i.exports=e.default})(We,We.exports);var ut=We.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(ut);function f(h){return h&&h.__esModule?h:{default:h}}var m={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},s={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},a={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(M,p){var T=Number(M),l=T%100;if(l>20||l<10)switch(l%10){case 1:return T+"st";case 2:return T+"nd";case 3:return T+"rd"}return T+"th"},g={ordinalNumber:c,era:(0,o.default)({values:m,defaultWidth:"wide"}),quarter:(0,o.default)({values:s,defaultWidth:"wide",argumentCallback:function(M){return M-1}}),month:(0,o.default)({values:n,defaultWidth:"wide"}),day:(0,o.default)({values:a,defaultWidth:"wide"}),dayPeriod:(0,o.default)({values:t,defaultWidth:"wide",formattingValues:r,defaultFormattingWidth:"wide"})},x=g;e.default=x,i.exports=e.default})(Ye,Ye.exports);var st=Ye.exports,Re={exports:{}},He={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(s){return function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=a.width,r=t&&s.matchPatterns[t]||s.matchPatterns[s.defaultMatchWidth],c=n.match(r);if(!c)return null;var g=c[0],x=t&&s.parsePatterns[t]||s.parsePatterns[s.defaultParseWidth],h=Array.isArray(x)?m(x,function(T){return T.test(g)}):f(x,function(T){return T.test(g)}),M;M=s.valueCallback?s.valueCallback(h):h,M=a.valueCallback?a.valueCallback(M):M;var p=n.slice(g.length);return{value:M,rest:p}}}function f(s,n){for(var a in s)if(s.hasOwnProperty(a)&&n(s[a]))return a}function m(s,n){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=m.match(f.matchPattern);if(!n)return null;var a=n[0],t=m.match(f.parsePattern);if(!t)return null;var r=f.valueCallback?f.valueCallback(t[0]):t[0];r=s.valueCallback?s.valueCallback(r):r;var c=m.slice(a.length);return{value:r,rest:c}}}i.exports=e.default})(Fe,Fe.exports);var lt=Fe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=m(ft),f=m(lt);function m(u){return u&&u.__esModule?u:{default:u}}var s=/^(\d+)(th|st|nd|rd)?/i,n=/\d+/i,a={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},t={any:[/^b/i,/^(a|c)/i]},r={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},g={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},x={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},M={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},l={ordinalNumber:(0,f.default)({matchPattern:s,parsePattern:n,valueCallback:function(d){return parseInt(d,10)}}),era:(0,o.default)({matchPatterns:a,defaultMatchWidth:"wide",parsePatterns:t,defaultParseWidth:"any"}),quarter:(0,o.default)({matchPatterns:r,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(d){return d+1}}),month:(0,o.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:x,defaultParseWidth:"any"}),day:(0,o.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:M,defaultParseWidth:"any"}),dayPeriod:(0,o.default)({matchPatterns:p,defaultMatchWidth:"any",parsePatterns:T,defaultParseWidth:"any"})},v=l;e.default=v,i.exports=e.default})(Re,Re.exports);var dt=Re.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(rt),f=a(it),m=a(ot),s=a(st),n=a(dt);function a(c){return c&&c.__esModule?c:{default:c}}var t={code:"en-US",formatDistance:o.default,formatLong:f.default,formatRelative:m.default,localize:s.default,match:n.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},r=t;e.default=r,i.exports=e.default})(Ge,Ge.exports);var ct=Ge.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=f(ct);function f(s){return s&&s.__esModule?s:{default:s}}var m=o.default;e.default=m,i.exports=e.default})(Ce,Ce.exports);var mt=Ce.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var o=h(Wa),f=h(Ha),m=h(I),s=h(Ka),n=h(Qa),a=h(ga),t=q,r=h(H),c=h(P),g=F,x=h(mt);function h(b){return b&&b.__esModule?b:{default:b}}var M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,l=/''/g,v=/[a-zA-Z]/;function u(b,w,S){var y,_,A,D,z,O,C,U,G,Y,k,N,ee,ae,te,re,ne,ie;(0,c.default)(2,arguments);var Sa=String(w),L=(0,g.getDefaultOptions)(),$=(y=(_=S==null?void 0:S.locale)!==null&&_!==void 0?_:L.locale)!==null&&y!==void 0?y:x.default,oe=(0,r.default)((A=(D=(z=(O=S==null?void 0:S.firstWeekContainsDate)!==null&&O!==void 0?O:S==null||(C=S.locale)===null||C===void 0||(U=C.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&z!==void 0?z:L.firstWeekContainsDate)!==null&&D!==void 0?D:(G=L.locale)===null||G===void 0||(Y=G.options)===null||Y===void 0?void 0:Y.firstWeekContainsDate)!==null&&A!==void 0?A:1);if(!(oe>=1&&oe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ue=(0,r.default)((k=(N=(ee=(ae=S==null?void 0:S.weekStartsOn)!==null&&ae!==void 0?ae:S==null||(te=S.locale)===null||te===void 0||(re=te.options)===null||re===void 0?void 0:re.weekStartsOn)!==null&&ee!==void 0?ee:L.weekStartsOn)!==null&&N!==void 0?N:(ne=L.locale)===null||ne===void 0||(ie=ne.options)===null||ie===void 0?void 0:ie.weekStartsOn)!==null&&k!==void 0?k:0);if(!(ue>=0&&ue<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw new RangeError("locale must contain localize property");if(!$.formatLong)throw new RangeError("locale must contain formatLong property");var X=(0,m.default)(b);if(!(0,o.default)(X))throw new RangeError("Invalid time value");var za=(0,a.default)(X),Oa=(0,f.default)(X,za),Pa={firstWeekContainsDate:oe,weekStartsOn:ue,locale:$,_originalDate:X},Ea=Sa.match(p).map(function(E){var W=E[0];if(W==="p"||W==="P"){var Z=n.default[W];return Z(E,$.formatLong)}return E}).join("").match(M).map(function(E){if(E==="''")return"'";var W=E[0];if(W==="'")return d(E);var Z=s.default[W];if(Z)return!(S!=null&&S.useAdditionalWeekYearTokens)&&(0,t.isProtectedWeekYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),!(S!=null&&S.useAdditionalDayOfYearTokens)&&(0,t.isProtectedDayOfYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),Z(Oa,E,$.localize,Pa);if(W.match(v))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return E}).join("");return Ea}function d(b){var w=b.match(T);return w?w[1].replace(l,"'"):b}i.exports=e.default})(le,le.exports);var vt=le.exports,Le={exports:{}},$e={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(n,a,t){var r=s(n,t.timeZone,t.locale);return r.formatToParts?f(r,a):m(r,a)}function f(n,a){for(var t=n.formatToParts(a),r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function m(n,a){var t=n.format(a).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function s(n,a,t){if(t&&!t.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:a,timeZoneName:n})}i.exports=e.default})($e,$e.exports);var Tt=$e.exports,qe={exports:{}},Be={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(t,r){var c=a(r);return c.formatToParts?m(c,t):s(c,t)}var f={year:0,month:1,day:2,hour:3,minute:4,second:5};function m(t,r){try{for(var c=t.formatToParts(r),g=[],x=0;x=0&&(g[h]=parseInt(c[x].value,10))}return g}catch(M){if(M instanceof RangeError)return[NaN];throw M}}function s(t,r){var c=t.format(r).replace(/\u200E/g,""),g=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[g[3],g[1],g[2],g[4],g[5],g[6]]}var n={};function a(t){if(!n[t]){var r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=r==="06/25/2014, 00:00:00"||r==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";n[t]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return n[t]}i.exports=e.default})(Be,Be.exports);var ht=Be.exports,Xe={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m,s,n,a,t,r){var c=new Date(0);return c.setUTCFullYear(f,m,s),c.setUTCHours(n,a,t,r),c}i.exports=e.default})(Xe,Xe.exports);var pa=Xe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=m(ht),f=m(pa);function m(p){return p&&p.__esModule?p:{default:p}}var s=36e5,n=6e4,a={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function t(p,T,l){var v,u;if(p===""||(v=a.timezoneZ.exec(p),v))return 0;var d;if(v=a.timezoneHH.exec(p),v)return d=parseInt(v[1],10),x(d)?-(d*s):NaN;if(v=a.timezoneHHMM.exec(p),v){d=parseInt(v[1],10);var b=parseInt(v[2],10);return x(d,b)?(u=Math.abs(d)*s+b*n,d>0?-u:u):NaN}if(M(p)){T=new Date(T||Date.now());var w=l?T:r(T),S=c(w,p),y=l?S:g(T,S,p);return-y}return NaN}function r(p){return(0,f.default)(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds())}function c(p,T){var l=(0,o.default)(p,T),v=(0,f.default)(l[0],l[1]-1,l[2],l[3]%24,l[4],l[5],0).getTime(),u=p.getTime(),d=u%1e3;return u-=d>=0?d:1e3+d,v-u}function g(p,T,l){var v=p.getTime(),u=v-T,d=c(new Date(u),l);if(T===d)return T;u-=d-T;var b=c(new Date(u),l);return d===b?d:Math.max(d,b)}function x(p,T){return-23<=p&&p<=23&&(T==null||0<=T&&T<=59)}var h={};function M(p){if(h[p])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:p}),h[p]=!0,!0}catch{return!1}}i.exports=e.default})(qe,qe.exports);var B=qe.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=m(Tt),f=m(B);function m(h){return h&&h.__esModule?h:{default:h}}var s=60*1e3,n={X:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);if(l===0)return"Z";switch(M){case"X":return c(l);case"XXXX":case"XX":return r(l);case"XXXXX":case"XXX":default:return r(l,":")}},x:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);switch(M){case"x":return c(l);case"xxxx":case"xx":return r(l);case"xxxxx":case"xxx":default:return r(l,":")}},O:function(h,M,p,T){var l=a(T.timeZone,T._originalDate||h);switch(M){case"O":case"OO":case"OOO":return"GMT"+g(l,":");case"OOOO":default:return"GMT"+r(l,":")}},z:function(h,M,p,T){var l=T._originalDate||h;switch(M){case"z":case"zz":case"zzz":return(0,o.default)("short",l,T);case"zzzz":default:return(0,o.default)("long",l,T)}}};function a(h,M){var p=h?(0,f.default)(h,M,!0)/s:M.getTimezoneOffset();if(Number.isNaN(p))throw new RangeError("Invalid time zone specified: "+h);return p}function t(h,M){for(var p=h<0?"-":"",T=Math.abs(h).toString();T.length0?"-":"+",l=Math.abs(h),v=t(Math.floor(l/60),2),u=t(Math.floor(l%60),2);return T+v+p+u}function c(h,M){if(h%60===0){var p=h>0?"-":"+";return p+t(Math.abs(h)/60,2)}return r(h,M)}function g(h,M){var p=h>0?"-":"+",T=Math.abs(h),l=Math.floor(T/60),v=T%60;if(v===0)return p+String(l);var u=M||"";return p+String(l)+u+t(v,2)}var x=n;e.default=x,i.exports=e.default})(Le,Le.exports);var bt=Le.exports,Ze={exports:{}},Ve={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,f=o;e.default=f,i.exports=e.default})(Ve,Ve.exports);var Ma=Ve.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=g;var o=n(H),f=n(ga),m=n(B),s=n(Ma);function n(y){return y&&y.__esModule?y:{default:y}}var a=36e5,t=6e4,r=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:s.default};function g(y,_){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(y===null)return new Date(NaN);var A=_||{},D=A.additionalDigits==null?r:(0,o.default)(A.additionalDigits);if(D!==2&&D!==1&&D!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(y instanceof Date||typeof y=="object"&&Object.prototype.toString.call(y)==="[object Date]")return new Date(y.getTime());if(typeof y=="number"||Object.prototype.toString.call(y)==="[object Number]")return new Date(y);if(!(typeof y=="string"||Object.prototype.toString.call(y)==="[object String]"))return new Date(NaN);var z=x(y),O=h(z.date,D),C=O.year,U=O.restDateString,G=M(U,C);if(isNaN(G))return new Date(NaN);if(G){var Y=G.getTime(),k=0,N;if(z.time&&(k=p(z.time),isNaN(k)))return new Date(NaN);if(z.timeZone||A.timeZone){if(N=(0,m.default)(z.timeZone||A.timeZone,new Date(Y+k)),isNaN(N))return new Date(NaN)}else N=(0,f.default)(new Date(Y+k)),N=(0,f.default)(new Date(Y+k+N));return new Date(Y+k+N)}else return new Date(NaN)}function x(y){var _={},A=c.dateTimePattern.exec(y),D;if(A?(_.date=A[1],D=A[3]):(A=c.datePattern.exec(y),A?(_.date=A[1],D=A[2]):(_.date=null,D=y)),D){var z=c.timeZone.exec(D);z?(_.time=D.replace(z[1],""),_.timeZone=z[1].trim()):_.time=D}return _}function h(y,_){var A=c.YYY[_],D=c.YYYYY[_],z;if(z=c.YYYY.exec(y)||D.exec(y),z){var O=z[1];return{year:parseInt(O,10),restDateString:y.slice(O.length)}}if(z=c.YY.exec(y)||A.exec(y),z){var C=z[1];return{year:parseInt(C,10)*100,restDateString:y.slice(C.length)}}return{year:null}}function M(y,_){if(_===null)return null;var A,D,z,O;if(y.length===0)return D=new Date(0),D.setUTCFullYear(_),D;if(A=c.MM.exec(y),A)return D=new Date(0),z=parseInt(A[1],10)-1,d(_,z)?(D.setUTCFullYear(_,z),D):new Date(NaN);if(A=c.DDD.exec(y),A){D=new Date(0);var C=parseInt(A[1],10);return b(_,C)?(D.setUTCFullYear(_,0,C),D):new Date(NaN)}if(A=c.MMDD.exec(y),A){D=new Date(0),z=parseInt(A[1],10)-1;var U=parseInt(A[2],10);return d(_,z,U)?(D.setUTCFullYear(_,z,U),D):new Date(NaN)}if(A=c.Www.exec(y),A)return O=parseInt(A[1],10)-1,w(_,O)?T(_,O):new Date(NaN);if(A=c.WwwD.exec(y),A){O=parseInt(A[1],10)-1;var G=parseInt(A[2],10)-1;return w(_,O,G)?T(_,O,G):new Date(NaN)}return null}function p(y){var _,A,D;if(_=c.HH.exec(y),_)return A=parseFloat(_[1].replace(",",".")),S(A)?A%24*a:NaN;if(_=c.HHMM.exec(y),_)return A=parseInt(_[1],10),D=parseFloat(_[2].replace(",",".")),S(A,D)?A%24*a+D*t:NaN;if(_=c.HHMMSS.exec(y),_){A=parseInt(_[1],10),D=parseInt(_[2],10);var z=parseFloat(_[3].replace(",","."));return S(A,D,z)?A%24*a+D*t+z*1e3:NaN}return null}function T(y,_,A){_=_||0,A=A||0;var D=new Date(0);D.setUTCFullYear(y,0,4);var z=D.getUTCDay()||7,O=_*7+A+1-z;return D.setUTCDate(D.getUTCDate()+O),D}var l=[31,28,31,30,31,30,31,31,30,31,30,31],v=[31,29,31,30,31,30,31,31,30,31,30,31];function u(y){return y%400===0||y%4===0&&y%100!==0}function d(y,_,A){if(_<0||_>11)return!1;if(A!=null){if(A<1)return!1;var D=u(y);if(D&&A>v[_]||!D&&A>l[_])return!1}return!0}function b(y,_){if(_<1)return!1;var A=u(y);return!(A&&_>366||!A&&_>365)}function w(y,_,A){return!(_<0||_>52||A!=null&&(A<0||A>6))}function S(y,_,A){return!(y!=null&&(y<0||y>=25)||_!=null&&(_<0||_>=60)||A!=null&&(A<0||A>=60))}i.exports=e.default})(Ze,Ze.exports);var J=Ze.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=s(vt),f=s(bt),m=s(J);function s(t){return t&&t.__esModule?t:{default:t}}var n=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function a(t,r,c){var g=String(r),x=c||{},h=g.match(n);if(h){var M=(0,m.default)(t,x);g=h.reduce(function(p,T){if(T[0]==="'")return p;var l=p.indexOf(T),v=p[l-1]==="'",u=p.replace(T,"'"+f.default[T[0]](M,T,null,x)+"'");return v?u.substring(0,l-1)+u.substring(l+1):u},g)}return(0,o.default)(t,g,x)}i.exports=e.default})(fe,fe.exports);var _a=fe.exports,Ke={exports:{}},Qe={exports:{}},Je={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;function o(f,m){if(f==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var s in m)Object.prototype.hasOwnProperty.call(m,s)&&(f[s]=m[s]);return f}i.exports=e.default})(Je,Je.exports);var gt=Je.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var o=f(gt);function f(s){return s&&s.__esModule?s:{default:s}}function m(s){return(0,o.default)({},s)}i.exports=e.default})(Qe,Qe.exports);var Aa=Qe.exports,je={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var o=m(B),f=m(J);function m(n){return n&&n.__esModule?n:{default:n}}function s(n,a,t){var r=(0,f.default)(n,t),c=(0,o.default)(a,r,!0),g=new Date(r.getTime()-c),x=new Date(0);return x.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),x.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),x}i.exports=e.default})(je,je.exports);var xa=je.exports;(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var o=s(Aa),f=s(_a),m=s(xa);function s(a){return a&&a.__esModule?a:{default:a}}function n(a,t,r,c){var g=(0,o.default)(c);return g.timeZone=t,(0,f.default)((0,m.default)(a,t),r,g)}i.exports=e.default})(Ke,Ke.exports);var pt=Ke.exports,ea={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var o=f(B);function f(s){return s&&s.__esModule?s:{default:s}}function m(s,n){return-(0,o.default)(s,n)}i.exports=e.default})(ea,ea.exports);var Mt=ea.exports,aa={exports:{}};(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var o=a(Aa),f=a(J),m=a(Ma),s=a(B),n=a(pa);function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c,g){if(typeof r=="string"&&!r.match(m.default)){var x=(0,o.default)(g);return x.timeZone=c,(0,f.default)(r,x)}var h=(0,f.default)(r,g),M=(0,n.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),p=(0,s.default)(c,new Date(M));return new Date(M+p)}i.exports=e.default})(aa,aa.exports);var _t=aa.exports,ta={format:_a,formatInTimeZone:pt,getTimezoneOffset:Mt,toDate:J,utcToZonedTime:xa,zonedTimeToUtc:_t};function ia(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o]);return i}function ya(i){return ia({},i)}var oa=1440,At=2520,se=43200,xt=86400;function yt(i,e,o){var f,m;Q(2,arguments);var s=ma(),n=(f=(m=o==null?void 0:o.locale)!==null&&m!==void 0?m:s.locale)!==null&&f!==void 0?f:da;if(!n.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=ca(i,e);if(isNaN(a))throw new RangeError("Invalid time value");var t=ia(ya(o),{addSuffix:!!(o!=null&&o.addSuffix),comparison:a}),r,c;a>0?(r=R(e),c=R(i)):(r=R(i),c=R(e));var g=Ca(c,r),x=(V(c)-V(r))/1e3,h=Math.round((g-x)/60),M;if(h<2)return o!=null&&o.includeSeconds?g<5?n.formatDistance("lessThanXSeconds",5,t):g<10?n.formatDistance("lessThanXSeconds",10,t):g<20?n.formatDistance("lessThanXSeconds",20,t):g<40?n.formatDistance("halfAMinute",0,t):g<60?n.formatDistance("lessThanXMinutes",1,t):n.formatDistance("xMinutes",1,t):h===0?n.formatDistance("lessThanXMinutes",1,t):n.formatDistance("xMinutes",h,t);if(h<45)return n.formatDistance("xMinutes",h,t);if(h<90)return n.formatDistance("aboutXHours",1,t);if(h0?(c=R(e),g=R(i)):(c=R(i),g=R(e));var x=String((s=o==null?void 0:o.roundingMethod)!==null&&s!==void 0?s:"round"),h;if(x==="floor")h=Math.floor;else if(x==="ceil")h=Math.ceil;else if(x==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var M=g.getTime()-c.getTime(),p=M/ua,T=V(g)-V(c),l=(M-T)/ua,v=o==null?void 0:o.unit,u;if(v?u=String(v):p<1?u="second":p<60?u="minute":p9?`${o}:00`:`0${o}:00`;if(i>0)return`${e}+${f}`;if(i<0)return`${e}-${f}`}function wa(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function Ot(){const i=wa(),e=Pt.find(({zones:o})=>o==null?void 0:o.includes(i));return e?`${e.label} (${e.abbr})`:i}function Ut(i){if(i==="local")return Ot();const e=j[i];return e?`${i} (${e.abbr})`:i}function Yt({date:i=new Date,hour:e=0,minute:o=0,second:f=0}={}){const m=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),Number(e),Number(o),Number(f));return new Date(m).toISOString()}const Wt=la("timeFormat","UTC"),Rt=la("relativeTime",!1),j={"Greenwich Mean Time":{abbr:"GMT",offset:0,zones:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","America/Danmarkshavn","Atlantic/Reykjavik","Atlantic/St_Helena"]},"East Africa Time":{abbr:"GMT+3",offset:3,zones:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Kampala","Africa/Mogadishu","Africa/Nairobi","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},"Central European Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Algiers","Africa/Tunis"]},"West Africa Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo"]},"Central Africa Time":{abbr:"GMT+2",offset:2,zones:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Juba","Africa/Khartoum","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Windhoek"]},"Eastern European Summer Time":{abbr:"GMT+3",offset:3,zones:["Africa/Cairo","Asia/Beirut","Asia/Gaza","Asia/Hebron","Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"]},"GMT+01:00":{abbr:"GMT+1",offset:1,zones:["Africa/Casablanca","Africa/El_Aaiun","Europe/Guernsey","Europe/Isle_of_Man","Europe/Jersey"]},"Central European Summer Time":{abbr:"GMT+2",offset:2,zones:["Africa/Ceuta","Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Budapest","Europe/Busingen","Europe/Copenhagen","Europe/Gibraltar","Europe/Ljubljana","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Rome","Europe/San_Marino","Europe/Sarajevo","Europe/Skopje","Europe/Stockholm","Europe/Tirane","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Warsaw","Europe/Zagreb","Europe/Zurich"]},"South Africa Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Johannesburg","Africa/Maseru","Africa/Mbabane"]},"Eastern European Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Tripoli","Europe/Kaliningrad"]},"Hawaii-Aleutian Daylight Time":{abbr:"HADT",offset:-9,zones:["America/Adak"]},"Alaska Daylight Time":{abbr:"AKDT",offset:-8,zones:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},"Atlantic Standard Time":{abbr:"AST",offset:-4,zones:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Curacao","America/Dominica","America/Grenada","America/Guadeloupe","America/Kralendijk","America/Lower_Princes","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola"]},"Brasilia Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Araguaina","America/Bahia","America/Belem","America/Fortaleza","America/Maceio","America/Recife","America/Santarem","America/Sao_Paulo"]},"Argentina Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},"Paraguay Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Asuncion"]},"Central Standard Time":{abbr:"CST",offset:-6,zones:["America/Bahia_Banderas","America/Belize","America/Chihuahua","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Merida","America/Mexico_City","America/Monterrey","America/Regina","America/Swift_Current","America/Tegucigalpa"]},"Amazon Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Boa_Vista","America/Campo_Grande","America/Cuiaba","America/Manaus","America/Porto_Velho"]},"Colombia Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Bogota"]},"Mountain Daylight Time":{abbr:"MDT",offset:-6,zones:["America/Boise","America/Cambridge_Bay","America/Ciudad_Juarez","America/Denver","America/Edmonton","America/Inuvik","America/Yellowknife"]},"Eastern Standard Time":{abbr:"EST",offset:-5,zones:["America/Cancun","America/Cayman","America/Coral_Harbour","America/Jamaica","America/Panama"]},"Venezuela Time":{abbr:"GMT-4",offset:-4,zones:["America/Caracas"]},"French Guiana Time":{abbr:"GMT-3",offset:-3,zones:["America/Cayenne"]},"Central Daylight Time":{abbr:"CDT",offset:-5,zones:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg"]},"Mountain Standard Time":{abbr:"MST",offset:-7,zones:["America/Creston","America/Dawson_Creek","America/Fort_Nelson","America/Phoenix"]},"Yukon Time":{abbr:"GMT-7",offset:-7,zones:["America/Dawson","America/Whitehorse"]},"Eastern Daylight Time":{abbr:"EDT",offset:-4,zones:["America/Detroit","America/Grand_Turk","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},"Acre Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Eirunepe","America/Rio_Branco"]},"Atlantic Daylight Time":{abbr:"ADT",offset:-3,zones:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},"West Greenland Summer Time":{abbr:"GMT-2",offset:-2,zones:["America/Godthab"]},"Ecuador Time":{abbr:"GMT-5",offset:-5,zones:["America/Guayaquil"]},"Guyana Time":{abbr:"GMT-4",offset:-4,zones:["America/Guyana"]},"Cuba Daylight Time":{abbr:"GMT-4",offset:-4,zones:["America/Havana"]},"Mexican Pacific Standard Time":{abbr:"GMT-7",offset:-7,zones:["America/Hermosillo","America/Mazatlan"]},"Bolivia Time":{abbr:"GMT-4",offset:-4,zones:["America/La_Paz"]},"Peru Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Lima"]},"Pacific Daylight Time":{abbr:"PDT",offset:-7,zones:["America/Los_Angeles","America/Tijuana","America/Vancouver"]},"St. Pierre & Miquelon Daylight Time":{abbr:"GMT-2",offset:-2,zones:["America/Miquelon"]},"Uruguay Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Montevideo"]},"GMT-04:00":{abbr:"GMT-4",offset:-4,zones:["America/Montreal"]},"Fernando de Noronha Standard Time":{abbr:"GMT-2",offset:-2,zones:["America/Noronha"]},"Suriname Time":{abbr:"GMT-3",offset:-3,zones:["America/Paramaribo"]},"GMT-03:00":{abbr:"GMT-3",offset:-3,zones:["America/Punta_Arenas","Antarctica/Palmer"]},"Northwest Mexico Daylight Time":{abbr:"GMT-7",offset:-7,zones:["America/Santa_Isabel"]},"Chile Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Santiago"]},"East Greenland Summer Time":{abbr:"GMT",offset:0,zones:["America/Scoresbysund"]},"Newfoundland Daylight Time":{abbr:"GMT-2:30",offset:-3,zones:["America/St_Johns"]},"Casey Time":{abbr:"GMT+11",offset:11,zones:["Antarctica/Casey"]},"Davis Time":{abbr:"GMT+7",offset:7,zones:["Antarctica/Davis"]},"Dumont-d’Urville Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/DumontDUrville"]},"Australian Eastern Standard Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/Macquarie","Australia/Brisbane","Australia/Currie","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Sydney"]},"Mawson Time":{abbr:"GMT+5",offset:5,zones:["Antarctica/Mawson"]},"New Zealand Standard Time":{abbr:"GMT+12",offset:12,zones:["Antarctica/McMurdo","Pacific/Auckland"]},"Rothera Time":{abbr:"GMT-3",offset:-3,zones:["Antarctica/Rothera"]},"Syowa Time":{abbr:"GMT+3",offset:3,zones:["Antarctica/Syowa"]},"GMT+02:00":{abbr:"GMT+2",offset:2,zones:["Antarctica/Troll"]},"Vostok Time":{abbr:"GMT+6",offset:6,zones:["Antarctica/Vostok"]},"Arabian Standard Time":{abbr:"GMT+3",offset:3,zones:["Asia/Aden","Asia/Baghdad","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},"East Kazakhstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Almaty","Asia/Qostanay"]},"GMT+03:00":{abbr:"GMT+3",offset:3,zones:["Asia/Amman","Asia/Damascus","Asia/Famagusta","Europe/Istanbul","Europe/Kirov"]},"Anadyr Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Anadyr"]},"West Kazakhstan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau","Asia/Oral","Asia/Qyzylorda"]},"Turkmenistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Ashgabat"]},"Azerbaijan Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Baku"]},"Indochina Time":{abbr:"GMT+7",offset:7,zones:["Asia/Bangkok","Asia/Phnom_Penh","Asia/Saigon","Asia/Vientiane"]},"GMT+07:00":{abbr:"GMT+7",offset:7,zones:["Asia/Barnaul","Asia/Tomsk"]},"Kyrgyzstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Bishkek"]},"Brunei Darussalam Time":{abbr:"GMT+8",offset:8,zones:["Asia/Brunei"]},"India Standard Time":{abbr:"GMT+5:30",offset:5,zones:["Asia/Calcutta","Asia/Colombo"]},"Yakutsk Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},"Ulaanbaatar Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Choibalsan","Asia/Ulaanbaatar"]},"Bangladesh Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Dhaka"]},"East Timor Time":{abbr:"GMT+9",offset:9,zones:["Asia/Dili"]},"Gulf Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Dubai","Asia/Muscat"]},"Tajikistan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Dushanbe"]},"Hong Kong Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Hong_Kong"]},"Hovd Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Hovd"]},"Irkutsk Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Irkutsk"]},"Western Indonesia Time":{abbr:"GMT+7",offset:7,zones:["Asia/Jakarta","Asia/Pontianak"]},"Eastern Indonesia Time":{abbr:"GMT+9",offset:9,zones:["Asia/Jayapura"]},"Israel Daylight Time":{abbr:"GMT+3",offset:3,zones:["Asia/Jerusalem"]},"Afghanistan Time":{abbr:"GMT+4:30",offset:4,zones:["Asia/Kabul"]},"Petropavlovsk-Kamchatski Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Kamchatka"]},"Pakistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Karachi"]},"Nepal Time":{abbr:"GMT+5:45",offset:5,zones:["Asia/Katmandu"]},"Krasnoyarsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},"Malaysia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Kuala_Lumpur","Asia/Kuching"]},"China Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Macau","Asia/Shanghai"]},"Magadan Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Magadan"]},"Central Indonesia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Makassar"]},"Philippine Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Manila"]},"Novosibirsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Novosibirsk"]},"Omsk Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Omsk"]},"Korean Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Pyongyang","Asia/Seoul"]},"Myanmar Time":{abbr:"GMT+6:30",offset:6,zones:["Asia/Rangoon"]},"Sakhalin Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Sakhalin"]},"Uzbekistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Samarkand","Asia/Tashkent"]},"Singapore Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Singapore"]},"GMT+11:00":{abbr:"GMT+11",offset:11,zones:["Asia/Srednekolymsk","Pacific/Bougainville"]},"Taipei Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Taipei"]},"Georgia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Tbilisi"]},"Iran Standard Time":{abbr:"GMT+3:30",offset:3,zones:["Asia/Tehran"]},"Bhutan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Thimphu"]},"Japan Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Tokyo"]},"GMT+06:00":{abbr:"GMT+6",offset:6,zones:["Asia/Urumqi"]},"Vladivostok Standard Time":{abbr:"GMT+10",offset:10,zones:["Asia/Ust-Nera","Asia/Vladivostok"]},"Yekaterinburg Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Yekaterinburg"]},"Armenia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Yerevan"]},"Azores Summer Time":{abbr:"GMT",offset:0,zones:["Atlantic/Azores"]},"Western European Summer Time":{abbr:"GMT+1",offset:1,zones:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Lisbon"]},"Cape Verde Standard Time":{abbr:"GMT-1",offset:-1,zones:["Atlantic/Cape_Verde"]},"South Georgia Time":{abbr:"GMT-2",offset:-2,zones:["Atlantic/South_Georgia"]},"Falkland Islands Standard Time":{abbr:"GMT-3",offset:-3,zones:["Atlantic/Stanley"]},"Australian Central Standard Time":{abbr:"GMT+9:30",offset:9,zones:["Australia/Adelaide","Australia/Broken_Hill","Australia/Darwin"]},"Australian Central Western Standard Time":{abbr:"GMT+8:45",offset:8,zones:["Australia/Eucla"]},"Lord Howe Standard Time":{abbr:"GMT+10:30",offset:10,zones:["Australia/Lord_Howe"]},"Australian Western Standard Time":{abbr:"GMT+8",offset:8,zones:["Australia/Perth"]},"GMT+04:00":{abbr:"GMT+4",offset:4,zones:["Europe/Astrakhan","Europe/Saratov","Europe/Ulyanovsk"]},"Irish Standard Time":{abbr:"GMT+1",offset:1,zones:["Europe/Dublin"]},"British Summer Time":{abbr:"GMT+1",offset:1,zones:["Europe/London"]},"Moscow Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Minsk","Europe/Moscow","Europe/Simferopol"]},"Samara Standard Time":{abbr:"GMT+4",offset:4,zones:["Europe/Samara"]},"Volgograd Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Volgograd"]},"Indian Ocean Time":{abbr:"GMT+6",offset:6,zones:["Indian/Chagos"]},"Christmas Island Time":{abbr:"GMT+7",offset:7,zones:["Indian/Christmas"]},"Cocos Islands Time":{abbr:"GMT+6:30",offset:6,zones:["Indian/Cocos"]},"French Southern & Antarctic Time":{abbr:"GMT+5",offset:5,zones:["Indian/Kerguelen"]},"Seychelles Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mahe"]},"Maldives Time":{abbr:"GMT+5",offset:5,zones:["Indian/Maldives"]},"Mauritius Standard Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mauritius"]},"Réunion Time":{abbr:"GMT+4",offset:4,zones:["Indian/Reunion"]},"Apia Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Apia"]},"Chatham Standard Time":{abbr:"GMT+12:45",offset:12,zones:["Pacific/Chatham"]},"Easter Island Standard Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Easter"]},"Vanuatu Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Efate"]},"Phoenix Islands Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Enderbury"]},"Tokelau Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Fakaofo"]},"Fiji Standard Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Fiji"]},"Tuvalu Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Funafuti"]},"Galapagos Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Galapagos"]},"Gambier Time":{abbr:"GMT-9",offset:-9,zones:["Pacific/Gambier"]},"Solomon Islands Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Guadalcanal"]},"Chamorro Standard Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Guam","Pacific/Saipan"]},"Hawaii-Aleutian Standard Time":{abbr:"HST",offset:-10,zones:["Pacific/Honolulu","Pacific/Johnston"]},"Line Islands Time":{abbr:"GMT+14",offset:14,zones:["Pacific/Kiritimati"]},"Kosrae Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Kosrae"]},"Marshall Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Kwajalein","Pacific/Majuro"]},"Marquesas Time":{abbr:"GMT-9:30",offset:-10,zones:["Pacific/Marquesas"]},"Samoa Standard Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Midway","Pacific/Pago_Pago"]},"Nauru Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Nauru"]},"Niue Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Niue"]},"Norfolk Island Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Norfolk"]},"New Caledonia Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Noumea"]},"Palau Time":{abbr:"GMT+9",offset:9,zones:["Pacific/Palau"]},"Pitcairn Time":{abbr:"GMT-8",offset:-8,zones:["Pacific/Pitcairn"]},"Ponape Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Ponape"]},"Papua New Guinea Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Port_Moresby"]},"Cook Islands Standard Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Rarotonga"]},"Tahiti Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Tahiti"]},"Gilbert Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Tarawa"]},"Tonga Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Tongatapu"]},"Chuuk Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Truk"]},"Wake Island Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wake"]},"Wallis & Futuna Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wallis"]}},Pt=Object.entries(j).map(([i,e])=>({label:i,value:i,...e})).sort((i,e)=>i.label>e.label?1:e.label>i.label?-1:0),Da=i=>{var e;return i==="local"?wa():((e=j[i])==null?void 0:e.zones[0])??i},Et=i=>{const e=String(Math.abs(i)).padStart(2,"0");return i>=0?`+${e}:00`:`-${e}:00`},Ht=i=>{var o;let e=(o=j[i])==null?void 0:o.offset;if(e===void 0){const f=Da(i),m=ta.getTimezoneOffset(f);m?e=m/1e3/60/60:e=0}return Et(e)};export{Pt as T,Ot as a,j as b,It as c,Ut as d,Da as e,kt as f,Yt as g,ta as h,Nt as i,Ht as j,Rt as r,Wt as t}; diff --git a/ui/assets/local/_app/immutable/chunks/time-picker.WfS3p5z_.js b/ui/assets/local/_app/immutable/chunks/time-picker.IwHKoS08.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/time-picker.WfS3p5z_.js rename to ui/assets/local/_app/immutable/chunks/time-picker.IwHKoS08.js index bdef91302..f19f2735f 100644 --- a/ui/assets/local/_app/immutable/chunks/time-picker.WfS3p5z_.js +++ b/ui/assets/local/_app/immutable/chunks/time-picker.IwHKoS08.js @@ -1 +1 @@ -import{s as q,L as T,e as O,a as A,b as Y,d as z,h as I,g as k,j as G,k as D,l as H,V as E,t as R,f as V}from"./scheduler.AWtTlMeO.js";import{S as K,i as Q,f as L,c as _,a as h,m as v,t as d,g as B,b as g,e as W,d as p}from"./index.91lpp7Ff.js";import{I as P}from"./input.Oj66r1n-.js";import{T as U,a as J}from"./toggle-buttons.Q4BcN_kj.js";const j=[{label:"Every month",value:"*"},{label:"January",value:"1"},{label:"February",value:"2"},{label:"March",value:"3"},{label:"April",value:"4"},{label:"May",value:"5"},{label:"June",value:"6"},{label:"July",value:"7"},{label:"August",value:"8"},{label:"September",value:"9"},{label:"October",value:"10"},{label:"November",value:"11"},{label:"December",value:"12"}],ce=[{label:"Everyday",value:"*"},{label:"Weekdays",value:"1,2,3,4,5"},{label:"Weekends",value:"6,7"}],me=[{label:"Sunday",value:"7"},{label:"Monday",value:"1"},{label:"Tuesday",value:"2"},{label:"Wednesday",value:"3"},{label:"Thursday",value:"4"},{label:"Friday",value:"5"},{label:"Saturday",value:"6"}],X=[31,28,31,30,31,30,31,31,30,31,30,31],Z=l=>l%4===0,x=()=>Array.from({length:42}).map(()=>0),ee=(l,e)=>l!==1?X[l]:Z(e)?29:28,ne=(l,e)=>{const t=new Date(e,l,1).getMonth();return{name:j[t],days:ee(t,e)}},de=l=>j.filter(e=>e.value!=="*")[l],ge=(l,e)=>{const{days:n}=ne(l,e),t=x(),r=new Date(e,l,1).getDay();Array.from({length:n}).forEach((s,c)=>{const m=r+c;t[m]=c+1});const a=t.map(s=>Array.isArray(s)?void 0:s);return a[35]?a:a.slice(0,-7)};function N(l){let e,n,t;function r(s){l[9](s)}let a={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,hideCount:!0,error:parseInt(l[0])>59,disabled:l[6]};return l[2]!==void 0&&(a.value=l[2]),e=new P({props:a}),T.push(()=>L(e,"value",r)),{c(){_(e.$$.fragment)},l(s){h(e.$$.fragment,s)},m(s,c){v(e,s,c),t=!0},p(s,c){const m={};c&1&&(m.error=parseInt(s[0])>59),c&64&&(m.disabled=s[6]),!n&&c&4&&(n=!0,m.value=s[2],E(()=>n=!1)),e.$set(m)},i(s){t||(d(e.$$.fragment,s),t=!0)},o(s){g(e.$$.fragment,s),t=!1},d(s){p(e,s)}}}function F(l){let e,n;return e=new U({props:{$$slots:{default:[te]},$$scope:{ctx:l}}}),{c(){_(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){v(e,t,r),n=!0},p(t,r){const a={};r&4104&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){p(e,t)}}}function le(l){let e;return{c(){e=R("AM")},l(n){e=V(n,"AM")},m(n,t){D(n,e,t)},d(n){n&&k(e)}}}function ae(l){let e;return{c(){e=R("PM")},l(n){e=V(n,"PM")},m(n,t){D(n,e,t)},d(n){n&&k(e)}}}function te(l){let e,n,t,r;return e=new J({props:{active:l[3]==="AM",$$slots:{default:[le]},$$scope:{ctx:l}}}),e.$on("click",l[10]),t=new J({props:{active:l[3]==="PM",$$slots:{default:[ae]},$$scope:{ctx:l}}}),t.$on("click",l[11]),{c(){_(e.$$.fragment),n=A(),_(t.$$.fragment)},l(a){h(e.$$.fragment,a),n=I(a),h(t.$$.fragment,a)},m(a,s){v(e,a,s),D(a,n,s),v(t,a,s),r=!0},p(a,s){const c={};s&8&&(c.active=a[3]==="AM"),s&4096&&(c.$$scope={dirty:s,ctx:a}),e.$set(c);const m={};s&8&&(m.active=a[3]==="PM"),s&4096&&(m.$$scope={dirty:s,ctx:a}),t.$set(m)},i(a){r||(d(e.$$.fragment,a),d(t.$$.fragment,a),r=!0)},o(a){g(e.$$.fragment,a),g(t.$$.fragment,a),r=!1},d(a){a&&k(n),p(e,a),p(t,a)}}}function ue(l){let e,n,t,r,a,s,c,m,b;function S(o){l[7](o)}let w={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,hideCount:!0,error:l[4]?parseInt(l[0])>12:parseInt(l[0])>23,disabled:l[6]};l[0]!==void 0&&(w.value=l[0]),n=new P({props:w}),T.push(()=>L(n,"value",S));function C(o){l[8](o)}let M={id:"minute",label:"min",labelHidden:!0,placeholder:"00",suffix:"min",maxLength:2,hideCount:!0,error:parseInt(l[0])>59,disabled:l[6]};l[1]!==void 0&&(M.value=l[1]),a=new P({props:M}),T.push(()=>L(a,"value",C));let i=l[5]&&N(l),u=l[4]&&F(l);return{c(){e=O("div"),_(n.$$.fragment),r=A(),_(a.$$.fragment),c=A(),i&&i.c(),m=A(),u&&u.c(),this.h()},l(o){e=Y(o,"DIV",{class:!0});var f=z(e);h(n.$$.fragment,f),r=I(f),h(a.$$.fragment,f),c=I(f),i&&i.l(f),m=I(f),u&&u.l(f),f.forEach(k),this.h()},h(){G(e,"class","flex gap-2")},m(o,f){D(o,e,f),v(n,e,null),H(e,r),v(a,e,null),H(e,c),i&&i.m(e,null),H(e,m),u&&u.m(e,null),b=!0},p(o,[f]){const $={};f&17&&($.error=o[4]?parseInt(o[0])>12:parseInt(o[0])>23),f&64&&($.disabled=o[6]),!t&&f&1&&(t=!0,$.value=o[0],E(()=>t=!1)),n.$set($);const y={};f&1&&(y.error=parseInt(o[0])>59),f&64&&(y.disabled=o[6]),!s&&f&2&&(s=!0,y.value=o[1],E(()=>s=!1)),a.$set(y),o[5]?i?(i.p(o,f),f&32&&d(i,1)):(i=N(o),i.c(),d(i,1),i.m(e,m)):i&&(B(),g(i,1,1,()=>{i=null}),W()),o[4]?u?(u.p(o,f),f&16&&d(u,1)):(u=F(o),u.c(),d(u,1),u.m(e,null)):u&&(B(),g(u,1,1,()=>{u=null}),W())},i(o){b||(d(n.$$.fragment,o),d(a.$$.fragment,o),d(i),d(u),b=!0)},o(o){g(n.$$.fragment,o),g(a.$$.fragment,o),g(i),g(u),b=!1},d(o){o&&k(e),p(n),p(a),i&&i.d(),u&&u.d()}}}function se(l,e,n){let{hour:t=""}=e,{minute:r=""}=e,{second:a=""}=e,{half:s="AM"}=e,{twelveHourClock:c=!0}=e,{includeSeconds:m=!0}=e,{disabled:b=!1}=e;function S(u){t=u,n(0,t)}function w(u){r=u,n(1,r)}function C(u){a=u,n(2,a)}const M=()=>n(3,s="AM"),i=()=>n(3,s="PM");return l.$$set=u=>{"hour"in u&&n(0,t=u.hour),"minute"in u&&n(1,r=u.minute),"second"in u&&n(2,a=u.second),"half"in u&&n(3,s=u.half),"twelveHourClock"in u&&n(4,c=u.twelveHourClock),"includeSeconds"in u&&n(5,m=u.includeSeconds),"disabled"in u&&n(6,b=u.disabled)},[t,r,a,s,c,m,b,S,w,C,M,i]}class be extends K{constructor(e){super(),Q(this,e,se,ue,q,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,includeSeconds:5,disabled:6})}}export{be as T,de as a,ce as b,ge as g,j as m,me as w}; +import{s as q,L as T,e as O,a as A,b as Y,d as z,h as I,g as k,j as G,k as D,l as H,V as E,t as R,f as V}from"./scheduler.AWtTlMeO.js";import{S as K,i as Q,f as L,c as _,a as h,m as v,t as d,g as B,b as g,e as W,d as p}from"./index.91lpp7Ff.js";import{I as P}from"./input.EAz4myrb.js";import{T as U,a as J}from"./toggle-buttons.G5X0hB9M.js";const j=[{label:"Every month",value:"*"},{label:"January",value:"1"},{label:"February",value:"2"},{label:"March",value:"3"},{label:"April",value:"4"},{label:"May",value:"5"},{label:"June",value:"6"},{label:"July",value:"7"},{label:"August",value:"8"},{label:"September",value:"9"},{label:"October",value:"10"},{label:"November",value:"11"},{label:"December",value:"12"}],ce=[{label:"Everyday",value:"*"},{label:"Weekdays",value:"1,2,3,4,5"},{label:"Weekends",value:"6,7"}],me=[{label:"Sunday",value:"7"},{label:"Monday",value:"1"},{label:"Tuesday",value:"2"},{label:"Wednesday",value:"3"},{label:"Thursday",value:"4"},{label:"Friday",value:"5"},{label:"Saturday",value:"6"}],X=[31,28,31,30,31,30,31,31,30,31,30,31],Z=l=>l%4===0,x=()=>Array.from({length:42}).map(()=>0),ee=(l,e)=>l!==1?X[l]:Z(e)?29:28,ne=(l,e)=>{const t=new Date(e,l,1).getMonth();return{name:j[t],days:ee(t,e)}},de=l=>j.filter(e=>e.value!=="*")[l],ge=(l,e)=>{const{days:n}=ne(l,e),t=x(),r=new Date(e,l,1).getDay();Array.from({length:n}).forEach((s,c)=>{const m=r+c;t[m]=c+1});const a=t.map(s=>Array.isArray(s)?void 0:s);return a[35]?a:a.slice(0,-7)};function N(l){let e,n,t;function r(s){l[9](s)}let a={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,hideCount:!0,error:parseInt(l[0])>59,disabled:l[6]};return l[2]!==void 0&&(a.value=l[2]),e=new P({props:a}),T.push(()=>L(e,"value",r)),{c(){_(e.$$.fragment)},l(s){h(e.$$.fragment,s)},m(s,c){v(e,s,c),t=!0},p(s,c){const m={};c&1&&(m.error=parseInt(s[0])>59),c&64&&(m.disabled=s[6]),!n&&c&4&&(n=!0,m.value=s[2],E(()=>n=!1)),e.$set(m)},i(s){t||(d(e.$$.fragment,s),t=!0)},o(s){g(e.$$.fragment,s),t=!1},d(s){p(e,s)}}}function F(l){let e,n;return e=new U({props:{$$slots:{default:[te]},$$scope:{ctx:l}}}),{c(){_(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){v(e,t,r),n=!0},p(t,r){const a={};r&4104&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){p(e,t)}}}function le(l){let e;return{c(){e=R("AM")},l(n){e=V(n,"AM")},m(n,t){D(n,e,t)},d(n){n&&k(e)}}}function ae(l){let e;return{c(){e=R("PM")},l(n){e=V(n,"PM")},m(n,t){D(n,e,t)},d(n){n&&k(e)}}}function te(l){let e,n,t,r;return e=new J({props:{active:l[3]==="AM",$$slots:{default:[le]},$$scope:{ctx:l}}}),e.$on("click",l[10]),t=new J({props:{active:l[3]==="PM",$$slots:{default:[ae]},$$scope:{ctx:l}}}),t.$on("click",l[11]),{c(){_(e.$$.fragment),n=A(),_(t.$$.fragment)},l(a){h(e.$$.fragment,a),n=I(a),h(t.$$.fragment,a)},m(a,s){v(e,a,s),D(a,n,s),v(t,a,s),r=!0},p(a,s){const c={};s&8&&(c.active=a[3]==="AM"),s&4096&&(c.$$scope={dirty:s,ctx:a}),e.$set(c);const m={};s&8&&(m.active=a[3]==="PM"),s&4096&&(m.$$scope={dirty:s,ctx:a}),t.$set(m)},i(a){r||(d(e.$$.fragment,a),d(t.$$.fragment,a),r=!0)},o(a){g(e.$$.fragment,a),g(t.$$.fragment,a),r=!1},d(a){a&&k(n),p(e,a),p(t,a)}}}function ue(l){let e,n,t,r,a,s,c,m,b;function S(o){l[7](o)}let w={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,hideCount:!0,error:l[4]?parseInt(l[0])>12:parseInt(l[0])>23,disabled:l[6]};l[0]!==void 0&&(w.value=l[0]),n=new P({props:w}),T.push(()=>L(n,"value",S));function C(o){l[8](o)}let M={id:"minute",label:"min",labelHidden:!0,placeholder:"00",suffix:"min",maxLength:2,hideCount:!0,error:parseInt(l[0])>59,disabled:l[6]};l[1]!==void 0&&(M.value=l[1]),a=new P({props:M}),T.push(()=>L(a,"value",C));let i=l[5]&&N(l),u=l[4]&&F(l);return{c(){e=O("div"),_(n.$$.fragment),r=A(),_(a.$$.fragment),c=A(),i&&i.c(),m=A(),u&&u.c(),this.h()},l(o){e=Y(o,"DIV",{class:!0});var f=z(e);h(n.$$.fragment,f),r=I(f),h(a.$$.fragment,f),c=I(f),i&&i.l(f),m=I(f),u&&u.l(f),f.forEach(k),this.h()},h(){G(e,"class","flex gap-2")},m(o,f){D(o,e,f),v(n,e,null),H(e,r),v(a,e,null),H(e,c),i&&i.m(e,null),H(e,m),u&&u.m(e,null),b=!0},p(o,[f]){const $={};f&17&&($.error=o[4]?parseInt(o[0])>12:parseInt(o[0])>23),f&64&&($.disabled=o[6]),!t&&f&1&&(t=!0,$.value=o[0],E(()=>t=!1)),n.$set($);const y={};f&1&&(y.error=parseInt(o[0])>59),f&64&&(y.disabled=o[6]),!s&&f&2&&(s=!0,y.value=o[1],E(()=>s=!1)),a.$set(y),o[5]?i?(i.p(o,f),f&32&&d(i,1)):(i=N(o),i.c(),d(i,1),i.m(e,m)):i&&(B(),g(i,1,1,()=>{i=null}),W()),o[4]?u?(u.p(o,f),f&16&&d(u,1)):(u=F(o),u.c(),d(u,1),u.m(e,null)):u&&(B(),g(u,1,1,()=>{u=null}),W())},i(o){b||(d(n.$$.fragment,o),d(a.$$.fragment,o),d(i),d(u),b=!0)},o(o){g(n.$$.fragment,o),g(a.$$.fragment,o),g(i),g(u),b=!1},d(o){o&&k(e),p(n),p(a),i&&i.d(),u&&u.d()}}}function se(l,e,n){let{hour:t=""}=e,{minute:r=""}=e,{second:a=""}=e,{half:s="AM"}=e,{twelveHourClock:c=!0}=e,{includeSeconds:m=!0}=e,{disabled:b=!1}=e;function S(u){t=u,n(0,t)}function w(u){r=u,n(1,r)}function C(u){a=u,n(2,a)}const M=()=>n(3,s="AM"),i=()=>n(3,s="PM");return l.$$set=u=>{"hour"in u&&n(0,t=u.hour),"minute"in u&&n(1,r=u.minute),"second"in u&&n(2,a=u.second),"half"in u&&n(3,s=u.half),"twelveHourClock"in u&&n(4,c=u.twelveHourClock),"includeSeconds"in u&&n(5,m=u.includeSeconds),"disabled"in u&&n(6,b=u.disabled)},[t,r,a,s,c,m,b,S,w,C,M,i]}class be extends K{constructor(e){super(),Q(this,e,se,ue,q,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,includeSeconds:5,disabled:6})}}export{be as T,de as a,ce as b,ge as g,j as m,me as w}; diff --git a/ui/assets/local/_app/immutable/chunks/toaster.JA1rZe2a.js b/ui/assets/local/_app/immutable/chunks/toaster.tT6uD5UN.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/toaster.JA1rZe2a.js rename to ui/assets/local/_app/immutable/chunks/toaster.tT6uD5UN.js index db149c183..91191b623 100644 --- a/ui/assets/local/_app/immutable/chunks/toaster.JA1rZe2a.js +++ b/ui/assets/local/_app/immutable/chunks/toaster.tT6uD5UN.js @@ -1 +1 @@ -import{w as p}from"./entry.49-_VqMH.js";let c;const s=new Uint8Array(16);function m(){if(!c&&(c=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(s)}const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));function y(t,n=0){return(e[t[n+0]]+e[t[n+1]]+e[t[n+2]]+e[t[n+3]]+"-"+e[t[n+4]]+e[t[n+5]]+"-"+e[t[n+6]]+e[t[n+7]]+"-"+e[t[n+8]]+e[t[n+9]]+"-"+e[t[n+10]]+e[t[n+11]]+e[t[n+12]]+e[t[n+13]]+e[t[n+14]]+e[t[n+15]]).toLowerCase()}const l=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r={randomUUID:l};function U(t,n,i){if(r.randomUUID&&!n&&!t)return r.randomUUID();t=t||{};const o=t.random||(t.rng||m)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,n){i=i||0;for(let d=0;d<16;++d)n[i+d]=o[d];return n}return y(o)}const u=p([]),g=t=>{const n={id:U(),duration:3e3,variant:"primary",...t};u.update(o=>[...o,n]);const i=setTimeout(()=>{a(n.id),clearTimeout(i)},n.duration)},a=t=>{u.update(n=>n.filter(i=>i.id!==t))},x=()=>{u.set([])},h={push:g,pop:a,clear:x,toasts:u,set:u.set,subscribe:u.subscribe,update:u.update};export{h as t,U as v}; +import{w as p}from"./entry.Yz1YyohR.js";let c;const s=new Uint8Array(16);function m(){if(!c&&(c=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(s)}const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));function y(t,n=0){return(e[t[n+0]]+e[t[n+1]]+e[t[n+2]]+e[t[n+3]]+"-"+e[t[n+4]]+e[t[n+5]]+"-"+e[t[n+6]]+e[t[n+7]]+"-"+e[t[n+8]]+e[t[n+9]]+"-"+e[t[n+10]]+e[t[n+11]]+e[t[n+12]]+e[t[n+13]]+e[t[n+14]]+e[t[n+15]]).toLowerCase()}const l=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r={randomUUID:l};function U(t,n,i){if(r.randomUUID&&!n&&!t)return r.randomUUID();t=t||{};const o=t.random||(t.rng||m)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,n){i=i||0;for(let d=0;d<16;++d)n[i+d]=o[d];return n}return y(o)}const u=p([]),g=t=>{const n={id:U(),duration:3e3,variant:"primary",...t};u.update(o=>[...o,n]);const i=setTimeout(()=>{a(n.id),clearTimeout(i)},n.duration)},a=t=>{u.update(n=>n.filter(i=>i.id!==t))},x=()=>{u.set([])},h={push:g,pop:a,clear:x,toasts:u,set:u.set,subscribe:u.subscribe,update:u.update};export{h as t,U as v}; diff --git a/ui/assets/local/_app/immutable/chunks/toggle-buttons.Q4BcN_kj.js b/ui/assets/local/_app/immutable/chunks/toggle-buttons.G5X0hB9M.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/toggle-buttons.Q4BcN_kj.js rename to ui/assets/local/_app/immutable/chunks/toggle-buttons.G5X0hB9M.js index 1396575f0..b523a7c8b 100644 --- a/ui/assets/local/_app/immutable/chunks/toggle-buttons.Q4BcN_kj.js +++ b/ui/assets/local/_app/immutable/chunks/toggle-buttons.G5X0hB9M.js @@ -1 +1 @@ -import{U as J,s as S,x as j,k as C,g as b,D as y,c as L,K as O,z as D,A as Q,e as E,b as I,d as N,af as z,H as _,m as R,B as W,p as T,u as q,q as P,r as U,a as X,h as Y,j as V,l as Z,a2 as w}from"./scheduler.AWtTlMeO.js";import{S as K,i as M,t as m,b as d,g as F,e as G,c as $,a as x,m as ee,d as te}from"./index.91lpp7Ff.js";import{g as le}from"./spread.rEx3vLA9.js";import{p as se}from"./stores.BjeHb2_D.js";import{I as ne}from"./icon.hlu3-iXK.js";import{t as B}from"./tw-merge.NbP7EmZe.js";function ae(n){return J(n)}function oe(n){let t;const s=n[10].default,a=T(s,n,n[9],null);return{c(){a&&a.c()},l(l){a&&a.l(l)},m(l,e){a&&a.m(l,e),t=!0},p(l,e){a&&a.p&&(!t||e&512)&&q(a,s,l,l[9],t?U(s,l[9],e,null):P(l[9]),null)},i(l){t||(m(a,l),t=!0)},o(l){d(a,l),t=!1},d(l){a&&a.d(l)}}}function ue(n){let t,s,a,l;s=new ne({props:{name:n[1]}});let e=n[8].default&&H(n);return{c(){t=E("div"),$(s.$$.fragment),a=X(),e&&e.c(),this.h()},l(o){t=I(o,"DIV",{class:!0});var r=N(t);x(s.$$.fragment,r),a=Y(r),e&&e.l(r),r.forEach(b),this.h()},h(){V(t,"class","flex items-center gap-2")},m(o,r){C(o,t,r),ee(s,t,null),Z(t,a),e&&e.m(t,null),l=!0},p(o,r){const h={};r&2&&(h.name=o[1]),s.$set(h),o[8].default?e?(e.p(o,r),r&256&&m(e,1)):(e=H(o),e.c(),m(e,1),e.m(t,null)):e&&(F(),d(e,1,1,()=>{e=null}),G())},i(o){l||(m(s.$$.fragment,o),m(e),l=!0)},o(o){d(s.$$.fragment,o),d(e),l=!1},d(o){o&&b(t),te(s),e&&e.d()}}}function H(n){let t,s;const a=n[10].default,l=T(a,n,n[9],null);return{c(){t=E("span"),l&&l.c(),this.h()},l(e){t=I(e,"SPAN",{class:!0});var o=N(t);l&&l.l(o),o.forEach(b),this.h()},h(){V(t,"class","hidden md:block")},m(e,o){C(e,t,o),l&&l.m(t,null),s=!0},p(e,o){l&&l.p&&(!s||o&512)&&q(l,a,e,e[9],s?U(a,e[9],o,null):P(e[9]),null)},i(e){s||(m(l,e),s=!0)},o(e){d(l,e),s=!1},d(e){e&&b(t),l&&l.d(e)}}}function A(n){let t,s,a,l,e,o,r,h;const v=[ue,oe],c=[];function k(u,f){return u[1]?0:1}s=k(n),a=c[s]=v[s](n);let g=[{class:l=B("toggle-button",n[0])},{href:e=n[3]?n[3]+n[6].url.search:null},{role:"button"},{tabindex:"0"},n[7]],p={};for(let u=0;u{c[i]=null}),G(),a=c[s],a?a.p(u,f):(a=c[s]=v[s](u),a.c()),m(a,1),a.m(t,null)),z(u[3]?"a":"button")(t,p=le(g,[(!o||f&1&&l!==(l=B("toggle-button",u[0])))&&{class:l},(!o||f&72&&e!==(e=u[3]?u[3]+u[6].url.search:null))&&{href:e},{role:"button"},{tabindex:"0"},f&128&&u[7]])),_(t,"group",u[2]),_(t,"active",u[3]?u[6].url.pathname.includes(u[4]):u[5]),_(t,"rounded-lg",!u[2]),_(t,"disabled",u[7].disabled),_(t,"svelte-1idnkre",!0)},i(u){o||(m(a),o=!0)},o(u){d(a),o=!1},d(u){u&&b(t),c[s].d(),r=!1,h()}}}function ie(n){let t=n[3]?"a":"button",s,a,l=(n[3]?"a":"button")&&A(n);return{c(){l&&l.c(),s=j()},l(e){l&&l.l(e),s=j()},m(e,o){l&&l.m(e,o),C(e,s,o),a=!0},p(e,[o]){e[3],t?S(t,e[3]?"a":"button")?(l.d(1),l=A(e),t=e[3]?"a":"button",l.c(),l.m(s.parentNode,s)):l.p(e,o):(l=A(e),t=e[3]?"a":"button",l.c(),l.m(s.parentNode,s))},i(e){a||(m(l,e),a=!0)},o(e){d(l,e),a=!1},d(e){e&&b(s),l&&l.d(e)}}}function re(n,t,s){const a=["class","icon","group","href","base","active"];let l=y(t,a),e;L(n,se,i=>s(6,e=i));let{$$slots:o={},$$scope:r}=t;const h=O(o);let{class:v=""}=t,{icon:c=null}=t,{group:k=ae("group")}=t,{href:g=""}=t,{base:p=g}=t,{active:u=!1}=t;function f(i){W.call(this,n,i)}return n.$$set=i=>{t=D(D({},t),Q(i)),s(7,l=y(t,a)),"class"in i&&s(0,v=i.class),"icon"in i&&s(1,c=i.icon),"group"in i&&s(2,k=i.group),"href"in i&&s(3,g=i.href),"base"in i&&s(4,p=i.base),"active"in i&&s(5,u=i.active),"$$scope"in i&&s(9,r=i.$$scope)},[v,c,k,g,p,u,e,l,h,r,o,f]}class pe extends K{constructor(t){super(),M(this,t,re,ie,S,{class:0,icon:1,group:2,href:3,base:4,active:5})}}function fe(n){let t,s;const a=n[1].default,l=T(a,n,n[0],null);return{c(){t=E("div"),l&&l.c(),this.h()},l(e){t=I(e,"DIV",{class:!0});var o=N(t);l&&l.l(o),o.forEach(b),this.h()},h(){V(t,"class","flex")},m(e,o){C(e,t,o),l&&l.m(t,null),s=!0},p(e,[o]){l&&l.p&&(!s||o&1)&&q(l,a,e,e[0],s?U(a,e[0],o,null):P(e[0]),null)},i(e){s||(m(l,e),s=!0)},o(e){d(l,e),s=!1},d(e){e&&b(t),l&&l.d(e)}}}function ce(n,t,s){let{$$slots:a={},$$scope:l}=t;return w("group",!0),n.$$set=e=>{"$$scope"in e&&s(0,l=e.$$scope)},[l,a]}class ve extends K{constructor(t){super(),M(this,t,ce,fe,S,{})}}export{ve as T,pe as a}; +import{U as J,s as S,x as j,k as C,g as b,D as y,c as L,K as O,z as D,A as Q,e as E,b as I,d as N,af as z,H as _,m as R,B as W,p as T,u as q,q as P,r as U,a as X,h as Y,j as V,l as Z,a2 as w}from"./scheduler.AWtTlMeO.js";import{S as K,i as M,t as m,b as d,g as F,e as G,c as $,a as x,m as ee,d as te}from"./index.91lpp7Ff.js";import{g as le}from"./spread.rEx3vLA9.js";import{p as se}from"./stores.meYYndLY.js";import{I as ne}from"./icon.hlu3-iXK.js";import{t as B}from"./tw-merge.NbP7EmZe.js";function ae(n){return J(n)}function oe(n){let t;const s=n[10].default,a=T(s,n,n[9],null);return{c(){a&&a.c()},l(l){a&&a.l(l)},m(l,e){a&&a.m(l,e),t=!0},p(l,e){a&&a.p&&(!t||e&512)&&q(a,s,l,l[9],t?U(s,l[9],e,null):P(l[9]),null)},i(l){t||(m(a,l),t=!0)},o(l){d(a,l),t=!1},d(l){a&&a.d(l)}}}function ue(n){let t,s,a,l;s=new ne({props:{name:n[1]}});let e=n[8].default&&H(n);return{c(){t=E("div"),$(s.$$.fragment),a=X(),e&&e.c(),this.h()},l(o){t=I(o,"DIV",{class:!0});var r=N(t);x(s.$$.fragment,r),a=Y(r),e&&e.l(r),r.forEach(b),this.h()},h(){V(t,"class","flex items-center gap-2")},m(o,r){C(o,t,r),ee(s,t,null),Z(t,a),e&&e.m(t,null),l=!0},p(o,r){const h={};r&2&&(h.name=o[1]),s.$set(h),o[8].default?e?(e.p(o,r),r&256&&m(e,1)):(e=H(o),e.c(),m(e,1),e.m(t,null)):e&&(F(),d(e,1,1,()=>{e=null}),G())},i(o){l||(m(s.$$.fragment,o),m(e),l=!0)},o(o){d(s.$$.fragment,o),d(e),l=!1},d(o){o&&b(t),te(s),e&&e.d()}}}function H(n){let t,s;const a=n[10].default,l=T(a,n,n[9],null);return{c(){t=E("span"),l&&l.c(),this.h()},l(e){t=I(e,"SPAN",{class:!0});var o=N(t);l&&l.l(o),o.forEach(b),this.h()},h(){V(t,"class","hidden md:block")},m(e,o){C(e,t,o),l&&l.m(t,null),s=!0},p(e,o){l&&l.p&&(!s||o&512)&&q(l,a,e,e[9],s?U(a,e[9],o,null):P(e[9]),null)},i(e){s||(m(l,e),s=!0)},o(e){d(l,e),s=!1},d(e){e&&b(t),l&&l.d(e)}}}function A(n){let t,s,a,l,e,o,r,h;const v=[ue,oe],c=[];function k(u,f){return u[1]?0:1}s=k(n),a=c[s]=v[s](n);let g=[{class:l=B("toggle-button",n[0])},{href:e=n[3]?n[3]+n[6].url.search:null},{role:"button"},{tabindex:"0"},n[7]],p={};for(let u=0;u{c[i]=null}),G(),a=c[s],a?a.p(u,f):(a=c[s]=v[s](u),a.c()),m(a,1),a.m(t,null)),z(u[3]?"a":"button")(t,p=le(g,[(!o||f&1&&l!==(l=B("toggle-button",u[0])))&&{class:l},(!o||f&72&&e!==(e=u[3]?u[3]+u[6].url.search:null))&&{href:e},{role:"button"},{tabindex:"0"},f&128&&u[7]])),_(t,"group",u[2]),_(t,"active",u[3]?u[6].url.pathname.includes(u[4]):u[5]),_(t,"rounded-lg",!u[2]),_(t,"disabled",u[7].disabled),_(t,"svelte-1idnkre",!0)},i(u){o||(m(a),o=!0)},o(u){d(a),o=!1},d(u){u&&b(t),c[s].d(),r=!1,h()}}}function ie(n){let t=n[3]?"a":"button",s,a,l=(n[3]?"a":"button")&&A(n);return{c(){l&&l.c(),s=j()},l(e){l&&l.l(e),s=j()},m(e,o){l&&l.m(e,o),C(e,s,o),a=!0},p(e,[o]){e[3],t?S(t,e[3]?"a":"button")?(l.d(1),l=A(e),t=e[3]?"a":"button",l.c(),l.m(s.parentNode,s)):l.p(e,o):(l=A(e),t=e[3]?"a":"button",l.c(),l.m(s.parentNode,s))},i(e){a||(m(l,e),a=!0)},o(e){d(l,e),a=!1},d(e){e&&b(s),l&&l.d(e)}}}function re(n,t,s){const a=["class","icon","group","href","base","active"];let l=y(t,a),e;L(n,se,i=>s(6,e=i));let{$$slots:o={},$$scope:r}=t;const h=O(o);let{class:v=""}=t,{icon:c=null}=t,{group:k=ae("group")}=t,{href:g=""}=t,{base:p=g}=t,{active:u=!1}=t;function f(i){W.call(this,n,i)}return n.$$set=i=>{t=D(D({},t),Q(i)),s(7,l=y(t,a)),"class"in i&&s(0,v=i.class),"icon"in i&&s(1,c=i.icon),"group"in i&&s(2,k=i.group),"href"in i&&s(3,g=i.href),"base"in i&&s(4,p=i.base),"active"in i&&s(5,u=i.active),"$$scope"in i&&s(9,r=i.$$scope)},[v,c,k,g,p,u,e,l,h,r,o,f]}class pe extends K{constructor(t){super(),M(this,t,re,ie,S,{class:0,icon:1,group:2,href:3,base:4,active:5})}}function fe(n){let t,s;const a=n[1].default,l=T(a,n,n[0],null);return{c(){t=E("div"),l&&l.c(),this.h()},l(e){t=I(e,"DIV",{class:!0});var o=N(t);l&&l.l(o),o.forEach(b),this.h()},h(){V(t,"class","flex")},m(e,o){C(e,t,o),l&&l.m(t,null),s=!0},p(e,[o]){l&&l.p&&(!s||o&1)&&q(l,a,e,e[0],s?U(a,e[0],o,null):P(e[0]),null)},i(e){s||(m(l,e),s=!0)},o(e){d(l,e),s=!1},d(e){e&&b(t),l&&l.d(e)}}}function ce(n,t,s){let{$$slots:a={},$$scope:l}=t;return w("group",!0),n.$$set=e=>{"$$scope"in e&&s(0,l=e.$$scope)},[l,a]}class ve extends K{constructor(t){super(),M(this,t,ce,fe,S,{})}}export{ve as T,pe as a}; diff --git a/ui/assets/local/_app/immutable/chunks/tokenize.Q0qSDpSS.js b/ui/assets/local/_app/immutable/chunks/tokenize.Q0qSDpSS.js new file mode 100644 index 000000000..79678acc2 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/tokenize.Q0qSDpSS.js @@ -0,0 +1 @@ +import{s as z,x as v,k as y,g as m,c as R,e as p,a as X,b as I,d as g,h as Z,j as _,Y as q,l as x,H as B,m as A,F as D,a0 as H,a1 as $,v as M}from"./scheduler.AWtTlMeO.js";import{S as ee,i as te,t as r,g as d,b as u,e as k,c as W,a as Y,m as G,d as J}from"./index.91lpp7Ff.js";import{I as K}from"./icon.hlu3-iXK.js";import{c as le}from"./copy-to-clipboard.DKpAmXze.js";import{t as N}from"./tw-merge.NbP7EmZe.js";import{b as O,c as ie,d as b,e as ne,f as Q,g as oe}from"./has.-dFYEuQV.js";function E(c){let e,o,l,i,s=c[1]&&P(c),t=c[2]&&V(c);return{c(){e=p("div"),s&&s.c(),o=X(),t&&t.c(),this.h()},l(n){e=I(n,"DIV",{class:!0});var a=g(e);s&&s.l(a),o=Z(a),t&&t.l(a),a.forEach(m),this.h()},h(){_(e,"class",l=q(N("copy-or-filter",c[9]))+" svelte-qwjj97")},m(n,a){y(n,e,a),s&&s.m(e,null),x(e,o),t&&t.m(e,null),i=!0},p(n,a){n[1]?s?(s.p(n,a),a&2&&r(s,1)):(s=P(n),s.c(),r(s,1),s.m(e,o)):s&&(d(),u(s,1,1,()=>{s=null}),k()),n[2]?t?(t.p(n,a),a&4&&r(t,1)):(t=V(n),t.c(),r(t,1),t.m(e,null)):t&&(d(),u(t,1,1,()=>{t=null}),k()),(!i||a&512&&l!==(l=q(N("copy-or-filter",n[9]))+" svelte-qwjj97"))&&_(e,"class",l)},i(n){i||(r(s),r(t),i=!0)},o(n){u(s),u(t),i=!1},d(n){n&&m(e),s&&s.d(),t&&t.d()}}}function P(c){let e,o=c[5],l,i,s,t=U(c);return{c(){e=p("button"),t.c(),this.h()},l(n){e=I(n,"BUTTON",{class:!0,id:!0});var a=g(e);t.l(a),a.forEach(m),this.h()},h(){_(e,"class","copy-or-filter-button svelte-qwjj97"),_(e,"id","filter-button"),B(e,"filtered",c[5])},m(n,a){y(n,e,a),t.m(e,null),l=!0,i||(s=A(e,"click",D(H(function(){$(c[4])&&c[4].apply(this,arguments)}))),i=!0)},p(n,a){c=n,a&32&&z(o,o=c[5])?(d(),u(t,1,1,M),k(),t=U(c),t.c(),r(t,1),t.m(e,null)):t.p(c,a),(!l||a&32)&&B(e,"filtered",c[5])},i(n){l||(r(t),l=!0)},o(n){u(t),l=!1},d(n){n&&m(e),t.d(n),i=!1,s()}}}function U(c){let e,o;return e=new K({props:{title:c[8],name:"filter",class:"m-1"}}),{c(){W(e.$$.fragment)},l(l){Y(e.$$.fragment,l)},m(l,i){G(e,l,i),o=!0},p(l,i){const s={};i&256&&(s.title=l[8]),e.$set(s)},i(l){o||(r(e.$$.fragment,l),o=!0)},o(l){u(e.$$.fragment,l),o=!1},d(l){J(e,l)}}}function V(c){let e,o,l,i,s;return o=new K({props:{title:c[10]?c[7]:c[6],name:c[10]?"checkmark":"copy",class:"m-1"}}),{c(){e=p("button"),W(o.$$.fragment),this.h()},l(t){e=I(t,"BUTTON",{class:!0,id:!0});var n=g(e);Y(o.$$.fragment,n),n.forEach(m),this.h()},h(){_(e,"class","copy-or-filter-button svelte-qwjj97"),_(e,"id","copy-button")},m(t,n){y(t,e,n),G(o,e,null),l=!0,i||(s=A(e,"click",D(H(c[13]))),i=!0)},p(t,n){const a={};n&1216&&(a.title=t[10]?t[7]:t[6]),n&1024&&(a.name=t[10]?"checkmark":"copy"),o.$set(a)},i(t){l||(r(o.$$.fragment,t),l=!0)},o(t){u(o.$$.fragment,t),l=!1},d(t){t&&m(e),J(o),i=!1,s()}}}function ce(c){let e,o,l=c[0]&&E(c);return{c(){l&&l.c(),e=v()},l(i){l&&l.l(i),e=v()},m(i,s){l&&l.m(i,s),y(i,e,s),o=!0},p(i,[s]){i[0]?l?(l.p(i,s),s&1&&r(l,1)):(l=E(i),l.c(),r(l,1),l.m(e.parentNode,e)):l&&(d(),u(l,1,1,()=>{l=null}),k())},i(i){o||(r(l),o=!0)},o(i){u(l),o=!1},d(i){i&&m(e),l&&l.d(i)}}}function se(c,e,o){let l,{show:i=!1}=e,{filterable:s=!0}=e,{copyable:t=!0}=e,{content:n}=e,{onFilter:a=M}=e,{filtered:T=!1}=e,{copyIconTitle:h}=e,{copySuccessIconTitle:w}=e,{filterIconTitle:S}=e,{class:j=""}=e;const{copy:C,copied:F}=le();R(c,F,f=>o(10,l=f));const L=f=>C(f,n);return c.$$set=f=>{"show"in f&&o(0,i=f.show),"filterable"in f&&o(1,s=f.filterable),"copyable"in f&&o(2,t=f.copyable),"content"in f&&o(3,n=f.content),"onFilter"in f&&o(4,a=f.onFilter),"filtered"in f&&o(5,T=f.filtered),"copyIconTitle"in f&&o(6,h=f.copyIconTitle),"copySuccessIconTitle"in f&&o(7,w=f.copySuccessIconTitle),"filterIconTitle"in f&&o(8,S=f.filterIconTitle),"class"in f&&o(9,j=f.class)},[i,s,t,n,a,T,h,w,S,j,l,C,F,L]}class he extends ee{constructor(e){super(),te(this,e,se,ce,z,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}const be=c=>{const e=[],o=()=>{l&&(e.push(l),l="")};let l="",i=0;const s=t=>{for(let n=i+1;nh===t);continue}i++;continue}if(Q(t)){o(),i++;continue}l+=t,i++}return o(),e};export{he as F,be as t}; diff --git a/ui/assets/local/_app/immutable/chunks/tokenize.xvHRDyh7.js b/ui/assets/local/_app/immutable/chunks/tokenize.xvHRDyh7.js deleted file mode 100644 index 3d5363ec1..000000000 --- a/ui/assets/local/_app/immutable/chunks/tokenize.xvHRDyh7.js +++ /dev/null @@ -1 +0,0 @@ -import{s as H,x as O,k as w,g as h,c as R,e as S,a as X,b as j,d as C,h as Z,j as b,Y as Q,l as x,m as k,F as y,a0 as p,v as T,G as $,H as E,a1 as ee}from"./scheduler.AWtTlMeO.js";import{S as te,i as le,t as m,g as I,b as _,e as g,c as M,a as W,m as Y,d as J}from"./index.91lpp7Ff.js";import{I as K}from"./icon.hlu3-iXK.js";import{c as ie}from"./copy-to-clipboard.DsLGuhkA.js";import{t as P}from"./tw-merge.NbP7EmZe.js";import{b as U,c as ne,d,e as oe,f as V,g as ce}from"./has.-dFYEuQV.js";function z(s){let e,n,t,l,a,o,i=s[1]&&A(s),c=s[2]&&G(s);return{c(){e=S("div"),i&&i.c(),n=X(),c&&c.c(),this.h()},l(r){e=j(r,"DIV",{class:!0});var u=C(e);i&&i.l(u),n=Z(u),c&&c.l(u),u.forEach(h),this.h()},h(){b(e,"class",t=Q(P("copy-or-filter",s[9]))+" svelte-qwjj97")},m(r,u){w(r,e,u),i&&i.m(e,null),x(e,n),c&&c.m(e,null),l=!0,a||(o=[k(e,"click",y(p(T))),k(e,"keyup",y(p(T)))],a=!0)},p(r,u){r[1]?i?(i.p(r,u),u&2&&m(i,1)):(i=A(r),i.c(),m(i,1),i.m(e,n)):i&&(I(),_(i,1,1,()=>{i=null}),g()),r[2]?c?(c.p(r,u),u&4&&m(c,1)):(c=G(r),c.c(),m(c,1),c.m(e,null)):c&&(I(),_(c,1,1,()=>{c=null}),g()),(!l||u&512&&t!==(t=Q(P("copy-or-filter",r[9]))+" svelte-qwjj97"))&&b(e,"class",t)},i(r){l||(m(i),m(c),l=!0)},o(r){_(i),_(c),l=!1},d(r){r&&h(e),i&&i.d(),c&&c.d(),a=!1,$(o)}}}function A(s){let e,n=s[5],t,l,a,o=D(s);return{c(){e=S("button"),o.c(),this.h()},l(i){e=j(i,"BUTTON",{class:!0,id:!0});var c=C(e);o.l(c),c.forEach(h),this.h()},h(){b(e,"class","copy-or-filter-button svelte-qwjj97"),b(e,"id","filter-button"),E(e,"filtered",s[5])},m(i,c){w(i,e,c),o.m(e,null),t=!0,l||(a=k(e,"click",y(p(function(){ee(s[4])&&s[4].apply(this,arguments)}))),l=!0)},p(i,c){s=i,c&32&&H(n,n=s[5])?(I(),_(o,1,1,T),g(),o=D(s),o.c(),m(o,1),o.m(e,null)):o.p(s,c),(!t||c&32)&&E(e,"filtered",s[5])},i(i){t||(m(o),t=!0)},o(i){_(o),t=!1},d(i){i&&h(e),o.d(i),l=!1,a()}}}function D(s){let e,n;return e=new K({props:{title:s[8],name:"filter",class:"m-1"}}),{c(){M(e.$$.fragment)},l(t){W(e.$$.fragment,t)},m(t,l){Y(e,t,l),n=!0},p(t,l){const a={};l&256&&(a.title=t[8]),e.$set(a)},i(t){n||(m(e.$$.fragment,t),n=!0)},o(t){_(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function G(s){let e,n,t,l,a;return n=new K({props:{title:s[10]?s[7]:s[6],name:s[10]?"checkmark":"copy",class:"m-1"}}),{c(){e=S("button"),M(n.$$.fragment),this.h()},l(o){e=j(o,"BUTTON",{class:!0,id:!0});var i=C(e);W(n.$$.fragment,i),i.forEach(h),this.h()},h(){b(e,"class","copy-or-filter-button svelte-qwjj97"),b(e,"id","copy-button")},m(o,i){w(o,e,i),Y(n,e,null),t=!0,l||(a=k(e,"click",y(p(s[13]))),l=!0)},p(o,i){const c={};i&1216&&(c.title=o[10]?o[7]:o[6]),i&1024&&(c.name=o[10]?"checkmark":"copy"),n.$set(c)},i(o){t||(m(n.$$.fragment,o),t=!0)},o(o){_(n.$$.fragment,o),t=!1},d(o){o&&h(e),J(n),l=!1,a()}}}function se(s){let e,n,t=s[0]&&z(s);return{c(){t&&t.c(),e=O()},l(l){t&&t.l(l),e=O()},m(l,a){t&&t.m(l,a),w(l,e,a),n=!0},p(l,[a]){l[0]?t?(t.p(l,a),a&1&&m(t,1)):(t=z(l),t.c(),m(t,1),t.m(e.parentNode,e)):t&&(I(),_(t,1,1,()=>{t=null}),g())},i(l){n||(m(t),n=!0)},o(l){_(t),n=!1},d(l){l&&h(e),t&&t.d(l)}}}function ae(s,e,n){let t,{show:l=!1}=e,{filterable:a=!0}=e,{copyable:o=!0}=e,{content:i}=e,{onFilter:c=T}=e,{filtered:r=!1}=e,{copyIconTitle:u}=e,{copySuccessIconTitle:F}=e,{filterIconTitle:v}=e,{class:q=""}=e;const{copy:B,copied:N}=ie();R(s,N,f=>n(10,t=f));const L=f=>B(f,i);return s.$$set=f=>{"show"in f&&n(0,l=f.show),"filterable"in f&&n(1,a=f.filterable),"copyable"in f&&n(2,o=f.copyable),"content"in f&&n(3,i=f.content),"onFilter"in f&&n(4,c=f.onFilter),"filtered"in f&&n(5,r=f.filtered),"copyIconTitle"in f&&n(6,u=f.copyIconTitle),"copySuccessIconTitle"in f&&n(7,F=f.copySuccessIconTitle),"filterIconTitle"in f&&n(8,v=f.filterIconTitle),"class"in f&&n(9,q=f.class)},[l,a,o,i,c,r,u,F,v,q,t,B,N,L]}class be extends te{constructor(e){super(),le(this,e,ae,se,H,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}const de=s=>{const e=[],n=()=>{t&&(e.push(t),t="")};let t="",l=0;const a=o=>{for(let i=l+1;iu===o);continue}l++;continue}if(V(o)){n(),l++;continue}t+=o,l++}return n(),e};export{be as F,de as t}; diff --git a/ui/assets/local/_app/immutable/chunks/translate.We27PYN8.js b/ui/assets/local/_app/immutable/chunks/translate.-AtZfaGe.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/translate.We27PYN8.js rename to ui/assets/local/_app/immutable/chunks/translate.-AtZfaGe.js index aa7f4919e..01f405ea2 100644 --- a/ui/assets/local/_app/immutable/chunks/translate.We27PYN8.js +++ b/ui/assets/local/_app/immutable/chunks/translate.-AtZfaGe.js @@ -1 +1 @@ -import{r as Ye,t as Ke,c as Ge}from"./format-time.6T8OwT4v.js";import{s as ue,e as y,b as D,d as I,g as m,j as w,k as L,c as ge,a4 as Xe,w as ye,x as z,v as G,a as W,h as F,l as _,y as Ze,o as Qe,t as U,f as Y,H as ne,m as re,a1 as Re,n as le,_ as xe,i as $e,G as et,p as tt,u as nt,q as lt,r as st}from"./scheduler.AWtTlMeO.js";import{S as ce,i as ie,c as X,a as Z,m as x,t as E,b as A,d as $,g as ke,e as pe}from"./index.91lpp7Ff.js";import{e as se,u as Je,o as ot,d as at}from"./each.QPLN4A2E.js";import{p as rt}from"./stores.BjeHb2_D.js";import{S as ut}from"./index.JaKJff3q.js";import{r as ct,w as be,q as it,d as Me}from"./workflows.K4-zDFP4.js";import{h as ft}from"./decode-payload.-K-YkwX5.js";import{W as dt}from"./workflow-status.ASJz2ufm.js";import{d as ht}from"./menu.clBpn3HP.js";import{t as Ie}from"./translate.HrioCK44.js";import{w as Le,g as _t,a as Ve}from"./time-picker.WfS3p5z_.js";import{I as Be}from"./icon.hlu3-iXK.js";import{I as mt}from"./input.Oj66r1n-.js";function gt(n,e){Ye(2,arguments);var t=Ke(n).getTime(),l=Ge(e);return new Date(t+l)}var bt=36e5;function Xt(n,e){Ye(2,arguments);var t=Ge(e);return gt(n,t*bt)}const we=["Running","TimedOut","Completed","Failed","ContinuedAsNew","Canceled","Terminated"];function Zt(n){return we.includes(n)}const xt=["All",...we],Oe=(n,e,t)=>{const o=Math.pow(3600/n,1/t),a=n*Math.pow(o,e);return Math.min(3600,Math.round(a))};function wt(n){let e,t;return e=new dt({props:{count:n[1],newCount:n[2],status:n[0],"test-id":"workflow-status-"+n[0]}}),{c(){X(e.$$.fragment)},l(l){Z(e.$$.fragment,l)},m(l,o){x(e,l,o),t=!0},p(l,[o]){const a={};o&2&&(a.count=l[1]),o&4&&(a.newCount=l[2]),o&1&&(a.status=l[0]),o&1&&(a["test-id"]="workflow-status-"+l[0]),e.$set(a)},i(l){t||(E(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){$(e,l)}}}function kt(n,e,t){let{status:l}=e,{count:o=0}=e,{newCount:a=0}=e;return n.$$set=u=>{"status"in u&&t(0,l=u.status),"count"in u&&t(1,o=u.count),"newCount"in u&&t(2,a=u.newCount)},[l,o,a]}class pt extends ce{constructor(e){super(),ie(this,e,kt,wt,ue,{status:0,count:1,newCount:2})}}function We(n,e,t){const l=n.slice();return l[19]=e[t].count,l[20]=e[t].status,l}function vt(n){let e,t;return e=new ut({props:{class:"h-6 w-24 rounded"}}),{c(){X(e.$$.fragment)},l(l){Z(e.$$.fragment,l)},m(l,o){x(e,l,o),t=!0},p:G,i(l){t||(E(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){$(e,l)}}}function yt(n){let e,t;function l(...a){return n[9](n[20],...a)}function o(...a){return n[10](n[20],...a)}return e=new pt({props:{status:n[20],count:n[19],newCount:n[1].find(l)?n[1].find(o).count-n[19]:0}}),{c(){X(e.$$.fragment)},l(a){Z(e.$$.fragment,a)},m(a,u){x(e,a,u),t=!0},p(a,u){n=a;const c={};u&1&&(c.status=n[20]),u&1&&(c.count=n[19]),u&3&&(c.newCount=n[1].find(l)?n[1].find(o).count-n[19]:0),e.$set(c)},i(a){t||(E(e.$$.fragment,a),t=!0)},o(a){A(e.$$.fragment,a),t=!1},d(a){$(e,a)}}}function Fe(n,e){let t,l,o,a,u;const c=[yt,vt],s=[];function r(d,f){return d[2]?1:0}return l=r(e),o=s[l]=c[l](e),{key:n,first:null,c(){t=z(),o.c(),a=z(),this.h()},l(d){t=z(),o.l(d),a=z(),this.h()},h(){this.first=t},m(d,f){L(d,t,f),s[l].m(d,f),L(d,a,f),u=!0},p(d,f){e=d;let i=l;l=r(e),l===i?s[l].p(e,f):(ke(),A(s[i],1,1,()=>{s[i]=null}),pe(),o=s[l],o?o.p(e,f):(o=s[l]=c[l](e),o.c()),E(o,1),o.m(a.parentNode,a))},i(d){u||(E(o),u=!0)},o(d){A(o),u=!1},d(d){d&&(m(t),m(a)),s[l].d(d)}}}function Dt(n){let e,t=[],l=new Map,o,a=se(n[0]);const u=c=>c[20];for(let c=0;ct(6,a=g)),ge(n,be,g=>t(13,u=g)),ge(n,it,g=>t(7,c=g)),ge(n,rt,g=>t(8,s=g));let{staticQuery:r=""}=e,d=[],f=[],i,h=1,k=!1;Xe(()=>{M()});const S=()=>{if(h+=1,clearInterval(i),h<=De){const g=Oe(He,h,De)*1e3;i=setInterval(()=>J(),g)}},M=()=>{clearInterval(i),t(1,f=[]),ye(be,u.newCount=0,u),h=1,t(2,k=!0)},V=(g=[])=>g.map(p=>{const T=ft(p==null?void 0:p.groupValues[0]),b=parseInt(p.count);return{status:T,count:b}}).sort((p,T)=>we.indexOf(p.status)-we.indexOf(T.status)),J=async()=>{S();try{const{count:g,groups:p}=await Me({namespace:l,query:o});ye(be,u.newCount=parseInt(g)-u.count,u),t(1,f=V(p))}catch(g){console.error("Fetching workflow counts failed: ",g==null?void 0:g.message)}finally{t(2,k=!1)}},K=async()=>{M();const g=Oe(He,h,De)*1e3;i=setInterval(()=>J(),g);try{const{count:p,groups:T}=await Me({namespace:l,query:o});ye(be,u.count=parseInt(p),u),t(0,d=V(T))}catch(p){console.error("Fetching workflow counts failed: ",p==null?void 0:p.message)}finally{t(2,k=!1)}},N=(g,p)=>p.status===g,H=(g,p)=>p.status===g;return n.$$set=g=>{"staticQuery"in g&&t(3,r=g.staticQuery)},n.$$.update=()=>{n.$$.dirty&256&&t(4,l=s.params.namespace),n.$$.dirty&136&&t(5,o=r||c),n.$$.dirty&112&&K()},[d,f,k,r,l,o,a,c,s,N,H]}class $t extends ce{constructor(e){super(),ie(this,e,It,Dt,ue,{staticQuery:3})}}function Pe(n,e,t){const l=n.slice();return l[9]=e[t].allowed,l[10]=e[t].value,l[12]=t,l}function qe(n,e,t){const l=n.slice();return l[13]=e[t],l}function ze(n){let e,t=n[13].label.slice(0,2)+"",l;return{c(){e=y("p"),l=U(t),this.h()},l(o){e=D(o,"P",{class:!0});var a=I(e);l=Y(a,t),a.forEach(m),this.h()},h(){w(e,"class","cell svelte-65cuez")},m(o,a){L(o,e,a),_(e,l)},p:G,d(o){o&&m(e)}}}function Ct(n){let e;return{c(){e=y("div"),this.h()},l(t){e=D(t,"DIV",{class:!0}),I(e).forEach(m),this.h()},h(){w(e,"class","cell svelte-65cuez")},m(t,l){L(t,e,l)},p:G,d(t){t&&m(e)}}}function Et(n){let e,t=(n[10]||"")+"",l,o,a,u;function c(){return n[6](n[10])}return{c(){e=y("button"),l=U(t),o=W(),this.h()},l(s){e=D(s,"BUTTON",{type:!0,class:!0});var r=I(e);l=Y(r,t),o=F(r),r.forEach(m),this.h()},h(){w(e,"type","button"),w(e,"class","cell svelte-65cuez"),ne(e,"highlight",n[9]&&n[10]),ne(e,"disabled",!n[9]),ne(e,"selected",new Date(n[0].getFullYear(),n[0].getMonth(),n[0].getDate()).getTime()===new Date(n[2],n[1],n[10]).getTime())},m(s,r){L(s,e,r),_(e,l),_(e,o),a||(u=re(e,"click",function(){Re(n[9]&&n[10]?c:G)&&(n[9]&&n[10]?c:G).apply(this,arguments)}),a=!0)},p(s,r){n=s,r&8&&t!==(t=(n[10]||"")+"")&&le(l,t),r&8&&ne(e,"highlight",n[9]&&n[10]),r&8&&ne(e,"disabled",!n[9]),r&15&&ne(e,"selected",new Date(n[0].getFullYear(),n[0].getMonth(),n[0].getDate()).getTime()===new Date(n[2],n[1],n[10]).getTime())},d(s){s&&m(e),a=!1,u()}}}function je(n,e){let t,l;function o(c,s){return c[10]?Et:Ct}let a=o(e),u=a(e);return{key:n,first:null,c(){t=z(),u.c(),l=z(),this.h()},l(c){t=z(),u.l(c),l=z(),this.h()},h(){this.first=t},m(c,s){L(c,t,s),u.m(c,s),L(c,l,s)},p(c,s){e=c,a===(a=o(e))&&u?u.p(e,s):(u.d(1),u=a(e),u&&(u.c(),u.m(l.parentNode,l)))},d(c){c&&(m(t),m(l)),u.d(c)}}}function St(n){let e,t,l,o,a=[],u=new Map,c=se(Le),s=[];for(let f=0;ff[12];for(let f=0;f!0}=e,s=[];const r=i=>{l("datechange",new Date(u,a,i))},d=(i,h,k)=>k?c(new Date(i,h,k)):!0,f=i=>r(i);return n.$$set=i=>{"date"in i&&t(0,o=i.date),"month"in i&&t(1,a=i.month),"year"in i&&t(2,u=i.year),"isAllowed"in i&&t(5,c=i.isAllowed)},n.$$.update=()=>{n.$$.dirty&6&&t(3,s=_t(a,u).map(i=>({value:i,allowed:d(u,a,i)})))},[o,a,u,s,r,c,f]}class At extends ce{constructor(e){super(),ie(this,e,Tt,St,ue,{date:0,month:1,year:2,isAllowed:5})}}function Ue(n){var Ee;let e,t,l,o,a,u,c,s,r,d,f=(((Ee=Ve(n[8]))==null?void 0:Ee.label)??"")+"",i,h,k,S,M,V,J="Next Month",K,N,H,g,p,T,b,P,Q,B,j,ee,oe,q,te,R,ve,Ce;return s=new Be({props:{name:"chevron-left"}}),T=new Be({props:{name:"chevron-right"}}),P=new At({props:{month:n[8],year:n[9],date:n[0],isAllowed:n[1]}}),P.$on("datechange",n[15]),{c(){e=y("div"),t=y("div"),l=y("div"),o=y("button"),a=y("span"),u=U(n[16]),c=W(),X(s.$$.fragment),r=W(),d=y("div"),i=U(f),h=W(),k=U(n[9]),S=W(),M=y("div"),V=y("span"),V.textContent=J,K=W(),N=y("button"),H=y("span"),g=U(n[17]),p=W(),X(T.$$.fragment),b=W(),X(P.$$.fragment),Q=W(),B=y("div"),j=y("button"),ee=U(n[4]),oe=W(),q=y("button"),te=U(n[5]),this.h()},l(v){e=D(v,"DIV",{class:!0});var C=I(e);t=D(C,"DIV",{class:!0});var O=I(t);l=D(O,"DIV",{class:!0});var ae=I(l);o=D(ae,"BUTTON",{type:!0,title:!0});var fe=I(o);a=D(fe,"SPAN",{class:!0});var Se=I(a);u=Y(Se,n[16]),Se.forEach(m),c=F(fe),Z(s.$$.fragment,fe),fe.forEach(m),ae.forEach(m),r=F(O),d=D(O,"DIV",{class:!0});var de=I(d);i=Y(de,f),h=F(de),k=Y(de,n[9]),de.forEach(m),S=F(O),M=D(O,"DIV",{class:!0});var he=I(M);V=D(he,"SPAN",{class:!0,"data-svelte-h":!0}),$e(V)!=="svelte-uyb8ys"&&(V.textContent=J),K=F(he),N=D(he,"BUTTON",{type:!0,title:!0});var _e=I(N);H=D(_e,"SPAN",{class:!0});var Te=I(H);g=Y(Te,n[17]),Te.forEach(m),p=F(_e),Z(T.$$.fragment,_e),_e.forEach(m),he.forEach(m),O.forEach(m),b=F(C),Z(P.$$.fragment,C),Q=F(C),B=D(C,"DIV",{class:!0});var me=I(B);j=D(me,"BUTTON",{type:!0,class:!0});var Ae=I(j);ee=Y(Ae,n[4]),Ae.forEach(m),oe=F(me),q=D(me,"BUTTON",{type:!0,class:!0});var Ne=I(q);te=Y(Ne,n[5]),Ne.forEach(m),me.forEach(m),C.forEach(m),this.h()},h(){w(a,"class","sr-only"),w(o,"type","button"),w(o,"title",n[16]),w(l,"class","flex items-center justify-center"),w(d,"class","flex items-center justify-center"),w(V,"class","sr-only"),w(H,"class","sr-only"),w(N,"type","button"),w(N,"title",n[17]),w(M,"class","flex items-center justify-center"),w(t,"class","mx-3 my-2 flex items-center justify-around"),w(j,"type","button"),w(j,"class","cursor-pointer text-[12px]"),w(q,"type","button"),w(q,"class","cursor-pointer text-[12px]"),w(B,"class","my-1 flex justify-between px-2"),w(e,"class","surface-primary absolute z-30 inline-block rounded border border-subtle shadow")},m(v,C){L(v,e,C),_(e,t),_(t,l),_(l,o),_(o,a),_(a,u),_(o,c),x(s,o,null),_(t,r),_(t,d),_(d,i),_(d,h),_(d,k),_(t,S),_(t,M),_(M,V),_(M,K),_(M,N),_(N,H),_(H,g),_(N,p),x(T,N,null),_(e,b),x(P,e,null),_(e,Q),_(e,B),_(B,j),_(j,ee),_(B,oe),_(B,q),_(q,te),R=!0,ve||(Ce=[re(o,"click",n[14]),re(N,"click",n[13]),re(j,"click",n[18]),re(q,"click",n[19])],ve=!0)},p(v,C){var ae;(!R||C&256)&&f!==(f=(((ae=Ve(v[8]))==null?void 0:ae.label)??"")+"")&&le(i,f),(!R||C&512)&&le(k,v[9]);const O={};C&256&&(O.month=v[8]),C&512&&(O.year=v[9]),C&1&&(O.date=v[0]),C&2&&(O.isAllowed=v[1]),P.$set(O),(!R||C&16)&&le(ee,v[4]),(!R||C&32)&&le(te,v[5])},i(v){R||(E(s.$$.fragment,v),E(T.$$.fragment,v),E(P.$$.fragment,v),R=!0)},o(v){A(s.$$.fragment,v),A(T.$$.fragment,v),A(P.$$.fragment,v),R=!1},d(v){v&&m(e),$(s),$(T),$(P),ve=!1,et(Ce)}}}function Nt(n){let e,t,l,o,a,u,c;t=new mt({props:{id:"datepicker",label:n[2],labelHidden:n[3],icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:n[0].toDateString(),clearable:!0,clearButtonLabel:n[6],disabled:n[7]}}),t.$on("focus",n[11]),t.$on("input",n[12]);let s=n[10]&&Ue(n);return{c(){e=y("div"),X(t.$$.fragment),l=W(),s&&s.c(),this.h()},l(r){e=D(r,"DIV",{class:!0});var d=I(e);Z(t.$$.fragment,d),l=F(d),s&&s.l(d),d.forEach(m),this.h()},h(){w(e,"class","relative")},m(r,d){L(r,e,d),x(t,e,null),_(e,l),s&&s.m(e,null),a=!0,u||(c=xe(o=ht.call(null,e,n[20])),u=!0)},p(r,[d]){const f={};d&4&&(f.label=r[2]),d&8&&(f.labelHidden=r[3]),d&1&&(f.value=r[0].toDateString()),d&64&&(f.clearButtonLabel=r[6]),d&128&&(f.disabled=r[7]),t.$set(f),r[10]?s?(s.p(r,d),d&1024&&E(s,1)):(s=Ue(r),s.c(),E(s,1),s.m(e,null)):s&&(ke(),A(s,1,1,()=>{s=null}),pe()),o&&Re(o.update)&&d&1024&&o.update.call(null,r[20])},i(r){a||(E(t.$$.fragment,r),E(s),a=!0)},o(r){A(t.$$.fragment,r),A(s),a=!1},d(r){r&&m(e),$(t),s&&s.d(),u=!1,c()}}}function Mt(n,e,t){const l=Qe();let{isAllowed:o=()=>!0}=e,{selected:a=new Date}=e,{label:u}=e,{labelHidden:c=!1}=e,{todayLabel:s}=e,{closeLabel:r}=e,{clearLabel:d}=e,{disabled:f=!1}=e,i,h,k=!1;const S=()=>{t(10,k=!0)},M=b=>{const Q=b.target.value;if(Q.length===8){const B=Q==null?void 0:Q.split("/"),ee=2e3+parseInt(B[2]),oe=parseInt(B[0])-1,q=parseInt(B[1]),te=new Date(ee,oe,q);l("datechange",te)}},V=()=>{if(i===11){t(8,i=0),t(9,h=h+1);return}t(8,i=i+1)},J=()=>{if(i===0){t(8,i=11),t(9,h-=1);return}t(8,i-=1)},K=b=>{t(10,k=!1),l("datechange",b.detail)},N=Ie("date-picker.previous-month"),H=Ie("date-picker.next-month"),g=()=>t(0,a=new Date),p=()=>t(10,k=!1),T=()=>t(10,k=!1);return n.$$set=b=>{"isAllowed"in b&&t(1,o=b.isAllowed),"selected"in b&&t(0,a=b.selected),"label"in b&&t(2,u=b.label),"labelHidden"in b&&t(3,c=b.labelHidden),"todayLabel"in b&&t(4,s=b.todayLabel),"closeLabel"in b&&t(5,r=b.closeLabel),"clearLabel"in b&&t(6,d=b.clearLabel),"disabled"in b&&t(7,f=b.disabled)},n.$$.update=()=>{n.$$.dirty&1&&(t(8,i=a.getMonth()),t(9,h=a.getFullYear()))},[a,o,u,c,s,r,d,f,i,h,k,S,M,V,J,K,N,H,g,p,T]}class en extends ce{constructor(e){super(),ie(this,e,Mt,Nt,ue,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}function Lt(n){let e;const t=n[5].default,l=tt(t,n,n[4],null);return{c(){l&&l.c()},l(o){l&&l.l(o)},m(o,a){l&&l.m(o,a),e=!0},p(o,a){l&&l.p&&(!e||a&16)&&nt(l,t,o,o[4],e?st(t,o[4],a,null):lt(o[4]),null)},i(o){e||(E(l,o),e=!0)},o(o){A(l,o),e=!1},d(o){l&&l.d(o)}}}function Vt(n){let e;return{c(){e=U(n[1])},l(t){e=Y(t,n[1])},m(t,l){L(t,e,l)},p(t,l){l&2&&le(e,t[1])},i:G,o:G,d(t){t&&m(e)}}}function Bt(n){let e,t,l,o;const a=[Vt,Lt],u=[];function c(s,r){return s[1]!==s[0]?0:1}return e=c(n),t=u[e]=a[e](n),{c(){t.c(),l=z()},l(s){t.l(s),l=z()},m(s,r){u[e].m(s,r),L(s,l,r),o=!0},p(s,[r]){let d=e;e=c(s),e===d?u[e].p(s,r):(ke(),A(u[d],1,1,()=>{u[d]=null}),pe(),t=u[e],t?t.p(s,r):(t=u[e]=a[e](s),t.c()),E(t,1),t.m(l.parentNode,l))},i(s){o||(E(t),o=!0)},o(s){A(t),o=!1},d(s){s&&m(l),u[e].d(s)}}}function Ot(n,e,t){let l,{$$slots:o={},$$scope:a}=e,{key:u}=e,{count:c=void 0}=e,{replace:s=void 0}=e;return n.$$set=r=>{"key"in r&&t(0,u=r.key),"count"in r&&t(2,c=r.count),"replace"in r&&t(3,s=r.replace),"$$scope"in r&&t(4,a=r.$$scope)},n.$$.update=()=>{n.$$.dirty&13&&t(1,l=Ie(u,{...s,count:c}))},[u,l,c,s,a,o]}class tn extends ce{constructor(e){super(),ie(this,e,Ot,Bt,ue,{key:0,count:2,replace:3})}}export{en as D,tn as T,$t as W,Xt as a,gt as b,Zt as i,xt as w}; +import{r as Ye,t as Ke,c as Ge}from"./format-time.6T8OwT4v.js";import{s as ue,e as y,b as D,d as I,g as m,j as w,k as L,c as ge,a4 as Xe,w as ye,x as z,v as G,a as W,h as F,l as _,y as Ze,o as Qe,t as U,f as Y,H as ne,m as re,a1 as Re,n as le,_ as xe,i as $e,G as et,p as tt,u as nt,q as lt,r as st}from"./scheduler.AWtTlMeO.js";import{S as ce,i as ie,c as X,a as Z,m as x,t as E,b as A,d as $,g as ke,e as pe}from"./index.91lpp7Ff.js";import{e as se,u as Je,o as ot,d as at}from"./each.QPLN4A2E.js";import{p as rt}from"./stores.meYYndLY.js";import{S as ut}from"./index.JaKJff3q.js";import{r as ct,w as be,q as it,d as Me}from"./workflows.W0IFK8bL.js";import{h as ft}from"./decode-payload.QBGHBsqc.js";import{W as dt}from"./workflow-status.ASJz2ufm.js";import{d as ht}from"./menu.RlaY2l8z.js";import{t as Ie}from"./translate.HrioCK44.js";import{w as Le,g as _t,a as Ve}from"./time-picker.IwHKoS08.js";import{I as Be}from"./icon.hlu3-iXK.js";import{I as mt}from"./input.EAz4myrb.js";function gt(n,e){Ye(2,arguments);var t=Ke(n).getTime(),l=Ge(e);return new Date(t+l)}var bt=36e5;function Xt(n,e){Ye(2,arguments);var t=Ge(e);return gt(n,t*bt)}const we=["Running","TimedOut","Completed","Failed","ContinuedAsNew","Canceled","Terminated"];function Zt(n){return we.includes(n)}const xt=["All",...we],Oe=(n,e,t)=>{const o=Math.pow(3600/n,1/t),a=n*Math.pow(o,e);return Math.min(3600,Math.round(a))};function wt(n){let e,t;return e=new dt({props:{count:n[1],newCount:n[2],status:n[0],"test-id":"workflow-status-"+n[0]}}),{c(){X(e.$$.fragment)},l(l){Z(e.$$.fragment,l)},m(l,o){x(e,l,o),t=!0},p(l,[o]){const a={};o&2&&(a.count=l[1]),o&4&&(a.newCount=l[2]),o&1&&(a.status=l[0]),o&1&&(a["test-id"]="workflow-status-"+l[0]),e.$set(a)},i(l){t||(E(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){$(e,l)}}}function kt(n,e,t){let{status:l}=e,{count:o=0}=e,{newCount:a=0}=e;return n.$$set=u=>{"status"in u&&t(0,l=u.status),"count"in u&&t(1,o=u.count),"newCount"in u&&t(2,a=u.newCount)},[l,o,a]}class pt extends ce{constructor(e){super(),ie(this,e,kt,wt,ue,{status:0,count:1,newCount:2})}}function We(n,e,t){const l=n.slice();return l[19]=e[t].count,l[20]=e[t].status,l}function vt(n){let e,t;return e=new ut({props:{class:"h-6 w-24 rounded"}}),{c(){X(e.$$.fragment)},l(l){Z(e.$$.fragment,l)},m(l,o){x(e,l,o),t=!0},p:G,i(l){t||(E(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){$(e,l)}}}function yt(n){let e,t;function l(...a){return n[9](n[20],...a)}function o(...a){return n[10](n[20],...a)}return e=new pt({props:{status:n[20],count:n[19],newCount:n[1].find(l)?n[1].find(o).count-n[19]:0}}),{c(){X(e.$$.fragment)},l(a){Z(e.$$.fragment,a)},m(a,u){x(e,a,u),t=!0},p(a,u){n=a;const c={};u&1&&(c.status=n[20]),u&1&&(c.count=n[19]),u&3&&(c.newCount=n[1].find(l)?n[1].find(o).count-n[19]:0),e.$set(c)},i(a){t||(E(e.$$.fragment,a),t=!0)},o(a){A(e.$$.fragment,a),t=!1},d(a){$(e,a)}}}function Fe(n,e){let t,l,o,a,u;const c=[yt,vt],s=[];function r(d,f){return d[2]?1:0}return l=r(e),o=s[l]=c[l](e),{key:n,first:null,c(){t=z(),o.c(),a=z(),this.h()},l(d){t=z(),o.l(d),a=z(),this.h()},h(){this.first=t},m(d,f){L(d,t,f),s[l].m(d,f),L(d,a,f),u=!0},p(d,f){e=d;let i=l;l=r(e),l===i?s[l].p(e,f):(ke(),A(s[i],1,1,()=>{s[i]=null}),pe(),o=s[l],o?o.p(e,f):(o=s[l]=c[l](e),o.c()),E(o,1),o.m(a.parentNode,a))},i(d){u||(E(o),u=!0)},o(d){A(o),u=!1},d(d){d&&(m(t),m(a)),s[l].d(d)}}}function Dt(n){let e,t=[],l=new Map,o,a=se(n[0]);const u=c=>c[20];for(let c=0;ct(6,a=g)),ge(n,be,g=>t(13,u=g)),ge(n,it,g=>t(7,c=g)),ge(n,rt,g=>t(8,s=g));let{staticQuery:r=""}=e,d=[],f=[],i,h=1,k=!1;Xe(()=>{M()});const S=()=>{if(h+=1,clearInterval(i),h<=De){const g=Oe(He,h,De)*1e3;i=setInterval(()=>J(),g)}},M=()=>{clearInterval(i),t(1,f=[]),ye(be,u.newCount=0,u),h=1,t(2,k=!0)},V=(g=[])=>g.map(p=>{const T=ft(p==null?void 0:p.groupValues[0]),b=parseInt(p.count);return{status:T,count:b}}).sort((p,T)=>we.indexOf(p.status)-we.indexOf(T.status)),J=async()=>{S();try{const{count:g,groups:p}=await Me({namespace:l,query:o});ye(be,u.newCount=parseInt(g)-u.count,u),t(1,f=V(p))}catch(g){console.error("Fetching workflow counts failed: ",g==null?void 0:g.message)}finally{t(2,k=!1)}},K=async()=>{M();const g=Oe(He,h,De)*1e3;i=setInterval(()=>J(),g);try{const{count:p,groups:T}=await Me({namespace:l,query:o});ye(be,u.count=parseInt(p),u),t(0,d=V(T))}catch(p){console.error("Fetching workflow counts failed: ",p==null?void 0:p.message)}finally{t(2,k=!1)}},N=(g,p)=>p.status===g,H=(g,p)=>p.status===g;return n.$$set=g=>{"staticQuery"in g&&t(3,r=g.staticQuery)},n.$$.update=()=>{n.$$.dirty&256&&t(4,l=s.params.namespace),n.$$.dirty&136&&t(5,o=r||c),n.$$.dirty&112&&K()},[d,f,k,r,l,o,a,c,s,N,H]}class $t extends ce{constructor(e){super(),ie(this,e,It,Dt,ue,{staticQuery:3})}}function Pe(n,e,t){const l=n.slice();return l[9]=e[t].allowed,l[10]=e[t].value,l[12]=t,l}function qe(n,e,t){const l=n.slice();return l[13]=e[t],l}function ze(n){let e,t=n[13].label.slice(0,2)+"",l;return{c(){e=y("p"),l=U(t),this.h()},l(o){e=D(o,"P",{class:!0});var a=I(e);l=Y(a,t),a.forEach(m),this.h()},h(){w(e,"class","cell svelte-65cuez")},m(o,a){L(o,e,a),_(e,l)},p:G,d(o){o&&m(e)}}}function Ct(n){let e;return{c(){e=y("div"),this.h()},l(t){e=D(t,"DIV",{class:!0}),I(e).forEach(m),this.h()},h(){w(e,"class","cell svelte-65cuez")},m(t,l){L(t,e,l)},p:G,d(t){t&&m(e)}}}function Et(n){let e,t=(n[10]||"")+"",l,o,a,u;function c(){return n[6](n[10])}return{c(){e=y("button"),l=U(t),o=W(),this.h()},l(s){e=D(s,"BUTTON",{type:!0,class:!0});var r=I(e);l=Y(r,t),o=F(r),r.forEach(m),this.h()},h(){w(e,"type","button"),w(e,"class","cell svelte-65cuez"),ne(e,"highlight",n[9]&&n[10]),ne(e,"disabled",!n[9]),ne(e,"selected",new Date(n[0].getFullYear(),n[0].getMonth(),n[0].getDate()).getTime()===new Date(n[2],n[1],n[10]).getTime())},m(s,r){L(s,e,r),_(e,l),_(e,o),a||(u=re(e,"click",function(){Re(n[9]&&n[10]?c:G)&&(n[9]&&n[10]?c:G).apply(this,arguments)}),a=!0)},p(s,r){n=s,r&8&&t!==(t=(n[10]||"")+"")&&le(l,t),r&8&&ne(e,"highlight",n[9]&&n[10]),r&8&&ne(e,"disabled",!n[9]),r&15&&ne(e,"selected",new Date(n[0].getFullYear(),n[0].getMonth(),n[0].getDate()).getTime()===new Date(n[2],n[1],n[10]).getTime())},d(s){s&&m(e),a=!1,u()}}}function je(n,e){let t,l;function o(c,s){return c[10]?Et:Ct}let a=o(e),u=a(e);return{key:n,first:null,c(){t=z(),u.c(),l=z(),this.h()},l(c){t=z(),u.l(c),l=z(),this.h()},h(){this.first=t},m(c,s){L(c,t,s),u.m(c,s),L(c,l,s)},p(c,s){e=c,a===(a=o(e))&&u?u.p(e,s):(u.d(1),u=a(e),u&&(u.c(),u.m(l.parentNode,l)))},d(c){c&&(m(t),m(l)),u.d(c)}}}function St(n){let e,t,l,o,a=[],u=new Map,c=se(Le),s=[];for(let f=0;ff[12];for(let f=0;f!0}=e,s=[];const r=i=>{l("datechange",new Date(u,a,i))},d=(i,h,k)=>k?c(new Date(i,h,k)):!0,f=i=>r(i);return n.$$set=i=>{"date"in i&&t(0,o=i.date),"month"in i&&t(1,a=i.month),"year"in i&&t(2,u=i.year),"isAllowed"in i&&t(5,c=i.isAllowed)},n.$$.update=()=>{n.$$.dirty&6&&t(3,s=_t(a,u).map(i=>({value:i,allowed:d(u,a,i)})))},[o,a,u,s,r,c,f]}class At extends ce{constructor(e){super(),ie(this,e,Tt,St,ue,{date:0,month:1,year:2,isAllowed:5})}}function Ue(n){var Ee;let e,t,l,o,a,u,c,s,r,d,f=(((Ee=Ve(n[8]))==null?void 0:Ee.label)??"")+"",i,h,k,S,M,V,J="Next Month",K,N,H,g,p,T,b,P,Q,B,j,ee,oe,q,te,R,ve,Ce;return s=new Be({props:{name:"chevron-left"}}),T=new Be({props:{name:"chevron-right"}}),P=new At({props:{month:n[8],year:n[9],date:n[0],isAllowed:n[1]}}),P.$on("datechange",n[15]),{c(){e=y("div"),t=y("div"),l=y("div"),o=y("button"),a=y("span"),u=U(n[16]),c=W(),X(s.$$.fragment),r=W(),d=y("div"),i=U(f),h=W(),k=U(n[9]),S=W(),M=y("div"),V=y("span"),V.textContent=J,K=W(),N=y("button"),H=y("span"),g=U(n[17]),p=W(),X(T.$$.fragment),b=W(),X(P.$$.fragment),Q=W(),B=y("div"),j=y("button"),ee=U(n[4]),oe=W(),q=y("button"),te=U(n[5]),this.h()},l(v){e=D(v,"DIV",{class:!0});var C=I(e);t=D(C,"DIV",{class:!0});var O=I(t);l=D(O,"DIV",{class:!0});var ae=I(l);o=D(ae,"BUTTON",{type:!0,title:!0});var fe=I(o);a=D(fe,"SPAN",{class:!0});var Se=I(a);u=Y(Se,n[16]),Se.forEach(m),c=F(fe),Z(s.$$.fragment,fe),fe.forEach(m),ae.forEach(m),r=F(O),d=D(O,"DIV",{class:!0});var de=I(d);i=Y(de,f),h=F(de),k=Y(de,n[9]),de.forEach(m),S=F(O),M=D(O,"DIV",{class:!0});var he=I(M);V=D(he,"SPAN",{class:!0,"data-svelte-h":!0}),$e(V)!=="svelte-uyb8ys"&&(V.textContent=J),K=F(he),N=D(he,"BUTTON",{type:!0,title:!0});var _e=I(N);H=D(_e,"SPAN",{class:!0});var Te=I(H);g=Y(Te,n[17]),Te.forEach(m),p=F(_e),Z(T.$$.fragment,_e),_e.forEach(m),he.forEach(m),O.forEach(m),b=F(C),Z(P.$$.fragment,C),Q=F(C),B=D(C,"DIV",{class:!0});var me=I(B);j=D(me,"BUTTON",{type:!0,class:!0});var Ae=I(j);ee=Y(Ae,n[4]),Ae.forEach(m),oe=F(me),q=D(me,"BUTTON",{type:!0,class:!0});var Ne=I(q);te=Y(Ne,n[5]),Ne.forEach(m),me.forEach(m),C.forEach(m),this.h()},h(){w(a,"class","sr-only"),w(o,"type","button"),w(o,"title",n[16]),w(l,"class","flex items-center justify-center"),w(d,"class","flex items-center justify-center"),w(V,"class","sr-only"),w(H,"class","sr-only"),w(N,"type","button"),w(N,"title",n[17]),w(M,"class","flex items-center justify-center"),w(t,"class","mx-3 my-2 flex items-center justify-around"),w(j,"type","button"),w(j,"class","cursor-pointer text-[12px]"),w(q,"type","button"),w(q,"class","cursor-pointer text-[12px]"),w(B,"class","my-1 flex justify-between px-2"),w(e,"class","surface-primary absolute z-30 inline-block rounded border border-subtle shadow")},m(v,C){L(v,e,C),_(e,t),_(t,l),_(l,o),_(o,a),_(a,u),_(o,c),x(s,o,null),_(t,r),_(t,d),_(d,i),_(d,h),_(d,k),_(t,S),_(t,M),_(M,V),_(M,K),_(M,N),_(N,H),_(H,g),_(N,p),x(T,N,null),_(e,b),x(P,e,null),_(e,Q),_(e,B),_(B,j),_(j,ee),_(B,oe),_(B,q),_(q,te),R=!0,ve||(Ce=[re(o,"click",n[14]),re(N,"click",n[13]),re(j,"click",n[18]),re(q,"click",n[19])],ve=!0)},p(v,C){var ae;(!R||C&256)&&f!==(f=(((ae=Ve(v[8]))==null?void 0:ae.label)??"")+"")&&le(i,f),(!R||C&512)&&le(k,v[9]);const O={};C&256&&(O.month=v[8]),C&512&&(O.year=v[9]),C&1&&(O.date=v[0]),C&2&&(O.isAllowed=v[1]),P.$set(O),(!R||C&16)&&le(ee,v[4]),(!R||C&32)&&le(te,v[5])},i(v){R||(E(s.$$.fragment,v),E(T.$$.fragment,v),E(P.$$.fragment,v),R=!0)},o(v){A(s.$$.fragment,v),A(T.$$.fragment,v),A(P.$$.fragment,v),R=!1},d(v){v&&m(e),$(s),$(T),$(P),ve=!1,et(Ce)}}}function Nt(n){let e,t,l,o,a,u,c;t=new mt({props:{id:"datepicker",label:n[2],labelHidden:n[3],icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:n[0].toDateString(),clearable:!0,clearButtonLabel:n[6],disabled:n[7]}}),t.$on("focus",n[11]),t.$on("input",n[12]);let s=n[10]&&Ue(n);return{c(){e=y("div"),X(t.$$.fragment),l=W(),s&&s.c(),this.h()},l(r){e=D(r,"DIV",{class:!0});var d=I(e);Z(t.$$.fragment,d),l=F(d),s&&s.l(d),d.forEach(m),this.h()},h(){w(e,"class","relative")},m(r,d){L(r,e,d),x(t,e,null),_(e,l),s&&s.m(e,null),a=!0,u||(c=xe(o=ht.call(null,e,n[20])),u=!0)},p(r,[d]){const f={};d&4&&(f.label=r[2]),d&8&&(f.labelHidden=r[3]),d&1&&(f.value=r[0].toDateString()),d&64&&(f.clearButtonLabel=r[6]),d&128&&(f.disabled=r[7]),t.$set(f),r[10]?s?(s.p(r,d),d&1024&&E(s,1)):(s=Ue(r),s.c(),E(s,1),s.m(e,null)):s&&(ke(),A(s,1,1,()=>{s=null}),pe()),o&&Re(o.update)&&d&1024&&o.update.call(null,r[20])},i(r){a||(E(t.$$.fragment,r),E(s),a=!0)},o(r){A(t.$$.fragment,r),A(s),a=!1},d(r){r&&m(e),$(t),s&&s.d(),u=!1,c()}}}function Mt(n,e,t){const l=Qe();let{isAllowed:o=()=>!0}=e,{selected:a=new Date}=e,{label:u}=e,{labelHidden:c=!1}=e,{todayLabel:s}=e,{closeLabel:r}=e,{clearLabel:d}=e,{disabled:f=!1}=e,i,h,k=!1;const S=()=>{t(10,k=!0)},M=b=>{const Q=b.target.value;if(Q.length===8){const B=Q==null?void 0:Q.split("/"),ee=2e3+parseInt(B[2]),oe=parseInt(B[0])-1,q=parseInt(B[1]),te=new Date(ee,oe,q);l("datechange",te)}},V=()=>{if(i===11){t(8,i=0),t(9,h=h+1);return}t(8,i=i+1)},J=()=>{if(i===0){t(8,i=11),t(9,h-=1);return}t(8,i-=1)},K=b=>{t(10,k=!1),l("datechange",b.detail)},N=Ie("date-picker.previous-month"),H=Ie("date-picker.next-month"),g=()=>t(0,a=new Date),p=()=>t(10,k=!1),T=()=>t(10,k=!1);return n.$$set=b=>{"isAllowed"in b&&t(1,o=b.isAllowed),"selected"in b&&t(0,a=b.selected),"label"in b&&t(2,u=b.label),"labelHidden"in b&&t(3,c=b.labelHidden),"todayLabel"in b&&t(4,s=b.todayLabel),"closeLabel"in b&&t(5,r=b.closeLabel),"clearLabel"in b&&t(6,d=b.clearLabel),"disabled"in b&&t(7,f=b.disabled)},n.$$.update=()=>{n.$$.dirty&1&&(t(8,i=a.getMonth()),t(9,h=a.getFullYear()))},[a,o,u,c,s,r,d,f,i,h,k,S,M,V,J,K,N,H,g,p,T]}class en extends ce{constructor(e){super(),ie(this,e,Mt,Nt,ue,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}function Lt(n){let e;const t=n[5].default,l=tt(t,n,n[4],null);return{c(){l&&l.c()},l(o){l&&l.l(o)},m(o,a){l&&l.m(o,a),e=!0},p(o,a){l&&l.p&&(!e||a&16)&&nt(l,t,o,o[4],e?st(t,o[4],a,null):lt(o[4]),null)},i(o){e||(E(l,o),e=!0)},o(o){A(l,o),e=!1},d(o){l&&l.d(o)}}}function Vt(n){let e;return{c(){e=U(n[1])},l(t){e=Y(t,n[1])},m(t,l){L(t,e,l)},p(t,l){l&2&&le(e,t[1])},i:G,o:G,d(t){t&&m(e)}}}function Bt(n){let e,t,l,o;const a=[Vt,Lt],u=[];function c(s,r){return s[1]!==s[0]?0:1}return e=c(n),t=u[e]=a[e](n),{c(){t.c(),l=z()},l(s){t.l(s),l=z()},m(s,r){u[e].m(s,r),L(s,l,r),o=!0},p(s,[r]){let d=e;e=c(s),e===d?u[e].p(s,r):(ke(),A(u[d],1,1,()=>{u[d]=null}),pe(),t=u[e],t?t.p(s,r):(t=u[e]=a[e](s),t.c()),E(t,1),t.m(l.parentNode,l))},i(s){o||(E(t),o=!0)},o(s){A(t),o=!1},d(s){s&&m(l),u[e].d(s)}}}function Ot(n,e,t){let l,{$$slots:o={},$$scope:a}=e,{key:u}=e,{count:c=void 0}=e,{replace:s=void 0}=e;return n.$$set=r=>{"key"in r&&t(0,u=r.key),"count"in r&&t(2,c=r.count),"replace"in r&&t(3,s=r.replace),"$$scope"in r&&t(4,a=r.$$scope)},n.$$.update=()=>{n.$$.dirty&13&&t(1,l=Ie(u,{...s,count:c}))},[u,l,c,s,a,o]}class tn extends ce{constructor(e){super(),ie(this,e,Ot,Bt,ue,{key:0,count:2,replace:3})}}export{en as D,tn as T,$t as W,Xt as a,gt as b,Zt as i,xt as w}; diff --git a/ui/assets/local/_app/immutable/chunks/update-query-parameters.Mxd4zKR7.js b/ui/assets/local/_app/immutable/chunks/update-query-parameters.DBfsiMjL.js similarity index 85% rename from ui/assets/local/_app/immutable/chunks/update-query-parameters.Mxd4zKR7.js rename to ui/assets/local/_app/immutable/chunks/update-query-parameters.DBfsiMjL.js index c3160ebe1..bc86fe6db 100644 --- a/ui/assets/local/_app/immutable/chunks/update-query-parameters.Mxd4zKR7.js +++ b/ui/assets/local/_app/immutable/chunks/update-query-parameters.DBfsiMjL.js @@ -1 +1 @@ -import{g as h}from"./entry.49-_VqMH.js";const p={keepFocus:!0,noScroll:!0},S=async({parameter:n,value:e,url:c,goto:f=h,allowEmpty:i=!1,clearParameters:a=[]})=>{const g=String(e),r={};c.searchParams.forEach((o,s)=>{s!==n&&(r[s]=o)});const t=new URLSearchParams(r);e?t.set(n,g):i&&t.set(n,""),a.length&&a.forEach(o=>{t.delete(o)});{const o=t==null?void 0:t.toString(),s=o?`${c.pathname}?${o}`:c.pathname;f(s,p)}return e};export{S as u}; +import{g as h}from"./entry.Yz1YyohR.js";const p={keepFocus:!0,noScroll:!0},S=async({parameter:n,value:e,url:c,goto:f=h,allowEmpty:i=!1,clearParameters:a=[]})=>{const g=String(e),r={};c.searchParams.forEach((o,s)=>{s!==n&&(r[s]=o)});const t=new URLSearchParams(r);e?t.set(n,g):i&&t.set(n,""),a.length&&a.forEach(o=>{t.delete(o)});{const o=t==null?void 0:t.toString(),s=o?`${c.pathname}?${o}`:c.pathname;f(s,p)}return e};export{S as u}; diff --git a/ui/assets/local/_app/immutable/chunks/versions.VZx8Ysww.js b/ui/assets/local/_app/immutable/chunks/versions.l3g3WUor.js similarity index 58% rename from ui/assets/local/_app/immutable/chunks/versions.VZx8Ysww.js rename to ui/assets/local/_app/immutable/chunks/versions.l3g3WUor.js index 5c2114170..c3b500f46 100644 --- a/ui/assets/local/_app/immutable/chunks/versions.VZx8Ysww.js +++ b/ui/assets/local/_app/immutable/chunks/versions.l3g3WUor.js @@ -1 +1 @@ -import{d as o}from"./entry.49-_VqMH.js";import{p as e}from"./stores.BjeHb2_D.js";import{s as m}from"./settings.TuHg1P9A.js";const n=o([e],([r])=>{var a;return(a=r.data)==null?void 0:a.cluster}),t=o([n],([r])=>r==null?void 0:r.serverVersion),d=o([m],([r])=>r==null?void 0:r.version);export{n as c,t,d as u}; +import{d as o}from"./entry.Yz1YyohR.js";import{p as e}from"./stores.meYYndLY.js";import{s as m}from"./settings.oP-XN2ls.js";const n=o([e],([r])=>{var a;return(a=r.data)==null?void 0:a.cluster}),t=o([n],([r])=>r==null?void 0:r.serverVersion),d=o([m],([r])=>r==null?void 0:r.version);export{n as c,t,d as u}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.EcUYA12q.js b/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.cOSXQ3LY.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/workflow-json-navigator.EcUYA12q.js rename to ui/assets/local/_app/immutable/chunks/workflow-json-navigator.cOSXQ3LY.js index dbca7084c..d78658117 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.EcUYA12q.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.cOSXQ3LY.js @@ -1 +1 @@ -import{s as se,z as oe,e as P,t as le,a as B,b as T,d as H,f as ne,g as k,h as C,j as _,Q as de,H as R,E as me,k as Q,l as p,Z as ee,m as z,n as ae,ag as re,G as ye,D as _e,A as pe,L as Ee,p as Te,x as Z,V as De,u as Ae,q as He,r as Ve,c as Se,v as we}from"./scheduler.AWtTlMeO.js";import{S as Ie,i as Ne,c as J,a as Y,m as x,t as j,b as L,d as $,f as Oe,g as ue,e as ie}from"./index.91lpp7Ff.js";import{C as Pe}from"./code-block.PIA3laOL.js";import{g as Ue}from"./spread.rEx3vLA9.js";import{L as je}from"./label.2vZCl_WE.js";import{o as be}from"./omit.d6LgPome.js";import{t as G}from"./translate.HrioCK44.js";import{f as te}from"./index.R0s2mZbJ.js";import{d as Le}from"./events.bSFWyNpS.js";import{s as ge}from"./parse-with-big-int.e3oI4SEy.js";import{P as We}from"./payload-decoder.NtOFwqeB.js";function Re(s){let l,t,e,a,o,m,c,b,v=(s[0]??"")+"",w,E,u,y,V,D,I,g,d,N,X,S,K,r,U,h,q=[{name:"range"},{type:"range"},{class:"h-0 w-full cursor-pointer appearance-none rounded border-y-2 border-primary"},{min:s[3]},{max:s[4]},{step:s[5]},be(s[14],"class")],O={};for(let i=0;i{if(Number.isNaN(r.currentTarget.valueAsNumber)){t(0,y=v);return}t(9,V=r.currentTarget.valueAsNumber>=v&&r.currentTarget.valueAsNumber<=w)},g=({value:r,min:U,max:h})=>(r-U)*100/(h-U),d=({outputElement:r,outputXPos:U})=>{var h;const q=(h=r==null?void 0:r.clientWidth)!==null&&h!==void 0?h:15;return Math.floor(U*q/100)},N=()=>{t(8,e=g({value:y,min:v,max:w})),t(10,a=d({outputElement:D,outputXPos:e}))};function X(r){Ee[r?"unshift":"push"](()=>{D=r,t(7,D)})}function S(){y=re(this.value),t(0,y)}function K(){y=re(this.value),t(0,y)}return s.$$set=r=>{t(13,l=oe(oe({},l),pe(r))),t(14,m=_e(l,o)),"label"in r&&t(1,c=r.label),"labelHidden"in r&&t(2,b=r.labelHidden),"min"in r&&t(3,v=r.min),"max"in r&&t(4,w=r.max),"step"in r&&t(5,E=r.step),"id"in r&&t(6,u=r.id),"value"in r&&t(0,y=r.value)},s.$$.update=()=>{s.$$.dirty&25&&t(8,e=g({value:y,min:v,max:w})),s.$$.dirty&409&&(y?(t(8,e=g({value:y,min:v,max:w})),t(10,a=d({outputElement:D,outputXPos:e}))):(t(8,e=0),t(10,a=0))),s.$$.dirty&384&&t(10,a=d({outputElement:D,outputXPos:e}))},l=pe(l),[y,c,b,v,w,E,u,D,e,V,a,I,N,l,m,X,S,K]}class ze extends Ie{constructor(l){super(),Ne(this,l,Xe,Re,se,{label:1,labelHidden:2,min:3,max:4,step:5,id:6,value:0})}}const Be=s=>({}),he=s=>({});function Ce(s){let l=s[1],t,e,a=ve(s);return{c(){a.c(),t=Z()},l(o){a.l(o),t=Z()},m(o,m){a.m(o,m),Q(o,t,m),e=!0},p(o,m){m&2&&se(l,l=o[1])?(ue(),L(a,1,1,we),ie(),a=ve(o),a.c(),j(a,1),a.m(t.parentNode,t)):a.p(o,m)},i(o){e||(j(a),e=!0)},o(o){L(a),e=!1},d(o){o&&k(t),a.d(o)}}}function Ke(s){let l=[s[1],s[2]],t,e,a=ke(s);return{c(){a.c(),t=Z()},l(o){a.l(o),t=Z()},m(o,m){a.m(o,m),Q(o,t,m),e=!0},p(o,m){m&6&&se(l,l=[o[1],o[2]])?(ue(),L(a,1,1,we),ie(),a=ke(o),a.c(),j(a,1),a.m(t.parentNode,t)):a.p(o,m)},i(o){e||(j(a),e=!0)},o(o){L(a),e=!1},d(o){o&&k(t),a.d(o)}}}function ve(s){let l,t;return l=new Pe({props:{content:ge(te(s[0][s[1]-1]),void 0,2),testId:"event-history-json",copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){J(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&3&&(o.content=ge(te(e[0][e[1]-1]),void 0,2)),l.$set(o)},i(e){t||(j(l.$$.fragment,e),t=!0)},o(e){L(l.$$.fragment,e),t=!1},d(e){$(l,e)}}}function qe(s){let l,t;return l=new Pe({props:{content:s[9],testId:"event-history-json",copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){J(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&512&&(o.content=e[9]),l.$set(o)},i(e){t||(j(l.$$.fragment,e),t=!0)},o(e){L(l.$$.fragment,e),t=!1},d(e){$(l,e)}}}function ke(s){let l,t;return l=new We({props:{value:te(s[0][s[1]-1]),$$slots:{default:[qe,({decodedValue:e})=>({9:e}),({decodedValue:e})=>e?512:0]},$$scope:{ctx:s}}}),{c(){J(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&3&&(o.value=te(e[0][e[1]-1])),a&768&&(o.$$scope={dirty:a,ctx:e}),l.$set(o)},i(e){t||(j(l.$$.fragment,e),t=!0)},o(e){L(l.$$.fragment,e),t=!1},d(e){$(l,e)}}}function Me(s){let l,t,e,a,o,m,c,b,v,w,E,u,y,V,D,I,g,d,N,X,S;function K(n){s[5](n)}let r={label:G("common.event"),labelHidden:!0,id:"range-input-event-history",min:1,max:s[0].length};s[1]!==void 0&&(r.value=s[1]),e=new ze({props:r}),Ee.push(()=>Oe(e,"value",K));const U=s[4].decode,h=Te(U,s,s[8],he),q=[Ke,Ce],O=[];function i(n,f){return n[2]?0:1}return I=i(s),g=O[I]=q[I](s),{c(){l=P("div"),t=P("div"),J(e.$$.fragment),o=B(),m=P("div"),c=P("button"),b=P("span"),w=B(),E=P("button"),u=P("span"),V=B(),h&&h.c(),D=B(),g.c(),d=Z(),this.h()},l(n){l=T(n,"DIV",{class:!0});var f=H(l);t=T(f,"DIV",{class:!0});var A=H(t);Y(e.$$.fragment,A),o=C(A),m=T(A,"DIV",{class:!0});var W=H(m);c=T(W,"BUTTON",{class:!0,"aria-label":!0});var M=H(c);b=T(M,"SPAN",{class:!0}),H(b).forEach(k),M.forEach(k),w=C(W),E=T(W,"BUTTON",{class:!0,"aria-label":!0});var F=H(E);u=T(F,"SPAN",{class:!0}),H(u).forEach(k),F.forEach(k),W.forEach(k),A.forEach(k),V=C(f),h&&h.l(f),f.forEach(k),D=C(n),g.l(n),d=Z(),this.h()},h(){_(b,"class","arrow arrow-left svelte-1ryp6u1"),R(b,"arrow-left-disabled",s[1]===1),_(c,"class","caret svelte-1ryp6u1"),c.disabled=v=s[1]===1,_(c,"aria-label",G("common.previous")),_(u,"class","arrow arrow-right svelte-1ryp6u1"),R(u,"arrow-right-disabled",s[1]===s[0].length),_(E,"class","caret svelte-1ryp6u1"),E.disabled=y=s[1]===s[0].length,_(E,"aria-label",G("common.next")),_(m,"class","flex items-center justify-center gap-3"),_(t,"class","bg-gray-100 flex w-full gap-4"),_(l,"class","flex gap-4 max-sm:flex-col")},m(n,f){Q(n,l,f),p(l,t),x(e,t,null),p(t,o),p(t,m),p(m,c),p(c,b),p(m,w),p(m,E),p(E,u),p(l,V),h&&h.m(l,null),Q(n,D,f),O[I].m(n,f),Q(n,d,f),N=!0,X||(S=[z(window,"keydown",s[3]),z(c,"click",s[6]),z(E,"click",s[7])],X=!0)},p(n,[f]){const A={};f&1&&(A.max=n[0].length),!a&&f&2&&(a=!0,A.value=n[1],De(()=>a=!1)),e.$set(A),(!N||f&2)&&R(b,"arrow-left-disabled",n[1]===1),(!N||f&2&&v!==(v=n[1]===1))&&(c.disabled=v),(!N||f&3)&&R(u,"arrow-right-disabled",n[1]===n[0].length),(!N||f&3&&y!==(y=n[1]===n[0].length))&&(E.disabled=y),h&&h.p&&(!N||f&256)&&Ae(h,U,n,n[8],N?Ve(U,n[8],f,Be):He(n[8]),he);let W=I;I=i(n),I===W?O[I].p(n,f):(ue(),L(O[W],1,1,()=>{O[W]=null}),ie(),g=O[I],g?g.p(n,f):(g=O[I]=q[I](n),g.c()),j(g,1),g.m(d.parentNode,d))},i(n){N||(j(e.$$.fragment,n),j(h,n),j(g),N=!0)},o(n){L(e.$$.fragment,n),L(h,n),L(g),N=!1},d(n){n&&(k(l),k(D),k(d)),$(e),h&&h.d(n),O[I].d(n),X=!1,ye(S)}}}function Ge(s,l,t){let e;Se(s,Le,u=>t(2,e=u));let{$$slots:a={},$$scope:o}=l,{events:m=[]}=l,c=1;function b(u){switch(u.code){case"ArrowRight":case"KeyL":u.preventDefault(),u.stopPropagation(),c1&&t(1,c-=1);break}}function v(u){c=u,t(1,c)}const w=()=>{t(1,c-=1)},E=()=>{t(1,c+=1)};return s.$$set=u=>{"events"in u&&t(0,m=u.events),"$$scope"in u&&t(8,o=u.$$scope)},[m,c,e,b,a,v,w,E,o]}class nt extends Ie{constructor(l){super(),Ne(this,l,Ge,Me,se,{events:0})}}export{nt as W}; +import{s as se,z as oe,e as P,t as le,a as B,b as T,d as H,f as ne,g as k,h as C,j as _,Q as de,H as R,E as me,k as Q,l as p,Z as ee,m as z,n as ae,ag as re,G as ye,D as _e,A as pe,L as Ee,p as Te,x as Z,V as De,u as Ae,q as He,r as Ve,c as Se,v as we}from"./scheduler.AWtTlMeO.js";import{S as Ie,i as Ne,c as J,a as Y,m as x,t as j,b as L,d as $,f as Oe,g as ue,e as ie}from"./index.91lpp7Ff.js";import{C as Pe}from"./code-block.XXHS15kp.js";import{g as Ue}from"./spread.rEx3vLA9.js";import{L as je}from"./label.2vZCl_WE.js";import{o as be}from"./omit.d6LgPome.js";import{t as G}from"./translate.HrioCK44.js";import{f as te}from"./index.PDR9Tyn3.js";import{d as Le}from"./events.xGcD40Yy.js";import{s as ge}from"./parse-with-big-int.e3oI4SEy.js";import{P as We}from"./payload-decoder.YeQWFAju.js";function Re(s){let l,t,e,a,o,m,c,b,v=(s[0]??"")+"",w,E,u,y,V,D,I,g,d,N,X,S,K,r,U,h,q=[{name:"range"},{type:"range"},{class:"h-0 w-full cursor-pointer appearance-none rounded border-y-2 border-primary"},{min:s[3]},{max:s[4]},{step:s[5]},be(s[14],"class")],O={};for(let i=0;i{if(Number.isNaN(r.currentTarget.valueAsNumber)){t(0,y=v);return}t(9,V=r.currentTarget.valueAsNumber>=v&&r.currentTarget.valueAsNumber<=w)},g=({value:r,min:U,max:h})=>(r-U)*100/(h-U),d=({outputElement:r,outputXPos:U})=>{var h;const q=(h=r==null?void 0:r.clientWidth)!==null&&h!==void 0?h:15;return Math.floor(U*q/100)},N=()=>{t(8,e=g({value:y,min:v,max:w})),t(10,a=d({outputElement:D,outputXPos:e}))};function X(r){Ee[r?"unshift":"push"](()=>{D=r,t(7,D)})}function S(){y=re(this.value),t(0,y)}function K(){y=re(this.value),t(0,y)}return s.$$set=r=>{t(13,l=oe(oe({},l),pe(r))),t(14,m=_e(l,o)),"label"in r&&t(1,c=r.label),"labelHidden"in r&&t(2,b=r.labelHidden),"min"in r&&t(3,v=r.min),"max"in r&&t(4,w=r.max),"step"in r&&t(5,E=r.step),"id"in r&&t(6,u=r.id),"value"in r&&t(0,y=r.value)},s.$$.update=()=>{s.$$.dirty&25&&t(8,e=g({value:y,min:v,max:w})),s.$$.dirty&409&&(y?(t(8,e=g({value:y,min:v,max:w})),t(10,a=d({outputElement:D,outputXPos:e}))):(t(8,e=0),t(10,a=0))),s.$$.dirty&384&&t(10,a=d({outputElement:D,outputXPos:e}))},l=pe(l),[y,c,b,v,w,E,u,D,e,V,a,I,N,l,m,X,S,K]}class ze extends Ie{constructor(l){super(),Ne(this,l,Xe,Re,se,{label:1,labelHidden:2,min:3,max:4,step:5,id:6,value:0})}}const Be=s=>({}),he=s=>({});function Ce(s){let l=s[1],t,e,a=ve(s);return{c(){a.c(),t=Z()},l(o){a.l(o),t=Z()},m(o,m){a.m(o,m),Q(o,t,m),e=!0},p(o,m){m&2&&se(l,l=o[1])?(ue(),L(a,1,1,we),ie(),a=ve(o),a.c(),j(a,1),a.m(t.parentNode,t)):a.p(o,m)},i(o){e||(j(a),e=!0)},o(o){L(a),e=!1},d(o){o&&k(t),a.d(o)}}}function Ke(s){let l=[s[1],s[2]],t,e,a=ke(s);return{c(){a.c(),t=Z()},l(o){a.l(o),t=Z()},m(o,m){a.m(o,m),Q(o,t,m),e=!0},p(o,m){m&6&&se(l,l=[o[1],o[2]])?(ue(),L(a,1,1,we),ie(),a=ke(o),a.c(),j(a,1),a.m(t.parentNode,t)):a.p(o,m)},i(o){e||(j(a),e=!0)},o(o){L(a),e=!1},d(o){o&&k(t),a.d(o)}}}function ve(s){let l,t;return l=new Pe({props:{content:ge(te(s[0][s[1]-1]),void 0,2),testId:"event-history-json",copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){J(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&3&&(o.content=ge(te(e[0][e[1]-1]),void 0,2)),l.$set(o)},i(e){t||(j(l.$$.fragment,e),t=!0)},o(e){L(l.$$.fragment,e),t=!1},d(e){$(l,e)}}}function qe(s){let l,t;return l=new Pe({props:{content:s[9],testId:"event-history-json",copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){J(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&512&&(o.content=e[9]),l.$set(o)},i(e){t||(j(l.$$.fragment,e),t=!0)},o(e){L(l.$$.fragment,e),t=!1},d(e){$(l,e)}}}function ke(s){let l,t;return l=new We({props:{value:te(s[0][s[1]-1]),$$slots:{default:[qe,({decodedValue:e})=>({9:e}),({decodedValue:e})=>e?512:0]},$$scope:{ctx:s}}}),{c(){J(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,a){x(l,e,a),t=!0},p(e,a){const o={};a&3&&(o.value=te(e[0][e[1]-1])),a&768&&(o.$$scope={dirty:a,ctx:e}),l.$set(o)},i(e){t||(j(l.$$.fragment,e),t=!0)},o(e){L(l.$$.fragment,e),t=!1},d(e){$(l,e)}}}function Me(s){let l,t,e,a,o,m,c,b,v,w,E,u,y,V,D,I,g,d,N,X,S;function K(n){s[5](n)}let r={label:G("common.event"),labelHidden:!0,id:"range-input-event-history",min:1,max:s[0].length};s[1]!==void 0&&(r.value=s[1]),e=new ze({props:r}),Ee.push(()=>Oe(e,"value",K));const U=s[4].decode,h=Te(U,s,s[8],he),q=[Ke,Ce],O=[];function i(n,f){return n[2]?0:1}return I=i(s),g=O[I]=q[I](s),{c(){l=P("div"),t=P("div"),J(e.$$.fragment),o=B(),m=P("div"),c=P("button"),b=P("span"),w=B(),E=P("button"),u=P("span"),V=B(),h&&h.c(),D=B(),g.c(),d=Z(),this.h()},l(n){l=T(n,"DIV",{class:!0});var f=H(l);t=T(f,"DIV",{class:!0});var A=H(t);Y(e.$$.fragment,A),o=C(A),m=T(A,"DIV",{class:!0});var W=H(m);c=T(W,"BUTTON",{class:!0,"aria-label":!0});var M=H(c);b=T(M,"SPAN",{class:!0}),H(b).forEach(k),M.forEach(k),w=C(W),E=T(W,"BUTTON",{class:!0,"aria-label":!0});var F=H(E);u=T(F,"SPAN",{class:!0}),H(u).forEach(k),F.forEach(k),W.forEach(k),A.forEach(k),V=C(f),h&&h.l(f),f.forEach(k),D=C(n),g.l(n),d=Z(),this.h()},h(){_(b,"class","arrow arrow-left svelte-1ryp6u1"),R(b,"arrow-left-disabled",s[1]===1),_(c,"class","caret svelte-1ryp6u1"),c.disabled=v=s[1]===1,_(c,"aria-label",G("common.previous")),_(u,"class","arrow arrow-right svelte-1ryp6u1"),R(u,"arrow-right-disabled",s[1]===s[0].length),_(E,"class","caret svelte-1ryp6u1"),E.disabled=y=s[1]===s[0].length,_(E,"aria-label",G("common.next")),_(m,"class","flex items-center justify-center gap-3"),_(t,"class","bg-gray-100 flex w-full gap-4"),_(l,"class","flex gap-4 max-sm:flex-col")},m(n,f){Q(n,l,f),p(l,t),x(e,t,null),p(t,o),p(t,m),p(m,c),p(c,b),p(m,w),p(m,E),p(E,u),p(l,V),h&&h.m(l,null),Q(n,D,f),O[I].m(n,f),Q(n,d,f),N=!0,X||(S=[z(window,"keydown",s[3]),z(c,"click",s[6]),z(E,"click",s[7])],X=!0)},p(n,[f]){const A={};f&1&&(A.max=n[0].length),!a&&f&2&&(a=!0,A.value=n[1],De(()=>a=!1)),e.$set(A),(!N||f&2)&&R(b,"arrow-left-disabled",n[1]===1),(!N||f&2&&v!==(v=n[1]===1))&&(c.disabled=v),(!N||f&3)&&R(u,"arrow-right-disabled",n[1]===n[0].length),(!N||f&3&&y!==(y=n[1]===n[0].length))&&(E.disabled=y),h&&h.p&&(!N||f&256)&&Ae(h,U,n,n[8],N?Ve(U,n[8],f,Be):He(n[8]),he);let W=I;I=i(n),I===W?O[I].p(n,f):(ue(),L(O[W],1,1,()=>{O[W]=null}),ie(),g=O[I],g?g.p(n,f):(g=O[I]=q[I](n),g.c()),j(g,1),g.m(d.parentNode,d))},i(n){N||(j(e.$$.fragment,n),j(h,n),j(g),N=!0)},o(n){L(e.$$.fragment,n),L(h,n),L(g),N=!1},d(n){n&&(k(l),k(D),k(d)),$(e),h&&h.d(n),O[I].d(n),X=!1,ye(S)}}}function Ge(s,l,t){let e;Se(s,Le,u=>t(2,e=u));let{$$slots:a={},$$scope:o}=l,{events:m=[]}=l,c=1;function b(u){switch(u.code){case"ArrowRight":case"KeyL":u.preventDefault(),u.stopPropagation(),c1&&t(1,c-=1);break}}function v(u){c=u,t(1,c)}const w=()=>{t(1,c-=1)},E=()=>{t(1,c+=1)};return s.$$set=u=>{"events"in u&&t(0,m=u.events),"$$scope"in u&&t(8,o=u.$$scope)},[m,c,e,b,a,v,w,E,o]}class nt extends Ie{constructor(l){super(),Ne(this,l,Ge,Me,se,{events:0})}}export{nt as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-padded-layout.T5Lzt1hp.js b/ui/assets/local/_app/immutable/chunks/workflow-padded-layout.fDOmOSDE.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/workflow-padded-layout.T5Lzt1hp.js rename to ui/assets/local/_app/immutable/chunks/workflow-padded-layout.fDOmOSDE.js index 629ca6f9b..63ca7d2b6 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-padded-layout.T5Lzt1hp.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-padded-layout.fDOmOSDE.js @@ -1 +1 @@ -import{s as p,p as c,e as $,b as g,d as h,g as i,j as b,k,u as _,q as d,r as m}from"./scheduler.AWtTlMeO.js";import{S as v,i as q,c as w,a as y,m as L,t as r,b as f,d as S}from"./index.91lpp7Ff.js";import{L as W}from"./labs-mode-guard.15bwZDx8.js";const j=o=>({}),u=o=>({slot:"fallback"});function C(o){let s,l;const e=o[0].default,t=c(e,o,o[1],null);return{c(){s=$("div"),t&&t.c(),this.h()},l(a){s=g(a,"DIV",{class:!0});var n=h(s);t&&t.l(n),n.forEach(i),this.h()},h(){b(s,"class","h-full px-8 pb-16")},m(a,n){k(a,s,n),t&&t.m(s,null),l=!0},p(a,n){t&&t.p&&(!l||n&2)&&_(t,e,a,a[1],l?m(e,a[1],n,null):d(a[1]),null)},i(a){l||(r(t,a),l=!0)},o(a){f(t,a),l=!1},d(a){a&&i(s),t&&t.d(a)}}}function D(o){let s;const l=o[0].default,e=c(l,o,o[1],u);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,a){e&&e.p&&(!s||a&2)&&_(e,l,t,t[1],s?m(l,t[1],a,j):d(t[1]),u)},i(t){s||(r(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function E(o){let s,l;return s=new W({props:{$$slots:{fallback:[D],default:[C]},$$scope:{ctx:o}}}),{c(){w(s.$$.fragment)},l(e){y(s.$$.fragment,e)},m(e,t){L(s,e,t),l=!0},p(e,[t]){const a={};t&2&&(a.$$scope={dirty:t,ctx:e}),s.$set(a)},i(e){l||(r(s.$$.fragment,e),l=!0)},o(e){f(s.$$.fragment,e),l=!1},d(e){S(s,e)}}}function I(o,s,l){let{$$slots:e={},$$scope:t}=s;return o.$$set=a=>{"$$scope"in a&&l(1,t=a.$$scope)},[e,t]}class B extends v{constructor(s){super(),q(this,s,I,E,p,{})}}export{B as W}; +import{s as p,p as c,e as $,b as g,d as h,g as i,j as b,k,u as _,q as d,r as m}from"./scheduler.AWtTlMeO.js";import{S as v,i as q,c as w,a as y,m as L,t as r,b as f,d as S}from"./index.91lpp7Ff.js";import{L as W}from"./labs-mode-guard.-5NFppIE.js";const j=o=>({}),u=o=>({slot:"fallback"});function C(o){let s,l;const e=o[0].default,t=c(e,o,o[1],null);return{c(){s=$("div"),t&&t.c(),this.h()},l(a){s=g(a,"DIV",{class:!0});var n=h(s);t&&t.l(n),n.forEach(i),this.h()},h(){b(s,"class","h-full px-8 pb-16")},m(a,n){k(a,s,n),t&&t.m(s,null),l=!0},p(a,n){t&&t.p&&(!l||n&2)&&_(t,e,a,a[1],l?m(e,a[1],n,null):d(a[1]),null)},i(a){l||(r(t,a),l=!0)},o(a){f(t,a),l=!1},d(a){a&&i(s),t&&t.d(a)}}}function D(o){let s;const l=o[0].default,e=c(l,o,o[1],u);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,a){e&&e.p&&(!s||a&2)&&_(e,l,t,t[1],s?m(l,t[1],a,j):d(t[1]),u)},i(t){s||(r(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function E(o){let s,l;return s=new W({props:{$$slots:{fallback:[D],default:[C]},$$scope:{ctx:o}}}),{c(){w(s.$$.fragment)},l(e){y(s.$$.fragment,e)},m(e,t){L(s,e,t),l=!0},p(e,[t]){const a={};t&2&&(a.$$scope={dirty:t,ctx:e}),s.$set(a)},i(e){l||(r(s.$$.fragment,e),l=!0)},o(e){f(s.$$.fragment,e),l=!1},d(e){S(s,e)}}}function I(o,s,l){let{$$slots:e={},$$scope:t}=s;return o.$$set=a=>{"$$scope"in a&&l(1,t=a.$$scope)},[e,t]}class B extends v{constructor(s){super(),q(this,s,I,E,p,{})}}export{B as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-run.ZUOIerA5.js b/ui/assets/local/_app/immutable/chunks/workflow-run.x_o75HKu.js similarity index 54% rename from ui/assets/local/_app/immutable/chunks/workflow-run.ZUOIerA5.js rename to ui/assets/local/_app/immutable/chunks/workflow-run.x_o75HKu.js index 3b31db84b..e8f44f393 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-run.ZUOIerA5.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-run.x_o75HKu.js @@ -1 +1 @@ -import{w as o}from"./entry.49-_VqMH.js";import{p as r}from"./persist-store.79TECdfr.js";const t=o(0),e={workflow:null,workers:{pollers:[],taskQueueStatus:null}},l=o(e),i=r("workflowSummaryView",!0,!0),a=r("workflowTimelineView",!0,!0);export{i as a,a as b,e as i,t as r,l as w}; +import{w as o}from"./entry.Yz1YyohR.js";import{p as r}from"./persist-store.8QJu1WeF.js";const t=o(0),e={workflow:null,workers:{pollers:[],taskQueueStatus:null}},l=o(e),i=r("workflowSummaryView",!0,!0),a=r("workflowTimelineView",!0,!0);export{i as a,a as b,e as i,t as r,l as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.eMZk6auC.js b/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.gh7AP--t.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.eMZk6auC.js rename to ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.gh7AP--t.js index 6bdfbed00..7a7312719 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.eMZk6auC.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.gh7AP--t.js @@ -1 +1 @@ -import{s as q,L as b,V as k,e as T,t as C,b as E,d as D,f as W,g as w,j as I,k as A,l as g,v as y,a6 as L,w as N,a as Q,h as U}from"./scheduler.AWtTlMeO.js";import{S as z,i as B,f as M,c as v,a as P,m as R,t as S,b as V,d as j}from"./index.91lpp7Ff.js";import{M as F}from"./modal._fUsCkow.js";import{t as h}from"./translate.HrioCK44.js";import{c as X,t as Y}from"./workflows.K4-zDFP4.js";import{t as G}from"./toaster.JA1rZe2a.js";import{i as J}from"./is-network-error.S4fYxeQT.js";import{I as Z}from"./input.Oj66r1n-.js";function x(t){let e,o=h("workflows.cancel-modal-title")+"",a;return{c(){e=T("h3"),a=C(o),this.h()},l(r){e=E(r,"H3",{slot:!0});var l=D(e);a=W(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),g(e,a)},p:y,d(r){r&&w(e)}}}function $(t){let e,o=h("workflows.cancel-modal-confirmation")+"",a;return{c(){e=T("p"),a=C(o)},l(r){e=E(r,"P",{});var l=D(e);a=W(l,o),l.forEach(w)},m(r,l){A(r,e,l),g(e,a)},p:y,d(r){r&&w(e)}}}function ee(t){let e,o,a,r;function l(n){t[7](n)}function i(n){t[8](n)}let m={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:h("common.confirm"),cancelText:h("common.cancel"),loading:t[2],confirmType:"destructive",$$slots:{content:[$],title:[x]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new F({props:m}),b.push(()=>M(e,"error",l)),b.push(()=>M(e,"open",i)),e.$on("confirmModal",t[4]),{c(){v(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,s){R(e,n,s),r=!0},p(n,[s]){const c={};s&4&&(c.loading=n[2]),s&1024&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),r=!1},d(n){j(e,n)}}}function oe(t,e,o){let a,r=y,l=()=>(r(),r=L(s,u=>o(9,a=u)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c,f="";const d=async()=>{o(3,f=""),o(2,c=!0);try{await X({namespace:n,workflow:m}),o(0,i=!1),N(s,a=Date.now(),a),G.push({id:"workflow-cancelation-success-toast",message:h("workflows.cancel-success")})}catch(u){o(3,f=J(u)?u.message:h("common.unknown-error"))}finally{o(2,c=!1)}};function p(u){f=u,o(3,f)}function H(u){i=u,o(0,i)}return t.$$set=u=>{"open"in u&&o(0,i=u.open),"workflow"in u&&o(5,m=u.workflow),"namespace"in u&&o(6,n=u.namespace),"refresh"in u&&l(o(1,s=u.refresh))},[i,s,c,f,d,m,n,p,H]}class de extends z{constructor(e){super(),B(this,e,oe,ee,q,{open:0,workflow:5,namespace:6,refresh:1})}}function ne(t){let e,o=h("workflows.terminate-modal-title")+"",a;return{c(){e=T("h3"),a=C(o),this.h()},l(r){e=E(r,"H3",{slot:!0});var l=D(e);a=W(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),g(e,a)},p:y,d(r){r&&w(e)}}}function te(t){let e,o,a=h("workflows.terminate-modal-confirmation")+"",r,l,i,m,n;function s(f){t[9](f)}let c={id:"workflow-termination-reason",class:"mt-4",placeholder:h("common.reason-placeholder"),label:h("common.reason-placeholder"),labelHidden:!0};return t[2]!==void 0&&(c.value=t[2]),i=new Z({props:c}),b.push(()=>M(i,"value",s)),{c(){e=T("div"),o=T("p"),r=C(a),l=Q(),v(i.$$.fragment),this.h()},l(f){e=E(f,"DIV",{slot:!0});var d=D(e);o=E(d,"P",{});var p=D(o);r=W(p,a),p.forEach(w),l=U(d),P(i.$$.fragment,d),d.forEach(w),this.h()},h(){I(e,"slot","content")},m(f,d){A(f,e,d),g(e,o),g(o,r),g(e,l),R(i,e,null),n=!0},p(f,d){const p={};!m&&d&4&&(m=!0,p.value=f[2],k(()=>m=!1)),i.$set(p)},i(f){n||(S(i.$$.fragment,f),n=!0)},o(f){V(i.$$.fragment,f),n=!1},d(f){f&&w(e),j(i)}}}function re(t){let e,o,a,r;function l(n){t[10](n)}function i(n){t[11](n)}let m={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",loading:t[4],confirmText:h("workflows.terminate"),cancelText:h("common.cancel"),confirmType:"destructive",$$slots:{content:[te],title:[ne]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new F({props:m}),b.push(()=>M(e,"error",l)),b.push(()=>M(e,"open",i)),e.$on("cancelModal",t[5]),e.$on("confirmModal",t[6]),{c(){v(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,s){R(e,n,s),r=!0},p(n,[s]){const c={};s&16&&(c.loading=n[4]),s&8196&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),r=!1},d(n){j(e,n)}}}function ae(t,e,o){let a,r=y,l=()=>(r(),r=L(s,_=>o(12,a=_)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c="",f="",d=!1;const p=()=>{o(0,i=!1),o(2,c="")},H=async()=>{o(3,f=""),o(4,d=!0);try{await Y({workflow:m,namespace:n,reason:c}),o(0,i=!1),o(2,c=""),N(s,a=Date.now(),a),G.push({id:"workflow-termination-success-toast",message:h("workflows.terminate-success")})}catch(_){o(3,f=J(_)?_.message:h("common.unknown-error"))}finally{o(4,d=!1)}};function u(_){c=_,o(2,c)}function K(_){f=_,o(3,f)}function O(_){i=_,o(0,i)}return t.$$set=_=>{"open"in _&&o(0,i=_.open),"workflow"in _&&o(7,m=_.workflow),"namespace"in _&&o(8,n=_.namespace),"refresh"in _&&l(o(1,s=_.refresh))},[i,s,c,f,d,p,H,m,n,u,K,O]}class he extends z{constructor(e){super(),B(this,e,ae,re,q,{open:0,workflow:7,namespace:8,refresh:1})}}const pe=t=>!t.disableWriteActions&&!t.workflowCancelDisabled,we=t=>!t.disableWriteActions&&!t.workflowResetDisabled,ge=t=>!t.disableWriteActions&&!t.workflowTerminateDisabled;export{de as C,he as T,ge as a,we as b,pe as w}; +import{s as q,L as b,V as k,e as T,t as C,b as E,d as D,f as W,g as w,j as I,k as A,l as g,v as y,a6 as L,w as N,a as Q,h as U}from"./scheduler.AWtTlMeO.js";import{S as z,i as B,f as M,c as v,a as P,m as R,t as S,b as V,d as j}from"./index.91lpp7Ff.js";import{M as F}from"./modal.6JWN7kGw.js";import{t as h}from"./translate.HrioCK44.js";import{c as X,t as Y}from"./workflows.W0IFK8bL.js";import{t as G}from"./toaster.tT6uD5UN.js";import{i as J}from"./is-network-error.S4fYxeQT.js";import{I as Z}from"./input.EAz4myrb.js";function x(t){let e,o=h("workflows.cancel-modal-title")+"",a;return{c(){e=T("h3"),a=C(o),this.h()},l(r){e=E(r,"H3",{slot:!0});var l=D(e);a=W(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),g(e,a)},p:y,d(r){r&&w(e)}}}function $(t){let e,o=h("workflows.cancel-modal-confirmation")+"",a;return{c(){e=T("p"),a=C(o)},l(r){e=E(r,"P",{});var l=D(e);a=W(l,o),l.forEach(w)},m(r,l){A(r,e,l),g(e,a)},p:y,d(r){r&&w(e)}}}function ee(t){let e,o,a,r;function l(n){t[7](n)}function i(n){t[8](n)}let m={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:h("common.confirm"),cancelText:h("common.cancel"),loading:t[2],confirmType:"destructive",$$slots:{content:[$],title:[x]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new F({props:m}),b.push(()=>M(e,"error",l)),b.push(()=>M(e,"open",i)),e.$on("confirmModal",t[4]),{c(){v(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,s){R(e,n,s),r=!0},p(n,[s]){const c={};s&4&&(c.loading=n[2]),s&1024&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),r=!1},d(n){j(e,n)}}}function oe(t,e,o){let a,r=y,l=()=>(r(),r=L(s,u=>o(9,a=u)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c,f="";const d=async()=>{o(3,f=""),o(2,c=!0);try{await X({namespace:n,workflow:m}),o(0,i=!1),N(s,a=Date.now(),a),G.push({id:"workflow-cancelation-success-toast",message:h("workflows.cancel-success")})}catch(u){o(3,f=J(u)?u.message:h("common.unknown-error"))}finally{o(2,c=!1)}};function p(u){f=u,o(3,f)}function H(u){i=u,o(0,i)}return t.$$set=u=>{"open"in u&&o(0,i=u.open),"workflow"in u&&o(5,m=u.workflow),"namespace"in u&&o(6,n=u.namespace),"refresh"in u&&l(o(1,s=u.refresh))},[i,s,c,f,d,m,n,p,H]}class de extends z{constructor(e){super(),B(this,e,oe,ee,q,{open:0,workflow:5,namespace:6,refresh:1})}}function ne(t){let e,o=h("workflows.terminate-modal-title")+"",a;return{c(){e=T("h3"),a=C(o),this.h()},l(r){e=E(r,"H3",{slot:!0});var l=D(e);a=W(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),g(e,a)},p:y,d(r){r&&w(e)}}}function te(t){let e,o,a=h("workflows.terminate-modal-confirmation")+"",r,l,i,m,n;function s(f){t[9](f)}let c={id:"workflow-termination-reason",class:"mt-4",placeholder:h("common.reason-placeholder"),label:h("common.reason-placeholder"),labelHidden:!0};return t[2]!==void 0&&(c.value=t[2]),i=new Z({props:c}),b.push(()=>M(i,"value",s)),{c(){e=T("div"),o=T("p"),r=C(a),l=Q(),v(i.$$.fragment),this.h()},l(f){e=E(f,"DIV",{slot:!0});var d=D(e);o=E(d,"P",{});var p=D(o);r=W(p,a),p.forEach(w),l=U(d),P(i.$$.fragment,d),d.forEach(w),this.h()},h(){I(e,"slot","content")},m(f,d){A(f,e,d),g(e,o),g(o,r),g(e,l),R(i,e,null),n=!0},p(f,d){const p={};!m&&d&4&&(m=!0,p.value=f[2],k(()=>m=!1)),i.$set(p)},i(f){n||(S(i.$$.fragment,f),n=!0)},o(f){V(i.$$.fragment,f),n=!1},d(f){f&&w(e),j(i)}}}function re(t){let e,o,a,r;function l(n){t[10](n)}function i(n){t[11](n)}let m={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",loading:t[4],confirmText:h("workflows.terminate"),cancelText:h("common.cancel"),confirmType:"destructive",$$slots:{content:[te],title:[ne]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new F({props:m}),b.push(()=>M(e,"error",l)),b.push(()=>M(e,"open",i)),e.$on("cancelModal",t[5]),e.$on("confirmModal",t[6]),{c(){v(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,s){R(e,n,s),r=!0},p(n,[s]){const c={};s&16&&(c.loading=n[4]),s&8196&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),r=!1},d(n){j(e,n)}}}function ae(t,e,o){let a,r=y,l=()=>(r(),r=L(s,_=>o(12,a=_)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c="",f="",d=!1;const p=()=>{o(0,i=!1),o(2,c="")},H=async()=>{o(3,f=""),o(4,d=!0);try{await Y({workflow:m,namespace:n,reason:c}),o(0,i=!1),o(2,c=""),N(s,a=Date.now(),a),G.push({id:"workflow-termination-success-toast",message:h("workflows.terminate-success")})}catch(_){o(3,f=J(_)?_.message:h("common.unknown-error"))}finally{o(4,d=!1)}};function u(_){c=_,o(2,c)}function K(_){f=_,o(3,f)}function O(_){i=_,o(0,i)}return t.$$set=_=>{"open"in _&&o(0,i=_.open),"workflow"in _&&o(7,m=_.workflow),"namespace"in _&&o(8,n=_.namespace),"refresh"in _&&l(o(1,s=_.refresh))},[i,s,c,f,d,p,H,m,n,u,K,O]}class he extends z{constructor(e){super(),B(this,e,ae,re,q,{open:0,workflow:7,namespace:8,refresh:1})}}const pe=t=>!t.disableWriteActions&&!t.workflowCancelDisabled,we=t=>!t.disableWriteActions&&!t.workflowResetDisabled,ge=t=>!t.disableWriteActions&&!t.workflowTerminateDisabled;export{de as C,he as T,ge as a,we as b,pe as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflows.K4-zDFP4.js b/ui/assets/local/_app/immutable/chunks/workflows.W0IFK8bL.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/workflows.K4-zDFP4.js rename to ui/assets/local/_app/immutable/chunks/workflows.W0IFK8bL.js index 5daef0f9a..50d5e0038 100644 --- a/ui/assets/local/_app/immutable/chunks/workflows.K4-zDFP4.js +++ b/ui/assets/local/_app/immutable/chunks/workflows.W0IFK8bL.js @@ -1 +1 @@ -import{d as u,r as Z,w as k}from"./entry.49-_VqMH.js";import{p as y}from"./stores.BjeHb2_D.js";import{t as h}from"./translate.HrioCK44.js";import{v as V,C as E}from"./scheduler.AWtTlMeO.js";import{r as d,a as l,b as oo,p as to,c as no,d as ro,e as eo}from"./route-for-api.Fwy3ccvq.js";import{A as p}from"./workflow-actions.-K4W_iAA.js";import{h as so}from"./decode-payload.-K-YkwX5.js";import{f as ao}from"./screaming-enums.NBZzZ07O.js";import{w as io}from"./write-actions-are-allowed.BsR296Mf.js";import{s as co}from"./simplify-attributes.CFz5PLMp.js";import{a as N}from"./auth-user.qLkr7QCG.js";import{i as Q,m as z}from"./version-check.HLZIw2tw.js";import{c as U,t as W}from"./versions.VZx8Ysww.js";import{s as fo}from"./filters.1ozdh_8f.js";import{e as uo}from"./encode-payload.fJnyVVKQ.js";import{s as T}from"./parse-with-big-int.e3oI4SEy.js";import{i as lo,d as wo,e as q,h as mo}from"./format-time.6T8OwT4v.js";import{v as ko}from"./toaster.JA1rZe2a.js";const yo=async(o,t,n=fetch)=>{let r=0;try{const e=d("workflows.count",{namespace:o}),s=await l(e,{params:t?{query:t}:{},onError:V,handleError:V,request:n});r=parseInt((s==null?void 0:s.count)||"0")}catch{}return{count:r}},ct=async({namespace:o,query:t})=>{const n="GROUP BY ExecutionStatus",r=d("workflows.count",{namespace:o}),{count:e,groups:s}=await l(r,{params:{query:t?`${t} ${n}`:`${n}`},notifyOnError:!1});return{count:e??"0",groups:s}},ho=(o=[])=>o.map(t=>{const n=co(t,!0),r=t.activityId;return{...n,id:r}}),Eo=o=>!o||!o.indexedFields?{}:{indexedFields:Object.entries(o.indexedFields).reduce((n,[r,e])=>({...n,[r]:so(e)}),{})},A=o=>{var P,R,v,$,O,B,F;const t=Eo(o.workflowExecutionInfo.searchAttributes),n=o.workflowExecutionInfo.memo,r=o.workflowExecutionInfo.type.name,e=o.workflowExecutionInfo.execution.workflowId,s=o.workflowExecutionInfo.execution.runId,a=o.workflowExecutionInfo.startTime,i=o.workflowExecutionInfo.closeTime,w=o.workflowExecutionInfo.executionTime,f=ao(o.workflowExecutionInfo.status),m=f==="Running",g=o.workflowExecutionInfo.historyLength,c=o.workflowExecutionInfo.historySizeBytes,x=`/workflows/${e}/${s}`,I=((R=(P=o==null?void 0:o.executionConfig)==null?void 0:P.taskQueue)==null?void 0:R.name)||((v=o==null?void 0:o.workflowExecutionInfo)==null?void 0:v.taskQueue),G=($=o==null?void 0:o.workflowExecutionInfo)==null?void 0:$.mostRecentWorkerVersionStamp,_=(O=o==null?void 0:o.workflowExecutionInfo)==null?void 0:O.parentNamespaceId,Y=(B=o==null?void 0:o.workflowExecutionInfo)==null?void 0:B.parentExecution,H=o.workflowExecutionInfo.stateTransitionCount,J=(F=o.executionConfig)==null?void 0:F.defaultWorkflowTaskTimeout,M=ho(o.pendingActivities),X=(o==null?void 0:o.pendingChildren)??[];return{name:r,id:e,runId:s,startTime:a,endTime:i,executionTime:w,status:f,historyEvents:g,historySizeBytes:c,searchAttributes:t,memo:n,url:x,taskQueue:I,mostRecentWorkerVersionStamp:G,pendingActivities:M,pendingChildren:X,parentNamespaceId:_,parent:Y,stateTransitionCount:H,isRunning:m,defaultWorkflowTaskTimeout:J,get canBeTerminated(){return m&&io()}}},L=o=>(o.executions||[]).map(t=>A({workflowExecutionInfo:t})),po=(o,t)=>{var n;return((n=o==null?void 0:o.visibilityStore)==null?void 0:n.includes("elasticsearch"))||Q(t,"1.19")},xo=o=>{var t;return(t=o==null?void 0:o.visibilityStore)==null?void 0:t.includes("elasticsearch")},S=u([y],([o])=>{var t,n,r;return(r=(n=(t=o.data)==null?void 0:t.settings)==null?void 0:n.runtimeEnvironment)==null?void 0:r.isCloud}),D=u([U,W,S],([o,t,n])=>po(o,t)||n);u([U,S],([o,t])=>xo(o)||t);const Io={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},go=["workflowId","workflowType","timeRange","executionStatus","closeTime"],bo=o=>!(o===null||o===void 0||o===""||typeof o=="string"&&o==="undefined"),Wo=o=>{if(typeof o!="string")return!1;for(const t of go)if(t===o)return!0;return!1},To=(o,t,n)=>{const r=Io[o];return t==="All"?"":lo(t)||wo(t)?n||E(D)?`${r} > "${q(t)}"`:`${r} BETWEEN "${q(t)}" AND "${mo()}"`:`${r}="${t}"`},Ao=(o,t)=>Object.entries(o).map(([n,r])=>{if(Wo(n)&&bo(r))return To(n,r,t)}).filter(Boolean),So=(o,t=!1)=>Ao(o,t).join(" and ");function Co(o){console.error("Unhandled action:",o)}const Po=(o,t)=>{let n;switch(o){case p.Cancel:n=h("workflows.canceled");break;case p.Reset:n=h("workflows.reset");break;case p.Terminate:n=h("workflows.terminated");break;default:Co(o)}return t?h("workflows.workflow-action-reason-placeholder-with-email",{action:n,email:t}):h("workflows.workflow-action-reason-placeholder",{action:n})},j=({action:o,reason:t,email:n})=>{const r=Po(o,n);return t?[t.trim(),r].join(" "):r},C=async(o,t,n=fetch,r=!1)=>{const e=t.query||So(t,r);let s;try{s=decodeURIComponent(e)}catch{s=e}const a=r?"workflows.archived":"workflows";let i="";const w=c=>{var x,I;no(c),(x=c==null?void 0:c.body)!=null&&x.message||c!=null&&c.status?i=((I=c==null?void 0:c.body)==null?void 0:I.message)??`Error fetching workflows: ${c.status}: ${c.statusText}`:i="Error fetching workflows: Server failed to respond"},f=d(a,{namespace:o}),{executions:m,nextPageToken:g}=await l(f,{params:{query:s},onError:w,handleError:w,request:n})??{executions:[],nextPageToken:""};return{workflows:L({executions:m}),nextPageToken:String(g),error:i}},ft=async({namespace:o,workflowId:t,url:n},r=fetch)=>{var m;const e="workflows",s=n??oo(o),a=to(e,{namespace:o}),i=s+a,{executions:w}=await l(i,{params:{query:`WorkflowId="${t}"`,pageSize:"1"},request:r})??{executions:[]},f=(m=L({executions:w}))==null?void 0:m[0];return{runId:f==null?void 0:f.runId}},ut=async(o,t=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const s=i=>{(ro(i)||eo(i))&&(e=!1)},a=d(r,{namespace:o});return await l(a,{params:{pageSize:"1"},onError:s,handleError:s,request:t}),{authorized:e}},lt=async(o,t,n=fetch)=>C(o,t,n,!0);async function wt(o,t=fetch){const n=d("workflow",{namespace:o.namespace,workflowId:o.workflowId});return l(n,{request:t,notifyOnError:!1,params:{"execution.runId":o.runId}}).then(r=>({workflow:A(r)})).catch(r=>({error:r}))}async function dt({workflow:o,namespace:t,reason:n}){const r=d("workflow.terminate",{namespace:t,workflowId:o.id}),e=E(N).email,s=j({reason:n,action:p.Terminate,email:e});return await l(r,{options:{method:"POST",body:T({reason:s,...e&&{identity:e}})},notifyOnError:!1,params:{"execution.runId":o.runId}})}async function mt({namespace:o,workflow:{id:t,runId:n}},r=fetch){const e=d("workflow.cancel",{namespace:o,workflowId:t});return l(e,{request:r,notifyOnError:!1,options:{method:"POST"},params:{"execution.runId":n}})}async function kt({namespace:o,workflow:{id:t,runId:n},name:r,input:e}){const s=d("workflow.signal",{namespace:o,workflowId:t,signalName:r}),a=await uo(e),i=E(y).data.settings,w=(i==null?void 0:i.version)??"",m=Q(w,"2.22")?{signalName:r,workflowExecution:{workflowId:t,runId:n},input:{payloads:a}}:{signalName:r,input:{payloads:a},params:{"execution.runId":n}};return l(s,{notifyOnError:!1,options:{method:"POST",body:T(m)}})}async function yt({namespace:o,workflow:{id:t,runId:n},eventId:r,reason:e,reapplyType:s}){const a=d("workflow.reset",{namespace:o,workflowId:t}),i=E(N).email,w=j({action:p.Reset,reason:e,email:i}),f={workflowExecution:{workflowId:t,runId:n},workflowTaskFinishEventId:r,resetReapplyType:s,requestId:ko(),reason:w};return l(a,{notifyOnError:!1,options:{method:"POST",body:T(f)},params:{"execution.runId":n}})}async function ht(o,t=fetch){const n=e=>{console.error(e)},r=d("workflow",o);return l(r,{request:t,onError:n,handleError:n}).then(A)}async function Et(o,t,n){if(!E(K))return[];try{let r=`ParentWorkflowId = "${t}"`;n&&(r+=` AND ParentRunId = "${n}"`);const{workflows:e}=await C(o,{query:r});return e}catch{return[]}}const Ro=300,vo=async(o,t,n)=>{t.set(!0);try{await n()}catch(r){console.error(r)}o.set(!1),setTimeout(()=>{t.set(!1)},Ro)},$o=u([y],([o])=>{var t,n,r;return!!((r=(n=(t=o.data)==null?void 0:t.systemInfo)==null?void 0:n.capabilities)!=null&&r.countGroupByExecutionStatus)}),pt=u([y,W],([o,t])=>{var e,s,a;const n=z("1.23.0",t),r=!!((a=(s=(e=o.data)==null?void 0:e.systemInfo)==null?void 0:s.capabilities)!=null&&a.prefixSearch);return n||r}),Oo=k(0),Bo=u([y],([o])=>{var t,n;return(n=(t=o.data)==null?void 0:t.settings)==null?void 0:n.hideWorkflowQueryErrors}),K=u([S,W],([o,t])=>o||z("1.23.0",t)),Fo=u([y],([o])=>o.url.searchParams.get("query")),Vo=u([Fo,K,fo],([o,t,n])=>t&&!n?o?`ParentWorkflowId is NULL AND ${o}`:"ParentWorkflowId is NULL":o),qo=u([y],([o])=>o.params.namespace),No=u([qo,Vo,Oo,D,Bo],([o,t,n,r,e])=>({namespace:o,query:t,refresh:n,supportsAdvancedVisibility:r,hideWorkflowQueryErrors:e})),Qo=o=>{Do.set({...o,newCount:0})},zo=o=>No.subscribe(({namespace:t,query:n,supportsAdvancedVisibility:r,hideWorkflowQueryErrors:e})=>{vo(Lo,Uo,async()=>{const{workflows:s,error:a}=await C(t,{query:n});if(o(s),r&&!E($o)){const i=await yo(t,n);Qo(i)}a?e?b.set(h("workflows.workflows-error-querying")):b.set(a):b.set("")})}),xt=k(""),Uo=k(!0),Lo=k(!0),Do=k({count:0,newCount:0}),b=k(""),It=Z([],zo),gt=k("");export{b as A,ut as a,Et as b,mt as c,ct as d,lt as e,ft as f,So as g,xt as h,yt as i,wt as j,ht as k,$o as l,gt as m,Po as n,S as o,D as p,Vo as q,Oo as r,kt as s,dt as t,pt as u,K as v,Do as w,It as x,Lo as y,Uo as z}; +import{d as u,r as Z,w as k}from"./entry.Yz1YyohR.js";import{p as y}from"./stores.meYYndLY.js";import{t as h}from"./translate.HrioCK44.js";import{v as V,C as E}from"./scheduler.AWtTlMeO.js";import{r as d,a as l,b as oo,p as to,c as no,d as ro,e as eo}from"./route-for-api.n9XkRS8h.js";import{A as p}from"./workflow-actions.-K4W_iAA.js";import{h as so}from"./decode-payload.QBGHBsqc.js";import{f as ao}from"./screaming-enums.NBZzZ07O.js";import{w as io}from"./write-actions-are-allowed.qnSR79t1.js";import{s as co}from"./simplify-attributes.H9OUGjUS.js";import{a as N}from"./auth-user.13zVs2Gb.js";import{i as Q,m as z}from"./version-check.HLZIw2tw.js";import{c as U,t as W}from"./versions.l3g3WUor.js";import{s as fo}from"./filters.cUjieRhB.js";import{e as uo}from"./encode-payload.mYRoJRmH.js";import{s as T}from"./parse-with-big-int.e3oI4SEy.js";import{i as lo,d as wo,e as q,h as mo}from"./format-time.6T8OwT4v.js";import{v as ko}from"./toaster.tT6uD5UN.js";const yo=async(o,t,n=fetch)=>{let r=0;try{const e=d("workflows.count",{namespace:o}),s=await l(e,{params:t?{query:t}:{},onError:V,handleError:V,request:n});r=parseInt((s==null?void 0:s.count)||"0")}catch{}return{count:r}},ct=async({namespace:o,query:t})=>{const n="GROUP BY ExecutionStatus",r=d("workflows.count",{namespace:o}),{count:e,groups:s}=await l(r,{params:{query:t?`${t} ${n}`:`${n}`},notifyOnError:!1});return{count:e??"0",groups:s}},ho=(o=[])=>o.map(t=>{const n=co(t,!0),r=t.activityId;return{...n,id:r}}),Eo=o=>!o||!o.indexedFields?{}:{indexedFields:Object.entries(o.indexedFields).reduce((n,[r,e])=>({...n,[r]:so(e)}),{})},A=o=>{var P,R,v,$,O,B,F;const t=Eo(o.workflowExecutionInfo.searchAttributes),n=o.workflowExecutionInfo.memo,r=o.workflowExecutionInfo.type.name,e=o.workflowExecutionInfo.execution.workflowId,s=o.workflowExecutionInfo.execution.runId,a=o.workflowExecutionInfo.startTime,i=o.workflowExecutionInfo.closeTime,w=o.workflowExecutionInfo.executionTime,f=ao(o.workflowExecutionInfo.status),m=f==="Running",g=o.workflowExecutionInfo.historyLength,c=o.workflowExecutionInfo.historySizeBytes,x=`/workflows/${e}/${s}`,I=((R=(P=o==null?void 0:o.executionConfig)==null?void 0:P.taskQueue)==null?void 0:R.name)||((v=o==null?void 0:o.workflowExecutionInfo)==null?void 0:v.taskQueue),G=($=o==null?void 0:o.workflowExecutionInfo)==null?void 0:$.mostRecentWorkerVersionStamp,_=(O=o==null?void 0:o.workflowExecutionInfo)==null?void 0:O.parentNamespaceId,Y=(B=o==null?void 0:o.workflowExecutionInfo)==null?void 0:B.parentExecution,H=o.workflowExecutionInfo.stateTransitionCount,J=(F=o.executionConfig)==null?void 0:F.defaultWorkflowTaskTimeout,M=ho(o.pendingActivities),X=(o==null?void 0:o.pendingChildren)??[];return{name:r,id:e,runId:s,startTime:a,endTime:i,executionTime:w,status:f,historyEvents:g,historySizeBytes:c,searchAttributes:t,memo:n,url:x,taskQueue:I,mostRecentWorkerVersionStamp:G,pendingActivities:M,pendingChildren:X,parentNamespaceId:_,parent:Y,stateTransitionCount:H,isRunning:m,defaultWorkflowTaskTimeout:J,get canBeTerminated(){return m&&io()}}},L=o=>(o.executions||[]).map(t=>A({workflowExecutionInfo:t})),po=(o,t)=>{var n;return((n=o==null?void 0:o.visibilityStore)==null?void 0:n.includes("elasticsearch"))||Q(t,"1.19")},xo=o=>{var t;return(t=o==null?void 0:o.visibilityStore)==null?void 0:t.includes("elasticsearch")},S=u([y],([o])=>{var t,n,r;return(r=(n=(t=o.data)==null?void 0:t.settings)==null?void 0:n.runtimeEnvironment)==null?void 0:r.isCloud}),D=u([U,W,S],([o,t,n])=>po(o,t)||n);u([U,S],([o,t])=>xo(o)||t);const Io={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},go=["workflowId","workflowType","timeRange","executionStatus","closeTime"],bo=o=>!(o===null||o===void 0||o===""||typeof o=="string"&&o==="undefined"),Wo=o=>{if(typeof o!="string")return!1;for(const t of go)if(t===o)return!0;return!1},To=(o,t,n)=>{const r=Io[o];return t==="All"?"":lo(t)||wo(t)?n||E(D)?`${r} > "${q(t)}"`:`${r} BETWEEN "${q(t)}" AND "${mo()}"`:`${r}="${t}"`},Ao=(o,t)=>Object.entries(o).map(([n,r])=>{if(Wo(n)&&bo(r))return To(n,r,t)}).filter(Boolean),So=(o,t=!1)=>Ao(o,t).join(" and ");function Co(o){console.error("Unhandled action:",o)}const Po=(o,t)=>{let n;switch(o){case p.Cancel:n=h("workflows.canceled");break;case p.Reset:n=h("workflows.reset");break;case p.Terminate:n=h("workflows.terminated");break;default:Co(o)}return t?h("workflows.workflow-action-reason-placeholder-with-email",{action:n,email:t}):h("workflows.workflow-action-reason-placeholder",{action:n})},j=({action:o,reason:t,email:n})=>{const r=Po(o,n);return t?[t.trim(),r].join(" "):r},C=async(o,t,n=fetch,r=!1)=>{const e=t.query||So(t,r);let s;try{s=decodeURIComponent(e)}catch{s=e}const a=r?"workflows.archived":"workflows";let i="";const w=c=>{var x,I;no(c),(x=c==null?void 0:c.body)!=null&&x.message||c!=null&&c.status?i=((I=c==null?void 0:c.body)==null?void 0:I.message)??`Error fetching workflows: ${c.status}: ${c.statusText}`:i="Error fetching workflows: Server failed to respond"},f=d(a,{namespace:o}),{executions:m,nextPageToken:g}=await l(f,{params:{query:s},onError:w,handleError:w,request:n})??{executions:[],nextPageToken:""};return{workflows:L({executions:m}),nextPageToken:String(g),error:i}},ft=async({namespace:o,workflowId:t,url:n},r=fetch)=>{var m;const e="workflows",s=n??oo(o),a=to(e,{namespace:o}),i=s+a,{executions:w}=await l(i,{params:{query:`WorkflowId="${t}"`,pageSize:"1"},request:r})??{executions:[]},f=(m=L({executions:w}))==null?void 0:m[0];return{runId:f==null?void 0:f.runId}},ut=async(o,t=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const s=i=>{(ro(i)||eo(i))&&(e=!1)},a=d(r,{namespace:o});return await l(a,{params:{pageSize:"1"},onError:s,handleError:s,request:t}),{authorized:e}},lt=async(o,t,n=fetch)=>C(o,t,n,!0);async function wt(o,t=fetch){const n=d("workflow",{namespace:o.namespace,workflowId:o.workflowId});return l(n,{request:t,notifyOnError:!1,params:{"execution.runId":o.runId}}).then(r=>({workflow:A(r)})).catch(r=>({error:r}))}async function dt({workflow:o,namespace:t,reason:n}){const r=d("workflow.terminate",{namespace:t,workflowId:o.id}),e=E(N).email,s=j({reason:n,action:p.Terminate,email:e});return await l(r,{options:{method:"POST",body:T({reason:s,...e&&{identity:e}})},notifyOnError:!1,params:{"execution.runId":o.runId}})}async function mt({namespace:o,workflow:{id:t,runId:n}},r=fetch){const e=d("workflow.cancel",{namespace:o,workflowId:t});return l(e,{request:r,notifyOnError:!1,options:{method:"POST"},params:{"execution.runId":n}})}async function kt({namespace:o,workflow:{id:t,runId:n},name:r,input:e}){const s=d("workflow.signal",{namespace:o,workflowId:t,signalName:r}),a=await uo(e),i=E(y).data.settings,w=(i==null?void 0:i.version)??"",m=Q(w,"2.22")?{signalName:r,workflowExecution:{workflowId:t,runId:n},input:{payloads:a}}:{signalName:r,input:{payloads:a},params:{"execution.runId":n}};return l(s,{notifyOnError:!1,options:{method:"POST",body:T(m)}})}async function yt({namespace:o,workflow:{id:t,runId:n},eventId:r,reason:e,reapplyType:s}){const a=d("workflow.reset",{namespace:o,workflowId:t}),i=E(N).email,w=j({action:p.Reset,reason:e,email:i}),f={workflowExecution:{workflowId:t,runId:n},workflowTaskFinishEventId:r,resetReapplyType:s,requestId:ko(),reason:w};return l(a,{notifyOnError:!1,options:{method:"POST",body:T(f)},params:{"execution.runId":n}})}async function ht(o,t=fetch){const n=e=>{console.error(e)},r=d("workflow",o);return l(r,{request:t,onError:n,handleError:n}).then(A)}async function Et(o,t,n){if(!E(K))return[];try{let r=`ParentWorkflowId = "${t}"`;n&&(r+=` AND ParentRunId = "${n}"`);const{workflows:e}=await C(o,{query:r});return e}catch{return[]}}const Ro=300,vo=async(o,t,n)=>{t.set(!0);try{await n()}catch(r){console.error(r)}o.set(!1),setTimeout(()=>{t.set(!1)},Ro)},$o=u([y],([o])=>{var t,n,r;return!!((r=(n=(t=o.data)==null?void 0:t.systemInfo)==null?void 0:n.capabilities)!=null&&r.countGroupByExecutionStatus)}),pt=u([y,W],([o,t])=>{var e,s,a;const n=z("1.23.0",t),r=!!((a=(s=(e=o.data)==null?void 0:e.systemInfo)==null?void 0:s.capabilities)!=null&&a.prefixSearch);return n||r}),Oo=k(0),Bo=u([y],([o])=>{var t,n;return(n=(t=o.data)==null?void 0:t.settings)==null?void 0:n.hideWorkflowQueryErrors}),K=u([S,W],([o,t])=>o||z("1.23.0",t)),Fo=u([y],([o])=>o.url.searchParams.get("query")),Vo=u([Fo,K,fo],([o,t,n])=>t&&!n?o?`ParentWorkflowId is NULL AND ${o}`:"ParentWorkflowId is NULL":o),qo=u([y],([o])=>o.params.namespace),No=u([qo,Vo,Oo,D,Bo],([o,t,n,r,e])=>({namespace:o,query:t,refresh:n,supportsAdvancedVisibility:r,hideWorkflowQueryErrors:e})),Qo=o=>{Do.set({...o,newCount:0})},zo=o=>No.subscribe(({namespace:t,query:n,supportsAdvancedVisibility:r,hideWorkflowQueryErrors:e})=>{vo(Lo,Uo,async()=>{const{workflows:s,error:a}=await C(t,{query:n});if(o(s),r&&!E($o)){const i=await yo(t,n);Qo(i)}a?e?b.set(h("workflows.workflows-error-querying")):b.set(a):b.set("")})}),xt=k(""),Uo=k(!0),Lo=k(!0),Do=k({count:0,newCount:0}),b=k(""),It=Z([],zo),gt=k("");export{b as A,ut as a,Et as b,mt as c,ct as d,lt as e,ft as f,So as g,xt as h,yt as i,wt as j,ht as k,$o as l,gt as m,Po as n,S as o,D as p,Vo as q,Oo as r,kt as s,dt as t,pt as u,K as v,Do as w,It as x,Lo as y,Uo as z}; diff --git a/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.BsR296Mf.js b/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.qnSR79t1.js similarity index 55% rename from ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.BsR296Mf.js rename to ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.qnSR79t1.js index 9d910c8c9..e82845aa9 100644 --- a/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.BsR296Mf.js +++ b/ui/assets/local/_app/immutable/chunks/write-actions-are-allowed.qnSR79t1.js @@ -1 +1 @@ -import{C as t}from"./scheduler.AWtTlMeO.js";import{s as e}from"./settings.TuHg1P9A.js";const a=(s=e)=>!t(s).disableWriteActions;export{a as w}; +import{C as t}from"./scheduler.AWtTlMeO.js";import{s as e}from"./settings.oP-XN2ls.js";const a=(s=e)=>!t(s).disableWriteActions;export{a as w}; diff --git a/ui/assets/local/_app/immutable/entry/app.g9vsm_3b.js b/ui/assets/local/_app/immutable/entry/app.FK3demoG.js similarity index 71% rename from ui/assets/local/_app/immutable/entry/app.g9vsm_3b.js rename to ui/assets/local/_app/immutable/entry/app.FK3demoG.js index dc906edd6..34232fff1 100644 --- a/ui/assets/local/_app/immutable/entry/app.g9vsm_3b.js +++ b/ui/assets/local/_app/immutable/entry/app.FK3demoG.js @@ -1,7 +1,7 @@ -import{s as F,a as G,x as u,h as H,k as b,g as v,ad as J,S as K,e as X,b as Y,d as Z,j as T,Q as I,t as x,f as ee,n as te,L as $,ae as h,ac as ne}from"../chunks/scheduler.AWtTlMeO.js";import{S as re,i as ie,b as m,e as R,t as w,g as L,c as E,a as D,m as k,d as g}from"../chunks/index.91lpp7Ff.js";const oe="modulepreload",se=function(a,e){return new URL(a,e).href},N={},p=function(e,n,o){let r=Promise.resolve();if(n&&n.length>0){const l=document.getElementsByTagName("link");r=Promise.all(n.map(t=>{if(t=se(t,o),t in N)return;N[t]=!0;const i=t.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(!!o)for(let d=l.length-1;d>=0;d--){const P=l[d];if(P.href===t&&(!i||P.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${s}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":oe,i||(c.as="script",c.crossOrigin=""),c.href=t,document.head.appendChild(c),i)return new Promise((d,P)=>{c.addEventListener("load",d),c.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${t}`)))})}))}return r.then(()=>e()).catch(l=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=l,window.dispatchEvent(t),!t.defaultPrevented)throw l})},Re={};function ae(a){let e,n,o;var r=a[1][0];function l(t){return{props:{data:t[3],form:t[2]}}}return r&&(e=h(r,l(a)),a[21](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&8&&(s.data=t[3]),i&4&&(s.form=t[2]),i&2&&r!==(r=t[1][0])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[21](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[21](null),e&&g(e,t)}}}function _e(a){let e,n,o;var r=a[1][0];function l(t){return{props:{data:t[3],$$slots:{default:[Ee]},$$scope:{ctx:t}}}}return r&&(e=h(r,l(a)),a[20](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&8&&(s.data=t[3]),i&4194551&&(s.$$scope={dirty:i,ctx:t}),i&2&&r!==(r=t[1][0])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[20](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[20](null),e&&g(e,t)}}}function le(a){let e,n,o;var r=a[1][1];function l(t){return{props:{data:t[4],form:t[2]}}}return r&&(e=h(r,l(a)),a[19](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&16&&(s.data=t[4]),i&4&&(s.form=t[2]),i&2&&r!==(r=t[1][1])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[19](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[19](null),e&&g(e,t)}}}function fe(a){let e,n,o;var r=a[1][1];function l(t){return{props:{data:t[4],$$slots:{default:[he]},$$scope:{ctx:t}}}}return r&&(e=h(r,l(a)),a[18](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&16&&(s.data=t[4]),i&4194535&&(s.$$scope={dirty:i,ctx:t}),i&2&&r!==(r=t[1][1])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[18](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[18](null),e&&g(e,t)}}}function ce(a){let e,n,o;var r=a[1][2];function l(t){return{props:{data:t[5],form:t[2]}}}return r&&(e=h(r,l(a)),a[17](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&32&&(s.data=t[5]),i&4&&(s.form=t[2]),i&2&&r!==(r=t[1][2])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[17](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[17](null),e&&g(e,t)}}}function pe(a){let e,n,o;var r=a[1][2];function l(t){return{props:{data:t[5],$$slots:{default:[de]},$$scope:{ctx:t}}}}return r&&(e=h(r,l(a)),a[16](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&32&&(s.data=t[5]),i&4194503&&(s.$$scope={dirty:i,ctx:t}),i&2&&r!==(r=t[1][2])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[16](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[16](null),e&&g(e,t)}}}function ue(a){let e,n,o;var r=a[1][3];function l(t){return{props:{data:t[6],form:t[2]}}}return r&&(e=h(r,l(a)),a[15](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&64&&(s.data=t[6]),i&4&&(s.form=t[2]),i&2&&r!==(r=t[1][3])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[15](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[15](null),e&&g(e,t)}}}function me(a){let e,n,o;var r=a[1][3];function l(t){return{props:{data:t[6],$$slots:{default:[we]},$$scope:{ctx:t}}}}return r&&(e=h(r,l(a)),a[14](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&64&&(s.data=t[6]),i&4194439&&(s.$$scope={dirty:i,ctx:t}),i&2&&r!==(r=t[1][3])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[14](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[14](null),e&&g(e,t)}}}function we(a){let e,n,o;var r=a[1][4];function l(t){return{props:{data:t[7],form:t[2]}}}return r&&(e=h(r,l(a)),a[13](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&128&&(s.data=t[7]),i&4&&(s.form=t[2]),i&2&&r!==(r=t[1][4])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[13](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[13](null),e&&g(e,t)}}}function de(a){let e,n,o,r;const l=[me,ue],t=[];function i(s,_){return s[1][4]?0:1}return e=i(a),n=t[e]=l[e](a),{c(){n.c(),o=u()},l(s){n.l(s),o=u()},m(s,_){t[e].m(s,_),b(s,o,_),r=!0},p(s,_){let c=e;e=i(s),e===c?t[e].p(s,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,_):(n=t[e]=l[e](s),n.c()),w(n,1),n.m(o.parentNode,o))},i(s){r||(w(n),r=!0)},o(s){m(n),r=!1},d(s){s&&v(o),t[e].d(s)}}}function he(a){let e,n,o,r;const l=[pe,ce],t=[];function i(s,_){return s[1][3]?0:1}return e=i(a),n=t[e]=l[e](a),{c(){n.c(),o=u()},l(s){n.l(s),o=u()},m(s,_){t[e].m(s,_),b(s,o,_),r=!0},p(s,_){let c=e;e=i(s),e===c?t[e].p(s,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,_):(n=t[e]=l[e](s),n.c()),w(n,1),n.m(o.parentNode,o))},i(s){r||(w(n),r=!0)},o(s){m(n),r=!1},d(s){s&&v(o),t[e].d(s)}}}function Ee(a){let e,n,o,r;const l=[fe,le],t=[];function i(s,_){return s[1][2]?0:1}return e=i(a),n=t[e]=l[e](a),{c(){n.c(),o=u()},l(s){n.l(s),o=u()},m(s,_){t[e].m(s,_),b(s,o,_),r=!0},p(s,_){let c=e;e=i(s),e===c?t[e].p(s,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,_):(n=t[e]=l[e](s),n.c()),w(n,1),n.m(o.parentNode,o))},i(s){r||(w(n),r=!0)},o(s){m(n),r=!1},d(s){s&&v(o),t[e].d(s)}}}function y(a){let e,n=a[9]&&S(a);return{c(){e=X("div"),n&&n.c(),this.h()},l(o){e=Y(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=Z(e);n&&n.l(r),r.forEach(v),this.h()},h(){T(e,"id","svelte-announcer"),T(e,"aria-live","assertive"),T(e,"aria-atomic","true"),I(e,"position","absolute"),I(e,"left","0"),I(e,"top","0"),I(e,"clip","rect(0 0 0 0)"),I(e,"clip-path","inset(50%)"),I(e,"overflow","hidden"),I(e,"white-space","nowrap"),I(e,"width","1px"),I(e,"height","1px")},m(o,r){b(o,e,r),n&&n.m(e,null)},p(o,r){o[9]?n?n.p(o,r):(n=S(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&v(e),n&&n.d()}}}function S(a){let e;return{c(){e=x(a[10])},l(n){e=ee(n,a[10])},m(n,o){b(n,e,o)},p(n,o){o&1024&&te(e,n[10])},d(n){n&&v(e)}}}function ke(a){let e,n,o,r,l;const t=[_e,ae],i=[];function s(c,d){return c[1][1]?0:1}e=s(a),n=i[e]=t[e](a);let _=a[8]&&y(a);return{c(){n.c(),o=G(),_&&_.c(),r=u()},l(c){n.l(c),o=H(c),_&&_.l(c),r=u()},m(c,d){i[e].m(c,d),b(c,o,d),_&&_.m(c,d),b(c,r,d),l=!0},p(c,[d]){let P=e;e=s(c),e===P?i[e].p(c,d):(L(),m(i[P],1,1,()=>{i[P]=null}),R(),n=i[e],n?n.p(c,d):(n=i[e]=t[e](c),n.c()),w(n,1),n.m(o.parentNode,o)),c[8]?_?_.p(c,d):(_=y(c),_.c(),_.m(r.parentNode,r)):_&&(_.d(1),_=null)},i(c){l||(w(n),l=!0)},o(c){m(n),l=!1},d(c){c&&(v(o),v(r)),i[e].d(c),_&&_.d(c)}}}function ge(a,e,n){let{stores:o}=e,{page:r}=e,{constructors:l}=e,{components:t=[]}=e,{form:i}=e,{data_0:s=null}=e,{data_1:_=null}=e,{data_2:c=null}=e,{data_3:d=null}=e,{data_4:P=null}=e;J(o.page.notify);let O=!1,V=!1,A=null;K(()=>{const f=o.page.subscribe(()=>{O&&(n(9,V=!0),ne().then(()=>{n(10,A=document.title||"untitled page")}))});return n(8,O=!0),f});function q(f){$[f?"unshift":"push"](()=>{t[4]=f,n(0,t)})}function j(f){$[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function C(f){$[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function B(f){$[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function U(f){$[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function M(f){$[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function Q(f){$[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function W(f){$[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function z(f){$[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(11,o=f.stores),"page"in f&&n(12,r=f.page),"constructors"in f&&n(1,l=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,i=f.form),"data_0"in f&&n(3,s=f.data_0),"data_1"in f&&n(4,_=f.data_1),"data_2"in f&&n(5,c=f.data_2),"data_3"in f&&n(6,d=f.data_3),"data_4"in f&&n(7,P=f.data_4)},a.$$.update=()=>{a.$$.dirty&6144&&o.page.set(r)},[t,l,i,s,_,c,d,P,O,V,A,o,r,q,j,C,B,U,M,Q,W,z]}class Le extends re{constructor(e){super(),ie(this,e,ge,ke,F,{stores:11,page:12,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6,data_4:7})}}const Pe=[()=>p(()=>import("../nodes/0.2vhPJuKu.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>p(()=>import("../nodes/1.ApbLWwic.js"),__vite__mapDeps([5,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),()=>p(()=>import("../nodes/2.8E6NZGkp.js"),__vite__mapDeps([21,22,9,23,24,25,3,26,7,8,19,14,27,17,18,28,29,6,30,31,32,33,34,35,4,36,37,12,15,38,39,1,40,41,42,43,44,13,45,46,11,16,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,10,70,71,72,73,74,75,76,77,20]),import.meta.url),()=>p(()=>import("../nodes/3.aVMHetlR.js"),__vite__mapDeps([78,3,4,6,7,8,9,79]),import.meta.url),()=>p(()=>import("../nodes/4.XbikTRsG.js"),__vite__mapDeps([80,3,4,81,7,8,9,44,12,43,42,15,13,14,37,39,1,82,17,72,68,69,83,6,25,26,19,35,24,84,67,33,75,85,86,31,27,28,29,87,88]),import.meta.url),()=>p(()=>import("../nodes/5.a5nE4ZdM.js"),__vite__mapDeps([89,23,24,25,3,26,7,8,9,19,14,27,17,18,28,29,6,33,90,2,4]),import.meta.url),()=>p(()=>import("../nodes/6.kGYpZHre.js"),__vite__mapDeps([91,3,4]),import.meta.url),()=>p(()=>import("../nodes/7.zIGUKP4j.js"),__vite__mapDeps([92,3,4,6,7,8,9,36,37,12,15,38,39,1,35,24,19,14,26,17,40,41,42,43,44,13,45,46,11,16,47,27,48,49,50,93,23,25,18,28,29,54,83,33,94,56,85,67,68,57,55,74,75,95,61,51,96,52,62,97,98,58,99,63,64,65,100,101,71,72,73,102,103,104,66,105,59,60,106,107,108,109,110,111,112,113,114,115,116,31,117,118,84,32]),import.meta.url),()=>p(()=>import("../nodes/8._sNGkH5R.js"),__vite__mapDeps([119,22,9,34,23,24,25,3,26,7,8,19,14,27,17,18,28,29,6,4,20]),import.meta.url),()=>p(()=>import("../nodes/9.FcdYDcar.js"),__vite__mapDeps([120,22,9,28,24,8,29,3,4,7,96,52,15,39,1,93,6,23,25,26,19,14,27,17,18,54,83,35,33,94,56,85,67,68,57,55,74,75,95,61,31]),import.meta.url),()=>p(()=>import("../nodes/10.RbsWOtwW.js"),__vite__mapDeps([121,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/11.4_0AQG37.js"),__vite__mapDeps([122,3,4,81,7,8,9,44,12,43,42,15,13,14,37,39,1,82,17,72,68,69,83,6,25,26,19,35,24,84,67,33,75,85,86,31,27,28,29,102,103,104,64,11,16]),import.meta.url),()=>p(()=>import("../nodes/12.104k1R2E.js"),__vite__mapDeps([123,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/13.ugyaFAaP.js"),__vite__mapDeps([124,3,4,62,125,126,13,12,14,96,52,15,39,1,45,6,7,8,9,11,16,82,17,72,68,69,83,25,26,19,35,24,73,67,127,28,29,102,103,104,64,114,128,129,130,131,132,41,42,43,44,46,66,133,100,101,37,75,74,55,56,57,134,135,136,137,138,139,140,141,86]),import.meta.url),()=>p(()=>import("../nodes/14.HcFjX-G_.js"),__vite__mapDeps([142,3,4,62,125,126,13,12,14,96,52,15,39,1,45,6,7,8,9,11,16,82,17,72,68,69,83,25,26,19,35,24,73,67,127,28,29,102,103,104,64,114,128,129,130,131,132,41,42,43,44,46,66,133,100,101,37,75,74,55,56,57,134,135,136,137,138,139,140,141,86]),import.meta.url),()=>p(()=>import("../nodes/15.hy0SjlLF.js"),__vite__mapDeps([143,3,4,144,102,12,103,13,14,15,104,64,7,8,9,19,37,101,39,1,84,25,26,35,24,17,67,68,72,33,75,85,71,6,40,29,73,74,128,83,145,86]),import.meta.url),()=>p(()=>import("../nodes/16.XCVnTCEV.js"),__vite__mapDeps([146,3,4,62,6,7,8,9,79,126,13,12,14,11,15,16,135,136,133,137,37,138,139,140,141,129,130,131,132,147,39,1,31,26,19,28,24,29]),import.meta.url),()=>p(()=>import("../nodes/17.KlqrQtkW.js"),__vite__mapDeps([148,30,31,7,3,8,9,26,19,14,27,32,23,24,25,17,18,28,29,6,33,4,62,79,42,43,15,149,150,129,12,130,131,132,147,39,1,90,56,55,68]),import.meta.url),()=>p(()=>import("../nodes/18.VdgEwd3V.js"),__vite__mapDeps([151,30,31,7,3,8,9,26,19,14,27,32,23,24,25,17,18,28,29,6,33,93,39,1,54,83,35,94,56,85,67,68,57,55,74,75,95,61,4,62,79,107,45,43,13,12,108,109,15,110,152,64,153,11,16,147,133,129,130,131,132,102,103,104,126,135,136,137,37,138,139,140,141,44,42,63,58,65,154,155]),import.meta.url),()=>p(()=>import("../nodes/19.Nq5hyloW.js"),__vite__mapDeps([156,3,4,6,7,8,9,79,39,1,157,62,42,43,15,126,13,12,14,11,16,129,130,131,132,147,67,26,19,68,17,28,24,29,112,113,96,52,53,54,25,55,56,23,27,18,33,57]),import.meta.url),()=>p(()=>import("../nodes/20.ni1RRNO2.js"),__vite__mapDeps([158,3,4,6,7,8,9,79,39,1,157,67,26,19,14,68,17,42,43,15,38,37,12,59,13,60,53,54,25,55,56,23,24,27,18,28,29,33,57,149,150,11,16,159]),import.meta.url),()=>p(()=>import("../nodes/21.o9b-F3YG.js"),__vite__mapDeps([160,3,4,6,7,8,9,79,62,107,45,43,13,12,14,39,1,108,109,15,110,11,16,147,67,26,19,68,17,28,24,29,129,130,131,132,154,112,113,63,37,64,58,44,42,65,136,133,137,138,161,139,140,126,162,23,25,27,18,106,94,56,163]),import.meta.url),()=>p(()=>import("../nodes/22.fu00_wPl.js"),__vite__mapDeps([164,3,4,6,7,8,9,79,157,62,47,12,42,43,15,13,14,27,39,1,165,102,103,104,64,19,162,23,24,25,26,17,18,28,29,95,83,35,61,166,128,126,11,16,93,54,33,94,56,85,67,68,57,55,74,75,107,45,108,109,110,167,139,140,41,44,46,168,63,37,58,65,87,88,169,96,52,98,99,48,49,105,106,170]),import.meta.url),()=>p(()=>import("../nodes/23.lMGuCuqX.js"),__vite__mapDeps([171,3,4,6,7,8,9,79,157,172,63,12,13,14,37,15,64,58,44,43,42,65,115,17,116,39,1,62,168,87,88,165,102,103,104,19,162,23,24,25,26,27,18,28,29,95,83,35,61,173,41,45,46,174,112,113,11,16,96,52,94,56,128,175]),import.meta.url),()=>p(()=>import("../nodes/24.ms96NWnV.js"),__vite__mapDeps([176,3,4,6,7,8,9,79,172,63,12,13,14,37,15,64,58,44,43,42,65,115,17,116,39,1,62,168,87,88,165,102,103,104,19,162,23,24,25,26,27,18,28,29,95,83,35,61,173,41,45,46,174,112,113,11,16,96,52,94,56,128,175]),import.meta.url),()=>p(()=>import("../nodes/25.ATBozL9V.js"),__vite__mapDeps([177,3,4]),import.meta.url),()=>p(()=>import("../nodes/26.9hU7O70x.js"),__vite__mapDeps([178,3,4,6,7,8,9,79,157,111,13,12,14,15,39,1,23,24,25,26,19,27,17,18,28,29,179,62,42,43,126,129,130,131,132,147,67,68,161,139,140,180]),import.meta.url),()=>p(()=>import("../nodes/27.qCrv_N8I.js"),__vite__mapDeps([181,3,4,6,7,8,9,79,98,12,44,43,42,15,13,14,41,45,46,58,99,39,1,167,68,17,62,139,140,93,23,24,25,26,19,27,18,28,29,54,83,35,33,94,56,85,67,57,55,74,75,95,61,107,108,109,110,168,63,37,64,65,87,88,169,53,48,49,97,136,133,137,138,90,154,152,153,38,66,173,174,100,101,31,112,113,11,16,96,52,130,131,106,59,60,182]),import.meta.url),()=>p(()=>import("../nodes/28.iaXi6u02.js"),__vite__mapDeps([183,22,9,93,7,3,8,6,39,1,23,24,25,26,19,14,27,17,18,28,29,54,83,35,33,94,56,85,67,68,57,55,74,75,95,61]),import.meta.url),()=>p(()=>import("../nodes/29.o1fBAjvZ.js"),__vite__mapDeps([184,22,9,3,4]),import.meta.url),()=>p(()=>import("../nodes/30.FIXQiZBL.js"),__vite__mapDeps([185,3,4,6,7,8,9,79,39,1,186,51,26,19,14,157,112,12,13,15,113,44,43,42,102,103,104,64,126,11,16,96,52,187,83,25,35,24,17,23,27,18,28,29,40]),import.meta.url),()=>p(()=>import("../nodes/31.x1w325Z1.js"),__vite__mapDeps([188,3,4,6,7,8,9,79,51,26,19,14,39,1,62,100,12,13,101,37,15,75,70,17,71,25,40,29,72,73,74,44,43,42,76,55,56,57,127,67,68,69,82,83,35,24,102,103,104,64,128,157,118,84,33,85,32,23,27,18,28,93,54,94,95,61,11,16,189,114,59,60,112,113,45,98,41,46,58,99,87,88,38,190,108,109,96,52,191,166,47,125,126,129,130,131,132,66,133,134,135,136,137,138,139,140,141,144,145,192]),import.meta.url),()=>p(()=>import("../nodes/32.bBV07h0s.js"),__vite__mapDeps([193,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/33.wAnoViLZ.js"),__vite__mapDeps([194,3,4,62,6,7,8,9,125,126,13,12,14,96,52,15,39,1,45,11,16,82,17,72,68,69,83,25,26,19,35,24,73,67,127,28,29,102,103,104,64,114,128,129,130,131,132,41,42,43,44,46,66,133,100,101,37,75,74,55,56,57,134,190,108,109,87,88,40,191,118,84,33,85,71,32,23,27,18,117]),import.meta.url),()=>p(()=>import("../nodes/34.8Yqdtq11.js"),__vite__mapDeps([195,3,4,62,6,7,8,9,125,126,13,12,14,96,52,15,39,1,45,11,16,82,17,72,68,69,83,25,26,19,35,24,73,67,127,28,29,102,103,104,64,114,128,129,130,131,132,41,42,43,44,46,66,133,100,101,37,75,74,55,56,57,134,118,84,33,85,71,40,32,23,27,18]),import.meta.url),()=>p(()=>import("../nodes/35.bBV07h0s.js"),__vite__mapDeps([196,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/36.bBV07h0s.js"),__vite__mapDeps([197,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/37.phq4lOqp.js"),__vite__mapDeps([198,3,4,6,7,8,9,79,39,1,186,51,26,19,14,128,25,83,35,24,17,102,12,103,13,15,104,64,40]),import.meta.url),()=>p(()=>import("../nodes/38.C5WasskW.js"),__vite__mapDeps([199,3,4,6,7,8,9,79,39,1,186,51,26,19,14,62,42,43,15,102,12,103,13,104,64,126,11,16,129,130,131,132,147,67,68,17,40,127,69,82,72,83,25,35,24,189,200]),import.meta.url),()=>p(()=>import("../nodes/39.FGUIXGjR.js"),__vite__mapDeps([201,3,4,6,7,8,9,79,39,1,186,51,26,19,14,157,62,44,12,43,42,15,13,102,103,104,64,126,96,52,137,37,138,38,187,83,25,35,24,17,23,27,18,28,29]),import.meta.url),()=>p(()=>import("../nodes/40.spEwuMVa.js"),__vite__mapDeps([202,3,4,6,7,8,9,79,62,11,12,13,14,15,16,135,136,133,137,37,138,139,140,141,129,130,131,132,147,39,1,28,24,29,107,45,43,108,109,110,93,23,25,26,19,27,17,18,54,83,35,33,94,56,85,67,68,57,55,74,75,95,61,71,40,72,73,31,117,114,64,103,104,186,51]),import.meta.url),()=>p(()=>import("../nodes/41.tYwdRkO5.js"),__vite__mapDeps([203,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/42.BHggNWLL.js"),__vite__mapDeps([204,3,4,6,7,8,9,79,45,112,12,13,14,15,113,39,1,40,26,19,111,23,24,25,27,17,18,28,29,186,51,179,157,62,42,43,126,129,130,131,132,147,67,68,161,139,140,180]),import.meta.url),()=>p(()=>import("../nodes/43.kAdfl_j7.js"),__vite__mapDeps([205,3,4,62,7,8,9,6,79,126,13,12,14,63,37,15,64,58,44,43,42,65,39,1,93,23,24,25,26,19,27,17,18,28,29,54,83,35,33,94,56,85,67,68,57,55,74,75,95,61,31,206]),import.meta.url),()=>p(()=>import("../nodes/44.g5bOt9yj.js"),__vite__mapDeps([207,3,4,6,7,8,9,208,13,12,14,209,79,44,43,42,15,28,24,29]),import.meta.url),()=>p(()=>import("../nodes/45.g5bOt9yj.js"),__vite__mapDeps([210,3,4,6,7,8,9,208,13,12,14,209,79,44,43,42,15,28,24,29]),import.meta.url)],Ie=[],$e={"/(app)":[9,[2]],"/(app)/import":[10,[2,3]],"/(app)/import/events":[11,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[12,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[13,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[15,[2,3,4]],"/(login)/login":[44,[8]],"/(app)/namespaces":[16,[2]],"/(app)/namespaces/[namespace]":[17,[2,5]],"/(app)/namespaces/[namespace]/archival":[18,[2,5]],"/(app)/namespaces/[namespace]/batch-operations":[19,[2,5]],"/(app)/namespaces/[namespace]/batch-operations/[jobId]":[20,[2,5]],"/(app)/namespaces/[namespace]/schedules":[21,[2,5]],"/(app)/namespaces/[namespace]/schedules/create":[24,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[22,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[23,[2,5]],"/(app)/namespaces/[namespace]/task-queues":[25,[2,5,6]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[26,[2,5,6]],"/(app)/namespaces/[namespace]/workflows":[27,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[28,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[29,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/call-stack":[30,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[31,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[32,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/event-groups/[id]":[33,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/events/[id]":[34,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[35,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[36,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/metadata":[37,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[38,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[39,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/relationships":[40,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[41,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[42,[2,5,7]],"/(app)/select-namespace":[43,[2]],"/(login)/signin":[45,[8]]},De={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{$e as dictionary,De as hooks,Re as matchers,Pe as nodes,Le as root,Ie as server_loads}; +import{s as F,a as G,x as u,h as H,k as b,g as v,ad as J,S as K,e as X,b as Y,d as Z,j as T,Q as I,t as x,f as ee,n as te,L as $,ae as h,ac as ne}from"../chunks/scheduler.AWtTlMeO.js";import{S as re,i as ie,b as m,e as R,t as w,g as L,c as E,a as D,m as k,d as g}from"../chunks/index.91lpp7Ff.js";const oe="modulepreload",se=function(a,e){return new URL(a,e).href},N={},p=function(e,n,o){let r=Promise.resolve();if(n&&n.length>0){const l=document.getElementsByTagName("link");r=Promise.all(n.map(t=>{if(t=se(t,o),t in N)return;N[t]=!0;const i=t.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(!!o)for(let d=l.length-1;d>=0;d--){const P=l[d];if(P.href===t&&(!i||P.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${s}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":oe,i||(c.as="script",c.crossOrigin=""),c.href=t,document.head.appendChild(c),i)return new Promise((d,P)=>{c.addEventListener("load",d),c.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${t}`)))})}))}return r.then(()=>e()).catch(l=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=l,window.dispatchEvent(t),!t.defaultPrevented)throw l})},Re={};function ae(a){let e,n,o;var r=a[1][0];function l(t){return{props:{data:t[3],form:t[2]}}}return r&&(e=h(r,l(a)),a[21](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&8&&(s.data=t[3]),i&4&&(s.form=t[2]),i&2&&r!==(r=t[1][0])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[21](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[21](null),e&&g(e,t)}}}function _e(a){let e,n,o;var r=a[1][0];function l(t){return{props:{data:t[3],$$slots:{default:[Ee]},$$scope:{ctx:t}}}}return r&&(e=h(r,l(a)),a[20](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&8&&(s.data=t[3]),i&4194551&&(s.$$scope={dirty:i,ctx:t}),i&2&&r!==(r=t[1][0])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[20](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[20](null),e&&g(e,t)}}}function le(a){let e,n,o;var r=a[1][1];function l(t){return{props:{data:t[4],form:t[2]}}}return r&&(e=h(r,l(a)),a[19](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&16&&(s.data=t[4]),i&4&&(s.form=t[2]),i&2&&r!==(r=t[1][1])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[19](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[19](null),e&&g(e,t)}}}function fe(a){let e,n,o;var r=a[1][1];function l(t){return{props:{data:t[4],$$slots:{default:[he]},$$scope:{ctx:t}}}}return r&&(e=h(r,l(a)),a[18](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&16&&(s.data=t[4]),i&4194535&&(s.$$scope={dirty:i,ctx:t}),i&2&&r!==(r=t[1][1])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[18](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[18](null),e&&g(e,t)}}}function ce(a){let e,n,o;var r=a[1][2];function l(t){return{props:{data:t[5],form:t[2]}}}return r&&(e=h(r,l(a)),a[17](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&32&&(s.data=t[5]),i&4&&(s.form=t[2]),i&2&&r!==(r=t[1][2])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[17](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[17](null),e&&g(e,t)}}}function pe(a){let e,n,o;var r=a[1][2];function l(t){return{props:{data:t[5],$$slots:{default:[de]},$$scope:{ctx:t}}}}return r&&(e=h(r,l(a)),a[16](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&32&&(s.data=t[5]),i&4194503&&(s.$$scope={dirty:i,ctx:t}),i&2&&r!==(r=t[1][2])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[16](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[16](null),e&&g(e,t)}}}function ue(a){let e,n,o;var r=a[1][3];function l(t){return{props:{data:t[6],form:t[2]}}}return r&&(e=h(r,l(a)),a[15](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&64&&(s.data=t[6]),i&4&&(s.form=t[2]),i&2&&r!==(r=t[1][3])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[15](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[15](null),e&&g(e,t)}}}function me(a){let e,n,o;var r=a[1][3];function l(t){return{props:{data:t[6],$$slots:{default:[we]},$$scope:{ctx:t}}}}return r&&(e=h(r,l(a)),a[14](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&64&&(s.data=t[6]),i&4194439&&(s.$$scope={dirty:i,ctx:t}),i&2&&r!==(r=t[1][3])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[14](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[14](null),e&&g(e,t)}}}function we(a){let e,n,o;var r=a[1][4];function l(t){return{props:{data:t[7],form:t[2]}}}return r&&(e=h(r,l(a)),a[13](e)),{c(){e&&E(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,i){e&&k(e,t,i),b(t,n,i),o=!0},p(t,i){const s={};if(i&128&&(s.data=t[7]),i&4&&(s.form=t[2]),i&2&&r!==(r=t[1][4])){if(e){L();const _=e;m(_.$$.fragment,1,0,()=>{g(_,1)}),R()}r?(e=h(r,l(t)),t[13](e),E(e.$$.fragment),w(e.$$.fragment,1),k(e,n.parentNode,n)):e=null}else r&&e.$set(s)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&v(n),a[13](null),e&&g(e,t)}}}function de(a){let e,n,o,r;const l=[me,ue],t=[];function i(s,_){return s[1][4]?0:1}return e=i(a),n=t[e]=l[e](a),{c(){n.c(),o=u()},l(s){n.l(s),o=u()},m(s,_){t[e].m(s,_),b(s,o,_),r=!0},p(s,_){let c=e;e=i(s),e===c?t[e].p(s,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,_):(n=t[e]=l[e](s),n.c()),w(n,1),n.m(o.parentNode,o))},i(s){r||(w(n),r=!0)},o(s){m(n),r=!1},d(s){s&&v(o),t[e].d(s)}}}function he(a){let e,n,o,r;const l=[pe,ce],t=[];function i(s,_){return s[1][3]?0:1}return e=i(a),n=t[e]=l[e](a),{c(){n.c(),o=u()},l(s){n.l(s),o=u()},m(s,_){t[e].m(s,_),b(s,o,_),r=!0},p(s,_){let c=e;e=i(s),e===c?t[e].p(s,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,_):(n=t[e]=l[e](s),n.c()),w(n,1),n.m(o.parentNode,o))},i(s){r||(w(n),r=!0)},o(s){m(n),r=!1},d(s){s&&v(o),t[e].d(s)}}}function Ee(a){let e,n,o,r;const l=[fe,le],t=[];function i(s,_){return s[1][2]?0:1}return e=i(a),n=t[e]=l[e](a),{c(){n.c(),o=u()},l(s){n.l(s),o=u()},m(s,_){t[e].m(s,_),b(s,o,_),r=!0},p(s,_){let c=e;e=i(s),e===c?t[e].p(s,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,_):(n=t[e]=l[e](s),n.c()),w(n,1),n.m(o.parentNode,o))},i(s){r||(w(n),r=!0)},o(s){m(n),r=!1},d(s){s&&v(o),t[e].d(s)}}}function y(a){let e,n=a[9]&&S(a);return{c(){e=X("div"),n&&n.c(),this.h()},l(o){e=Y(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=Z(e);n&&n.l(r),r.forEach(v),this.h()},h(){T(e,"id","svelte-announcer"),T(e,"aria-live","assertive"),T(e,"aria-atomic","true"),I(e,"position","absolute"),I(e,"left","0"),I(e,"top","0"),I(e,"clip","rect(0 0 0 0)"),I(e,"clip-path","inset(50%)"),I(e,"overflow","hidden"),I(e,"white-space","nowrap"),I(e,"width","1px"),I(e,"height","1px")},m(o,r){b(o,e,r),n&&n.m(e,null)},p(o,r){o[9]?n?n.p(o,r):(n=S(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&v(e),n&&n.d()}}}function S(a){let e;return{c(){e=x(a[10])},l(n){e=ee(n,a[10])},m(n,o){b(n,e,o)},p(n,o){o&1024&&te(e,n[10])},d(n){n&&v(e)}}}function ke(a){let e,n,o,r,l;const t=[_e,ae],i=[];function s(c,d){return c[1][1]?0:1}e=s(a),n=i[e]=t[e](a);let _=a[8]&&y(a);return{c(){n.c(),o=G(),_&&_.c(),r=u()},l(c){n.l(c),o=H(c),_&&_.l(c),r=u()},m(c,d){i[e].m(c,d),b(c,o,d),_&&_.m(c,d),b(c,r,d),l=!0},p(c,[d]){let P=e;e=s(c),e===P?i[e].p(c,d):(L(),m(i[P],1,1,()=>{i[P]=null}),R(),n=i[e],n?n.p(c,d):(n=i[e]=t[e](c),n.c()),w(n,1),n.m(o.parentNode,o)),c[8]?_?_.p(c,d):(_=y(c),_.c(),_.m(r.parentNode,r)):_&&(_.d(1),_=null)},i(c){l||(w(n),l=!0)},o(c){m(n),l=!1},d(c){c&&(v(o),v(r)),i[e].d(c),_&&_.d(c)}}}function ge(a,e,n){let{stores:o}=e,{page:r}=e,{constructors:l}=e,{components:t=[]}=e,{form:i}=e,{data_0:s=null}=e,{data_1:_=null}=e,{data_2:c=null}=e,{data_3:d=null}=e,{data_4:P=null}=e;J(o.page.notify);let O=!1,V=!1,A=null;K(()=>{const f=o.page.subscribe(()=>{O&&(n(9,V=!0),ne().then(()=>{n(10,A=document.title||"untitled page")}))});return n(8,O=!0),f});function q(f){$[f?"unshift":"push"](()=>{t[4]=f,n(0,t)})}function j(f){$[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function C(f){$[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function B(f){$[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function U(f){$[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function M(f){$[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function Q(f){$[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function W(f){$[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function z(f){$[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(11,o=f.stores),"page"in f&&n(12,r=f.page),"constructors"in f&&n(1,l=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,i=f.form),"data_0"in f&&n(3,s=f.data_0),"data_1"in f&&n(4,_=f.data_1),"data_2"in f&&n(5,c=f.data_2),"data_3"in f&&n(6,d=f.data_3),"data_4"in f&&n(7,P=f.data_4)},a.$$.update=()=>{a.$$.dirty&6144&&o.page.set(r)},[t,l,i,s,_,c,d,P,O,V,A,o,r,q,j,C,B,U,M,Q,W,z]}class Le extends re{constructor(e){super(),ie(this,e,ge,ke,F,{stores:11,page:12,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6,data_4:7})}}const Pe=[()=>p(()=>import("../nodes/0.2vhPJuKu.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>p(()=>import("../nodes/1.fWZlD42q.js"),__vite__mapDeps([5,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),()=>p(()=>import("../nodes/2.3GxReL1_.js"),__vite__mapDeps([21,22,9,23,24,25,3,26,7,8,19,14,27,17,18,28,29,6,30,31,32,33,34,35,4,36,37,12,15,38,39,1,40,41,42,43,44,13,45,46,11,16,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,10,70,71,72,73,74,75,76,77,20]),import.meta.url),()=>p(()=>import("../nodes/3.BvZ-XlFq.js"),__vite__mapDeps([78,3,4,6,7,8,9,79]),import.meta.url),()=>p(()=>import("../nodes/4.u912DJ-e.js"),__vite__mapDeps([80,3,4,81,7,8,9,44,12,43,42,15,13,14,37,39,1,82,17,72,68,69,83,6,25,26,19,35,24,84,67,33,75,85,86,31,27,28,29,87,88]),import.meta.url),()=>p(()=>import("../nodes/5.dRNy49SJ.js"),__vite__mapDeps([89,23,24,25,3,26,7,8,9,19,14,27,17,18,28,29,6,33,90,2,4]),import.meta.url),()=>p(()=>import("../nodes/6.kGYpZHre.js"),__vite__mapDeps([91,3,4]),import.meta.url),()=>p(()=>import("../nodes/7.VV5ALPju.js"),__vite__mapDeps([92,3,4,6,7,8,9,36,37,12,15,38,39,1,35,24,19,14,26,17,40,41,42,43,44,13,45,46,11,16,47,27,48,49,50,93,23,25,18,28,29,54,83,33,94,56,85,67,68,57,55,74,75,95,61,51,96,52,62,97,98,58,99,63,64,65,100,101,71,72,73,102,103,104,66,105,59,60,106,107,108,109,110,111,112,113,114,115,116,31,117,118,84,32]),import.meta.url),()=>p(()=>import("../nodes/8.myC0TmRg.js"),__vite__mapDeps([119,22,9,34,23,24,25,3,26,7,8,19,14,27,17,18,28,29,6,4,20]),import.meta.url),()=>p(()=>import("../nodes/9.vjIoKcdS.js"),__vite__mapDeps([120,22,9,28,24,8,29,3,4,7,96,52,15,39,1,93,6,23,25,26,19,14,27,17,18,54,83,35,33,94,56,85,67,68,57,55,74,75,95,61,31]),import.meta.url),()=>p(()=>import("../nodes/10.zPtobMHY.js"),__vite__mapDeps([121,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/11.vBZhyv3l.js"),__vite__mapDeps([122,3,4,81,7,8,9,44,12,43,42,15,13,14,37,39,1,82,17,72,68,69,83,6,25,26,19,35,24,84,67,33,75,85,86,31,27,28,29,102,103,104,64,11,16]),import.meta.url),()=>p(()=>import("../nodes/12.kmq4AOE_.js"),__vite__mapDeps([123,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/13.mycjrO-Q.js"),__vite__mapDeps([124,3,4,62,125,126,13,12,14,96,52,15,39,1,45,6,7,8,9,11,16,82,17,72,68,69,83,25,26,19,35,24,73,67,127,28,29,102,103,104,64,114,128,129,130,131,132,41,42,43,44,46,66,133,100,101,37,75,74,55,56,57,134,135,136,137,138,139,140,141,86]),import.meta.url),()=>p(()=>import("../nodes/14.hDwSCvzy.js"),__vite__mapDeps([142,3,4,62,125,126,13,12,14,96,52,15,39,1,45,6,7,8,9,11,16,82,17,72,68,69,83,25,26,19,35,24,73,67,127,28,29,102,103,104,64,114,128,129,130,131,132,41,42,43,44,46,66,133,100,101,37,75,74,55,56,57,134,135,136,137,138,139,140,141,86]),import.meta.url),()=>p(()=>import("../nodes/15.r04XV_h7.js"),__vite__mapDeps([143,3,4,144,102,12,103,13,14,15,104,64,7,8,9,19,37,101,39,1,84,25,26,35,24,17,67,68,72,33,75,85,71,6,40,29,73,74,128,83,145,86]),import.meta.url),()=>p(()=>import("../nodes/16.eG7XE6Jw.js"),__vite__mapDeps([146,3,4,62,6,7,8,9,79,126,13,12,14,11,15,16,135,136,133,137,37,138,139,140,141,129,130,131,132,147,39,1,31,26,19,28,24,29]),import.meta.url),()=>p(()=>import("../nodes/17.07C3x6Y5.js"),__vite__mapDeps([148,30,31,7,3,8,9,26,19,14,27,32,23,24,25,17,18,28,29,6,33,4,62,79,42,43,15,149,150,129,12,130,131,132,147,39,1,90,56,55,68]),import.meta.url),()=>p(()=>import("../nodes/18.CrcyizJ0.js"),__vite__mapDeps([151,30,31,7,3,8,9,26,19,14,27,32,23,24,25,17,18,28,29,6,33,93,39,1,54,83,35,94,56,85,67,68,57,55,74,75,95,61,4,62,79,107,45,43,13,12,108,109,15,110,152,64,153,11,16,147,133,129,130,131,132,102,103,104,126,135,136,137,37,138,139,140,141,44,42,63,58,65,154,155]),import.meta.url),()=>p(()=>import("../nodes/19.1mFjElfk.js"),__vite__mapDeps([156,3,4,6,7,8,9,79,39,1,157,62,42,43,15,126,13,12,14,11,16,129,130,131,132,147,67,26,19,68,17,28,24,29,112,113,96,52,53,54,25,55,56,23,27,18,33,57]),import.meta.url),()=>p(()=>import("../nodes/20.jpMcodhL.js"),__vite__mapDeps([158,3,4,6,7,8,9,79,39,1,157,67,26,19,14,68,17,42,43,15,38,37,12,59,13,60,53,54,25,55,56,23,24,27,18,28,29,33,57,149,150,11,16,159]),import.meta.url),()=>p(()=>import("../nodes/21.E7_mKVS6.js"),__vite__mapDeps([160,3,4,6,7,8,9,79,62,107,45,43,13,12,14,39,1,108,109,15,110,11,16,147,67,26,19,68,17,28,24,29,129,130,131,132,154,112,113,63,37,64,58,44,42,65,136,133,137,138,161,139,140,126,162,23,25,27,18,106,94,56,163]),import.meta.url),()=>p(()=>import("../nodes/22.iacr-Cfc.js"),__vite__mapDeps([164,3,4,6,7,8,9,79,157,62,47,12,42,43,15,13,14,27,39,1,165,102,103,104,64,19,162,23,24,25,26,17,18,28,29,95,83,35,61,166,128,126,11,16,93,54,33,94,56,85,67,68,57,55,74,75,107,45,108,109,110,167,139,140,41,44,46,168,63,37,58,65,87,88,169,96,52,98,99,48,49,105,106,170]),import.meta.url),()=>p(()=>import("../nodes/23.hG5-vihJ.js"),__vite__mapDeps([171,3,4,6,7,8,9,79,157,172,63,12,13,14,37,15,64,58,44,43,42,65,115,17,116,39,1,62,168,87,88,165,102,103,104,19,162,23,24,25,26,27,18,28,29,95,83,35,61,173,41,45,46,174,112,113,11,16,96,52,94,56,128,175]),import.meta.url),()=>p(()=>import("../nodes/24.6sUwdPqS.js"),__vite__mapDeps([176,3,4,6,7,8,9,79,172,63,12,13,14,37,15,64,58,44,43,42,65,115,17,116,39,1,62,168,87,88,165,102,103,104,19,162,23,24,25,26,27,18,28,29,95,83,35,61,173,41,45,46,174,112,113,11,16,96,52,94,56,128,175]),import.meta.url),()=>p(()=>import("../nodes/25.ATBozL9V.js"),__vite__mapDeps([177,3,4]),import.meta.url),()=>p(()=>import("../nodes/26.EyCjJdol.js"),__vite__mapDeps([178,3,4,6,7,8,9,79,157,111,13,12,14,15,39,1,23,24,25,26,19,27,17,18,28,29,179,62,42,43,126,129,130,131,132,147,67,68,161,139,140,180]),import.meta.url),()=>p(()=>import("../nodes/27.PhZh_mOK.js"),__vite__mapDeps([181,3,4,6,7,8,9,79,98,12,44,43,42,15,13,14,41,45,46,58,99,39,1,167,68,17,62,139,140,93,23,24,25,26,19,27,18,28,29,54,83,35,33,94,56,85,67,57,55,74,75,95,61,107,108,109,110,168,63,37,64,65,87,88,169,53,48,49,97,136,133,137,138,90,154,152,153,38,66,173,174,100,101,31,112,113,11,16,96,52,130,131,106,59,60,182]),import.meta.url),()=>p(()=>import("../nodes/28.TRCDpiCV.js"),__vite__mapDeps([183,22,9,93,7,3,8,6,39,1,23,24,25,26,19,14,27,17,18,28,29,54,83,35,33,94,56,85,67,68,57,55,74,75,95,61]),import.meta.url),()=>p(()=>import("../nodes/29.o1fBAjvZ.js"),__vite__mapDeps([184,22,9,3,4]),import.meta.url),()=>p(()=>import("../nodes/30.ol-ppb-m.js"),__vite__mapDeps([185,3,4,6,7,8,9,79,39,1,186,51,26,19,14,157,112,12,13,15,113,44,43,42,102,103,104,64,126,11,16,96,52,187,83,25,35,24,17,23,27,18,28,29,40]),import.meta.url),()=>p(()=>import("../nodes/31.1_7NJw_O.js"),__vite__mapDeps([188,3,4,6,7,8,9,79,51,26,19,14,39,1,62,100,12,13,101,37,15,75,70,17,71,25,40,29,72,73,74,44,43,42,76,55,56,57,127,67,68,69,82,83,35,24,102,103,104,64,128,157,118,84,33,85,32,23,27,18,28,93,54,94,95,61,11,16,189,114,59,60,112,113,45,98,41,46,58,99,87,88,38,190,108,109,96,52,191,166,47,125,126,129,130,131,132,66,133,134,135,136,137,138,139,140,141,144,145,192]),import.meta.url),()=>p(()=>import("../nodes/32.C1EwfLqL.js"),__vite__mapDeps([193,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/33.jed8N86a.js"),__vite__mapDeps([194,3,4,62,6,7,8,9,125,126,13,12,14,96,52,15,39,1,45,11,16,82,17,72,68,69,83,25,26,19,35,24,73,67,127,28,29,102,103,104,64,114,128,129,130,131,132,41,42,43,44,46,66,133,100,101,37,75,74,55,56,57,134,190,108,109,87,88,40,191,118,84,33,85,71,32,23,27,18,117]),import.meta.url),()=>p(()=>import("../nodes/34.6KHEf4O9.js"),__vite__mapDeps([195,3,4,62,6,7,8,9,125,126,13,12,14,96,52,15,39,1,45,11,16,82,17,72,68,69,83,25,26,19,35,24,73,67,127,28,29,102,103,104,64,114,128,129,130,131,132,41,42,43,44,46,66,133,100,101,37,75,74,55,56,57,134,118,84,33,85,71,40,32,23,27,18]),import.meta.url),()=>p(()=>import("../nodes/35.C1EwfLqL.js"),__vite__mapDeps([196,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/36.C1EwfLqL.js"),__vite__mapDeps([197,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/37.u36ZbqRz.js"),__vite__mapDeps([198,3,4,6,7,8,9,79,39,1,186,51,26,19,14,128,25,83,35,24,17,102,12,103,13,15,104,64,40]),import.meta.url),()=>p(()=>import("../nodes/38.0LynbGTc.js"),__vite__mapDeps([199,3,4,6,7,8,9,79,39,1,186,51,26,19,14,62,42,43,15,102,12,103,13,104,64,126,11,16,129,130,131,132,147,67,68,17,40,127,69,82,72,83,25,35,24,189,200]),import.meta.url),()=>p(()=>import("../nodes/39.7g-c9VSC.js"),__vite__mapDeps([201,3,4,6,7,8,9,79,39,1,186,51,26,19,14,157,62,44,12,43,42,15,13,102,103,104,64,126,96,52,137,37,138,38,187,83,25,35,24,17,23,27,18,28,29]),import.meta.url),()=>p(()=>import("../nodes/40.LtZD80lm.js"),__vite__mapDeps([202,3,4,6,7,8,9,79,62,11,12,13,14,15,16,135,136,133,137,37,138,139,140,141,129,130,131,132,147,39,1,28,24,29,107,45,43,108,109,110,93,23,25,26,19,27,17,18,54,83,35,33,94,56,85,67,68,57,55,74,75,95,61,71,40,72,73,31,117,114,64,103,104,186,51]),import.meta.url),()=>p(()=>import("../nodes/41.vFViRYrp.js"),__vite__mapDeps([203,22,9,28,24,8,29]),import.meta.url),()=>p(()=>import("../nodes/42.qpSpJp6y.js"),__vite__mapDeps([204,3,4,6,7,8,9,79,45,112,12,13,14,15,113,39,1,40,26,19,111,23,24,25,27,17,18,28,29,186,51,179,157,62,42,43,126,129,130,131,132,147,67,68,161,139,140,180]),import.meta.url),()=>p(()=>import("../nodes/43.kO9onCW9.js"),__vite__mapDeps([205,3,4,62,7,8,9,6,79,126,13,12,14,63,37,15,64,58,44,43,42,65,39,1,93,23,24,25,26,19,27,17,18,28,29,54,83,35,33,94,56,85,67,68,57,55,74,75,95,61,31,206]),import.meta.url),()=>p(()=>import("../nodes/44.klcRT6oT.js"),__vite__mapDeps([207,3,4,6,7,8,9,208,13,12,14,209,79,44,43,42,15,28,24,29]),import.meta.url),()=>p(()=>import("../nodes/45.klcRT6oT.js"),__vite__mapDeps([210,3,4,6,7,8,9,208,13,12,14,209,79,44,43,42,15,28,24,29]),import.meta.url)],Ie=[],$e={"/(app)":[9,[2]],"/(app)/import":[10,[2,3]],"/(app)/import/events":[11,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[12,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[13,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[15,[2,3,4]],"/(login)/login":[44,[8]],"/(app)/namespaces":[16,[2]],"/(app)/namespaces/[namespace]":[17,[2,5]],"/(app)/namespaces/[namespace]/archival":[18,[2,5]],"/(app)/namespaces/[namespace]/batch-operations":[19,[2,5]],"/(app)/namespaces/[namespace]/batch-operations/[jobId]":[20,[2,5]],"/(app)/namespaces/[namespace]/schedules":[21,[2,5]],"/(app)/namespaces/[namespace]/schedules/create":[24,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[22,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[23,[2,5]],"/(app)/namespaces/[namespace]/task-queues":[25,[2,5,6]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[26,[2,5,6]],"/(app)/namespaces/[namespace]/workflows":[27,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[28,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[29,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/call-stack":[30,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[31,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[32,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/event-groups/[id]":[33,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/events/[id]":[34,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[35,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[36,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/metadata":[37,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[38,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[39,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/relationships":[40,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[41,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[42,[2,5,7]],"/(app)/select-namespace":[43,[2]],"/(login)/signin":[45,[8]]},De={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{$e as dictionary,De as hooks,Re as matchers,Pe as nodes,Le as root,Ie as server_loads}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["../nodes/0.2vhPJuKu.js","../chunks/i18next.dQ3wfJvm.js","../chunks/layout.q11zcyEo.js","../chunks/scheduler.AWtTlMeO.js","../chunks/index.91lpp7Ff.js","../nodes/1.ApbLWwic.js","../chunks/stores.BjeHb2_D.js","../chunks/entry.49-_VqMH.js","../chunks/paths.0kQCowj0.js","../chunks/control.pJ1mnnAb.js","../chunks/error.K_W9miWl.js","../chunks/link.cs7LzqaH.js","../chunks/spread.rEx3vLA9.js","../chunks/icon.hlu3-iXK.js","../chunks/_commonjsHelpers.4gQjN7DL.js","../chunks/tw-merge.NbP7EmZe.js","../assets/link.VUmVfXUU.css","../chunks/has.-dFYEuQV.js","../chunks/is-network-error.S4fYxeQT.js","../chunks/parse-with-big-int.e3oI4SEy.js","../assets/app.psxZegNM.css","../nodes/2.8E6NZGkp.js","../chunks/index.aHWtvSLc.js","../chunks/route-for-api.Fwy3ccvq.js","../chunks/prod-browser.6V4A_NcJ.js","../chunks/auth-user.qLkr7QCG.js","../chunks/persist-store.79TECdfr.js","../chunks/toaster.JA1rZe2a.js","../chunks/route-for.LRddn_DS.js","../chunks/encode-uri.Mzeiosm2.js","../chunks/namespaces-service.qZq6gppP.js","../chunks/namespaces.AZAalcgs.js","../chunks/paginated.7Y-q8l-w.js","../chunks/screaming-enums.NBZzZ07O.js","../chunks/settings-service.gk5MAAVb.js","../chunks/data-encoder-config.q7-G5c7P.js","../chunks/data-encoder-settings.msA6Hzow.js","../chunks/label.2vZCl_WE.js","../chunks/toggle-switch.nnlj8S_t.js","../chunks/translate.HrioCK44.js","../chunks/workflow-run.ZUOIerA5.js","../chunks/menu.clBpn3HP.js","../chunks/badge.mHsIdLRu.js","../chunks/index.polp_dyw.js","../chunks/button.J_9D2qip.js","../chunks/index.VrdFapBL.js","../assets/menu.bVGx6PvN.css","../chunks/accordion.fKfAeltH.js","../chunks/radio-input.mvsumPD4.js","../assets/radio-input.yhfaLt2o.css","../assets/data-encoder-settings.vTcP18aE.css","../chunks/labs-mode-guard.15bwZDx8.js","../chunks/logo.f1KIcd7p.js","../chunks/batch-operations.-G8o8Ept.js","../chunks/workflow-actions.-K4W_iAA.js","../chunks/versions.VZx8Ysww.js","../chunks/settings.TuHg1P9A.js","../chunks/version-check.HLZIw2tw.js","../chunks/icon-button.bzDf4VVI.js","../chunks/tooltip.hkvKFmJN.js","../assets/tooltip.rVv2vLcx.css","../chunks/data-encoder.NJvAc-C6.js","../chunks/each.QPLN4A2E.js","../chunks/input.Oj66r1n-.js","../chunks/copy-to-clipboard.DsLGuhkA.js","../assets/input.AbGpcGgZ.css","../chunks/menu-divider.ULnGNTZu.js","../chunks/time-format.gNW0s4c3.js","../chunks/format-time.6T8OwT4v.js","../chunks/format-camel-case.z6e2GZpK.js","../chunks/main-content-container.5d_ZxAyo.js","../chunks/events.bSFWyNpS.js","../chunks/is-event-type._gd1DXTE.js","../chunks/event-view.GLm4GtMe.js","../chunks/filters.1ozdh_8f.js","../chunks/get-event-categorization.6rt2m6KE.js","../assets/main-content-container.eVxN1V4g.css","../assets/2.224jxmnJ.css","../nodes/3.aVMHetlR.js","../chunks/page-title.HGZyp4X5.js","../nodes/4.XbikTRsG.js","../chunks/event-history-file-import.D8w-4Mun.js","../chunks/index.D8-DrHo_.js","../chunks/decode-payload.-K-YkwX5.js","../chunks/index.R0s2mZbJ.js","../chunks/simplify-attributes.CFz5PLMp.js","../chunks/import-events.tyarLDHL.js","../chunks/toggle-buttons.Q4BcN_kj.js","../assets/toggle-buttons.QHaMCJ1T.css","../nodes/5.a5nE4ZdM.js","../chunks/search-attributes.zceZ6mlR.js","../nodes/6.kGYpZHre.js","../nodes/7.zIGUKP4j.js","../chunks/workflows.K4-zDFP4.js","../chunks/write-actions-are-allowed.BsR296Mf.js","../chunks/encode-payload.fJnyVVKQ.js","../chunks/loading.ZhwIBa5k.js","../chunks/workflow-terminate-enabled.eMZk6auC.js","../chunks/modal._fUsCkow.js","../assets/modal.TNmdindr.css","../chunks/checkbox.FE5a4WJj.js","../chunks/omit.d6LgPome.js","../chunks/code-block.PIA3laOL.js","../chunks/button.Ub6koOFz.js","../assets/button.sWGTOyUI.css","../chunks/split-button.-WuMdkyr.js","../chunks/core-user.qS1id1Cd.js","../chunks/workflow-status.ASJz2ufm.js","../chunks/heart-beat-indicator.fVG-MBgW.js","../assets/heart-beat-indicator.PU_Jiz1U.css","../assets/workflow-status.cikeq4Bt.css","../chunks/pollers-service.YzvQhuCf.js","../chunks/alert._GES0UbM.js","../assets/alert.Z0DZ5ewB.css","../chunks/index.YV2NV-TI.js","../chunks/tab.fhntVo9g.js","../assets/tab.vN424FqV.css","../chunks/get-workflow-relationships._pqLdLwH.js","../chunks/events-service.nbRs1TRb.js","../nodes/8._sNGkH5R.js","../nodes/9.FcdYDcar.js","../nodes/10.RbsWOtwW.js","../nodes/11.4_0AQG37.js","../nodes/12.104k1R2E.js","../nodes/13.ugyaFAaP.js","../chunks/event-summary-table.PldlBLuu.js","../chunks/empty-state.cnx-bHYa.js","../chunks/format-event-attributes.MiJoTPLS.js","../chunks/payload-decoder.NtOFwqeB.js","../chunks/table-header-row.xBvT5iU5.js","../chunks/progress-bar.xKU8vj1U.js","../assets/progress-bar._e_Mr8MF.css","../assets/table-header-row.ECHy6Jfs.css","../chunks/update-query-parameters.Mxd4zKR7.js","../assets/event-summary-table.T1wQ_j31.css","../chunks/pagination.EhyZpL-k.js","../chunks/pagination.9GMcGm8o.js","../chunks/simple-select.UwK7ouLh.js","../assets/simple-select.gMBuE9o8.css","../chunks/index.JaKJff3q.js","../assets/index.t0WQaTZf.css","../assets/pagination.HPfFW-4t.css","../nodes/14.HcFjX-G_.js","../nodes/15.hy0SjlLF.js","../chunks/workflow-json-navigator.EcUYA12q.js","../assets/workflow-json-navigator.U81mItVm.css","../nodes/16.XCVnTCEV.js","../chunks/table-row.rkx8mFVk.js","../nodes/17.KlqrQtkW.js","../chunks/card.HPQqbKjD.js","../assets/card.N0eVF8MM.css","../nodes/18.VdgEwd3V.js","../chunks/tokenize.xvHRDyh7.js","../assets/tokenize.8uyinuMr.css","../chunks/index.OI4ueFuJ.js","../assets/18.swCSoL8c.css","../nodes/19.Nq5hyloW.js","../chunks/await_block.yMzW6VTq.js","../nodes/20.ni1RRNO2.js","../assets/20.raUt9dce.css","../nodes/21.o9b-F3YG.js","../chunks/table.wDD-GVbn.js","../chunks/schedule-service.r3cr2EFk.js","../assets/21.kTWOgG-w.css","../nodes/22.fu00_wPl.js","../chunks/schedules.7ZX-HLZK.js","../chunks/input-and-results.TekNR-ku.js","../chunks/translate.We27PYN8.js","../chunks/time-picker.WfS3p5z_.js","../assets/translate.0YxVvp3O.css","../assets/22.5jsaPQha.css","../nodes/23.lMGuCuqX.js","../chunks/schedule-form-view.kun0m83N.js","../chunks/option.-xgiYgTD.js","../assets/option.Bq1h13XX.css","../assets/schedule-form-view.zwgNemDa.css","../nodes/24.ms96NWnV.js","../nodes/25.ATBozL9V.js","../nodes/26.9hU7O70x.js","../chunks/task-queue-workers.LyqKtfJm.js","../assets/task-queue-workers.hNMsECOp.css","../nodes/27.qCrv_N8I.js","../assets/27.qyN1J8OK.css","../nodes/28.iaXi6u02.js","../nodes/29.o1fBAjvZ.js","../nodes/30.FIXQiZBL.js","../chunks/workflow-padded-layout.T5Lzt1hp.js","../chunks/query-service.HaikD-rG.js","../nodes/31.x1w325Z1.js","../chunks/to-time-difference.dAqfDxka.js","../chunks/event-history-timeline.k0juh-Rh.js","../assets/event-history-timeline.yAMT5HUE.css","../assets/31.MnimF5Lw.css","../nodes/32.bBV07h0s.js","../nodes/33.wAnoViLZ.js","../nodes/34.8Yqdtq11.js","../nodes/35.bBV07h0s.js","../nodes/36.bBV07h0s.js","../nodes/37.phq4lOqp.js","../nodes/38.C5WasskW.js","../assets/38.XeqkUZCa.css","../nodes/39.FGUIXGjR.js","../nodes/40.spEwuMVa.js","../nodes/41.tYwdRkO5.js","../nodes/42.BHggNWLL.js","../nodes/43.kAdfl_j7.js","../assets/43.cgIzjGUc.css","../nodes/44.g5bOt9yj.js","../chunks/logo.cZOlJWlm.js","../assets/logo.xtM82OrS.css","../nodes/45.g5bOt9yj.js"] + __vite__mapDeps.viteFileDeps = ["../nodes/0.2vhPJuKu.js","../chunks/i18next.dQ3wfJvm.js","../chunks/layout.q11zcyEo.js","../chunks/scheduler.AWtTlMeO.js","../chunks/index.91lpp7Ff.js","../nodes/1.fWZlD42q.js","../chunks/stores.meYYndLY.js","../chunks/entry.Yz1YyohR.js","../chunks/paths.Ow6cpyoT.js","../chunks/control.pJ1mnnAb.js","../chunks/error.kUqJ8Dzr.js","../chunks/link.DdkOc0EY.js","../chunks/spread.rEx3vLA9.js","../chunks/icon.hlu3-iXK.js","../chunks/_commonjsHelpers.4gQjN7DL.js","../chunks/tw-merge.NbP7EmZe.js","../assets/link.VUmVfXUU.css","../chunks/has.-dFYEuQV.js","../chunks/is-network-error.S4fYxeQT.js","../chunks/parse-with-big-int.e3oI4SEy.js","../assets/app.psxZegNM.css","../nodes/2.3GxReL1_.js","../chunks/index.aHWtvSLc.js","../chunks/route-for-api.n9XkRS8h.js","../chunks/prod-browser.6V4A_NcJ.js","../chunks/auth-user.13zVs2Gb.js","../chunks/persist-store.8QJu1WeF.js","../chunks/toaster.tT6uD5UN.js","../chunks/route-for.ezVRK9wE.js","../chunks/encode-uri.Mzeiosm2.js","../chunks/namespaces-service.1V5QHpxG.js","../chunks/namespaces.ZCqOs8RA.js","../chunks/paginated.ekNvFt7Q.js","../chunks/screaming-enums.NBZzZ07O.js","../chunks/settings-service.LNiLsWYo.js","../chunks/data-encoder-config.VanBuir1.js","../chunks/data-encoder-settings.2wxgNGy3.js","../chunks/label.2vZCl_WE.js","../chunks/toggle-switch.nnlj8S_t.js","../chunks/translate.HrioCK44.js","../chunks/workflow-run.x_o75HKu.js","../chunks/menu.RlaY2l8z.js","../chunks/badge.mHsIdLRu.js","../chunks/index.polp_dyw.js","../chunks/button.bjyERRn9.js","../chunks/index.VrdFapBL.js","../assets/menu.bVGx6PvN.css","../chunks/accordion.-D1Ubcc_.js","../chunks/radio-input.VcwwInus.js","../assets/radio-input.yhfaLt2o.css","../assets/data-encoder-settings.vTcP18aE.css","../chunks/labs-mode-guard.-5NFppIE.js","../chunks/logo.f1KIcd7p.js","../chunks/batch-operations.RudApeOm.js","../chunks/workflow-actions.-K4W_iAA.js","../chunks/versions.l3g3WUor.js","../chunks/settings.oP-XN2ls.js","../chunks/version-check.HLZIw2tw.js","../chunks/icon-button.ihAAw8eC.js","../chunks/tooltip.hkvKFmJN.js","../assets/tooltip.rVv2vLcx.css","../chunks/data-encoder.wJxMMBGk.js","../chunks/each.QPLN4A2E.js","../chunks/input.EAz4myrb.js","../chunks/copy-to-clipboard.DKpAmXze.js","../assets/input.AbGpcGgZ.css","../chunks/menu-divider.ULnGNTZu.js","../chunks/time-format.Z3EDfPl8.js","../chunks/format-time.6T8OwT4v.js","../chunks/format-camel-case.z6e2GZpK.js","../chunks/main-content-container.IUC91KWw.js","../chunks/events.xGcD40Yy.js","../chunks/is-event-type._gd1DXTE.js","../chunks/event-view.qxFByNIO.js","../chunks/filters.cUjieRhB.js","../chunks/get-event-categorization.6rt2m6KE.js","../assets/main-content-container.eVxN1V4g.css","../assets/2.224jxmnJ.css","../nodes/3.BvZ-XlFq.js","../chunks/page-title.HGZyp4X5.js","../nodes/4.u912DJ-e.js","../chunks/event-history-file-import.4KIfkaSK.js","../chunks/index._MTkGJor.js","../chunks/decode-payload.QBGHBsqc.js","../chunks/index.PDR9Tyn3.js","../chunks/simplify-attributes.H9OUGjUS.js","../chunks/import-events._LSwAHOQ.js","../chunks/toggle-buttons.G5X0hB9M.js","../assets/toggle-buttons.QHaMCJ1T.css","../nodes/5.dRNy49SJ.js","../chunks/search-attributes.lxP-EZjZ.js","../nodes/6.kGYpZHre.js","../nodes/7.VV5ALPju.js","../chunks/workflows.W0IFK8bL.js","../chunks/write-actions-are-allowed.qnSR79t1.js","../chunks/encode-payload.mYRoJRmH.js","../chunks/loading.ZhwIBa5k.js","../chunks/workflow-terminate-enabled.gh7AP--t.js","../chunks/modal.6JWN7kGw.js","../assets/modal.TNmdindr.css","../chunks/checkbox.FE5a4WJj.js","../chunks/omit.d6LgPome.js","../chunks/code-block.XXHS15kp.js","../chunks/button.Ub6koOFz.js","../assets/button.sWGTOyUI.css","../chunks/split-button.hBguUu6q.js","../chunks/core-user.Lclp01iI.js","../chunks/workflow-status.ASJz2ufm.js","../chunks/heart-beat-indicator.fVG-MBgW.js","../assets/heart-beat-indicator.PU_Jiz1U.css","../assets/workflow-status.cikeq4Bt.css","../chunks/pollers-service.e2WOdz10.js","../chunks/alert._GES0UbM.js","../assets/alert.Z0DZ5ewB.css","../chunks/index.CY49Yv_w.js","../chunks/tab.XTXbSCSg.js","../assets/tab.vN424FqV.css","../chunks/get-workflow-relationships._pqLdLwH.js","../chunks/events-service.20fG09Ws.js","../nodes/8.myC0TmRg.js","../nodes/9.vjIoKcdS.js","../nodes/10.zPtobMHY.js","../nodes/11.vBZhyv3l.js","../nodes/12.kmq4AOE_.js","../nodes/13.mycjrO-Q.js","../chunks/event-summary-table.KKhOuxW-.js","../chunks/empty-state.cnx-bHYa.js","../chunks/format-event-attributes.M8uwiSGk.js","../chunks/payload-decoder.YeQWFAju.js","../chunks/table-header-row.xBvT5iU5.js","../chunks/progress-bar.xKU8vj1U.js","../assets/progress-bar._e_Mr8MF.css","../assets/table-header-row.ECHy6Jfs.css","../chunks/update-query-parameters.DBfsiMjL.js","../assets/event-summary-table.T1wQ_j31.css","../chunks/pagination.b8M6G9WD.js","../chunks/pagination.tZJpGBWa.js","../chunks/simple-select.UwK7ouLh.js","../assets/simple-select.gMBuE9o8.css","../chunks/index.JaKJff3q.js","../assets/index.t0WQaTZf.css","../assets/pagination.HPfFW-4t.css","../nodes/14.hDwSCvzy.js","../nodes/15.r04XV_h7.js","../chunks/workflow-json-navigator.cOSXQ3LY.js","../assets/workflow-json-navigator.U81mItVm.css","../nodes/16.eG7XE6Jw.js","../chunks/table-row.rkx8mFVk.js","../nodes/17.07C3x6Y5.js","../chunks/card.HPQqbKjD.js","../assets/card.N0eVF8MM.css","../nodes/18.CrcyizJ0.js","../chunks/tokenize.Q0qSDpSS.js","../assets/tokenize.8uyinuMr.css","../chunks/index.OI4ueFuJ.js","../assets/18.swCSoL8c.css","../nodes/19.1mFjElfk.js","../chunks/await_block.yMzW6VTq.js","../nodes/20.jpMcodhL.js","../assets/20.raUt9dce.css","../nodes/21.E7_mKVS6.js","../chunks/table.wDD-GVbn.js","../chunks/schedule-service.ryU1eeth.js","../assets/21.kTWOgG-w.css","../nodes/22.iacr-Cfc.js","../chunks/schedules.HxDl_85W.js","../chunks/input-and-results.iaD2Qo3z.js","../chunks/translate.-AtZfaGe.js","../chunks/time-picker.IwHKoS08.js","../assets/translate.0YxVvp3O.css","../assets/22.5jsaPQha.css","../nodes/23.hG5-vihJ.js","../chunks/schedule-form-view.HVYTgkEy.js","../chunks/option.7qDbbB8o.js","../assets/option.Bq1h13XX.css","../assets/schedule-form-view.zwgNemDa.css","../nodes/24.6sUwdPqS.js","../nodes/25.ATBozL9V.js","../nodes/26.EyCjJdol.js","../chunks/task-queue-workers.1omddeoe.js","../assets/task-queue-workers.hNMsECOp.css","../nodes/27.PhZh_mOK.js","../assets/27.qyN1J8OK.css","../nodes/28.TRCDpiCV.js","../nodes/29.o1fBAjvZ.js","../nodes/30.ol-ppb-m.js","../chunks/workflow-padded-layout.fDOmOSDE.js","../chunks/query-service.08pRS3DP.js","../nodes/31.1_7NJw_O.js","../chunks/to-time-difference.dAqfDxka.js","../chunks/event-history-timeline.Gyu9Xqc5.js","../assets/event-history-timeline.yAMT5HUE.css","../assets/31.MnimF5Lw.css","../nodes/32.C1EwfLqL.js","../nodes/33.jed8N86a.js","../nodes/34.6KHEf4O9.js","../nodes/35.C1EwfLqL.js","../nodes/36.C1EwfLqL.js","../nodes/37.u36ZbqRz.js","../nodes/38.0LynbGTc.js","../assets/38.XeqkUZCa.css","../nodes/39.7g-c9VSC.js","../nodes/40.LtZD80lm.js","../nodes/41.vFViRYrp.js","../nodes/42.qpSpJp6y.js","../nodes/43.kO9onCW9.js","../assets/43.cgIzjGUc.css","../nodes/44.klcRT6oT.js","../chunks/logo.9CBQUGDp.js","../assets/logo.xtM82OrS.css","../nodes/45.klcRT6oT.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/ui/assets/local/_app/immutable/entry/start.FurxxH23.js b/ui/assets/local/_app/immutable/entry/start.FurxxH23.js deleted file mode 100644 index c1d721bab..000000000 --- a/ui/assets/local/_app/immutable/entry/start.FurxxH23.js +++ /dev/null @@ -1 +0,0 @@ -import{c as a}from"../chunks/entry.49-_VqMH.js";export{a as start}; diff --git a/ui/assets/local/_app/immutable/entry/start._xrW3XyR.js b/ui/assets/local/_app/immutable/entry/start._xrW3XyR.js new file mode 100644 index 000000000..8011afd00 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/start._xrW3XyR.js @@ -0,0 +1 @@ +import{c as a}from"../chunks/entry.Yz1YyohR.js";export{a as start}; diff --git a/ui/assets/local/_app/immutable/nodes/1.ApbLWwic.js b/ui/assets/local/_app/immutable/nodes/1.fWZlD42q.js similarity index 87% rename from ui/assets/local/_app/immutable/nodes/1.ApbLWwic.js rename to ui/assets/local/_app/immutable/nodes/1.fWZlD42q.js index 4f910b614..adabe547b 100644 --- a/ui/assets/local/_app/immutable/nodes/1.ApbLWwic.js +++ b/ui/assets/local/_app/immutable/nodes/1.fWZlD42q.js @@ -1 +1 @@ -import{s as i,c as p}from"../chunks/scheduler.AWtTlMeO.js";import{S as c,i as u,c as f,a as _,m as g,t as l,b as $,d}from"../chunks/index.91lpp7Ff.js";/* empty css */import{p as E}from"../chunks/stores.BjeHb2_D.js";import{E as h}from"../chunks/error.K_W9miWl.js";import{i as b}from"../chunks/is-network-error.S4fYxeQT.js";import{p as y}from"../chunks/parse-with-big-int.e3oI4SEy.js";function q(o){let t,e;return t=new h({props:{error:o[1],status:o[0]}}),{c(){f(t.$$.fragment)},l(r){_(t.$$.fragment,r)},m(r,s){g(t,r,s),e=!0},p(r,[s]){const n={};s&2&&(n.error=r[1]),s&1&&(n.status=r[0]),t.$set(n)},i(r){e||(l(t.$$.fragment,r),e=!0)},o(r){$(t.$$.fragment,r),e=!1},d(r){d(t,r)}}}function w(o,t,e){let r,s,n;p(o,E,m=>e(2,n=m));let a;try{a=y(r.message),b(a)&&(s=a.statusCode)}catch(m){console.error(m)}return o.$$.update=()=>{o.$$.dirty&4&&e(1,r=n.error),o.$$.dirty&4&&e(0,s=n.status)},[s,r,n]}class N extends c{constructor(t){super(),u(this,t,w,q,i,{})}}export{N as component}; +import{s as i,c as p}from"../chunks/scheduler.AWtTlMeO.js";import{S as c,i as u,c as f,a as _,m as g,t as l,b as $,d}from"../chunks/index.91lpp7Ff.js";/* empty css */import{p as E}from"../chunks/stores.meYYndLY.js";import{E as h}from"../chunks/error.kUqJ8Dzr.js";import{i as b}from"../chunks/is-network-error.S4fYxeQT.js";import{p as y}from"../chunks/parse-with-big-int.e3oI4SEy.js";function q(o){let t,e;return t=new h({props:{error:o[1],status:o[0]}}),{c(){f(t.$$.fragment)},l(r){_(t.$$.fragment,r)},m(r,s){g(t,r,s),e=!0},p(r,[s]){const n={};s&2&&(n.error=r[1]),s&1&&(n.status=r[0]),t.$set(n)},i(r){e||(l(t.$$.fragment,r),e=!0)},o(r){$(t.$$.fragment,r),e=!1},d(r){d(t,r)}}}function w(o,t,e){let r,s,n;p(o,E,m=>e(2,n=m));let a;try{a=y(r.message),b(a)&&(s=a.statusCode)}catch(m){console.error(m)}return o.$$.update=()=>{o.$$.dirty&4&&e(1,r=n.error),o.$$.dirty&4&&e(0,s=n.status)},[s,r,n]}class N extends c{constructor(t){super(),u(this,t,w,q,i,{})}}export{N as component}; diff --git a/ui/assets/local/_app/immutable/nodes/10.RbsWOtwW.js b/ui/assets/local/_app/immutable/nodes/10.zPtobMHY.js similarity index 75% rename from ui/assets/local/_app/immutable/nodes/10.RbsWOtwW.js rename to ui/assets/local/_app/immutable/nodes/10.zPtobMHY.js index 36aafcea7..2aba68205 100644 --- a/ui/assets/local/_app/immutable/nodes/10.RbsWOtwW.js +++ b/ui/assets/local/_app/immutable/nodes/10.zPtobMHY.js @@ -1 +1 @@ -import{r as e}from"../chunks/index.aHWtvSLc.js";import{r as o}from"../chunks/route-for.LRddn_DS.js";const t=async()=>{const r=o();e(302,r)},s=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{s as universal}; +import{r as e}from"../chunks/index.aHWtvSLc.js";import{r as o}from"../chunks/route-for.ezVRK9wE.js";const t=async()=>{const r=o();e(302,r)},s=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{s as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/11.4_0AQG37.js b/ui/assets/local/_app/immutable/nodes/11.vBZhyv3l.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/11.4_0AQG37.js rename to ui/assets/local/_app/immutable/nodes/11.vBZhyv3l.js index 9dfcf16a1..d04f5fd24 100644 --- a/ui/assets/local/_app/immutable/nodes/11.4_0AQG37.js +++ b/ui/assets/local/_app/immutable/nodes/11.vBZhyv3l.js @@ -1 +1 @@ -import{s as tt,e as l,t as G,a as k,b as m,d,f as J,g as i,h as C,i as ot,j as r,k as et,l as a,v as st}from"../chunks/scheduler.AWtTlMeO.js";import{S as nt,i as at,c as H,a as T,m as D,t as S,b as V,d as j}from"../chunks/index.91lpp7Ff.js";import{E as rt}from"../chunks/event-history-file-import.D8w-4Mun.js";import{C as Y}from"../chunks/code-block.PIA3laOL.js";import{L as it}from"../chunks/link.cs7LzqaH.js";import{t as $}from"../chunks/translate.HrioCK44.js";import{s as Z}from"../chunks/parse-with-big-int.e3oI4SEy.js";function ct(v){let t=$("events.api-history-link")+"",s;return{c(){s=G(t)},l(e){s=J(e,t)},m(e,x){et(e,s,x)},p:st,d(e){e&&i(s)}}}function lt(v){let t,s,e,x=$("events.import-event-history")+"",O,q,E,h,A,o,g,K="type HistoryEvent = temporal.api.history.v1.IHistoryEvent",B,I,f,P,w,M=$("events.history-expected-formats")+"",W,z,p,_,F,y,L;return h=new rt({}),f=new it({props:{newTab:!0,href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[ct]},$$scope:{ctx:v}}}),_=new Y({props:{content:Z(v[0]),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),y=new Y({props:{content:Z(mt),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),{c(){t=l("section"),s=l("nav"),e=l("h1"),O=G(x),q=k(),E=l("div"),H(h.$$.fragment),A=k(),o=l("div"),g=l("code"),g.textContent=K,B=k(),I=l("div"),H(f.$$.fragment),P=k(),w=l("h2"),W=G(M),z=k(),p=l("div"),H(_.$$.fragment),F=k(),H(y.$$.fragment),this.h()},l(n){t=m(n,"SECTION",{class:!0});var c=d(t);s=m(c,"NAV",{id:!0,class:!0,"aria-label":!0});var b=d(s);e=m(b,"H1",{class:!0,"data-testid":!0});var Q=d(e);O=J(Q,x),Q.forEach(i),q=C(b),E=m(b,"DIV",{class:!0});var R=d(E);T(h.$$.fragment,R),R.forEach(i),b.forEach(i),A=C(c),o=m(c,"DIV",{class:!0});var u=d(o);g=m(u,"CODE",{class:!0,"data-svelte-h":!0}),ot(g)!=="svelte-wdumax"&&(g.textContent=K),B=C(u),I=m(u,"DIV",{class:!0});var U=d(I);T(f.$$.fragment,U),U.forEach(i),P=C(u),w=m(u,"H2",{class:!0});var X=d(w);W=J(X,M),X.forEach(i),z=C(u),p=m(u,"DIV",{class:!0});var N=d(p);T(_.$$.fragment,N),F=C(N),T(y.$$.fragment,N),N.forEach(i),u.forEach(i),c.forEach(i),this.h()},h(){r(e,"class","text-lg font-medium"),r(e,"data-testid","import-event-history"),r(E,"class","flex gap-4"),r(s,"id","event-history"),r(s,"class","block items-center justify-between gap-4 pb-4 lg:flex"),r(s,"aria-label",$("events.import-event-history")),r(g,"class","text-md bg-slate-200 p-2 font-medium"),r(I,"class","mt-4"),r(w,"class","mt-8 text-lg font-medium"),r(p,"class","h-40 text-center"),r(o,"class","w-full md:w-1/2"),r(t,"class","flex flex-col gap-4")},m(n,c){et(n,t,c),a(t,s),a(s,e),a(e,O),a(s,q),a(s,E),D(h,E,null),a(t,A),a(t,o),a(o,g),a(o,B),a(o,I),D(f,I,null),a(o,P),a(o,w),a(w,W),a(o,z),a(o,p),D(_,p,null),a(p,F),D(y,p,null),L=!0},p(n,[c]){const b={};c&2&&(b.$$scope={dirty:c,ctx:n}),f.$set(b)},i(n){L||(S(h.$$.fragment,n),S(f.$$.fragment,n),S(_.$$.fragment,n),S(y.$$.fragment,n),L=!0)},o(n){V(h.$$.fragment,n),V(f.$$.fragment,n),V(_.$$.fragment,n),V(y.$$.fragment,n),L=!1},d(n){n&&i(t),j(h),j(f),j(_),j(y)}}}const mt="HistoryEvent[]";function ft(v){return[{events:"HistoryEvent[]"}]}class pt extends nt{constructor(t){super(),at(this,t,ft,lt,tt,{})}}function ut(v){let t,s;return t=new pt({}),{c(){H(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,x){D(t,e,x),s=!0},p:st,i(e){s||(S(t.$$.fragment,e),s=!0)},o(e){V(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}class bt extends nt{constructor(t){super(),at(this,t,null,ut,tt,{})}}export{bt as component}; +import{s as tt,e as l,t as G,a as k,b as m,d,f as J,g as i,h as C,i as ot,j as r,k as et,l as a,v as st}from"../chunks/scheduler.AWtTlMeO.js";import{S as nt,i as at,c as H,a as T,m as D,t as S,b as V,d as j}from"../chunks/index.91lpp7Ff.js";import{E as rt}from"../chunks/event-history-file-import.4KIfkaSK.js";import{C as Y}from"../chunks/code-block.XXHS15kp.js";import{L as it}from"../chunks/link.DdkOc0EY.js";import{t as $}from"../chunks/translate.HrioCK44.js";import{s as Z}from"../chunks/parse-with-big-int.e3oI4SEy.js";function ct(v){let t=$("events.api-history-link")+"",s;return{c(){s=G(t)},l(e){s=J(e,t)},m(e,x){et(e,s,x)},p:st,d(e){e&&i(s)}}}function lt(v){let t,s,e,x=$("events.import-event-history")+"",O,q,E,h,A,o,g,K="type HistoryEvent = temporal.api.history.v1.IHistoryEvent",B,I,f,P,w,M=$("events.history-expected-formats")+"",W,z,p,_,F,y,L;return h=new rt({}),f=new it({props:{newTab:!0,href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[ct]},$$scope:{ctx:v}}}),_=new Y({props:{content:Z(v[0]),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),y=new Y({props:{content:Z(mt),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),{c(){t=l("section"),s=l("nav"),e=l("h1"),O=G(x),q=k(),E=l("div"),H(h.$$.fragment),A=k(),o=l("div"),g=l("code"),g.textContent=K,B=k(),I=l("div"),H(f.$$.fragment),P=k(),w=l("h2"),W=G(M),z=k(),p=l("div"),H(_.$$.fragment),F=k(),H(y.$$.fragment),this.h()},l(n){t=m(n,"SECTION",{class:!0});var c=d(t);s=m(c,"NAV",{id:!0,class:!0,"aria-label":!0});var b=d(s);e=m(b,"H1",{class:!0,"data-testid":!0});var Q=d(e);O=J(Q,x),Q.forEach(i),q=C(b),E=m(b,"DIV",{class:!0});var R=d(E);T(h.$$.fragment,R),R.forEach(i),b.forEach(i),A=C(c),o=m(c,"DIV",{class:!0});var u=d(o);g=m(u,"CODE",{class:!0,"data-svelte-h":!0}),ot(g)!=="svelte-wdumax"&&(g.textContent=K),B=C(u),I=m(u,"DIV",{class:!0});var U=d(I);T(f.$$.fragment,U),U.forEach(i),P=C(u),w=m(u,"H2",{class:!0});var X=d(w);W=J(X,M),X.forEach(i),z=C(u),p=m(u,"DIV",{class:!0});var N=d(p);T(_.$$.fragment,N),F=C(N),T(y.$$.fragment,N),N.forEach(i),u.forEach(i),c.forEach(i),this.h()},h(){r(e,"class","text-lg font-medium"),r(e,"data-testid","import-event-history"),r(E,"class","flex gap-4"),r(s,"id","event-history"),r(s,"class","block items-center justify-between gap-4 pb-4 lg:flex"),r(s,"aria-label",$("events.import-event-history")),r(g,"class","text-md bg-slate-200 p-2 font-medium"),r(I,"class","mt-4"),r(w,"class","mt-8 text-lg font-medium"),r(p,"class","h-40 text-center"),r(o,"class","w-full md:w-1/2"),r(t,"class","flex flex-col gap-4")},m(n,c){et(n,t,c),a(t,s),a(s,e),a(e,O),a(s,q),a(s,E),D(h,E,null),a(t,A),a(t,o),a(o,g),a(o,B),a(o,I),D(f,I,null),a(o,P),a(o,w),a(w,W),a(o,z),a(o,p),D(_,p,null),a(p,F),D(y,p,null),L=!0},p(n,[c]){const b={};c&2&&(b.$$scope={dirty:c,ctx:n}),f.$set(b)},i(n){L||(S(h.$$.fragment,n),S(f.$$.fragment,n),S(_.$$.fragment,n),S(y.$$.fragment,n),L=!0)},o(n){V(h.$$.fragment,n),V(f.$$.fragment,n),V(_.$$.fragment,n),V(y.$$.fragment,n),L=!1},d(n){n&&i(t),j(h),j(f),j(_),j(y)}}}const mt="HistoryEvent[]";function ft(v){return[{events:"HistoryEvent[]"}]}class pt extends nt{constructor(t){super(),at(this,t,ft,lt,tt,{})}}function ut(v){let t,s;return t=new pt({}),{c(){H(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,x){D(t,e,x),s=!0},p:st,i(e){s||(S(t.$$.fragment,e),s=!0)},o(e){V(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}class bt extends nt{constructor(t){super(),at(this,t,null,ut,tt,{})}}export{bt as component}; diff --git a/ui/assets/local/_app/immutable/nodes/12.104k1R2E.js b/ui/assets/local/_app/immutable/nodes/12.kmq4AOE_.js similarity index 76% rename from ui/assets/local/_app/immutable/nodes/12.104k1R2E.js rename to ui/assets/local/_app/immutable/nodes/12.kmq4AOE_.js index 839d3a882..9c0fe2744 100644 --- a/ui/assets/local/_app/immutable/nodes/12.104k1R2E.js +++ b/ui/assets/local/_app/immutable/nodes/12.kmq4AOE_.js @@ -1 +1 @@ -import{r}from"../chunks/index.aHWtvSLc.js";import{r as o}from"../chunks/route-for.LRddn_DS.js";const t=async function(){const e=o("feed");r(302,e)},c=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{c as universal}; +import{r}from"../chunks/index.aHWtvSLc.js";import{r as o}from"../chunks/route-for.ezVRK9wE.js";const t=async function(){const e=o("feed");r(302,e)},c=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{c as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/13.ugyaFAaP.js b/ui/assets/local/_app/immutable/nodes/13.mycjrO-Q.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/13.ugyaFAaP.js rename to ui/assets/local/_app/immutable/nodes/13.mycjrO-Q.js index 5c3196c06..b7557b890 100644 --- a/ui/assets/local/_app/immutable/nodes/13.ugyaFAaP.js +++ b/ui/assets/local/_app/immutable/nodes/13.mycjrO-Q.js @@ -1 +1 @@ -import{s as G,c as p,w as I,x as g,k as x,g as C}from"../chunks/scheduler.AWtTlMeO.js";import{S as L,i as P,c as $,a as h,m as d,t as u,b as c,d as v,g as y,e as b}from"../chunks/index.91lpp7Ff.js";import{e as w,u as B,o as N}from"../chunks/each.QPLN4A2E.js";import{E as q,a as z,b as M}from"../chunks/event-summary-table.PldlBLuu.js";import{P as j}from"../chunks/pagination.EhyZpL-k.js";import{t as _}from"../chunks/translate.HrioCK44.js";import{e as k,a as D}from"../chunks/event-view.GLm4GtMe.js";import{e as H}from"../chunks/filters.1ozdh_8f.js";import{a as J}from"../chunks/import-events.tyarLDHL.js";function E(i,t,n){const e=i.slice();return e[9]=t[n],e}function S(i){let t,n;return t=new z({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),n=!0},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){c(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function A(i,t){let n,e,a;return e=new M({props:{event:t[9],compact:F,expandAll:t[1]==="true",initialItem:t[8]}}),{key:i,first:null,c(){n=g(),$(e.$$.fragment),this.h()},l(r){n=g(),h(e.$$.fragment,r),this.h()},h(){this.first=n},m(r,f){x(r,n,f),d(e,r,f),a=!0},p(r,f){t=r;const l={};f&128&&(l.event=t[9]),f&2&&(l.expandAll=t[1]==="true"),f&256&&(l.initialItem=t[8]),e.$set(l)},i(r){a||(u(e.$$.fragment,r),a=!0)},o(r){c(e.$$.fragment,r),a=!1},d(r){r&&C(n),v(e,r)}}}function K(i){let t=[],n=new Map,e,a,r=w(i[7]);const f=o=>`${o[9].id}-${o[9].timestamp}`;for(let o=0;o{l=null}),b()):l||(l=S(),l.c(),u(l,1),l.m(e.parentNode,e)))},i(o){if(!a){for(let s=0;s({7:e,8:a}),({visibleItems:e,initialItem:a})=>(e?128:0)|(a?256:0)]},$$scope:{ctx:i}}}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),n=!0},p(e,[a]){const r={};a&1&&(r.items=e[0]),a&4482&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){c(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}let F=!0;function R(i,t,n){let e,a,r,f,l,o;p(i,k,m=>n(1,r=m)),p(i,H,m=>n(4,f=m)),p(i,J,m=>n(5,l=m)),p(i,D,m=>n(6,o=m));function s(m){I(k,r=m.detail.expanded,r)}return i.$$.update=()=>{i.$$.dirty&96&&n(3,e=o==="descending"?[...l].reverse():l),i.$$.dirty&24&&n(0,a=e.filter(m=>f?f.includes(m.category):m))},[a,r,s,e,f,l,o]}class re extends L{constructor(t){super(),P(this,t,R,Q,G,{})}}export{re as component}; +import{s as G,c as p,w as I,x as g,k as x,g as C}from"../chunks/scheduler.AWtTlMeO.js";import{S as L,i as P,c as $,a as h,m as d,t as u,b as c,d as v,g as y,e as b}from"../chunks/index.91lpp7Ff.js";import{e as w,u as B,o as N}from"../chunks/each.QPLN4A2E.js";import{E as q,a as z,b as M}from"../chunks/event-summary-table.KKhOuxW-.js";import{P as j}from"../chunks/pagination.b8M6G9WD.js";import{t as _}from"../chunks/translate.HrioCK44.js";import{e as k,a as D}from"../chunks/event-view.qxFByNIO.js";import{e as H}from"../chunks/filters.cUjieRhB.js";import{a as J}from"../chunks/import-events._LSwAHOQ.js";function E(i,t,n){const e=i.slice();return e[9]=t[n],e}function S(i){let t,n;return t=new z({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),n=!0},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){c(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function A(i,t){let n,e,a;return e=new M({props:{event:t[9],compact:F,expandAll:t[1]==="true",initialItem:t[8]}}),{key:i,first:null,c(){n=g(),$(e.$$.fragment),this.h()},l(r){n=g(),h(e.$$.fragment,r),this.h()},h(){this.first=n},m(r,f){x(r,n,f),d(e,r,f),a=!0},p(r,f){t=r;const l={};f&128&&(l.event=t[9]),f&2&&(l.expandAll=t[1]==="true"),f&256&&(l.initialItem=t[8]),e.$set(l)},i(r){a||(u(e.$$.fragment,r),a=!0)},o(r){c(e.$$.fragment,r),a=!1},d(r){r&&C(n),v(e,r)}}}function K(i){let t=[],n=new Map,e,a,r=w(i[7]);const f=o=>`${o[9].id}-${o[9].timestamp}`;for(let o=0;o{l=null}),b()):l||(l=S(),l.c(),u(l,1),l.m(e.parentNode,e)))},i(o){if(!a){for(let s=0;s({7:e,8:a}),({visibleItems:e,initialItem:a})=>(e?128:0)|(a?256:0)]},$$scope:{ctx:i}}}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),n=!0},p(e,[a]){const r={};a&1&&(r.items=e[0]),a&4482&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){c(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}let F=!0;function R(i,t,n){let e,a,r,f,l,o;p(i,k,m=>n(1,r=m)),p(i,H,m=>n(4,f=m)),p(i,J,m=>n(5,l=m)),p(i,D,m=>n(6,o=m));function s(m){I(k,r=m.detail.expanded,r)}return i.$$.update=()=>{i.$$.dirty&96&&n(3,e=o==="descending"?[...l].reverse():l),i.$$.dirty&24&&n(0,a=e.filter(m=>f?f.includes(m.category):m))},[a,r,s,e,f,l,o]}class re extends L{constructor(t){super(),P(this,t,R,Q,G,{})}}export{re as component}; diff --git a/ui/assets/local/_app/immutable/nodes/14.HcFjX-G_.js b/ui/assets/local/_app/immutable/nodes/14.hDwSCvzy.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/14.HcFjX-G_.js rename to ui/assets/local/_app/immutable/nodes/14.hDwSCvzy.js index 533552262..36fb826d5 100644 --- a/ui/assets/local/_app/immutable/nodes/14.HcFjX-G_.js +++ b/ui/assets/local/_app/immutable/nodes/14.hDwSCvzy.js @@ -1 +1 @@ -import{s as I,c as p,w as L,x as g,k as x,g as C}from"../chunks/scheduler.AWtTlMeO.js";import{S as P,i as B,c as $,a as h,m as d,t as u,b as c,d as v,g as y,e as b}from"../chunks/index.91lpp7Ff.js";import{e as w,u as N,o as q}from"../chunks/each.QPLN4A2E.js";import{E as z,a as M,b as j}from"../chunks/event-summary-table.PldlBLuu.js";import{P as D}from"../chunks/pagination.EhyZpL-k.js";import{t as _}from"../chunks/translate.HrioCK44.js";import{e as k,a as G}from"../chunks/event-view.GLm4GtMe.js";import{e as H}from"../chunks/filters.1ozdh_8f.js";import{i as J}from"../chunks/import-events.tyarLDHL.js";function E(i,t,n){const e=i.slice();return e[9]=t[n],e}function S(i){let t,n;return t=new M({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),n=!0},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){c(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function A(i,t){let n,e,a;return e=new j({props:{event:t[9],compact:F,expandAll:t[1]==="true",initialItem:t[8]}}),{key:i,first:null,c(){n=g(),$(e.$$.fragment),this.h()},l(r){n=g(),h(e.$$.fragment,r),this.h()},h(){this.first=n},m(r,f){x(r,n,f),d(e,r,f),a=!0},p(r,f){t=r;const l={};f&128&&(l.event=t[9]),f&2&&(l.expandAll=t[1]==="true"),f&256&&(l.initialItem=t[8]),e.$set(l)},i(r){a||(u(e.$$.fragment,r),a=!0)},o(r){c(e.$$.fragment,r),a=!1},d(r){r&&C(n),v(e,r)}}}function K(i){let t=[],n=new Map,e,a,r=w(i[7]);const f=o=>`${o[9].id}-${o[9].timestamp}`;for(let o=0;o{l=null}),b()):l||(l=S(),l.c(),u(l,1),l.m(e.parentNode,e)))},i(o){if(!a){for(let s=0;s({7:e,8:a}),({visibleItems:e,initialItem:a})=>(e?128:0)|(a?256:0)]},$$scope:{ctx:i}}}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),n=!0},p(e,[a]){const r={};a&1&&(r.items=e[0]),a&4482&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){c(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}let F=!1;function R(i,t,n){let e,a,r,f,l,o;p(i,k,m=>n(1,r=m)),p(i,H,m=>n(4,f=m)),p(i,J,m=>n(5,l=m)),p(i,G,m=>n(6,o=m));function s(m){L(k,r=m.detail.expanded,r)}return i.$$.update=()=>{i.$$.dirty&96&&n(3,e=o==="descending"?[...l].reverse():l),i.$$.dirty&24&&n(0,a=e.filter(m=>f?f.includes(m.category):m))},[a,r,s,e,f,l,o]}class re extends P{constructor(t){super(),B(this,t,R,Q,I,{})}}export{re as component}; +import{s as I,c as p,w as L,x as g,k as x,g as C}from"../chunks/scheduler.AWtTlMeO.js";import{S as P,i as B,c as $,a as h,m as d,t as u,b as c,d as v,g as y,e as b}from"../chunks/index.91lpp7Ff.js";import{e as w,u as N,o as q}from"../chunks/each.QPLN4A2E.js";import{E as z,a as M,b as j}from"../chunks/event-summary-table.KKhOuxW-.js";import{P as D}from"../chunks/pagination.b8M6G9WD.js";import{t as _}from"../chunks/translate.HrioCK44.js";import{e as k,a as G}from"../chunks/event-view.qxFByNIO.js";import{e as H}from"../chunks/filters.cUjieRhB.js";import{i as J}from"../chunks/import-events._LSwAHOQ.js";function E(i,t,n){const e=i.slice();return e[9]=t[n],e}function S(i){let t,n;return t=new M({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),n=!0},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){c(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function A(i,t){let n,e,a;return e=new j({props:{event:t[9],compact:F,expandAll:t[1]==="true",initialItem:t[8]}}),{key:i,first:null,c(){n=g(),$(e.$$.fragment),this.h()},l(r){n=g(),h(e.$$.fragment,r),this.h()},h(){this.first=n},m(r,f){x(r,n,f),d(e,r,f),a=!0},p(r,f){t=r;const l={};f&128&&(l.event=t[9]),f&2&&(l.expandAll=t[1]==="true"),f&256&&(l.initialItem=t[8]),e.$set(l)},i(r){a||(u(e.$$.fragment,r),a=!0)},o(r){c(e.$$.fragment,r),a=!1},d(r){r&&C(n),v(e,r)}}}function K(i){let t=[],n=new Map,e,a,r=w(i[7]);const f=o=>`${o[9].id}-${o[9].timestamp}`;for(let o=0;o{l=null}),b()):l||(l=S(),l.c(),u(l,1),l.m(e.parentNode,e)))},i(o){if(!a){for(let s=0;s({7:e,8:a}),({visibleItems:e,initialItem:a})=>(e?128:0)|(a?256:0)]},$$scope:{ctx:i}}}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,a){d(t,e,a),n=!0},p(e,[a]){const r={};a&1&&(r.items=e[0]),a&4482&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){c(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}let F=!1;function R(i,t,n){let e,a,r,f,l,o;p(i,k,m=>n(1,r=m)),p(i,H,m=>n(4,f=m)),p(i,J,m=>n(5,l=m)),p(i,G,m=>n(6,o=m));function s(m){L(k,r=m.detail.expanded,r)}return i.$$.update=()=>{i.$$.dirty&96&&n(3,e=o==="descending"?[...l].reverse():l),i.$$.dirty&24&&n(0,a=e.filter(m=>f?f.includes(m.category):m))},[a,r,s,e,f,l,o]}class re extends P{constructor(t){super(),B(this,t,R,Q,I,{})}}export{re as component}; diff --git a/ui/assets/local/_app/immutable/nodes/15.hy0SjlLF.js b/ui/assets/local/_app/immutable/nodes/15.r04XV_h7.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/15.hy0SjlLF.js rename to ui/assets/local/_app/immutable/nodes/15.r04XV_h7.js index 7c3e476c7..0bd17e824 100644 --- a/ui/assets/local/_app/immutable/nodes/15.hy0SjlLF.js +++ b/ui/assets/local/_app/immutable/nodes/15.r04XV_h7.js @@ -1 +1 @@ -import{s as a,c as i}from"../chunks/scheduler.AWtTlMeO.js";import{S as m,i as c,c as p,a as f,m as u,t as _,b as l,d as $}from"../chunks/index.91lpp7Ff.js";import{W as g}from"../chunks/workflow-json-navigator.EcUYA12q.js";import{i as v}from"../chunks/import-events.tyarLDHL.js";function w(r){let n,o;return n=new g({props:{events:r[0]}}),{c(){p(n.$$.fragment)},l(t){f(n.$$.fragment,t)},m(t,e){u(n,t,e),o=!0},p(t,[e]){const s={};e&1&&(s.events=t[0]),n.$set(s)},i(t){o||(_(n.$$.fragment,t),o=!0)},o(t){l(n.$$.fragment,t),o=!1},d(t){$(n,t)}}}function d(r,n,o){let t;return i(r,v,e=>o(0,t=e)),[t]}class x extends m{constructor(n){super(),c(this,n,d,w,a,{})}}export{x as component}; +import{s as a,c as i}from"../chunks/scheduler.AWtTlMeO.js";import{S as m,i as c,c as p,a as f,m as u,t as _,b as l,d as $}from"../chunks/index.91lpp7Ff.js";import{W as g}from"../chunks/workflow-json-navigator.cOSXQ3LY.js";import{i as v}from"../chunks/import-events._LSwAHOQ.js";function w(r){let n,o;return n=new g({props:{events:r[0]}}),{c(){p(n.$$.fragment)},l(t){f(n.$$.fragment,t)},m(t,e){u(n,t,e),o=!0},p(t,[e]){const s={};e&1&&(s.events=t[0]),n.$set(s)},i(t){o||(_(n.$$.fragment,t),o=!0)},o(t){l(n.$$.fragment,t),o=!1},d(t){$(n,t)}}}function d(r,n,o){let t;return i(r,v,e=>o(0,t=e)),[t]}class x extends m{constructor(n){super(),c(this,n,d,w,a,{})}}export{x as component}; diff --git a/ui/assets/local/_app/immutable/nodes/16.XCVnTCEV.js b/ui/assets/local/_app/immutable/nodes/16.eG7XE6Jw.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/16.XCVnTCEV.js rename to ui/assets/local/_app/immutable/nodes/16.eG7XE6Jw.js index d1642cd6f..a32b31923 100644 --- a/ui/assets/local/_app/immutable/nodes/16.XCVnTCEV.js +++ b/ui/assets/local/_app/immutable/nodes/16.eG7XE6Jw.js @@ -1 +1 @@ -import{s as M,a as B,e as P,t as x,x as y,h as C,b as I,d as L,f as N,g as i,j as E,k as $,l as H,c as A,v as j,y as Q,n as R}from"../chunks/scheduler.AWtTlMeO.js";import{S as U,i as V,c as d,a as b,m as k,b as u,e as J,t as p,d as v,g as K}from"../chunks/index.91lpp7Ff.js";import{e as D}from"../chunks/each.QPLN4A2E.js";import{p as W}from"../chunks/stores.BjeHb2_D.js";import{P as X}from"../chunks/page-title.HGZyp4X5.js";import{E as Y}from"../chunks/empty-state.cnx-bHYa.js";import{L as Z}from"../chunks/link.cs7LzqaH.js";import{P as ee}from"../chunks/pagination.EhyZpL-k.js";import{T as te,a as ae}from"../chunks/table-header-row.xBvT5iU5.js";import{T as ne}from"../chunks/table-row.rkx8mFVk.js";import{t as h}from"../chunks/translate.HrioCK44.js";import{n as re}from"../chunks/namespaces.AZAalcgs.js";import{a as F}from"../chunks/route-for.LRddn_DS.js";function O(c,t,n){const e=c.slice();return e[3]=t[n],e}function se(c){let t,n;return t=new Y({props:{title:h("namespaces.namespaces-empty-state-title"),content:h("namespaces.namespaces-empty-state-content")}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p:j,i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function oe(c){let t,n;return t=new ee({props:{items:c[1],"aria-label":h("common.namespaces"),pageSizeSelectLabel:h("common.per-page"),previousButtonLabel:h("common.previous"),nextButtonLabel:h("common.next"),$$slots:{default:[ue,({visibleItems:e})=>({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:c}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&2&&(r.items=e[1]),a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function le(c){let t=c[3].namespaceInfo.name+"",n;return{c(){n=x(t)},l(e){n=N(e,t)},m(e,a){$(e,n,a)},p(e,a){a&4&&t!==(t=e[3].namespaceInfo.name+"")&&R(n,t)},d(e){e&&i(n)}}}function ce(c){let t,n,e,a;return n=new Z({props:{href:F({namespace:c[3].namespaceInfo.name}),$$slots:{default:[le]},$$scope:{ctx:c}}}),{c(){t=P("td"),d(n.$$.fragment),e=B()},l(r){t=I(r,"TD",{});var s=L(t);b(n.$$.fragment,s),s.forEach(i),e=C(r)},m(r,s){$(r,t,s),k(n,t,null),$(r,e,s),a=!0},p(r,s){const o={};s&4&&(o.href=F({namespace:r[3].namespaceInfo.name})),s&68&&(o.$$scope={dirty:s,ctx:r}),n.$set(o)},i(r){a||(p(n.$$.fragment,r),a=!0)},o(r){u(n.$$.fragment,r),a=!1},d(r){r&&(i(t),i(e)),v(n)}}}function G(c){let t,n;return t=new ne({props:{$$slots:{default:[ce]},$$scope:{ctx:c}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function fe(c){let t,n,e=D(c[2]),a=[];for(let s=0;su(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return o=z(c),l=g[o]=q[o](c),{c(){d(t.$$.fragment),n=B(),e=P("h1"),r=x(a),s=B(),l.c(),_=y(),this.h()},l(f){b(t.$$.fragment,f),n=C(f),e=I(f,"H1",{"data-testid":!0,class:!0});var m=L(e);r=N(m,a),m.forEach(i),s=C(f),l.l(f),_=y(),this.h()},h(){E(e,"data-testid","namespace-selector-title"),E(e,"class","mb-8 text-2xl")},m(f,m){k(t,f,m),$(f,n,m),$(f,e,m),H(e,r),$(f,s,m),g[o].m(f,m),$(f,_,m),T=!0},p(f,[m]){const w={};m&1&&(w.url=f[0].url.href),t.$set(w);let S=o;o=z(f),o===S?g[o].p(f,m):(K(),u(g[S],1,1,()=>{g[S]=null}),J(),l=g[o],l?l.p(f,m):(l=g[o]=q[o](f),l.c()),p(l,1),l.m(_.parentNode,_))},i(f){T||(p(t.$$.fragment,f),p(l),T=!0)},o(f){u(t.$$.fragment,f),u(l),T=!1},d(f){f&&(i(n),i(e),i(s),i(_)),v(t,f),g[o].d(f)}}}function _e(c,t,n){let e,a;return A(c,W,r=>n(0,e=r)),A(c,re,r=>n(1,a=r)),[e,a]}class Le extends U{constructor(t){super(),V(this,t,_e,$e,M,{})}}export{Le as component}; +import{s as M,a as B,e as P,t as x,x as y,h as C,b as I,d as L,f as N,g as i,j as E,k as $,l as H,c as A,v as j,y as Q,n as R}from"../chunks/scheduler.AWtTlMeO.js";import{S as U,i as V,c as d,a as b,m as k,b as u,e as J,t as p,d as v,g as K}from"../chunks/index.91lpp7Ff.js";import{e as D}from"../chunks/each.QPLN4A2E.js";import{p as W}from"../chunks/stores.meYYndLY.js";import{P as X}from"../chunks/page-title.HGZyp4X5.js";import{E as Y}from"../chunks/empty-state.cnx-bHYa.js";import{L as Z}from"../chunks/link.DdkOc0EY.js";import{P as ee}from"../chunks/pagination.b8M6G9WD.js";import{T as te,a as ae}from"../chunks/table-header-row.xBvT5iU5.js";import{T as ne}from"../chunks/table-row.rkx8mFVk.js";import{t as h}from"../chunks/translate.HrioCK44.js";import{n as re}from"../chunks/namespaces.ZCqOs8RA.js";import{a as F}from"../chunks/route-for.ezVRK9wE.js";function O(c,t,n){const e=c.slice();return e[3]=t[n],e}function se(c){let t,n;return t=new Y({props:{title:h("namespaces.namespaces-empty-state-title"),content:h("namespaces.namespaces-empty-state-content")}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p:j,i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function oe(c){let t,n;return t=new ee({props:{items:c[1],"aria-label":h("common.namespaces"),pageSizeSelectLabel:h("common.per-page"),previousButtonLabel:h("common.previous"),nextButtonLabel:h("common.next"),$$slots:{default:[ue,({visibleItems:e})=>({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:c}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&2&&(r.items=e[1]),a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function le(c){let t=c[3].namespaceInfo.name+"",n;return{c(){n=x(t)},l(e){n=N(e,t)},m(e,a){$(e,n,a)},p(e,a){a&4&&t!==(t=e[3].namespaceInfo.name+"")&&R(n,t)},d(e){e&&i(n)}}}function ce(c){let t,n,e,a;return n=new Z({props:{href:F({namespace:c[3].namespaceInfo.name}),$$slots:{default:[le]},$$scope:{ctx:c}}}),{c(){t=P("td"),d(n.$$.fragment),e=B()},l(r){t=I(r,"TD",{});var s=L(t);b(n.$$.fragment,s),s.forEach(i),e=C(r)},m(r,s){$(r,t,s),k(n,t,null),$(r,e,s),a=!0},p(r,s){const o={};s&4&&(o.href=F({namespace:r[3].namespaceInfo.name})),s&68&&(o.$$scope={dirty:s,ctx:r}),n.$set(o)},i(r){a||(p(n.$$.fragment,r),a=!0)},o(r){u(n.$$.fragment,r),a=!1},d(r){r&&(i(t),i(e)),v(n)}}}function G(c){let t,n;return t=new ne({props:{$$slots:{default:[ce]},$$scope:{ctx:c}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function fe(c){let t,n,e=D(c[2]),a=[];for(let s=0;su(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return o=z(c),l=g[o]=q[o](c),{c(){d(t.$$.fragment),n=B(),e=P("h1"),r=x(a),s=B(),l.c(),_=y(),this.h()},l(f){b(t.$$.fragment,f),n=C(f),e=I(f,"H1",{"data-testid":!0,class:!0});var m=L(e);r=N(m,a),m.forEach(i),s=C(f),l.l(f),_=y(),this.h()},h(){E(e,"data-testid","namespace-selector-title"),E(e,"class","mb-8 text-2xl")},m(f,m){k(t,f,m),$(f,n,m),$(f,e,m),H(e,r),$(f,s,m),g[o].m(f,m),$(f,_,m),T=!0},p(f,[m]){const w={};m&1&&(w.url=f[0].url.href),t.$set(w);let S=o;o=z(f),o===S?g[o].p(f,m):(K(),u(g[S],1,1,()=>{g[S]=null}),J(),l=g[o],l?l.p(f,m):(l=g[o]=q[o](f),l.c()),p(l,1),l.m(_.parentNode,_))},i(f){T||(p(t.$$.fragment,f),p(l),T=!0)},o(f){u(t.$$.fragment,f),u(l),T=!1},d(f){f&&(i(n),i(e),i(s),i(_)),v(t,f),g[o].d(f)}}}function _e(c,t,n){let e,a;return A(c,W,r=>n(0,e=r)),A(c,re,r=>n(1,a=r)),[e,a]}class Le extends U{constructor(t){super(),V(this,t,_e,$e,M,{})}}export{Le as component}; diff --git a/ui/assets/local/_app/immutable/nodes/17.KlqrQtkW.js b/ui/assets/local/_app/immutable/nodes/17.07C3x6Y5.js similarity index 98% rename from ui/assets/local/_app/immutable/nodes/17.KlqrQtkW.js rename to ui/assets/local/_app/immutable/nodes/17.07C3x6Y5.js index c721a117d..0e16df3f9 100644 --- a/ui/assets/local/_app/immutable/nodes/17.KlqrQtkW.js +++ b/ui/assets/local/_app/immutable/nodes/17.07C3x6Y5.js @@ -1 +1 @@ -import{f as ht}from"../chunks/namespaces-service.qZq6gppP.js";import{s as vt,a as R,e as p,t as E,x as Je,h as I,b as m,d as v,f as D,g as s,j as P,k as $,l as f,n as z,c as Ne,S as gt,y as Tt,v as we,w as bt,i as Fe}from"../chunks/scheduler.AWtTlMeO.js";import{S as wt,i as Et,c as J,a as K,m as Q,t as j,b as F,e as _t,d as X,g as $t}from"../chunks/index.91lpp7Ff.js";import{e as ft}from"../chunks/each.QPLN4A2E.js";import{p as Dt}from"../chunks/stores.BjeHb2_D.js";import{P as At}from"../chunks/page-title.HGZyp4X5.js";import{B as be}from"../chunks/badge.mHsIdLRu.js";import{C as Ct}from"../chunks/card.HPQqbKjD.js";import{T as qe,a as kt}from"../chunks/table-header-row.xBvT5iU5.js";import{T as Rt}from"../chunks/table-row.rkx8mFVk.js";import{t as L}from"../chunks/translate.HrioCK44.js";import{l as ct}from"../chunks/namespaces.AZAalcgs.js";import{s as It}from"../chunks/search-attributes.zceZ6mlR.js";import{s as St}from"../chunks/settings.TuHg1P9A.js";import{t as Ht,u as Lt}from"../chunks/versions.VZx8Ysww.js";import{a as ut}from"../chunks/format-time.6T8OwT4v.js";const Nt=r=>{var t,l;const e=(t=r==null?void 0:r.replicationConfig)==null?void 0:t.clusters,a=(l=r==null?void 0:r.replicationConfig)==null?void 0:l.activeClusterName;return e!=null&&e.length?e.map(({clusterName:n})=>n===a?`${n} (active)`:n).join(", "):"Unknown"},yt=async function({params:r,parent:e,url:a}){const{searchParams:t}=a;t.has("time-range")&&t.delete("time-range"),await e();const l=await ht(r.namespace),n=Nt(l);return{namespace:l,clusters:n}},wa=Object.freeze(Object.defineProperty({__proto__:null,load:yt},Symbol.toStringTag,{value:"Module"}));function dt(r,e,a){const t=r.slice();return t[13]=e[a][0],t[14]=e[a][1],t}function Vt(r){var t;let e=((t=r[0])!=null&&t.isGlobalNamespace?L("common.yes"):L("common.no"))+"",a;return{c(){a=E(e)},l(l){a=D(l,e)},m(l,n){$(l,a,n)},p(l,n){var i;n&1&&e!==(e=((i=l[0])!=null&&i.isGlobalNamespace?L("common.yes"):L("common.no"))+"")&&z(a,e)},d(l){l&&s(a)}}}function Pt(r){var t,l;let e=((l=(t=r[0])==null?void 0:t.config)==null?void 0:l.historyArchivalState)+"",a;return{c(){a=E(e)},l(n){a=D(n,e)},m(n,i){$(n,a,i)},p(n,i){var c,o;i&1&&e!==(e=((o=(c=n[0])==null?void 0:c.config)==null?void 0:o.historyArchivalState)+"")&&z(a,e)},d(n){n&&s(a)}}}function Bt(r){var t,l;let e=((l=(t=r[0])==null?void 0:t.config)==null?void 0:l.visibilityArchivalState)+"",a;return{c(){a=E(e)},l(n){a=D(n,e)},m(n,i){$(n,a,i)},p(n,i){var c,o;i&1&&e!==(e=((o=(c=n[0])==null?void 0:c.config)==null?void 0:o.visibilityArchivalState)+"")&&z(a,e)},d(n){n&&s(a)}}}function Ot(r){var Ke,Qe,Xe,Ye,Ze,xe,et,tt,at,lt;let e,a,t=L("namespaces.owner")+"",l,n,i,c=(((Qe=(Ke=r[0])==null?void 0:Ke.namespaceInfo)==null?void 0:Qe.ownerEmail)||L("common.unknown"))+"",o,u,g,y,O=L("namespaces.global")+"",B,C,b,d,V,w,Y,W=L("namespaces.retention-period")+"",Z,k,S,G=ut((Ye=(Xe=r[0])==null?void 0:Xe.config)==null?void 0:Ye.workflowExecutionRetentionTtl.toString())+"",_,A,M,x,pe=L("namespaces.history-archival")+"",le,ee,te,U,ae,se,me,Re=L("namespaces.visibility-archival")+"",_e,re,fe,h,H,q,ne,ie=L("namespaces.failover-version")+"",ce,ue,de,he=(((Ze=r[0])==null?void 0:Ze.failoverVersion)||"")+"",Ee,$e,oe,ve,De=L("namespaces.clusters")+"",Ie,Se,ye,Ge,ge;return d=new be({props:{class:"px-1 py-0",type:r[8]((xe=r[0])==null?void 0:xe.isGlobalNamespace,!1),$$slots:{default:[Vt]},$$scope:{ctx:r}}}),U=new be({props:{class:"px-1 py-0",type:r[7]((tt=(et=r[0])==null?void 0:et.config)==null?void 0:tt.historyArchivalState),$$slots:{default:[Pt]},$$scope:{ctx:r}}}),h=new be({props:{class:"px-1 py-0",type:r[7]((lt=(at=r[0])==null?void 0:at.config)==null?void 0:lt.visibilityArchivalState),$$slots:{default:[Bt]},$$scope:{ctx:r}}}),{c(){e=p("tr"),a=p("td"),l=E(t),n=R(),i=p("td"),o=E(c),u=R(),g=p("tr"),y=p("td"),B=E(O),C=R(),b=p("td"),J(d.$$.fragment),V=R(),w=p("tr"),Y=p("td"),Z=E(W),k=R(),S=p("td"),_=E(G),A=R(),M=p("tr"),x=p("td"),le=E(pe),ee=R(),te=p("td"),J(U.$$.fragment),ae=R(),se=p("tr"),me=p("td"),_e=E(Re),re=R(),fe=p("td"),J(h.$$.fragment),H=R(),q=p("tr"),ne=p("td"),ce=E(ie),ue=R(),de=p("td"),Ee=E(he),$e=R(),oe=p("tr"),ve=p("td"),Ie=E(De),Se=R(),ye=p("td"),Ge=E(r[1]),this.h()},l(T){e=m(T,"TR",{"data-testid":!0});var N=v(e);a=m(N,"TD",{});var He=v(a);l=D(He,t),He.forEach(s),n=I(N),i=m(N,"TD",{});var Le=v(i);o=D(Le,c),Le.forEach(s),N.forEach(s),u=I(T),g=m(T,"TR",{"data-testid":!0});var Te=v(g);y=m(Te,"TD",{});var Ve=v(y);B=D(Ve,O),Ve.forEach(s),C=I(Te),b=m(Te,"TD",{});var Pe=v(b);K(d.$$.fragment,Pe),Pe.forEach(s),Te.forEach(s),V=I(T),w=m(T,"TR",{"data-testid":!0});var Ae=v(w);Y=m(Ae,"TD",{});var Be=v(Y);Z=D(Be,W),Be.forEach(s),k=I(Ae),S=m(Ae,"TD",{});var Oe=v(S);_=D(Oe,G),Oe.forEach(s),Ae.forEach(s),A=I(T),M=m(T,"TR",{"data-testid":!0});var Ce=v(M);x=m(Ce,"TD",{});var Me=v(x);le=D(Me,pe),Me.forEach(s),ee=I(Ce),te=m(Ce,"TD",{});var je=v(te);K(U.$$.fragment,je),je.forEach(s),Ce.forEach(s),ae=I(T),se=m(T,"TR",{"data-testid":!0});var ke=v(se);me=m(ke,"TD",{});var Ue=v(me);_e=D(Ue,Re),Ue.forEach(s),re=I(ke),fe=m(ke,"TD",{});var st=v(fe);K(h.$$.fragment,st),st.forEach(s),ke.forEach(s),H=I(T),q=m(T,"TR",{"data-testid":!0});var We=v(q);ne=m(We,"TD",{});var rt=v(ne);ce=D(rt,ie),rt.forEach(s),ue=I(We),de=m(We,"TD",{});var nt=v(de);Ee=D(nt,he),nt.forEach(s),We.forEach(s),$e=I(T),oe=m(T,"TR",{"data-testid":!0});var ze=v(oe);ve=m(ze,"TD",{});var ot=v(ve);Ie=D(ot,De),ot.forEach(s),Se=I(ze),ye=m(ze,"TD",{});var it=v(ye);Ge=D(it,r[1]),it.forEach(s),ze.forEach(s),this.h()},h(){P(e,"data-testid","namespace-owner"),P(g,"data-testid","namespace-global"),P(w,"data-testid","namespace-retention"),P(M,"data-testid","namespace-history"),P(se,"data-testid","namespace-visibility"),P(q,"data-testid","namespace-failover"),P(oe,"data-testid","namespace-clusters")},m(T,N){$(T,e,N),f(e,a),f(a,l),f(e,n),f(e,i),f(i,o),$(T,u,N),$(T,g,N),f(g,y),f(y,B),f(g,C),f(g,b),Q(d,b,null),$(T,V,N),$(T,w,N),f(w,Y),f(Y,Z),f(w,k),f(w,S),f(S,_),$(T,A,N),$(T,M,N),f(M,x),f(x,le),f(M,ee),f(M,te),Q(U,te,null),$(T,ae,N),$(T,se,N),f(se,me),f(me,_e),f(se,re),f(se,fe),Q(h,fe,null),$(T,H,N),$(T,q,N),f(q,ne),f(ne,ce),f(q,ue),f(q,de),f(de,Ee),$(T,$e,N),$(T,oe,N),f(oe,ve),f(ve,Ie),f(oe,Se),f(oe,ye),f(ye,Ge),ge=!0},p(T,N){var Ve,Pe,Ae,Be,Oe,Ce,Me,je,ke,Ue;(!ge||N&1)&&c!==(c=(((Pe=(Ve=T[0])==null?void 0:Ve.namespaceInfo)==null?void 0:Pe.ownerEmail)||L("common.unknown"))+"")&&z(o,c);const He={};N&1&&(He.type=T[8]((Ae=T[0])==null?void 0:Ae.isGlobalNamespace,!1)),N&131073&&(He.$$scope={dirty:N,ctx:T}),d.$set(He),(!ge||N&1)&&G!==(G=ut((Oe=(Be=T[0])==null?void 0:Be.config)==null?void 0:Oe.workflowExecutionRetentionTtl.toString())+"")&&z(_,G);const Le={};N&1&&(Le.type=T[7]((Me=(Ce=T[0])==null?void 0:Ce.config)==null?void 0:Me.historyArchivalState)),N&131073&&(Le.$$scope={dirty:N,ctx:T}),U.$set(Le);const Te={};N&1&&(Te.type=T[7]((ke=(je=T[0])==null?void 0:je.config)==null?void 0:ke.visibilityArchivalState)),N&131073&&(Te.$$scope={dirty:N,ctx:T}),h.$set(Te),(!ge||N&1)&&he!==(he=(((Ue=T[0])==null?void 0:Ue.failoverVersion)||"")+"")&&z(Ee,he),(!ge||N&2)&&z(Ge,T[1])},i(T){ge||(j(d.$$.fragment,T),j(U.$$.fragment,T),j(h.$$.fragment,T),ge=!0)},o(T){F(d.$$.fragment,T),F(U.$$.fragment,T),F(h.$$.fragment,T),ge=!1},d(T){T&&(s(e),s(u),s(g),s(V),s(w),s(A),s(M),s(ae),s(se),s(H),s(q),s($e),s(oe)),X(d),X(U),X(h)}}}function Mt(r){let e,a=`${L("namespaces.namespace")} ${L("common.details")}`,t;return{c(){e=p("caption"),t=E(a),this.h()},l(l){e=m(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){P(e,"class","sr-only"),P(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function jt(r){let e,a='';return{c(){e=p("tr"),e.innerHTML=a,this.h()},l(t){e=m(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-1o0fni"&&(e.innerHTML=a),this.h()},h(){P(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Ut(r){let e,a,t="Temporal Server Version",l,n,i,c,o,u,g="Temporal UI Version",y,O,B;return{c(){e=p("tr"),a=p("td"),a.textContent=t,l=R(),n=p("td"),i=E(r[3]),c=R(),o=p("tr"),u=p("td"),u.textContent=g,y=R(),O=p("td"),B=E(r[4]),this.h()},l(C){e=m(C,"TR",{"data-testid":!0});var b=v(e);a=m(b,"TD",{"data-svelte-h":!0}),Fe(a)!=="svelte-k30jnx"&&(a.textContent=t),l=I(b),n=m(b,"TD",{});var d=v(n);i=D(d,r[3]),d.forEach(s),b.forEach(s),c=I(C),o=m(C,"TR",{"data-testid":!0});var V=v(o);u=m(V,"TD",{"data-svelte-h":!0}),Fe(u)!=="svelte-1agaz4i"&&(u.textContent=g),y=I(V),O=m(V,"TD",{});var w=v(O);B=D(w,r[4]),w.forEach(s),V.forEach(s),this.h()},h(){P(e,"data-testid","server-version"),P(o,"data-testid","ui-version")},m(C,b){$(C,e,b),f(e,a),f(e,l),f(e,n),f(n,i),$(C,c,b),$(C,o,b),f(o,u),f(o,y),f(o,O),f(O,B)},p(C,b){b&8&&z(i,C[3]),b&16&&z(B,C[4])},d(C){C&&(s(e),s(c),s(o))}}}function Ft(r){let e,a=L("namespaces.versions")+"",t;return{c(){e=p("caption"),t=E(a),this.h()},l(l){e=m(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){P(e,"class","sr-only"),P(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function Gt(r){let e,a='';return{c(){e=p("tr"),e.innerHTML=a,this.h()},l(t){e=m(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-10s5xnz"&&(e.innerHTML=a),this.h()},h(){P(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Wt(r){let e=r[9](r[5].disableWriteActions)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&z(a,e)},d(t){t&&s(a)}}}function zt(r){let e=r[9](r[5].workflowTerminateDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function qt(r){let e=r[9](r[5].workflowCancelDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Jt(r){let e=r[9](r[5].workflowSignalDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Kt(r){let e=r[9](r[5].workflowResetDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Qt(r){let e,a,t=L("namespaces.client-actions")+"",l,n,i,c,o,u,g,y=L("workflows.terminate-modal-title")+"",O,B,C,b,d,V,w,Y=L("workflows.cancel-modal-title")+"",W,Z,k,S,G,_,A,M=L("namespaces.signal-workflow")+"",x,pe,le,ee,te,U,ae,se=L("workflows.reset-modal-title")+"",me,Re,_e,re,fe;return c=new be({props:{class:"px-1 py-0",type:r[8](r[5].disableWriteActions),$$slots:{default:[Wt]},$$scope:{ctx:r}}}),b=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowTerminateDisabled),$$slots:{default:[zt]},$$scope:{ctx:r}}}),S=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowCancelDisabled),$$slots:{default:[qt]},$$scope:{ctx:r}}}),ee=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowSignalDisabled),$$slots:{default:[Jt]},$$scope:{ctx:r}}}),re=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowResetDisabled),$$slots:{default:[Kt]},$$scope:{ctx:r}}}),{c(){e=p("tr"),a=p("td"),l=E(t),n=R(),i=p("td"),J(c.$$.fragment),o=R(),u=p("tr"),g=p("td"),O=E(y),B=R(),C=p("td"),J(b.$$.fragment),d=R(),V=p("tr"),w=p("td"),W=E(Y),Z=R(),k=p("td"),J(S.$$.fragment),G=R(),_=p("tr"),A=p("td"),x=E(M),pe=R(),le=p("td"),J(ee.$$.fragment),te=R(),U=p("tr"),ae=p("td"),me=E(se),Re=R(),_e=p("td"),J(re.$$.fragment)},l(h){e=m(h,"TR",{});var H=v(e);a=m(H,"TD",{});var q=v(a);l=D(q,t),q.forEach(s),n=I(H),i=m(H,"TD",{});var ne=v(i);K(c.$$.fragment,ne),ne.forEach(s),H.forEach(s),o=I(h),u=m(h,"TR",{});var ie=v(u);g=m(ie,"TD",{});var ce=v(g);O=D(ce,y),ce.forEach(s),B=I(ie),C=m(ie,"TD",{});var ue=v(C);K(b.$$.fragment,ue),ue.forEach(s),ie.forEach(s),d=I(h),V=m(h,"TR",{});var de=v(V);w=m(de,"TD",{});var he=v(w);W=D(he,Y),he.forEach(s),Z=I(de),k=m(de,"TD",{});var Ee=v(k);K(S.$$.fragment,Ee),Ee.forEach(s),de.forEach(s),G=I(h),_=m(h,"TR",{});var $e=v(_);A=m($e,"TD",{});var oe=v(A);x=D(oe,M),oe.forEach(s),pe=I($e),le=m($e,"TD",{});var ve=v(le);K(ee.$$.fragment,ve),ve.forEach(s),$e.forEach(s),te=I(h),U=m(h,"TR",{});var De=v(U);ae=m(De,"TD",{});var Ie=v(ae);me=D(Ie,se),Ie.forEach(s),Re=I(De),_e=m(De,"TD",{});var Se=v(_e);K(re.$$.fragment,Se),Se.forEach(s),De.forEach(s)},m(h,H){$(h,e,H),f(e,a),f(a,l),f(e,n),f(e,i),Q(c,i,null),$(h,o,H),$(h,u,H),f(u,g),f(g,O),f(u,B),f(u,C),Q(b,C,null),$(h,d,H),$(h,V,H),f(V,w),f(w,W),f(V,Z),f(V,k),Q(S,k,null),$(h,G,H),$(h,_,H),f(_,A),f(A,x),f(_,pe),f(_,le),Q(ee,le,null),$(h,te,H),$(h,U,H),f(U,ae),f(ae,me),f(U,Re),f(U,_e),Q(re,_e,null),fe=!0},p(h,H){const q={};H&32&&(q.type=h[8](h[5].disableWriteActions)),H&131104&&(q.$$scope={dirty:H,ctx:h}),c.$set(q);const ne={};H&32&&(ne.type=h[8](h[5].workflowTerminateDisabled)),H&131104&&(ne.$$scope={dirty:H,ctx:h}),b.$set(ne);const ie={};H&32&&(ie.type=h[8](h[5].workflowCancelDisabled)),H&131104&&(ie.$$scope={dirty:H,ctx:h}),S.$set(ie);const ce={};H&32&&(ce.type=h[8](h[5].workflowSignalDisabled)),H&131104&&(ce.$$scope={dirty:H,ctx:h}),ee.$set(ce);const ue={};H&32&&(ue.type=h[8](h[5].workflowResetDisabled)),H&131104&&(ue.$$scope={dirty:H,ctx:h}),re.$set(ue)},i(h){fe||(j(c.$$.fragment,h),j(b.$$.fragment,h),j(S.$$.fragment,h),j(ee.$$.fragment,h),j(re.$$.fragment,h),fe=!0)},o(h){F(c.$$.fragment,h),F(b.$$.fragment,h),F(S.$$.fragment,h),F(ee.$$.fragment,h),F(re.$$.fragment,h),fe=!1},d(h){h&&(s(e),s(o),s(u),s(d),s(V),s(G),s(_),s(te),s(U)),X(c),X(b),X(S),X(ee),X(re)}}}function Xt(r){let e,a=L("namespaces.client-actions")+"",t;return{c(){e=p("caption"),t=E(a),this.h()},l(l){e=m(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){P(e,"class","sr-only"),P(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function Yt(r){let e,a='';return{c(){e=p("tr"),e.innerHTML=a,this.h()},l(t){e=m(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-1o0fni"&&(e.innerHTML=a),this.h()},h(){P(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Zt(r){let e,a,t=L("common.details")+"",l,n,i,c,o,u,g=L("namespaces.versions")+"",y,O,B,C,b,d,V=L("namespaces.client-actions")+"",w,Y,W,Z;return i=new qe({props:{variant:"simple",$$slots:{headers:[jt],caption:[Mt],default:[Ot]},$$scope:{ctx:r}}}),B=new qe({props:{variant:"simple",$$slots:{headers:[Gt],caption:[Ft],default:[Ut]},$$scope:{ctx:r}}}),W=new qe({props:{variant:"simple",$$slots:{headers:[Yt],caption:[Xt],default:[Qt]},$$scope:{ctx:r}}}),{c(){e=p("article"),a=p("h3"),l=E(t),n=R(),J(i.$$.fragment),c=R(),o=p("article"),u=p("h3"),y=E(g),O=R(),J(B.$$.fragment),C=R(),b=p("article"),d=p("h3"),w=E(V),Y=R(),J(W.$$.fragment),this.h()},l(k){e=m(k,"ARTICLE",{class:!0});var S=v(e);a=m(S,"H3",{class:!0});var G=v(a);l=D(G,t),G.forEach(s),n=I(S),K(i.$$.fragment,S),S.forEach(s),c=I(k),o=m(k,"ARTICLE",{class:!0});var _=v(o);u=m(_,"H3",{class:!0});var A=v(u);y=D(A,g),A.forEach(s),O=I(_),K(B.$$.fragment,_),_.forEach(s),C=I(k),b=m(k,"ARTICLE",{class:!0});var M=v(b);d=m(M,"H3",{class:!0});var x=v(d);w=D(x,V),x.forEach(s),Y=I(M),K(W.$$.fragment,M),M.forEach(s),this.h()},h(){P(a,"class","text-lg font-medium"),P(e,"class","namespace-info flex w-full flex-col"),P(u,"class","text-lg font-medium"),P(o,"class","namespace-info flex w-full flex-col"),P(d,"class","text-lg font-medium"),P(b,"class","namespace-info flex w-full flex-col")},m(k,S){$(k,e,S),f(e,a),f(a,l),f(e,n),Q(i,e,null),$(k,c,S),$(k,o,S),f(o,u),f(u,y),f(o,O),Q(B,o,null),$(k,C,S),$(k,b,S),f(b,d),f(d,w),f(b,Y),Q(W,b,null),Z=!0},p(k,S){const G={};S&131075&&(G.$$scope={dirty:S,ctx:k}),i.$set(G);const _={};S&131096&&(_.$$scope={dirty:S,ctx:k}),B.$set(_);const A={};S&131104&&(A.$$scope={dirty:S,ctx:k}),W.$set(A)},i(k){Z||(j(i.$$.fragment,k),j(B.$$.fragment,k),j(W.$$.fragment,k),Z=!0)},o(k){F(i.$$.fragment,k),F(B.$$.fragment,k),F(W.$$.fragment,k),Z=!1},d(k){k&&(s(e),s(c),s(o),s(C),s(b)),X(i),X(B),X(W)}}}function pt(r){let e,a,t=L("events.attribute-group.search-attributes")+"",l,n,i,c;return i=new qe({props:{class:"w-full",$$slots:{headers:[la],caption:[ta],default:[ea]},$$scope:{ctx:r}}}),{c(){e=p("section"),a=p("h3"),l=E(t),n=R(),J(i.$$.fragment),this.h()},l(o){e=m(o,"SECTION",{});var u=v(e);a=m(u,"H3",{class:!0});var g=v(a);l=D(g,t),g.forEach(s),n=I(u),K(i.$$.fragment,u),u.forEach(s),this.h()},h(){P(a,"class","my-4 text-lg font-medium")},m(o,u){$(o,e,u),f(e,a),f(a,l),f(e,n),Q(i,e,null),c=!0},p(o,u){const g={};u&131136&&(g.$$scope={dirty:u,ctx:o}),i.$set(g)},i(o){c||(j(i.$$.fragment,o),c=!0)},o(o){F(i.$$.fragment,o),c=!1},d(o){o&&s(e),X(i)}}}function xt(r){let e,a=r[13]+"",t,l,n,i=r[14]+"",c,o;return{c(){e=p("td"),t=E(a),l=R(),n=p("td"),c=E(i),o=R()},l(u){e=m(u,"TD",{});var g=v(e);t=D(g,a),g.forEach(s),l=I(u),n=m(u,"TD",{});var y=v(n);c=D(y,i),y.forEach(s),o=I(u)},m(u,g){$(u,e,g),f(e,t),$(u,l,g),$(u,n,g),f(n,c),$(u,o,g)},p(u,g){g&64&&a!==(a=u[13]+"")&&z(t,a),g&64&&i!==(i=u[14]+"")&&z(c,i)},d(u){u&&(s(e),s(l),s(n),s(o))}}}function mt(r){let e,a;return e=new Rt({props:{$$slots:{default:[xt]},$$scope:{ctx:r}}}),{c(){J(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,l){Q(e,t,l),a=!0},p(t,l){const n={};l&131136&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){X(e,t)}}}function ea(r){let e,a,t=ft(Object.entries(r[6])),l=[];for(let i=0;iF(l[i],1,1,()=>{l[i]=null});return{c(){for(let i=0;i{w=null}),_t())},i(_){V||(j(e.$$.fragment,_),j(C.$$.fragment,_),j(w),V=!0)},o(_){F(e.$$.fragment,_),F(C.$$.fragment,_),F(w),V=!1},d(_){_&&(s(a),s(t),s(u),s(g),s(B),s(b),s(d)),X(e,_),X(C,_),w&&w.d(_)}}}function ra(r,e,a){let t,l,n,i,c,o,u,g;Ne(r,ct,d=>a(12,n=d)),Ne(r,Dt,d=>a(2,i=d)),Ne(r,Ht,d=>a(3,c=d)),Ne(r,Lt,d=>a(4,o=d)),Ne(r,St,d=>a(5,u=d)),Ne(r,It,d=>a(6,g=d));let{data:y}=e;var O;(function(d){d[d.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",d[d.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",d[d.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(O||(O={}));const B=d=>d===O.ARCHIVAL_STATE_ENABLED?"active":"inactive",C=(d,V=!0)=>V?d?"inactive":"active":d?"active":"inactive",b=d=>d?L("common.disabled"):L("common.enabled");return gt(()=>{var d;bt(ct,n=(d=t==null?void 0:t.namespaceInfo)===null||d===void 0?void 0:d.name,n)}),r.$$set=d=>{"data"in d&&a(10,y=d.data)},r.$$.update=()=>{r.$$.dirty&1024&&a(0,{namespace:t,clusters:l}=y,t,(a(1,l),a(10,y)))},[t,l,i,c,o,u,g,B,C,b,y]}class Ea extends wt{constructor(e){super(),Et(this,e,ra,sa,vt,{data:10})}}export{Ea as component,wa as universal}; +import{f as ht}from"../chunks/namespaces-service.1V5QHpxG.js";import{s as vt,a as R,e as p,t as E,x as Je,h as I,b as m,d as v,f as D,g as s,j as P,k as $,l as f,n as z,c as Ne,S as gt,y as Tt,v as we,w as bt,i as Fe}from"../chunks/scheduler.AWtTlMeO.js";import{S as wt,i as Et,c as J,a as K,m as Q,t as j,b as F,e as _t,d as X,g as $t}from"../chunks/index.91lpp7Ff.js";import{e as ft}from"../chunks/each.QPLN4A2E.js";import{p as Dt}from"../chunks/stores.meYYndLY.js";import{P as At}from"../chunks/page-title.HGZyp4X5.js";import{B as be}from"../chunks/badge.mHsIdLRu.js";import{C as Ct}from"../chunks/card.HPQqbKjD.js";import{T as qe,a as kt}from"../chunks/table-header-row.xBvT5iU5.js";import{T as Rt}from"../chunks/table-row.rkx8mFVk.js";import{t as L}from"../chunks/translate.HrioCK44.js";import{l as ct}from"../chunks/namespaces.ZCqOs8RA.js";import{s as It}from"../chunks/search-attributes.lxP-EZjZ.js";import{s as St}from"../chunks/settings.oP-XN2ls.js";import{t as Ht,u as Lt}from"../chunks/versions.l3g3WUor.js";import{a as ut}from"../chunks/format-time.6T8OwT4v.js";const Nt=r=>{var t,l;const e=(t=r==null?void 0:r.replicationConfig)==null?void 0:t.clusters,a=(l=r==null?void 0:r.replicationConfig)==null?void 0:l.activeClusterName;return e!=null&&e.length?e.map(({clusterName:n})=>n===a?`${n} (active)`:n).join(", "):"Unknown"},yt=async function({params:r,parent:e,url:a}){const{searchParams:t}=a;t.has("time-range")&&t.delete("time-range"),await e();const l=await ht(r.namespace),n=Nt(l);return{namespace:l,clusters:n}},wa=Object.freeze(Object.defineProperty({__proto__:null,load:yt},Symbol.toStringTag,{value:"Module"}));function dt(r,e,a){const t=r.slice();return t[13]=e[a][0],t[14]=e[a][1],t}function Vt(r){var t;let e=((t=r[0])!=null&&t.isGlobalNamespace?L("common.yes"):L("common.no"))+"",a;return{c(){a=E(e)},l(l){a=D(l,e)},m(l,n){$(l,a,n)},p(l,n){var i;n&1&&e!==(e=((i=l[0])!=null&&i.isGlobalNamespace?L("common.yes"):L("common.no"))+"")&&z(a,e)},d(l){l&&s(a)}}}function Pt(r){var t,l;let e=((l=(t=r[0])==null?void 0:t.config)==null?void 0:l.historyArchivalState)+"",a;return{c(){a=E(e)},l(n){a=D(n,e)},m(n,i){$(n,a,i)},p(n,i){var c,o;i&1&&e!==(e=((o=(c=n[0])==null?void 0:c.config)==null?void 0:o.historyArchivalState)+"")&&z(a,e)},d(n){n&&s(a)}}}function Bt(r){var t,l;let e=((l=(t=r[0])==null?void 0:t.config)==null?void 0:l.visibilityArchivalState)+"",a;return{c(){a=E(e)},l(n){a=D(n,e)},m(n,i){$(n,a,i)},p(n,i){var c,o;i&1&&e!==(e=((o=(c=n[0])==null?void 0:c.config)==null?void 0:o.visibilityArchivalState)+"")&&z(a,e)},d(n){n&&s(a)}}}function Ot(r){var Ke,Qe,Xe,Ye,Ze,xe,et,tt,at,lt;let e,a,t=L("namespaces.owner")+"",l,n,i,c=(((Qe=(Ke=r[0])==null?void 0:Ke.namespaceInfo)==null?void 0:Qe.ownerEmail)||L("common.unknown"))+"",o,u,g,y,O=L("namespaces.global")+"",B,C,b,d,V,w,Y,W=L("namespaces.retention-period")+"",Z,k,S,G=ut((Ye=(Xe=r[0])==null?void 0:Xe.config)==null?void 0:Ye.workflowExecutionRetentionTtl.toString())+"",_,A,M,x,pe=L("namespaces.history-archival")+"",le,ee,te,U,ae,se,me,Re=L("namespaces.visibility-archival")+"",_e,re,fe,h,H,q,ne,ie=L("namespaces.failover-version")+"",ce,ue,de,he=(((Ze=r[0])==null?void 0:Ze.failoverVersion)||"")+"",Ee,$e,oe,ve,De=L("namespaces.clusters")+"",Ie,Se,ye,Ge,ge;return d=new be({props:{class:"px-1 py-0",type:r[8]((xe=r[0])==null?void 0:xe.isGlobalNamespace,!1),$$slots:{default:[Vt]},$$scope:{ctx:r}}}),U=new be({props:{class:"px-1 py-0",type:r[7]((tt=(et=r[0])==null?void 0:et.config)==null?void 0:tt.historyArchivalState),$$slots:{default:[Pt]},$$scope:{ctx:r}}}),h=new be({props:{class:"px-1 py-0",type:r[7]((lt=(at=r[0])==null?void 0:at.config)==null?void 0:lt.visibilityArchivalState),$$slots:{default:[Bt]},$$scope:{ctx:r}}}),{c(){e=p("tr"),a=p("td"),l=E(t),n=R(),i=p("td"),o=E(c),u=R(),g=p("tr"),y=p("td"),B=E(O),C=R(),b=p("td"),J(d.$$.fragment),V=R(),w=p("tr"),Y=p("td"),Z=E(W),k=R(),S=p("td"),_=E(G),A=R(),M=p("tr"),x=p("td"),le=E(pe),ee=R(),te=p("td"),J(U.$$.fragment),ae=R(),se=p("tr"),me=p("td"),_e=E(Re),re=R(),fe=p("td"),J(h.$$.fragment),H=R(),q=p("tr"),ne=p("td"),ce=E(ie),ue=R(),de=p("td"),Ee=E(he),$e=R(),oe=p("tr"),ve=p("td"),Ie=E(De),Se=R(),ye=p("td"),Ge=E(r[1]),this.h()},l(T){e=m(T,"TR",{"data-testid":!0});var N=v(e);a=m(N,"TD",{});var He=v(a);l=D(He,t),He.forEach(s),n=I(N),i=m(N,"TD",{});var Le=v(i);o=D(Le,c),Le.forEach(s),N.forEach(s),u=I(T),g=m(T,"TR",{"data-testid":!0});var Te=v(g);y=m(Te,"TD",{});var Ve=v(y);B=D(Ve,O),Ve.forEach(s),C=I(Te),b=m(Te,"TD",{});var Pe=v(b);K(d.$$.fragment,Pe),Pe.forEach(s),Te.forEach(s),V=I(T),w=m(T,"TR",{"data-testid":!0});var Ae=v(w);Y=m(Ae,"TD",{});var Be=v(Y);Z=D(Be,W),Be.forEach(s),k=I(Ae),S=m(Ae,"TD",{});var Oe=v(S);_=D(Oe,G),Oe.forEach(s),Ae.forEach(s),A=I(T),M=m(T,"TR",{"data-testid":!0});var Ce=v(M);x=m(Ce,"TD",{});var Me=v(x);le=D(Me,pe),Me.forEach(s),ee=I(Ce),te=m(Ce,"TD",{});var je=v(te);K(U.$$.fragment,je),je.forEach(s),Ce.forEach(s),ae=I(T),se=m(T,"TR",{"data-testid":!0});var ke=v(se);me=m(ke,"TD",{});var Ue=v(me);_e=D(Ue,Re),Ue.forEach(s),re=I(ke),fe=m(ke,"TD",{});var st=v(fe);K(h.$$.fragment,st),st.forEach(s),ke.forEach(s),H=I(T),q=m(T,"TR",{"data-testid":!0});var We=v(q);ne=m(We,"TD",{});var rt=v(ne);ce=D(rt,ie),rt.forEach(s),ue=I(We),de=m(We,"TD",{});var nt=v(de);Ee=D(nt,he),nt.forEach(s),We.forEach(s),$e=I(T),oe=m(T,"TR",{"data-testid":!0});var ze=v(oe);ve=m(ze,"TD",{});var ot=v(ve);Ie=D(ot,De),ot.forEach(s),Se=I(ze),ye=m(ze,"TD",{});var it=v(ye);Ge=D(it,r[1]),it.forEach(s),ze.forEach(s),this.h()},h(){P(e,"data-testid","namespace-owner"),P(g,"data-testid","namespace-global"),P(w,"data-testid","namespace-retention"),P(M,"data-testid","namespace-history"),P(se,"data-testid","namespace-visibility"),P(q,"data-testid","namespace-failover"),P(oe,"data-testid","namespace-clusters")},m(T,N){$(T,e,N),f(e,a),f(a,l),f(e,n),f(e,i),f(i,o),$(T,u,N),$(T,g,N),f(g,y),f(y,B),f(g,C),f(g,b),Q(d,b,null),$(T,V,N),$(T,w,N),f(w,Y),f(Y,Z),f(w,k),f(w,S),f(S,_),$(T,A,N),$(T,M,N),f(M,x),f(x,le),f(M,ee),f(M,te),Q(U,te,null),$(T,ae,N),$(T,se,N),f(se,me),f(me,_e),f(se,re),f(se,fe),Q(h,fe,null),$(T,H,N),$(T,q,N),f(q,ne),f(ne,ce),f(q,ue),f(q,de),f(de,Ee),$(T,$e,N),$(T,oe,N),f(oe,ve),f(ve,Ie),f(oe,Se),f(oe,ye),f(ye,Ge),ge=!0},p(T,N){var Ve,Pe,Ae,Be,Oe,Ce,Me,je,ke,Ue;(!ge||N&1)&&c!==(c=(((Pe=(Ve=T[0])==null?void 0:Ve.namespaceInfo)==null?void 0:Pe.ownerEmail)||L("common.unknown"))+"")&&z(o,c);const He={};N&1&&(He.type=T[8]((Ae=T[0])==null?void 0:Ae.isGlobalNamespace,!1)),N&131073&&(He.$$scope={dirty:N,ctx:T}),d.$set(He),(!ge||N&1)&&G!==(G=ut((Oe=(Be=T[0])==null?void 0:Be.config)==null?void 0:Oe.workflowExecutionRetentionTtl.toString())+"")&&z(_,G);const Le={};N&1&&(Le.type=T[7]((Me=(Ce=T[0])==null?void 0:Ce.config)==null?void 0:Me.historyArchivalState)),N&131073&&(Le.$$scope={dirty:N,ctx:T}),U.$set(Le);const Te={};N&1&&(Te.type=T[7]((ke=(je=T[0])==null?void 0:je.config)==null?void 0:ke.visibilityArchivalState)),N&131073&&(Te.$$scope={dirty:N,ctx:T}),h.$set(Te),(!ge||N&1)&&he!==(he=(((Ue=T[0])==null?void 0:Ue.failoverVersion)||"")+"")&&z(Ee,he),(!ge||N&2)&&z(Ge,T[1])},i(T){ge||(j(d.$$.fragment,T),j(U.$$.fragment,T),j(h.$$.fragment,T),ge=!0)},o(T){F(d.$$.fragment,T),F(U.$$.fragment,T),F(h.$$.fragment,T),ge=!1},d(T){T&&(s(e),s(u),s(g),s(V),s(w),s(A),s(M),s(ae),s(se),s(H),s(q),s($e),s(oe)),X(d),X(U),X(h)}}}function Mt(r){let e,a=`${L("namespaces.namespace")} ${L("common.details")}`,t;return{c(){e=p("caption"),t=E(a),this.h()},l(l){e=m(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){P(e,"class","sr-only"),P(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function jt(r){let e,a='';return{c(){e=p("tr"),e.innerHTML=a,this.h()},l(t){e=m(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-1o0fni"&&(e.innerHTML=a),this.h()},h(){P(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Ut(r){let e,a,t="Temporal Server Version",l,n,i,c,o,u,g="Temporal UI Version",y,O,B;return{c(){e=p("tr"),a=p("td"),a.textContent=t,l=R(),n=p("td"),i=E(r[3]),c=R(),o=p("tr"),u=p("td"),u.textContent=g,y=R(),O=p("td"),B=E(r[4]),this.h()},l(C){e=m(C,"TR",{"data-testid":!0});var b=v(e);a=m(b,"TD",{"data-svelte-h":!0}),Fe(a)!=="svelte-k30jnx"&&(a.textContent=t),l=I(b),n=m(b,"TD",{});var d=v(n);i=D(d,r[3]),d.forEach(s),b.forEach(s),c=I(C),o=m(C,"TR",{"data-testid":!0});var V=v(o);u=m(V,"TD",{"data-svelte-h":!0}),Fe(u)!=="svelte-1agaz4i"&&(u.textContent=g),y=I(V),O=m(V,"TD",{});var w=v(O);B=D(w,r[4]),w.forEach(s),V.forEach(s),this.h()},h(){P(e,"data-testid","server-version"),P(o,"data-testid","ui-version")},m(C,b){$(C,e,b),f(e,a),f(e,l),f(e,n),f(n,i),$(C,c,b),$(C,o,b),f(o,u),f(o,y),f(o,O),f(O,B)},p(C,b){b&8&&z(i,C[3]),b&16&&z(B,C[4])},d(C){C&&(s(e),s(c),s(o))}}}function Ft(r){let e,a=L("namespaces.versions")+"",t;return{c(){e=p("caption"),t=E(a),this.h()},l(l){e=m(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){P(e,"class","sr-only"),P(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function Gt(r){let e,a='';return{c(){e=p("tr"),e.innerHTML=a,this.h()},l(t){e=m(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-10s5xnz"&&(e.innerHTML=a),this.h()},h(){P(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Wt(r){let e=r[9](r[5].disableWriteActions)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&z(a,e)},d(t){t&&s(a)}}}function zt(r){let e=r[9](r[5].workflowTerminateDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function qt(r){let e=r[9](r[5].workflowCancelDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Jt(r){let e=r[9](r[5].workflowSignalDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Kt(r){let e=r[9](r[5].workflowResetDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Qt(r){let e,a,t=L("namespaces.client-actions")+"",l,n,i,c,o,u,g,y=L("workflows.terminate-modal-title")+"",O,B,C,b,d,V,w,Y=L("workflows.cancel-modal-title")+"",W,Z,k,S,G,_,A,M=L("namespaces.signal-workflow")+"",x,pe,le,ee,te,U,ae,se=L("workflows.reset-modal-title")+"",me,Re,_e,re,fe;return c=new be({props:{class:"px-1 py-0",type:r[8](r[5].disableWriteActions),$$slots:{default:[Wt]},$$scope:{ctx:r}}}),b=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowTerminateDisabled),$$slots:{default:[zt]},$$scope:{ctx:r}}}),S=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowCancelDisabled),$$slots:{default:[qt]},$$scope:{ctx:r}}}),ee=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowSignalDisabled),$$slots:{default:[Jt]},$$scope:{ctx:r}}}),re=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowResetDisabled),$$slots:{default:[Kt]},$$scope:{ctx:r}}}),{c(){e=p("tr"),a=p("td"),l=E(t),n=R(),i=p("td"),J(c.$$.fragment),o=R(),u=p("tr"),g=p("td"),O=E(y),B=R(),C=p("td"),J(b.$$.fragment),d=R(),V=p("tr"),w=p("td"),W=E(Y),Z=R(),k=p("td"),J(S.$$.fragment),G=R(),_=p("tr"),A=p("td"),x=E(M),pe=R(),le=p("td"),J(ee.$$.fragment),te=R(),U=p("tr"),ae=p("td"),me=E(se),Re=R(),_e=p("td"),J(re.$$.fragment)},l(h){e=m(h,"TR",{});var H=v(e);a=m(H,"TD",{});var q=v(a);l=D(q,t),q.forEach(s),n=I(H),i=m(H,"TD",{});var ne=v(i);K(c.$$.fragment,ne),ne.forEach(s),H.forEach(s),o=I(h),u=m(h,"TR",{});var ie=v(u);g=m(ie,"TD",{});var ce=v(g);O=D(ce,y),ce.forEach(s),B=I(ie),C=m(ie,"TD",{});var ue=v(C);K(b.$$.fragment,ue),ue.forEach(s),ie.forEach(s),d=I(h),V=m(h,"TR",{});var de=v(V);w=m(de,"TD",{});var he=v(w);W=D(he,Y),he.forEach(s),Z=I(de),k=m(de,"TD",{});var Ee=v(k);K(S.$$.fragment,Ee),Ee.forEach(s),de.forEach(s),G=I(h),_=m(h,"TR",{});var $e=v(_);A=m($e,"TD",{});var oe=v(A);x=D(oe,M),oe.forEach(s),pe=I($e),le=m($e,"TD",{});var ve=v(le);K(ee.$$.fragment,ve),ve.forEach(s),$e.forEach(s),te=I(h),U=m(h,"TR",{});var De=v(U);ae=m(De,"TD",{});var Ie=v(ae);me=D(Ie,se),Ie.forEach(s),Re=I(De),_e=m(De,"TD",{});var Se=v(_e);K(re.$$.fragment,Se),Se.forEach(s),De.forEach(s)},m(h,H){$(h,e,H),f(e,a),f(a,l),f(e,n),f(e,i),Q(c,i,null),$(h,o,H),$(h,u,H),f(u,g),f(g,O),f(u,B),f(u,C),Q(b,C,null),$(h,d,H),$(h,V,H),f(V,w),f(w,W),f(V,Z),f(V,k),Q(S,k,null),$(h,G,H),$(h,_,H),f(_,A),f(A,x),f(_,pe),f(_,le),Q(ee,le,null),$(h,te,H),$(h,U,H),f(U,ae),f(ae,me),f(U,Re),f(U,_e),Q(re,_e,null),fe=!0},p(h,H){const q={};H&32&&(q.type=h[8](h[5].disableWriteActions)),H&131104&&(q.$$scope={dirty:H,ctx:h}),c.$set(q);const ne={};H&32&&(ne.type=h[8](h[5].workflowTerminateDisabled)),H&131104&&(ne.$$scope={dirty:H,ctx:h}),b.$set(ne);const ie={};H&32&&(ie.type=h[8](h[5].workflowCancelDisabled)),H&131104&&(ie.$$scope={dirty:H,ctx:h}),S.$set(ie);const ce={};H&32&&(ce.type=h[8](h[5].workflowSignalDisabled)),H&131104&&(ce.$$scope={dirty:H,ctx:h}),ee.$set(ce);const ue={};H&32&&(ue.type=h[8](h[5].workflowResetDisabled)),H&131104&&(ue.$$scope={dirty:H,ctx:h}),re.$set(ue)},i(h){fe||(j(c.$$.fragment,h),j(b.$$.fragment,h),j(S.$$.fragment,h),j(ee.$$.fragment,h),j(re.$$.fragment,h),fe=!0)},o(h){F(c.$$.fragment,h),F(b.$$.fragment,h),F(S.$$.fragment,h),F(ee.$$.fragment,h),F(re.$$.fragment,h),fe=!1},d(h){h&&(s(e),s(o),s(u),s(d),s(V),s(G),s(_),s(te),s(U)),X(c),X(b),X(S),X(ee),X(re)}}}function Xt(r){let e,a=L("namespaces.client-actions")+"",t;return{c(){e=p("caption"),t=E(a),this.h()},l(l){e=m(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){P(e,"class","sr-only"),P(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function Yt(r){let e,a='';return{c(){e=p("tr"),e.innerHTML=a,this.h()},l(t){e=m(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-1o0fni"&&(e.innerHTML=a),this.h()},h(){P(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Zt(r){let e,a,t=L("common.details")+"",l,n,i,c,o,u,g=L("namespaces.versions")+"",y,O,B,C,b,d,V=L("namespaces.client-actions")+"",w,Y,W,Z;return i=new qe({props:{variant:"simple",$$slots:{headers:[jt],caption:[Mt],default:[Ot]},$$scope:{ctx:r}}}),B=new qe({props:{variant:"simple",$$slots:{headers:[Gt],caption:[Ft],default:[Ut]},$$scope:{ctx:r}}}),W=new qe({props:{variant:"simple",$$slots:{headers:[Yt],caption:[Xt],default:[Qt]},$$scope:{ctx:r}}}),{c(){e=p("article"),a=p("h3"),l=E(t),n=R(),J(i.$$.fragment),c=R(),o=p("article"),u=p("h3"),y=E(g),O=R(),J(B.$$.fragment),C=R(),b=p("article"),d=p("h3"),w=E(V),Y=R(),J(W.$$.fragment),this.h()},l(k){e=m(k,"ARTICLE",{class:!0});var S=v(e);a=m(S,"H3",{class:!0});var G=v(a);l=D(G,t),G.forEach(s),n=I(S),K(i.$$.fragment,S),S.forEach(s),c=I(k),o=m(k,"ARTICLE",{class:!0});var _=v(o);u=m(_,"H3",{class:!0});var A=v(u);y=D(A,g),A.forEach(s),O=I(_),K(B.$$.fragment,_),_.forEach(s),C=I(k),b=m(k,"ARTICLE",{class:!0});var M=v(b);d=m(M,"H3",{class:!0});var x=v(d);w=D(x,V),x.forEach(s),Y=I(M),K(W.$$.fragment,M),M.forEach(s),this.h()},h(){P(a,"class","text-lg font-medium"),P(e,"class","namespace-info flex w-full flex-col"),P(u,"class","text-lg font-medium"),P(o,"class","namespace-info flex w-full flex-col"),P(d,"class","text-lg font-medium"),P(b,"class","namespace-info flex w-full flex-col")},m(k,S){$(k,e,S),f(e,a),f(a,l),f(e,n),Q(i,e,null),$(k,c,S),$(k,o,S),f(o,u),f(u,y),f(o,O),Q(B,o,null),$(k,C,S),$(k,b,S),f(b,d),f(d,w),f(b,Y),Q(W,b,null),Z=!0},p(k,S){const G={};S&131075&&(G.$$scope={dirty:S,ctx:k}),i.$set(G);const _={};S&131096&&(_.$$scope={dirty:S,ctx:k}),B.$set(_);const A={};S&131104&&(A.$$scope={dirty:S,ctx:k}),W.$set(A)},i(k){Z||(j(i.$$.fragment,k),j(B.$$.fragment,k),j(W.$$.fragment,k),Z=!0)},o(k){F(i.$$.fragment,k),F(B.$$.fragment,k),F(W.$$.fragment,k),Z=!1},d(k){k&&(s(e),s(c),s(o),s(C),s(b)),X(i),X(B),X(W)}}}function pt(r){let e,a,t=L("events.attribute-group.search-attributes")+"",l,n,i,c;return i=new qe({props:{class:"w-full",$$slots:{headers:[la],caption:[ta],default:[ea]},$$scope:{ctx:r}}}),{c(){e=p("section"),a=p("h3"),l=E(t),n=R(),J(i.$$.fragment),this.h()},l(o){e=m(o,"SECTION",{});var u=v(e);a=m(u,"H3",{class:!0});var g=v(a);l=D(g,t),g.forEach(s),n=I(u),K(i.$$.fragment,u),u.forEach(s),this.h()},h(){P(a,"class","my-4 text-lg font-medium")},m(o,u){$(o,e,u),f(e,a),f(a,l),f(e,n),Q(i,e,null),c=!0},p(o,u){const g={};u&131136&&(g.$$scope={dirty:u,ctx:o}),i.$set(g)},i(o){c||(j(i.$$.fragment,o),c=!0)},o(o){F(i.$$.fragment,o),c=!1},d(o){o&&s(e),X(i)}}}function xt(r){let e,a=r[13]+"",t,l,n,i=r[14]+"",c,o;return{c(){e=p("td"),t=E(a),l=R(),n=p("td"),c=E(i),o=R()},l(u){e=m(u,"TD",{});var g=v(e);t=D(g,a),g.forEach(s),l=I(u),n=m(u,"TD",{});var y=v(n);c=D(y,i),y.forEach(s),o=I(u)},m(u,g){$(u,e,g),f(e,t),$(u,l,g),$(u,n,g),f(n,c),$(u,o,g)},p(u,g){g&64&&a!==(a=u[13]+"")&&z(t,a),g&64&&i!==(i=u[14]+"")&&z(c,i)},d(u){u&&(s(e),s(l),s(n),s(o))}}}function mt(r){let e,a;return e=new Rt({props:{$$slots:{default:[xt]},$$scope:{ctx:r}}}),{c(){J(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,l){Q(e,t,l),a=!0},p(t,l){const n={};l&131136&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){X(e,t)}}}function ea(r){let e,a,t=ft(Object.entries(r[6])),l=[];for(let i=0;iF(l[i],1,1,()=>{l[i]=null});return{c(){for(let i=0;i{w=null}),_t())},i(_){V||(j(e.$$.fragment,_),j(C.$$.fragment,_),j(w),V=!0)},o(_){F(e.$$.fragment,_),F(C.$$.fragment,_),F(w),V=!1},d(_){_&&(s(a),s(t),s(u),s(g),s(B),s(b),s(d)),X(e,_),X(C,_),w&&w.d(_)}}}function ra(r,e,a){let t,l,n,i,c,o,u,g;Ne(r,ct,d=>a(12,n=d)),Ne(r,Dt,d=>a(2,i=d)),Ne(r,Ht,d=>a(3,c=d)),Ne(r,Lt,d=>a(4,o=d)),Ne(r,St,d=>a(5,u=d)),Ne(r,It,d=>a(6,g=d));let{data:y}=e;var O;(function(d){d[d.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",d[d.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",d[d.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(O||(O={}));const B=d=>d===O.ARCHIVAL_STATE_ENABLED?"active":"inactive",C=(d,V=!0)=>V?d?"inactive":"active":d?"active":"inactive",b=d=>d?L("common.disabled"):L("common.enabled");return gt(()=>{var d;bt(ct,n=(d=t==null?void 0:t.namespaceInfo)===null||d===void 0?void 0:d.name,n)}),r.$$set=d=>{"data"in d&&a(10,y=d.data)},r.$$.update=()=>{r.$$.dirty&1024&&a(0,{namespace:t,clusters:l}=y,t,(a(1,l),a(10,y)))},[t,l,i,c,o,u,g,B,C,b,y]}class Ea extends wt{constructor(e){super(),Et(this,e,ra,sa,vt,{data:10})}}export{Ea as component,wa as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/18.VdgEwd3V.js b/ui/assets/local/_app/immutable/nodes/18.CrcyizJ0.js similarity index 96% rename from ui/assets/local/_app/immutable/nodes/18.VdgEwd3V.js rename to ui/assets/local/_app/immutable/nodes/18.CrcyizJ0.js index 489c726e7..2f9f5aad5 100644 --- a/ui/assets/local/_app/immutable/nodes/18.VdgEwd3V.js +++ b/ui/assets/local/_app/immutable/nodes/18.CrcyizJ0.js @@ -1 +1 @@ -import{f as mt}from"../chunks/namespaces-service.qZq6gppP.js";import{e as pt,g as ze}from"../chunks/workflows.K4-zDFP4.js";import{s as fe,c as ne,e as N,a as W,t as H,b as D,d as O,g as p,h as L,f as B,j as T,k as w,l as E,m as V,F as _t,a0 as ot,n as oe,G as $t,p as ht,u as dt,q as gt,r as wt,i as ae,v as K,z as Qe,A as Ue,B as Ge,L as nt,V as st,x as j,y as it}from"../chunks/scheduler.AWtTlMeO.js";import{S as ue,i as ce,c as S,a as I,m as P,t as b,b as k,d as F,f as ft,g as J,e as Y}from"../chunks/index.91lpp7Ff.js";import{e as ie,u as bt,o as vt}from"../chunks/each.QPLN4A2E.js";import{p as Ie}from"../chunks/stores.BjeHb2_D.js";import{P as kt}from"../chunks/page-title.HGZyp4X5.js";import{W as yt}from"../chunks/workflow-status.ASJz2ufm.js";import{t as Tt,F as Me}from"../chunks/tokenize.xvHRDyh7.js";import{L as Ne}from"../chunks/link.cs7LzqaH.js";import{T as Et}from"../chunks/table-row.rkx8mFVk.js";import{t as v}from"../chunks/translate.HrioCK44.js";import{t as Ae,r as Ct,f as ee}from"../chunks/time-format.gNW0s4c3.js";import{j as St,k as It,l as Pt,m as Ve,n as Ke}from"../chunks/format-time.6T8OwT4v.js";import{m as Ft}from"../chunks/has.-dFYEuQV.js";import{b as At}from"../chunks/route-for.LRddn_DS.js";import{u as ut}from"../chunks/update-query-parameters.Mxd4zKR7.js";import{T as qt,a as Nt}from"../chunks/table-header-row.xBvT5iU5.js";import{C as De}from"../chunks/code-block.PIA3laOL.js";import{E as Dt}from"../chunks/empty-state.cnx-bHYa.js";import{P as Wt}from"../chunks/pagination.EhyZpL-k.js";import{g as Lt}from"../chunks/entry.49-_VqMH.js";import{g as Ht}from"../chunks/_commonjsHelpers.4gQjN7DL.js";import{B as Bt}from"../chunks/button.J_9D2qip.js";import{I as ct}from"../chunks/input.Oj66r1n-.js";import{F as Xe}from"../chunks/pagination.9GMcGm8o.js";import{S as Ot,a as ve}from"../chunks/simple-select.UwK7ouLh.js";import{d as Rt}from"../chunks/index.OI4ueFuJ.js";const jt=async function({params:o,url:e}){var f,m,C,y,A,U,R,X;const{searchParams:r}=e;r.has("time-range")||r.set("time-range","1 day");const t=r.get("workflow-id"),l=r.get("workflow-type"),i=r.get("time-range"),n=r.get("status"),a=await mt(o.namespace),s=(C=(m=(f=a.config)==null?void 0:f.historyArchivalUri)==null?void 0:m.toLowerCase())==null?void 0:C.startsWith("s3://"),c=(U=(A=(y=a.config)==null?void 0:y.historyArchivalUri)==null?void 0:A.toLowerCase())==null?void 0:U.startsWith("gs://"),u=s||c,_=u?{}:{workflowId:t,workflowType:l,closeTime:i,executionStatus:n},$=((R=a==null?void 0:a.config)==null?void 0:R.historyArchivalState)==="Enabled",d=((X=a==null?void 0:a.config)==null?void 0:X.visibilityArchivalState)==="Enabled",h=$&&d?await pt(o.namespace,_,fetch):null;return{workflows:h?h.workflows:[],namespace:a,archivalEnabled:$,visibilityArchivalEnabled:d,archivalQueryingNotSupported:u}},dr=Object.freeze(Object.defineProperty({__proto__:null,load:jt},Symbol.toStringTag,{value:"Module"})),Pe=o=>e=>e.toLowerCase()===o.toLowerCase(),Se=(o,e)=>o[e+2],zt=o=>{if(o){for(const e of Pt)if(o[e])return{[e]:o[e]}}},Qt=Pe("WorkflowType"),Ut=Pe("WorkflowId"),Gt=Pe("StartTime"),Mt=Pe("ExecutionStatus"),Vt=o=>{const e=Tt(o),r={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(Ut(t)&&(r.workflowId=Se(e,l)),Qt(t)&&(r.workflowType=Se(e,l)),Mt(t)){const i=Se(e,l);Ft(i)&&(r.executionStatus=i)}if(Gt(t)){const i=Se(e,l);try{const n=St(i),a=zt(n);r.timeRange=It(a)}catch(n){console.error("Error parsing StartTime from query",n)}}}),r};function Kt(o){let e=o[0].id+"",r;return{c(){r=H(e)},l(t){r=B(t,e)},m(t,l){w(t,r,l)},p(t,l){l&1&&e!==(e=t[0].id+"")&&oe(r,e)},d(t){t&&p(r)}}}function Xt(o){var Le,He,Be;let e,r,t,l,i,n,a,s,c,u=ee(o[0].startTime,o[4],{relative:o[5]})+"",_,$,d,h,f=v("workflows.workflow-name")+"",m,C,y,A,U=o[0].name+"",R,X,te,z,me,x,pe=ee(o[0].endTime,o[4],{relative:o[5]})+"",ke,ye,le,_e,$e=ee(o[0].startTime,o[4],{relative:o[5]})+"",Te,Ee,re,he,de=ee(o[0].endTime,o[4],{relative:o[5]})+"",Ce,G,Fe,We;return r=new yt({props:{status:o[0].status,delay:Ve(o[0].startTime)}}),i=new Ne({props:{href:o[2],$$slots:{default:[Kt]},$$scope:{ctx:o}}}),a=new Me({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),filterIconTitle:v("common.filter-workflows"),show:o[1],content:o[0].id,filterable:!1}}),z=new Me({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),filterIconTitle:v("common.filter-workflows"),show:o[1],content:o[0].name,onFilter:o[13],filtered:(Be=(He=(Le=o[3].url)==null?void 0:Le.searchParams)==null?void 0:He.get("query"))==null?void 0:Be.includes(o[0].name)}}),{c(){e=N("td"),S(r.$$.fragment),t=W(),l=N("td"),S(i.$$.fragment),n=W(),S(a.$$.fragment),s=W(),c=N("p"),_=H(u),$=W(),d=N("td"),h=N("h3"),m=H(f),C=H(":"),y=W(),A=N("button"),R=H(U),te=W(),S(z.$$.fragment),me=W(),x=N("p"),ke=H(pe),ye=W(),le=N("td"),_e=N("p"),Te=H($e),Ee=W(),re=N("td"),he=N("p"),Ce=H(de),this.h()},l(g){e=D(g,"TD",{});var q=O(e);I(r.$$.fragment,q),q.forEach(p),t=L(g),l=D(g,"TD",{class:!0});var M=O(l);I(i.$$.fragment,M),n=L(M),I(a.$$.fragment,M),s=L(M),c=D(M,"P",{class:!0});var se=O(c);_=B(se,u),se.forEach(p),M.forEach(p),$=L(g),d=D(g,"TD",{class:!0});var Q=O(d);h=D(Q,"H3",{class:!0});var Z=O(h);m=B(Z,f),C=B(Z,":"),Z.forEach(p),y=L(Q),A=D(Q,"BUTTON",{class:!0,"aria-label":!0});var ge=O(A);R=B(ge,U),ge.forEach(p),te=L(Q),I(z.$$.fragment,Q),me=L(Q),x=D(Q,"P",{class:!0});var we=O(x);ke=B(we,pe),we.forEach(p),Q.forEach(p),ye=L(g),le=D(g,"TD",{class:!0});var be=O(le);_e=D(be,"P",{});var Oe=O(_e);Te=B(Oe,$e),Oe.forEach(p),be.forEach(p),Ee=L(g),re=D(g,"TD",{class:!0});var Re=O(re);he=D(Re,"P",{});var je=O(he);Ce=B(je,de),je.forEach(p),Re.forEach(p),this.h()},h(){T(c,"class","inline-time-cell svelte-1haww6m"),T(l,"class","relative break-words pr-4"),T(h,"class","md:hidden"),T(A,"class","table-link"),T(A,"aria-label",X=v("workflows.filter-by",{workflowName:o[0].name})),T(x,"class","inline-time-cell svelte-1haww6m"),T(d,"class","relative truncate"),T(le,"class","time-cell svelte-1haww6m"),T(re,"class","time-cell svelte-1haww6m")},m(g,q){w(g,e,q),P(r,e,null),w(g,t,q),w(g,l,q),P(i,l,null),E(l,n),P(a,l,null),E(l,s),E(l,c),E(c,_),w(g,$,q),w(g,d,q),E(d,h),E(h,m),E(h,C),E(d,y),E(d,A),E(A,R),E(d,te),P(z,d,null),E(d,me),E(d,x),E(x,ke),w(g,ye,q),w(g,le,q),E(le,_e),E(_e,Te),w(g,Ee,q),w(g,re,q),E(re,he),E(he,Ce),G=!0,Fe||(We=[V(l,"mouseover",o[8]),V(l,"focus",o[9]),V(l,"mouseleave",o[10]),V(l,"blur",o[11]),V(A,"click",_t(ot(o[12]))),V(d,"mouseover",o[14]),V(d,"focus",o[15]),V(d,"mouseleave",o[16]),V(d,"blur",o[17])],Fe=!0)},p(g,q){var ge,we,be;const M={};q&1&&(M.status=g[0].status),q&1&&(M.delay=Ve(g[0].startTime)),r.$set(M);const se={};q&4&&(se.href=g[2]),q&262145&&(se.$$scope={dirty:q,ctx:g}),i.$set(se);const Q={};q&2&&(Q.show=g[1]),q&1&&(Q.content=g[0].id),a.$set(Q),(!G||q&49)&&u!==(u=ee(g[0].startTime,g[4],{relative:g[5]})+"")&&oe(_,u),(!G||q&1)&&U!==(U=g[0].name+"")&&oe(R,U),(!G||q&1&&X!==(X=v("workflows.filter-by",{workflowName:g[0].name})))&&T(A,"aria-label",X);const Z={};q&2&&(Z.show=g[1]),q&1&&(Z.content=g[0].name),q&1&&(Z.onFilter=g[13]),q&9&&(Z.filtered=(be=(we=(ge=g[3].url)==null?void 0:ge.searchParams)==null?void 0:we.get("query"))==null?void 0:be.includes(g[0].name)),z.$set(Z),(!G||q&49)&&pe!==(pe=ee(g[0].endTime,g[4],{relative:g[5]})+"")&&oe(ke,pe),(!G||q&49)&&$e!==($e=ee(g[0].startTime,g[4],{relative:g[5]})+"")&&oe(Te,$e),(!G||q&49)&&de!==(de=ee(g[0].endTime,g[4],{relative:g[5]})+"")&&oe(Ce,de)},i(g){G||(b(r.$$.fragment,g),b(i.$$.fragment,g),b(a.$$.fragment,g),b(z.$$.fragment,g),G=!0)},o(g){k(r.$$.fragment,g),k(i.$$.fragment,g),k(a.$$.fragment,g),k(z.$$.fragment,g),G=!1},d(g){g&&(p(e),p(t),p(l),p($),p(d),p(ye),p(le),p(Ee),p(re)),F(r),F(i),F(a),F(z),Fe=!1,$t(We)}}}function Zt(o){let e,r;return e=new Et({props:{class:"hover:surface-subtle",$$slots:{default:[Xt]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,[l]){const i={};l&262207&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function Jt(o,e,r){let t,l,i,n;ne(o,Ie,R=>r(3,l=R)),ne(o,Ae,R=>r(4,i=R)),ne(o,Ct,R=>r(5,n=R));let{namespace:a}=e,{workflow:s}=e,c=!1;const u=R=>{const X=ze({timeRange:"All"}),te=l.url.searchParams.get("query"),z=Vt(te??X),me=(z==null?void 0:z.workflowType)===R?"":R,x=ze({...z,workflowType:me});ut({url:l.url,parameter:"query",value:x,allowEmpty:!0})},_=()=>r(1,c=!0),$=()=>r(1,c=!0),d=()=>r(1,c=!1),h=()=>r(1,c=!1),f=()=>u(s.name),m=()=>u(s.name),C=()=>r(1,c=!0),y=()=>r(1,c=!0),A=()=>r(1,c=!1),U=()=>r(1,c=!1);return o.$$set=R=>{"namespace"in R&&r(7,a=R.namespace),"workflow"in R&&r(0,s=R.workflow)},o.$$.update=()=>{o.$$.dirty&129&&r(2,t=At({namespace:a,workflow:s.id,run:s.runId}))},[s,c,t,l,i,n,u,a,_,$,d,h,f,m,C,y,A,U]}class Yt extends ue{constructor(e){super(),ce(this,e,Jt,Zt,fe,{namespace:7,workflow:0})}}function xt(o){let e;const r=o[1].default,t=ht(r,o,o[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,i){t&&t.m(l,i),e=!0},p(l,i){t&&t.p&&(!e||i&4)&&dt(t,r,l,l[2],e?wt(r,l[2],i,null):gt(l[2]),null)},i(l){e||(b(t,l),e=!0)},o(l){k(t,l),e=!1},d(l){t&&t.d(l)}}}function el(o){let e,r="Workflows";return{c(){e=N("caption"),e.textContent=r,this.h()},l(t){e=D(t,"CAPTION",{class:!0,slot:!0,"data-svelte-h":!0}),ae(e)!=="svelte-qflexs"&&(e.textContent=r),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(t,l){w(t,e,l)},p:K,d(t){t&&p(e)}}}function tl(o){let e,r="Status",t,l,i="Workflow ID",n,a,s="Type",c,u,_="Start",$,d,h="End",f,m,C="Summary";return{c(){e=N("th"),e.textContent=r,t=W(),l=N("th"),l.textContent=i,n=W(),a=N("th"),a.textContent=s,c=W(),u=N("th"),u.textContent=_,$=W(),d=N("th"),d.textContent=h,f=W(),m=N("th"),m.textContent=C,this.h()},l(y){e=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(e)!=="svelte-16bnp2i"&&(e.textContent=r),t=L(y),l=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(l)!=="svelte-115zk6j"&&(l.textContent=i),n=L(y),a=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(a)!=="svelte-lhnwb5"&&(a.textContent=s),c=L(y),u=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(u)!=="svelte-1xn3gxk"&&(u.textContent=_),$=L(y),d=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(d)!=="svelte-10ns7z5"&&(d.textContent=h),f=L(y),m=D(y,"TH",{class:!0,colspan:!0,"data-svelte-h":!0}),ae(m)!=="svelte-39g6qc"&&(m.textContent=C),this.h()},h(){T(e,"class","w-32 max-md:hidden"),T(l,"class","max-md:hidden md:w-auto"),T(a,"class","w-60 max-md:hidden"),T(u,"class","w-60 max-xl:hidden"),T(d,"class","w-60 max-xl:hidden"),T(m,"class","md:hidden"),T(m,"colspan","3")},m(y,A){w(y,e,A),w(y,t,A),w(y,l,A),w(y,n,A),w(y,a,A),w(y,c,A),w(y,u,A),w(y,$,A),w(y,d,A),w(y,f,A),w(y,m,A)},p:K,d(y){y&&(p(e),p(t),p(l),p(n),p(a),p(c),p(u),p($),p(d),p(f),p(m))}}}function ll(o){let e,r;return e=new Nt({props:{slot:"headers",$$slots:{default:[tl]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&4&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function rl(o){let e,r;return e=new qt({props:{class:"w-full md:table-fixed",updating:o[0],"data-testid":"workflows-table",$$slots:{headers:[ll],caption:[el],default:[xt]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,[l]){const i={};l&1&&(i.updating=t[0]),l&4&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function al(o,e,r){let{$$slots:t={},$$scope:l}=e,{updating:i=!1}=e;return o.$$set=n=>{"updating"in n&&r(0,i=n.updating),"$$scope"in n&&r(2,l=n.$$scope)},[i,t,l]}class ol extends ue{constructor(e){super(),ce(this,e,al,rl,fe,{updating:0})}}var qe={exports:{}};(function(o,e){var r=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,t=/-[a-z\u00E0-\u00F6\u00F8-\u00FE]/g;o.exports=e=function(i){return i.replace(r,function(n){return"-"+n.toLowerCase()})},e.reverse=function(l){return l.replace(t,function(i){return i.slice(1).toUpperCase()})}})(qe,qe.exports);var nl=qe.exports;const sl=Ht(nl);function il(o){let e;return{c(){e=H(o[1])},l(r){e=B(r,o[1])},m(r,t){w(r,e,t)},p(r,t){t&2&&oe(e,r[1])},d(r){r&&p(e)}}}function fl(o){let e,r;return e=new Bt({props:{slot:"after-input",type:"submit","data-testid":`${o[6]}-button`,$$slots:{default:[il]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&1026&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function ul(o){let e,r,t,l,i;return r=new ct({props:{class:"w-full",label:o[1],id:o[5],labelHidden:!0,icon:o[4]?"search":null,type:"search",name:o[3],value:o[2],placeholder:o[0],autocomplete:"off","data-testid":`${o[6]}-input`,$$slots:{"after-input":[fl]},$$scope:{ctx:o}}}),r.$on("input",o[8]),{c(){e=N("form"),S(r.$$.fragment),this.h()},l(n){e=D(n,"FORM",{role:!0,class:!0,"data-testid":!0});var a=O(e);I(r.$$.fragment,a),a.forEach(p),this.h()},h(){T(e,"role","search"),T(e,"class","flex items-center"),T(e,"data-testid",`${o[6]}-form`)},m(n,a){w(n,e,a),P(r,e,null),t=!0,l||(i=V(e,"submit",ot(o[7])),l=!0)},p(n,[a]){const s={};a&2&&(s.label=n[1]),a&32&&(s.id=n[5]),a&16&&(s.icon=n[4]?"search":null),a&8&&(s.name=n[3]),a&4&&(s.value=n[2]),a&1&&(s.placeholder=n[0]),a&1026&&(s.$$scope={dirty:a,ctx:n}),r.$set(s)},i(n){t||(b(r.$$.fragment,n),t=!0)},o(n){k(r.$$.fragment,n),t=!1},d(n){n&&p(e),F(r),l=!1,i()}}}function cl(o,e,r){let{placeholder:t=`${v("common.search")}…`}=e,{label:l=v("common.search")}=e,{value:i=""}=e,{name:n="query"}=e,{icon:a=!1}=e,{id:s=sl(`${l}-${n}`)}=e,c=e["data-testid"]||s;function u($){Ge.call(this,o,$)}function _($){Ge.call(this,o,$)}return o.$$set=$=>{r(9,e=Qe(Qe({},e),Ue($))),"placeholder"in $&&r(0,t=$.placeholder),"label"in $&&r(1,l=$.label),"value"in $&&r(2,i=$.value),"name"in $&&r(3,n=$.name),"icon"in $&&r(4,a=$.icon),"id"in $&&r(5,s=$.id)},e=Ue(e),[t,l,i,n,a,s,c,u,_]}class ml extends ue{constructor(e){super(),ce(this,e,cl,ul,fe,{placeholder:0,label:1,value:2,name:3,icon:4,id:5})}}function pl(o){let e,r,t;function l(n){o[6](n)}let i={type:"search",icon:"search",label:o[0],labelHidden:!0,placeholder:o[0],id:o[2]};return o[1]!==void 0&&(i.value=o[1]),e=new ct({props:i}),nt.push(()=>ft(e,"value",l)),{c(){S(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,a){P(e,n,a),t=!0},p(n,[a]){const s={};a&1&&(s.label=n[0]),a&1&&(s.placeholder=n[0]),!r&&a&2&&(r=!0,s.value=n[1],st(()=>r=!1)),e.$set(s)},i(n){t||(b(e.$$.fragment,n),t=!0)},o(n){k(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function _l(o,e,r){let t;ne(o,Ie,_=>r(5,t=_));let{parameter:l}=e,{name:i}=e,{value:n}=e,a=l&&t.url.searchParams.get(l)||n;const s=`${l||i}-filter`,c=Rt(ut,300);function u(_){a=_,r(1,a)}return o.$$set=_=>{"parameter"in _&&r(3,l=_.parameter),"name"in _&&r(0,i=_.name),"value"in _&&r(4,n=_.value)},o.$$.update=()=>{o.$$.dirty&42&&c({parameter:l,value:a,url:t.url})},[i,a,s,l,n,t,u]}class Ze extends ue{constructor(e){super(),ce(this,e,_l,pl,fe,{parameter:3,name:0,value:4})}}function Je(o,e,r){const t=o.slice();return t[6]=e[r].value,t[7]=e[r].label,t}function Ye(o,e,r){const t=o.slice();return t[6]=e[r],t}function $l(o){let e,r;return e=new Ne({props:{href:`${o[0].url.pathname}?query=`,$$slots:{default:[dl]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&1&&(i.href=`${t[0].url.pathname}?query=`),l&4096&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function hl(o){let e,r;return e=new Ne({props:{href:o[0].url.pathname,$$slots:{default:[gl]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&1&&(i.href=t[0].url.pathname),l&4096&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function dl(o){let e=v("workflows.advanced-search")+"",r;return{c(){r=H(e)},l(t){r=B(t,e)},m(t,l){w(t,r,l)},p:K,d(t){t&&p(r)}}}function gl(o){let e=v("workflows.basic-search")+"",r;return{c(){r=H(e)},l(t){r=B(t,e)},m(t,l){w(t,r,l)},p:K,d(t){t&&p(r)}}}function wl(o){let e,r,t,l,i,n,a,s,c,u,_,$;r=new Ze({props:{parameter:"workflow-id",name:v("common.workflow-id"),value:Fl}}),l=new Ze({props:{parameter:"workflow-type",name:v("common.workflow-type"),value:Al}}),n=new Xe({props:{label:v("workflows.time-range"),parameter:"time-range",value:"24 hours",$$slots:{default:[kl]},$$scope:{ctx:o}}}),s=new Xe({props:{label:v("common.status"),parameter:"status",value:null,$$slots:{default:[Tl]},$$scope:{ctx:o}}});function d(f){o[5](f)}let h={id:"filter-by-relative-time",$$slots:{default:[Il]},$$scope:{ctx:o}};return o[2]!==void 0&&(h.value=o[2]),u=new Ot({props:h}),nt.push(()=>ft(u,"value",d)),{c(){e=N("div"),S(r.$$.fragment),t=W(),S(l.$$.fragment),i=W(),S(n.$$.fragment),a=W(),S(s.$$.fragment),c=W(),S(u.$$.fragment),this.h()},l(f){e=D(f,"DIV",{class:!0,role:!0});var m=O(e);I(r.$$.fragment,m),t=L(m),I(l.$$.fragment,m),i=L(m),I(n.$$.fragment,m),a=L(m),I(s.$$.fragment,m),c=L(m),I(u.$$.fragment,m),m.forEach(p),this.h()},h(){T(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),T(e,"role","search")},m(f,m){w(f,e,m),P(r,e,null),E(e,t),P(l,e,null),E(e,i),P(n,e,null),E(e,a),P(s,e,null),E(e,c),P(u,e,null),$=!0},p(f,m){const C={};m&4096&&(C.$$scope={dirty:m,ctx:f}),n.$set(C);const y={};m&4096&&(y.$$scope={dirty:m,ctx:f}),s.$set(y);const A={};m&4096&&(A.$$scope={dirty:m,ctx:f}),!_&&m&4&&(_=!0,A.value=f[2],st(()=>_=!1)),u.$set(A)},i(f){$||(b(r.$$.fragment,f),b(l.$$.fragment,f),b(n.$$.fragment,f),b(s.$$.fragment,f),b(u.$$.fragment,f),$=!0)},o(f){k(r.$$.fragment,f),k(l.$$.fragment,f),k(n.$$.fragment,f),k(s.$$.fragment,f),k(u.$$.fragment,f),$=!1},d(f){f&&p(e),F(r),F(l),F(n),F(s),F(u)}}}function bl(o){let e,r;return e=new ml({props:{icon:!0,placeholder:v("common.search"),value:o[0].url.searchParams.get("query")}}),e.$on("submit",o[4]),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&1&&(i.value=t[0].url.searchParams.get("query")),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function vl(o){let e=o[6]+"",r;return{c(){r=H(e)},l(t){r=B(t,e)},m(t,l){w(t,r,l)},p:K,d(t){t&&p(r)}}}function xe(o){let e,r;return e=new ve({props:{value:o[6],$$slots:{default:[vl]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&4096&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function kl(o){let e,r,t=ie(Ke),l=[];for(let n=0;nk(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;na[7];for(let a=0;a{u[C]=null}),Y(),l=u[t],l?l.p(f,m):(l=u[t]=c[t](f),l.c()),b(l,1),l.m(r,null));let y=n;n=h(f),n===y?d[n].p(f,m):(J(),k(d[y],1,1,()=>{d[y]=null}),Y(),a=d[n],a?a.p(f,m):(a=d[n]=$[n](f),a.c()),b(a,1),a.m(e,null))},i(f){s||(b(l),b(a),s=!0)},o(f){k(l),k(a),s=!1},d(f){f&&p(e),u[t].d(),d[n].d()}}}let Fl="",Al="";function ql(o,e,r){let t,l,i;ne(o,Ie,c=>r(0,l=c)),ne(o,Ae,c=>r(2,i=c));const n={All:{value:null,label:v("workflows.all-statuses")},"Timed Out":{value:"TimedOut",label:v("workflows.timed-out")},Completed:{value:"Completed",label:v("workflows.completed")},Failed:{value:"Failed",label:v("workflows.failed")},"Continued as New":{value:"ContinuedAsNew",label:v("workflows.continued-as-new")},Canceled:{value:"Canceled",label:v("workflows.canceled")},Terminated:{value:"Terminated",label:v("workflows.terminated")}},a=c=>{const _=new FormData(c.target).get("query");l.url.searchParams.set("query",String(_)),Lt(l.url.toString())};function s(c){i=c,Ae.set(i)}return o.$$.update=()=>{o.$$.dirty&1&&r(1,t=l.url.searchParams.has("query"))},[l,t,i,n,a,s]}class Nl extends ue{constructor(e){super(),ce(this,e,ql,Pl,fe,{})}}function tt(o,e,r){const t=o.slice();return t[8]=e[r],t}function Dl(o){let e,r=v("workflows.archival-disabled-title")+"",t,l,i,n=v("workflows.archival-disabled-details")+"",a,s,c,u,_,$,d;u=new De({props:{content:`temporal operator namespace update --history-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}});let h=!o[1]&<(o);return{c(){e=N("h1"),t=H(r),l=W(),i=N("p"),a=H(n),s=H(":"),c=W(),S(u.$$.fragment),_=W(),h&&h.c(),$=j(),this.h()},l(f){e=D(f,"H1",{class:!0,"data-testid":!0});var m=O(e);t=B(m,r),m.forEach(p),l=L(f),i=D(f,"P",{});var C=O(i);a=B(C,n),s=B(C,":"),C.forEach(p),c=L(f),I(u.$$.fragment,f),_=L(f),h&&h.l(f),$=j(),this.h()},h(){T(e,"class","text-2xl"),T(e,"data-testid","archived-disabled-title")},m(f,m){w(f,e,m),E(e,t),w(f,l,m),w(f,i,m),E(i,a),E(i,s),w(f,c,m),P(u,f,m),w(f,_,m),h&&h.m(f,m),w(f,$,m),d=!0},p(f,m){const C={};m&16&&(C.content=`temporal operator namespace update --history-archival-state enabled ${f[4]}`),u.$set(C),f[1]?h&&(J(),k(h,1,1,()=>{h=null}),Y()):h?(h.p(f,m),m&2&&b(h,1)):(h=lt(f),h.c(),b(h,1),h.m($.parentNode,$))},i(f){d||(b(u.$$.fragment,f),b(h),d=!0)},o(f){k(u.$$.fragment,f),k(h),d=!1},d(f){f&&(p(e),p(l),p(i),p(c),p(_),p($)),F(u,f),h&&h.d(f)}}}function Wl(o){let e,r=v("workflows.visibility-disabled-archival")+"",t,l,i,n=v("workflows.archival-link-preface")+"",a,s,c=v("workflows.archival-link")+"",u,_,$,d,h;return d=new De({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){e=N("h1"),t=H(r),l=W(),i=N("p"),a=H(n),s=N("a"),u=H(c),_=H(":"),$=W(),S(d.$$.fragment),this.h()},l(f){e=D(f,"H1",{class:!0,"data-testid":!0});var m=O(e);t=B(m,r),m.forEach(p),l=L(f),i=D(f,"P",{});var C=O(i);a=B(C,n),s=D(C,"A",{class:!0,href:!0,target:!0,rel:!0});var y=O(s);u=B(y,c),y.forEach(p),_=B(C,":"),C.forEach(p),$=L(f),I(d.$$.fragment,f),this.h()},h(){T(e,"class","text-2xl"),T(e,"data-testid","visibility-disabled-title"),T(s,"class","text-blue-700 underline"),T(s,"href","https://docs.temporal.io/clusters#archival"),T(s,"target","_blank"),T(s,"rel","noreferrer")},m(f,m){w(f,e,m),E(e,t),w(f,l,m),w(f,i,m),E(i,a),E(i,s),E(s,u),E(i,_),w(f,$,m),P(d,f,m),h=!0},p(f,m){const C={};m&16&&(C.content=`temporal operator namespace update --visibility-archival-state enabled ${f[4]}`),d.$set(C)},i(f){h||(b(d.$$.fragment,f),h=!0)},o(f){k(d.$$.fragment,f),h=!1},d(f){f&&(p(e),p(l),p(i),p($)),F(d,f)}}}function Ll(o){let e,r=v("workflows.archived-workflows")+"",t,l,i,n,a,s,c,u=!o[0]&&rt();const _=[Bl,Hl],$=[];function d(h,f){var m;return(m=h[3])!=null&&m.length?0:1}return n=d(o),a=$[n]=_[n](o),{c(){e=N("h1"),t=H(r),l=W(),u&&u.c(),i=W(),a.c(),s=j(),this.h()},l(h){e=D(h,"H1",{class:!0,"data-testid":!0});var f=O(e);t=B(f,r),f.forEach(p),l=L(h),u&&u.l(h),i=L(h),a.l(h),s=j(),this.h()},h(){T(e,"class","text-2xl"),T(e,"data-testid","archived-enabled-title")},m(h,f){w(h,e,f),E(e,t),w(h,l,f),u&&u.m(h,f),w(h,i,f),$[n].m(h,f),w(h,s,f),c=!0},p(h,f){h[0]?u&&(J(),k(u,1,1,()=>{u=null}),Y()):u?f&1&&b(u,1):(u=rt(),u.c(),b(u,1),u.m(i.parentNode,i));let m=n;n=d(h),n===m?$[n].p(h,f):(J(),k($[m],1,1,()=>{$[m]=null}),Y(),a=$[n],a?a.p(h,f):(a=$[n]=_[n](h),a.c()),b(a,1),a.m(s.parentNode,s))},i(h){c||(b(u),b(a),c=!0)},o(h){k(u),k(a),c=!1},d(h){h&&(p(e),p(l),p(i),p(s)),u&&u.d(h),$[n].d(h)}}}function lt(o){let e,r=v("workflows.archival-link-preface")+"",t,l,i=v("workflows.archival-link")+"",n,a,s,c,u;return c=new De({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){e=N("p"),t=H(r),l=N("a"),n=H(i),a=H(":"),s=W(),S(c.$$.fragment),this.h()},l(_){e=D(_,"P",{});var $=O(e);t=B($,r),l=D($,"A",{class:!0,href:!0,target:!0,rel:!0});var d=O(l);n=B(d,i),d.forEach(p),a=B($,":"),$.forEach(p),s=L(_),I(c.$$.fragment,_),this.h()},h(){T(l,"class","text-blue-700 underline"),T(l,"href","https://docs.temporal.io/clusters#archival"),T(l,"target","_blank"),T(l,"rel","noreferrer")},m(_,$){w(_,e,$),E(e,t),E(e,l),E(l,n),E(e,a),w(_,s,$),P(c,_,$),u=!0},p(_,$){const d={};$&16&&(d.content=`temporal operator namespace update --visibility-archival-state enabled ${_[4]}`),c.$set(d)},i(_){u||(b(c.$$.fragment,_),u=!0)},o(_){k(c.$$.fragment,_),u=!1},d(_){_&&(p(e),p(s)),F(c,_)}}}function rt(o){let e,r;return e=new Nl({}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function Hl(o){let e,r;return e=new Dt({props:{title:v("workflows.workflow-empty-state-title"),content:v("workflows.archival-empty-state-description")}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p:K,i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function Bl(o){let e,r;return e=new Wt({props:{items:o[3],"aria-label":v("workflows.archived-workflows"),pageSizeSelectLabel:v("common.per-page"),previousButtonLabel:v("common.previous"),nextButtonLabel:v("common.next"),$$slots:{default:[Rl,({visibleItems:t})=>({7:t}),({visibleItems:t})=>t?128:0]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&8&&(i.items=t[3]),l&2192&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function at(o){let e,r;return e=new Yt({props:{workflow:o[8],namespace:o[4]}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&128&&(i.workflow=t[8]),l&16&&(i.namespace=t[4]),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function Ol(o){let e,r,t=ie(o[7]),l=[];for(let n=0;nk(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;n{s[d]=null}),Y(),l=s[t],l?l.p(u,_):(l=s[t]=a[t](u),l.c()),b(l,1),l.m(i.parentNode,i))},i(u){n||(b(e.$$.fragment,u),b(l),n=!0)},o(u){k(e.$$.fragment,u),k(l),n=!1},d(u){u&&(p(r),p(i)),F(e,u),s[t].d(u)}}}function zl(o,e,r){let t,l,i,n,a,s;ne(o,Ie,u=>r(5,s=u));let{data:c}=e;return o.$$set=u=>{"data"in u&&r(6,c=u.data)},o.$$.update=()=>{o.$$.dirty&64&&r(4,{namespace:{namespaceInfo:{name:t}},workflows:l,archivalEnabled:i,visibilityArchivalEnabled:n,archivalQueryingNotSupported:a}=c,t,(r(3,l),r(6,c)),(r(2,i),r(6,c)),(r(1,n),r(6,c)),(r(0,a),r(6,c)))},[a,n,i,l,t,s,c]}class gr extends ue{constructor(e){super(),ce(this,e,zl,jl,fe,{data:6})}}export{gr as component,dr as universal}; +import{f as mt}from"../chunks/namespaces-service.1V5QHpxG.js";import{e as pt,g as ze}from"../chunks/workflows.W0IFK8bL.js";import{s as fe,c as ne,e as N,a as W,t as H,b as D,d as O,g as p,h as L,f as B,j as T,k as w,l as E,m as V,F as _t,a0 as ot,n as oe,G as $t,p as ht,u as dt,q as gt,r as wt,i as ae,v as K,z as Qe,A as Ue,B as Ge,L as nt,V as st,x as j,y as it}from"../chunks/scheduler.AWtTlMeO.js";import{S as ue,i as ce,c as S,a as I,m as P,t as b,b as k,d as F,f as ft,g as J,e as Y}from"../chunks/index.91lpp7Ff.js";import{e as ie,u as bt,o as vt}from"../chunks/each.QPLN4A2E.js";import{p as Ie}from"../chunks/stores.meYYndLY.js";import{P as kt}from"../chunks/page-title.HGZyp4X5.js";import{W as yt}from"../chunks/workflow-status.ASJz2ufm.js";import{t as Tt,F as Me}from"../chunks/tokenize.Q0qSDpSS.js";import{L as Ne}from"../chunks/link.DdkOc0EY.js";import{T as Et}from"../chunks/table-row.rkx8mFVk.js";import{t as v}from"../chunks/translate.HrioCK44.js";import{t as Ae,r as Ct,f as ee}from"../chunks/time-format.Z3EDfPl8.js";import{j as St,k as It,l as Pt,m as Ve,n as Ke}from"../chunks/format-time.6T8OwT4v.js";import{m as Ft}from"../chunks/has.-dFYEuQV.js";import{b as At}from"../chunks/route-for.ezVRK9wE.js";import{u as ut}from"../chunks/update-query-parameters.DBfsiMjL.js";import{T as qt,a as Nt}from"../chunks/table-header-row.xBvT5iU5.js";import{C as De}from"../chunks/code-block.XXHS15kp.js";import{E as Dt}from"../chunks/empty-state.cnx-bHYa.js";import{P as Wt}from"../chunks/pagination.b8M6G9WD.js";import{g as Lt}from"../chunks/entry.Yz1YyohR.js";import{g as Ht}from"../chunks/_commonjsHelpers.4gQjN7DL.js";import{B as Bt}from"../chunks/button.bjyERRn9.js";import{I as ct}from"../chunks/input.EAz4myrb.js";import{F as Xe}from"../chunks/pagination.tZJpGBWa.js";import{S as Ot,a as ve}from"../chunks/simple-select.UwK7ouLh.js";import{d as Rt}from"../chunks/index.OI4ueFuJ.js";const jt=async function({params:o,url:e}){var f,m,C,y,A,U,R,X;const{searchParams:r}=e;r.has("time-range")||r.set("time-range","1 day");const t=r.get("workflow-id"),l=r.get("workflow-type"),i=r.get("time-range"),n=r.get("status"),a=await mt(o.namespace),s=(C=(m=(f=a.config)==null?void 0:f.historyArchivalUri)==null?void 0:m.toLowerCase())==null?void 0:C.startsWith("s3://"),c=(U=(A=(y=a.config)==null?void 0:y.historyArchivalUri)==null?void 0:A.toLowerCase())==null?void 0:U.startsWith("gs://"),u=s||c,_=u?{}:{workflowId:t,workflowType:l,closeTime:i,executionStatus:n},$=((R=a==null?void 0:a.config)==null?void 0:R.historyArchivalState)==="Enabled",d=((X=a==null?void 0:a.config)==null?void 0:X.visibilityArchivalState)==="Enabled",h=$&&d?await pt(o.namespace,_,fetch):null;return{workflows:h?h.workflows:[],namespace:a,archivalEnabled:$,visibilityArchivalEnabled:d,archivalQueryingNotSupported:u}},dr=Object.freeze(Object.defineProperty({__proto__:null,load:jt},Symbol.toStringTag,{value:"Module"})),Pe=o=>e=>e.toLowerCase()===o.toLowerCase(),Se=(o,e)=>o[e+2],zt=o=>{if(o){for(const e of Pt)if(o[e])return{[e]:o[e]}}},Qt=Pe("WorkflowType"),Ut=Pe("WorkflowId"),Gt=Pe("StartTime"),Mt=Pe("ExecutionStatus"),Vt=o=>{const e=Tt(o),r={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(Ut(t)&&(r.workflowId=Se(e,l)),Qt(t)&&(r.workflowType=Se(e,l)),Mt(t)){const i=Se(e,l);Ft(i)&&(r.executionStatus=i)}if(Gt(t)){const i=Se(e,l);try{const n=St(i),a=zt(n);r.timeRange=It(a)}catch(n){console.error("Error parsing StartTime from query",n)}}}),r};function Kt(o){let e=o[0].id+"",r;return{c(){r=H(e)},l(t){r=B(t,e)},m(t,l){w(t,r,l)},p(t,l){l&1&&e!==(e=t[0].id+"")&&oe(r,e)},d(t){t&&p(r)}}}function Xt(o){var Le,He,Be;let e,r,t,l,i,n,a,s,c,u=ee(o[0].startTime,o[4],{relative:o[5]})+"",_,$,d,h,f=v("workflows.workflow-name")+"",m,C,y,A,U=o[0].name+"",R,X,te,z,me,x,pe=ee(o[0].endTime,o[4],{relative:o[5]})+"",ke,ye,le,_e,$e=ee(o[0].startTime,o[4],{relative:o[5]})+"",Te,Ee,re,he,de=ee(o[0].endTime,o[4],{relative:o[5]})+"",Ce,G,Fe,We;return r=new yt({props:{status:o[0].status,delay:Ve(o[0].startTime)}}),i=new Ne({props:{href:o[2],$$slots:{default:[Kt]},$$scope:{ctx:o}}}),a=new Me({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),filterIconTitle:v("common.filter-workflows"),show:o[1],content:o[0].id,filterable:!1}}),z=new Me({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),filterIconTitle:v("common.filter-workflows"),show:o[1],content:o[0].name,onFilter:o[13],filtered:(Be=(He=(Le=o[3].url)==null?void 0:Le.searchParams)==null?void 0:He.get("query"))==null?void 0:Be.includes(o[0].name)}}),{c(){e=N("td"),S(r.$$.fragment),t=W(),l=N("td"),S(i.$$.fragment),n=W(),S(a.$$.fragment),s=W(),c=N("p"),_=H(u),$=W(),d=N("td"),h=N("h3"),m=H(f),C=H(":"),y=W(),A=N("button"),R=H(U),te=W(),S(z.$$.fragment),me=W(),x=N("p"),ke=H(pe),ye=W(),le=N("td"),_e=N("p"),Te=H($e),Ee=W(),re=N("td"),he=N("p"),Ce=H(de),this.h()},l(g){e=D(g,"TD",{});var q=O(e);I(r.$$.fragment,q),q.forEach(p),t=L(g),l=D(g,"TD",{class:!0});var M=O(l);I(i.$$.fragment,M),n=L(M),I(a.$$.fragment,M),s=L(M),c=D(M,"P",{class:!0});var se=O(c);_=B(se,u),se.forEach(p),M.forEach(p),$=L(g),d=D(g,"TD",{class:!0});var Q=O(d);h=D(Q,"H3",{class:!0});var Z=O(h);m=B(Z,f),C=B(Z,":"),Z.forEach(p),y=L(Q),A=D(Q,"BUTTON",{class:!0,"aria-label":!0});var ge=O(A);R=B(ge,U),ge.forEach(p),te=L(Q),I(z.$$.fragment,Q),me=L(Q),x=D(Q,"P",{class:!0});var we=O(x);ke=B(we,pe),we.forEach(p),Q.forEach(p),ye=L(g),le=D(g,"TD",{class:!0});var be=O(le);_e=D(be,"P",{});var Oe=O(_e);Te=B(Oe,$e),Oe.forEach(p),be.forEach(p),Ee=L(g),re=D(g,"TD",{class:!0});var Re=O(re);he=D(Re,"P",{});var je=O(he);Ce=B(je,de),je.forEach(p),Re.forEach(p),this.h()},h(){T(c,"class","inline-time-cell svelte-1haww6m"),T(l,"class","relative break-words pr-4"),T(h,"class","md:hidden"),T(A,"class","table-link"),T(A,"aria-label",X=v("workflows.filter-by",{workflowName:o[0].name})),T(x,"class","inline-time-cell svelte-1haww6m"),T(d,"class","relative truncate"),T(le,"class","time-cell svelte-1haww6m"),T(re,"class","time-cell svelte-1haww6m")},m(g,q){w(g,e,q),P(r,e,null),w(g,t,q),w(g,l,q),P(i,l,null),E(l,n),P(a,l,null),E(l,s),E(l,c),E(c,_),w(g,$,q),w(g,d,q),E(d,h),E(h,m),E(h,C),E(d,y),E(d,A),E(A,R),E(d,te),P(z,d,null),E(d,me),E(d,x),E(x,ke),w(g,ye,q),w(g,le,q),E(le,_e),E(_e,Te),w(g,Ee,q),w(g,re,q),E(re,he),E(he,Ce),G=!0,Fe||(We=[V(l,"mouseover",o[8]),V(l,"focus",o[9]),V(l,"mouseleave",o[10]),V(l,"blur",o[11]),V(A,"click",_t(ot(o[12]))),V(d,"mouseover",o[14]),V(d,"focus",o[15]),V(d,"mouseleave",o[16]),V(d,"blur",o[17])],Fe=!0)},p(g,q){var ge,we,be;const M={};q&1&&(M.status=g[0].status),q&1&&(M.delay=Ve(g[0].startTime)),r.$set(M);const se={};q&4&&(se.href=g[2]),q&262145&&(se.$$scope={dirty:q,ctx:g}),i.$set(se);const Q={};q&2&&(Q.show=g[1]),q&1&&(Q.content=g[0].id),a.$set(Q),(!G||q&49)&&u!==(u=ee(g[0].startTime,g[4],{relative:g[5]})+"")&&oe(_,u),(!G||q&1)&&U!==(U=g[0].name+"")&&oe(R,U),(!G||q&1&&X!==(X=v("workflows.filter-by",{workflowName:g[0].name})))&&T(A,"aria-label",X);const Z={};q&2&&(Z.show=g[1]),q&1&&(Z.content=g[0].name),q&1&&(Z.onFilter=g[13]),q&9&&(Z.filtered=(be=(we=(ge=g[3].url)==null?void 0:ge.searchParams)==null?void 0:we.get("query"))==null?void 0:be.includes(g[0].name)),z.$set(Z),(!G||q&49)&&pe!==(pe=ee(g[0].endTime,g[4],{relative:g[5]})+"")&&oe(ke,pe),(!G||q&49)&&$e!==($e=ee(g[0].startTime,g[4],{relative:g[5]})+"")&&oe(Te,$e),(!G||q&49)&&de!==(de=ee(g[0].endTime,g[4],{relative:g[5]})+"")&&oe(Ce,de)},i(g){G||(b(r.$$.fragment,g),b(i.$$.fragment,g),b(a.$$.fragment,g),b(z.$$.fragment,g),G=!0)},o(g){k(r.$$.fragment,g),k(i.$$.fragment,g),k(a.$$.fragment,g),k(z.$$.fragment,g),G=!1},d(g){g&&(p(e),p(t),p(l),p($),p(d),p(ye),p(le),p(Ee),p(re)),F(r),F(i),F(a),F(z),Fe=!1,$t(We)}}}function Zt(o){let e,r;return e=new Et({props:{class:"hover:surface-subtle",$$slots:{default:[Xt]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,[l]){const i={};l&262207&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function Jt(o,e,r){let t,l,i,n;ne(o,Ie,R=>r(3,l=R)),ne(o,Ae,R=>r(4,i=R)),ne(o,Ct,R=>r(5,n=R));let{namespace:a}=e,{workflow:s}=e,c=!1;const u=R=>{const X=ze({timeRange:"All"}),te=l.url.searchParams.get("query"),z=Vt(te??X),me=(z==null?void 0:z.workflowType)===R?"":R,x=ze({...z,workflowType:me});ut({url:l.url,parameter:"query",value:x,allowEmpty:!0})},_=()=>r(1,c=!0),$=()=>r(1,c=!0),d=()=>r(1,c=!1),h=()=>r(1,c=!1),f=()=>u(s.name),m=()=>u(s.name),C=()=>r(1,c=!0),y=()=>r(1,c=!0),A=()=>r(1,c=!1),U=()=>r(1,c=!1);return o.$$set=R=>{"namespace"in R&&r(7,a=R.namespace),"workflow"in R&&r(0,s=R.workflow)},o.$$.update=()=>{o.$$.dirty&129&&r(2,t=At({namespace:a,workflow:s.id,run:s.runId}))},[s,c,t,l,i,n,u,a,_,$,d,h,f,m,C,y,A,U]}class Yt extends ue{constructor(e){super(),ce(this,e,Jt,Zt,fe,{namespace:7,workflow:0})}}function xt(o){let e;const r=o[1].default,t=ht(r,o,o[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,i){t&&t.m(l,i),e=!0},p(l,i){t&&t.p&&(!e||i&4)&&dt(t,r,l,l[2],e?wt(r,l[2],i,null):gt(l[2]),null)},i(l){e||(b(t,l),e=!0)},o(l){k(t,l),e=!1},d(l){t&&t.d(l)}}}function el(o){let e,r="Workflows";return{c(){e=N("caption"),e.textContent=r,this.h()},l(t){e=D(t,"CAPTION",{class:!0,slot:!0,"data-svelte-h":!0}),ae(e)!=="svelte-qflexs"&&(e.textContent=r),this.h()},h(){T(e,"class","sr-only"),T(e,"slot","caption")},m(t,l){w(t,e,l)},p:K,d(t){t&&p(e)}}}function tl(o){let e,r="Status",t,l,i="Workflow ID",n,a,s="Type",c,u,_="Start",$,d,h="End",f,m,C="Summary";return{c(){e=N("th"),e.textContent=r,t=W(),l=N("th"),l.textContent=i,n=W(),a=N("th"),a.textContent=s,c=W(),u=N("th"),u.textContent=_,$=W(),d=N("th"),d.textContent=h,f=W(),m=N("th"),m.textContent=C,this.h()},l(y){e=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(e)!=="svelte-16bnp2i"&&(e.textContent=r),t=L(y),l=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(l)!=="svelte-115zk6j"&&(l.textContent=i),n=L(y),a=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(a)!=="svelte-lhnwb5"&&(a.textContent=s),c=L(y),u=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(u)!=="svelte-1xn3gxk"&&(u.textContent=_),$=L(y),d=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(d)!=="svelte-10ns7z5"&&(d.textContent=h),f=L(y),m=D(y,"TH",{class:!0,colspan:!0,"data-svelte-h":!0}),ae(m)!=="svelte-39g6qc"&&(m.textContent=C),this.h()},h(){T(e,"class","w-32 max-md:hidden"),T(l,"class","max-md:hidden md:w-auto"),T(a,"class","w-60 max-md:hidden"),T(u,"class","w-60 max-xl:hidden"),T(d,"class","w-60 max-xl:hidden"),T(m,"class","md:hidden"),T(m,"colspan","3")},m(y,A){w(y,e,A),w(y,t,A),w(y,l,A),w(y,n,A),w(y,a,A),w(y,c,A),w(y,u,A),w(y,$,A),w(y,d,A),w(y,f,A),w(y,m,A)},p:K,d(y){y&&(p(e),p(t),p(l),p(n),p(a),p(c),p(u),p($),p(d),p(f),p(m))}}}function ll(o){let e,r;return e=new Nt({props:{slot:"headers",$$slots:{default:[tl]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&4&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function rl(o){let e,r;return e=new qt({props:{class:"w-full md:table-fixed",updating:o[0],"data-testid":"workflows-table",$$slots:{headers:[ll],caption:[el],default:[xt]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,[l]){const i={};l&1&&(i.updating=t[0]),l&4&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function al(o,e,r){let{$$slots:t={},$$scope:l}=e,{updating:i=!1}=e;return o.$$set=n=>{"updating"in n&&r(0,i=n.updating),"$$scope"in n&&r(2,l=n.$$scope)},[i,t,l]}class ol extends ue{constructor(e){super(),ce(this,e,al,rl,fe,{updating:0})}}var qe={exports:{}};(function(o,e){var r=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,t=/-[a-z\u00E0-\u00F6\u00F8-\u00FE]/g;o.exports=e=function(i){return i.replace(r,function(n){return"-"+n.toLowerCase()})},e.reverse=function(l){return l.replace(t,function(i){return i.slice(1).toUpperCase()})}})(qe,qe.exports);var nl=qe.exports;const sl=Ht(nl);function il(o){let e;return{c(){e=H(o[1])},l(r){e=B(r,o[1])},m(r,t){w(r,e,t)},p(r,t){t&2&&oe(e,r[1])},d(r){r&&p(e)}}}function fl(o){let e,r;return e=new Bt({props:{slot:"after-input",type:"submit","data-testid":`${o[6]}-button`,$$slots:{default:[il]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&1026&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function ul(o){let e,r,t,l,i;return r=new ct({props:{class:"w-full",label:o[1],id:o[5],labelHidden:!0,icon:o[4]?"search":null,type:"search",name:o[3],value:o[2],placeholder:o[0],autocomplete:"off","data-testid":`${o[6]}-input`,$$slots:{"after-input":[fl]},$$scope:{ctx:o}}}),r.$on("input",o[8]),{c(){e=N("form"),S(r.$$.fragment),this.h()},l(n){e=D(n,"FORM",{role:!0,class:!0,"data-testid":!0});var a=O(e);I(r.$$.fragment,a),a.forEach(p),this.h()},h(){T(e,"role","search"),T(e,"class","flex items-center"),T(e,"data-testid",`${o[6]}-form`)},m(n,a){w(n,e,a),P(r,e,null),t=!0,l||(i=V(e,"submit",ot(o[7])),l=!0)},p(n,[a]){const s={};a&2&&(s.label=n[1]),a&32&&(s.id=n[5]),a&16&&(s.icon=n[4]?"search":null),a&8&&(s.name=n[3]),a&4&&(s.value=n[2]),a&1&&(s.placeholder=n[0]),a&1026&&(s.$$scope={dirty:a,ctx:n}),r.$set(s)},i(n){t||(b(r.$$.fragment,n),t=!0)},o(n){k(r.$$.fragment,n),t=!1},d(n){n&&p(e),F(r),l=!1,i()}}}function cl(o,e,r){let{placeholder:t=`${v("common.search")}…`}=e,{label:l=v("common.search")}=e,{value:i=""}=e,{name:n="query"}=e,{icon:a=!1}=e,{id:s=sl(`${l}-${n}`)}=e,c=e["data-testid"]||s;function u($){Ge.call(this,o,$)}function _($){Ge.call(this,o,$)}return o.$$set=$=>{r(9,e=Qe(Qe({},e),Ue($))),"placeholder"in $&&r(0,t=$.placeholder),"label"in $&&r(1,l=$.label),"value"in $&&r(2,i=$.value),"name"in $&&r(3,n=$.name),"icon"in $&&r(4,a=$.icon),"id"in $&&r(5,s=$.id)},e=Ue(e),[t,l,i,n,a,s,c,u,_]}class ml extends ue{constructor(e){super(),ce(this,e,cl,ul,fe,{placeholder:0,label:1,value:2,name:3,icon:4,id:5})}}function pl(o){let e,r,t;function l(n){o[6](n)}let i={type:"search",icon:"search",label:o[0],labelHidden:!0,placeholder:o[0],id:o[2]};return o[1]!==void 0&&(i.value=o[1]),e=new ct({props:i}),nt.push(()=>ft(e,"value",l)),{c(){S(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,a){P(e,n,a),t=!0},p(n,[a]){const s={};a&1&&(s.label=n[0]),a&1&&(s.placeholder=n[0]),!r&&a&2&&(r=!0,s.value=n[1],st(()=>r=!1)),e.$set(s)},i(n){t||(b(e.$$.fragment,n),t=!0)},o(n){k(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function _l(o,e,r){let t;ne(o,Ie,_=>r(5,t=_));let{parameter:l}=e,{name:i}=e,{value:n}=e,a=l&&t.url.searchParams.get(l)||n;const s=`${l||i}-filter`,c=Rt(ut,300);function u(_){a=_,r(1,a)}return o.$$set=_=>{"parameter"in _&&r(3,l=_.parameter),"name"in _&&r(0,i=_.name),"value"in _&&r(4,n=_.value)},o.$$.update=()=>{o.$$.dirty&42&&c({parameter:l,value:a,url:t.url})},[i,a,s,l,n,t,u]}class Ze extends ue{constructor(e){super(),ce(this,e,_l,pl,fe,{parameter:3,name:0,value:4})}}function Je(o,e,r){const t=o.slice();return t[6]=e[r].value,t[7]=e[r].label,t}function Ye(o,e,r){const t=o.slice();return t[6]=e[r],t}function $l(o){let e,r;return e=new Ne({props:{href:`${o[0].url.pathname}?query=`,$$slots:{default:[dl]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&1&&(i.href=`${t[0].url.pathname}?query=`),l&4096&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function hl(o){let e,r;return e=new Ne({props:{href:o[0].url.pathname,$$slots:{default:[gl]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&1&&(i.href=t[0].url.pathname),l&4096&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function dl(o){let e=v("workflows.advanced-search")+"",r;return{c(){r=H(e)},l(t){r=B(t,e)},m(t,l){w(t,r,l)},p:K,d(t){t&&p(r)}}}function gl(o){let e=v("workflows.basic-search")+"",r;return{c(){r=H(e)},l(t){r=B(t,e)},m(t,l){w(t,r,l)},p:K,d(t){t&&p(r)}}}function wl(o){let e,r,t,l,i,n,a,s,c,u,_,$;r=new Ze({props:{parameter:"workflow-id",name:v("common.workflow-id"),value:Fl}}),l=new Ze({props:{parameter:"workflow-type",name:v("common.workflow-type"),value:Al}}),n=new Xe({props:{label:v("workflows.time-range"),parameter:"time-range",value:"24 hours",$$slots:{default:[kl]},$$scope:{ctx:o}}}),s=new Xe({props:{label:v("common.status"),parameter:"status",value:null,$$slots:{default:[Tl]},$$scope:{ctx:o}}});function d(f){o[5](f)}let h={id:"filter-by-relative-time",$$slots:{default:[Il]},$$scope:{ctx:o}};return o[2]!==void 0&&(h.value=o[2]),u=new Ot({props:h}),nt.push(()=>ft(u,"value",d)),{c(){e=N("div"),S(r.$$.fragment),t=W(),S(l.$$.fragment),i=W(),S(n.$$.fragment),a=W(),S(s.$$.fragment),c=W(),S(u.$$.fragment),this.h()},l(f){e=D(f,"DIV",{class:!0,role:!0});var m=O(e);I(r.$$.fragment,m),t=L(m),I(l.$$.fragment,m),i=L(m),I(n.$$.fragment,m),a=L(m),I(s.$$.fragment,m),c=L(m),I(u.$$.fragment,m),m.forEach(p),this.h()},h(){T(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),T(e,"role","search")},m(f,m){w(f,e,m),P(r,e,null),E(e,t),P(l,e,null),E(e,i),P(n,e,null),E(e,a),P(s,e,null),E(e,c),P(u,e,null),$=!0},p(f,m){const C={};m&4096&&(C.$$scope={dirty:m,ctx:f}),n.$set(C);const y={};m&4096&&(y.$$scope={dirty:m,ctx:f}),s.$set(y);const A={};m&4096&&(A.$$scope={dirty:m,ctx:f}),!_&&m&4&&(_=!0,A.value=f[2],st(()=>_=!1)),u.$set(A)},i(f){$||(b(r.$$.fragment,f),b(l.$$.fragment,f),b(n.$$.fragment,f),b(s.$$.fragment,f),b(u.$$.fragment,f),$=!0)},o(f){k(r.$$.fragment,f),k(l.$$.fragment,f),k(n.$$.fragment,f),k(s.$$.fragment,f),k(u.$$.fragment,f),$=!1},d(f){f&&p(e),F(r),F(l),F(n),F(s),F(u)}}}function bl(o){let e,r;return e=new ml({props:{icon:!0,placeholder:v("common.search"),value:o[0].url.searchParams.get("query")}}),e.$on("submit",o[4]),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&1&&(i.value=t[0].url.searchParams.get("query")),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function vl(o){let e=o[6]+"",r;return{c(){r=H(e)},l(t){r=B(t,e)},m(t,l){w(t,r,l)},p:K,d(t){t&&p(r)}}}function xe(o){let e,r;return e=new ve({props:{value:o[6],$$slots:{default:[vl]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&4096&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function kl(o){let e,r,t=ie(Ke),l=[];for(let n=0;nk(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;na[7];for(let a=0;a{u[C]=null}),Y(),l=u[t],l?l.p(f,m):(l=u[t]=c[t](f),l.c()),b(l,1),l.m(r,null));let y=n;n=h(f),n===y?d[n].p(f,m):(J(),k(d[y],1,1,()=>{d[y]=null}),Y(),a=d[n],a?a.p(f,m):(a=d[n]=$[n](f),a.c()),b(a,1),a.m(e,null))},i(f){s||(b(l),b(a),s=!0)},o(f){k(l),k(a),s=!1},d(f){f&&p(e),u[t].d(),d[n].d()}}}let Fl="",Al="";function ql(o,e,r){let t,l,i;ne(o,Ie,c=>r(0,l=c)),ne(o,Ae,c=>r(2,i=c));const n={All:{value:null,label:v("workflows.all-statuses")},"Timed Out":{value:"TimedOut",label:v("workflows.timed-out")},Completed:{value:"Completed",label:v("workflows.completed")},Failed:{value:"Failed",label:v("workflows.failed")},"Continued as New":{value:"ContinuedAsNew",label:v("workflows.continued-as-new")},Canceled:{value:"Canceled",label:v("workflows.canceled")},Terminated:{value:"Terminated",label:v("workflows.terminated")}},a=c=>{const _=new FormData(c.target).get("query");l.url.searchParams.set("query",String(_)),Lt(l.url.toString())};function s(c){i=c,Ae.set(i)}return o.$$.update=()=>{o.$$.dirty&1&&r(1,t=l.url.searchParams.has("query"))},[l,t,i,n,a,s]}class Nl extends ue{constructor(e){super(),ce(this,e,ql,Pl,fe,{})}}function tt(o,e,r){const t=o.slice();return t[8]=e[r],t}function Dl(o){let e,r=v("workflows.archival-disabled-title")+"",t,l,i,n=v("workflows.archival-disabled-details")+"",a,s,c,u,_,$,d;u=new De({props:{content:`temporal operator namespace update --history-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}});let h=!o[1]&<(o);return{c(){e=N("h1"),t=H(r),l=W(),i=N("p"),a=H(n),s=H(":"),c=W(),S(u.$$.fragment),_=W(),h&&h.c(),$=j(),this.h()},l(f){e=D(f,"H1",{class:!0,"data-testid":!0});var m=O(e);t=B(m,r),m.forEach(p),l=L(f),i=D(f,"P",{});var C=O(i);a=B(C,n),s=B(C,":"),C.forEach(p),c=L(f),I(u.$$.fragment,f),_=L(f),h&&h.l(f),$=j(),this.h()},h(){T(e,"class","text-2xl"),T(e,"data-testid","archived-disabled-title")},m(f,m){w(f,e,m),E(e,t),w(f,l,m),w(f,i,m),E(i,a),E(i,s),w(f,c,m),P(u,f,m),w(f,_,m),h&&h.m(f,m),w(f,$,m),d=!0},p(f,m){const C={};m&16&&(C.content=`temporal operator namespace update --history-archival-state enabled ${f[4]}`),u.$set(C),f[1]?h&&(J(),k(h,1,1,()=>{h=null}),Y()):h?(h.p(f,m),m&2&&b(h,1)):(h=lt(f),h.c(),b(h,1),h.m($.parentNode,$))},i(f){d||(b(u.$$.fragment,f),b(h),d=!0)},o(f){k(u.$$.fragment,f),k(h),d=!1},d(f){f&&(p(e),p(l),p(i),p(c),p(_),p($)),F(u,f),h&&h.d(f)}}}function Wl(o){let e,r=v("workflows.visibility-disabled-archival")+"",t,l,i,n=v("workflows.archival-link-preface")+"",a,s,c=v("workflows.archival-link")+"",u,_,$,d,h;return d=new De({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){e=N("h1"),t=H(r),l=W(),i=N("p"),a=H(n),s=N("a"),u=H(c),_=H(":"),$=W(),S(d.$$.fragment),this.h()},l(f){e=D(f,"H1",{class:!0,"data-testid":!0});var m=O(e);t=B(m,r),m.forEach(p),l=L(f),i=D(f,"P",{});var C=O(i);a=B(C,n),s=D(C,"A",{class:!0,href:!0,target:!0,rel:!0});var y=O(s);u=B(y,c),y.forEach(p),_=B(C,":"),C.forEach(p),$=L(f),I(d.$$.fragment,f),this.h()},h(){T(e,"class","text-2xl"),T(e,"data-testid","visibility-disabled-title"),T(s,"class","text-blue-700 underline"),T(s,"href","https://docs.temporal.io/clusters#archival"),T(s,"target","_blank"),T(s,"rel","noreferrer")},m(f,m){w(f,e,m),E(e,t),w(f,l,m),w(f,i,m),E(i,a),E(i,s),E(s,u),E(i,_),w(f,$,m),P(d,f,m),h=!0},p(f,m){const C={};m&16&&(C.content=`temporal operator namespace update --visibility-archival-state enabled ${f[4]}`),d.$set(C)},i(f){h||(b(d.$$.fragment,f),h=!0)},o(f){k(d.$$.fragment,f),h=!1},d(f){f&&(p(e),p(l),p(i),p($)),F(d,f)}}}function Ll(o){let e,r=v("workflows.archived-workflows")+"",t,l,i,n,a,s,c,u=!o[0]&&rt();const _=[Bl,Hl],$=[];function d(h,f){var m;return(m=h[3])!=null&&m.length?0:1}return n=d(o),a=$[n]=_[n](o),{c(){e=N("h1"),t=H(r),l=W(),u&&u.c(),i=W(),a.c(),s=j(),this.h()},l(h){e=D(h,"H1",{class:!0,"data-testid":!0});var f=O(e);t=B(f,r),f.forEach(p),l=L(h),u&&u.l(h),i=L(h),a.l(h),s=j(),this.h()},h(){T(e,"class","text-2xl"),T(e,"data-testid","archived-enabled-title")},m(h,f){w(h,e,f),E(e,t),w(h,l,f),u&&u.m(h,f),w(h,i,f),$[n].m(h,f),w(h,s,f),c=!0},p(h,f){h[0]?u&&(J(),k(u,1,1,()=>{u=null}),Y()):u?f&1&&b(u,1):(u=rt(),u.c(),b(u,1),u.m(i.parentNode,i));let m=n;n=d(h),n===m?$[n].p(h,f):(J(),k($[m],1,1,()=>{$[m]=null}),Y(),a=$[n],a?a.p(h,f):(a=$[n]=_[n](h),a.c()),b(a,1),a.m(s.parentNode,s))},i(h){c||(b(u),b(a),c=!0)},o(h){k(u),k(a),c=!1},d(h){h&&(p(e),p(l),p(i),p(s)),u&&u.d(h),$[n].d(h)}}}function lt(o){let e,r=v("workflows.archival-link-preface")+"",t,l,i=v("workflows.archival-link")+"",n,a,s,c,u;return c=new De({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){e=N("p"),t=H(r),l=N("a"),n=H(i),a=H(":"),s=W(),S(c.$$.fragment),this.h()},l(_){e=D(_,"P",{});var $=O(e);t=B($,r),l=D($,"A",{class:!0,href:!0,target:!0,rel:!0});var d=O(l);n=B(d,i),d.forEach(p),a=B($,":"),$.forEach(p),s=L(_),I(c.$$.fragment,_),this.h()},h(){T(l,"class","text-blue-700 underline"),T(l,"href","https://docs.temporal.io/clusters#archival"),T(l,"target","_blank"),T(l,"rel","noreferrer")},m(_,$){w(_,e,$),E(e,t),E(e,l),E(l,n),E(e,a),w(_,s,$),P(c,_,$),u=!0},p(_,$){const d={};$&16&&(d.content=`temporal operator namespace update --visibility-archival-state enabled ${_[4]}`),c.$set(d)},i(_){u||(b(c.$$.fragment,_),u=!0)},o(_){k(c.$$.fragment,_),u=!1},d(_){_&&(p(e),p(s)),F(c,_)}}}function rt(o){let e,r;return e=new Nl({}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function Hl(o){let e,r;return e=new Dt({props:{title:v("workflows.workflow-empty-state-title"),content:v("workflows.archival-empty-state-description")}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p:K,i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function Bl(o){let e,r;return e=new Wt({props:{items:o[3],"aria-label":v("workflows.archived-workflows"),pageSizeSelectLabel:v("common.per-page"),previousButtonLabel:v("common.previous"),nextButtonLabel:v("common.next"),$$slots:{default:[Rl,({visibleItems:t})=>({7:t}),({visibleItems:t})=>t?128:0]},$$scope:{ctx:o}}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&8&&(i.items=t[3]),l&2192&&(i.$$scope={dirty:l,ctx:t}),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function at(o){let e,r;return e=new Yt({props:{workflow:o[8],namespace:o[4]}}),{c(){S(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){P(e,t,l),r=!0},p(t,l){const i={};l&128&&(i.workflow=t[8]),l&16&&(i.namespace=t[4]),e.$set(i)},i(t){r||(b(e.$$.fragment,t),r=!0)},o(t){k(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function Ol(o){let e,r,t=ie(o[7]),l=[];for(let n=0;nk(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;n{s[d]=null}),Y(),l=s[t],l?l.p(u,_):(l=s[t]=a[t](u),l.c()),b(l,1),l.m(i.parentNode,i))},i(u){n||(b(e.$$.fragment,u),b(l),n=!0)},o(u){k(e.$$.fragment,u),k(l),n=!1},d(u){u&&(p(r),p(i)),F(e,u),s[t].d(u)}}}function zl(o,e,r){let t,l,i,n,a,s;ne(o,Ie,u=>r(5,s=u));let{data:c}=e;return o.$$set=u=>{"data"in u&&r(6,c=u.data)},o.$$.update=()=>{o.$$.dirty&64&&r(4,{namespace:{namespaceInfo:{name:t}},workflows:l,archivalEnabled:i,visibilityArchivalEnabled:n,archivalQueryingNotSupported:a}=c,t,(r(3,l),r(6,c)),(r(2,i),r(6,c)),(r(1,n),r(6,c)),(r(0,a),r(6,c)))},[a,n,i,l,t,s,c]}class gr extends ue{constructor(e){super(),ce(this,e,zl,jl,fe,{data:6})}}export{gr as component,dr as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/19.Nq5hyloW.js b/ui/assets/local/_app/immutable/nodes/19.1mFjElfk.js similarity index 96% rename from ui/assets/local/_app/immutable/nodes/19.Nq5hyloW.js rename to ui/assets/local/_app/immutable/nodes/19.1mFjElfk.js index 47aae85df..f7ec0a2f3 100644 --- a/ui/assets/local/_app/immutable/nodes/19.Nq5hyloW.js +++ b/ui/assets/local/_app/immutable/nodes/19.1mFjElfk.js @@ -1 +1 @@ -import{s as Q,c as z,x as G,k as p,g as m,y as se,e as B,t as N,b as D,d as j,f as O,j as d,l as S,v as E,a as P,h as H,n as J}from"../chunks/scheduler.AWtTlMeO.js";import{S as V,i as W,c as b,a as v,m as w,t as _,b as h,d as k,g as K,e as M}from"../chunks/index.91lpp7Ff.js";import{p as oe}from"../chunks/stores.BjeHb2_D.js";import{P as fe}from"../chunks/page-title.HGZyp4X5.js";import{t as C}from"../chunks/translate.HrioCK44.js";import{h as X,u as ie}from"../chunks/await_block.yMzW6VTq.js";import{e as Y}from"../chunks/each.QPLN4A2E.js";import{B as ce}from"../chunks/badge.mHsIdLRu.js";import{E as Z}from"../chunks/empty-state.cnx-bHYa.js";import{L as me}from"../chunks/link.cs7LzqaH.js";import{T as ue,a as pe}from"../chunks/table-header-row.xBvT5iU5.js";import{T as ne}from"../chunks/table-row.rkx8mFVk.js";import{t as $e,r as _e,f as U}from"../chunks/time-format.gNW0s4c3.js";import{g as y}from"../chunks/route-for.LRddn_DS.js";import{A as he}from"../chunks/alert._GES0UbM.js";import{L as ge}from"../chunks/loading.ZhwIBa5k.js";import{l as x,i as de}from"../chunks/batch-operations.-G8o8Ept.js";function ee(s,t,l){const e=s.slice();return e[5]=t[l].state,e[6]=t[l].jobId,e[7]=t[l].startTime,e[8]=t[l].closeTime,e}function te(s){let t,l;return t=new ne({props:{$$slots:{default:[be]},$$scope:{ctx:s}}}),{c(){b(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){w(t,e,a),l=!0},p(e,a){const r={};a&2048&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function be(s){let t,l,e,a,r,c,o;return l=new Z({props:{title:C("batch.empty-state-title")}}),r=new Z({props:{title:C("batch.empty-state-title")}}),{c(){t=B("td"),b(l.$$.fragment),e=P(),a=B("td"),b(r.$$.fragment),c=P(),this.h()},l(n){t=D(n,"TD",{class:!0,colspan:!0});var f=j(t);v(l.$$.fragment,f),f.forEach(m),e=H(n),a=D(n,"TD",{class:!0,colspan:!0});var $=j(a);v(r.$$.fragment,$),$.forEach(m),c=H(n),this.h()},h(){d(t,"class","max-sm:hidden"),d(t,"colspan","4"),d(a,"class","sm:hidden"),d(a,"colspan","2")},m(n,f){p(n,t,f),w(l,t,null),p(n,e,f),p(n,a,f),w(r,a,null),p(n,c,f),o=!0},p:E,i(n){o||(_(l.$$.fragment,n),_(r.$$.fragment,n),o=!0)},o(n){h(l.$$.fragment,n),h(r.$$.fragment,n),o=!1},d(n){n&&(m(t),m(e),m(a),m(c)),k(l),k(r)}}}function ve(s){let t=s[5]+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[5]+"")&&J(l,t)},d(e){e&&m(l)}}}function we(s){let t=s[6]+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[6]+"")&&J(l,t)},d(e){e&&m(l)}}}function ke(s){let t,l,e,a,r,c,o,n=U(s[7],s[2],{relative:s[3]})+"",f,$,g,F=U(s[8],s[2],{relative:s[3]})+"",T,q,I;return l=new ce({props:{type:s[4][s[5]],$$slots:{default:[ve]},$$scope:{ctx:s}}}),r=new me({props:{href:y({namespace:s[0],jobId:s[6]}),$$slots:{default:[we]},$$scope:{ctx:s}}}),{c(){t=B("td"),b(l.$$.fragment),e=P(),a=B("td"),b(r.$$.fragment),c=P(),o=B("td"),f=N(n),$=P(),g=B("td"),T=N(F),q=P(),this.h()},l(i){t=D(i,"TD",{});var u=j(t);v(l.$$.fragment,u),u.forEach(m),e=H(i),a=D(i,"TD",{});var L=j(a);v(r.$$.fragment,L),L.forEach(m),c=H(i),o=D(i,"TD",{class:!0});var A=j(o);f=O(A,n),A.forEach(m),$=H(i),g=D(i,"TD",{class:!0});var R=j(g);T=O(R,F),R.forEach(m),q=H(i),this.h()},h(){d(o,"class","max-sm:hidden"),d(g,"class","max-sm:hidden")},m(i,u){p(i,t,u),w(l,t,null),p(i,e,u),p(i,a,u),w(r,a,null),p(i,c,u),p(i,o,u),S(o,f),p(i,$,u),p(i,g,u),S(g,T),p(i,q,u),I=!0},p(i,u){const L={};u&2&&(L.type=i[4][i[5]]),u&2050&&(L.$$scope={dirty:u,ctx:i}),l.$set(L);const A={};u&3&&(A.href=y({namespace:i[0],jobId:i[6]})),u&2050&&(A.$$scope={dirty:u,ctx:i}),r.$set(A),(!I||u&14)&&n!==(n=U(i[7],i[2],{relative:i[3]})+"")&&J(f,n),(!I||u&14)&&F!==(F=U(i[8],i[2],{relative:i[3]})+"")&&J(T,F)},i(i){I||(_(l.$$.fragment,i),_(r.$$.fragment,i),I=!0)},o(i){h(l.$$.fragment,i),h(r.$$.fragment,i),I=!1},d(i){i&&(m(t),m(e),m(a),m(c),m(o),m($),m(g),m(q)),k(l),k(r)}}}function ae(s){let t,l;return t=new ne({props:{$$slots:{default:[ke]},$$scope:{ctx:s}}}),{c(){b(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){w(t,e,a),l=!0},p(e,a){const r={};a&2063&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function Te(s){let t,l,e=Y(s[1]),a=[];for(let o=0;oh(a[o],1,1,()=>{a[o]=null});let c=null;return e.length||(c=te(s)),{c(){for(let o=0;o{c=null}),M()):(c=te(o),c.c(),_(c,1),c.m(t.parentNode,t))}},i(o){if(!l){for(let n=0;nl(2,e=n)),z(s,_e,n=>l(3,a=n));let{namespace:r}=t,{operations:c}=t;const o={Completed:"success",Running:"running",Failed:"error",Unspecified:"unspecified"};return s.$$set=n=>{"namespace"in n&&l(0,r=n.namespace),"operations"in n&&l(1,c=n.operations)},[r,c,e,a,o]}class He extends V{constructor(t){super(),W(this,t,Pe,je,Q,{namespace:0,operations:1})}}function le(s){s[2]=s[3].operations}function Ne(s){return{c:E,l:E,m:E,p:E,i:E,o:E,d:E}}function Oe(s){le(s);let t,l,e,a=s[1]&&re(s);return l=new He({props:{operations:s[2],namespace:s[0]}}),{c(){a&&a.c(),t=P(),b(l.$$.fragment)},l(r){a&&a.l(r),t=H(r),v(l.$$.fragment,r)},m(r,c){a&&a.m(r,c),p(r,t,c),w(l,r,c),e=!0},p(r,c){le(r),r[1]?a?(a.p(r,c),c&2&&_(a,1)):(a=re(r),a.c(),_(a,1),a.m(t.parentNode,t)):a&&(K(),h(a,1,1,()=>{a=null}),M());const o={};c&1&&(o.operations=r[2]),c&1&&(o.namespace=r[0]),l.$set(o)},i(r){e||(_(a),_(l.$$.fragment,r),e=!0)},o(r){h(a),h(l.$$.fragment,r),e=!1},d(r){r&&m(t),a&&a.d(r),k(l,r)}}}function re(s){let t,l;return t=new he({props:{icon:"info",intent:"info",title:C("batch.max-concurrent-alert-title"),$$slots:{default:[Ce]},$$scope:{ctx:s}}}),{c(){b(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){w(t,e,a),l=!0},p(e,a){const r={};a&16&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function Ce(s){let t=C("batch.max-concurrent-alert-description")+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p:E,d(e){e&&m(l)}}}function Fe(s){let t,l;return t=new ge({}),{c(){b(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){w(t,e,a),l=!0},p:E,i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function Ie(s){let t,l=C("batch.list-page-title")+"",e,a,r,c,o,n={ctx:s,current:null,token:null,hasCatch:!1,pending:Fe,then:Oe,catch:Ne,value:3,blocks:[,,,]};return X(c=x(s[0]),n),{c(){t=B("h1"),e=N(l),a=P(),r=G(),n.block.c(),this.h()},l(f){t=D(f,"H1",{class:!0});var $=j(t);e=O($,l),$.forEach(m),a=H(f),r=G(),n.block.l(f),this.h()},h(){d(t,"class","text-2xl")},m(f,$){p(f,t,$),S(t,e),p(f,a,$),p(f,r,$),n.block.m(f,n.anchor=$),n.mount=()=>r.parentNode,n.anchor=r,o=!0},p(f,[$]){s=f,n.ctx=s,$&1&&c!==(c=x(s[0]))&&X(c,n)||ie(n,s,$)},i(f){o||(_(n.block),o=!0)},o(f){for(let $=0;$<3;$+=1){const g=n.blocks[$];h(g)}o=!1},d(f){f&&(m(t),m(a),m(r)),n.block.d(f),n.token=null,n=null}}}function Le(s,t,l){let e;z(s,de,r=>l(1,e=r));let{namespace:a}=t;return s.$$set=r=>{"namespace"in r&&l(0,a=r.namespace)},[a,e]}class Ae extends V{constructor(t){super(),W(this,t,Le,Ie,Q,{namespace:0})}}function Se(s){let t,l,e,a;return t=new fe({props:{title:C("batch.list-page-title")}}),e=new Ae({props:{namespace:s[0]}}),{c(){b(t.$$.fragment),l=P(),b(e.$$.fragment)},l(r){v(t.$$.fragment,r),l=H(r),v(e.$$.fragment,r)},m(r,c){w(t,r,c),p(r,l,c),w(e,r,c),a=!0},p(r,[c]){const o={};c&1&&(o.namespace=r[0]),e.$set(o)},i(r){a||(_(t.$$.fragment,r),_(e.$$.fragment,r),a=!0)},o(r){h(t.$$.fragment,r),h(e.$$.fragment,r),a=!1},d(r){r&&m(l),k(t,r),k(e,r)}}}function qe(s,t,l){let e,a;return z(s,oe,r=>l(1,a=r)),s.$$.update=()=>{s.$$.dirty&2&&l(0,e=a.params.namespace)},[e,a]}class at extends V{constructor(t){super(),W(this,t,qe,Se,Q,{})}}export{at as component}; +import{s as Q,c as z,x as G,k as p,g as m,y as se,e as B,t as N,b as D,d as j,f as O,j as d,l as S,v as E,a as P,h as H,n as J}from"../chunks/scheduler.AWtTlMeO.js";import{S as V,i as W,c as b,a as v,m as w,t as _,b as h,d as k,g as K,e as M}from"../chunks/index.91lpp7Ff.js";import{p as oe}from"../chunks/stores.meYYndLY.js";import{P as fe}from"../chunks/page-title.HGZyp4X5.js";import{t as C}from"../chunks/translate.HrioCK44.js";import{h as X,u as ie}from"../chunks/await_block.yMzW6VTq.js";import{e as Y}from"../chunks/each.QPLN4A2E.js";import{B as ce}from"../chunks/badge.mHsIdLRu.js";import{E as Z}from"../chunks/empty-state.cnx-bHYa.js";import{L as me}from"../chunks/link.DdkOc0EY.js";import{T as ue,a as pe}from"../chunks/table-header-row.xBvT5iU5.js";import{T as ne}from"../chunks/table-row.rkx8mFVk.js";import{t as $e,r as _e,f as U}from"../chunks/time-format.Z3EDfPl8.js";import{g as y}from"../chunks/route-for.ezVRK9wE.js";import{A as he}from"../chunks/alert._GES0UbM.js";import{L as ge}from"../chunks/loading.ZhwIBa5k.js";import{l as x,i as de}from"../chunks/batch-operations.RudApeOm.js";function ee(s,t,l){const e=s.slice();return e[5]=t[l].state,e[6]=t[l].jobId,e[7]=t[l].startTime,e[8]=t[l].closeTime,e}function te(s){let t,l;return t=new ne({props:{$$slots:{default:[be]},$$scope:{ctx:s}}}),{c(){b(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){w(t,e,a),l=!0},p(e,a){const r={};a&2048&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function be(s){let t,l,e,a,r,c,o;return l=new Z({props:{title:C("batch.empty-state-title")}}),r=new Z({props:{title:C("batch.empty-state-title")}}),{c(){t=B("td"),b(l.$$.fragment),e=P(),a=B("td"),b(r.$$.fragment),c=P(),this.h()},l(n){t=D(n,"TD",{class:!0,colspan:!0});var f=j(t);v(l.$$.fragment,f),f.forEach(m),e=H(n),a=D(n,"TD",{class:!0,colspan:!0});var $=j(a);v(r.$$.fragment,$),$.forEach(m),c=H(n),this.h()},h(){d(t,"class","max-sm:hidden"),d(t,"colspan","4"),d(a,"class","sm:hidden"),d(a,"colspan","2")},m(n,f){p(n,t,f),w(l,t,null),p(n,e,f),p(n,a,f),w(r,a,null),p(n,c,f),o=!0},p:E,i(n){o||(_(l.$$.fragment,n),_(r.$$.fragment,n),o=!0)},o(n){h(l.$$.fragment,n),h(r.$$.fragment,n),o=!1},d(n){n&&(m(t),m(e),m(a),m(c)),k(l),k(r)}}}function ve(s){let t=s[5]+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[5]+"")&&J(l,t)},d(e){e&&m(l)}}}function we(s){let t=s[6]+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[6]+"")&&J(l,t)},d(e){e&&m(l)}}}function ke(s){let t,l,e,a,r,c,o,n=U(s[7],s[2],{relative:s[3]})+"",f,$,g,F=U(s[8],s[2],{relative:s[3]})+"",T,q,I;return l=new ce({props:{type:s[4][s[5]],$$slots:{default:[ve]},$$scope:{ctx:s}}}),r=new me({props:{href:y({namespace:s[0],jobId:s[6]}),$$slots:{default:[we]},$$scope:{ctx:s}}}),{c(){t=B("td"),b(l.$$.fragment),e=P(),a=B("td"),b(r.$$.fragment),c=P(),o=B("td"),f=N(n),$=P(),g=B("td"),T=N(F),q=P(),this.h()},l(i){t=D(i,"TD",{});var u=j(t);v(l.$$.fragment,u),u.forEach(m),e=H(i),a=D(i,"TD",{});var L=j(a);v(r.$$.fragment,L),L.forEach(m),c=H(i),o=D(i,"TD",{class:!0});var A=j(o);f=O(A,n),A.forEach(m),$=H(i),g=D(i,"TD",{class:!0});var R=j(g);T=O(R,F),R.forEach(m),q=H(i),this.h()},h(){d(o,"class","max-sm:hidden"),d(g,"class","max-sm:hidden")},m(i,u){p(i,t,u),w(l,t,null),p(i,e,u),p(i,a,u),w(r,a,null),p(i,c,u),p(i,o,u),S(o,f),p(i,$,u),p(i,g,u),S(g,T),p(i,q,u),I=!0},p(i,u){const L={};u&2&&(L.type=i[4][i[5]]),u&2050&&(L.$$scope={dirty:u,ctx:i}),l.$set(L);const A={};u&3&&(A.href=y({namespace:i[0],jobId:i[6]})),u&2050&&(A.$$scope={dirty:u,ctx:i}),r.$set(A),(!I||u&14)&&n!==(n=U(i[7],i[2],{relative:i[3]})+"")&&J(f,n),(!I||u&14)&&F!==(F=U(i[8],i[2],{relative:i[3]})+"")&&J(T,F)},i(i){I||(_(l.$$.fragment,i),_(r.$$.fragment,i),I=!0)},o(i){h(l.$$.fragment,i),h(r.$$.fragment,i),I=!1},d(i){i&&(m(t),m(e),m(a),m(c),m(o),m($),m(g),m(q)),k(l),k(r)}}}function ae(s){let t,l;return t=new ne({props:{$$slots:{default:[ke]},$$scope:{ctx:s}}}),{c(){b(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){w(t,e,a),l=!0},p(e,a){const r={};a&2063&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function Te(s){let t,l,e=Y(s[1]),a=[];for(let o=0;oh(a[o],1,1,()=>{a[o]=null});let c=null;return e.length||(c=te(s)),{c(){for(let o=0;o{c=null}),M()):(c=te(o),c.c(),_(c,1),c.m(t.parentNode,t))}},i(o){if(!l){for(let n=0;nl(2,e=n)),z(s,_e,n=>l(3,a=n));let{namespace:r}=t,{operations:c}=t;const o={Completed:"success",Running:"running",Failed:"error",Unspecified:"unspecified"};return s.$$set=n=>{"namespace"in n&&l(0,r=n.namespace),"operations"in n&&l(1,c=n.operations)},[r,c,e,a,o]}class He extends V{constructor(t){super(),W(this,t,Pe,je,Q,{namespace:0,operations:1})}}function le(s){s[2]=s[3].operations}function Ne(s){return{c:E,l:E,m:E,p:E,i:E,o:E,d:E}}function Oe(s){le(s);let t,l,e,a=s[1]&&re(s);return l=new He({props:{operations:s[2],namespace:s[0]}}),{c(){a&&a.c(),t=P(),b(l.$$.fragment)},l(r){a&&a.l(r),t=H(r),v(l.$$.fragment,r)},m(r,c){a&&a.m(r,c),p(r,t,c),w(l,r,c),e=!0},p(r,c){le(r),r[1]?a?(a.p(r,c),c&2&&_(a,1)):(a=re(r),a.c(),_(a,1),a.m(t.parentNode,t)):a&&(K(),h(a,1,1,()=>{a=null}),M());const o={};c&1&&(o.operations=r[2]),c&1&&(o.namespace=r[0]),l.$set(o)},i(r){e||(_(a),_(l.$$.fragment,r),e=!0)},o(r){h(a),h(l.$$.fragment,r),e=!1},d(r){r&&m(t),a&&a.d(r),k(l,r)}}}function re(s){let t,l;return t=new he({props:{icon:"info",intent:"info",title:C("batch.max-concurrent-alert-title"),$$slots:{default:[Ce]},$$scope:{ctx:s}}}),{c(){b(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){w(t,e,a),l=!0},p(e,a){const r={};a&16&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function Ce(s){let t=C("batch.max-concurrent-alert-description")+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p:E,d(e){e&&m(l)}}}function Fe(s){let t,l;return t=new ge({}),{c(){b(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){w(t,e,a),l=!0},p:E,i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){k(t,e)}}}function Ie(s){let t,l=C("batch.list-page-title")+"",e,a,r,c,o,n={ctx:s,current:null,token:null,hasCatch:!1,pending:Fe,then:Oe,catch:Ne,value:3,blocks:[,,,]};return X(c=x(s[0]),n),{c(){t=B("h1"),e=N(l),a=P(),r=G(),n.block.c(),this.h()},l(f){t=D(f,"H1",{class:!0});var $=j(t);e=O($,l),$.forEach(m),a=H(f),r=G(),n.block.l(f),this.h()},h(){d(t,"class","text-2xl")},m(f,$){p(f,t,$),S(t,e),p(f,a,$),p(f,r,$),n.block.m(f,n.anchor=$),n.mount=()=>r.parentNode,n.anchor=r,o=!0},p(f,[$]){s=f,n.ctx=s,$&1&&c!==(c=x(s[0]))&&X(c,n)||ie(n,s,$)},i(f){o||(_(n.block),o=!0)},o(f){for(let $=0;$<3;$+=1){const g=n.blocks[$];h(g)}o=!1},d(f){f&&(m(t),m(a),m(r)),n.block.d(f),n.token=null,n=null}}}function Le(s,t,l){let e;z(s,de,r=>l(1,e=r));let{namespace:a}=t;return s.$$set=r=>{"namespace"in r&&l(0,a=r.namespace)},[a,e]}class Ae extends V{constructor(t){super(),W(this,t,Le,Ie,Q,{namespace:0})}}function Se(s){let t,l,e,a;return t=new fe({props:{title:C("batch.list-page-title")}}),e=new Ae({props:{namespace:s[0]}}),{c(){b(t.$$.fragment),l=P(),b(e.$$.fragment)},l(r){v(t.$$.fragment,r),l=H(r),v(e.$$.fragment,r)},m(r,c){w(t,r,c),p(r,l,c),w(e,r,c),a=!0},p(r,[c]){const o={};c&1&&(o.namespace=r[0]),e.$set(o)},i(r){a||(_(t.$$.fragment,r),_(e.$$.fragment,r),a=!0)},o(r){h(t.$$.fragment,r),h(e.$$.fragment,r),a=!1},d(r){r&&m(l),k(t,r),k(e,r)}}}function qe(s,t,l){let e,a;return z(s,oe,r=>l(1,a=r)),s.$$.update=()=>{s.$$.dirty&2&&l(0,e=a.params.namespace)},[e,a]}class at extends V{constructor(t){super(),W(this,t,qe,Se,Q,{})}}export{at as component}; diff --git a/ui/assets/local/_app/immutable/nodes/2.8E6NZGkp.js b/ui/assets/local/_app/immutable/nodes/2.3GxReL1_.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/2.8E6NZGkp.js rename to ui/assets/local/_app/immutable/nodes/2.3GxReL1_.js index 9bfd0b6cf..ac8d1d995 100644 --- a/ui/assets/local/_app/immutable/nodes/2.8E6NZGkp.js +++ b/ui/assets/local/_app/immutable/nodes/2.3GxReL1_.js @@ -1,4 +1,4 @@ -import{r as Tn}from"../chunks/index.aHWtvSLc.js";import{r as sn,a as an,n as Xe}from"../chunks/route-for-api.Fwy3ccvq.js";import{a as Dn}from"../chunks/namespaces-service.qZq6gppP.js";import{f as Sn,i as zn}from"../chunks/settings-service.gk5MAAVb.js";import{c as fn,s as Vn,g as Bn,a as On}from"../chunks/auth-user.qLkr7QCG.js";import{B as un}from"../chunks/prod-browser.6V4A_NcJ.js";import{b as Rn}from"../chunks/data-encoder-config.q7-G5c7P.js";import{p as qn}from"../chunks/parse-with-big-int.e3oI4SEy.js";import{j as cn,a as ct,e as Pe,x as An,y as Mn,h as mt,k as dt,r as Pn}from"../chunks/route-for.LRddn_DS.js";/* empty css */import{s as se,x as J,k as w,g as h,p as X,u as Y,q as Z,r as y,c as le,e as M,a as O,t as G,b as P,d as U,h as R,f as Q,j as T,l as B,m as $e,a1 as Ye,n as me,G as mn,z as _e,A as Le,E as Se,D as ze,w as ue,H as fe,_ as Fn,v as ce,S as Un,L as We,V as et,y as tt,B as jn,o as dn,F as Re,$ as _n,R as _t,ah as Kn,a6 as Ge}from"../chunks/scheduler.AWtTlMeO.js";import{S as ie,i as ae,g as te,b as g,e as ne,t as _,c as E,a as L,m as C,d as I,f as nt,j as gt}from"../chunks/index.91lpp7Ff.js";import{w as Ze,a as Hn,g as pt}from"../chunks/entry.49-_VqMH.js";import{p as qe,u as Wn}from"../chunks/stores.BjeHb2_D.js";import{v as bt,D as Gn}from"../chunks/data-encoder-settings.msA6Hzow.js";import{l as ht,L as Qn}from"../chunks/labs-mode-guard.15bwZDx8.js";import{I as Ne}from"../chunks/icon.hlu3-iXK.js";import{g as lt}from"../chunks/spread.rEx3vLA9.js";import{L as Jn}from"../chunks/logo.f1KIcd7p.js";import{t as V}from"../chunks/translate.HrioCK44.js";import{p as rt}from"../chunks/persist-store.79TECdfr.js";import{t as Ve}from"../chunks/tw-merge.NbP7EmZe.js";import{i as Xn}from"../chunks/batch-operations.-G8o8Ept.js";import{L as Yn}from"../chunks/link.cs7LzqaH.js";import{I as Ae}from"../chunks/icon-button.bzDf4VVI.js";import{T as Qe}from"../chunks/tooltip.hkvKFmJN.js";import{d as gn}from"../chunks/data-encoder.NJvAc-C6.js";import{e as Ce,u as Zn,o as yn}from"../chunks/each.QPLN4A2E.js";import{I as xn}from"../chunks/input.Oj66r1n-.js";import{M as ot,a as pn,b as st,c as Be}from"../chunks/menu.clBpn3HP.js";import{M as bn}from"../chunks/menu-divider.ULnGNTZu.js";import{T as el}from"../chunks/toggle-switch.nnlj8S_t.js";import{r as Fe,t as Ue,a as tl,T as $t,b as kt,c as vt}from"../chunks/time-format.gNW0s4c3.js";import{c as nl}from"../chunks/format-camel-case.z6e2GZpK.js";import{L as ll}from"../chunks/label.2vZCl_WE.js";import{B as hn}from"../chunks/button.J_9D2qip.js";import{l as je,n as rl}from"../chunks/namespaces.AZAalcgs.js";import{E as ol}from"../chunks/error.K_W9miWl.js";import{M as sl}from"../chunks/main-content-container.5d_ZxAyo.js";import{a as wt}from"../chunks/index.VrdFapBL.js";import{t as Et}from"../chunks/toaster.JA1rZe2a.js";const il=async(r,t=fetch)=>{if(r.runtimeEnvironment.isCloud)return;const n=sn("cluster");return await an(n,{request:t}).then(e=>e)},al=async(r,t=fetch)=>{if(r.runtimeEnvironment.isCloud)return;const n=sn("systemInfo");return await an(n,{request:t}).then(e=>e)},Ke="user",fl=(r=un)=>{if(!r)return{};const t=document.cookie.split(";");let n=0,e=t.find(o=>o.includes(Ke+n)),l="";for(;e;){const[o,i]=e.split("=");l+=i,n++,e=t.find(a=>a.includes(Ke+n))}if(l)try{const o=Rn(l),i=qn(o);return{accessToken:i==null?void 0:i.AccessToken,idToken:i==null?void 0:i.IDToken,name:i==null?void 0:i.Name,picture:i==null?void 0:i.Picture,email:i==null?void 0:i.Email}}catch(o){console.error(o)}return{}},Lt=(r=un)=>{if(!r)return;const t=document.cookie.split(";");let n=0,e=t.find(l=>l.includes(Ke+n));for(;e;){const[l]=e.split("=");document.cookie=`${l}=; max-age=-1; path=/`,n++,e=t.find(o=>o.includes(Ke+n))}},ul=(r,t)=>!r.auth.enabled||!!(t!=null&&t.accessToken),cl=async function({fetch:r}){const t=await Sn(r);t.auth.enabled||(Lt(),fn());const n=fl();n!=null&&n.accessToken&&(Vn(n),Lt());const e=Bn();ul(t,e)||Tn(302,cn()),Dn(t,r);const l=await il(t,r),o=await al(t,r);return{user:e,settings:t,cluster:l,systemInfo:o}},qs=Object.freeze(Object.defineProperty({__proto__:null,load:cl},Symbol.toStringTag,{value:"Module"})),ml=r=>({}),Ct=r=>({});function dl(r){let t;const n=r[2].fallback,e=X(n,r,r[1],Ct);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&2)&&Y(e,n,l,l[1],t?y(n,l[1],o,ml):Z(l[1]),Ct)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function _l(r){let t;const n=r[2].default,e=X(n,r,r[1],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&2)&&Y(e,n,l,l[1],t?y(n,l[1],o,null):Z(l[1]),null)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function gl(r){let t,n,e,l;const o=[_l,dl],i=[];function a(s,f){return s[0]?0:1}return t=a(r),n=i[t]=o[t](r),{c(){n.c(),e=J()},l(s){n.l(s),e=J()},m(s,f){i[t].m(s,f),w(s,e,f),l=!0},p(s,[f]){let d=t;t=a(s),t===d?i[t].p(s,f):(te(),g(i[d],1,1,()=>{i[d]=null}),ne(),n=i[t],n?n.p(s,f):(n=i[t]=o[t](s),n.c()),_(n,1),n.m(e.parentNode,e))},i(s){l||(_(n),l=!0)},o(s){g(n),l=!1},d(s){s&&h(e),i[t].d(s)}}}function pl(r,t,n){let{$$slots:e={},$$scope:l}=t,{enabled:o=!1}=t;return r.$$set=i=>{"enabled"in i&&n(0,o=i.enabled),"$$scope"in i&&n(1,l=i.$$scope)},[o,l,e]}class bl extends ie{constructor(t){super(),ae(this,t,pl,gl,se,{enabled:0})}}const hl=r=>({}),It=r=>({});function $l(r){let t;const n=r[3].default,e=X(n,r,r[2],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&4)&&Y(e,n,l,l[2],t?y(n,l[2],o,null):Z(l[2]),null)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function kl(r){let t;const n=r[3].fallback,e=X(n,r,r[2],It);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&4)&&Y(e,n,l,l[2],t?y(n,l[2],o,hl):Z(l[2]),It)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function vl(r){let t,n,e,l;const o=[kl,$l],i=[];function a(s,f){var d,m,c;return s[0]||(c=(m=(d=s[1].data)==null?void 0:d.settings)==null?void 0:m.runtimeEnvironment)!=null&&c.isCloud?0:1}return t=a(r),n=i[t]=o[t](r),{c(){n.c(),e=J()},l(s){n.l(s),e=J()},m(s,f){i[t].m(s,f),w(s,e,f),l=!0},p(s,[f]){let d=t;t=a(s),t===d?i[t].p(s,f):(te(),g(i[d],1,1,()=>{i[d]=null}),ne(),n=i[t],n?n.p(s,f):(n=i[t]=o[t](s),n.c()),_(n,1),n.m(e.parentNode,e))},i(s){l||(_(n),l=!0)},o(s){g(n),l=!1},d(s){s&&h(e),i[t].d(s)}}}function wl(r,t,n){let e;le(r,qe,a=>n(1,e=a));let{$$slots:l={},$$scope:o}=t,{isCloud:i=!1}=t;return r.$$set=a=>{"isCloud"in a&&n(0,i=a.isCloud),"$$scope"in a&&n(2,o=a.$$scope)},[i,e,o,l]}class He extends ie{constructor(t){super(),ae(this,t,wl,vl,se,{isCloud:0})}}function El(){return!0}const Ll=r=>({}),Nt=r=>({});function Cl(r){let t;const n=r[4].default,e=X(n,r,r[3],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&8)&&Y(e,n,l,l[3],t?y(n,l[3],o,null):Z(l[3]),null)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Il(r){let t;const n=r[4].fallback,e=X(n,r,r[3],Nt);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&8)&&Y(e,n,l,l[3],t?y(n,l[3],o,Ll):Z(l[3]),Nt)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Nl(r){let t,n,e,l;const o=[Il,Cl],i=[];function a(s,f){return s[0]&&s[1]?0:1}return t=a(r),n=i[t]=o[t](r),{c(){n.c(),e=J()},l(s){n.l(s),e=J()},m(s,f){i[t].m(s,f),w(s,e,f),l=!0},p(s,[f]){let d=t;t=a(s),t===d?i[t].p(s,f):(te(),g(i[d],1,1,()=>{i[d]=null}),ne(),n=i[t],n?n.p(s,f):(n=i[t]=o[t](s),n.c()),_(n,1),n.m(e.parentNode,e))},i(s){l||(_(n),l=!0)},o(s){g(n),l=!1},d(s){s&&h(e),i[t].d(s)}}}function Tl(r,t,n){let e,l;le(r,qe,s=>n(2,l=s));let{$$slots:o={},$$scope:i}=t,{isCloud:a=!0}=t;return r.$$set=s=>{"isCloud"in s&&n(0,a=s.isCloud),"$$scope"in s&&n(3,i=s.$$scope)},r.$$.update=()=>{r.$$.dirty&4&&n(1,e=zn.test(El?l.url.hostname:""))},[a,e,l,i,o]}class Dl extends ie{constructor(t){super(),ae(this,t,Tl,Nl,se,{isCloud:0})}}function Sl(r){let t,n,e,l,o,i,a,s,f,d;return e=new Ne({props:{name:r[2],animate:r[4],active:r[5]}}),{c(){t=M("div"),n=M("div"),E(e.$$.fragment),l=O(),o=M("div"),i=G(r[1]),this.h()},l(m){t=P(m,"DIV",{role:!0,tabindex:!0,"data-testid":!0,class:!0});var c=U(t);n=P(c,"DIV",{class:!0,"data-tooltip":!0});var u=U(n);L(e.$$.fragment,u),u.forEach(h),l=R(c),o=P(c,"DIV",{class:!0});var b=U(o);i=Q(b,r[1]),b.forEach(h),c.forEach(h),this.h()},h(){T(n,"class","flex h-6 w-6 items-center after:absolute after:left-[calc(100%_+_1.5rem)] after:top-0 after:hidden after:h-8 after:items-center after:rounded-md after:bg-slate-800 after:p-1 after:px-2 after:text-xs after:text-white after:content-[attr(data-tooltip)] group-data-[nav=closed]:hover:after:flex"),T(n,"data-tooltip",r[3]),T(o,"class","opacity-0 transition-opacity group-data-[nav=open]:opacity-100"),T(t,"role","button"),T(t,"tabindex","0"),T(t,"data-testid",a=r[6]["data-testid"]),T(t,"class","relative mb-1 flex items-center whitespace-nowrap rounded-lg p-1 pl-2 text-sm font-medium hover:bg-white hover:text-black group-[.surface-primary]:hover:bg-black group-[.surface-primary]:hover:text-white group-[.surface-primary]:dark:hover:bg-white group-[.surface-primary]:dark:hover:text-black")},m(m,c){w(m,t,c),B(t,n),C(e,n,null),B(t,l),B(t,o),B(o,i),s=!0,f||(d=[$e(t,"click",function(){Ye(r[0])&&r[0].apply(this,arguments)}),$e(t,"keypress",function(){Ye(r[0])&&r[0].apply(this,arguments)})],f=!0)},p(m,[c]){r=m;const u={};c&4&&(u.name=r[2]),c&16&&(u.animate=r[4]),c&32&&(u.active=r[5]),e.$set(u),(!s||c&8)&&T(n,"data-tooltip",r[3]),(!s||c&2)&&me(i,r[1]),(!s||c&64&&a!==(a=r[6]["data-testid"]))&&T(t,"data-testid",a)},i(m){s||(_(e.$$.fragment,m),s=!0)},o(m){g(e.$$.fragment,m),s=!1},d(m){m&&h(t),I(e),f=!1,mn(d)}}}function zl(r,t,n){let{onClick:e}=t,{label:l}=t,{icon:o}=t,{tooltip:i=l}=t,{animate:a=!1}=t,{active:s=!1}=t;return r.$$set=f=>{n(6,t=_e(_e({},t),Le(f))),"onClick"in f&&n(0,e=f.onClick),"label"in f&&n(1,l=f.label),"icon"in f&&n(2,o=f.icon),"tooltip"in f&&n(3,i=f.tooltip),"animate"in f&&n(4,a=f.animate),"active"in f&&n(5,s=f.active)},t=Le(t),[e,l,o,i,a,s,t]}class $n extends ie{constructor(t){super(),ae(this,t,zl,Sl,se,{onClick:0,label:1,icon:2,tooltip:3,animate:4,active:5})}}const ye=rt("navOpen",!1),Vl=r=>({}),Tt=r=>({}),Bl=r=>({}),Dt=r=>({}),Ol=r=>({}),St=r=>({});function Rl(r){let t,n,e,l,o,i,a,s,f,d,m,c,u,b,$,p,S,F,N,x=V("common.version")+"",A,j,D,K,ee,k,z,pe;e=new Jn({props:{height:24,width:24,class:"m-1"}}),a=new Ne({props:{name:"chevron-right"}});const ge=r[11].top,re=X(ge,r,r[10],St),de=r[11].middle,oe=X(de,r,r[10],Dt),ve=r[11].bottom,W=X(ve,r,r[10],Tt);let ke=[{class:K=Ve("group grid h-screen w-16 grid-cols-[2rem] grid-rows-[fit-content(1.5rem)_minmax(3rem,4rem)_1fr_8rem] gap-2 border-r border-subtle px-4 py-5 transition-width data-[nav=open]:w-40 data-[nav=open]:grid-cols-[100%]","focus-visible:[&_[role=button]]:outline-none focus-visible:[&_[role=button]]:ring-4 focus-visible:[&_[role=button]]:ring-primary/70 focus-visible:[&_a]:outline-none focus-visible:[&_a]:ring-4 focus-visible:[&_a]:ring-primary/70",r[0]?"surface-primary from-indigo-600 to-indigo-950 dark:bg-gradient-to-b focus-visible:[&_[role=button]]:dark:ring-success focus-visible:[&_a]:dark:ring-success":"surface-black")},{"data-nav":ee=r[3]?"open":"closed"},{"data-testid":"navigation-header"},r[5]],Te={};for(let q=0;qn(9,i=p)),le(r,ye,p=>n(3,a=p));let{$$slots:s={},$$scope:f}=t;var d,m,c;let{isCloud:u=!1}=t,{linkList:b}=t;const $=()=>ue(ye,a=!a,a);return r.$$set=p=>{t=_e(_e({},t),Le(p)),n(5,o=ze(t,l)),"isCloud"in p&&n(0,u=p.isCloud),"linkList"in p&&n(1,b=p.linkList),"$$scope"in p&&n(10,f=p.$$scope)},r.$$.update=()=>{r.$$.dirty&960&&n(2,e=n(8,c=n(7,m=n(6,d=i.data)===null||d===void 0?void 0:d.settings)===null||m===void 0?void 0:m.version)!==null&&c!==void 0?c:"")},[u,b,e,a,$,o,d,m,c,i,f,s]}class Al extends ie{constructor(t){super(),ae(this,t,ql,Rl,se,{isCloud:0,linkList:1})}}function Ml(r){let t,n,e,l,o,i,a,s,f;return l=new Ne({props:{name:r[2],animate:r[4]}}),{c(){t=M("div"),n=M("a"),e=M("div"),E(l.$$.fragment),o=O(),i=M("div"),a=G(r[1]),this.h()},l(d){t=P(d,"DIV",{role:!0,"data-testid":!0,class:!0});var m=U(t);n=P(m,"A",{href:!0,rel:!0,target:!0,class:!0});var c=U(n);e=P(c,"DIV",{class:!0,"data-tooltip":!0});var u=U(e);L(l.$$.fragment,u),u.forEach(h),o=R(c),i=P(c,"DIV",{class:!0});var b=U(i);a=Q(b,r[1]),b.forEach(h),c.forEach(h),m.forEach(h),this.h()},h(){T(e,"class","flex h-6 w-6 items-center after:absolute after:left-[calc(100%_+_1.5rem)] after:top-0 after:hidden after:h-8 after:items-center after:rounded-md after:bg-slate-800 after:p-1 after:px-2 after:text-xs after:text-white after:content-[attr(data-tooltip)] group-data-[nav=closed]:hover:after:flex"),T(e,"data-tooltip",r[3]),T(i,"class","opacity-0 transition-opacity group-data-[nav=open]:opacity-100"),fe(i,"pointer-events-none",!r[7]),T(n,"href",r[0]),T(n,"rel",r[6]),T(n,"target",r[5]),T(n,"class","mb-1 flex items-center whitespace-nowrap rounded-lg p-1 pl-2 text-sm font-medium hover:bg-white hover:text-black group-[.surface-primary]:hover:bg-black group-[.surface-primary]:hover:text-white group-[.surface-primary]:dark:hover:bg-white group-[.surface-primary]:dark:hover:text-black"),T(t,"role","listitem"),T(t,"data-testid",s=r[8]["data-testid"]),T(t,"class","relative")},m(d,m){w(d,t,m),B(t,n),B(n,e),C(l,e,null),B(n,o),B(n,i),B(i,a),f=!0},p(d,[m]){const c={};m&4&&(c.name=d[2]),m&16&&(c.animate=d[4]),l.$set(c),(!f||m&8)&&T(e,"data-tooltip",d[3]),(!f||m&2)&&me(a,d[1]),(!f||m&128)&&fe(i,"pointer-events-none",!d[7]),(!f||m&1)&&T(n,"href",d[0]),(!f||m&64)&&T(n,"rel",d[6]),(!f||m&32)&&T(n,"target",d[5]),(!f||m&256&&s!==(s=d[8]["data-testid"]))&&T(t,"data-testid",s)},i(d){f||(_(l.$$.fragment,d),f=!0)},o(d){g(l.$$.fragment,d),f=!1},d(d){d&&h(t),I(l)}}}function Pl(r,t,n){let e,l,o;le(r,ye,c=>n(7,o=c));let{link:i}=t,{label:a}=t,{icon:s}=t,{tooltip:f=a}=t,{external:d=!1}=t,{animate:m=!1}=t;return r.$$set=c=>{n(8,t=_e(_e({},t),Le(c))),"link"in c&&n(0,i=c.link),"label"in c&&n(1,a=c.label),"icon"in c&&n(2,s=c.icon),"tooltip"in c&&n(3,f=c.tooltip),"external"in c&&n(9,d=c.external),"animate"in c&&n(4,m=c.animate)},r.$$.update=()=>{r.$$.dirty&512&&n(6,e=d?"noopener noreferrer":""),r.$$.dirty&512&&n(5,l=d?"_blank":"")},t=Le(t),[i,a,s,f,m,l,e,o,t,d]}class Ie extends ie{constructor(t){super(),ae(this,t,Pl,Ml,se,{link:0,label:1,icon:2,tooltip:3,external:9,animate:4})}}var Fl={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const xe=rt("dark mode",!!Fl.VITE_DARK_MODE,!0),Ul=r=>{xe.subscribe(t=>{t?r.dataset.theme="dark":r.dataset.theme="light"})};function jl(r){let t,n,e,l;const o=r[1].default,i=X(o,r,r[0],null);return{c(){t=O(),i&&i.c()},l(a){t=R(a),i&&i.l(a)},m(a,s){w(a,t,s),i&&i.m(a,s),n=!0,e||(l=Fn(Ul.call(null,document.body)),e=!0)},p(a,[s]){i&&i.p&&(!n||s&1)&&Y(i,o,a,a[0],n?y(o,a[0],s,null):Z(a[0]),null)},i(a){n||(_(i,a),n=!0)},o(a){g(i,a),n=!1},d(a){a&&h(t),i&&i.d(a),e=!1,l()}}}function Kl(r,t,n){let{$$slots:e={},$$scope:l}=t;return r.$$set=o=>{"$$scope"in o&&n(0,l=o.$$scope)},[l,e]}class Hl extends ie{constructor(t){super(),ae(this,t,Kl,jl,se,{})}}const Wl=r=>({}),zt=r=>({}),Gl=r=>({}),Vt=r=>({}),Ql=r=>({}),Bt=r=>({}),Jl=r=>({}),Ot=r=>({}),Xl=r=>({}),Rt=r=>({});function Yl(r){let t,n;return t=new Ie({props:{link:r[2].schedules,"data-testid":"schedules-button",label:V("common.schedules"),icon:"schedules"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&4&&(o.link=e[2].schedules),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Zl(r){var e,l;let t,n;return t=new bl({props:{enabled:!!((l=(e=r[1])==null?void 0:e.namespaceInfo)!=null&&l.supportsSchedules),$$slots:{default:[Yl]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(o){L(t.$$.fragment,o)},m(o,i){C(t,o,i),n=!0},p(o,i){var s,f;const a={};i&2&&(a.enabled=!!((f=(s=o[1])==null?void 0:s.namespaceInfo)!=null&&f.supportsSchedules)),i&2052&&(a.$$scope={dirty:i,ctx:o}),t.$set(a)},i(o){n||(_(t.$$.fragment,o),n=!0)},o(o){g(t.$$.fragment,o),n=!1},d(o){I(t,o)}}}function yl(r){let t,n;return t=new Ie({props:{link:r[2].archive,"data-testid":"archive-button",label:V("common.archive"),icon:"archives"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&4&&(o.link=e[2].archive),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function xl(r){let t,n,e,l,o,i,a,s,f;t=new Ie({props:{link:r[2].workflows,"data-testid":"workflows-button",label:V("common.workflows"),icon:"workflow"}}),e=new He({props:{isCloud:r[0],$$slots:{default:[Zl]},$$scope:{ctx:r}}});const d=r[8].top,m=X(d,r,r[11],zt);return i=new He({props:{isCloud:r[0],$$slots:{default:[yl]},$$scope:{ctx:r}}}),s=new Ie({props:{link:r[2].batchOperations,label:V("batch.nav-title"),tooltip:V("batch.list-page-title"),icon:"batch-operation",animate:!!r[7]}}),{c(){E(t.$$.fragment),n=O(),E(e.$$.fragment),l=O(),m&&m.c(),o=O(),E(i.$$.fragment),a=O(),E(s.$$.fragment)},l(c){L(t.$$.fragment,c),n=R(c),L(e.$$.fragment,c),l=R(c),m&&m.l(c),o=R(c),L(i.$$.fragment,c),a=R(c),L(s.$$.fragment,c)},m(c,u){C(t,c,u),w(c,n,u),C(e,c,u),w(c,l,u),m&&m.m(c,u),w(c,o,u),C(i,c,u),w(c,a,u),C(s,c,u),f=!0},p(c,u){const b={};u&4&&(b.link=c[2].workflows),t.$set(b);const $={};u&1&&($.isCloud=c[0]),u&2054&&($.$$scope={dirty:u,ctx:c}),e.$set($),m&&m.p&&(!f||u&2048)&&Y(m,d,c,c[11],f?y(d,c[11],u,Wl):Z(c[11]),zt);const p={};u&1&&(p.isCloud=c[0]),u&2052&&(p.$$scope={dirty:u,ctx:c}),i.$set(p);const S={};u&4&&(S.link=c[2].batchOperations),u&128&&(S.animate=!!c[7]),s.$set(S)},i(c){f||(_(t.$$.fragment,c),_(e.$$.fragment,c),_(m,c),_(i.$$.fragment,c),_(s.$$.fragment,c),f=!0)},o(c){g(t.$$.fragment,c),g(e.$$.fragment,c),g(m,c),g(i.$$.fragment,c),g(s.$$.fragment,c),f=!1},d(c){c&&(h(n),h(l),h(o),h(a)),I(t,c),I(e,c),m&&m.d(c),I(i,c),I(s,c)}}}function er(r){let t,n;return t=new Ie({props:{link:r[2].namespaces,"data-testid":"namespaces-button",label:V("common.namespaces"),icon:"namespace"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&4&&(o.link=e[2].namespaces),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function tr(r){let t,n;return t=new Ie({props:{link:r[2].docs,"data-testid":"docs-button",label:V("common.docs"),icon:"book"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&4&&(o.link=e[2].docs),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function nr(r){let t,n,e,l,o;t=new Dl({props:{isCloud:r[0],$$slots:{default:[er]},$$scope:{ctx:r}}});const i=r[8].middle,a=X(i,r,r[11],Vt);return l=new He({props:{isCloud:r[0],$$slots:{default:[tr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment),n=O(),a&&a.c(),e=O(),E(l.$$.fragment)},l(s){L(t.$$.fragment,s),n=R(s),a&&a.l(s),e=R(s),L(l.$$.fragment,s)},m(s,f){C(t,s,f),w(s,n,f),a&&a.m(s,f),w(s,e,f),C(l,s,f),o=!0},p(s,f){const d={};f&1&&(d.isCloud=s[0]),f&2052&&(d.$$scope={dirty:f,ctx:s}),t.$set(d),a&&a.p&&(!o||f&2048)&&Y(a,i,s,s[11],o?y(i,s[11],f,Gl):Z(s[11]),Vt);const m={};f&1&&(m.isCloud=s[0]),f&2052&&(m.$$scope={dirty:f,ctx:s}),l.$set(m)},i(s){o||(_(t.$$.fragment,s),_(a,s),_(l.$$.fragment,s),o=!0)},o(s){g(t.$$.fragment,s),g(a,s),g(l.$$.fragment,s),o=!1},d(s){s&&(h(n),h(e)),I(t,s),a&&a.d(s),I(l,s)}}}function lr(r){let t,n;return t=new Ie({props:{link:r[2].import,"data-testid":"import-button",label:V("common.import"),icon:"import"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&4&&(o.link=e[2].import),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function rr(r){let t,n;return t=new He({props:{isCloud:r[0],$$slots:{default:[lr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&1&&(o.isCloud=e[0]),l&2052&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function or(r){let t,n;return t=new $n({props:{onClick:r[9],tooltip:r[6]?V("common.night"):V("common.day"),label:r[6]?V("common.night"):V("common.day"),icon:r[6]?"moon":"sun"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&64&&(o.onClick=e[9]),l&64&&(o.tooltip=e[6]?V("common.night"):V("common.day")),l&64&&(o.label=e[6]?V("common.night"):V("common.day")),l&64&&(o.icon=e[6]?"moon":"sun"),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function sr(r){let t,n,e,l,o,i;return t=new Ie({props:{link:r[2].feedback,label:V("common.feedback"),icon:"feedback",external:!0}}),e=new Qn({props:{$$slots:{default:[or]},$$scope:{ctx:r}}}),o=new $n({props:{onClick:r[10],tooltip:r[5],label:r[4],icon:"labs",active:r[3],"data-testid":"labs-mode-button"}}),{c(){E(t.$$.fragment),n=O(),E(e.$$.fragment),l=O(),E(o.$$.fragment)},l(a){L(t.$$.fragment,a),n=R(a),L(e.$$.fragment,a),l=R(a),L(o.$$.fragment,a)},m(a,s){C(t,a,s),w(a,n,s),C(e,a,s),w(a,l,s),C(o,a,s),i=!0},p(a,s){const f={};s&4&&(f.link=a[2].feedback),t.$set(f);const d={};s&2112&&(d.$$scope={dirty:s,ctx:a}),e.$set(d);const m={};s&8&&(m.onClick=a[10]),s&32&&(m.tooltip=a[5]),s&16&&(m.label=a[4]),s&8&&(m.active=a[3]),o.$set(m)},i(a){i||(_(t.$$.fragment,a),_(e.$$.fragment,a),_(o.$$.fragment,a),i=!0)},o(a){g(t.$$.fragment,a),g(e.$$.fragment,a),g(o.$$.fragment,a),i=!1},d(a){a&&(h(n),h(l)),I(t,a),I(e,a),I(o,a)}}}function ir(r){let t,n,e;const l=r[8].bottom,o=X(l,r,r[11],Rt),i=r[8].import,a=X(i,r,r[11],Ot),s=a||rr(r),f=r[8].feedback,d=X(f,r,r[11],Bt),m=d||sr(r);return{c(){o&&o.c(),t=O(),s&&s.c(),n=O(),m&&m.c()},l(c){o&&o.l(c),t=R(c),s&&s.l(c),n=R(c),m&&m.l(c)},m(c,u){o&&o.m(c,u),w(c,t,u),s&&s.m(c,u),w(c,n,u),m&&m.m(c,u),e=!0},p(c,u){o&&o.p&&(!e||u&2048)&&Y(o,l,c,c[11],e?y(l,c[11],u,Xl):Z(c[11]),Rt),a?a.p&&(!e||u&2048)&&Y(a,i,c,c[11],e?y(i,c[11],u,Jl):Z(c[11]),Ot):s&&s.p&&(!e||u&5)&&s.p(c,e?u:-1),d?d.p&&(!e||u&2048)&&Y(d,f,c,c[11],e?y(f,c[11],u,Ql):Z(c[11]),Bt):m&&m.p&&(!e||u&124)&&m.p(c,e?u:-1)},i(c){e||(_(o,c),_(s,c),_(m,c),e=!0)},o(c){g(o,c),g(s,c),g(m,c),e=!1},d(c){c&&(h(t),h(n)),o&&o.d(c),s&&s.d(c),m&&m.d(c)}}}function ar(r){let t,n;return t=new Al({props:{isCloud:r[0],linkList:r[2],"aria-label":V("common.primary"),$$slots:{bottom:[ir],middle:[nr],top:[xl]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,[l]){const o={};l&1&&(o.isCloud=e[0]),l&4&&(o.linkList=e[2]),l&2303&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function fr(r,t,n){let e,l,o,i,a;le(r,ht,$=>n(3,o=$)),le(r,xe,$=>n(6,i=$)),le(r,Xn,$=>n(7,a=$));let{$$slots:s={},$$scope:f}=t,{isCloud:d=!1}=t,{activeNamespace:m}=t,{linkList:c}=t;const u=()=>ue(xe,i=!i,i),b=()=>ue(ht,o=!o,o);return r.$$set=$=>{"isCloud"in $&&n(0,d=$.isCloud),"activeNamespace"in $&&n(1,m=$.activeNamespace),"linkList"in $&&n(2,c=$.linkList),"$$scope"in $&&n(11,f=$.$$scope)},r.$$.update=()=>{r.$$.dirty&8&&n(5,e=`${V("common.labs")} ${o?`${V("common.on")} - ${V("common.experimental")}`:V("common.off")}`),r.$$.dirty&8&&n(4,l=`${V("common.labs")} ${o?V("common.on"):V("common.off")}`)},[d,m,c,o,l,e,i,a,s,u,b,f]}class ur extends ie{constructor(t){super(),ae(this,t,fr,ar,se,{isCloud:0,activeNamespace:1,linkList:2})}}function cr(r){let t=V("common.skip-nav")+"",n;return{c(){n=G(t)},l(e){n=Q(e,t)},m(e,l){w(e,n,l)},p:ce,d(e){e&&h(n)}}}function mr(r){let t,n;return t=new Yn({props:{id:"skip-nav",href:"#content",class:"absolute left-1/2 z-100 -translate-y-full p-1 focus:translate-y-0",$$slots:{default:[cr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,[l]){const o={};l&1&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}class dr extends ie{constructor(t){super(),ae(this,t,null,mr,se,{})}}function _r(r){let t,n;return t=new Qe({props:{bottomRight:!0,text:V("data-encoder.configure-codec-server"),$$slots:{default:[pr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&8&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function gr(r){let t,n,e,l;const o=[$r,hr,br],i=[];function a(s,f){var d;return(d=s[0])!=null&&d.hasNotRequested?0:s[0].hasError?1:s[0].hasSuccess?2:-1}return~(t=a(r))&&(n=i[t]=o[t](r)),{c(){n&&n.c(),e=J()},l(s){n&&n.l(s),e=J()},m(s,f){~t&&i[t].m(s,f),w(s,e,f),l=!0},p(s,f){let d=t;t=a(s),t===d?~t&&i[t].p(s,f):(n&&(te(),g(i[d],1,1,()=>{i[d]=null}),ne()),~t?(n=i[t],n?n.p(s,f):(n=i[t]=o[t](s),n.c()),_(n,1),n.m(e.parentNode,e)):n=null)},i(s){l||(_(n),l=!0)},o(s){g(n),l=!1},d(s){s&&h(e),~t&&i[t].d(s)}}}function pr(r){let t,n;return t=new Ae({props:{label:V("data-encoder.configure-codec-server"),class:"relative flex items-center","data-testid":"data-encoder-status",icon:"transcoder-off"}}),t.$on("click",r[1]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function br(r){let t,n;return t=new Qe({props:{bottomRight:!0,text:V("data-encoder.codec-server-success"),$$slots:{default:[kr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&8&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function hr(r){let t,n;return t=new Qe({props:{bottomRight:!0,text:V("data-encoder.codec-server-error"),$$slots:{default:[vr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&8&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function $r(r){let t,n;return t=new Qe({props:{bottomRight:!0,text:V("data-encoder.codec-server-configured"),$$slots:{default:[wr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&8&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function kr(r){let t,n;return t=new Ae({props:{label:V("data-encoder.codec-server-success"),class:"relative flex items-center","data-testid":"data-encoder-status-success",icon:"transcoder-on"}}),t.$on("click",r[1]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function vr(r){let t,n;return t=new Ae({props:{label:V("data-encoder.codec-server-error"),class:"relative flex items-center","data-testid":"data-encoder-status-error",icon:"transcoder-error"}}),t.$on("click",r[1]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function wr(r){let t,n;return t=new Ae({props:{label:V("data-encoder.codec-server-configured"),class:"relative flex items-center","data-testid":"data-encoder-status-configured",icon:"transcoder-on"}}),t.$on("click",r[1]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Er(r){let t,n,e,l;const o=[gr,_r],i=[];function a(s,f){var d;return(d=s[0])!=null&&d.endpoint?0:1}return n=a(r),e=i[n]=o[n](r),{c(){t=M("div"),e.c(),this.h()},l(s){t=P(s,"DIV",{class:!0});var f=U(t);e.l(f),f.forEach(h),this.h()},h(){T(t,"class","mx-1 flex items-center")},m(s,f){w(s,t,f),i[n].m(t,null),l=!0},p(s,[f]){let d=n;n=a(s),n===d?i[n].p(s,f):(te(),g(i[d],1,1,()=>{i[d]=null}),ne(),e=i[n],e?e.p(s,f):(e=i[n]=o[n](s),e.c()),_(e,1),e.m(t,null))},i(s){l||(_(e),l=!0)},o(s){g(e),l=!1},d(s){s&&h(t),i[n].d()}}}function Lr(r,t,n){let e,l;return le(r,bt,i=>n(2,e=i)),le(r,gn,i=>n(0,l=i)),[l,()=>{var i;ue(bt,e=!e,e),e&&((i=document.getElementById("content-wrapper"))===null||i===void 0||i.scrollTo(0,0))}]}class Cr extends ie{constructor(t){super(),ae(this,t,Lr,Er,se,{})}}function qt(r,t,n){const e=r.slice();return e[18]=t[n].value,e[19]=t[n].label,e[20]=t[n].offset,e[21]=t[n].abbr,e}function At(r,t,n){const e=r.slice();return e[18]=t[n].value,e[19]=t[n].label,e}function Ir(r){let t;return{c(){t=G(r[3])},l(n){t=Q(n,r[3])},m(n,e){w(n,t,e)},p(n,e){e&8&&me(t,n[3])},d(n){n&&h(t)}}}function Nr(r){let t,n;return t=new Ne({props:{slot:"leading",name:"clock"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Mt(r){let t,n,e,l,o,i,a,s=Ce(r[7]),f=[];for(let u=0;ug(f[u],1,1,()=>{f[u]=null});function m(u){r[16](u)}let c={label:V("common.relative"),id:"relative-toggle",labelPosition:"left","data-testid":"timezones-relative-toggle"};return r[5]!==void 0&&(c.checked=r[5]),e=new el({props:c}),We.push(()=>nt(e,"checked",m)),e.$on("change",r[9]),i=new bn({}),{c(){for(let u=0;ul=!1)),e.$set($)},i(u){if(!a){for(let b=0;b{if(r.runtimeEnvironment.isCloud)return;const n=sn("cluster");return await an(n,{request:t}).then(e=>e)},al=async(r,t=fetch)=>{if(r.runtimeEnvironment.isCloud)return;const n=sn("systemInfo");return await an(n,{request:t}).then(e=>e)},Ke="user",fl=(r=un)=>{if(!r)return{};const t=document.cookie.split(";");let n=0,e=t.find(o=>o.includes(Ke+n)),l="";for(;e;){const[o,i]=e.split("=");l+=i,n++,e=t.find(a=>a.includes(Ke+n))}if(l)try{const o=Rn(l),i=qn(o);return{accessToken:i==null?void 0:i.AccessToken,idToken:i==null?void 0:i.IDToken,name:i==null?void 0:i.Name,picture:i==null?void 0:i.Picture,email:i==null?void 0:i.Email}}catch(o){console.error(o)}return{}},Lt=(r=un)=>{if(!r)return;const t=document.cookie.split(";");let n=0,e=t.find(l=>l.includes(Ke+n));for(;e;){const[l]=e.split("=");document.cookie=`${l}=; max-age=-1; path=/`,n++,e=t.find(o=>o.includes(Ke+n))}},ul=(r,t)=>!r.auth.enabled||!!(t!=null&&t.accessToken),cl=async function({fetch:r}){const t=await Sn(r);t.auth.enabled||(Lt(),fn());const n=fl();n!=null&&n.accessToken&&(Vn(n),Lt());const e=Bn();ul(t,e)||Tn(302,cn()),Dn(t,r);const l=await il(t,r),o=await al(t,r);return{user:e,settings:t,cluster:l,systemInfo:o}},qs=Object.freeze(Object.defineProperty({__proto__:null,load:cl},Symbol.toStringTag,{value:"Module"})),ml=r=>({}),Ct=r=>({});function dl(r){let t;const n=r[2].fallback,e=X(n,r,r[1],Ct);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&2)&&Y(e,n,l,l[1],t?y(n,l[1],o,ml):Z(l[1]),Ct)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function _l(r){let t;const n=r[2].default,e=X(n,r,r[1],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&2)&&Y(e,n,l,l[1],t?y(n,l[1],o,null):Z(l[1]),null)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function gl(r){let t,n,e,l;const o=[_l,dl],i=[];function a(s,f){return s[0]?0:1}return t=a(r),n=i[t]=o[t](r),{c(){n.c(),e=J()},l(s){n.l(s),e=J()},m(s,f){i[t].m(s,f),w(s,e,f),l=!0},p(s,[f]){let d=t;t=a(s),t===d?i[t].p(s,f):(te(),g(i[d],1,1,()=>{i[d]=null}),ne(),n=i[t],n?n.p(s,f):(n=i[t]=o[t](s),n.c()),_(n,1),n.m(e.parentNode,e))},i(s){l||(_(n),l=!0)},o(s){g(n),l=!1},d(s){s&&h(e),i[t].d(s)}}}function pl(r,t,n){let{$$slots:e={},$$scope:l}=t,{enabled:o=!1}=t;return r.$$set=i=>{"enabled"in i&&n(0,o=i.enabled),"$$scope"in i&&n(1,l=i.$$scope)},[o,l,e]}class bl extends ie{constructor(t){super(),ae(this,t,pl,gl,se,{enabled:0})}}const hl=r=>({}),It=r=>({});function $l(r){let t;const n=r[3].default,e=X(n,r,r[2],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&4)&&Y(e,n,l,l[2],t?y(n,l[2],o,null):Z(l[2]),null)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function kl(r){let t;const n=r[3].fallback,e=X(n,r,r[2],It);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&4)&&Y(e,n,l,l[2],t?y(n,l[2],o,hl):Z(l[2]),It)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function vl(r){let t,n,e,l;const o=[kl,$l],i=[];function a(s,f){var d,m,c;return s[0]||(c=(m=(d=s[1].data)==null?void 0:d.settings)==null?void 0:m.runtimeEnvironment)!=null&&c.isCloud?0:1}return t=a(r),n=i[t]=o[t](r),{c(){n.c(),e=J()},l(s){n.l(s),e=J()},m(s,f){i[t].m(s,f),w(s,e,f),l=!0},p(s,[f]){let d=t;t=a(s),t===d?i[t].p(s,f):(te(),g(i[d],1,1,()=>{i[d]=null}),ne(),n=i[t],n?n.p(s,f):(n=i[t]=o[t](s),n.c()),_(n,1),n.m(e.parentNode,e))},i(s){l||(_(n),l=!0)},o(s){g(n),l=!1},d(s){s&&h(e),i[t].d(s)}}}function wl(r,t,n){let e;le(r,qe,a=>n(1,e=a));let{$$slots:l={},$$scope:o}=t,{isCloud:i=!1}=t;return r.$$set=a=>{"isCloud"in a&&n(0,i=a.isCloud),"$$scope"in a&&n(2,o=a.$$scope)},[i,e,o,l]}class He extends ie{constructor(t){super(),ae(this,t,wl,vl,se,{isCloud:0})}}function El(){return!0}const Ll=r=>({}),Nt=r=>({});function Cl(r){let t;const n=r[4].default,e=X(n,r,r[3],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&8)&&Y(e,n,l,l[3],t?y(n,l[3],o,null):Z(l[3]),null)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Il(r){let t;const n=r[4].fallback,e=X(n,r,r[3],Nt);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&8)&&Y(e,n,l,l[3],t?y(n,l[3],o,Ll):Z(l[3]),Nt)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Nl(r){let t,n,e,l;const o=[Il,Cl],i=[];function a(s,f){return s[0]&&s[1]?0:1}return t=a(r),n=i[t]=o[t](r),{c(){n.c(),e=J()},l(s){n.l(s),e=J()},m(s,f){i[t].m(s,f),w(s,e,f),l=!0},p(s,[f]){let d=t;t=a(s),t===d?i[t].p(s,f):(te(),g(i[d],1,1,()=>{i[d]=null}),ne(),n=i[t],n?n.p(s,f):(n=i[t]=o[t](s),n.c()),_(n,1),n.m(e.parentNode,e))},i(s){l||(_(n),l=!0)},o(s){g(n),l=!1},d(s){s&&h(e),i[t].d(s)}}}function Tl(r,t,n){let e,l;le(r,qe,s=>n(2,l=s));let{$$slots:o={},$$scope:i}=t,{isCloud:a=!0}=t;return r.$$set=s=>{"isCloud"in s&&n(0,a=s.isCloud),"$$scope"in s&&n(3,i=s.$$scope)},r.$$.update=()=>{r.$$.dirty&4&&n(1,e=zn.test(El?l.url.hostname:""))},[a,e,l,i,o]}class Dl extends ie{constructor(t){super(),ae(this,t,Tl,Nl,se,{isCloud:0})}}function Sl(r){let t,n,e,l,o,i,a,s,f,d;return e=new Ne({props:{name:r[2],animate:r[4],active:r[5]}}),{c(){t=M("div"),n=M("div"),E(e.$$.fragment),l=O(),o=M("div"),i=G(r[1]),this.h()},l(m){t=P(m,"DIV",{role:!0,tabindex:!0,"data-testid":!0,class:!0});var c=U(t);n=P(c,"DIV",{class:!0,"data-tooltip":!0});var u=U(n);L(e.$$.fragment,u),u.forEach(h),l=R(c),o=P(c,"DIV",{class:!0});var b=U(o);i=Q(b,r[1]),b.forEach(h),c.forEach(h),this.h()},h(){T(n,"class","flex h-6 w-6 items-center after:absolute after:left-[calc(100%_+_1.5rem)] after:top-0 after:hidden after:h-8 after:items-center after:rounded-md after:bg-slate-800 after:p-1 after:px-2 after:text-xs after:text-white after:content-[attr(data-tooltip)] group-data-[nav=closed]:hover:after:flex"),T(n,"data-tooltip",r[3]),T(o,"class","opacity-0 transition-opacity group-data-[nav=open]:opacity-100"),T(t,"role","button"),T(t,"tabindex","0"),T(t,"data-testid",a=r[6]["data-testid"]),T(t,"class","relative mb-1 flex items-center whitespace-nowrap rounded-lg p-1 pl-2 text-sm font-medium hover:bg-white hover:text-black group-[.surface-primary]:hover:bg-black group-[.surface-primary]:hover:text-white group-[.surface-primary]:dark:hover:bg-white group-[.surface-primary]:dark:hover:text-black")},m(m,c){w(m,t,c),B(t,n),C(e,n,null),B(t,l),B(t,o),B(o,i),s=!0,f||(d=[$e(t,"click",function(){Ye(r[0])&&r[0].apply(this,arguments)}),$e(t,"keypress",function(){Ye(r[0])&&r[0].apply(this,arguments)})],f=!0)},p(m,[c]){r=m;const u={};c&4&&(u.name=r[2]),c&16&&(u.animate=r[4]),c&32&&(u.active=r[5]),e.$set(u),(!s||c&8)&&T(n,"data-tooltip",r[3]),(!s||c&2)&&me(i,r[1]),(!s||c&64&&a!==(a=r[6]["data-testid"]))&&T(t,"data-testid",a)},i(m){s||(_(e.$$.fragment,m),s=!0)},o(m){g(e.$$.fragment,m),s=!1},d(m){m&&h(t),I(e),f=!1,mn(d)}}}function zl(r,t,n){let{onClick:e}=t,{label:l}=t,{icon:o}=t,{tooltip:i=l}=t,{animate:a=!1}=t,{active:s=!1}=t;return r.$$set=f=>{n(6,t=_e(_e({},t),Le(f))),"onClick"in f&&n(0,e=f.onClick),"label"in f&&n(1,l=f.label),"icon"in f&&n(2,o=f.icon),"tooltip"in f&&n(3,i=f.tooltip),"animate"in f&&n(4,a=f.animate),"active"in f&&n(5,s=f.active)},t=Le(t),[e,l,o,i,a,s,t]}class $n extends ie{constructor(t){super(),ae(this,t,zl,Sl,se,{onClick:0,label:1,icon:2,tooltip:3,animate:4,active:5})}}const ye=rt("navOpen",!1),Vl=r=>({}),Tt=r=>({}),Bl=r=>({}),Dt=r=>({}),Ol=r=>({}),St=r=>({});function Rl(r){let t,n,e,l,o,i,a,s,f,d,m,c,u,b,$,p,S,F,N,x=V("common.version")+"",A,j,D,K,ee,k,z,pe;e=new Jn({props:{height:24,width:24,class:"m-1"}}),a=new Ne({props:{name:"chevron-right"}});const ge=r[11].top,re=X(ge,r,r[10],St),de=r[11].middle,oe=X(de,r,r[10],Dt),ve=r[11].bottom,W=X(ve,r,r[10],Tt);let ke=[{class:K=Ve("group grid h-screen w-16 grid-cols-[2rem] grid-rows-[fit-content(1.5rem)_minmax(3rem,4rem)_1fr_8rem] gap-2 border-r border-subtle px-4 py-5 transition-width data-[nav=open]:w-40 data-[nav=open]:grid-cols-[100%]","focus-visible:[&_[role=button]]:outline-none focus-visible:[&_[role=button]]:ring-4 focus-visible:[&_[role=button]]:ring-primary/70 focus-visible:[&_a]:outline-none focus-visible:[&_a]:ring-4 focus-visible:[&_a]:ring-primary/70",r[0]?"surface-primary from-indigo-600 to-indigo-950 dark:bg-gradient-to-b focus-visible:[&_[role=button]]:dark:ring-success focus-visible:[&_a]:dark:ring-success":"surface-black")},{"data-nav":ee=r[3]?"open":"closed"},{"data-testid":"navigation-header"},r[5]],Te={};for(let q=0;qn(9,i=p)),le(r,ye,p=>n(3,a=p));let{$$slots:s={},$$scope:f}=t;var d,m,c;let{isCloud:u=!1}=t,{linkList:b}=t;const $=()=>ue(ye,a=!a,a);return r.$$set=p=>{t=_e(_e({},t),Le(p)),n(5,o=ze(t,l)),"isCloud"in p&&n(0,u=p.isCloud),"linkList"in p&&n(1,b=p.linkList),"$$scope"in p&&n(10,f=p.$$scope)},r.$$.update=()=>{r.$$.dirty&960&&n(2,e=n(8,c=n(7,m=n(6,d=i.data)===null||d===void 0?void 0:d.settings)===null||m===void 0?void 0:m.version)!==null&&c!==void 0?c:"")},[u,b,e,a,$,o,d,m,c,i,f,s]}class Al extends ie{constructor(t){super(),ae(this,t,ql,Rl,se,{isCloud:0,linkList:1})}}function Ml(r){let t,n,e,l,o,i,a,s,f;return l=new Ne({props:{name:r[2],animate:r[4]}}),{c(){t=M("div"),n=M("a"),e=M("div"),E(l.$$.fragment),o=O(),i=M("div"),a=G(r[1]),this.h()},l(d){t=P(d,"DIV",{role:!0,"data-testid":!0,class:!0});var m=U(t);n=P(m,"A",{href:!0,rel:!0,target:!0,class:!0});var c=U(n);e=P(c,"DIV",{class:!0,"data-tooltip":!0});var u=U(e);L(l.$$.fragment,u),u.forEach(h),o=R(c),i=P(c,"DIV",{class:!0});var b=U(i);a=Q(b,r[1]),b.forEach(h),c.forEach(h),m.forEach(h),this.h()},h(){T(e,"class","flex h-6 w-6 items-center after:absolute after:left-[calc(100%_+_1.5rem)] after:top-0 after:hidden after:h-8 after:items-center after:rounded-md after:bg-slate-800 after:p-1 after:px-2 after:text-xs after:text-white after:content-[attr(data-tooltip)] group-data-[nav=closed]:hover:after:flex"),T(e,"data-tooltip",r[3]),T(i,"class","opacity-0 transition-opacity group-data-[nav=open]:opacity-100"),fe(i,"pointer-events-none",!r[7]),T(n,"href",r[0]),T(n,"rel",r[6]),T(n,"target",r[5]),T(n,"class","mb-1 flex items-center whitespace-nowrap rounded-lg p-1 pl-2 text-sm font-medium hover:bg-white hover:text-black group-[.surface-primary]:hover:bg-black group-[.surface-primary]:hover:text-white group-[.surface-primary]:dark:hover:bg-white group-[.surface-primary]:dark:hover:text-black"),T(t,"role","listitem"),T(t,"data-testid",s=r[8]["data-testid"]),T(t,"class","relative")},m(d,m){w(d,t,m),B(t,n),B(n,e),C(l,e,null),B(n,o),B(n,i),B(i,a),f=!0},p(d,[m]){const c={};m&4&&(c.name=d[2]),m&16&&(c.animate=d[4]),l.$set(c),(!f||m&8)&&T(e,"data-tooltip",d[3]),(!f||m&2)&&me(a,d[1]),(!f||m&128)&&fe(i,"pointer-events-none",!d[7]),(!f||m&1)&&T(n,"href",d[0]),(!f||m&64)&&T(n,"rel",d[6]),(!f||m&32)&&T(n,"target",d[5]),(!f||m&256&&s!==(s=d[8]["data-testid"]))&&T(t,"data-testid",s)},i(d){f||(_(l.$$.fragment,d),f=!0)},o(d){g(l.$$.fragment,d),f=!1},d(d){d&&h(t),I(l)}}}function Pl(r,t,n){let e,l,o;le(r,ye,c=>n(7,o=c));let{link:i}=t,{label:a}=t,{icon:s}=t,{tooltip:f=a}=t,{external:d=!1}=t,{animate:m=!1}=t;return r.$$set=c=>{n(8,t=_e(_e({},t),Le(c))),"link"in c&&n(0,i=c.link),"label"in c&&n(1,a=c.label),"icon"in c&&n(2,s=c.icon),"tooltip"in c&&n(3,f=c.tooltip),"external"in c&&n(9,d=c.external),"animate"in c&&n(4,m=c.animate)},r.$$.update=()=>{r.$$.dirty&512&&n(6,e=d?"noopener noreferrer":""),r.$$.dirty&512&&n(5,l=d?"_blank":"")},t=Le(t),[i,a,s,f,m,l,e,o,t,d]}class Ie extends ie{constructor(t){super(),ae(this,t,Pl,Ml,se,{link:0,label:1,icon:2,tooltip:3,external:9,animate:4})}}var Fl={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const xe=rt("dark mode",!!Fl.VITE_DARK_MODE,!0),Ul=r=>{xe.subscribe(t=>{t?r.dataset.theme="dark":r.dataset.theme="light"})};function jl(r){let t,n,e,l;const o=r[1].default,i=X(o,r,r[0],null);return{c(){t=O(),i&&i.c()},l(a){t=R(a),i&&i.l(a)},m(a,s){w(a,t,s),i&&i.m(a,s),n=!0,e||(l=Fn(Ul.call(null,document.body)),e=!0)},p(a,[s]){i&&i.p&&(!n||s&1)&&Y(i,o,a,a[0],n?y(o,a[0],s,null):Z(a[0]),null)},i(a){n||(_(i,a),n=!0)},o(a){g(i,a),n=!1},d(a){a&&h(t),i&&i.d(a),e=!1,l()}}}function Kl(r,t,n){let{$$slots:e={},$$scope:l}=t;return r.$$set=o=>{"$$scope"in o&&n(0,l=o.$$scope)},[l,e]}class Hl extends ie{constructor(t){super(),ae(this,t,Kl,jl,se,{})}}const Wl=r=>({}),zt=r=>({}),Gl=r=>({}),Vt=r=>({}),Ql=r=>({}),Bt=r=>({}),Jl=r=>({}),Ot=r=>({}),Xl=r=>({}),Rt=r=>({});function Yl(r){let t,n;return t=new Ie({props:{link:r[2].schedules,"data-testid":"schedules-button",label:V("common.schedules"),icon:"schedules"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&4&&(o.link=e[2].schedules),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Zl(r){var e,l;let t,n;return t=new bl({props:{enabled:!!((l=(e=r[1])==null?void 0:e.namespaceInfo)!=null&&l.supportsSchedules),$$slots:{default:[Yl]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(o){L(t.$$.fragment,o)},m(o,i){C(t,o,i),n=!0},p(o,i){var s,f;const a={};i&2&&(a.enabled=!!((f=(s=o[1])==null?void 0:s.namespaceInfo)!=null&&f.supportsSchedules)),i&2052&&(a.$$scope={dirty:i,ctx:o}),t.$set(a)},i(o){n||(_(t.$$.fragment,o),n=!0)},o(o){g(t.$$.fragment,o),n=!1},d(o){I(t,o)}}}function yl(r){let t,n;return t=new Ie({props:{link:r[2].archive,"data-testid":"archive-button",label:V("common.archive"),icon:"archives"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&4&&(o.link=e[2].archive),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function xl(r){let t,n,e,l,o,i,a,s,f;t=new Ie({props:{link:r[2].workflows,"data-testid":"workflows-button",label:V("common.workflows"),icon:"workflow"}}),e=new He({props:{isCloud:r[0],$$slots:{default:[Zl]},$$scope:{ctx:r}}});const d=r[8].top,m=X(d,r,r[11],zt);return i=new He({props:{isCloud:r[0],$$slots:{default:[yl]},$$scope:{ctx:r}}}),s=new Ie({props:{link:r[2].batchOperations,label:V("batch.nav-title"),tooltip:V("batch.list-page-title"),icon:"batch-operation",animate:!!r[7]}}),{c(){E(t.$$.fragment),n=O(),E(e.$$.fragment),l=O(),m&&m.c(),o=O(),E(i.$$.fragment),a=O(),E(s.$$.fragment)},l(c){L(t.$$.fragment,c),n=R(c),L(e.$$.fragment,c),l=R(c),m&&m.l(c),o=R(c),L(i.$$.fragment,c),a=R(c),L(s.$$.fragment,c)},m(c,u){C(t,c,u),w(c,n,u),C(e,c,u),w(c,l,u),m&&m.m(c,u),w(c,o,u),C(i,c,u),w(c,a,u),C(s,c,u),f=!0},p(c,u){const b={};u&4&&(b.link=c[2].workflows),t.$set(b);const $={};u&1&&($.isCloud=c[0]),u&2054&&($.$$scope={dirty:u,ctx:c}),e.$set($),m&&m.p&&(!f||u&2048)&&Y(m,d,c,c[11],f?y(d,c[11],u,Wl):Z(c[11]),zt);const p={};u&1&&(p.isCloud=c[0]),u&2052&&(p.$$scope={dirty:u,ctx:c}),i.$set(p);const S={};u&4&&(S.link=c[2].batchOperations),u&128&&(S.animate=!!c[7]),s.$set(S)},i(c){f||(_(t.$$.fragment,c),_(e.$$.fragment,c),_(m,c),_(i.$$.fragment,c),_(s.$$.fragment,c),f=!0)},o(c){g(t.$$.fragment,c),g(e.$$.fragment,c),g(m,c),g(i.$$.fragment,c),g(s.$$.fragment,c),f=!1},d(c){c&&(h(n),h(l),h(o),h(a)),I(t,c),I(e,c),m&&m.d(c),I(i,c),I(s,c)}}}function er(r){let t,n;return t=new Ie({props:{link:r[2].namespaces,"data-testid":"namespaces-button",label:V("common.namespaces"),icon:"namespace"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&4&&(o.link=e[2].namespaces),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function tr(r){let t,n;return t=new Ie({props:{link:r[2].docs,"data-testid":"docs-button",label:V("common.docs"),icon:"book"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&4&&(o.link=e[2].docs),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function nr(r){let t,n,e,l,o;t=new Dl({props:{isCloud:r[0],$$slots:{default:[er]},$$scope:{ctx:r}}});const i=r[8].middle,a=X(i,r,r[11],Vt);return l=new He({props:{isCloud:r[0],$$slots:{default:[tr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment),n=O(),a&&a.c(),e=O(),E(l.$$.fragment)},l(s){L(t.$$.fragment,s),n=R(s),a&&a.l(s),e=R(s),L(l.$$.fragment,s)},m(s,f){C(t,s,f),w(s,n,f),a&&a.m(s,f),w(s,e,f),C(l,s,f),o=!0},p(s,f){const d={};f&1&&(d.isCloud=s[0]),f&2052&&(d.$$scope={dirty:f,ctx:s}),t.$set(d),a&&a.p&&(!o||f&2048)&&Y(a,i,s,s[11],o?y(i,s[11],f,Gl):Z(s[11]),Vt);const m={};f&1&&(m.isCloud=s[0]),f&2052&&(m.$$scope={dirty:f,ctx:s}),l.$set(m)},i(s){o||(_(t.$$.fragment,s),_(a,s),_(l.$$.fragment,s),o=!0)},o(s){g(t.$$.fragment,s),g(a,s),g(l.$$.fragment,s),o=!1},d(s){s&&(h(n),h(e)),I(t,s),a&&a.d(s),I(l,s)}}}function lr(r){let t,n;return t=new Ie({props:{link:r[2].import,"data-testid":"import-button",label:V("common.import"),icon:"import"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&4&&(o.link=e[2].import),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function rr(r){let t,n;return t=new He({props:{isCloud:r[0],$$slots:{default:[lr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&1&&(o.isCloud=e[0]),l&2052&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function or(r){let t,n;return t=new $n({props:{onClick:r[9],tooltip:r[6]?V("common.night"):V("common.day"),label:r[6]?V("common.night"):V("common.day"),icon:r[6]?"moon":"sun"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&64&&(o.onClick=e[9]),l&64&&(o.tooltip=e[6]?V("common.night"):V("common.day")),l&64&&(o.label=e[6]?V("common.night"):V("common.day")),l&64&&(o.icon=e[6]?"moon":"sun"),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function sr(r){let t,n,e,l,o,i;return t=new Ie({props:{link:r[2].feedback,label:V("common.feedback"),icon:"feedback",external:!0}}),e=new Qn({props:{$$slots:{default:[or]},$$scope:{ctx:r}}}),o=new $n({props:{onClick:r[10],tooltip:r[5],label:r[4],icon:"labs",active:r[3],"data-testid":"labs-mode-button"}}),{c(){E(t.$$.fragment),n=O(),E(e.$$.fragment),l=O(),E(o.$$.fragment)},l(a){L(t.$$.fragment,a),n=R(a),L(e.$$.fragment,a),l=R(a),L(o.$$.fragment,a)},m(a,s){C(t,a,s),w(a,n,s),C(e,a,s),w(a,l,s),C(o,a,s),i=!0},p(a,s){const f={};s&4&&(f.link=a[2].feedback),t.$set(f);const d={};s&2112&&(d.$$scope={dirty:s,ctx:a}),e.$set(d);const m={};s&8&&(m.onClick=a[10]),s&32&&(m.tooltip=a[5]),s&16&&(m.label=a[4]),s&8&&(m.active=a[3]),o.$set(m)},i(a){i||(_(t.$$.fragment,a),_(e.$$.fragment,a),_(o.$$.fragment,a),i=!0)},o(a){g(t.$$.fragment,a),g(e.$$.fragment,a),g(o.$$.fragment,a),i=!1},d(a){a&&(h(n),h(l)),I(t,a),I(e,a),I(o,a)}}}function ir(r){let t,n,e;const l=r[8].bottom,o=X(l,r,r[11],Rt),i=r[8].import,a=X(i,r,r[11],Ot),s=a||rr(r),f=r[8].feedback,d=X(f,r,r[11],Bt),m=d||sr(r);return{c(){o&&o.c(),t=O(),s&&s.c(),n=O(),m&&m.c()},l(c){o&&o.l(c),t=R(c),s&&s.l(c),n=R(c),m&&m.l(c)},m(c,u){o&&o.m(c,u),w(c,t,u),s&&s.m(c,u),w(c,n,u),m&&m.m(c,u),e=!0},p(c,u){o&&o.p&&(!e||u&2048)&&Y(o,l,c,c[11],e?y(l,c[11],u,Xl):Z(c[11]),Rt),a?a.p&&(!e||u&2048)&&Y(a,i,c,c[11],e?y(i,c[11],u,Jl):Z(c[11]),Ot):s&&s.p&&(!e||u&5)&&s.p(c,e?u:-1),d?d.p&&(!e||u&2048)&&Y(d,f,c,c[11],e?y(f,c[11],u,Ql):Z(c[11]),Bt):m&&m.p&&(!e||u&124)&&m.p(c,e?u:-1)},i(c){e||(_(o,c),_(s,c),_(m,c),e=!0)},o(c){g(o,c),g(s,c),g(m,c),e=!1},d(c){c&&(h(t),h(n)),o&&o.d(c),s&&s.d(c),m&&m.d(c)}}}function ar(r){let t,n;return t=new Al({props:{isCloud:r[0],linkList:r[2],"aria-label":V("common.primary"),$$slots:{bottom:[ir],middle:[nr],top:[xl]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,[l]){const o={};l&1&&(o.isCloud=e[0]),l&4&&(o.linkList=e[2]),l&2303&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function fr(r,t,n){let e,l,o,i,a;le(r,ht,$=>n(3,o=$)),le(r,xe,$=>n(6,i=$)),le(r,Xn,$=>n(7,a=$));let{$$slots:s={},$$scope:f}=t,{isCloud:d=!1}=t,{activeNamespace:m}=t,{linkList:c}=t;const u=()=>ue(xe,i=!i,i),b=()=>ue(ht,o=!o,o);return r.$$set=$=>{"isCloud"in $&&n(0,d=$.isCloud),"activeNamespace"in $&&n(1,m=$.activeNamespace),"linkList"in $&&n(2,c=$.linkList),"$$scope"in $&&n(11,f=$.$$scope)},r.$$.update=()=>{r.$$.dirty&8&&n(5,e=`${V("common.labs")} ${o?`${V("common.on")} - ${V("common.experimental")}`:V("common.off")}`),r.$$.dirty&8&&n(4,l=`${V("common.labs")} ${o?V("common.on"):V("common.off")}`)},[d,m,c,o,l,e,i,a,s,u,b,f]}class ur extends ie{constructor(t){super(),ae(this,t,fr,ar,se,{isCloud:0,activeNamespace:1,linkList:2})}}function cr(r){let t=V("common.skip-nav")+"",n;return{c(){n=G(t)},l(e){n=Q(e,t)},m(e,l){w(e,n,l)},p:ce,d(e){e&&h(n)}}}function mr(r){let t,n;return t=new Yn({props:{id:"skip-nav",href:"#content",class:"absolute left-1/2 z-100 -translate-y-full p-1 focus:translate-y-0",$$slots:{default:[cr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,[l]){const o={};l&1&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}class dr extends ie{constructor(t){super(),ae(this,t,null,mr,se,{})}}function _r(r){let t,n;return t=new Qe({props:{bottomRight:!0,text:V("data-encoder.configure-codec-server"),$$slots:{default:[pr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&8&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function gr(r){let t,n,e,l;const o=[$r,hr,br],i=[];function a(s,f){var d;return(d=s[0])!=null&&d.hasNotRequested?0:s[0].hasError?1:s[0].hasSuccess?2:-1}return~(t=a(r))&&(n=i[t]=o[t](r)),{c(){n&&n.c(),e=J()},l(s){n&&n.l(s),e=J()},m(s,f){~t&&i[t].m(s,f),w(s,e,f),l=!0},p(s,f){let d=t;t=a(s),t===d?~t&&i[t].p(s,f):(n&&(te(),g(i[d],1,1,()=>{i[d]=null}),ne()),~t?(n=i[t],n?n.p(s,f):(n=i[t]=o[t](s),n.c()),_(n,1),n.m(e.parentNode,e)):n=null)},i(s){l||(_(n),l=!0)},o(s){g(n),l=!1},d(s){s&&h(e),~t&&i[t].d(s)}}}function pr(r){let t,n;return t=new Ae({props:{label:V("data-encoder.configure-codec-server"),class:"relative flex items-center","data-testid":"data-encoder-status",icon:"transcoder-off"}}),t.$on("click",r[1]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function br(r){let t,n;return t=new Qe({props:{bottomRight:!0,text:V("data-encoder.codec-server-success"),$$slots:{default:[kr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&8&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function hr(r){let t,n;return t=new Qe({props:{bottomRight:!0,text:V("data-encoder.codec-server-error"),$$slots:{default:[vr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&8&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function $r(r){let t,n;return t=new Qe({props:{bottomRight:!0,text:V("data-encoder.codec-server-configured"),$$slots:{default:[wr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&8&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function kr(r){let t,n;return t=new Ae({props:{label:V("data-encoder.codec-server-success"),class:"relative flex items-center","data-testid":"data-encoder-status-success",icon:"transcoder-on"}}),t.$on("click",r[1]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function vr(r){let t,n;return t=new Ae({props:{label:V("data-encoder.codec-server-error"),class:"relative flex items-center","data-testid":"data-encoder-status-error",icon:"transcoder-error"}}),t.$on("click",r[1]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function wr(r){let t,n;return t=new Ae({props:{label:V("data-encoder.codec-server-configured"),class:"relative flex items-center","data-testid":"data-encoder-status-configured",icon:"transcoder-on"}}),t.$on("click",r[1]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Er(r){let t,n,e,l;const o=[gr,_r],i=[];function a(s,f){var d;return(d=s[0])!=null&&d.endpoint?0:1}return n=a(r),e=i[n]=o[n](r),{c(){t=M("div"),e.c(),this.h()},l(s){t=P(s,"DIV",{class:!0});var f=U(t);e.l(f),f.forEach(h),this.h()},h(){T(t,"class","mx-1 flex items-center")},m(s,f){w(s,t,f),i[n].m(t,null),l=!0},p(s,[f]){let d=n;n=a(s),n===d?i[n].p(s,f):(te(),g(i[d],1,1,()=>{i[d]=null}),ne(),e=i[n],e?e.p(s,f):(e=i[n]=o[n](s),e.c()),_(e,1),e.m(t,null))},i(s){l||(_(e),l=!0)},o(s){g(e),l=!1},d(s){s&&h(t),i[n].d()}}}function Lr(r,t,n){let e,l;return le(r,bt,i=>n(2,e=i)),le(r,gn,i=>n(0,l=i)),[l,()=>{var i;ue(bt,e=!e,e),e&&((i=document.getElementById("content-wrapper"))===null||i===void 0||i.scrollTo(0,0))}]}class Cr extends ie{constructor(t){super(),ae(this,t,Lr,Er,se,{})}}function qt(r,t,n){const e=r.slice();return e[18]=t[n].value,e[19]=t[n].label,e[20]=t[n].offset,e[21]=t[n].abbr,e}function At(r,t,n){const e=r.slice();return e[18]=t[n].value,e[19]=t[n].label,e}function Ir(r){let t;return{c(){t=G(r[3])},l(n){t=Q(n,r[3])},m(n,e){w(n,t,e)},p(n,e){e&8&&me(t,n[3])},d(n){n&&h(t)}}}function Nr(r){let t,n;return t=new Ne({props:{slot:"leading",name:"clock"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Mt(r){let t,n,e,l,o,i,a,s=Ce(r[7]),f=[];for(let u=0;ug(f[u],1,1,()=>{f[u]=null});function m(u){r[16](u)}let c={label:V("common.relative"),id:"relative-toggle",labelPosition:"left","data-testid":"timezones-relative-toggle"};return r[5]!==void 0&&(c.checked=r[5]),e=new el({props:c}),We.push(()=>nt(e,"checked",m)),e.$on("change",r[9]),i=new bn({}),{c(){for(let u=0;ul=!1)),e.$set($)},i(u){if(!a){for(let b=0;bnt(t,"value",f)),l=new bn({});let m=!r[1]&&Mt(r),c=Ce(r[4]),u=[];for(let p=0;pg(u[p],1,1,()=>{u[p]=null});let $=null;return c.length||($=Ft(r)),{c(){E(t.$$.fragment),e=O(),E(l.$$.fragment),o=O(),m&&m.c(),i=O();for(let p=0;pn=!1)),t.$set(F),p[1]?m&&(te(),g(m,1,1,()=>{m=null}),ne()):m?(m.p(p,S),S&2&&_(m,1)):(m=Mt(p),m.c(),_(m,1),m.m(i.parentNode,i)),S&276){c=Ce(p[4]);let N;for(N=0;N{$=null}),ne()):($=Ft(p),$.c(),_($,1),$.m(a.parentNode,a))}},i(p){if(!s){_(t.$$.fragment,p),_(l.$$.fragment,p),_(m);for(let S=0;Sn(5,o=A)),le(r,Ue,A=>n(2,i=A));var a,s,f,d;let{position:m="right"}=t;const c=tl(),u=[{label:V("common.utc"),value:"UTC"},{label:V("common.local"),value:"local"}];let b="";const $=A=>{o&&A!=="local"&&ue(Fe,o=!1,o),ue(Ue,i=A,i),n(1,b="")},p=A=>{A.target.checked&&i!=="local"&&ue(Ue,i="local",i)};Un(()=>{String(i)==="relative"&&(ue(Ue,i="local",i),ue(Fe,o=!0,o))});function S(A){b=A,n(1,b)}const F=A=>$(A);function N(A){o=A,Fe.set(o)}const x=A=>$(A);return r.$$set=A=>{"position"in A&&n(0,m=A.position)},r.$$.update=()=>{r.$$.dirty&2&&n(4,e=b?$t.filter(({abbr:A,value:j,zones:D})=>{const K=b.trim().toLowerCase();return j.toLowerCase().includes(K)||(A==null?void 0:A.toLowerCase().includes(K))||(D==null?void 0:D.some(ee=>ee.toLowerCase().includes(K)))}):$t),r.$$.dirty&15364&&n(3,l=n(13,d=n(11,s=n(10,a=kt[i])===null||a===void 0?void 0:a.abbr)!==null&&s!==void 0?s:n(12,f=kt[i])===null||f===void 0?void 0:f.label)!==null&&d!==void 0?d:nl(i))},[m,b,i,l,e,o,c,u,$,p,a,s,f,d,S,F,N,x]}class Rr extends ie{constructor(t){super(),ae(this,t,Or,Br,se,{position:0})}}const qr=r=>({}),jt=r=>({slot:"leading"}),Ar=r=>({}),Kt=r=>({slot:"trailing"});function Mr(r){let t;const n=r[2].default,e=X(n,r,r[4],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&16)&&Y(e,n,l,l[4],t?y(n,l[4],o,null):Z(l[4]),null)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Pr(r){let t;const n=r[2].leading,e=X(n,r,r[4],jt);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&16)&&Y(e,n,l,l[4],t?y(n,l[4],o,qr):Z(l[4]),jt)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Fr(r){let t;const n=r[2].trailing,e=X(n,r,r[4],Kt);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&16)&&Y(e,n,l,l[4],t?y(n,l[4],o,Ar):Z(l[4]),Kt)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Ur(r){let t,n;return t=new Be({props:{role:"option",class:"break-all","aria-selected":r[0],"aria-disabled":r[1],disabled:r[1],selected:r[0],$$slots:{trailing:[Fr],leading:[Pr],default:[Mr]},$$scope:{ctx:r}}}),t.$on("click",r[3]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,[l]){const o={};l&1&&(o["aria-selected"]=e[0]),l&2&&(o["aria-disabled"]=e[1]),l&2&&(o.disabled=e[1]),l&1&&(o.selected=e[0]),l&16&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function jr(r,t,n){let{$$slots:e={},$$scope:l}=t,{selected:o=!1}=t,{disabled:i=!1}=t;function a(s){jn.call(this,r,s)}return r.$$set=s=>{"selected"in s&&n(0,o=s.selected),"disabled"in s&&n(1,i=s.disabled),"$$scope"in s&&n(4,l=s.$$scope)},[o,i,e,a,l]}class it extends ie{constructor(t){super(),ae(this,t,jr,Ur,se,{selected:0,disabled:1})}}function Ht(r,t,n){const e=r.slice();return e[53]=t[n],e}const Kr=r=>({option:r[0]&2097152}),Wt=r=>({option:r[27](r[53])});function Gt(r){let t,n;return t=new Ne({props:{width:20,height:20,class:"ml-2 shrink-0",name:r[11]}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l[0]&2048&&(o.name=e[11]),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Hr(r){let t,n;return t=new Ne({props:{name:r[22]?"chevron-up":"chevron-down"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l[0]&4194304&&(o.name=e[22]?"chevron-up":"chevron-down"),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Qt(r){let t,n,e,l;return e=new hn({props:{variant:"ghost",size:"xs",href:r[16],disabled:r[17],$$slots:{default:[Wr]},$$scope:{ctx:r}}}),{c(){t=M("div"),n=O(),E(e.$$.fragment),this.h()},l(o){t=P(o,"DIV",{class:!0}),U(t).forEach(h),n=R(o),L(e.$$.fragment,o),this.h()},h(){T(t,"class","ml-1 h-full w-1 border-l-2 border-subtle")},m(o,i){w(o,t,i),w(o,n,i),C(e,o,i),l=!0},p(o,i){const a={};i[0]&65536&&(a.href=o[16]),i[0]&131072&&(a.disabled=o[17]),i[1]&32768&&(a.$$scope={dirty:i,ctx:o}),e.$set(a)},i(o){l||(_(e.$$.fragment,o),l=!0)},o(o){g(e.$$.fragment,o),l=!1},d(o){o&&(h(t),h(n)),I(e,o)}}}function Wr(r){let t,n;return t=new Ne({props:{name:"external-link"}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p:ce,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Jt(r){let t,n;return{c(){t=M("span"),n=G(r[14]),this.h()},l(e){t=P(e,"SPAN",{class:!0});var l=U(t);n=Q(l,r[14]),l.forEach(h),this.h()},h(){T(t,"class","error svelte-wbq6sk")},m(e,l){w(e,t,l),B(t,n)},p(e,l){l[0]&16384&&me(n,e[14])},d(e){e&&h(t)}}}function Xt(r){let t,n;return t=new it({props:{disabled:!0,$$slots:{default:[Gr]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l[0]&32|l[1]&32768&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Gr(r){let t;return{c(){t=G(r[5])},l(n){t=Q(n,r[5])},m(n,e){w(n,t,e)},p(n,e){e[0]&32&&me(t,n[5])},d(n){n&&h(t)}}}function Qr(r){let t,n,e,l,o;const i=[Yr,Xr],a=[];function s(f,d){return d[0]&2097152&&(t=null),t==null&&(t=!!f[30](f[53])),t?0:1}return n=s(r,[-1,-1]),e=a[n]=i[n](r),{c(){e.c(),l=J()},l(f){e.l(f),l=J()},m(f,d){a[n].m(f,d),w(f,l,d),o=!0},p(f,d){let m=n;n=s(f,d),n===m?a[n].p(f,d):(te(),g(a[m],1,1,()=>{a[m]=null}),ne(),e=a[n],e?e.p(f,d):(e=a[n]=i[n](f),e.c()),_(e,1),e.m(l.parentNode,l))},i(f){o||(_(e),o=!0)},o(f){g(e),o=!1},d(f){f&&h(l),a[n].d(f)}}}function Jr(r){let t,n;function e(){return r[43](r[53])}return t=new it({props:{selected:r[0]===r[53],$$slots:{default:[yr]},$$scope:{ctx:r}}}),t.$on("click",e),{c(){E(t.$$.fragment)},l(l){L(t.$$.fragment,l)},m(l,o){C(t,l,o),n=!0},p(l,o){r=l;const i={};o[0]&2097153&&(i.selected=r[0]===r[53]),o[0]&2097152|o[1]&32768&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i(l){n||(_(t.$$.fragment,l),n=!0)},o(l){g(t.$$.fragment,l),n=!1},d(l){I(t,l)}}}function Xr(r){let t;const n=r[41].default,e=X(n,r,r[46],Wt);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o[0]&2097152|o[1]&32768)&&Y(e,n,l,l[46],t?y(n,l[46],o,Kr):Z(l[46]),Wt)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Yr(r){let t,n;function e(){return r[44](r[53])}return t=new it({props:{selected:r[0]===r[53][r[12]],$$slots:{default:[Zr]},$$scope:{ctx:r}}}),t.$on("click",e),{c(){E(t.$$.fragment)},l(l){L(t.$$.fragment,l)},m(l,o){C(t,l,o),n=!0},p(l,o){r=l;const i={};o[0]&2101249&&(i.selected=r[0]===r[53][r[12]]),o[0]&2105344|o[1]&32768&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i(l){n||(_(t.$$.fragment,l),n=!0)},o(l){g(t.$$.fragment,l),n=!1},d(l){I(t,l)}}}function Zr(r){let t=r[53][r[13]]+"",n,e;return{c(){n=G(t),e=O()},l(l){n=Q(l,t),e=R(l)},m(l,o){w(l,n,o),w(l,e,o)},p(l,o){o[0]&2105344&&t!==(t=l[53][l[13]]+"")&&me(n,t)},d(l){l&&(h(n),h(e))}}}function yr(r){let t=r[53]+"",n,e;return{c(){n=G(t),e=O()},l(l){n=Q(l,t),e=R(l)},m(l,o){w(l,n,o),w(l,e,o)},p(l,o){o[0]&2097152&&t!==(t=l[53]+"")&&me(n,t)},d(l){l&&(h(n),h(e))}}}function Yt(r){let t,n,e,l,o,i;const a=[Jr,Qr],s=[];function f(d,m){return m[0]&2097152&&(t=null),m[0]&2097152&&(n=null),t==null&&(t=!!d[28](d[53])),t?0:(n==null&&(n=!!d[29](d[53])),n?1:-1)}return~(e=f(r,[-1,-1]))&&(l=s[e]=a[e](r)),{c(){l&&l.c(),o=J()},l(d){l&&l.l(d),o=J()},m(d,m){~e&&s[e].m(d,m),w(d,o,m),i=!0},p(d,m){let c=e;e=f(d,m),e===c?~e&&s[e].p(d,m):(l&&(te(),g(s[c],1,1,()=>{s[c]=null}),ne()),~e?(l=s[e],l?l.p(d,m):(l=s[e]=a[e](d),l.c()),_(l,1),l.m(o.parentNode,o)):l=null)},i(d){i||(_(l),i=!0)},o(d){g(l),i=!1},d(d){d&&h(o),~e&&s[e].d(d)}}}function xr(r){let t,n,e=Ce(r[21]),l=[];for(let a=0;ag(l[a],1,1,()=>{l[a]=null});let i=null;return e.length||(i=Xt(r)),{c(){for(let a=0;a{i=null}),ne()):(i=Xt(a),i.c(),_(i,1),i.m(t.parentNode,t))}},i(a){if(!n){for(let s=0;snt(b,"menuElement",K)),{c(){E(t.$$.fragment),n=O(),e=M("div"),N&&N.c(),l=O(),o=M("input"),f=O(),E(d.$$.fragment),m=O(),j&&j.c(),c=O(),D&&D.c(),u=O(),E(b.$$.fragment),this.h()},l(k){L(t.$$.fragment,k),n=R(k),e=P(k,"DIV",{class:!0});var z=U(e);N&&N.l(z),l=R(z),o=P(z,"INPUT",{id:!0,placeholder:!0,type:!0,class:!0,role:!0,autocomplete:!0,autocapitalize:!0,spellcheck:!0,"data-lpignore":!0,"aria-controls":!0,"aria-expanded":!0,"aria-required":!0,"aria-autocomplete":!0,"data-testid":!0}),f=R(z),L(d.$$.fragment,z),m=R(z),j&&j.l(z),z.forEach(h),c=R(k),D&&D.l(k),u=R(k),L(b.$$.fragment,k),this.h()},h(){Se(o,A),fe(o,"disabled",r[6]),fe(o,"svelte-wbq6sk",!0),T(e,"class","combobox-wrapper svelte-wbq6sk"),fe(e,"disabled",r[6]),fe(e,"invalid",!r[15])},m(k,z){C(t,k,z),w(k,n,z),w(k,e,z),N&&N.m(e,null),B(e,l),B(e,o),"value"in A&&(o.value=A.value),o.autofocus&&o.focus(),r[42](o),B(e,f),C(d,e,null),B(e,m),j&&j.m(e,null),w(k,c,z),D&&D.m(k,z),w(k,u,z),C(b,k,z),p=!0,S||(F=[$e(o,"focus",Re(r[25])),$e(o,"input",Re(r[33])),$e(o,"keydown",Re(r[32])),$e(o,"click",Re(r[34]))],S=!0)},p(k,z){const pe={};z[0]&128&&(pe.hidden=k[7]),z[0]&1024&&(pe.required=k[10]),z[0]&8&&(pe.label=k[3]),z[0]&4&&(pe.for=k[2]),t.$set(pe),k[11]?N?(N.p(k,z),z[0]&2048&&_(N,1)):(N=Gt(k),N.c(),_(N,1),N.m(e,l)):N&&(te(),g(N,1,1,()=>{N=null}),ne()),Se(o,A=lt(x,[(!p||z[0]&4)&&{id:k[2]},(!p||z[0]&256)&&{placeholder:k[8]},(!p||z[0]&1024)&&{required:k[10]},(!p||z[0]&512)&&{readOnly:k[9]},(!p||z[0]&64)&&{disabled:k[6]},{type:"text"},(!p||z[0]&262144&&o.value!==k[18])&&{value:k[18]},(!p||z[0]&2&&i!==(i=Ve("combobox-input",k[1])))&&{class:i},{role:"combobox"},{autocomplete:"off"},{autocapitalize:"off"},{spellcheck:"false"},{"data-lpignore":"true"},(!p||z[0]&4&&a!==(a=k[2]+"-listbox"))&&{"aria-controls":a},(!p||z[0]&4194304)&&{"aria-expanded":k[22]},(!p||z[0]&1024)&&{"aria-required":k[10]},{"aria-autocomplete":"list"},(!p||z[0]&4|z[1]&16&&s!==(s=k[35]["data-testid"]??k[2]))&&{"data-testid":s},z[1]&32&&k[36]])),"value"in A&&(o.value=A.value),fe(o,"disabled",k[6]),fe(o,"svelte-wbq6sk",!0);const ge={};z[0]&16&&(ge["aria-label"]=k[4]),z[0]&4&&(ge["aria-controls"]=k[2]+"-listbox"),z[0]&4194304&&(ge["aria-expanded"]=k[22]),z[0]&4194304|z[1]&32768&&(ge.$$scope={dirty:z,ctx:k}),d.$set(ge),k[16]?j?(j.p(k,z),z[0]&65536&&_(j,1)):(j=Qt(k),j.c(),_(j,1),j.m(e,null)):j&&(te(),g(j,1,1,()=>{j=null}),ne()),(!p||z[0]&64)&&fe(e,"disabled",k[6]),(!p||z[0]&32768)&&fe(e,"invalid",!k[15]),k[14]&&!k[15]?D?D.p(k,z):(D=Jt(k),D.c(),D.m(u.parentNode,u)):D&&(D.d(1),D=null);const re={};z[0]&4&&(re.id=k[2]+"-listbox"),z[0]&2109473|z[1]&32768&&(re.$$scope={dirty:z,ctx:k}),!$&&z[0]&1048576&&($=!0,re.menuElement=k[20],et(()=>$=!1)),b.$set(re)},i(k){p||(_(t.$$.fragment,k),_(N),_(d.$$.fragment,k),_(j),_(b.$$.fragment,k),p=!0)},o(k){g(t.$$.fragment,k),g(N),g(d.$$.fragment,k),g(j),g(b.$$.fragment,k),p=!1},d(k){k&&(h(n),h(e),h(c),h(u)),I(t,k),N&&N.d(),r[42](null),I(d),j&&j.d(),D&&D.d(k),I(b,k),S=!1,mn(F)}}}function to(r){let t,n;return t=new ot({props:{open:r[23],$$slots:{default:[eo]},$$scope:{ctx:r}}}),t.$on("close",r[26]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l[0]&8388607|l[1]&32816&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function no(r,t,n){let e;const l=["class","id","label","value","toggleLabel","noResultsText","disabled","labelHidden","options","placeholder","readonly","required","leadingIcon","optionValueKey","optionLabelKey","minSize","maxSize","error","valid","href","linkDisabled"];let o=ze(t,l),i,{$$slots:a={},$$scope:s}=t;const f=dn();let{class:d=""}=t,{id:m}=t,{label:c}=t,{value:u=void 0}=t,{toggleLabel:b}=t,{noResultsText:$}=t,{disabled:p=!1}=t,{labelHidden:S=!1}=t,{options:F}=t,{placeholder:N=null}=t,{readonly:x=!1}=t,{required:A=!1}=t,{leadingIcon:j=null}=t,{optionValueKey:D=null}=t,{optionLabelKey:K=D}=t,{minSize:ee=0}=t,{maxSize:k=120}=t,{error:z=""}=t,{valid:pe=!0}=t,{href:ge=""}=t,{linkDisabled:re=!1}=t,de,oe,ve,W;const ke=Ze(!1);le(r,ke,v=>n(22,i=v));const Te=()=>{i?H():q()},q=()=>{ue(ke,i=!0,i),W.focus(),W.select()},H=()=>{i&&(ue(ke,i=!1,i),f("close",{selectedOption:oe}),De())},Me=()=>{f("close",{selectedOption:oe}),De()},De=()=>{n(18,de=ft(oe)),n(21,e=F)},we=v=>v,be=v=>typeof v=="string",he=v=>typeof v=="object",Ee=v=>v===null||typeof v!="object"?!1:D!==null&&K!==null&&D in v&&K in v,ft=v=>{if(!v)return u??"";if(be(v))return v;if(he(v)&&Ee(v))return String(v[K])},kn=v=>{be(v)&&n(0,u=v),he(v)&&Ee(v)&&n(0,u=String(v[D]))},Je=v=>{kn(v),f("change",{value:v}),De()},ut=()=>{const v=ve.querySelector('li[role="option"]:not([aria-disabled="true"])');v&&requestAnimationFrame(()=>v.focus())},vn=v=>{switch(v.key){case"Escape":H();break;case"ArrowDown":q(),ut();break;case"Enter":q(),ut();break}},wn=v=>{n(18,de=v.currentTarget.value),f("filter",de),i||ue(ke,i=!0,i),n(21,e=F.filter(Oe=>{if(be(Oe))return Oe.toLowerCase().includes(v.currentTarget.value.toLowerCase());if(he(Oe)&&Ee(Oe))return String(Oe[K]).toLowerCase().includes(v.currentTarget.value.toLowerCase())}))},En=()=>{i||q()};function Ln(v){We[v?"unshift":"push"](()=>{W=v,n(19,W),n(18,de),n(38,ee),n(39,k),n(37,F),n(0,u),n(12,D),n(40,oe)})}const Cn=v=>Je(v),In=v=>Je(v);function Nn(v){ve=v,n(20,ve)}return r.$$set=v=>{n(35,t=_e(_e({},t),Le(v))),n(36,o=ze(t,l)),"class"in v&&n(1,d=v.class),"id"in v&&n(2,m=v.id),"label"in v&&n(3,c=v.label),"value"in v&&n(0,u=v.value),"toggleLabel"in v&&n(4,b=v.toggleLabel),"noResultsText"in v&&n(5,$=v.noResultsText),"disabled"in v&&n(6,p=v.disabled),"labelHidden"in v&&n(7,S=v.labelHidden),"options"in v&&n(37,F=v.options),"placeholder"in v&&n(8,N=v.placeholder),"readonly"in v&&n(9,x=v.readonly),"required"in v&&n(10,A=v.required),"leadingIcon"in v&&n(11,j=v.leadingIcon),"optionValueKey"in v&&n(12,D=v.optionValueKey),"optionLabelKey"in v&&n(13,K=v.optionLabelKey),"minSize"in v&&n(38,ee=v.minSize),"maxSize"in v&&n(39,k=v.maxSize),"error"in v&&n(14,z=v.error),"valid"in v&&n(15,pe=v.valid),"href"in v&&n(16,ge=v.href),"linkDisabled"in v&&n(17,re=v.linkDisabled),"$$scope"in v&&n(46,s=v.$$scope)},r.$$.update=()=>{r.$$.dirty[1]&64&&n(21,e=F),r.$$.dirty[0]&4097|r.$$.dirty[1]&576&&(n(40,oe=F.find(v=>{if(be(v))return v===u;if(he(v)&&Ee(v))return v[D]===u})),n(18,de=ft(oe))),r.$$.dirty[0]&786432|r.$$.dirty[1]&384&&W&&de&&(de.lengthk?n(19,W.size=k,W):n(19,W.size=de.length,W))},t=Le(t),[u,d,m,c,b,$,p,S,N,x,A,j,D,K,z,pe,ge,re,de,W,ve,e,i,ke,Te,q,Me,we,be,he,Ee,Je,vn,wn,En,t,o,F,ee,k,oe,a,Ln,Cn,In,Nn,s]}class lo extends ie{constructor(t){super(),ae(this,t,no,to,se,{class:1,id:2,label:3,value:0,toggleLabel:4,noResultsText:5,disabled:6,labelHidden:7,options:37,placeholder:8,readonly:9,required:10,leadingIcon:11,optionValueKey:12,optionLabelKey:13,minSize:38,maxSize:39,error:14,valid:15,href:16,linkDisabled:17},null,[-1,-1])}}function Zt(r){let t,n;return t=new lo({props:{label:V("namespaces.namespace-label",{namespace:r[3]}),toggleLabel:V("common.namespaces"),noResultsText:V("common.no-results"),labelHidden:!0,value:r[3],id:"namespace-switcher",leadingIcon:"namespace-switcher",options:r[1],optionValueKey:"namespace",minSize:32,href:ct({namespace:r[3]}),linkDisabled:!r[6]}}),t.$on("change",r[11]),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&8&&(o.label=V("namespaces.namespace-label",{namespace:e[3]})),l&8&&(o.value=e[3]),l&2&&(o.options=e[1]),l&8&&(o.href=ct({namespace:e[3]})),l&64&&(o.linkDisabled=!e[6]),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function yt(r){let t,n;return t=new Cr({}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function xt(r){let t,n;return t=new ot({props:{$$slots:{default:[ao]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,l){C(t,e,l),n=!0},p(e,l){const o={};l&66085&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){g(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function en(r){var l;let t,n=((l=r[9])==null?void 0:l.name.trim().charAt(0))+"",e;return{c(){t=M("div"),e=G(n),this.h()},l(o){t=P(o,"DIV",{class:!0});var i=U(t);e=Q(i,n),i.forEach(h),this.h()},h(){T(t,"class","text-center text-sm text-black")},m(o,i){w(o,t,i),B(t,e)},p(o,i){var a;i&512&&n!==(n=((a=o[9])==null?void 0:a.name.trim().charAt(0))+"")&&me(e,n)},d(o){o&&h(t)}}}function ro(r){var f;let t,n,e,l,o,i,a,s=((f=r[9])==null?void 0:f.name)&&en(r);return{c(){t=M("img"),l=O(),o=M("div"),s&&s.c(),this.h()},l(d){t=P(d,"IMG",{src:!0,alt:!0,class:!0}),l=R(d),o=P(d,"DIV",{class:!0});var m=U(o);s&&s.l(m),m.forEach(h),this.h()},h(){var d,m;_t(t.src,n=(d=r[9])==null?void 0:d.picture)||T(t,"src",n),T(t,"alt",e=((m=r[9])==null?void 0:m.profile)??V("common.user-profile")),T(t,"class","h-[24px] w-[24px] cursor-pointer rounded-md"),fe(t,"hidden",!r[5]),T(o,"class","aspect-square h-full w-[24px] rounded-md bg-blue-200 p-0.5"),fe(o,"hidden",r[5])},m(d,m){w(d,t,m),w(d,l,m),w(d,o,m),s&&s.m(o,null),i||(a=$e(t,"error",r[10]),i=!0)},p(d,m){var c,u,b;m&512&&!_t(t.src,n=(c=d[9])==null?void 0:c.picture)&&T(t,"src",n),m&512&&e!==(e=((u=d[9])==null?void 0:u.profile)??V("common.user-profile"))&&T(t,"alt",e),m&32&&fe(t,"hidden",!d[5]),(b=d[9])!=null&&b.name?s?s.p(d,m):(s=en(d),s.c(),s.m(o,null)):s&&(s.d(1),s=null),m&32&&fe(o,"hidden",d[5])},d(d){d&&(h(t),h(l),h(o)),s&&s.d(),i=!1,a()}}}function oo(r){let t=r[9].email+"",n;return{c(){n=G(t)},l(e){n=Q(e,t)},m(e,l){w(e,n,l)},p(e,l){l&512&&t!==(t=e[9].email+"")&&me(n,t)},d(e){e&&h(n)}}}function so(r){let t=V("common.log-out")+"",n;return{c(){n=G(t)},l(e){n=Q(e,t)},m(e,l){w(e,n,l)},p:ce,d(e){e&&h(n)}}}function io(r){let t,n,e,l;return t=new Be({props:{href:r[2],disabled:!r[2],$$slots:{default:[oo]},$$scope:{ctx:r}}}),e=new Be({props:{$$slots:{default:[so]},$$scope:{ctx:r}}}),e.$on("click",function(){Ye(r[0])&&r[0].apply(this,arguments)}),{c(){E(t.$$.fragment),n=O(),E(e.$$.fragment)},l(o){L(t.$$.fragment,o),n=R(o),L(e.$$.fragment,o)},m(o,i){C(t,o,i),w(o,n,i),C(e,o,i),l=!0},p(o,i){r=o;const a={};i&4&&(a.href=r[2]),i&4&&(a.disabled=!r[2]),i&66048&&(a.$$scope={dirty:i,ctx:r}),t.$set(a);const s={};i&65536&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(o){l||(_(t.$$.fragment,o),_(e.$$.fragment,o),l=!0)},o(o){g(t.$$.fragment,o),g(e.$$.fragment,o),l=!1},d(o){o&&h(n),I(t,o),I(e,o)}}}function ao(r){let t,n,e,l;return t=new pn({props:{variant:"ghost",hasIndicator:!0,controls:"user-menu",$$slots:{default:[ro]},$$scope:{ctx:r}}}),e=new st({props:{id:"user-menu",position:"right",$$slots:{default:[io]},$$scope:{ctx:r}}}),{c(){E(t.$$.fragment),n=O(),E(e.$$.fragment)},l(o){L(t.$$.fragment,o),n=R(o),L(e.$$.fragment,o)},m(o,i){C(t,o,i),w(o,n,i),C(e,o,i),l=!0},p(o,i){const a={};i&66080&&(a.$$scope={dirty:i,ctx:o}),t.$set(a);const s={};i&66053&&(s.$$scope={dirty:i,ctx:o}),e.$set(s)},i(o){l||(_(t.$$.fragment,o),_(e.$$.fragment,o),l=!0)},o(o){g(t.$$.fragment,o),g(e.$$.fragment,o),l=!1},d(o){o&&h(n),I(t,o),I(e,o)}}}function fo(r){let t,n,e,l,o,i,a,s,f,d;_n(r[14]);let m=r[7]&&Zt(r);o=new Rr({props:{position:r[4]<768?"left":"right"}});let c=r[7]&&yt(),u=r[9].accessToken&&xt(r);return{c(){t=M("nav"),n=M("div"),m&&m.c(),e=O(),l=M("div"),E(o.$$.fragment),i=O(),c&&c.c(),a=O(),u&&u.c(),this.h()},l(b){t=P(b,"NAV",{class:!0,"data-testid":!0,"aria-label":!0});var $=U(t);n=P($,"DIV",{class:!0});var p=U(n);m&&m.l(p),p.forEach(h),e=R($),l=P($,"DIV",{class:!0});var S=U(l);L(o.$$.fragment,S),i=R(S),c&&c.l(S),a=R(S),u&&u.l(S),S.forEach(h),$.forEach(h),this.h()},h(){T(n,"class","flex grow items-center"),T(l,"class","flex items-center gap-2"),T(t,"class","surface-primary sticky top-0 z-40 flex w-full flex-col items-center justify-end border-b-2 border-subtle p-1 px-4 shadow-md md:flex-row md:px-8"),T(t,"data-testid","top-nav"),T(t,"aria-label",V("common.main")),fe(t,"bg-red-50",r[8].hasError&&r[7])},m(b,$){w(b,t,$),B(t,n),m&&m.m(n,null),B(t,e),B(t,l),C(o,l,null),B(l,i),c&&c.m(l,null),B(l,a),u&&u.m(l,null),s=!0,f||(d=$e(window,"resize",r[14]),f=!0)},p(b,[$]){b[7]?m?(m.p(b,$),$&128&&_(m,1)):(m=Zt(b),m.c(),_(m,1),m.m(n,null)):m&&(te(),g(m,1,1,()=>{m=null}),ne());const p={};$&16&&(p.position=b[4]<768?"left":"right"),o.$set(p),b[7]?c?$&128&&_(c,1):(c=yt(),c.c(),_(c,1),c.m(l,a)):c&&(te(),g(c,1,1,()=>{c=null}),ne()),b[9].accessToken?u?(u.p(b,$),$&512&&_(u,1)):(u=xt(b),u.c(),_(u,1),u.m(l,null)):u&&(te(),g(u,1,1,()=>{u=null}),ne()),(!s||$&384)&&fe(t,"bg-red-50",b[8].hasError&&b[7])},i(b){s||(_(m),_(o.$$.fragment,b),_(c),_(u),s=!0)},o(b){g(m),g(o.$$.fragment,b),g(c),g(u),s=!1},d(b){b&&h(t),m&&m.d(),I(o),c&&c.d(),u&&u.d(),f=!1,d()}}}function uo(r,t,n){let e,l,o,i,a,s,f,d;le(r,je,N=>n(15,a=N)),le(r,qe,N=>n(13,s=N)),le(r,gn,N=>n(8,f=N)),le(r,On,N=>n(9,d=N));let{logout:m}=t,{namespaceList:c=[]}=t,{userEmaiLink:u=""}=t,b,$=!0;function p(){n(5,$=!1)}const S=N=>{const x=N.detail.value;ue(je,a=x.namespace,a),x==null||x.onClick(x.namespace)};function F(){n(4,b=window.innerWidth)}return r.$$set=N=>{"logout"in N&&n(0,m=N.logout),"namespaceList"in N&&n(1,c=N.namespaceList),"userEmaiLink"in N&&n(2,u=N.userEmaiLink)},r.$$.update=()=>{r.$$.dirty&8192&&n(3,e=s.params.namespace),r.$$.dirty&8192&&n(12,l=s.url.pathname.split("/")),r.$$.dirty&4104&&n(7,o=e&&(l.includes("workflows")||l.includes("schedules")||l.includes("batch-operations")||l.includes("task-queues")||l.includes("import"))),r.$$.dirty&10&&n(6,i=c.some(N=>N.namespace===e))},[m,c,u,e,b,$,i,o,f,d,p,S,l,s,F]}class co extends ie{constructor(t){super(),ae(this,t,uo,fo,se,{logout:0,namespaceList:1,userEmaiLink:2})}}function tn(r){let t,n,e,l,o;l=new Ae({props:{"data-testid":"close-banner",class:"text-black-600 absolute right-0 top-0 mr-5 h-10 w-10",icon:"close",label:r[1]}}),l.$on("click",r[5]);let i=[{class:"banner"},r[4]],a={};for(let s=0;s{e=null}),ne())},i(l){n||(_(e),n=!0)},o(l){g(e),n=!1},d(l){l&&h(t),e&&e.d(l)}}}const nn=rt("bannerClosed",!1);function _o(r,t,n){let e;const l=["message","closeLabel"];let o=ze(t,l),i,a=ce;le(r,nn,m=>n(2,i=m)),r.$$.on_destroy.push(()=>a());let{message:s}=t,{closeLabel:f}=t;const d=()=>ue(nn,i=!0,i);return r.$$set=m=>{t=_e(_e({},t),Le(m)),n(4,o=ze(t,l)),"message"in m&&n(0,s=m.message),"closeLabel"in m&&n(1,f=m.closeLabel)},r.$$.update=()=>{r.$$.dirty&5&&n(3,e=s&&!i)},[s,f,i,e,o,d]}class go extends ie{constructor(t){super(),ae(this,t,_o,mo,se,{message:0,closeLabel:1})}}var po={};function bo(r){let t;const n=r[5].default,e=X(n,r,r[4],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,o){e&&e.m(l,o),t=!0},p(l,o){e&&e.p&&(!t||o&16)&&Y(e,n,l,l[4],t?y(n,l[4],o,null):Z(l[4]),null)},i(l){t||(_(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function ho(r){let t,n,e=r[1].message+"",l,o,i,a,s=(r[2]?r[1].stack:"")+"",f,d;return{c(){t=M("div"),n=M("b"),l=G(e),o=O(),i=M("pre"),a=G(" "),f=G(s),d=G(` `),this.h()},l(m){t=P(m,"DIV",{class:!0});var c=U(t);n=P(c,"B",{});var u=U(n);l=Q(u,e),u.forEach(h),o=R(c),i=P(c,"PRE",{class:!0});var b=U(i);a=Q(b," "),f=Q(b,s),d=Q(b,` diff --git a/ui/assets/local/_app/immutable/nodes/20.ni1RRNO2.js b/ui/assets/local/_app/immutable/nodes/20.jpMcodhL.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/20.ni1RRNO2.js rename to ui/assets/local/_app/immutable/nodes/20.jpMcodhL.js index 51241a1ad..083d6f75a 100644 --- a/ui/assets/local/_app/immutable/nodes/20.ni1RRNO2.js +++ b/ui/assets/local/_app/immutable/nodes/20.jpMcodhL.js @@ -1 +1 @@ -import{s as Ee,e as p,t as E,a as b,b as u,d as m,f as k,g as f,h as g,j as h,k as le,l as s,n as M,v as D,c as Ie,o as nt,w as ct,Q as ge,H as xe,x as et}from"../chunks/scheduler.AWtTlMeO.js";import{S as we,i as De,c as X,a as Y,m as Z,t as j,g as lt,b as F,e as rt,d as x}from"../chunks/index.91lpp7Ff.js";import{p as it}from"../chunks/stores.BjeHb2_D.js";import{P as ft}from"../chunks/page-title.HGZyp4X5.js";import{t as V}from"../chunks/translate.HrioCK44.js";import{h as pt,u as ut}from"../chunks/await_block.yMzW6VTq.js";import{f as Re,t as mt,r as dt}from"../chunks/time-format.gNW0s4c3.js";import{B as ht}from"../chunks/badge.mHsIdLRu.js";import{T as vt}from"../chunks/toggle-switch.nnlj8S_t.js";import{T as _t}from"../chunks/tooltip.hkvKFmJN.js";import{a as Be,d as $t}from"../chunks/batch-operations.-G8o8Ept.js";import{C as tt}from"../chunks/card.HPQqbKjD.js";import{L as bt}from"../chunks/link.cs7LzqaH.js";import{k as at}from"../chunks/route-for.LRddn_DS.js";function gt(o){let e,a,t=V("batch.details")+"",r,l,i,n,c=V("batch.operation-type")+"",d,v,O,z=o[0].operationType+"",U,y,_,$,P=V("batch.identity")+"",S,A,T,L=o[0].identity+"",q,K,B,Q,me=V("common.reason")+"",de,G,J,ee=o[0].reason+"",fe,W,R,te,ae=V("common.start-time")+"",C,w,re,oe=Re(o[0].startTime,o[1],{relative:o[2]})+"",ne,ve,H,ce,he=V("common.close-time")+"",pe,_e,ie,se=Re(o[0].closeTime,o[1],{relative:o[2]})+"",Pe,Ne,ue,$e,Ue=V("batch.total-operations")+"",Fe,Ae,be,ke=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",Ve;return{c(){e=p("div"),a=p("p"),r=E(t),l=b(),i=p("div"),n=p("p"),d=E(c),v=b(),O=p("p"),U=E(z),y=b(),_=p("div"),$=p("p"),S=E(P),A=b(),T=p("p"),q=E(L),K=b(),B=p("div"),Q=p("p"),de=E(me),G=b(),J=p("p"),fe=E(ee),W=b(),R=p("div"),te=p("p"),C=E(ae),w=b(),re=p("p"),ne=E(oe),ve=b(),H=p("div"),ce=p("p"),pe=E(he),_e=b(),ie=p("p"),Pe=E(se),Ne=b(),ue=p("div"),$e=p("p"),Fe=E(Ue),Ae=b(),be=p("p"),Ve=E(ke),this.h()},l(N){e=u(N,"DIV",{class:!0});var I=m(e);a=u(I,"P",{});var ye=m(a);r=k(ye,t),ye.forEach(f),l=g(I),i=u(I,"DIV",{class:!0});var ze=m(i);n=u(ze,"P",{class:!0});var He=m(n);d=k(He,c),He.forEach(f),v=g(ze),O=u(ze,"P",{class:!0});var Me=m(O);U=k(Me,z),Me.forEach(f),ze.forEach(f),y=g(I),_=u(I,"DIV",{class:!0});var Ce=m(_);$=u(Ce,"P",{class:!0});var Le=m($);S=k(Le,P),Le.forEach(f),A=g(Ce),T=u(Ce,"P",{class:!0});var qe=m(T);q=k(qe,L),qe.forEach(f),Ce.forEach(f),K=g(I),B=u(I,"DIV",{class:!0});var Te=m(B);Q=u(Te,"P",{class:!0});var Ke=m(Q);de=k(Ke,me),Ke.forEach(f),G=g(Te),J=u(Te,"P",{class:!0});var Qe=m(J);fe=k(Qe,ee),Qe.forEach(f),Te.forEach(f),W=g(I),R=u(I,"DIV",{class:!0});var je=m(R);te=u(je,"P",{class:!0});var Ge=m(te);C=k(Ge,ae),Ge.forEach(f),w=g(je),re=u(je,"P",{class:!0});var Je=m(re);ne=k(Je,oe),Je.forEach(f),je.forEach(f),ve=g(I),H=u(I,"DIV",{class:!0});var Oe=m(H);ce=u(Oe,"P",{class:!0});var We=m(ce);pe=k(We,he),We.forEach(f),_e=g(Oe),ie=u(Oe,"P",{class:!0});var Xe=m(ie);Pe=k(Xe,se),Xe.forEach(f),Oe.forEach(f),Ne=g(I),ue=u(I,"DIV",{class:!0});var Se=m(ue);$e=u(Se,"P",{class:!0});var Ye=m($e);Fe=k(Ye,Ue),Ye.forEach(f),Ae=g(Se),be=u(Se,"P",{class:!0});var Ze=m(be);Ve=k(Ze,ke),Ze.forEach(f),Se.forEach(f),I.forEach(f),this.h()},h(){h(n,"class","batch-operation-key svelte-z5po3c"),h(O,"class","batch-operation-value svelte-z5po3c"),h(i,"class","batch-operation-detail svelte-z5po3c"),h($,"class","batch-operation-key svelte-z5po3c"),h(T,"class","batch-operation-value svelte-z5po3c"),h(_,"class","batch-operation-detail svelte-z5po3c"),h(Q,"class","batch-operation-key svelte-z5po3c"),h(J,"class","batch-operation-value svelte-z5po3c"),h(B,"class","batch-operation-detail svelte-z5po3c"),h(te,"class","batch-operation-key svelte-z5po3c"),h(re,"class","batch-operation-value svelte-z5po3c"),h(R,"class","batch-operation-detail svelte-z5po3c"),h(ce,"class","batch-operation-key svelte-z5po3c"),h(ie,"class","batch-operation-value svelte-z5po3c"),h(H,"class","batch-operation-detail svelte-z5po3c"),h($e,"class","batch-operation-key svelte-z5po3c"),h(be,"class","batch-operation-value svelte-z5po3c"),h(ue,"class","batch-operation-detail svelte-z5po3c"),h(e,"class","flex flex-col gap-2")},m(N,I){le(N,e,I),s(e,a),s(a,r),s(e,l),s(e,i),s(i,n),s(n,d),s(i,v),s(i,O),s(O,U),s(e,y),s(e,_),s(_,$),s($,S),s(_,A),s(_,T),s(T,q),s(e,K),s(e,B),s(B,Q),s(Q,de),s(B,G),s(B,J),s(J,fe),s(e,W),s(e,R),s(R,te),s(te,C),s(R,w),s(R,re),s(re,ne),s(e,ve),s(e,H),s(H,ce),s(ce,pe),s(H,_e),s(H,ie),s(ie,Pe),s(e,Ne),s(e,ue),s(ue,$e),s($e,Fe),s(ue,Ae),s(ue,be),s(be,Ve)},p(N,[I]){I&1&&z!==(z=N[0].operationType+"")&&M(U,z),I&1&&L!==(L=N[0].identity+"")&&M(q,L),I&1&&ee!==(ee=N[0].reason+"")&&M(fe,ee),I&7&&oe!==(oe=Re(N[0].startTime,N[1],{relative:N[2]})+"")&&M(ne,oe),I&7&&se!==(se=Re(N[0].closeTime,N[1],{relative:N[2]})+"")&&M(Pe,se),I&1&&ke!==(ke=Intl.NumberFormat("en-US").format(N[0].totalOperationCount)+"")&&M(Ve,ke)},i:D,o:D,d(N){N&&f(e)}}}function Et(o,e,a){let t,r;Ie(o,mt,i=>a(1,t=i)),Ie(o,dt,i=>a(2,r=i));let{operation:l}=e;return o.$$set=i=>{"operation"in i&&a(0,l=i.operation)},[l,t,r]}class kt extends we{constructor(e){super(),De(this,e,Et,gt,Ee,{operation:0})}}function It(o){let e=o[0].state+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,r){le(t,a,r)},p(t,r){r&1&&e!==(e=t[0].state+"")&&M(a,e)},d(t){t&&f(a)}}}function ot(o){let e,a;return e=new _t({props:{top:!0,text:V("common.auto-refresh-tooltip",{interval:"5"}),$$slots:{default:[wt]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),a=!0},p(t,r){const l={};r&34&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function wt(o){let e,a;return e=new vt({props:{id:"batch-operation-auto-refresh",label:V("common.auto-refresh"),labelPosition:"left",checked:o[1]}}),e.$on("change",o[2]),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),a=!0},p(t,r){const l={};r&2&&(l.checked=t[1]),e.$set(l)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Dt(o){let e,a,t,r,l=V("batch.describe-page-title")+"",i,n,c,d,v,O=o[0].jobId+"",z,U,y;c=new ht({props:{type:o[3][o[0].state],$$slots:{default:[It]},$$scope:{ctx:o}}});let _=o[0].state==="Running"&&ot(o);return{c(){e=p("div"),a=p("div"),t=p("div"),r=p("h1"),i=E(l),n=b(),X(c.$$.fragment),d=b(),v=p("h2"),z=E(O),U=b(),_&&_.c(),this.h()},l($){e=u($,"DIV",{class:!0});var P=m(e);a=u(P,"DIV",{class:!0});var S=m(a);t=u(S,"DIV",{class:!0});var A=m(t);r=u(A,"H1",{class:!0});var T=m(r);i=k(T,l),T.forEach(f),n=g(A),Y(c.$$.fragment,A),A.forEach(f),d=g(S),v=u(S,"H2",{class:!0});var L=m(v);z=k(L,O),L.forEach(f),S.forEach(f),U=g(P),_&&_.l(P),P.forEach(f),this.h()},h(){h(r,"class","text-2xl"),h(t,"class","flex flex-row gap-2 max-sm:flex-col"),h(v,"class","text-sm"),h(a,"class","flex flex-col gap-2"),h(e,"class","flex items-center justify-between")},m($,P){le($,e,P),s(e,a),s(a,t),s(t,r),s(r,i),s(t,n),Z(c,t,null),s(a,d),s(a,v),s(v,z),s(e,U),_&&_.m(e,null),y=!0},p($,[P]){const S={};P&1&&(S.type=$[3][$[0].state]),P&33&&(S.$$scope={dirty:P,ctx:$}),c.$set(S),(!y||P&1)&&O!==(O=$[0].jobId+"")&&M(z,O),$[0].state==="Running"?_?(_.p($,P),P&1&&j(_,1)):(_=ot($),_.c(),j(_,1),_.m(e,null)):_&&(lt(),F(_,1,1,()=>{_=null}),rt())},i($){y||(j(c.$$.fragment,$),j(_),y=!0)},o($){F(c.$$.fragment,$),F(_),y=!1},d($){$&&f(e),x(c),_&&_.d()}}}function Pt(o,e,a){let t;Ie(o,Be,c=>a(1,t=c));let{operation:r}=e;const l=nt(),i=c=>{const{checked:d}=c.target;l("toggleAutoRefresh",{checked:d}),ct(Be,t=d,t)},n={Completed:"success",Running:"running",Failed:"error",Unspecified:"unspecified"};return o.$$set=c=>{"operation"in c&&a(0,r=c.operation)},[r,t,i,n]}class Vt extends we{constructor(e){super(),De(this,e,Pt,Dt,Ee,{operation:0})}}function zt(o){let e,a,t=V("batch.results")+"",r,l,i,n,c,d=V("batch.operations-progress",{percent:o[3]})+"",v,O,z,U=Intl.NumberFormat("en-US").format(o[0].completeOperationCount)+"",y,_,$=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",P,S,A,T,L,q,K,B,Q=V("batch.operations-succeeded",{count:o[0].completeOperationCount})+"",me,de,G,J=V("batch.operations-failed",{count:o[0].failureOperationCount})+"",ee,fe,W,R,te,ae;return{c(){e=p("div"),a=p("p"),r=E(t),l=b(),i=p("div"),n=p("div"),c=p("span"),v=E(d),O=b(),z=p("span"),y=E(U),_=E(" / "),P=E($),S=b(),A=p("div"),T=p("div"),L=b(),q=p("div"),K=p("div"),B=p("span"),me=E(Q),de=b(),G=p("span"),ee=E(J),fe=b(),W=p("div"),R=p("div"),te=b(),ae=p("div"),this.h()},l(C){e=u(C,"DIV",{class:!0});var w=m(e);a=u(w,"P",{});var re=m(a);r=k(re,t),re.forEach(f),l=g(w),i=u(w,"DIV",{});var oe=m(i);n=u(oe,"DIV",{class:!0});var ne=m(n);c=u(ne,"SPAN",{class:!0});var ve=m(c);v=k(ve,d),ve.forEach(f),O=g(ne),z=u(ne,"SPAN",{class:!0});var H=m(z);y=k(H,U),_=k(H," / "),P=k(H,$),H.forEach(f),ne.forEach(f),S=g(oe),A=u(oe,"DIV",{class:!0});var ce=m(A);T=u(ce,"DIV",{class:!0,style:!0}),m(T).forEach(f),ce.forEach(f),oe.forEach(f),L=g(w),q=u(w,"DIV",{});var he=m(q);K=u(he,"DIV",{class:!0});var pe=m(K);B=u(pe,"SPAN",{class:!0});var _e=m(B);me=k(_e,Q),_e.forEach(f),de=g(pe),G=u(pe,"SPAN",{class:!0});var ie=m(G);ee=k(ie,J),ie.forEach(f),pe.forEach(f),fe=g(he),W=u(he,"DIV",{class:!0});var se=m(W);R=u(se,"DIV",{style:!0,class:!0}),m(R).forEach(f),te=g(se),ae=u(se,"DIV",{style:!0,class:!0}),m(ae).forEach(f),se.forEach(f),he.forEach(f),w.forEach(f),this.h()},h(){h(c,"class","text-xs font-semibold"),h(z,"class","text-xs font-semibold"),h(n,"class","flex justify-between"),h(T,"class","absolute left-0 flex h-full items-center bg-indigo-600"),ge(T,"width",o[3]+"%"),h(A,"class","relative h-2 w-full overflow-hidden rounded bg-indigo-100"),h(B,"class","text-xs font-semibold text-green-700"),h(G,"class","text-xs font-semibold"),xe(G,"text-red-700",o[2]>0),h(K,"class","flex justify-between"),ge(R,"width",o[1]+"%"),h(R,"class","absolute left-0 flex h-full items-center bg-green-200"),ge(ae,"width",o[2]+"%"),h(ae,"class","absolute right-0 flex h-full items-center justify-end bg-red-200"),h(W,"class","relative h-2 w-full overflow-hidden rounded"),h(e,"class","flex flex-col gap-4")},m(C,w){le(C,e,w),s(e,a),s(a,r),s(e,l),s(e,i),s(i,n),s(n,c),s(c,v),s(n,O),s(n,z),s(z,y),s(z,_),s(z,P),s(i,S),s(i,A),s(A,T),s(e,L),s(e,q),s(q,K),s(K,B),s(B,me),s(K,de),s(K,G),s(G,ee),s(q,fe),s(q,W),s(W,R),s(W,te),s(W,ae)},p(C,[w]){w&8&&d!==(d=V("batch.operations-progress",{percent:C[3]})+"")&&M(v,d),w&1&&U!==(U=Intl.NumberFormat("en-US").format(C[0].completeOperationCount)+"")&&M(y,U),w&1&&$!==($=Intl.NumberFormat("en-US").format(C[0].totalOperationCount)+"")&&M(P,$),w&8&&ge(T,"width",C[3]+"%"),w&1&&Q!==(Q=V("batch.operations-succeeded",{count:C[0].completeOperationCount})+"")&&M(me,Q),w&1&&J!==(J=V("batch.operations-failed",{count:C[0].failureOperationCount})+"")&&M(ee,J),w&4&&xe(G,"text-red-700",C[2]>0),w&2&&ge(R,"width",C[1]+"%"),w&4&&ge(ae,"width",C[2]+"%")},i:D,o:D,d(C){C&&f(e)}}}function Ct(o,e,a){let{operation:t}=e,r,l,i;return o.$$set=n=>{"operation"in n&&a(0,t=n.operation)},o.$$.update=()=>{if(o.$$.dirty&1){const{completeOperationCount:n,failureOperationCount:c,totalOperationCount:d}=t;a(1,r=Math.round(n/d*100)),a(2,l=Math.round(c/d*100)),a(3,i=Math.round((n+c)/d*100))}},[t,r,l,i]}class Tt extends we{constructor(e){super(),De(this,e,Ct,zt,Ee,{operation:0})}}function jt(o){let e=V("batch.back-link")+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,r){le(t,a,r)},p:D,d(t){t&&f(a)}}}function Ot(o){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function St(o){let e,a,t,r,l,i;return e=new Vt({props:{operation:o[7]}}),e.$on("toggleAutoRefresh",o[2]),t=new tt({props:{$$slots:{default:[Rt]},$$scope:{ctx:o}}}),l=new tt({props:{$$slots:{default:[Nt]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment),r=b(),X(l.$$.fragment)},l(n){Y(e.$$.fragment,n),a=g(n),Y(t.$$.fragment,n),r=g(n),Y(l.$$.fragment,n)},m(n,c){Z(e,n,c),le(n,a,c),Z(t,n,c),le(n,r,c),Z(l,n,c),i=!0},p(n,c){const d={};c&256&&(d.$$scope={dirty:c,ctx:n}),t.$set(d);const v={};c&256&&(v.$$scope={dirty:c,ctx:n}),l.$set(v)},i(n){i||(j(e.$$.fragment,n),j(t.$$.fragment,n),j(l.$$.fragment,n),i=!0)},o(n){F(e.$$.fragment,n),F(t.$$.fragment,n),F(l.$$.fragment,n),i=!1},d(n){n&&(f(a),f(r)),x(e,n),x(t,n),x(l,n)}}}function Rt(o){let e,a;return e=new kt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),a=!0},p:D,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Nt(o){let e,a;return e=new Tt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),a=!0},p:D,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Ft(o){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function st(o){let e,a,t={ctx:o,current:null,token:null,hasCatch:!1,pending:Ft,then:St,catch:Ot,value:7,blocks:[,,,]};return pt(o[3](),t),{c(){e=et(),t.block.c()},l(r){e=et(),t.block.l(r)},m(r,l){le(r,e,l),t.block.m(r,t.anchor=l),t.mount=()=>e.parentNode,t.anchor=e,a=!0},p(r,l){o=r,ut(t,o,l)},i(r){a||(j(t.block),a=!0)},o(r){for(let l=0;l<3;l+=1){const i=t.blocks[l];F(i)}a=!1},d(r){r&&f(e),t.block.d(r),t.token=null,t=null}}}function At(o){let e,a,t,r,l=o[1],i;t=new bt({props:{href:at({namespace:o[0]}),icon:"chevron-left",$$slots:{default:[jt]},$$scope:{ctx:o}}});let n=st(o);return{c(){e=p("div"),a=p("div"),X(t.$$.fragment),r=b(),n.c(),this.h()},l(c){e=u(c,"DIV",{class:!0});var d=m(e);a=u(d,"DIV",{class:!0});var v=m(a);Y(t.$$.fragment,v),v.forEach(f),r=g(d),n.l(d),d.forEach(f),this.h()},h(){h(a,"class","flex flex-row"),h(e,"class","flex flex-col gap-4")},m(c,d){le(c,e,d),s(e,a),Z(t,a,null),s(e,r),n.m(e,null),i=!0},p(c,[d]){const v={};d&1&&(v.href=at({namespace:c[0]})),d&256&&(v.$$scope={dirty:d,ctx:c}),t.$set(v),d&2&&Ee(l,l=c[1])?(lt(),F(n,1,1,D),rt(),n=st(c),n.c(),j(n,1),n.m(e,null)):n.p(c,d)},i(c){i||(j(t.$$.fragment,c),j(n),i=!0)},o(c){F(t.$$.fragment,c),F(n),i=!1},d(c){c&&f(e),x(t),n.d(c)}}}function Bt(o,e,a){let t;Ie(o,Be,v=>a(6,t=v));let{namespace:r}=e,{jobId:l}=e,i=0,n;const c=v=>{v.detail.checked?a(1,i+=1):n&&window.clearTimeout(n)},d=()=>$t({jobId:l,namespace:r}).then(v=>(t&&v.state==="Running"&&(n=window.setTimeout(()=>{a(1,i+=1)},5e3)),v));return o.$$set=v=>{"namespace"in v&&a(0,r=v.namespace),"jobId"in v&&a(4,l=v.jobId)},[r,i,c,d,l]}class Ut extends we{constructor(e){super(),De(this,e,Bt,At,Ee,{namespace:0,jobId:4})}}function yt(o){let e,a,t,r;return e=new ft({props:{title:V("batch.describe-page-title")+" | "+o[0]}}),t=new Ut({props:{jobId:o[0],namespace:o[1]}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment)},l(l){Y(e.$$.fragment,l),a=g(l),Y(t.$$.fragment,l)},m(l,i){Z(e,l,i),le(l,a,i),Z(t,l,i),r=!0},p(l,[i]){const n={};i&1&&(n.title=V("batch.describe-page-title")+" | "+l[0]),e.$set(n);const c={};i&1&&(c.jobId=l[0]),i&2&&(c.namespace=l[1]),t.$set(c)},i(l){r||(j(e.$$.fragment,l),j(t.$$.fragment,l),r=!0)},o(l){F(e.$$.fragment,l),F(t.$$.fragment,l),r=!1},d(l){l&&f(a),x(e,l),x(t,l)}}}function Ht(o,e,a){let t,r,l;return Ie(o,it,i=>a(2,l=i)),o.$$.update=()=>{o.$$.dirty&4&&a(1,t=l.params.namespace),o.$$.dirty&4&&a(0,r=l.params.jobId)},[r,t,l]}class aa extends we{constructor(e){super(),De(this,e,Ht,yt,Ee,{})}}export{aa as component}; +import{s as Ee,e as p,t as E,a as b,b as u,d as m,f as k,g as f,h as g,j as h,k as le,l as s,n as M,v as D,c as Ie,o as nt,w as ct,Q as ge,H as xe,x as et}from"../chunks/scheduler.AWtTlMeO.js";import{S as we,i as De,c as X,a as Y,m as Z,t as j,g as lt,b as F,e as rt,d as x}from"../chunks/index.91lpp7Ff.js";import{p as it}from"../chunks/stores.meYYndLY.js";import{P as ft}from"../chunks/page-title.HGZyp4X5.js";import{t as V}from"../chunks/translate.HrioCK44.js";import{h as pt,u as ut}from"../chunks/await_block.yMzW6VTq.js";import{f as Re,t as mt,r as dt}from"../chunks/time-format.Z3EDfPl8.js";import{B as ht}from"../chunks/badge.mHsIdLRu.js";import{T as vt}from"../chunks/toggle-switch.nnlj8S_t.js";import{T as _t}from"../chunks/tooltip.hkvKFmJN.js";import{a as Be,d as $t}from"../chunks/batch-operations.RudApeOm.js";import{C as tt}from"../chunks/card.HPQqbKjD.js";import{L as bt}from"../chunks/link.DdkOc0EY.js";import{k as at}from"../chunks/route-for.ezVRK9wE.js";function gt(o){let e,a,t=V("batch.details")+"",r,l,i,n,c=V("batch.operation-type")+"",d,v,O,z=o[0].operationType+"",U,y,_,$,P=V("batch.identity")+"",S,A,T,L=o[0].identity+"",q,K,B,Q,me=V("common.reason")+"",de,G,J,ee=o[0].reason+"",fe,W,R,te,ae=V("common.start-time")+"",C,w,re,oe=Re(o[0].startTime,o[1],{relative:o[2]})+"",ne,ve,H,ce,he=V("common.close-time")+"",pe,_e,ie,se=Re(o[0].closeTime,o[1],{relative:o[2]})+"",Pe,Ne,ue,$e,Ue=V("batch.total-operations")+"",Fe,Ae,be,ke=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",Ve;return{c(){e=p("div"),a=p("p"),r=E(t),l=b(),i=p("div"),n=p("p"),d=E(c),v=b(),O=p("p"),U=E(z),y=b(),_=p("div"),$=p("p"),S=E(P),A=b(),T=p("p"),q=E(L),K=b(),B=p("div"),Q=p("p"),de=E(me),G=b(),J=p("p"),fe=E(ee),W=b(),R=p("div"),te=p("p"),C=E(ae),w=b(),re=p("p"),ne=E(oe),ve=b(),H=p("div"),ce=p("p"),pe=E(he),_e=b(),ie=p("p"),Pe=E(se),Ne=b(),ue=p("div"),$e=p("p"),Fe=E(Ue),Ae=b(),be=p("p"),Ve=E(ke),this.h()},l(N){e=u(N,"DIV",{class:!0});var I=m(e);a=u(I,"P",{});var ye=m(a);r=k(ye,t),ye.forEach(f),l=g(I),i=u(I,"DIV",{class:!0});var ze=m(i);n=u(ze,"P",{class:!0});var He=m(n);d=k(He,c),He.forEach(f),v=g(ze),O=u(ze,"P",{class:!0});var Me=m(O);U=k(Me,z),Me.forEach(f),ze.forEach(f),y=g(I),_=u(I,"DIV",{class:!0});var Ce=m(_);$=u(Ce,"P",{class:!0});var Le=m($);S=k(Le,P),Le.forEach(f),A=g(Ce),T=u(Ce,"P",{class:!0});var qe=m(T);q=k(qe,L),qe.forEach(f),Ce.forEach(f),K=g(I),B=u(I,"DIV",{class:!0});var Te=m(B);Q=u(Te,"P",{class:!0});var Ke=m(Q);de=k(Ke,me),Ke.forEach(f),G=g(Te),J=u(Te,"P",{class:!0});var Qe=m(J);fe=k(Qe,ee),Qe.forEach(f),Te.forEach(f),W=g(I),R=u(I,"DIV",{class:!0});var je=m(R);te=u(je,"P",{class:!0});var Ge=m(te);C=k(Ge,ae),Ge.forEach(f),w=g(je),re=u(je,"P",{class:!0});var Je=m(re);ne=k(Je,oe),Je.forEach(f),je.forEach(f),ve=g(I),H=u(I,"DIV",{class:!0});var Oe=m(H);ce=u(Oe,"P",{class:!0});var We=m(ce);pe=k(We,he),We.forEach(f),_e=g(Oe),ie=u(Oe,"P",{class:!0});var Xe=m(ie);Pe=k(Xe,se),Xe.forEach(f),Oe.forEach(f),Ne=g(I),ue=u(I,"DIV",{class:!0});var Se=m(ue);$e=u(Se,"P",{class:!0});var Ye=m($e);Fe=k(Ye,Ue),Ye.forEach(f),Ae=g(Se),be=u(Se,"P",{class:!0});var Ze=m(be);Ve=k(Ze,ke),Ze.forEach(f),Se.forEach(f),I.forEach(f),this.h()},h(){h(n,"class","batch-operation-key svelte-z5po3c"),h(O,"class","batch-operation-value svelte-z5po3c"),h(i,"class","batch-operation-detail svelte-z5po3c"),h($,"class","batch-operation-key svelte-z5po3c"),h(T,"class","batch-operation-value svelte-z5po3c"),h(_,"class","batch-operation-detail svelte-z5po3c"),h(Q,"class","batch-operation-key svelte-z5po3c"),h(J,"class","batch-operation-value svelte-z5po3c"),h(B,"class","batch-operation-detail svelte-z5po3c"),h(te,"class","batch-operation-key svelte-z5po3c"),h(re,"class","batch-operation-value svelte-z5po3c"),h(R,"class","batch-operation-detail svelte-z5po3c"),h(ce,"class","batch-operation-key svelte-z5po3c"),h(ie,"class","batch-operation-value svelte-z5po3c"),h(H,"class","batch-operation-detail svelte-z5po3c"),h($e,"class","batch-operation-key svelte-z5po3c"),h(be,"class","batch-operation-value svelte-z5po3c"),h(ue,"class","batch-operation-detail svelte-z5po3c"),h(e,"class","flex flex-col gap-2")},m(N,I){le(N,e,I),s(e,a),s(a,r),s(e,l),s(e,i),s(i,n),s(n,d),s(i,v),s(i,O),s(O,U),s(e,y),s(e,_),s(_,$),s($,S),s(_,A),s(_,T),s(T,q),s(e,K),s(e,B),s(B,Q),s(Q,de),s(B,G),s(B,J),s(J,fe),s(e,W),s(e,R),s(R,te),s(te,C),s(R,w),s(R,re),s(re,ne),s(e,ve),s(e,H),s(H,ce),s(ce,pe),s(H,_e),s(H,ie),s(ie,Pe),s(e,Ne),s(e,ue),s(ue,$e),s($e,Fe),s(ue,Ae),s(ue,be),s(be,Ve)},p(N,[I]){I&1&&z!==(z=N[0].operationType+"")&&M(U,z),I&1&&L!==(L=N[0].identity+"")&&M(q,L),I&1&&ee!==(ee=N[0].reason+"")&&M(fe,ee),I&7&&oe!==(oe=Re(N[0].startTime,N[1],{relative:N[2]})+"")&&M(ne,oe),I&7&&se!==(se=Re(N[0].closeTime,N[1],{relative:N[2]})+"")&&M(Pe,se),I&1&&ke!==(ke=Intl.NumberFormat("en-US").format(N[0].totalOperationCount)+"")&&M(Ve,ke)},i:D,o:D,d(N){N&&f(e)}}}function Et(o,e,a){let t,r;Ie(o,mt,i=>a(1,t=i)),Ie(o,dt,i=>a(2,r=i));let{operation:l}=e;return o.$$set=i=>{"operation"in i&&a(0,l=i.operation)},[l,t,r]}class kt extends we{constructor(e){super(),De(this,e,Et,gt,Ee,{operation:0})}}function It(o){let e=o[0].state+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,r){le(t,a,r)},p(t,r){r&1&&e!==(e=t[0].state+"")&&M(a,e)},d(t){t&&f(a)}}}function ot(o){let e,a;return e=new _t({props:{top:!0,text:V("common.auto-refresh-tooltip",{interval:"5"}),$$slots:{default:[wt]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),a=!0},p(t,r){const l={};r&34&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function wt(o){let e,a;return e=new vt({props:{id:"batch-operation-auto-refresh",label:V("common.auto-refresh"),labelPosition:"left",checked:o[1]}}),e.$on("change",o[2]),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),a=!0},p(t,r){const l={};r&2&&(l.checked=t[1]),e.$set(l)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Dt(o){let e,a,t,r,l=V("batch.describe-page-title")+"",i,n,c,d,v,O=o[0].jobId+"",z,U,y;c=new ht({props:{type:o[3][o[0].state],$$slots:{default:[It]},$$scope:{ctx:o}}});let _=o[0].state==="Running"&&ot(o);return{c(){e=p("div"),a=p("div"),t=p("div"),r=p("h1"),i=E(l),n=b(),X(c.$$.fragment),d=b(),v=p("h2"),z=E(O),U=b(),_&&_.c(),this.h()},l($){e=u($,"DIV",{class:!0});var P=m(e);a=u(P,"DIV",{class:!0});var S=m(a);t=u(S,"DIV",{class:!0});var A=m(t);r=u(A,"H1",{class:!0});var T=m(r);i=k(T,l),T.forEach(f),n=g(A),Y(c.$$.fragment,A),A.forEach(f),d=g(S),v=u(S,"H2",{class:!0});var L=m(v);z=k(L,O),L.forEach(f),S.forEach(f),U=g(P),_&&_.l(P),P.forEach(f),this.h()},h(){h(r,"class","text-2xl"),h(t,"class","flex flex-row gap-2 max-sm:flex-col"),h(v,"class","text-sm"),h(a,"class","flex flex-col gap-2"),h(e,"class","flex items-center justify-between")},m($,P){le($,e,P),s(e,a),s(a,t),s(t,r),s(r,i),s(t,n),Z(c,t,null),s(a,d),s(a,v),s(v,z),s(e,U),_&&_.m(e,null),y=!0},p($,[P]){const S={};P&1&&(S.type=$[3][$[0].state]),P&33&&(S.$$scope={dirty:P,ctx:$}),c.$set(S),(!y||P&1)&&O!==(O=$[0].jobId+"")&&M(z,O),$[0].state==="Running"?_?(_.p($,P),P&1&&j(_,1)):(_=ot($),_.c(),j(_,1),_.m(e,null)):_&&(lt(),F(_,1,1,()=>{_=null}),rt())},i($){y||(j(c.$$.fragment,$),j(_),y=!0)},o($){F(c.$$.fragment,$),F(_),y=!1},d($){$&&f(e),x(c),_&&_.d()}}}function Pt(o,e,a){let t;Ie(o,Be,c=>a(1,t=c));let{operation:r}=e;const l=nt(),i=c=>{const{checked:d}=c.target;l("toggleAutoRefresh",{checked:d}),ct(Be,t=d,t)},n={Completed:"success",Running:"running",Failed:"error",Unspecified:"unspecified"};return o.$$set=c=>{"operation"in c&&a(0,r=c.operation)},[r,t,i,n]}class Vt extends we{constructor(e){super(),De(this,e,Pt,Dt,Ee,{operation:0})}}function zt(o){let e,a,t=V("batch.results")+"",r,l,i,n,c,d=V("batch.operations-progress",{percent:o[3]})+"",v,O,z,U=Intl.NumberFormat("en-US").format(o[0].completeOperationCount)+"",y,_,$=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",P,S,A,T,L,q,K,B,Q=V("batch.operations-succeeded",{count:o[0].completeOperationCount})+"",me,de,G,J=V("batch.operations-failed",{count:o[0].failureOperationCount})+"",ee,fe,W,R,te,ae;return{c(){e=p("div"),a=p("p"),r=E(t),l=b(),i=p("div"),n=p("div"),c=p("span"),v=E(d),O=b(),z=p("span"),y=E(U),_=E(" / "),P=E($),S=b(),A=p("div"),T=p("div"),L=b(),q=p("div"),K=p("div"),B=p("span"),me=E(Q),de=b(),G=p("span"),ee=E(J),fe=b(),W=p("div"),R=p("div"),te=b(),ae=p("div"),this.h()},l(C){e=u(C,"DIV",{class:!0});var w=m(e);a=u(w,"P",{});var re=m(a);r=k(re,t),re.forEach(f),l=g(w),i=u(w,"DIV",{});var oe=m(i);n=u(oe,"DIV",{class:!0});var ne=m(n);c=u(ne,"SPAN",{class:!0});var ve=m(c);v=k(ve,d),ve.forEach(f),O=g(ne),z=u(ne,"SPAN",{class:!0});var H=m(z);y=k(H,U),_=k(H," / "),P=k(H,$),H.forEach(f),ne.forEach(f),S=g(oe),A=u(oe,"DIV",{class:!0});var ce=m(A);T=u(ce,"DIV",{class:!0,style:!0}),m(T).forEach(f),ce.forEach(f),oe.forEach(f),L=g(w),q=u(w,"DIV",{});var he=m(q);K=u(he,"DIV",{class:!0});var pe=m(K);B=u(pe,"SPAN",{class:!0});var _e=m(B);me=k(_e,Q),_e.forEach(f),de=g(pe),G=u(pe,"SPAN",{class:!0});var ie=m(G);ee=k(ie,J),ie.forEach(f),pe.forEach(f),fe=g(he),W=u(he,"DIV",{class:!0});var se=m(W);R=u(se,"DIV",{style:!0,class:!0}),m(R).forEach(f),te=g(se),ae=u(se,"DIV",{style:!0,class:!0}),m(ae).forEach(f),se.forEach(f),he.forEach(f),w.forEach(f),this.h()},h(){h(c,"class","text-xs font-semibold"),h(z,"class","text-xs font-semibold"),h(n,"class","flex justify-between"),h(T,"class","absolute left-0 flex h-full items-center bg-indigo-600"),ge(T,"width",o[3]+"%"),h(A,"class","relative h-2 w-full overflow-hidden rounded bg-indigo-100"),h(B,"class","text-xs font-semibold text-green-700"),h(G,"class","text-xs font-semibold"),xe(G,"text-red-700",o[2]>0),h(K,"class","flex justify-between"),ge(R,"width",o[1]+"%"),h(R,"class","absolute left-0 flex h-full items-center bg-green-200"),ge(ae,"width",o[2]+"%"),h(ae,"class","absolute right-0 flex h-full items-center justify-end bg-red-200"),h(W,"class","relative h-2 w-full overflow-hidden rounded"),h(e,"class","flex flex-col gap-4")},m(C,w){le(C,e,w),s(e,a),s(a,r),s(e,l),s(e,i),s(i,n),s(n,c),s(c,v),s(n,O),s(n,z),s(z,y),s(z,_),s(z,P),s(i,S),s(i,A),s(A,T),s(e,L),s(e,q),s(q,K),s(K,B),s(B,me),s(K,de),s(K,G),s(G,ee),s(q,fe),s(q,W),s(W,R),s(W,te),s(W,ae)},p(C,[w]){w&8&&d!==(d=V("batch.operations-progress",{percent:C[3]})+"")&&M(v,d),w&1&&U!==(U=Intl.NumberFormat("en-US").format(C[0].completeOperationCount)+"")&&M(y,U),w&1&&$!==($=Intl.NumberFormat("en-US").format(C[0].totalOperationCount)+"")&&M(P,$),w&8&&ge(T,"width",C[3]+"%"),w&1&&Q!==(Q=V("batch.operations-succeeded",{count:C[0].completeOperationCount})+"")&&M(me,Q),w&1&&J!==(J=V("batch.operations-failed",{count:C[0].failureOperationCount})+"")&&M(ee,J),w&4&&xe(G,"text-red-700",C[2]>0),w&2&&ge(R,"width",C[1]+"%"),w&4&&ge(ae,"width",C[2]+"%")},i:D,o:D,d(C){C&&f(e)}}}function Ct(o,e,a){let{operation:t}=e,r,l,i;return o.$$set=n=>{"operation"in n&&a(0,t=n.operation)},o.$$.update=()=>{if(o.$$.dirty&1){const{completeOperationCount:n,failureOperationCount:c,totalOperationCount:d}=t;a(1,r=Math.round(n/d*100)),a(2,l=Math.round(c/d*100)),a(3,i=Math.round((n+c)/d*100))}},[t,r,l,i]}class Tt extends we{constructor(e){super(),De(this,e,Ct,zt,Ee,{operation:0})}}function jt(o){let e=V("batch.back-link")+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,r){le(t,a,r)},p:D,d(t){t&&f(a)}}}function Ot(o){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function St(o){let e,a,t,r,l,i;return e=new Vt({props:{operation:o[7]}}),e.$on("toggleAutoRefresh",o[2]),t=new tt({props:{$$slots:{default:[Rt]},$$scope:{ctx:o}}}),l=new tt({props:{$$slots:{default:[Nt]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment),r=b(),X(l.$$.fragment)},l(n){Y(e.$$.fragment,n),a=g(n),Y(t.$$.fragment,n),r=g(n),Y(l.$$.fragment,n)},m(n,c){Z(e,n,c),le(n,a,c),Z(t,n,c),le(n,r,c),Z(l,n,c),i=!0},p(n,c){const d={};c&256&&(d.$$scope={dirty:c,ctx:n}),t.$set(d);const v={};c&256&&(v.$$scope={dirty:c,ctx:n}),l.$set(v)},i(n){i||(j(e.$$.fragment,n),j(t.$$.fragment,n),j(l.$$.fragment,n),i=!0)},o(n){F(e.$$.fragment,n),F(t.$$.fragment,n),F(l.$$.fragment,n),i=!1},d(n){n&&(f(a),f(r)),x(e,n),x(t,n),x(l,n)}}}function Rt(o){let e,a;return e=new kt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),a=!0},p:D,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Nt(o){let e,a;return e=new Tt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,r){Z(e,t,r),a=!0},p:D,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Ft(o){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function st(o){let e,a,t={ctx:o,current:null,token:null,hasCatch:!1,pending:Ft,then:St,catch:Ot,value:7,blocks:[,,,]};return pt(o[3](),t),{c(){e=et(),t.block.c()},l(r){e=et(),t.block.l(r)},m(r,l){le(r,e,l),t.block.m(r,t.anchor=l),t.mount=()=>e.parentNode,t.anchor=e,a=!0},p(r,l){o=r,ut(t,o,l)},i(r){a||(j(t.block),a=!0)},o(r){for(let l=0;l<3;l+=1){const i=t.blocks[l];F(i)}a=!1},d(r){r&&f(e),t.block.d(r),t.token=null,t=null}}}function At(o){let e,a,t,r,l=o[1],i;t=new bt({props:{href:at({namespace:o[0]}),icon:"chevron-left",$$slots:{default:[jt]},$$scope:{ctx:o}}});let n=st(o);return{c(){e=p("div"),a=p("div"),X(t.$$.fragment),r=b(),n.c(),this.h()},l(c){e=u(c,"DIV",{class:!0});var d=m(e);a=u(d,"DIV",{class:!0});var v=m(a);Y(t.$$.fragment,v),v.forEach(f),r=g(d),n.l(d),d.forEach(f),this.h()},h(){h(a,"class","flex flex-row"),h(e,"class","flex flex-col gap-4")},m(c,d){le(c,e,d),s(e,a),Z(t,a,null),s(e,r),n.m(e,null),i=!0},p(c,[d]){const v={};d&1&&(v.href=at({namespace:c[0]})),d&256&&(v.$$scope={dirty:d,ctx:c}),t.$set(v),d&2&&Ee(l,l=c[1])?(lt(),F(n,1,1,D),rt(),n=st(c),n.c(),j(n,1),n.m(e,null)):n.p(c,d)},i(c){i||(j(t.$$.fragment,c),j(n),i=!0)},o(c){F(t.$$.fragment,c),F(n),i=!1},d(c){c&&f(e),x(t),n.d(c)}}}function Bt(o,e,a){let t;Ie(o,Be,v=>a(6,t=v));let{namespace:r}=e,{jobId:l}=e,i=0,n;const c=v=>{v.detail.checked?a(1,i+=1):n&&window.clearTimeout(n)},d=()=>$t({jobId:l,namespace:r}).then(v=>(t&&v.state==="Running"&&(n=window.setTimeout(()=>{a(1,i+=1)},5e3)),v));return o.$$set=v=>{"namespace"in v&&a(0,r=v.namespace),"jobId"in v&&a(4,l=v.jobId)},[r,i,c,d,l]}class Ut extends we{constructor(e){super(),De(this,e,Bt,At,Ee,{namespace:0,jobId:4})}}function yt(o){let e,a,t,r;return e=new ft({props:{title:V("batch.describe-page-title")+" | "+o[0]}}),t=new Ut({props:{jobId:o[0],namespace:o[1]}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment)},l(l){Y(e.$$.fragment,l),a=g(l),Y(t.$$.fragment,l)},m(l,i){Z(e,l,i),le(l,a,i),Z(t,l,i),r=!0},p(l,[i]){const n={};i&1&&(n.title=V("batch.describe-page-title")+" | "+l[0]),e.$set(n);const c={};i&1&&(c.jobId=l[0]),i&2&&(c.namespace=l[1]),t.$set(c)},i(l){r||(j(e.$$.fragment,l),j(t.$$.fragment,l),r=!0)},o(l){F(e.$$.fragment,l),F(t.$$.fragment,l),r=!1},d(l){l&&f(a),x(e,l),x(t,l)}}}function Ht(o,e,a){let t,r,l;return Ie(o,it,i=>a(2,l=i)),o.$$.update=()=>{o.$$.dirty&4&&a(1,t=l.params.namespace),o.$$.dirty&4&&a(0,r=l.params.jobId)},[r,t,l]}class aa extends we{constructor(e){super(),De(this,e,Ht,yt,Ee,{})}}export{aa as component}; diff --git a/ui/assets/local/_app/immutable/nodes/21.o9b-F3YG.js b/ui/assets/local/_app/immutable/nodes/21.E7_mKVS6.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/21.o9b-F3YG.js rename to ui/assets/local/_app/immutable/nodes/21.E7_mKVS6.js index 5cd35f023..45ff59e8a 100644 --- a/ui/assets/local/_app/immutable/nodes/21.o9b-F3YG.js +++ b/ui/assets/local/_app/immutable/nodes/21.E7_mKVS6.js @@ -1 +1 @@ -import{s as Ie,x as me,k as P,v as ke,g as d,z as Ae,A as Re,e as L,t as W,b as A,d as B,f as j,j as T,l as S,n as pe,c as Pe,a as R,h as V,y as Ve,p as he,u as ge,q as be,r as ve,Y as He,m as Le,D as Ke,K as Ft,S as Ut,L as St,V as It,G as Et}from"../chunks/scheduler.AWtTlMeO.js";import{S as Te,i as ze,c as X,a as Z,m as x,t as k,b as w,d as ee,g as fe,e as ue,f as Pt}from"../chunks/index.91lpp7Ff.js";import{p as Ue}from"../chunks/stores.BjeHb2_D.js";import{P as Rt}from"../chunks/page-title.HGZyp4X5.js";import{e as De}from"../chunks/each.QPLN4A2E.js";import{d as Oe,w as Vt,g as Mt}from"../chunks/entry.49-_VqMH.js";import{W as Ht}from"../chunks/workflow-status.ASJz2ufm.js";import{L as Be}from"../chunks/link.cs7LzqaH.js";import{T as Dt}from"../chunks/table-row.rkx8mFVk.js";import{t as C}from"../chunks/translate.HrioCK44.js";import{t as Kt,r as Ot,f as ye}from"../chunks/time-format.gNW0s4c3.js";import{i as Wt,b as We,l as Me}from"../chunks/route-for.LRddn_DS.js";import{s as je}from"../chunks/parse-with-big-int.e3oI4SEy.js";import{T as jt,a as Ct}from"../chunks/table-header-row.xBvT5iU5.js";import{d as qt}from"../chunks/index.OI4ueFuJ.js";import{A as Gt}from"../chunks/alert._GES0UbM.js";import{I as Tt}from"../chunks/input.Oj66r1n-.js";import{a as zt,p as Jt,o as Nt,d as Fe,F as Lt}from"../chunks/pagination.9GMcGm8o.js";import{T as Yt}from"../chunks/table.wDD-GVbn.js";import{l as Qt}from"../chunks/has.-dFYEuQV.js";import{B as At}from"../chunks/button.J_9D2qip.js";import{E as Bt}from"../chunks/empty-state.cnx-bHYa.js";import{a as Xt}from"../chunks/schedule-service.r3cr2EFk.js";import{c as Zt}from"../chunks/core-user.qS1id1Cd.js";import{w as yt}from"../chunks/write-actions-are-allowed.BsR296Mf.js";function Ce(s){let t,a,e,l=je(s[0]||s[1],void 0,2)+"",n,r;return{c(){t=L("div"),a=L("code"),e=L("pre"),n=W(l),this.h()},l(i){t=A(i,"DIV",{class:!0});var u=B(t);a=A(u,"CODE",{});var o=B(a);e=A(o,"PRE",{});var v=B(e);n=j(v,l),v.forEach(d),o.forEach(d),u.forEach(d),this.h()},h(){T(t,"class",r="frequency "+s[2].class+" svelte-dhsfg0")},m(i,u){P(i,t,u),S(t,a),S(a,e),S(e,n)},p(i,u){u&3&&l!==(l=je(i[0]||i[1],void 0,2)+"")&&pe(n,l),u&4&&r!==(r="frequency "+i[2].class+" svelte-dhsfg0")&&T(t,"class",r)},d(i){i&&d(t)}}}function xt(s){let t=[s[0],s[1]],a,e=Ce(s);return{c(){e.c(),a=me()},l(l){e.l(l),a=me()},m(l,n){e.m(l,n),P(l,a,n)},p(l,[n]){n&3&&Ie(t,t=[l[0],l[1]])?(e.d(1),e=Ce(l),e.c(),e.m(a.parentNode,a)):e.p(l,n)},i:ke,o:ke,d(l){l&&d(a),e.d(l)}}}function el(s,t,a){let{calendar:e=void 0}=t,{interval:l=void 0}=t;return s.$$set=n=>{a(2,t=Ae(Ae({},t),Re(n))),"calendar"in n&&a(0,e=n.calendar),"interval"in n&&a(1,l=n.interval)},t=Re(t),[e,l,t]}class tl extends Te{constructor(t){super(),ze(this,t,el,xt,Ie,{calendar:0,interval:1})}}function qe(s,t,a){const e=s.slice();return e[14]=t[a],e}function Ge(s,t,a){const e=s.slice();return e[14]=t[a],e}function ll(s){let t=s[0].scheduleId+"",a;return{c(){a=W(t)},l(e){a=j(e,t)},m(e,l){P(e,a,l)},p(e,l){l&1&&t!==(t=e[0].scheduleId+"")&&pe(a,t)},d(e){e&&d(a)}}}function al(s){var e;let t=ye((e=s[14])==null?void 0:e.actualTime,s[5],{relative:s[6]})+"",a;return{c(){a=W(t)},l(l){a=j(l,t)},m(l,n){P(l,a,n)},p(l,n){var r;n&97&&t!==(t=ye((r=l[14])==null?void 0:r.actualTime,l[5],{relative:l[6]})+"")&&pe(a,t)},d(l){l&&d(a)}}}function Je(s){var n,r,i,u;let t,a,e,l;return a=new Be({props:{href:We({namespace:s[7],workflow:(r=(n=s[14])==null?void 0:n.startWorkflowResult)==null?void 0:r.workflowId,run:(u=(i=s[14])==null?void 0:i.startWorkflowResult)==null?void 0:u.runId}),$$slots:{default:[al]},$$scope:{ctx:s}}}),{c(){t=L("p"),X(a.$$.fragment),e=R()},l(o){t=A(o,"P",{});var v=B(t);Z(a.$$.fragment,v),e=V(v),v.forEach(d)},m(o,v){P(o,t,v),x(a,t,null),S(t,e),l=!0},p(o,v){var D,N,y,f;const z={};v&1&&(z.href=We({namespace:o[7],workflow:(N=(D=o[14])==null?void 0:D.startWorkflowResult)==null?void 0:N.workflowId,run:(f=(y=o[14])==null?void 0:y.startWorkflowResult)==null?void 0:f.runId})),v&524385&&(z.$$scope={dirty:v,ctx:o}),a.$set(z)},i(o){l||(k(a.$$.fragment,o),l=!0)},o(o){w(a.$$.fragment,o),l=!1},d(o){o&&d(t),ee(a)}}}function Ye(s){let t,a=ye(s[14],s[5],{relative:s[6],relativeLabel:C("common.from-now")})+"",e,l;return{c(){t=L("div"),e=W(a),l=R()},l(n){t=A(n,"DIV",{});var r=B(t);e=j(r,a),l=V(r),r.forEach(d)},m(n,r){P(n,t,r),S(t,e),S(t,l)},p(n,r){r&97&&a!==(a=ye(n[14],n[5],{relative:n[6],relativeLabel:C("common.from-now")})+"")&&pe(e,a)},d(n){n&&d(t)}}}function sl(s){var ie,q,M,le,ae,G,J,Se,re,Y;let t,a,e,l,n,r,i,u=(((M=(q=(ie=s[0])==null?void 0:ie.info)==null?void 0:q.workflowType)==null?void 0:M.name)??"")+"",o,v,z,D,N,y,f,_,m=C("common.timezone",{timezone:s[2]})+"",U,$,O;a=new Ht({props:{status:(ae=(le=s[0])==null?void 0:le.info)!=null&&ae.paused?"Paused":"Running"}}),n=new Be({props:{href:s[1],$$slots:{default:[ll]},$$scope:{ctx:s}}});let K=De(s[8]((J=(G=s[0])==null?void 0:G.info)==null?void 0:J.recentActions)),g=[];for(let c=0;cw(g[c],1,1,()=>{g[c]=null});let p=De(((Y=(re=(Se=s[0])==null?void 0:Se.info)==null?void 0:re.futureActionTimes)==null?void 0:Y.slice(0,5))??[]),b=[];for(let c=0;c