@runeya/runeya 2.0.98 → 2.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chat-76SRZP43.js → chat-RWOZHXBX.js} +3 -3
- package/{chunk-MBHLFZ7C.js → chunk-SP3IC2TR.js} +2 -2
- package/{chunk-3SKXNOMC.js → chunk-TNBMCKQX.js} +9 -3
- package/chunk-TNBMCKQX.js.map +1 -0
- package/{companion-SIHG2RVK.js → companion-QNW7XA6X.js} +2 -2
- package/index.js +1 -1
- package/package.json +1 -1
- package/{src-333ZVPV4.js → src-7C7JLNBE.js} +4 -4
- package/web/assets/{AgentScalarChatInterface.vue-BCP4oQ-O.js → AgentScalarChatInterface.vue-CO0rZTzq.js} +1 -1
- package/web/assets/{AgentTerminalPage-C-Bu_ecg.js → AgentTerminalPage-BuRssPrd.js} +1 -1
- package/web/assets/AiChatPage-BjEi_r2n.js +1 -0
- package/web/assets/{AppLayout-DEJw20nu.css → AppLayout-DeWqCLuK.css} +1 -1
- package/web/assets/AppLayout-J1NuTBAF.js +1 -0
- package/web/assets/{AuditPage-D2raGocK.js → AuditPage-Dqrloi0G.js} +1 -1
- package/web/assets/CloudAccountPage-Cefqw24_.js +1 -0
- package/web/assets/{CloudAccountPage-CV9TTdVk.js → CloudAccountPage-DCE7A6gG.js} +1 -1
- package/web/assets/CloudMessagingPage-BCZNGikL.js +2 -0
- package/web/assets/CloudMessagingPage-Dl7hHYeb.css +1 -0
- package/web/assets/{DashboardPage-EcAF6x0P.js → DashboardPage-CHd7c0mK.js} +1 -1
- package/web/assets/{DirectoryPickerDialog-BryfhQms.js → DirectoryPickerDialog-Bvm-607p.js} +1 -1
- package/web/assets/{EditorIcon-C_aOVJRt.js → EditorIcon-nfwibbRp.js} +1 -1
- package/web/assets/{EnvironmentForm-BkapwtPM.js → EnvironmentForm-BaNPm9Ci.js} +1 -1
- package/web/assets/{EnvironmentFormPage-C7QAs1ce.js → EnvironmentFormPage-B0N6yaHl.js} +1 -1
- package/web/assets/{EnvironmentListPage-DMTEAlor.js → EnvironmentListPage-BLF8hyQq.js} +1 -1
- package/web/assets/KanbanBoardPage-BOVq3zOt.css +1 -0
- package/web/assets/KanbanBoardPage-DRHlkf1j.js +4 -0
- package/web/assets/KanbanListPage-C5rbZ1eL.css +1 -0
- package/web/assets/KanbanListPage-TG1aPyrr.js +1 -0
- package/web/assets/{LaunchProjectPage-DsPeoRJM.js → LaunchProjectPage-D7wsvb86.js} +1 -1
- package/web/assets/{LaunchServicesPage-sNv4eWh6.js → LaunchServicesPage-C_3lC__F.js} +1 -1
- package/web/assets/LogViewer-Clur2JPj.js +3 -0
- package/web/assets/{LogViewer-CS9CtzUm.css → LogViewer-M8xr8e4H.css} +1 -1
- package/web/assets/{OrgKeyPrompt-Dtb1_S1G.js → OrgKeyPrompt-DzYoczQ0.js} +1 -1
- package/web/assets/{ProcessControls-B6jRjOvZ.js → ProcessControls-B-i0vn-F.js} +1 -1
- package/web/assets/ProcessDetailPage-C-FvlS58.js +1 -0
- package/web/assets/{ProcessMetrics-bcJ_kHKZ.js → ProcessMetrics-9C6woua1.js} +1 -1
- package/web/assets/{ProjectDetailPage-BypoDGXZ.js → ProjectDetailPage-DMHFifUz.js} +1 -1
- package/web/assets/{ProjectListPage-DY-cApny.js → ProjectListPage-DdF7AdB4.js} +1 -1
- package/web/assets/{RandomJobTestPage-CG4yuPP3.js → RandomJobTestPage-C-goAdkU.js} +1 -1
- package/web/assets/{ScenarioEditorPage-C69LbLjs.js → ScenarioEditorPage-DnUaJXCX.js} +1 -1
- package/web/assets/SendToChatDialog-BbXrvB4I.js +1 -0
- package/web/assets/{ServiceControlsBar-VIhGJ7dT.js → ServiceControlsBar-DDDolR4R.js} +1 -1
- package/web/assets/{ServiceDetailPage-BRfqo_ID.js → ServiceDetailPage-BK58DZC8.js} +1 -1
- package/web/assets/{ServiceFormPage-Dpv3X6KL.js → ServiceFormPage-BHyDXdFa.js} +1 -1
- package/web/assets/{SettingsPage-CjmyWBD9.js → SettingsPage-Dyq14bmC.js} +4 -4
- package/web/assets/{UnlockPage-Cbfn2hXK.js → UnlockPage-RrMsfbrU.js} +1 -1
- package/web/assets/{VariablesTable-CX7XJfqO.js → VariablesTable-LT_qBJ2h.js} +1 -1
- package/web/assets/{VaultMigrationPage-CoRr0xyn.js → VaultMigrationPage-CF8Y8rmi.js} +1 -1
- package/web/assets/{VersionBadge-CXCPlkLe.js → VersionBadge-BbXINNzu.js} +1 -1
- package/web/assets/WikiPage-Y8wqLxwd.js +1 -0
- package/web/assets/{WikiView-DPGhKRAV.js → WikiView-DiYRaOYq.js} +1 -1
- package/web/assets/{add-scalar-classes-D7X53yAR.js → add-scalar-classes-K6cjCMza.js} +3 -3
- package/web/assets/{autocomplete-DWWjDeP2.js → autocomplete-C_JrCVhT.js} +1 -1
- package/web/assets/{basic-shape-diamond.svg-giVc-mOc.js → basic-shape-diamond.svg-DQIuJG7c.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-Cs0yG19E.js → basic-shape-hexagon.svg-CsLzSgNY.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-CzxM3e1f.js → basic-shape-primary-circle-ellipse-round.svg-CVC2UUnY.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-C95cJI4d.js → basic-shape-primary-square-rectangle.svg-CBQqmw5K.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-wTCwdnRC.js → basic-shape-shield.svg-DInRJhGg.js} +1 -1
- package/web/assets/{browser-KodijhgE.js → browser-BWTn2fII.js} +1 -1
- package/web/assets/{browser-CZciy3st.js → browser-CBRFoJmF.js} +1 -1
- package/web/assets/{card-C25ChBpF.js → card-D05-mytU.js} +1 -1
- package/web/assets/{checkbox-DEAMlJft.js → checkbox-Bn9sKQtn.js} +1 -1
- package/web/assets/{chip-uE963n-s.js → chip-bMvOYTMi.js} +1 -1
- package/web/assets/{client-je42aE2e.js → client-DKtWKz8_.js} +1 -1
- package/web/assets/cloud-chat.store-BTWRHEkB.js +1 -0
- package/web/assets/{cloud-session-BuCz6UQP.js → cloud-session-DSf0e5C-.js} +1 -1
- package/web/assets/{column-Cms5SVPR.js → column-DbNbVE0O.js} +1 -1
- package/web/assets/{computer-device-desktop-monitor.svg-BylgGK07.js → computer-device-desktop-monitor.svg-k_B34wUy.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-qoXFyQry.js → computer-device-desktop.svg-DRbByUX5.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-DWcxSkHU.js → computer-device-laptop.svg-D0zrCCUV.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-nyGcK2AV.js → computer-device-mobile-phone-android-samsung-back.svg-CDMP4LvA.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-B-B9DnnD.js → computer-device-mobile-phone-android-samsung.svg-DpqOlivE.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-D1xWmS-2.js → computer-device-mobile-phone-iphone-x-back.svg-Cmh1Z9bh.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-BG31euIf.js → computer-device-mobile-phone-iphone-x.svg-D_moGrw3.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-CA9G0U0-.js → computer-device-mobile-tablet-touch.svg-CLh2eAOj.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-CRxAMxXj.js → computer-device-mobile-tablet.svg-DvGb4KSH.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-Kr3zCE41.js → computer-device-network-ethernet-cat6.svg-Ds8KEzV3.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-CPLhhOUs.js → computer-device-network-lan-www.svg-BRGLnXjb.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-ClRAdq1j.js → computer-device-network-wifi-connection.svg-DKvrPIJX.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-_8aeHm8n.js → computer-device-network-wifi-router.svg-liEbMM_x.js} +1 -1
- package/web/assets/{cssMode-CbB-baIv.js → cssMode-BbD1Az4Q.js} +1 -1
- package/web/assets/{divider-B6_1Ju2t.js → divider-DxyrXzL0.js} +1 -1
- package/web/assets/{docx-preview-DeKYOymU.js → docx-preview-CvE2Hyll.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-CvdMWoub.js → ecology-science-erlenmeyer-flask.svg-DUtItyf4.js} +1 -1
- package/web/assets/{fieldset-DTWlcVOh.js → fieldset-B-iu4l79.js} +1 -1
- package/web/assets/{freemarker2-HU2-ude_.js → freemarker2-9LP8f6xc.js} +1 -1
- package/web/assets/{handlebars-DEfTSnH3.js → handlebars-BqAjQ_7U.js} +1 -1
- package/web/assets/{html-DJwlf-_0.js → html-BQGnSeng.js} +1 -1
- package/web/assets/{htmlMode-B_2W_FNG.js → htmlMode-BHA4vqLk.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-DxDmYt-K.js → image-flash-lightning.svg-BBGXlJhr.js} +1 -1
- package/web/assets/{image-picture-flower.svg-B2ysY7Ez.js → image-picture-flower.svg-BxkFS7Zf.js} +1 -1
- package/web/assets/{index-BqL8zZUd.js → index-Cpr6expG.js} +5 -5
- package/web/assets/{interface-alert-exclamation-diamond.svg-Cy-q0PPD.js → interface-alert-exclamation-diamond.svg-DzH0JlCT.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-5GTUkGyl.js → interface-alert-exclamation-triangle-warning.svg-DaInpugf.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-CULAFRLG.js → interface-alert-information-circle.svg-n4sKpUCS.js} +1 -1
- package/web/assets/{interface-award-crown.svg-IfA0R219.js → interface-award-crown.svg-Kwu8DSVP.js} +1 -1
- package/web/assets/{interface-bookmark.svg-B6DP-eOU.js → interface-bookmark-tag.svg-_fw9pZb5.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-CK7uh_UM.js → interface-bookmark.svg-DWAmuuK9.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-HeuC-uLL.js → interface-calendar-date-one.svg-CmIEtHmU.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-BbVGNhbo.js → interface-content-book-open-pages.svg-DgYJ8vBF.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-TgiMUTDz.js → interface-content-book-page.svg-BZuG7E_4.js} +1 -1
- package/web/assets/{interface-content-file.svg-vBz32nix.js → interface-content-file.svg-BGHyrWzD.js} +1 -1
- package/web/assets/interface-content-folder.svg-BumsteY1.js +1 -0
- package/web/assets/{interface-content-folder.svg-Dh6i4WMj.js → interface-content-folder.svg-Cfgu5hvK.js} +1 -1
- package/web/assets/{interface-copy-clipboard.svg-D5iacSkg.js → interface-copy-clipboard.svg-BGtmG9MM.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-BuDlvGLW.js → interface-edit-attachment.svg-BYBpsj_Y.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-CkRvNsTG.js → interface-edit-binocular.svg-BoDDpDX0.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-U2D8Txx_.js → interface-edit-magic-wand.svg-7UUnTZTy.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-B1tbUZdf.js → interface-edit-tool-paint-roller.svg-BBgx0ed8.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-DSu15aW1.js → interface-edit-tool-pencil.svg-DyNlQ-52.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-BVkYy4-X.js → interface-favorite-award.svg-CHCqaqc0.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-DH2kZwOe.js → interface-favorite-flag.svg-PcXDmrZX.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-CSiLFjiO.js → interface-favorite-heart.svg-CZGJWx-F.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-3MpBVvJ5.js → interface-favorite-star.svg-BuYgAD1f.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-Do5o_8CI.js → interface-favorite-stars-sparkles.svg-CfStfqmp.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-B1-j3kUD.js → interface-hierarchy-flowchart.svg-Cb0ltPIS.js} +1 -1
- package/web/assets/{interface-home-house.svg-D1HguPAL.js → interface-home-house.svg-BBjEV2pp.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-DqPngT30.js → interface-hyperlink.svg-DT6jiMof.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-DClYpH8v.js → interface-lighting-brightness.svg-yumgiJMg.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-DDnsn-BI.js → interface-lock-closed.svg-DKcyKpe4.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-uL6o62w3.js → interface-lock-open-unlock.svg-B8DyMHrI.js} +1 -1
- package/web/assets/{interface-login-key.svg-e73NKVRd.js → interface-login-key.svg-CiIp4cRL.js} +1 -1
- package/web/assets/{interface-search.svg-DpkvQinQ.js → interface-search.svg-DKf6zmK0.js} +1 -1
- package/web/assets/{interface-setting-cog.svg---AIvweU.js → interface-setting-cog.svg-Dca-SJpD.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-D2badk6M.js → interface-share-megaphone-bullhorn.svg-DUCMzO7i.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-6B06C_7X.js → interface-share-rocket.svg-CNvNhser.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-P0R4jbH7.js → interface-share-satellite.svg-Dkio7il2.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-CPc2Kr86.js → interface-share-space-ship.svg-I71JreEj.js} +1 -1
- package/web/assets/{interface-share.svg-DNGRMU5_.js → interface-share.svg-BPU9cWp6.js} +1 -1
- package/web/assets/{interface-signal-square.svg-BnGGCn_I.js → interface-signal-square.svg-CN4VA6tQ.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-DSq7D7IE.js → interface-time-clock-circle.svg-Bha9OX20.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-C3xRi1SV.js → interface-time-hour-glass.svg-Du4hxE2p.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-CPVqJeNN.js → interface-users-multiple.svg-pQIp-hoB.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-BZFQlmJ8.js → interface-weather-moon.svg-BcBzx4Od.js} +1 -1
- package/web/assets/{javascript-hGBVLh1i.js → javascript-BHZKHOOj.js} +1 -1
- package/web/assets/{jsonMode-DlGxKO4o.js → jsonMode-GhIsE4e5.js} +1 -1
- package/web/assets/{liquid-CHZa4fn-.js → liquid-BHuOCIhn.js} +1 -1
- package/web/assets/{lspLanguageFeatures-B3XS0Aab.js → lspLanguageFeatures-DTAQjbl9.js} +1 -1
- package/web/assets/{mail-chat-bubble-square.svg-B-m_8Ftp.js → mail-chat-bubble-square.svg-HwwAWr4x.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-pdfuG_gi.js → mail-send-email-paper-airplane.svg-DH_He7Ds.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-BbRGrHIB.js → mail-send-envelope.svg-2R7rPUjX.js} +1 -1
- package/web/assets/{mdx-O6Bp6Wm_.js → mdx-IcBFDakC.js} +1 -1
- package/web/assets/{minus-9fOaQxxR.js → minus-BaAT-JPY.js} +1 -1
- package/web/assets/modal-BHZtaHM0.js +1 -0
- package/web/assets/{modal-Djtbj5Rv.js → modal-DWgfH5xs.js} +1 -1
- package/web/assets/{money-cashier-receipt.svg-B5w6NN65.js → money-cashier-receipt.svg-CgH8uF5D.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-CvB1o8rf.js → money-currency-dollar-pay.svg-BI2ue021.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-CBF_1ZI5.js → money-graph-arrow-increase.svg-D4zIVPfo.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-Da_V0hyb.js → money-graph-bar-chart-increase.svg-BYLFx5Zb.js} +1 -1
- package/web/assets/{multiselect-DDoSYwWj.js → multiselect-7rkJuh-5.js} +1 -1
- package/web/assets/{nature-ecology-leaf.svg-BcpJmi4O.js → nature-ecology-leaf.svg-eETU3G2Y.js} +1 -1
- package/web/assets/{password-C0iEyf8i.js → password-BGu_DyDq.js} +1 -1
- package/web/assets/{phone-telephone.svg-DX3q6G6y.js → phone-telephone.svg-ZjSQIXSz.js} +1 -1
- package/web/assets/{plus-BYi81Tr8.js → plus-Cok04yyx.js} +1 -1
- package/web/assets/process.store-DSX-TYiH.js +1 -0
- package/web/assets/{programming-bug.svg-BehKMs-E.js → programming-bug.svg-CJUpUdqa.js} +1 -1
- package/web/assets/{programming-cloud.svg-B61GYVre.js → programming-cloud.svg-CsoxJsTI.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-3DGUioUy.js → programming-computer-database-server.svg-BzDlqhhs.js} +1 -1
- package/web/assets/{programming-computer-database.svg-wQpWxR3M.js → programming-computer-database.svg-BZHPeWs2.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-DzgTiLIk.js → programming-module-four-layout.svg-Bgsr1GYX.js} +1 -1
- package/web/assets/{programming-module-three.svg-M0DCgTjN.js → programming-module-three.svg-yvQCkqfP.js} +1 -1
- package/web/assets/{programming-module.svg-BOC6URSy.js → programming-module.svg-B001gN4k.js} +1 -1
- package/web/assets/{programming-script-code.svg-C3xFaN0l.js → programming-script-code.svg-BXWoriOW.js} +1 -1
- package/web/assets/{python-eMHIZQyy.js → python-Kwxr2FFC.js} +1 -1
- package/web/assets/{razor-UJ0I37b5.js → razor-Db4KkjTY.js} +1 -1
- package/web/assets/router-TkEqwH2w.js +1 -0
- package/web/assets/settings-scope-CbB2Zbm6.js +1 -0
- package/web/assets/{settings.store-B3TGTzZS.js → settings.store-C8XxDQJt.js} +1 -1
- package/web/assets/{shopping-cart.svg-6EFaCdBY.js → shopping-cart.svg-BvCP1RaQ.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-Ts4I3V_5.js → shopping-gift-present.svg-BsjJmhJn.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-C8_ozIk3.js → shopping-shipping-box-parcel-package.svg-O0Tymr9V.js} +1 -1
- package/web/assets/src-BU-Bd3Gl.js +572 -0
- package/web/assets/{src-D1-b3cJF.js → src-DTz2Cb-U.js} +1 -1
- package/web/assets/{src-wi7XOQt2.js → src-DwBjjGuv.js} +1 -1
- package/web/assets/{tabpanel-CgfewHLu.js → tabpanel-D6nwVNui.js} +1 -1
- package/web/assets/{tag-new-circle.svg-DycuoP-e.js → tag-new-circle.svg-BdJg6YJV.js} +1 -1
- package/web/assets/{toggleswitch-BRXSsqba.js → toggleswitch-XC4unxcT.js} +1 -1
- package/web/assets/{travel-map-earth-globe.svg-B4NyICHP.js → travel-map-earth-globe.svg-CEJHyLCo.js} +1 -1
- package/web/assets/trpc-DC0K379u.js +1 -0
- package/web/assets/{tsMode-DBth4O86.js → tsMode-CqetBVfY.js} +1 -1
- package/web/assets/{typescript-Bh9YpsFc.js → typescript-8K_yRytK.js} +1 -1
- package/web/assets/useAiChatDrawer-BX7mjjw8.js +1 -0
- package/web/assets/useCloudOrg-Bi4PHbRV.js +1 -0
- package/web/assets/{useProjectCatalog-DcDvQvqC.js → useProjectCatalog-mgQ_LzzG.js} +1 -1
- package/web/assets/useProjectCloudOrg-BWXyTbPj.js +1 -0
- package/web/assets/{xml-D10bhlvQ.js → xml-C7IMrgQl.js} +1 -1
- package/web/assets/{yaml-Dum5r-cT.js → yaml-DqtAn63S.js} +1 -1
- package/web/index.html +1 -1
- package/chunk-3SKXNOMC.js.map +0 -1
- package/web/assets/AiChatPage-CKSREmOR.js +0 -1
- package/web/assets/AppLayout-CVnZmwWH.js +0 -1
- package/web/assets/CloudAccountPage-0qN5ieof.js +0 -1
- package/web/assets/CloudMessagingPage-CWD7RpQ-.js +0 -2
- package/web/assets/CloudMessagingPage-DWd3bv_1.css +0 -1
- package/web/assets/KanbanBoardPage-BTvn4Oks.css +0 -1
- package/web/assets/KanbanBoardPage-CcEmdrkF.js +0 -4
- package/web/assets/KanbanListPage-BWJww5Sd.js +0 -1
- package/web/assets/KanbanListPage-Ch8OogmO.css +0 -1
- package/web/assets/LogViewer-BygMlrsG.js +0 -3
- package/web/assets/ProcessDetailPage-BWwJeqrL.js +0 -1
- package/web/assets/SendToChatDialog-YNumW3mj.js +0 -1
- package/web/assets/WikiPage-CkcQJ2fE.js +0 -1
- package/web/assets/auth-errors-DnpRNHod.js +0 -1
- package/web/assets/cloud-chat.store-Zzg8ll0J.js +0 -1
- package/web/assets/interface-content-folder.svg-DWRLYbXv.js +0 -1
- package/web/assets/modal-BE3TL0KL.js +0 -1
- package/web/assets/process.store-BpUWGSdq.js +0 -1
- package/web/assets/router-C1Ext_ri.js +0 -1
- package/web/assets/settings-scope-By7npmQf.js +0 -1
- package/web/assets/trpc-C4Crlf9C.js +0 -1
- package/web/assets/useAiChatDrawer-D7Vpm-Ax.js +0 -1
- package/web/assets/useCloudOrg-arsGRyWT.js +0 -572
- /package/{chat-76SRZP43.js.map → chat-RWOZHXBX.js.map} +0 -0
- /package/{chunk-MBHLFZ7C.js.map → chunk-SP3IC2TR.js.map} +0 -0
- /package/{companion-SIHG2RVK.js.map → companion-QNW7XA6X.js.map} +0 -0
- /package/{src-333ZVPV4.js.map → src-7C7JLNBE.js.map} +0 -0
- /package/web/assets/{abap-Q7FyqTce.js → abap-BvxTqXT2.js} +0 -0
- /package/web/assets/{apex-DBNDq2a_.js → apex-CIPCCkBr.js} +0 -0
- /package/web/assets/{azcli-BHW8ozYN.js → azcli-Rs0NIwkA.js} +0 -0
- /package/web/assets/{bat-BL-_3Nfo.js → bat-BxAhM6gR.js} +0 -0
- /package/web/assets/{bicep-DR2vgumW.js → bicep-oV_ehPcG.js} +0 -0
- /package/web/assets/{browser-BOSK4iqQ.js → browser-DNbnH79q.js} +0 -0
- /package/web/assets/{cameligo-BCjoEAZU.js → cameligo-CJLaUyQs.js} +0 -0
- /package/web/assets/{clojure-zw1Irdul.js → clojure-CjvMureh.js} +0 -0
- /package/web/assets/{coffee-BdEjkiiW.js → coffee-motWC5XQ.js} +0 -0
- /package/web/assets/{cpp-DKUlBIAG.js → cpp-DiWIfYNM.js} +0 -0
- /package/web/assets/{csharp-BsNC4zVq.js → csharp-GBlGBeai.js} +0 -0
- /package/web/assets/{csp-X4Chv5_9.js → csp-tSyK5eO1.js} +0 -0
- /package/web/assets/{css-Dh0Dlycs.js → css-BkFK9HG_.js} +0 -0
- /package/web/assets/{cypher-BL_DRjGX.js → cypher-Bcp8PXr2.js} +0 -0
- /package/web/assets/{dart-DaM4j487.js → dart-uz9Rxe0M.js} +0 -0
- /package/web/assets/{dockerfile-Df5WJXAt.js → dockerfile-iJizx3Zp.js} +0 -0
- /package/web/assets/{ecl-BjUo3uTs.js → ecl-BalaS36Z.js} +0 -0
- /package/web/assets/{elixir-DrLHYSxt.js → elixir-D6CLrLGy.js} +0 -0
- /package/web/assets/{flow9-DKiuX7rg.js → flow9-CFt3-vVY.js} +0 -0
- /package/web/assets/{fsharp-CAN78557.js → fsharp-DGa7raxa.js} +0 -0
- /package/web/assets/{go-DGjr9vA5.js → go-wlqInk4z.js} +0 -0
- /package/web/assets/{graphql-CcoU3Cj2.js → graphql-CP1guigM.js} +0 -0
- /package/web/assets/{hcl-udfyCcTm.js → hcl-CK0UkKD0.js} +0 -0
- /package/web/assets/{ini-BVbXatjh.js → ini-Ch56nrUj.js} +0 -0
- /package/web/assets/{java-Drpmh61g.js → java-C9_WIayl.js} +0 -0
- /package/web/assets/{julia-asFGk-ZV.js → julia-Can2_mhR.js} +0 -0
- /package/web/assets/{kotlin-HmkKz1TT.js → kotlin-DUvGf_BX.js} +0 -0
- /package/web/assets/{less-C5i2m2Dn.js → less-DoTbG-rc.js} +0 -0
- /package/web/assets/{lexon-B3Xh2kL6.js → lexon-BFMO2_kL.js} +0 -0
- /package/web/assets/{lua-DnOtgOOu.js → lua-CC-QtBo7.js} +0 -0
- /package/web/assets/{m3-Brj4HNKq.js → m3-C51MyH5Q.js} +0 -0
- /package/web/assets/{markdown-C3-4Ntpz.js → markdown-CDwLHhgZ.js} +0 -0
- /package/web/assets/{mips-vFQKPHzn.js → mips-YuxZtPGU.js} +0 -0
- /package/web/assets/{msdax-D5MYLS2R.js → msdax-CJjWhmte.js} +0 -0
- /package/web/assets/{mysql-CRQHhUON.js → mysql-B1riwLaD.js} +0 -0
- /package/web/assets/{objective-c-8cZEp0HR.js → objective-c-drXT-gmc.js} +0 -0
- /package/web/assets/{pascal-BPn_2jro.js → pascal-KUYgrN-Z.js} +0 -0
- /package/web/assets/{pascaligo-L7QnU_8B.js → pascaligo-DQmQJP-r.js} +0 -0
- /package/web/assets/{perl-B9zSPnp3.js → perl-09XLBmCS.js} +0 -0
- /package/web/assets/{pgsql-DiRJukCJ.js → pgsql-BFj9IFFu.js} +0 -0
- /package/web/assets/{php-Dv4g8Lhr.js → php-UnC5BqwY.js} +0 -0
- /package/web/assets/{pla-CKAoz6vp.js → pla-BFuYrPHG.js} +0 -0
- /package/web/assets/{postiats-B_PYgUTS.js → postiats-n4ft3jnO.js} +0 -0
- /package/web/assets/{powerquery-CAagSyo-.js → powerquery-D-s-oFSc.js} +0 -0
- /package/web/assets/{powershell-Cj9BzLhS.js → powershell-CTboTf93.js} +0 -0
- /package/web/assets/{protobuf-DTRY4FFo.js → protobuf-Dt62GuJP.js} +0 -0
- /package/web/assets/{pug-qADGmCS8.js → pug-CEFWkUzw.js} +0 -0
- /package/web/assets/{qsharp-xkZT0ZOm.js → qsharp-B0DUmgPZ.js} +0 -0
- /package/web/assets/{r-C7wfNC2Z.js → r-BVnF0c4T.js} +0 -0
- /package/web/assets/{redis-BoccK80D.js → redis-DLl3KQXi.js} +0 -0
- /package/web/assets/{redshift-EL8PjTts.js → redshift-cif1I7h1.js} +0 -0
- /package/web/assets/{restructuredtext-CA6rgR7C.js → restructuredtext-PNfql36m.js} +0 -0
- /package/web/assets/{ruby-BymrInur.js → ruby-j3jxDjUN.js} +0 -0
- /package/web/assets/{rust-BTbPL-fg.js → rust-BaIO-mAt.js} +0 -0
- /package/web/assets/{sb-BTkOICcb.js → sb-D8XNVNUQ.js} +0 -0
- /package/web/assets/{scala-CzaUHeQF.js → scala-DiK9Ps90.js} +0 -0
- /package/web/assets/{scheme-DZe2DRuY.js → scheme-DPKqXHmF.js} +0 -0
- /package/web/assets/{scss-D5oFt9cg.js → scss-DpMwfP2H.js} +0 -0
- /package/web/assets/{shell-DCkIF5jZ.js → shell-Dw9mKVg2.js} +0 -0
- /package/web/assets/{solidity-CfOO4gXi.js → solidity-DTxo-7fe.js} +0 -0
- /package/web/assets/{sophia-0-sROOHR.js → sophia-BjA3Q87y.js} +0 -0
- /package/web/assets/{sparql-Dzzr9hol.js → sparql-q1EpMUqb.js} +0 -0
- /package/web/assets/{sql-DbXHiHh_.js → sql-CjcQ4wIr.js} +0 -0
- /package/web/assets/{useCloudOrg-CkiFdVCe.css → src-CkiFdVCe.css} +0 -0
- /package/web/assets/{st-DEaYV8xH.js → st-AuOpxVl7.js} +0 -0
- /package/web/assets/{swift-BQItveav.js → swift-BUWnv6f7.js} +0 -0
- /package/web/assets/{systemverilog-nE6YfGlx.js → systemverilog-FhXn-3OZ.js} +0 -0
- /package/web/assets/{tcl-Do7Q0SM0.js → tcl-B0lqcTtS.js} +0 -0
- /package/web/assets/{twig-B2CLZN2j.js → twig-B0OeGPVa.js} +0 -0
- /package/web/assets/{typespec-r9R1AgVi.js → typespec-Bmh6VX11.js} +0 -0
- /package/web/assets/{vb-DGnD02qr.js → vb-bmgX6veu.js} +0 -0
- /package/web/assets/{w3c-keyname-9KQ-4XZl.js → w3c-keyname-2TLn3EjF.js} +0 -0
- /package/web/assets/{wgsl-C2fD4koY.js → wgsl-FflLnFqI.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Ai as t,Bi as n,Ci as r,Di as i,Fn as a,G as o,Ha as s,Na as c,Nn as l,Oi as u,Ra as ee,Si as d,W as f,Zi as p,_n as te,b as ne,ba as m,bi as h,cn as g,ea as _,en as v,gi as y,ha as b,ja as x,jn as S,ma as C,mi as w,nn as T,on as re,pi as E,qi as ie,rn as ae,si as oe,ua as D,va as O,xa as k,xi as A,yi as j}from"./index-BqL8zZUd.js";var M=`runeya.chat.sound`;const se=c(ce()??!0);function ce(){if(typeof localStorage>`u`)return null;let e=localStorage.getItem(M);return e===null?null:e===`1`}function le(e){se.value=e;try{localStorage.setItem(M,e?`1`:`0`)}catch{}}async function ue(e){try{let t=(await e.$fetch(`/user/prefs`,{method:`GET`}))?.data?.prefs?.chatSound;typeof t==`boolean`&&le(t)}catch{}}function de(e,t){e.$fetch(`/user/prefs`,{method:`POST`,body:{prefs:{chatSound:t}}})}var N=null;function P(){if(!(!se.value||typeof window>`u`))try{let e=window.AudioContext??window.webkitAudioContext;if(!e)return;N??=new e,N.state===`suspended`&&N.resume();let t=N.currentTime,n=N.createOscillator(),r=N.createGain();n.type=`sine`,n.frequency.setValueAtTime(660,t),n.frequency.exponentialRampToValueAtTime(880,t+.08),r.gain.setValueAtTime(1e-4,t),r.gain.exponentialRampToValueAtTime(.16,t+.012),r.gain.exponentialRampToValueAtTime(1e-4,t+.25),n.connect(r).connect(N.destination),n.start(t),n.stop(t+.26)}catch{}}var fe={class:`chat`},pe={class:`sidebar`},me={class:`group`},he={class:`group-head`},ge={class:`acts`},_e={class:`list`},ve=[`onClick`],ye={class:`hash`},be={class:`name`},xe={key:0,class:`badge`},Se={class:`group`},Ce={class:`group-head`},we={class:`list`},Te=[`onClick`],Ee={class:`name`},De={key:0,class:`badge`},Oe={class:`main`},ke={class:`retention-banner__text`},Ae={class:`retention-banner__cta`},je={class:`pane-head`},Me={key:0},Ne={class:`head-actions`},Pe={class:`sel-count`},Fe={key:0,class:`loading-older`},Ie={key:1,class:`empty`},Le=[`onClick`],Re={key:0,class:`pi pi-check`},ze=[`src`,`onError`],Be={class:`msg-body`},Ve={class:`msg-head`},He={class:`msg-author`},Ue={class:`msg-time`},We=[`innerHTML`],Ge={key:0,class:`msg-cards`},Ke={key:1,class:`error`},qe={key:2,class:`placeholder`},Je={class:`hash-input`},Ye={class:`toggle-row`},Xe={key:0,class:`dlg-empty`},Ze={key:1,class:`pick-list`},Qe=[`onClick`],$e={class:`pick-name`},et={class:`join`},tt={key:0,class:`dlg-empty`},nt={class:`dlg-hint`},rt={key:0,class:`dlg-empty`},it={key:1,class:`pick-list`},at=[`onClick`],ot={class:`pick-avatar`},st={class:`pick-name`},ct={key:0,class:`pi pi-check picked`},lt={key:0,class:`dlg-empty`},ut={key:0,class:`dlg-empty`},dt={key:1,class:`pick-list`},ft=[`onClick`],pt={class:`pick-avatar`},mt={class:`pick-name`},ht={key:0,class:`pi pi-check picked`},gt=80,_t=120,F=S(t({__name:`ChatPanel`,props:{client:{},orgId:{},cloudApiBaseUrl:{},streamUrl:{type:Function,default:void 0},currentUserId:{default:void 0},members:{},t:{},enableSelectToAi:{type:Boolean,default:!1},notifyOnUnread:{type:Boolean,default:!0},internalOrigins:{default:()=>[]},cardColumn:{type:Function,default:void 0}},emits:[`channel-read`,`ai-context`,`internal-link`,`upgrade`,`card-refs`],setup(t,{emit:te}){let v=t,S=te,M=v.t,ce=ee(v,`orgId`),N=j(()=>v.client),F=j(()=>v.currentUserId),I=ne(N.value,ce,{...v.streamUrl?{streamUrl:v.streamUrl}:{baseURL:v.cloudApiBaseUrl},currentUserId:F}),L=j(()=>v.members),R=c(null);function vt(e){return new Date(e).toLocaleDateString(void 0,{year:`numeric`,month:`long`,day:`numeric`})}async function yt(e){if(R.value=null,e)try{R.value=(await N.value.$fetch(`/chat/retention/status`,{method:`GET`,query:{organizationId:e}})).data??null}catch{}}D(ce,e=>void yt(e),{immediate:!0});let z=j(()=>{let e=R.value;return e?e.capped&&e.enforcing?{text:M(`retention.enforcing`,{days:e.retentionDays}),enforcing:!0}:e.capped&&e.cutoffAt?{text:M(`retention.grace`,{date:vt(e.cutoffAt),days:e.retentionDays}),enforcing:!1}:e.pending?{text:M(`retention.pending`,{date:vt(e.pending.effectiveAt),days:e.pending.retentionDays}),enforcing:!1}:null:null}),bt=e=>`runeya.chat.lastChannel.${e}`;D(()=>I.activeChannelId.value,e=>{if(e&&v.orgId)try{localStorage.setItem(bt(v.orgId),e)}catch{}});let xt=``;D([()=>v.orgId,I.channels],()=>{let e=v.orgId;if(!e||xt===e||!I.channels.value.length||(xt=e,I.activeChannelId.value))return;let t=null;try{t=localStorage.getItem(bt(e))}catch{}t&&I.channels.value.some(e=>e.id===t)&&I.selectChannel(t)},{immediate:!0});let St=j(()=>I.channels.value.filter(e=>e.kind===`channel`)),Ct=j(()=>I.channels.value.filter(e=>e.kind===`dm`)),B=j(()=>I.channels.value.find(e=>e.id===I.activeChannelId.value)??null),wt=j(()=>L.value.filter(e=>e.userId!==F.value));function Tt(e){return L.value.find(t=>t.userId===e)?.name??M(`someone`)}function Et(e){let t=e.memberIds.filter(e=>e!==F.value);return t.length?t.map(Tt).join(`, `):M(`someone`)}function Dt(e){return e.kind===`dm`?Et(e):e.name}let Ot=j(()=>{let e=B.value;return e?L.value.filter(t=>!e.memberIds.includes(t.userId)):[]}),V=c(null),kt=j({get:()=>V.value===`create`,set:e=>{V.value=e?`create`:null}}),At=j({get:()=>V.value===`browse`,set:e=>{V.value=e?`browse`:null}}),jt=j({get:()=>V.value===`newdm`,set:e=>{V.value=e?`newdm`:null}}),Mt=j({get:()=>V.value===`invite`,set:e=>{V.value=e?`invite`:null}}),H=c(``),Nt=c(!1),U=c([]),W=c([]),G=c([]),K=c(``);function Pt(e){let t=K.value.trim().toLowerCase();return!t||e.name.toLowerCase().includes(t)||e.email.toLowerCase().includes(t)}let Ft=j(()=>Ot.value.filter(Pt)),It=j(()=>wt.value.filter(Pt));function Lt(){V.value=null}async function Rt(){U.value=await I.browseChannels(),V.value=`browse`}function zt(){W.value=[],K.value=``,V.value=`invite`}function Bt(){G.value=[],K.value=``,V.value=`newdm`}function Vt(e){W.value=W.value.includes(e)?W.value.filter(t=>t!==e):[...W.value,e]}function Ht(e){G.value=G.value.includes(e)?G.value.filter(t=>t!==e):[...G.value,e]}async function Ut(){await I.createChannel(H.value,Nt.value)&&(H.value=``,Nt.value=!1,Lt())}async function Wt(e){await I.joinChannel(e)&&(U.value=U.value.filter(t=>t.id!==e),Lt())}async function Gt(){if(!G.value.length)return;let e=G.value;Lt(),await I.openDm(e)}async function Kt(){let e=B.value;if(!(!e||!W.value.length)){for(let t of W.value)await I.inviteToChannel(e.id,t);W.value=[],Lt(),await I.reloadChannels()}}let q=c(``),qt=c(null);async function Jt(){await n();let e=qt.value?.$el;e instanceof HTMLTextAreaElement?e.focus():e?.querySelector(`textarea`)?.focus()}async function Yt(){await I.send(q.value)&&(q.value=``),await Jt()}function Xt(e){e.shiftKey||e.isComposing||(e.preventDefault(),Yt())}D(()=>I.activeChannelId.value,e=>{e&&Jt()});let J=se;ie(()=>{ue(N.value)});function Zt(){le(!J.value),de(N.value,J.value),J.value&&P()}let Qt=0,$t=!1;D(()=>Object.values(I.unread.value).reduce((e,t)=>e+t,0),e=>{v.notifyOnUnread&&$t&&e>Qt&&P(),Qt=e,$t=!0},{immediate:!0});let en=typeof window<`u`?window.location.origin:``,tn={ALLOWED_TAGS:[`p`,`br`,`strong`,`b`,`em`,`i`,`u`,`s`,`del`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`a`,`h1`,`h2`,`h3`,`h4`,`hr`],ALLOWED_ATTR:[`href`,`title`]};function nn(e){let t=o.parse(e??``,{async:!1,gfm:!0,breaks:!0});return f.sanitize(t,tn)}let rn=/\/app\/[^/\s)]+\/kanban\/([^/\s)]+)\/card\/([^/\s)?#]+)/g;function an(e){let t=[],n=new Set;for(let r of(e??``).matchAll(rn)){let e=decodeURIComponent(r[1]??``),i=decodeURIComponent(r[2]??``),a=`${e}:${i}`;!e||!i||n.has(a)||(n.add(a),t.push({boardId:e,cardId:i}))}return t}function on(e){return v.cardColumn?an(e).map(e=>({key:`${e.boardId}:${e.cardId}`,column:v.cardColumn?.(e.boardId,e.cardId)??``})).filter(e=>e.column):[]}D(()=>I.messages.value.map(e=>e.content).join(`\0`),()=>{let e=[],t=new Set;for(let n of I.messages.value)for(let r of an(n.content)){let n=`${r.boardId}:${r.cardId}`;t.has(n)||(t.add(n),e.push(r))}S(`card-refs`,e)},{immediate:!0});function sn(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);if(!t)return;e.preventDefault(),e.stopPropagation();let n=[en,...v.internalOrigins].filter(Boolean).find(e=>t===e||t.startsWith(`${e}/`));n?S(`internal-link`,t.slice(n.length)||`/`,n):/^https?:\/\//i.test(t)&&window.open(t,`_blank`,`noopener,noreferrer`)}function cn(e){return new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}function ln(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return{background:`linear-gradient(135deg, hsl(${t} 62% 52%), hsl(${(t+40)%360} 62% 46%))`}}let un=x(new Set);function dn(e){return`${v.cloudApiBaseUrl}/api/avatar/${e}`}let Y=c(null),X=c(0),Z=0;function fn(){let e=Y.value;return e?e.scrollHeight-e.scrollTop-e.clientHeight<=gt:!0}function pn(){let e=I.activeChannelId.value;e&&(I.markRead(e),I.unread.value[e]&&(I.unread.value={...I.unread.value,[e]:0}),S(`channel-read`,e))}function mn(e=!1){let t=Y.value;t&&(t.scrollTo({top:t.scrollHeight,behavior:e?`smooth`:`auto`}),X.value=0,pn())}let hn=!1;async function gn(){let e=Y.value;if(!e||!I.hasMore.value||I.loadingOlder.value)return;hn=!0;let t=e.scrollHeight,r=e.scrollTop;await I.loadOlder(),await n(),e.scrollTop=r+(e.scrollHeight-t),hn=!1}function _n(){let e=Y.value;e&&e.scrollTop<_t&&gn(),fn()&&(X.value=0,pn())}D(()=>I.messages.value.length,async e=>{if(hn){Z=e;return}if(e<Z){Z=e,X.value=0;return}let t=e-Z,r=I.messages.value.at(-1)?.userId===F.value,i=Z===0||r||fn();if(Z>0&&t>0&&!r&&P(),Z=e,await n(),i)mn();else if(t>0){X.value+=t;let e=I.activeChannelId.value;e&&(I.unread.value={...I.unread.value,[e]:(I.unread.value[e]??0)+t})}}),D(()=>I.activeChannelId.value,()=>{Z=0,X.value=0});let Q=c(!1),$=x(new Set);function vn(e){$.has(e)?$.delete(e):$.add(e)}function yn(){Q.value=!1,$.clear()}D(()=>I.activeChannelId.value,yn);function bn(){let e=I.messages.value.filter(e=>$.has(e.id));e.length&&(S(`ai-context`,{title:B.value?Dt(B.value):``,messages:e}),yn())}return(n,o)=>(p(),r(`div`,fe,[h(`aside`,pe,[_(n.$slots,`sidebar-top`,{},void 0,!0),h(`div`,me,[h(`div`,he,[h(`span`,null,k(s(M)(`channels`)),1),h(`span`,ge,[u(s(a),{icon:`pi pi-search`,text:``,rounded:``,size:`small`,onClick:Rt}),u(s(a),{icon:`pi pi-plus`,text:``,rounded:``,size:`small`,onClick:o[0]||=e=>V.value=`create`})])]),h(`ul`,_e,[(p(!0),r(y,null,e(St.value,e=>(p(),r(`li`,{key:e.id},[h(`button`,{class:O([`chan`,{active:e.id===s(I).activeChannelId.value}]),onClick:t=>s(I).selectChannel(e.id)},[h(`span`,ye,k(e.isPrivate?`🔒`:`#`),1),h(`span`,be,k(e.name),1),s(I).unread.value[e.id]?(p(),r(`span`,xe,k(s(I).unread.value[e.id]),1)):d(``,!0)],10,ve)]))),128))])]),h(`div`,Se,[h(`div`,Ce,[h(`span`,null,k(s(M)(`directMessages`)),1),u(s(a),{icon:`pi pi-plus`,text:``,rounded:``,size:`small`,onClick:Bt})]),h(`ul`,we,[(p(!0),r(y,null,e(Ct.value,e=>(p(),r(`li`,{key:e.id},[h(`button`,{class:O([`chan`,{active:e.id===s(I).activeChannelId.value}]),onClick:t=>s(I).selectChannel(e.id)},[h(`span`,Ee,k(Et(e)),1),s(I).unread.value[e.id]?(p(),r(`span`,De,k(s(I).unread.value[e.id]),1)):d(``,!0)],10,Te)]))),128))])])]),h(`div`,Oe,[z.value?(p(),r(`a`,{key:0,class:O([`retention-banner`,{enforcing:z.value.enforcing}]),href:`#`,onClick:o[1]||=w(e=>S(`upgrade`),[`prevent`])},[h(`span`,ke,k(z.value.text),1),h(`span`,Ae,k(s(M)(`retention.cta`)),1)],2)):d(``,!0),B.value?(p(),r(y,{key:1},[h(`header`,je,[h(`h2`,null,[B.value.kind===`channel`?(p(),r(`span`,Me,k(B.value.isPrivate?`🔒`:`#`),1)):d(``,!0),i(k(Dt(B.value)),1)]),h(`span`,Ne,[u(s(a),{icon:s(J)?`pi pi-volume-up`:`pi pi-volume-off`,text:``,rounded:``,size:`small`,title:s(J)?s(M)(`soundOn`):s(M)(`soundOff`),onClick:Zt},null,8,[`icon`,`title`]),t.enableSelectToAi&&Q.value?(p(),r(y,{key:0},[h(`span`,Pe,k(s(M)(`selectedCount`,{count:$.size})),1),u(s(a),{label:s(M)(`sendToAi`),icon:`pi pi-sparkles`,size:`small`,disabled:!$.size,onClick:bn},null,8,[`label`,`disabled`]),u(s(a),{label:s(M)(`cancel`),size:`small`,text:``,onClick:yn},null,8,[`label`])],64)):(p(),r(y,{key:1},[t.enableSelectToAi?(p(),A(s(a),{key:0,label:s(M)(`select`),icon:`pi pi-check-square`,size:`small`,text:``,onClick:o[2]||=e=>Q.value=!0},null,8,[`label`])):d(``,!0),B.value.kind===`channel`?(p(),A(s(a),{key:1,label:s(M)(`invite`),size:`small`,outlined:``,onClick:zt},null,8,[`label`])):d(``,!0)],64))])]),h(`div`,{ref_key:`listEl`,ref:Y,class:`thread`,onScroll:_n},[s(I).loadingOlder.value?(p(),r(`div`,Fe,[...o[14]||=[h(`i`,{class:`pi pi-spin pi-spinner`},null,-1)]])):d(``,!0),!s(I).messages.value.length&&!s(I).loading.value?(p(),r(`p`,Ie,k(s(M)(`empty`)),1)):d(``,!0),(p(!0),r(y,null,e(s(I).messages.value,n=>(p(),r(`div`,{key:n.id,class:O([`msg`,{selectable:t.enableSelectToAi&&Q.value,selected:$.has(n.id)}]),onClick:e=>t.enableSelectToAi&&Q.value&&vn(n.id)},[t.enableSelectToAi&&Q.value?(p(),r(`span`,{key:0,class:O([`msg-check`,{on:$.has(n.id)}])},[$.has(n.id)?(p(),r(`i`,Re)):d(``,!0)],2)):d(``,!0),h(`div`,{class:`msg-avatar`,style:m(ln(n.userId))},[un.has(n.userId)?(p(),r(y,{key:1},[i(k(n.userName.charAt(0).toUpperCase()),1)],64)):(p(),r(`img`,{key:0,src:dn(n.userId),alt:``,onError:e=>un.add(n.userId)},null,40,ze))],4),h(`div`,Be,[h(`div`,Ve,[h(`span`,He,k(n.userName),1),h(`span`,Ue,k(cn(n.createdAt)),1)]),h(`div`,{class:`msg-content`,innerHTML:nn(n.content),onClick:o[3]||=e=>sn(e)},null,8,We),on(n.content).length?(p(),r(`div`,Ge,[(p(!0),r(y,null,e(on(n.content),e=>(p(),r(`span`,{key:e.key,class:`card-col`},[o[15]||=h(`i`,{class:`pi pi-list`},null,-1),i(k(s(M)(`cardColumn`,{column:e.column})),1)]))),128))])):d(``,!0)])],10,Le))),128))],544),X.value>0?(p(),r(`button`,{key:0,class:`new-msgs`,onClick:o[4]||=e=>mn(!0)},[o[16]||=h(`i`,{class:`pi pi-arrow-down`},null,-1),i(` `+k(X.value)+` `+k(s(M)(`newMessages`)),1)])):d(``,!0),h(`form`,{class:`composer`,onSubmit:w(Yt,[`prevent`])},[u(s(re),{ref_key:`composerInput`,ref:qt,modelValue:q.value,"onUpdate:modelValue":o[5]||=e=>q.value=e,placeholder:s(M)(`placeholder`),disabled:s(I).sending.value,rows:`1`,"auto-resize":``,onKeydown:E(Xt,[`enter`])},null,8,[`modelValue`,`placeholder`,`disabled`]),u(s(a),{type:`submit`,label:s(M)(`send`),disabled:s(I).sending.value||!q.value.trim()},null,8,[`label`,`disabled`])],32),s(I).error.value?(p(),r(`p`,Ke,k(s(I).error.value),1)):d(``,!0)],64)):(p(),r(`div`,qe,k(s(M)(`pickChannel`)),1))]),u(s(l),{visible:kt.value,"onUpdate:visible":o[8]||=e=>kt.value=e,header:s(M)(`createChannel`),modal:``,style:{width:`26rem`}},{default:C(()=>[h(`form`,{class:`dlg-form`,onSubmit:w(Ut,[`prevent`])},[h(`div`,Je,[o[17]||=h(`span`,null,`#`,-1),u(s(g),{modelValue:H.value,"onUpdate:modelValue":o[6]||=e=>H.value=e,placeholder:s(M)(`channelName`)},null,8,[`modelValue`,`placeholder`])]),h(`label`,Ye,[b(h(`input`,{"onUpdate:modelValue":o[7]||=e=>Nt.value=e,type:`checkbox`},null,512),[[oe,Nt.value]]),h(`span`,null,[h(`strong`,null,k(s(M)(`private`)),1),i(` · `+k(s(M)(`privateHint`)),1)])]),u(s(a),{type:`submit`,label:s(M)(`create`),disabled:!H.value.trim()},null,8,[`label`,`disabled`])],32)]),_:1},8,[`visible`,`header`]),u(s(l),{visible:At.value,"onUpdate:visible":o[9]||=e=>At.value=e,header:s(M)(`browse`),modal:``,style:{width:`26rem`}},{default:C(()=>[U.value.length?(p(),r(`ul`,Ze,[(p(!0),r(y,null,e(U.value,e=>(p(),r(`li`,{key:e.id},[h(`button`,{class:`pick-item`,onClick:t=>Wt(e.id)},[h(`span`,$e,`# `+k(e.name),1),h(`span`,et,k(s(M)(`join`)),1)],8,Qe)]))),128))])):(p(),r(`p`,Xe,k(s(M)(`noBrowse`)),1))]),_:1},8,[`visible`,`header`]),u(s(l),{visible:jt.value,"onUpdate:visible":o[11]||=e=>jt.value=e,header:s(M)(`newDm`),modal:``,style:{width:`26rem`}},{default:C(()=>[wt.value.length?(p(),r(y,{key:1},[h(`p`,nt,k(s(M)(`dmHint`)),1),u(s(ae),{class:`search-field`},{default:C(()=>[u(s(T),{class:`pi pi-search`}),u(s(g),{modelValue:K.value,"onUpdate:modelValue":o[10]||=e=>K.value=e,placeholder:s(M)(`searchPeople`)},null,8,[`modelValue`,`placeholder`])]),_:1}),It.value.length?(p(),r(`ul`,it,[(p(!0),r(y,null,e(It.value,e=>(p(),r(`li`,{key:e.userId},[h(`button`,{class:O([`pick-item`,{selected:G.value.includes(e.userId)}]),onClick:t=>Ht(e.userId)},[h(`span`,ot,k(e.name.charAt(0).toUpperCase()),1),h(`span`,st,k(e.name),1),G.value.includes(e.userId)?(p(),r(`i`,ct)):d(``,!0)],10,at)]))),128))])):(p(),r(`p`,rt,k(s(M)(`noMatch`)),1)),u(s(a),{class:`dlg-cta`,label:G.value.length>1?s(M)(`startGroup`,{count:G.value.length}):s(M)(`startDm`),disabled:!G.value.length,onClick:Gt},null,8,[`label`,`disabled`])],64)):(p(),r(`p`,tt,k(s(M)(`noMembers`)),1))]),_:1},8,[`visible`,`header`]),u(s(l),{visible:Mt.value,"onUpdate:visible":o[13]||=e=>Mt.value=e,header:s(M)(`invite`),modal:``,style:{width:`26rem`}},{default:C(()=>[Ot.value.length?(p(),r(y,{key:1},[u(s(ae),{class:`search-field`},{default:C(()=>[u(s(T),{class:`pi pi-search`}),u(s(g),{modelValue:K.value,"onUpdate:modelValue":o[12]||=e=>K.value=e,placeholder:s(M)(`searchPeople`)},null,8,[`modelValue`,`placeholder`])]),_:1}),Ft.value.length?(p(),r(`ul`,dt,[(p(!0),r(y,null,e(Ft.value,e=>(p(),r(`li`,{key:e.userId},[h(`button`,{class:O([`pick-item`,{selected:W.value.includes(e.userId)}]),onClick:t=>Vt(e.userId)},[h(`span`,pt,k(e.name.charAt(0).toUpperCase()),1),h(`span`,mt,k(e.name),1),W.value.includes(e.userId)?(p(),r(`i`,ht)):d(``,!0)],10,ft)]))),128))])):(p(),r(`p`,ut,k(s(M)(`noMatch`)),1)),u(s(a),{class:`dlg-cta`,label:W.value.length?s(M)(`addSelected`,{count:W.value.length}):s(M)(`addPeople`),disabled:!W.value.length,onClick:Kt},null,8,[`label`,`disabled`])],64)):(p(),r(`p`,lt,k(s(M)(`noInvitable`)),1))]),_:1},8,[`visible`,`header`])]))}}),[[`__scopeId`,`data-v-5ab753a9`]]),I={key:0,class:`stc-empty`},L={key:1,class:`stc-form`},R={key:0,class:`stc-field`},vt={class:`stc-field`},yt={class:`stc-preview-label`},z={key:0,class:`stc-trunc`},bt={class:`stc-preview`},xt=S(t({__name:`SendToChatDialog`,props:{client:{},t:{},currentUserId:{default:void 0},organizations:{default:()=>[]},orgId:{default:``},lockOrganization:{type:Boolean,default:!1},maxLength:{default:4e3}},emits:[`sent`],setup(e,{expose:t,emit:n}){let o=e,ee=n,f=o.t,ne=j(()=>o.client),m=c(!1),g=c(``),_=c(o.orgId),y=c(``),b=c(!1),x=c(null),S=c(!1),w=c([]),T=c([]),re=j(()=>g.value.length>o.maxLength),E=j(()=>re.value?`${g.value.slice(0,o.maxLength-20)}\n… (${f(`truncated`)})`:g.value);function ie(e){return T.value.find(t=>t.userId===e)?.name??`?`}function ae(e){let t=e.memberIds.filter(e=>e!==o.currentUserId);return t.length?t.map(ie).join(`, `):`?`}let oe=j(()=>{let e=w.value.filter(e=>e.kind===`channel`).map(e=>({id:e.id,label:`${e.isPrivate?`🔒`:`#`} ${e.name}`})),t=w.value.filter(e=>e.kind===`dm`).map(e=>({id:e.id,label:ae(e)})),n=[];return e.length&&n.push({label:f(`channels`),items:e}),t.length&&n.push({label:f(`directMessages`),items:t}),n});async function O(e){if(w.value=[],T.value=[],y.value=``,e){S.value=!0;try{let[t,n]=await Promise.all([ne.value.$fetch(`/chat/channel/list`,{method:`GET`,query:{organizationId:e}}),ne.value.organization.getFullOrganization({query:{organizationId:e}})]);w.value=t?.data?.channels??[],!n.error&&n.data&&(T.value=(n.data.members??[]).map(e=>({userId:e.userId,name:e.user?.name||e.user?.email||`?`})))}finally{S.value=!1}}}D(_,e=>{O(e)}),D(()=>o.orgId,e=>{e&&o.lockOrganization&&(_.value=e)});async function M(){if(!(!y.value||!E.value.trim())){b.value=!0,x.value=null;try{if((await ne.value.$fetch(`/chat/message/send`,{method:`POST`,body:{channelId:y.value,content:E.value}}))?.error)throw Error(f(`failed`));ee(`sent`,y.value),m.value=!1}catch(e){x.value=e.message||f(`failed`)}finally{b.value=!1}}}function se(e){if(g.value=e,x.value=null,y.value=``,m.value=!0,!o.currentUserId)return;if(o.lockOrganization||_.value){let e=o.lockOrganization?o.orgId:_.value;_.value=e,O(e);return}let t=o.organizations[0];t&&(_.value=t.id)}return t({open:se}),(t,n)=>(p(),A(s(l),{visible:m.value,"onUpdate:visible":n[3]||=e=>m.value=e,header:s(f)(`title`),modal:``,style:{width:`30rem`}},{footer:C(()=>[u(s(a),{label:s(f)(`cancel`),text:``,severity:`secondary`,disabled:b.value,onClick:n[2]||=e=>m.value=!1},null,8,[`label`,`disabled`]),e.currentUserId?(p(),A(s(a),{key:0,label:s(f)(`send`),icon:`pi pi-send`,loading:b.value,disabled:!y.value,onClick:M},null,8,[`label`,`loading`,`disabled`])):d(``,!0)]),default:C(()=>[e.currentUserId?(p(),r(`div`,L,[e.lockOrganization?d(``,!0):(p(),r(`div`,R,[h(`label`,null,k(s(f)(`org`)),1),u(s(v),{modelValue:_.value,"onUpdate:modelValue":n[0]||=e=>_.value=e,options:e.organizations,"option-label":`name`,"option-value":`id`,placeholder:s(f)(`orgPlaceholder`),class:`stc-select`},null,8,[`modelValue`,`options`,`placeholder`])])),h(`div`,vt,[h(`label`,null,k(s(f)(`target`)),1),u(s(v),{modelValue:y.value,"onUpdate:modelValue":n[1]||=e=>y.value=e,options:oe.value,"option-label":`label`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,placeholder:s(f)(`targetPlaceholder`),disabled:!_.value||S.value,loading:S.value,class:`stc-select`,filter:``},null,8,[`modelValue`,`options`,`placeholder`,`disabled`,`loading`])]),h(`p`,yt,[i(k(s(f)(`preview`))+` `,1),re.value?(p(),r(`span`,z,`· `+k(s(f)(`truncated`)),1)):d(``,!0)]),h(`pre`,bt,k(E.value),1),x.value?(p(),A(s(te),{key:1,severity:`error`,closable:!1},{default:C(()=>[i(k(x.value),1)]),_:1})):d(``,!0)])):(p(),r(`div`,I,k(s(f)(`notConnected`)),1))]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-41752608`]]);export{P as i,F as n,ue as r,xt as t};
|
|
1
|
+
import{$i as e,Ai as t,Bi as n,Ci as r,Di as i,Fn as a,G as o,Ha as s,Na as c,Nn as l,Oi as u,Ra as ee,Si as d,W as f,Zi as p,_n as te,b as ne,ba as m,bi as h,cn as g,ea as _,en as v,gi as y,ha as b,ja as x,jn as S,ma as C,mi as w,nn as T,on as re,pi as E,qi as ie,rn as ae,si as oe,ua as D,va as O,xa as k,xi as A,yi as j}from"./index-Cpr6expG.js";var M=`runeya.chat.sound`;const se=c(ce()??!0);function ce(){if(typeof localStorage>`u`)return null;let e=localStorage.getItem(M);return e===null?null:e===`1`}function le(e){se.value=e;try{localStorage.setItem(M,e?`1`:`0`)}catch{}}async function ue(e){try{let t=(await e.$fetch(`/user/prefs`,{method:`GET`}))?.data?.prefs?.chatSound;typeof t==`boolean`&&le(t)}catch{}}function de(e,t){e.$fetch(`/user/prefs`,{method:`POST`,body:{prefs:{chatSound:t}}})}var N=null;function P(){if(!(!se.value||typeof window>`u`))try{let e=window.AudioContext??window.webkitAudioContext;if(!e)return;N??=new e,N.state===`suspended`&&N.resume();let t=N.currentTime,n=N.createOscillator(),r=N.createGain();n.type=`sine`,n.frequency.setValueAtTime(660,t),n.frequency.exponentialRampToValueAtTime(880,t+.08),r.gain.setValueAtTime(1e-4,t),r.gain.exponentialRampToValueAtTime(.16,t+.012),r.gain.exponentialRampToValueAtTime(1e-4,t+.25),n.connect(r).connect(N.destination),n.start(t),n.stop(t+.26)}catch{}}var fe={class:`chat`},pe={class:`sidebar`},me={class:`group`},he={class:`group-head`},ge={class:`acts`},_e={class:`list`},ve=[`onClick`],ye={class:`hash`},be={class:`name`},xe={key:0,class:`badge`},Se={class:`group`},Ce={class:`group-head`},we={class:`list`},Te=[`onClick`],Ee={class:`name`},De={key:0,class:`badge`},Oe={class:`main`},ke={class:`retention-banner__text`},Ae={class:`retention-banner__cta`},je={class:`pane-head`},Me={key:0},Ne={class:`head-actions`},Pe={class:`sel-count`},Fe={key:0,class:`loading-older`},Ie={key:1,class:`empty`},Le=[`onClick`],Re={key:0,class:`pi pi-check`},ze=[`src`,`onError`],Be={class:`msg-body`},Ve={class:`msg-head`},He={class:`msg-author`},Ue={class:`msg-time`},We=[`innerHTML`],Ge={key:0,class:`msg-cards`},Ke={key:1,class:`error`},qe={key:2,class:`placeholder`},Je={class:`hash-input`},Ye={class:`toggle-row`},Xe={key:0,class:`dlg-empty`},Ze={key:1,class:`pick-list`},Qe=[`onClick`],$e={class:`pick-name`},et={class:`join`},tt={key:0,class:`dlg-empty`},nt={class:`dlg-hint`},rt={key:0,class:`dlg-empty`},it={key:1,class:`pick-list`},at=[`onClick`],ot={class:`pick-avatar`},st={class:`pick-name`},ct={key:0,class:`pi pi-check picked`},lt={key:0,class:`dlg-empty`},ut={key:0,class:`dlg-empty`},dt={key:1,class:`pick-list`},ft=[`onClick`],pt={class:`pick-avatar`},mt={class:`pick-name`},ht={key:0,class:`pi pi-check picked`},gt=80,_t=120,F=S(t({__name:`ChatPanel`,props:{client:{},orgId:{},cloudApiBaseUrl:{},streamUrl:{type:Function,default:void 0},currentUserId:{default:void 0},members:{},t:{},enableSelectToAi:{type:Boolean,default:!1},notifyOnUnread:{type:Boolean,default:!0},internalOrigins:{default:()=>[]},cardColumn:{type:Function,default:void 0}},emits:[`channel-read`,`ai-context`,`internal-link`,`upgrade`,`card-refs`],setup(t,{emit:te}){let v=t,S=te,M=v.t,ce=ee(v,`orgId`),N=j(()=>v.client),F=j(()=>v.currentUserId),I=ne(N.value,ce,{...v.streamUrl?{streamUrl:v.streamUrl}:{baseURL:v.cloudApiBaseUrl},currentUserId:F}),L=j(()=>v.members),R=c(null);function vt(e){return new Date(e).toLocaleDateString(void 0,{year:`numeric`,month:`long`,day:`numeric`})}async function yt(e){if(R.value=null,e)try{R.value=(await N.value.$fetch(`/chat/retention/status`,{method:`GET`,query:{organizationId:e}})).data??null}catch{}}D(ce,e=>void yt(e),{immediate:!0});let z=j(()=>{let e=R.value;return e?e.capped&&e.enforcing?{text:M(`retention.enforcing`,{days:e.retentionDays}),enforcing:!0}:e.capped&&e.cutoffAt?{text:M(`retention.grace`,{date:vt(e.cutoffAt),days:e.retentionDays}),enforcing:!1}:e.pending?{text:M(`retention.pending`,{date:vt(e.pending.effectiveAt),days:e.pending.retentionDays}),enforcing:!1}:null:null}),bt=e=>`runeya.chat.lastChannel.${e}`;D(()=>I.activeChannelId.value,e=>{if(e&&v.orgId)try{localStorage.setItem(bt(v.orgId),e)}catch{}});let xt=``;D([()=>v.orgId,I.channels],()=>{let e=v.orgId;if(!e||xt===e||!I.channels.value.length||(xt=e,I.activeChannelId.value))return;let t=null;try{t=localStorage.getItem(bt(e))}catch{}t&&I.channels.value.some(e=>e.id===t)&&I.selectChannel(t)},{immediate:!0});let St=j(()=>I.channels.value.filter(e=>e.kind===`channel`)),Ct=j(()=>I.channels.value.filter(e=>e.kind===`dm`)),B=j(()=>I.channels.value.find(e=>e.id===I.activeChannelId.value)??null),wt=j(()=>L.value.filter(e=>e.userId!==F.value));function Tt(e){return L.value.find(t=>t.userId===e)?.name??M(`someone`)}function Et(e){let t=e.memberIds.filter(e=>e!==F.value);return t.length?t.map(Tt).join(`, `):M(`someone`)}function Dt(e){return e.kind===`dm`?Et(e):e.name}let Ot=j(()=>{let e=B.value;return e?L.value.filter(t=>!e.memberIds.includes(t.userId)):[]}),V=c(null),kt=j({get:()=>V.value===`create`,set:e=>{V.value=e?`create`:null}}),At=j({get:()=>V.value===`browse`,set:e=>{V.value=e?`browse`:null}}),jt=j({get:()=>V.value===`newdm`,set:e=>{V.value=e?`newdm`:null}}),Mt=j({get:()=>V.value===`invite`,set:e=>{V.value=e?`invite`:null}}),H=c(``),Nt=c(!1),U=c([]),W=c([]),G=c([]),K=c(``);function Pt(e){let t=K.value.trim().toLowerCase();return!t||e.name.toLowerCase().includes(t)||e.email.toLowerCase().includes(t)}let Ft=j(()=>Ot.value.filter(Pt)),It=j(()=>wt.value.filter(Pt));function Lt(){V.value=null}async function Rt(){U.value=await I.browseChannels(),V.value=`browse`}function zt(){W.value=[],K.value=``,V.value=`invite`}function Bt(){G.value=[],K.value=``,V.value=`newdm`}function Vt(e){W.value=W.value.includes(e)?W.value.filter(t=>t!==e):[...W.value,e]}function Ht(e){G.value=G.value.includes(e)?G.value.filter(t=>t!==e):[...G.value,e]}async function Ut(){await I.createChannel(H.value,Nt.value)&&(H.value=``,Nt.value=!1,Lt())}async function Wt(e){await I.joinChannel(e)&&(U.value=U.value.filter(t=>t.id!==e),Lt())}async function Gt(){if(!G.value.length)return;let e=G.value;Lt(),await I.openDm(e)}async function Kt(){let e=B.value;if(!(!e||!W.value.length)){for(let t of W.value)await I.inviteToChannel(e.id,t);W.value=[],Lt(),await I.reloadChannels()}}let q=c(``),qt=c(null);async function Jt(){await n();let e=qt.value?.$el;e instanceof HTMLTextAreaElement?e.focus():e?.querySelector(`textarea`)?.focus()}async function Yt(){await I.send(q.value)&&(q.value=``),await Jt()}function Xt(e){e.shiftKey||e.isComposing||(e.preventDefault(),Yt())}D(()=>I.activeChannelId.value,e=>{e&&Jt()});let J=se;ie(()=>{ue(N.value)});function Zt(){le(!J.value),de(N.value,J.value),J.value&&P()}let Qt=0,$t=!1;D(()=>Object.values(I.unread.value).reduce((e,t)=>e+t,0),e=>{v.notifyOnUnread&&$t&&e>Qt&&P(),Qt=e,$t=!0},{immediate:!0});let en=typeof window<`u`?window.location.origin:``,tn={ALLOWED_TAGS:[`p`,`br`,`strong`,`b`,`em`,`i`,`u`,`s`,`del`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`a`,`h1`,`h2`,`h3`,`h4`,`hr`],ALLOWED_ATTR:[`href`,`title`]};function nn(e){let t=o.parse(e??``,{async:!1,gfm:!0,breaks:!0});return f.sanitize(t,tn)}let rn=/\/app\/[^/\s)]+\/kanban\/([^/\s)]+)\/card\/([^/\s)?#]+)/g;function an(e){let t=[],n=new Set;for(let r of(e??``).matchAll(rn)){let e=decodeURIComponent(r[1]??``),i=decodeURIComponent(r[2]??``),a=`${e}:${i}`;!e||!i||n.has(a)||(n.add(a),t.push({boardId:e,cardId:i}))}return t}function on(e){return v.cardColumn?an(e).map(e=>({key:`${e.boardId}:${e.cardId}`,column:v.cardColumn?.(e.boardId,e.cardId)??``})).filter(e=>e.column):[]}D(()=>I.messages.value.map(e=>e.content).join(`\0`),()=>{let e=[],t=new Set;for(let n of I.messages.value)for(let r of an(n.content)){let n=`${r.boardId}:${r.cardId}`;t.has(n)||(t.add(n),e.push(r))}S(`card-refs`,e)},{immediate:!0});function sn(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);if(!t)return;e.preventDefault(),e.stopPropagation();let n=[en,...v.internalOrigins].filter(Boolean).find(e=>t===e||t.startsWith(`${e}/`));n?S(`internal-link`,t.slice(n.length)||`/`,n):/^https?:\/\//i.test(t)&&window.open(t,`_blank`,`noopener,noreferrer`)}function cn(e){return new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}function ln(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return{background:`linear-gradient(135deg, hsl(${t} 62% 52%), hsl(${(t+40)%360} 62% 46%))`}}let un=x(new Set);function dn(e){return`${v.cloudApiBaseUrl}/api/avatar/${e}`}let Y=c(null),X=c(0),Z=0;function fn(){let e=Y.value;return e?e.scrollHeight-e.scrollTop-e.clientHeight<=gt:!0}function pn(){let e=I.activeChannelId.value;e&&(I.markRead(e),I.unread.value[e]&&(I.unread.value={...I.unread.value,[e]:0}),S(`channel-read`,e))}function mn(e=!1){let t=Y.value;t&&(t.scrollTo({top:t.scrollHeight,behavior:e?`smooth`:`auto`}),X.value=0,pn())}let hn=!1;async function gn(){let e=Y.value;if(!e||!I.hasMore.value||I.loadingOlder.value)return;hn=!0;let t=e.scrollHeight,r=e.scrollTop;await I.loadOlder(),await n(),e.scrollTop=r+(e.scrollHeight-t),hn=!1}function _n(){let e=Y.value;e&&e.scrollTop<_t&&gn(),fn()&&(X.value=0,pn())}D(()=>I.messages.value.length,async e=>{if(hn){Z=e;return}if(e<Z){Z=e,X.value=0;return}let t=e-Z,r=I.messages.value.at(-1)?.userId===F.value,i=Z===0||r||fn();if(Z>0&&t>0&&!r&&P(),Z=e,await n(),i)mn();else if(t>0){X.value+=t;let e=I.activeChannelId.value;e&&(I.unread.value={...I.unread.value,[e]:(I.unread.value[e]??0)+t})}}),D(()=>I.activeChannelId.value,()=>{Z=0,X.value=0});let Q=c(!1),$=x(new Set);function vn(e){$.has(e)?$.delete(e):$.add(e)}function yn(){Q.value=!1,$.clear()}D(()=>I.activeChannelId.value,yn);function bn(){let e=I.messages.value.filter(e=>$.has(e.id));e.length&&(S(`ai-context`,{title:B.value?Dt(B.value):``,messages:e}),yn())}return(n,o)=>(p(),r(`div`,fe,[h(`aside`,pe,[_(n.$slots,`sidebar-top`,{},void 0,!0),h(`div`,me,[h(`div`,he,[h(`span`,null,k(s(M)(`channels`)),1),h(`span`,ge,[u(s(a),{icon:`pi pi-search`,text:``,rounded:``,size:`small`,onClick:Rt}),u(s(a),{icon:`pi pi-plus`,text:``,rounded:``,size:`small`,onClick:o[0]||=e=>V.value=`create`})])]),h(`ul`,_e,[(p(!0),r(y,null,e(St.value,e=>(p(),r(`li`,{key:e.id},[h(`button`,{class:O([`chan`,{active:e.id===s(I).activeChannelId.value}]),onClick:t=>s(I).selectChannel(e.id)},[h(`span`,ye,k(e.isPrivate?`🔒`:`#`),1),h(`span`,be,k(e.name),1),s(I).unread.value[e.id]?(p(),r(`span`,xe,k(s(I).unread.value[e.id]),1)):d(``,!0)],10,ve)]))),128))])]),h(`div`,Se,[h(`div`,Ce,[h(`span`,null,k(s(M)(`directMessages`)),1),u(s(a),{icon:`pi pi-plus`,text:``,rounded:``,size:`small`,onClick:Bt})]),h(`ul`,we,[(p(!0),r(y,null,e(Ct.value,e=>(p(),r(`li`,{key:e.id},[h(`button`,{class:O([`chan`,{active:e.id===s(I).activeChannelId.value}]),onClick:t=>s(I).selectChannel(e.id)},[h(`span`,Ee,k(Et(e)),1),s(I).unread.value[e.id]?(p(),r(`span`,De,k(s(I).unread.value[e.id]),1)):d(``,!0)],10,Te)]))),128))])])]),h(`div`,Oe,[z.value?(p(),r(`a`,{key:0,class:O([`retention-banner`,{enforcing:z.value.enforcing}]),href:`#`,onClick:o[1]||=w(e=>S(`upgrade`),[`prevent`])},[h(`span`,ke,k(z.value.text),1),h(`span`,Ae,k(s(M)(`retention.cta`)),1)],2)):d(``,!0),B.value?(p(),r(y,{key:1},[h(`header`,je,[h(`h2`,null,[B.value.kind===`channel`?(p(),r(`span`,Me,k(B.value.isPrivate?`🔒`:`#`),1)):d(``,!0),i(k(Dt(B.value)),1)]),h(`span`,Ne,[u(s(a),{icon:s(J)?`pi pi-volume-up`:`pi pi-volume-off`,text:``,rounded:``,size:`small`,title:s(J)?s(M)(`soundOn`):s(M)(`soundOff`),onClick:Zt},null,8,[`icon`,`title`]),t.enableSelectToAi&&Q.value?(p(),r(y,{key:0},[h(`span`,Pe,k(s(M)(`selectedCount`,{count:$.size})),1),u(s(a),{label:s(M)(`sendToAi`),icon:`pi pi-sparkles`,size:`small`,disabled:!$.size,onClick:bn},null,8,[`label`,`disabled`]),u(s(a),{label:s(M)(`cancel`),size:`small`,text:``,onClick:yn},null,8,[`label`])],64)):(p(),r(y,{key:1},[t.enableSelectToAi?(p(),A(s(a),{key:0,label:s(M)(`select`),icon:`pi pi-check-square`,size:`small`,text:``,onClick:o[2]||=e=>Q.value=!0},null,8,[`label`])):d(``,!0),B.value.kind===`channel`?(p(),A(s(a),{key:1,label:s(M)(`invite`),size:`small`,outlined:``,onClick:zt},null,8,[`label`])):d(``,!0)],64))])]),h(`div`,{ref_key:`listEl`,ref:Y,class:`thread`,onScroll:_n},[s(I).loadingOlder.value?(p(),r(`div`,Fe,[...o[14]||=[h(`i`,{class:`pi pi-spin pi-spinner`},null,-1)]])):d(``,!0),!s(I).messages.value.length&&!s(I).loading.value?(p(),r(`p`,Ie,k(s(M)(`empty`)),1)):d(``,!0),(p(!0),r(y,null,e(s(I).messages.value,n=>(p(),r(`div`,{key:n.id,class:O([`msg`,{selectable:t.enableSelectToAi&&Q.value,selected:$.has(n.id)}]),onClick:e=>t.enableSelectToAi&&Q.value&&vn(n.id)},[t.enableSelectToAi&&Q.value?(p(),r(`span`,{key:0,class:O([`msg-check`,{on:$.has(n.id)}])},[$.has(n.id)?(p(),r(`i`,Re)):d(``,!0)],2)):d(``,!0),h(`div`,{class:`msg-avatar`,style:m(ln(n.userId))},[un.has(n.userId)?(p(),r(y,{key:1},[i(k(n.userName.charAt(0).toUpperCase()),1)],64)):(p(),r(`img`,{key:0,src:dn(n.userId),alt:``,onError:e=>un.add(n.userId)},null,40,ze))],4),h(`div`,Be,[h(`div`,Ve,[h(`span`,He,k(n.userName),1),h(`span`,Ue,k(cn(n.createdAt)),1)]),h(`div`,{class:`msg-content`,innerHTML:nn(n.content),onClick:o[3]||=e=>sn(e)},null,8,We),on(n.content).length?(p(),r(`div`,Ge,[(p(!0),r(y,null,e(on(n.content),e=>(p(),r(`span`,{key:e.key,class:`card-col`},[o[15]||=h(`i`,{class:`pi pi-list`},null,-1),i(k(s(M)(`cardColumn`,{column:e.column})),1)]))),128))])):d(``,!0)])],10,Le))),128))],544),X.value>0?(p(),r(`button`,{key:0,class:`new-msgs`,onClick:o[4]||=e=>mn(!0)},[o[16]||=h(`i`,{class:`pi pi-arrow-down`},null,-1),i(` `+k(X.value)+` `+k(s(M)(`newMessages`)),1)])):d(``,!0),h(`form`,{class:`composer`,onSubmit:w(Yt,[`prevent`])},[u(s(re),{ref_key:`composerInput`,ref:qt,modelValue:q.value,"onUpdate:modelValue":o[5]||=e=>q.value=e,placeholder:s(M)(`placeholder`),disabled:s(I).sending.value,rows:`1`,"auto-resize":``,onKeydown:E(Xt,[`enter`])},null,8,[`modelValue`,`placeholder`,`disabled`]),u(s(a),{type:`submit`,label:s(M)(`send`),disabled:s(I).sending.value||!q.value.trim()},null,8,[`label`,`disabled`])],32),s(I).error.value?(p(),r(`p`,Ke,k(s(I).error.value),1)):d(``,!0)],64)):(p(),r(`div`,qe,k(s(M)(`pickChannel`)),1))]),u(s(l),{visible:kt.value,"onUpdate:visible":o[8]||=e=>kt.value=e,header:s(M)(`createChannel`),modal:``,style:{width:`26rem`}},{default:C(()=>[h(`form`,{class:`dlg-form`,onSubmit:w(Ut,[`prevent`])},[h(`div`,Je,[o[17]||=h(`span`,null,`#`,-1),u(s(g),{modelValue:H.value,"onUpdate:modelValue":o[6]||=e=>H.value=e,placeholder:s(M)(`channelName`)},null,8,[`modelValue`,`placeholder`])]),h(`label`,Ye,[b(h(`input`,{"onUpdate:modelValue":o[7]||=e=>Nt.value=e,type:`checkbox`},null,512),[[oe,Nt.value]]),h(`span`,null,[h(`strong`,null,k(s(M)(`private`)),1),i(` · `+k(s(M)(`privateHint`)),1)])]),u(s(a),{type:`submit`,label:s(M)(`create`),disabled:!H.value.trim()},null,8,[`label`,`disabled`])],32)]),_:1},8,[`visible`,`header`]),u(s(l),{visible:At.value,"onUpdate:visible":o[9]||=e=>At.value=e,header:s(M)(`browse`),modal:``,style:{width:`26rem`}},{default:C(()=>[U.value.length?(p(),r(`ul`,Ze,[(p(!0),r(y,null,e(U.value,e=>(p(),r(`li`,{key:e.id},[h(`button`,{class:`pick-item`,onClick:t=>Wt(e.id)},[h(`span`,$e,`# `+k(e.name),1),h(`span`,et,k(s(M)(`join`)),1)],8,Qe)]))),128))])):(p(),r(`p`,Xe,k(s(M)(`noBrowse`)),1))]),_:1},8,[`visible`,`header`]),u(s(l),{visible:jt.value,"onUpdate:visible":o[11]||=e=>jt.value=e,header:s(M)(`newDm`),modal:``,style:{width:`26rem`}},{default:C(()=>[wt.value.length?(p(),r(y,{key:1},[h(`p`,nt,k(s(M)(`dmHint`)),1),u(s(ae),{class:`search-field`},{default:C(()=>[u(s(T),{class:`pi pi-search`}),u(s(g),{modelValue:K.value,"onUpdate:modelValue":o[10]||=e=>K.value=e,placeholder:s(M)(`searchPeople`)},null,8,[`modelValue`,`placeholder`])]),_:1}),It.value.length?(p(),r(`ul`,it,[(p(!0),r(y,null,e(It.value,e=>(p(),r(`li`,{key:e.userId},[h(`button`,{class:O([`pick-item`,{selected:G.value.includes(e.userId)}]),onClick:t=>Ht(e.userId)},[h(`span`,ot,k(e.name.charAt(0).toUpperCase()),1),h(`span`,st,k(e.name),1),G.value.includes(e.userId)?(p(),r(`i`,ct)):d(``,!0)],10,at)]))),128))])):(p(),r(`p`,rt,k(s(M)(`noMatch`)),1)),u(s(a),{class:`dlg-cta`,label:G.value.length>1?s(M)(`startGroup`,{count:G.value.length}):s(M)(`startDm`),disabled:!G.value.length,onClick:Gt},null,8,[`label`,`disabled`])],64)):(p(),r(`p`,tt,k(s(M)(`noMembers`)),1))]),_:1},8,[`visible`,`header`]),u(s(l),{visible:Mt.value,"onUpdate:visible":o[13]||=e=>Mt.value=e,header:s(M)(`invite`),modal:``,style:{width:`26rem`}},{default:C(()=>[Ot.value.length?(p(),r(y,{key:1},[u(s(ae),{class:`search-field`},{default:C(()=>[u(s(T),{class:`pi pi-search`}),u(s(g),{modelValue:K.value,"onUpdate:modelValue":o[12]||=e=>K.value=e,placeholder:s(M)(`searchPeople`)},null,8,[`modelValue`,`placeholder`])]),_:1}),Ft.value.length?(p(),r(`ul`,dt,[(p(!0),r(y,null,e(Ft.value,e=>(p(),r(`li`,{key:e.userId},[h(`button`,{class:O([`pick-item`,{selected:W.value.includes(e.userId)}]),onClick:t=>Vt(e.userId)},[h(`span`,pt,k(e.name.charAt(0).toUpperCase()),1),h(`span`,mt,k(e.name),1),W.value.includes(e.userId)?(p(),r(`i`,ht)):d(``,!0)],10,ft)]))),128))])):(p(),r(`p`,ut,k(s(M)(`noMatch`)),1)),u(s(a),{class:`dlg-cta`,label:W.value.length?s(M)(`addSelected`,{count:W.value.length}):s(M)(`addPeople`),disabled:!W.value.length,onClick:Kt},null,8,[`label`,`disabled`])],64)):(p(),r(`p`,lt,k(s(M)(`noInvitable`)),1))]),_:1},8,[`visible`,`header`])]))}}),[[`__scopeId`,`data-v-5ab753a9`]]),I={key:0,class:`stc-empty`},L={key:1,class:`stc-form`},R={key:0,class:`stc-field`},vt={class:`stc-field`},yt={class:`stc-preview-label`},z={key:0,class:`stc-trunc`},bt={class:`stc-preview`},xt=S(t({__name:`SendToChatDialog`,props:{client:{},t:{},currentUserId:{default:void 0},organizations:{default:()=>[]},orgId:{default:``},lockOrganization:{type:Boolean,default:!1},maxLength:{default:4e3}},emits:[`sent`],setup(e,{expose:t,emit:n}){let o=e,ee=n,f=o.t,ne=j(()=>o.client),m=c(!1),g=c(``),_=c(o.orgId),y=c(``),b=c(!1),x=c(null),S=c(!1),w=c([]),T=c([]),re=j(()=>g.value.length>o.maxLength),E=j(()=>re.value?`${g.value.slice(0,o.maxLength-20)}\n… (${f(`truncated`)})`:g.value);function ie(e){return T.value.find(t=>t.userId===e)?.name??`?`}function ae(e){let t=e.memberIds.filter(e=>e!==o.currentUserId);return t.length?t.map(ie).join(`, `):`?`}let oe=j(()=>{let e=w.value.filter(e=>e.kind===`channel`).map(e=>({id:e.id,label:`${e.isPrivate?`🔒`:`#`} ${e.name}`})),t=w.value.filter(e=>e.kind===`dm`).map(e=>({id:e.id,label:ae(e)})),n=[];return e.length&&n.push({label:f(`channels`),items:e}),t.length&&n.push({label:f(`directMessages`),items:t}),n});async function O(e){if(w.value=[],T.value=[],y.value=``,e){S.value=!0;try{let[t,n]=await Promise.all([ne.value.$fetch(`/chat/channel/list`,{method:`GET`,query:{organizationId:e}}),ne.value.organization.getFullOrganization({query:{organizationId:e}})]);w.value=t?.data?.channels??[],!n.error&&n.data&&(T.value=(n.data.members??[]).map(e=>({userId:e.userId,name:e.user?.name||e.user?.email||`?`})))}finally{S.value=!1}}}D(_,e=>{O(e)}),D(()=>o.orgId,e=>{e&&o.lockOrganization&&(_.value=e)});async function M(){if(!(!y.value||!E.value.trim())){b.value=!0,x.value=null;try{if((await ne.value.$fetch(`/chat/message/send`,{method:`POST`,body:{channelId:y.value,content:E.value}}))?.error)throw Error(f(`failed`));ee(`sent`,y.value),m.value=!1}catch(e){x.value=e.message||f(`failed`)}finally{b.value=!1}}}function se(e){if(g.value=e,x.value=null,y.value=``,m.value=!0,!o.currentUserId)return;if(o.lockOrganization||_.value){let e=o.lockOrganization?o.orgId:_.value;_.value=e,O(e);return}let t=o.organizations[0];t&&(_.value=t.id)}return t({open:se}),(t,n)=>(p(),A(s(l),{visible:m.value,"onUpdate:visible":n[3]||=e=>m.value=e,header:s(f)(`title`),modal:``,style:{width:`30rem`}},{footer:C(()=>[u(s(a),{label:s(f)(`cancel`),text:``,severity:`secondary`,disabled:b.value,onClick:n[2]||=e=>m.value=!1},null,8,[`label`,`disabled`]),e.currentUserId?(p(),A(s(a),{key:0,label:s(f)(`send`),icon:`pi pi-send`,loading:b.value,disabled:!y.value,onClick:M},null,8,[`label`,`loading`,`disabled`])):d(``,!0)]),default:C(()=>[e.currentUserId?(p(),r(`div`,L,[e.lockOrganization?d(``,!0):(p(),r(`div`,R,[h(`label`,null,k(s(f)(`org`)),1),u(s(v),{modelValue:_.value,"onUpdate:modelValue":n[0]||=e=>_.value=e,options:e.organizations,"option-label":`name`,"option-value":`id`,placeholder:s(f)(`orgPlaceholder`),class:`stc-select`},null,8,[`modelValue`,`options`,`placeholder`])])),h(`div`,vt,[h(`label`,null,k(s(f)(`target`)),1),u(s(v),{modelValue:y.value,"onUpdate:modelValue":n[1]||=e=>y.value=e,options:oe.value,"option-label":`label`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,placeholder:s(f)(`targetPlaceholder`),disabled:!_.value||S.value,loading:S.value,class:`stc-select`,filter:``},null,8,[`modelValue`,`options`,`placeholder`,`disabled`,`loading`])]),h(`p`,yt,[i(k(s(f)(`preview`))+` `,1),re.value?(p(),r(`span`,z,`· `+k(s(f)(`truncated`)),1)):d(``,!0)]),h(`pre`,bt,k(E.value),1),x.value?(p(),A(s(te),{key:1,severity:`error`,closable:!1},{default:C(()=>[i(k(x.value),1)]),_:1})):d(``,!0)])):(p(),r(`div`,I,k(s(f)(`notConnected`)),1))]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-41752608`]]);export{P as i,F as n,ue as r,xt as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$i as e,Ai as t,Bi as n,Ca as r,Ci as i,Ha as a,Ia as o,Ka as s,Na as c,Ni as l,Oi as u,Si as d,Ua as f,Ui as p,Wa as m,Zi as h,_i as g,ba as _,bi as v,da as y,gi as b,ji as x,jn as S,ka as C,mi as ee,qi as w,rr as te,ua as T,va as E,xa as ne,xi as D,yi as re}from"./index-BqL8zZUd.js";import{n as O,t as k}from"./w3c-keyname-9KQ-4XZl.js";function A(e){this.content=e}A.prototype={constructor:A,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new A(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new A(n)},addToStart:function(e,t){return new A([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new A(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new A(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=A.from(e),e.size?new A(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=A.from(e),e.size?new A(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=A.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},A.from=function(e){if(e instanceof A)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new A(t)};var ie=A;function ae(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&ce(e.charCodeAt(r-1))&&se(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ae(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function oe(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&ce(e.charCodeAt(i-1))&&se(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=oe(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function se(e){return e>=56320&&e<57344}function ce(e){return e>=55296&&e<56320}var j=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ae(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return oe(this,e,t,n)}findIndex(e){if(e==0)return ue(0,e);if(e==this.size)return ue(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?ue(t+1,i):ue(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};j.empty=new j([],0);var le={index:0,offset:0};function ue(e,t){return le.index=e,le.offset=t,le}function de(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!de(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!de(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var M=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&de(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};M.none=[];var fe=class extends Error{},N=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=P(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(pe(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(j.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};N.empty=new N(j.empty,0,0);function pe(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(pe(a.content,t-i-1,n-i-1)))}function P(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=P(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function me(e,t,n){if(n.openStart>e.depth)throw new fe(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new fe(`Inconsistent open depths`);return he(e,t,n,0)}function he(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=he(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return be(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=Ce(n,e);return be(a,xe(e,i,o,t,r))}else return be(a,Se(e,t,r))}function ge(e,t){if(!t.type.compatibleContent(e.type))throw new fe(`Cannot join `+t.type.name+` onto `+e.type.name)}function _e(e,t,n){let r=e.node(n);return ge(r,t.node(n)),r}function ve(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function ye(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(ve(e.nodeAfter,r),a++));for(let e=a;e<o;e++)ve(i.child(e),r);t&&t.depth==n&&t.textOffset&&ve(t.nodeBefore,r)}function be(e,t){if(!e.type.validContent(t))throw new fe(`Invalid content for node `+e.type.name);return e.copy(t)}function xe(e,t,n,r,i){let a=e.depth>i&&_e(e,t,i+1),o=r.depth>i&&_e(n,r,i+1),s=[];return ye(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(ge(a,o),ve(be(a,xe(e,t,n,r,i+1)),s)):(a&&ve(be(a,Se(e,t,i+1)),s),ye(t,n,i,s),o&&ve(be(o,Se(n,r,i+1)),s)),ye(r,null,i,s),new j(s)}function Se(e,t,n){let r=[];return ye(null,e,n,r),e.depth>n&&ve(be(_e(e,t,n+1),Se(e,t,n+1)),r),ye(t,null,n,r),new j(r)}function Ce(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(j.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var we=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return M.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Oe(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=De.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else De.set(t,r=new Te);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Ee,i}},Te=class{constructor(){this.elts=[],this.i=0}},Ee=12,De=new WeakMap,Oe=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},ke=Object.create(null),Ae=class e{constructor(e,t,n,r=M.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||j.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&de(this.attrs,t||e.defaultAttrs||ke)&&M.sameSet(this.marks,n||M.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return N.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new N(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return me(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return we.resolveCached(this,e)}resolveNoCache(e){return we.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Me(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=j.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=M.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!M.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=j.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Ae.prototype.text=void 0;var je=class e extends Ae{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Me(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Me(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Ne=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Pe(t,n);if(r.next==null)return e.empty;let i=Fe(r);r.next&&r.err(`Unexpected trailing text`);let a=Ge(He(i));return Ke(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return j.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
1
|
+
import{$i as e,Ai as t,Bi as n,Ca as r,Ci as i,Ha as a,Ia as o,Ka as s,Na as c,Ni as l,Oi as u,Si as d,Ua as f,Ui as p,Wa as m,Zi as h,_i as g,ba as _,bi as v,da as y,gi as b,ji as x,jn as S,ka as C,mi as ee,qi as w,rr as te,ua as T,va as E,xa as ne,xi as D,yi as re}from"./index-Cpr6expG.js";import{n as O,t as k}from"./w3c-keyname-2TLn3EjF.js";function A(e){this.content=e}A.prototype={constructor:A,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new A(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new A(n)},addToStart:function(e,t){return new A([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new A(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new A(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=A.from(e),e.size?new A(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=A.from(e),e.size?new A(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=A.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},A.from=function(e){if(e instanceof A)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new A(t)};var ie=A;function ae(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&ce(e.charCodeAt(r-1))&&se(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ae(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function oe(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&ce(e.charCodeAt(i-1))&&se(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=oe(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function se(e){return e>=56320&&e<57344}function ce(e){return e>=55296&&e<56320}var j=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ae(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return oe(this,e,t,n)}findIndex(e){if(e==0)return ue(0,e);if(e==this.size)return ue(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?ue(t+1,i):ue(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};j.empty=new j([],0);var le={index:0,offset:0};function ue(e,t){return le.index=e,le.offset=t,le}function de(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!de(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!de(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var M=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&de(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};M.none=[];var fe=class extends Error{},N=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=P(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(pe(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(j.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};N.empty=new N(j.empty,0,0);function pe(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(pe(a.content,t-i-1,n-i-1)))}function P(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=P(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function me(e,t,n){if(n.openStart>e.depth)throw new fe(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new fe(`Inconsistent open depths`);return he(e,t,n,0)}function he(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=he(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return be(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=Ce(n,e);return be(a,xe(e,i,o,t,r))}else return be(a,Se(e,t,r))}function ge(e,t){if(!t.type.compatibleContent(e.type))throw new fe(`Cannot join `+t.type.name+` onto `+e.type.name)}function _e(e,t,n){let r=e.node(n);return ge(r,t.node(n)),r}function ve(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function ye(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(ve(e.nodeAfter,r),a++));for(let e=a;e<o;e++)ve(i.child(e),r);t&&t.depth==n&&t.textOffset&&ve(t.nodeBefore,r)}function be(e,t){if(!e.type.validContent(t))throw new fe(`Invalid content for node `+e.type.name);return e.copy(t)}function xe(e,t,n,r,i){let a=e.depth>i&&_e(e,t,i+1),o=r.depth>i&&_e(n,r,i+1),s=[];return ye(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(ge(a,o),ve(be(a,xe(e,t,n,r,i+1)),s)):(a&&ve(be(a,Se(e,t,i+1)),s),ye(t,n,i,s),o&&ve(be(o,Se(n,r,i+1)),s)),ye(r,null,i,s),new j(s)}function Se(e,t,n){let r=[];return ye(null,e,n,r),e.depth>n&&ve(be(_e(e,t,n+1),Se(e,t,n+1)),r),ye(t,null,n,r),new j(r)}function Ce(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(j.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var we=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return M.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Oe(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=De.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else De.set(t,r=new Te);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Ee,i}},Te=class{constructor(){this.elts=[],this.i=0}},Ee=12,De=new WeakMap,Oe=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},ke=Object.create(null),Ae=class e{constructor(e,t,n,r=M.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||j.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&de(this.attrs,t||e.defaultAttrs||ke)&&M.sameSet(this.marks,n||M.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return N.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new N(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return me(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return we.resolveCached(this,e)}resolveNoCache(e){return we.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Me(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=j.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=M.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!M.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=j.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Ae.prototype.text=void 0;var je=class e extends Ae{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Me(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Me(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Ne=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Pe(t,n);if(r.next==null)return e.empty;let i=Fe(r);r.next&&r.err(`Unexpected trailing text`);let a=Ge(He(i));return Ke(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return j.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
2
2
|
`)}};Ne.empty=new Ne(!0);var Pe=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function Fe(e){let t=[];do t.push(Ie(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Ie(e){let t=[];do t.push(Le(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Le(e){let t=Ve(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=ze(e,t);else break;return t}function Re(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function ze(e,t){let n=Re(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Re(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function Be(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Ve(e){if(e.eat(`(`)){let t=Fe(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=Be(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function He(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function Ue(e,t){return t-e}function We(e,t){let n=[];return r(t),n.sort(Ue);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function Ge(e){let t=Object.create(null);return n(We(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);We(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ne(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(Ue);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function Ke(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function qe(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function Je(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function Ye(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function Xe(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new $e(e,r,t[r]);return n}var Ze=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=Xe(e,n.attrs),this.defaultAttrs=qe(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ne.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Je(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new Ae(this,this.computeAttrs(e),j.from(t),M.setFrom(n))}createChecked(e=null,t,n){return t=j.from(t),this.checkContent(t),new Ae(this,this.computeAttrs(e),t,M.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=j.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(j.empty,!0);return i?new Ae(this,e,t.append(i),M.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Ye(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:M.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function Qe(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var $e=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?Qe(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},et=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=Xe(e,r.attrs),this.excluded=null;let i=qe(this.attrs);this.instance=i?new M(this,i):null}create(e=null){return!e&&this.instance?this.instance:new M(this,Je(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){Ye(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},tt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=ie.from(e.nodes),t.marks=ie.from(e.marks||{}),this.nodes=Ze.compile(this.spec.nodes,this),this.marks=et.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Ne.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?nt(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:nt(this,n.split(` `))}this.nodeFromJSON=e=>Ae.fromJSON(this,e),this.markFromJSON=e=>M.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(e instanceof Ze){if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`)}else throw RangeError(`Invalid node type: `+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new je(n,n.defaultAttrs,e,M.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function nt(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function rt(e){return e.tag!=null}function it(e){return e.style!=null}var at=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(rt(e))this.tags.push(e);else if(it(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new mt(this,t,!1);return n.addAll(e,M.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new mt(this,t,!0);return n.addAll(e,M.none,t.from,t.to),N.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(gt(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=_t(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=_t(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},ot={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},st={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ct={ol:!0,ul:!0},lt=1,ut=2,dt=4;function ft(e,t,n){return t==null?e&&e.whitespace==`pre`?lt|ut:n&~dt:(t?lt:0)|(t===`full`?ut:0)}var pt=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=M.none,this.match=i||(a&dt?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(j.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options<)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=j.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(j.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ot.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},mt=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=ft(null,t.preserveWhitespace,0)|(n?dt:0);i=r?new pt(r.type,r.attrs,M.none,!0,t.topMatch||r.type.contentMatch,a):n?new pt(null,null,M.none,!0,null,a):new pt(e.schema.topNodeType,null,M.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&ut?`full`:this.localPreserveWS||(r.options<)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i===`full`)n=n.replace(/\r\n?/g,`
|
|
3
3
|
`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);else if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;ct.hasOwnProperty(a)&&this.parser.normalizeLists&&ht(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:st.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(ot.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
4
4
|
`),t)}ignoreFallback(e,t){e.nodeName==`BR`&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=M.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):vt(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=ft(e,i,a.options);a.options&dt&&a.content.length==0&&(o|=dt);let s=M.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):vt(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new pt(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=lt);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}else{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function ht(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&ct.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function gt(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function _t(e){let t={};for(let n in e)t[n]=e[n];return t}function vt(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var yt=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=xt(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return xt(t).createTextNode(e.text);let{dom:n,contentDOM:r}=Tt(xt(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Tt(xt(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Tt(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=bt(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return bt(e.marks)}};function bt(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function xt(e){return e.document||window.document}var St=new WeakMap;function Ct(e){let t=St.get(e);return t===void 0&&St.set(e,t=wt(e)),t}function wt(e){let t=null;function n(e){if(e&&typeof e==`object`)if(Array.isArray(e))if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}function Tt(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=Ct(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){for(let e in u=2,l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}else if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=Tt(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Et=65535,Dt=2**16;function Ot(e,t){return e+t*Dt}function kt(e){return e&Et}function At(e){return(e-(e&Et))/Dt}var jt=1,Mt=2,Nt=4,Pt=8,Ft=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Pt)>0}get deletedBefore(){return(this.delInfo&(jt|Nt))>0}get deletedAfter(){return(this.delInfo&(Mt|Nt))>0}get deletedAcross(){return(this.delInfo&Nt)>0}},It=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=kt(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+At(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Ot(o/3,e-s),f=e==s?Mt:e==u?jt:Nt;return(t<0?e!=s:e!=u)&&(f|=Pt),new Ft(a,f,d)}r+=l-c}return n?e+r:new Ft(e+r,0,null)}touches(e,t){let n=0,r=kt(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};It.empty=new It([]);var Lt=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Ft(e,r,null)}},Rt=Object.create(null),zt=class{getMap(){return It.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Rt[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Rt)throw RangeError(`Duplicate use of step JSON ID `+e);return Rt[e]=t,t.prototype.jsonID=e,t}},Bt=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof fe)return e.fail(t.message);throw t}}};function Vt(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(Vt(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return j.fromArray(r)}var Ht=class e extends zt{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new N(Vt(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return Bt.fromReplace(e,this.from,this.to,i)}invert(){return new Ut(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};zt.jsonID(`addMark`,Ht);var Ut=class e extends zt{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new N(Vt(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Bt.fromReplace(e,this.from,this.to,n)}invert(){return new Ht(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};zt.jsonID(`removeMark`,Ut);var Wt=class e extends zt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Bt.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Bt.fromReplace(e,this.pos,this.pos+1,new N(j.from(n),0,t.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new Gt(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};zt.jsonID(`addNodeMark`,Wt);var Gt=class e extends zt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Bt.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Bt.fromReplace(e,this.pos,this.pos+1,new N(j.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Wt(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};zt.jsonID(`removeNodeMark`,Gt);var Kt=class e extends zt{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&Jt(e,this.from,this.to)?Bt.fail(`Structure replace would overwrite content`):Bt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new It([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?N.empty:new N(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?N.empty:new N(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,N.fromJSON(t,n.slice),!!n.structure)}};Kt.MAP_BIAS=1,zt.jsonID(`replace`,Kt);var qt=class e extends zt{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(Jt(e,this.from,this.gapFrom)||Jt(e,this.gapTo,this.to)))return Bt.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Bt.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Bt.fromReplace(e,this.from,this.to,n):Bt.fail(`Content does not fit in gap`)}getMap(){return new It([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,N.fromJSON(t,n.slice),n.insert,!!n.structure)}};zt.jsonID(`replaceAround`,qt);function Jt(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function Yt(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new Ut(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new Ht(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function Xt(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof et){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new Ut(t.from,t.to,t.style)))}function Zt(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new Kt(s,l,N.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new Ut(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new N(j.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new Kt(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(j.empty,!0);e.replace(s,s,new N(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function Qt(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function $t(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!Qt(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function en(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=j.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=j.from(r.node(e).copy(u)),d++):c--;let f=j.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=j.from(i.node(e).copy(f)),p++):l++;e.step(new qt(c,l,o,s,new N(u.append(f),d,p),u.size-d,!0))}function tn(e,t,n=null,r=e){let i=rn(e,t),a=i&&an(r,t);return a?i.map(nn).concat({type:t,attrs:n}).concat(a.map(nn)):null}function nn(e){return{type:e,attrs:null}}function rn(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function an(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function on(e,t,n){let r=j.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=j.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new qt(i,a,i,a,new N(r,0,0),n.length,!0))}function sn(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&un(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&ln(e,t,n,a),Zt(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new qt(c,l,c+1,l-1,new N(j.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&cn(e,t,n,a),!1}})}function cn(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function ln(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ci as e,Cr as t,Dr as n,Er as r,Fr as i,Hn as a,Hr as o,Rn as s,Si as c,Un as l,Vr as u,Xr as d,Zi as f,bi as p,dr as ee,ea as m,et as h,fi as g,gi as _,ha as v,ir as y,ma as b,na as x,ra as S,va as C,vr as w,wr as T,xi as E,zi as D,zr as O}from"./index-
|
|
1
|
+
import{Ci as e,Cr as t,Dr as n,Er as r,Fr as i,Hn as a,Hr as o,Rn as s,Si as c,Un as l,Vr as u,Xr as d,Zi as f,bi as p,dr as ee,ea as m,et as h,fi as g,gi as _,ha as v,ir as y,ma as b,na as x,ra as S,va as C,vr as w,wr as T,xi as E,zi as D,zr as O}from"./index-Cpr6expG.js";var k=y.extend({name:`tabs`,style:`
|
|
2
2
|
.p-tabs {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ci as e,Zi as t,bi as n}from"./index-
|
|
1
|
+
import{Ci as e,Zi as t,bi as n}from"./index-Cpr6expG.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return t(),e(`svg`,r,[...a[0]||=[n(`path`,{d:`M232 208h-18.31L153.42 34.75A16 16 0 0 0 138.31 24h-20.62a16 16 0 0 0-15.11 10.74L42.31 208H24a8 8 0 0 0 0 16h208a8 8 0 0 0 0-16M95.43 104h65.14l16.7 48H78.73Zm22.26-64h20.62L155 88h-54ZM73.17 168h109.66l13.92 40H59.25Z`},null,-1)]])}var a={render:i};export{a as default,i as render};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ci as e,Hr as t,Zi as n,bi as r,ea as i,ir as a,un as o,zi as s}from"./index-
|
|
1
|
+
import{Ci as e,Hr as t,Zi as n,bi as r,ea as i,ir as a,un as o,zi as s}from"./index-Cpr6expG.js";var c=a.extend({name:`toggleswitch`,style:`
|
|
2
2
|
.p-toggleswitch {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
width: dt('toggleswitch.width');
|
package/web/assets/{travel-map-earth-globe.svg-B4NyICHP.js → travel-map-earth-globe.svg-CEJHyLCo.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ci as e,Zi as t,bi as n}from"./index-
|
|
1
|
+
import{Ci as e,Zi as t,bi as n}from"./index-Cpr6expG.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return t(),e(`svg`,r,[...a[0]||=[n(`path`,{d:`M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m88 104a87.6 87.6 0 0 1-6.4 32.94l-44.7-27.49a15.9 15.9 0 0 0-6.24-2.23l-22.82-3.08a16.11 16.11 0 0 0-16 7.86h-8.72l-3.8-7.86a15.91 15.91 0 0 0-11-8.67l-8-1.73L96.14 104h16.71a16.06 16.06 0 0 0 7.73-2l12.25-6.76a16.6 16.6 0 0 0 3-2.14l26.91-24.34A15.93 15.93 0 0 0 166 49.1l-.36-.65A88.11 88.11 0 0 1 216 128m-72.69-86.66L152 56.9l-26.91 24.34L112.85 88H96.14a16 16 0 0 0-13.88 8l-8.73 15.23-10.15-27.04 10.94-25.87a87.87 87.87 0 0 1 69-17ZM40 128a87.5 87.5 0 0 1 8.54-37.8l11.34 30.27a16 16 0 0 0 11.62 10l21.43 4.61 3.81 7.92a16.09 16.09 0 0 0 14.4 9h1.48l-7.23 16.23a16 16 0 0 0 2.86 17.37l.14.14 19.61 20.2-1.94 10A88.11 88.11 0 0 1 40 128m102.58 86.78 1.13-5.81a16.09 16.09 0 0 0-4-13.9 2 2 0 0 1-.14-.14L120 174.74 133.7 144l22.82 3.08 45.72 28.12a88.18 88.18 0 0 1-59.66 39.58`},null,-1)]])}var a={render:i};export{a as default,i as render};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bn as e,xn as t,yn as n}from"./index-Cpr6expG.js";export{t as trpc};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$t as e,Jt as t,Kt as n,Qt as r,Xt as i,Yt as a,Zt as o,qt as s}from"./index-
|
|
1
|
+
import{$t as e,Jt as t,Kt as n,Qt as r,Xt as i,Yt as a,Zt as o,qt as s}from"./index-Cpr6expG.js";var c=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;let e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||=(async()=>(this._worker=n({moduleId:`vs/language/typescript/tsWorker`,createWorker:()=>new Worker(new URL(`/assets/ts.worker-DfMAw22J.js`,``+import.meta.url),{type:`module`}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(r.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))(),this._client}async getLanguageServiceWorker(...e){let t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},l={};l[`lib.d.ts`]=!0,l[`lib.decorators.d.ts`]=!0,l[`lib.decorators.legacy.d.ts`]=!0,l[`lib.dom.asynciterable.d.ts`]=!0,l[`lib.dom.d.ts`]=!0,l[`lib.dom.iterable.d.ts`]=!0,l[`lib.es2015.collection.d.ts`]=!0,l[`lib.es2015.core.d.ts`]=!0,l[`lib.es2015.d.ts`]=!0,l[`lib.es2015.generator.d.ts`]=!0,l[`lib.es2015.iterable.d.ts`]=!0,l[`lib.es2015.promise.d.ts`]=!0,l[`lib.es2015.proxy.d.ts`]=!0,l[`lib.es2015.reflect.d.ts`]=!0,l[`lib.es2015.symbol.d.ts`]=!0,l[`lib.es2015.symbol.wellknown.d.ts`]=!0,l[`lib.es2016.array.include.d.ts`]=!0,l[`lib.es2016.d.ts`]=!0,l[`lib.es2016.full.d.ts`]=!0,l[`lib.es2016.intl.d.ts`]=!0,l[`lib.es2017.arraybuffer.d.ts`]=!0,l[`lib.es2017.d.ts`]=!0,l[`lib.es2017.date.d.ts`]=!0,l[`lib.es2017.full.d.ts`]=!0,l[`lib.es2017.intl.d.ts`]=!0,l[`lib.es2017.object.d.ts`]=!0,l[`lib.es2017.sharedmemory.d.ts`]=!0,l[`lib.es2017.string.d.ts`]=!0,l[`lib.es2017.typedarrays.d.ts`]=!0,l[`lib.es2018.asyncgenerator.d.ts`]=!0,l[`lib.es2018.asynciterable.d.ts`]=!0,l[`lib.es2018.d.ts`]=!0,l[`lib.es2018.full.d.ts`]=!0,l[`lib.es2018.intl.d.ts`]=!0,l[`lib.es2018.promise.d.ts`]=!0,l[`lib.es2018.regexp.d.ts`]=!0,l[`lib.es2019.array.d.ts`]=!0,l[`lib.es2019.d.ts`]=!0,l[`lib.es2019.full.d.ts`]=!0,l[`lib.es2019.intl.d.ts`]=!0,l[`lib.es2019.object.d.ts`]=!0,l[`lib.es2019.string.d.ts`]=!0,l[`lib.es2019.symbol.d.ts`]=!0,l[`lib.es2020.bigint.d.ts`]=!0,l[`lib.es2020.d.ts`]=!0,l[`lib.es2020.date.d.ts`]=!0,l[`lib.es2020.full.d.ts`]=!0,l[`lib.es2020.intl.d.ts`]=!0,l[`lib.es2020.number.d.ts`]=!0,l[`lib.es2020.promise.d.ts`]=!0,l[`lib.es2020.sharedmemory.d.ts`]=!0,l[`lib.es2020.string.d.ts`]=!0,l[`lib.es2020.symbol.wellknown.d.ts`]=!0,l[`lib.es2021.d.ts`]=!0,l[`lib.es2021.full.d.ts`]=!0,l[`lib.es2021.intl.d.ts`]=!0,l[`lib.es2021.promise.d.ts`]=!0,l[`lib.es2021.string.d.ts`]=!0,l[`lib.es2021.weakref.d.ts`]=!0,l[`lib.es2022.array.d.ts`]=!0,l[`lib.es2022.d.ts`]=!0,l[`lib.es2022.error.d.ts`]=!0,l[`lib.es2022.full.d.ts`]=!0,l[`lib.es2022.intl.d.ts`]=!0,l[`lib.es2022.object.d.ts`]=!0,l[`lib.es2022.regexp.d.ts`]=!0,l[`lib.es2022.string.d.ts`]=!0,l[`lib.es2023.array.d.ts`]=!0,l[`lib.es2023.collection.d.ts`]=!0,l[`lib.es2023.d.ts`]=!0,l[`lib.es2023.full.d.ts`]=!0,l[`lib.es2023.intl.d.ts`]=!0,l[`lib.es2024.arraybuffer.d.ts`]=!0,l[`lib.es2024.collection.d.ts`]=!0,l[`lib.es2024.d.ts`]=!0,l[`lib.es2024.full.d.ts`]=!0,l[`lib.es2024.object.d.ts`]=!0,l[`lib.es2024.promise.d.ts`]=!0,l[`lib.es2024.regexp.d.ts`]=!0,l[`lib.es2024.sharedmemory.d.ts`]=!0,l[`lib.es2024.string.d.ts`]=!0,l[`lib.es5.d.ts`]=!0,l[`lib.es6.d.ts`]=!0,l[`lib.esnext.array.d.ts`]=!0,l[`lib.esnext.collection.d.ts`]=!0,l[`lib.esnext.d.ts`]=!0,l[`lib.esnext.decorators.d.ts`]=!0,l[`lib.esnext.disposable.d.ts`]=!0,l[`lib.esnext.error.d.ts`]=!0,l[`lib.esnext.float16.d.ts`]=!0,l[`lib.esnext.full.d.ts`]=!0,l[`lib.esnext.intl.d.ts`]=!0,l[`lib.esnext.iterator.d.ts`]=!0,l[`lib.esnext.promise.d.ts`]=!0,l[`lib.esnext.sharedmemory.d.ts`]=!0,l[`lib.scripthost.d.ts`]=!0,l[`lib.webworker.asynciterable.d.ts`]=!0,l[`lib.webworker.d.ts`]=!0,l[`lib.webworker.importscripts.d.ts`]=!0,l[`lib.webworker.iterable.d.ts`]=!0;function u(e,t,n=0){if(typeof e==`string`)return e;if(e===void 0)return``;let r=``;if(n){r+=t;for(let e=0;e<n;e++)r+=` `}if(r+=e.messageText,n++,e.next)for(let i of e.next)r+=u(i,t,n);return r}function d(e){return e?e.map(e=>e.text).join(``):``}var f=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let n=e.getPositionAt(t.start),r=e.getPositionAt(t.start+t.length),{lineNumber:i,column:a}=n,{lineNumber:o,column:s}=r;return{startLineNumber:i,startColumn:a,endLineNumber:o,endColumn:s}}},p=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf(`/lib.`)===0?!!l[e.path.slice(1)]:!1}getOrCreateModel(e){let t=o.parse(e),n=r.getModel(t);if(n)return n;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return r.createModel(this._libFiles[t.path.slice(1)],`typescript`,t);let i=s.getExtraLibs()[e];return i?r.createModel(i.content,`typescript`,t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e}),this._fetchLibFilesPromise}},m=class extends f{constructor(e,t,n,i){super(i),this._libFiles=e,this._defaults=t,this._selector=n,this._disposables=[],this._listener=Object.create(null);let a=e=>{if(e.getLanguageId()!==n)return;let t=()=>{let{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)},i,a=e.onDidChangeContent(()=>{clearTimeout(i),i=window.setTimeout(t,500)}),o=e.onDidChangeAttached(()=>{let{onlyVisible:n}=this._defaults.getDiagnosticsOptions();n&&(e.isAttachedToEditor()?t():r.setModelMarkers(e,this._selector,[]))});this._listener[e.uri.toString()]={dispose(){a.dispose(),o.dispose(),clearTimeout(i)}},t()},o=e=>{r.setModelMarkers(e,this._selector,[]);let t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(r.onDidCreateModel(e=>a(e))),this._disposables.push(r.onWillDisposeModel(o)),this._disposables.push(r.onDidChangeModelLanguage(e=>{o(e.model),a(e.model)})),this._disposables.push({dispose(){for(let e of r.getModels())o(e)}});let s=()=>{for(let e of r.getModels())o(e),a(e)};this._disposables.push(this._defaults.onDidChange(s)),this._disposables.push(this._defaults.onDidExtraLibsChange(s)),r.getModels().forEach(e=>a(e))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){let t=await this._worker(e.uri);if(e.isDisposed())return;let n=[],{noSyntaxValidation:i,noSemanticValidation:a,noSuggestionDiagnostics:s}=this._defaults.getDiagnosticsOptions();i||n.push(t.getSyntacticDiagnostics(e.uri.toString())),a||n.push(t.getSemanticDiagnostics(e.uri.toString())),s||n.push(t.getSuggestionDiagnostics(e.uri.toString()));let c=await Promise.all(n);if(!c||e.isDisposed())return;let l=c.reduce((e,t)=>t.concat(e),[]).filter(e=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code)===-1),u=l.map(e=>e.relatedInformation||[]).reduce((e,t)=>t.concat(e),[]).map(e=>e.file?o.parse(e.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(u),!e.isDisposed()&&r.setModelMarkers(e,this._selector,l.map(t=>this._convertDiagnostics(e,t)))}_convertDiagnostics(e,t){let n=t.start||0,r=t.length||1,{lineNumber:i,column:o}=e.getPositionAt(n),{lineNumber:s,column:c}=e.getPositionAt(n+r),l=[];return t.reportsUnnecessary&&l.push(a.Unnecessary),t.reportsDeprecated&&l.push(a.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:i,startColumn:o,endLineNumber:s,endColumn:c,message:u(t.messageText,`
|
|
2
2
|
`),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];let n=[];return t.forEach(t=>{let r=e;if(t.file&&(r=this._libFiles.getOrCreateModel(t.file.fileName)),!r)return;let i=t.start||0,a=t.length||1,{lineNumber:o,column:s}=r.getPositionAt(i),{lineNumber:c,column:l}=r.getPositionAt(i+a);n.push({resource:r.uri,startLineNumber:o,startColumn:s,endLineNumber:c,endColumn:l,message:u(t.messageText,`
|
|
3
3
|
`)})}),n}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return t.Error;case 3:return t.Info;case 0:return t.Warning;case 2:return t.Hint}return t.Info}},h=class t extends f{get triggerCharacters(){return[`.`]}async provideCompletionItems(n,r,a,o){let s=n.getWordUntilPosition(r),c=new i(r.lineNumber,s.startColumn,r.lineNumber,s.endColumn),l=n.uri,u=n.getOffsetAt(r),d=await this._worker(l);if(n.isDisposed())return;let f=await d.getCompletionsAtPosition(l.toString(),u);if(!(!f||n.isDisposed()))return{suggestions:f.entries.map(a=>{let o=c;if(a.replacementSpan){let e=n.getPositionAt(a.replacementSpan.start),t=n.getPositionAt(a.replacementSpan.start+a.replacementSpan.length);o=new i(e.lineNumber,e.column,t.lineNumber,t.column)}let s=[];return a.kindModifiers!==void 0&&a.kindModifiers.indexOf(`deprecated`)!==-1&&s.push(e.CompletionItemTag.Deprecated),{uri:l,position:r,offset:u,range:o,label:a.name,insertText:a.name,sortText:a.sortText,kind:t.convertKind(a.kind),tags:s}})}}async resolveCompletionItem(e,n){let r=e,i=r.uri,a=r.position,o=r.offset,s=await(await this._worker(i)).getCompletionEntryDetails(i.toString(),o,r.label);return s?{uri:i,position:a,label:s.name,kind:t.convertKind(s.kind),detail:d(s.displayParts),documentation:{value:t.createDocumentationString(s)}}:r}static convertKind(t){switch(t){case C.primitiveType:case C.keyword:return e.CompletionItemKind.Keyword;case C.variable:case C.localVariable:return e.CompletionItemKind.Variable;case C.memberVariable:case C.memberGetAccessor:case C.memberSetAccessor:return e.CompletionItemKind.Field;case C.function:case C.memberFunction:case C.constructSignature:case C.callSignature:case C.indexSignature:return e.CompletionItemKind.Function;case C.enum:return e.CompletionItemKind.Enum;case C.module:return e.CompletionItemKind.Module;case C.class:return e.CompletionItemKind.Class;case C.interface:return e.CompletionItemKind.Interface;case C.warning:return e.CompletionItemKind.File}return e.CompletionItemKind.Property}static createDocumentationString(e){let t=d(e.documentation);if(e.tags)for(let n of e.tags)t+=`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$t as e}from"./index-
|
|
1
|
+
import{$t as e}from"./index-Cpr6expG.js";var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:e.IndentAction.IndentOutdent,appendText:` * `}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:e.IndentAction.None,appendText:` * `}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:e.IndentAction.None,appendText:`* `}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:e.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`,notIn:[`string`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:"`",close:"`",notIn:[`string`,`comment`]},{open:`/**`,close:` */`,notIn:[`string`]}],folding:{markers:{start:RegExp(`^\\s*//\\s*#?region\\b`),end:RegExp(`^\\s*//\\s*#?endregion\\b`)}}},n={defaultToken:`invalid`,tokenPostfix:`.ts`,keywords:`abstract.any.as.asserts.bigint.boolean.break.case.catch.class.continue.const.constructor.debugger.declare.default.delete.do.else.enum.export.extends.false.finally.for.from.function.get.if.implements.import.in.infer.instanceof.interface.is.keyof.let.module.namespace.never.new.null.number.object.out.package.private.protected.public.override.readonly.require.global.return.satisfies.set.static.string.super.switch.symbol.this.throw.true.try.type.typeof.undefined.unique.unknown.var.void.while.with.yield.async.await.of`.split(`.`),operators:`<=.>=.==.!=.===.!==.=>.+.-.**.*./.%.++.--.<<.</.>>.>>>.&.|.^.!.~.&&.||.??.?.:.=.+=.-=.*=.**=./=.%=.<<=.>>=.>>>=.&=.|=.^=.@`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,`delimiter.bracket`],{include:`common`}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":`keyword`,"@default":`identifier`}}],[/[A-Z][\w\$]*/,`type.identifier`],{include:`@whitespace`},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:`regexp`,bracket:`@open`,next:`@regexp`}],[/[()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/!(?=([^=]|$))/,`delimiter`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/(@digits)[eE]([\-+]?(@digits))?/,`number.float`],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,`number.float`],[/0[xX](@hexdigits)n?/,`number.hex`],[/0[oO]?(@octaldigits)n?/,`number.octal`],[/0[bB](@binarydigits)n?/,`number.binary`],[/(@digits)n?/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string_double`],[/'/,`string`,`@string_single`],[/`/,`string`,`@string_backtick`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@jsdoc`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],jsdoc:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,[`regexp.escape.control`,`regexp.escape.control`,`regexp.escape.control`]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,[`regexp.escape.control`,{token:`regexp.escape.control`,next:`@regexrange`}]],[/(\()(\?:|\?=|\?!)/,[`regexp.escape.control`,`regexp.escape.control`]],[/[()]/,`regexp.escape.control`],[/@regexpctl/,`regexp.escape.control`],[/[^\\\/]/,`regexp`],[/@regexpesc/,`regexp.escape`],[/\\\./,`regexp.invalid`],[/(\/)([dgimsuy]*)/,[{token:`regexp`,bracket:`@close`,next:`@pop`},`keyword.other`]]],regexrange:[[/-/,`regexp.escape.control`],[/\^/,`regexp.invalid`],[/@regexpesc/,`regexp.escape`],[/[^\]]/,`regexp`],[/\]/,{token:`regexp.escape.control`,next:`@pop`,bracket:`@close`}]],string_double:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],string_single:[[/[^\\']+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/'/,`string`,`@pop`]],string_backtick:[[/\$\{/,{token:`delimiter.bracket`,next:`@bracketCounting`}],[/[^\\`$]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/`/,`string`,`@pop`]],bracketCounting:[[/\{/,`delimiter.bracket`,`@bracketCounting`],[/\}/,`delimiter.bracket`,`@pop`],{include:`common`}]}};export{t as conf,n as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ut as e}from"./index-Cpr6expG.js";export{e as useAiChatDrawer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Jn as e,Na as t,h as n,qn as r,ua as i}from"./index-Cpr6expG.js";import{t as a}from"./useProjectCloudOrg-BWXyTbPj.js";function o(){let o=r(),s=e(),{orgId:c,available:l,unavailability:u,cloudUser:d}=a(),f=t(``),p=t(``),m=t([]);return i(c,e=>{f.value=e},{immediate:!0}),i(f,async e=>{if(s.replace({query:{...o.query,...e?{org:e}:{org:void 0}}}),m.value=[],p.value=``,!e)return;let t=await n.organization.getFullOrganization({query:{organizationId:e}});if(t.error||!t.data)return;let r=t.data;p.value=r.slug??``,m.value=(r.members??[]).map(e=>({userId:e.userId,name:e.user?.name||e.user?.email||`?`,email:e.user?.email??``}))},{immediate:!0}),{orgId:f,orgSlug:p,members:m,available:l,unavailability:u,cloudUser:d}}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ai as e,Bt as t,Ci as n,Di as r,Na as i,Zi as a,ba as o,gi as s,h as c,jn as l,rr as u,t as d,ua as f,xa as p,xn as m,yi as h}from"./index-
|
|
1
|
+
import{Ai as e,Bt as t,Ci as n,Di as r,Na as i,Zi as a,ba as o,gi as s,h as c,jn as l,rr as u,t as d,ua as f,xa as p,xn as m,yi as h}from"./index-Cpr6expG.js";import{t as g}from"./cloud-session-DSf0e5C-.js";var _=i({}),v=null;function y(){return v??=m.cloudSync.orgClouds.query().then(e=>{_.value=e}).catch(()=>{}),_}var b=i({}),x=null;function S(){return x??=m.cloudSync.orgLogos.query().then(e=>{b.value=e}).catch(()=>{}),b}async function C(e){if(e.length)try{await m.cloudSync.cacheOrgLogos.mutate({orgIds:e}),b.value=await m.cloudSync.orgLogos.query()}catch{}}function w(e,t){return`${(t??d()).replace(/\/+$/,``)}/api/org-logo/${encodeURIComponent(e)}`}var T=[`src`],E=l(e({__name:`OrgLogo`,props:{orgId:{},name:{default:``},size:{default:20}},setup(e){let t=e,c=i(!1),l=y(),u=S(),d=h(()=>u.value[t.orgId]??w(t.orgId,l.value[t.orgId])),m=h(()=>(t.name||`?`).charAt(0).toUpperCase());return f(d,()=>{c.value=!1}),(t,i)=>(a(),n(`span`,{class:`org-logo`,style:o({"--org-logo-size":`${e.size}px`})},[c.value?(a(),n(s,{key:1},[r(p(m.value),1)],64)):(a(),n(`img`,{key:0,src:d.value,alt:``,onError:i[0]||=e=>c.value=!0},null,40,T))],4))}}),[[`__scopeId`,`data-v-6364c3cc`]]);function D(){let{t:e}=u(),n=t(),{user:r}=g(),a=i([]),o=i(!1),s=i(``),l=i({});async function f(){try{l.value=await m.cloudSync.orgNames.query()}catch{}}f();let p=h(()=>{let t=new Map;for(let e of n.projects){if(!e.orgId)continue;let n=t.get(e.orgId)??{orgId:e.orgId,name:``,projects:[]};n.projects.push({projectId:e.id,name:e.name,local:!0}),t.set(e.orgId,n)}for(let e of a.value){let n=t.get(e.orgId)??{orgId:e.orgId,name:e.name,projects:[]};n.name=e.name;for(let t of e.projects)n.projects.some(e=>e.projectId===t.projectId)||n.projects.push(t);t.set(e.orgId,n)}for(let n of t.values())n.name||=l.value[n.orgId]??``,n.name||=e(`projectSwitcher.unknownOrg`,{id:n.orgId.slice(0,8)}),n.projects.sort((e,t)=>e.name.localeCompare(t.name));return[...t.values()]});async function _(){if(s.value=``,!r.value){a.value=[];return}o.value=!0;try{let t=await c.organization.list();if(t.error)throw Error(e(`projectSwitcher.orgsFailed`));let r=t.data??[],i=new Set(n.projects.map(e=>e.id));C(r.map(e=>e.id)),a.value=await Promise.all(r.map(async e=>{let t=await c.$fetch(`/project/list`,{method:`GET`,query:{organizationId:e.id}});return{orgId:e.id,name:e.name,projects:(t.data?.projects??[]).map(e=>({projectId:e.projectId,name:e.name,local:i.has(e.projectId)}))}}))}catch(e){s.value=e instanceof Error?e.message:String(e)}finally{o.value=!1}}async function v(e,t){if(n.getByRef({id:t,orgId:e}))return;let r=await m.cloudSync.trackProject.mutate({orgId:e,cloudUrl:d(),projectId:t});await y(e,t,r.state,r.pulled,r.heldBy??null)}async function y(e,t,r,i,a=null){if(!i&&r!==`live`)throw Object.assign(Error(b(r,a)),{syncState:r});for(let r=0;r<20;r++){if(await n.fetchAll(),n.getByRef({id:t,orgId:e}))return;await new Promise(e=>setTimeout(e,250))}throw Object.assign(Error(b(r,a)),{syncState:r})}function b(t,n=null){return t===`unauthenticated`?e(`projectSwitcher.syncPaused`):t===`outdated`?e(`projectSwitcher.syncOutdated`):t===`key-mismatch`?e(`projectSwitcher.syncKeyMismatch`):t===`locked`?n?e(`projectSwitcher.syncHeldElsewhereBy`,{port:n.port,pid:n.pid}):e(`projectSwitcher.syncHeldElsewhere`):e(`projectSwitcher.pullTimeout`)}function x(e,t){let n=a.value.find(t=>t.orgId===e)?.projects.find(e=>e.projectId===t);n&&(n.local=!1)}return{orgGroups:p,loading:o,error:s,refreshCloud:_,pullProject:v,markUntracked:x}}export{E as n,D as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bt as e,Gt as t,h as n,ua as r,w as i,yi as a}from"./index-Cpr6expG.js";import{t as o}from"./cloud-session-DSf0e5C-.js";var s=null;function c(){return s??=i(n,void 0),s}function l(){let{user:n}=o(),i=c(),s=e(),l=t();r(()=>n.value?.id,e=>{e&&i.refresh()},{immediate:!0});let u=a(()=>l.activeOrgId??s.currentProjectOrgId),d=a(()=>{let e=u.value;return!!e&&i.organizations.value.some(t=>t.id===e)}),f=a(()=>d.value?u.value:``),p=a(()=>!!u.value&&!d.value&&i.loading.value),m=a(()=>!!f.value||p.value),h=a(()=>m.value?null:u.value?`not-member`:`local-project`);return{orgId:f,available:m,screensVisible:a(()=>!n.value||m.value),unavailability:h,cloudUser:n}}export{l as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$t as e}from"./index-
|
|
1
|
+
import{$t as e}from"./index-Cpr6expG.js";var t={comments:{blockComment:[`<!--`,`-->`]},brackets:[[`<`,`>`]],autoClosingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],surroundingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],onEnterRules:[{beforeText:RegExp(`<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:e.IndentAction.Indent}}]},n={defaultToken:``,tokenPostfix:`.xml`,ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,``],{include:`@whitespace`},[/(<)(@qualifiedName)/,[{token:`delimiter`},{token:`tag`,next:`@tag`}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:`delimiter`},{token:`tag`},``,{token:`delimiter`}]],[/(<\?)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/(<\!)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/<\!\[CDATA\[/,{token:`delimiter.cdata`,next:`@cdata`}],[/&\w+;/,`string.escape`]],cdata:[[/[^\]]+/,``],[/\]\]>/,{token:`delimiter.cdata`,next:`@pop`}],[/\]/,``]],tag:[[/[ \t\r\n]+/,``],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,[`attribute.name`,``,`attribute.value`]],[/@qualifiedName/,`attribute.name`],[/\?>/,{token:`delimiter`,next:`@pop`}],[/(\/)(>)/,[{token:`tag`},{token:`delimiter`,next:`@pop`}]],[/>/,{token:`delimiter`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,``],[/<!--/,{token:`comment`,next:`@comment`}]],comment:[[/[^<\-]+/,`comment.content`],[/-->/,{token:`comment`,next:`@pop`}],[/<!--/,`comment.content.invalid`],[/[<\-]/,`comment.content`]]}};export{t as conf,n as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$t as e}from"./index-
|
|
1
|
+
import{$t as e}from"./index-Cpr6expG.js";var t={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},n={tokenPostfix:`.yaml`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:[`true`,`True`,`TRUE`,`false`,`False`,`FALSE`,`null`,`Null`,`Null`,`~`],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:`@whitespace`},{include:`@comment`},[/%[^ ]+.*$/,`meta.directive`],[/---/,`operators.directivesEnd`],[/\.{3}/,`operators.documentEnd`],[/[-?:](?= )/,`operators`],{include:`@anchor`},{include:`@tagHandle`},{include:`@flowCollections`},{include:`@blockStyle`},[/@numberInteger(?![ \t]*\S+)/,`number`],[/@numberFloat(?![ \t]*\S+)/,`number.float`],[/@numberOctal(?![ \t]*\S+)/,`number.octal`],[/@numberHex(?![ \t]*\S+)/,`number.hex`],[/@numberInfinity(?![ \t]*\S+)/,`number.infinity`],[/@numberNaN(?![ \t]*\S+)/,`number.nan`],[/@numberDate(?![ \t]*\S+)/,`number.date`],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,[`type`,`white`,`operators`,`white`]],{include:`@flowScalars`},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],object:[{include:`@whitespace`},{include:`@comment`},[/\}/,`@brackets`,`@pop`],[/,/,`delimiter.comma`],[/:(?= )/,`operators`],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,`type`],{include:`@flowCollections`},{include:`@flowScalars`},{include:`@tagHandle`},{include:`@anchor`},{include:`@flowNumber`},[/[^\},]+/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],array:[{include:`@whitespace`},{include:`@comment`},[/\]/,`@brackets`,`@pop`],[/,/,`delimiter.comma`],{include:`@flowCollections`},{include:`@flowScalars`},{include:`@tagHandle`},{include:`@anchor`},{include:`@flowNumber`},[/[^\],]+/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],multiString:[[/^( +).+$/,`string`,`@multiStringContinued.$1`]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":`string`,"@default":{token:`@rematch`,next:`@popall`}}}]],whitespace:[[/[ \t\r\n]+/,`white`]],comment:[[/#.*$/,`comment`]],flowCollections:[[/\[/,`@brackets`,`@array`],[/\{/,`@brackets`,`@object`]],flowScalars:[[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/'[^']*'/,`string`],[/"/,`string`,`@doubleQuotedString`]],doubleQuotedString:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],blockStyle:[[/[>|][0-9]*[+-]?$/,`operators`,`@multiString`]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,`number`],[/@numberFloat(?=[ \t]*[,\]\}])/,`number.float`],[/@numberOctal(?=[ \t]*[,\]\}])/,`number.octal`],[/@numberHex(?=[ \t]*[,\]\}])/,`number.hex`],[/@numberInfinity(?=[ \t]*[,\]\}])/,`number.infinity`],[/@numberNaN(?=[ \t]*[,\]\}])/,`number.nan`],[/@numberDate(?=[ \t]*[,\]\}])/,`number.date`]],tagHandle:[[/\![^ ]*/,`tag`]],anchor:[[/[&*][^ ]+/,`namespace`]]}};export{t as conf,n as language};
|
package/web/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Runeya</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-Cpr6expG.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-C0Lt6sdY.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|