@openc3/vue-common 6.4.2 → 6.5.0
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/dist/{ArrayWidget-D0fKsdTb.js → ArrayWidget-CC3iwyQc.js} +4 -4
- package/dist/{ArrayWidget-D0fKsdTb.js.map → ArrayWidget-CC3iwyQc.js.map} +1 -1
- package/dist/{ArrayWidget-F8xL9dRA.cjs → ArrayWidget-DaQV8y9D.cjs} +2 -2
- package/dist/{ArrayWidget-F8xL9dRA.cjs.map → ArrayWidget-DaQV8y9D.cjs.map} +1 -1
- package/dist/{ArrayplotWidget-BmRSuGhA.js → ArrayplotWidget-CiQdsmVy.js} +3 -3
- package/dist/{ArrayplotWidget-BmRSuGhA.js.map → ArrayplotWidget-CiQdsmVy.js.map} +1 -1
- package/dist/{ArrayplotWidget-D6_PhmMa.cjs → ArrayplotWidget-CkiRBYrb.cjs} +2 -2
- package/dist/{ArrayplotWidget-D6_PhmMa.cjs.map → ArrayplotWidget-CkiRBYrb.cjs.map} +1 -1
- package/dist/{BarColumn-DtYw6Gmq.js → BarColumn-BhjcS87D.js} +3 -3
- package/dist/{BarColumn-DtYw6Gmq.js.map → BarColumn-BhjcS87D.js.map} +1 -1
- package/dist/{BarColumn-DO5zpCu2.cjs → BarColumn-Ci9fqSL1.cjs} +2 -2
- package/dist/{BarColumn-DO5zpCu2.cjs.map → BarColumn-Ci9fqSL1.cjs.map} +1 -1
- package/dist/{BlockWidget-Dpxbw455.js → BlockWidget-LLPHBYVU.js} +4 -4
- package/dist/{BlockWidget-Dpxbw455.js.map → BlockWidget-LLPHBYVU.js.map} +1 -1
- package/dist/{BlockWidget-CbuJPszc.cjs → BlockWidget-yNjXB1gO.cjs} +2 -2
- package/dist/{BlockWidget-CbuJPszc.cjs.map → BlockWidget-yNjXB1gO.cjs.map} +1 -1
- package/dist/{ButtonWidget-DB464bRo.cjs → ButtonWidget-C_R8sVl5.cjs} +2 -2
- package/dist/{ButtonWidget-DB464bRo.cjs.map → ButtonWidget-C_R8sVl5.cjs.map} +1 -1
- package/dist/{ButtonWidget-8iOpXmpp.js → ButtonWidget-Co0KMkIG.js} +4 -4
- package/dist/{ButtonWidget-8iOpXmpp.js.map → ButtonWidget-Co0KMkIG.js.map} +1 -1
- package/dist/{CanvasWidget-D4iIs915.cjs → CanvasWidget-CMVhjpJc.cjs} +2 -2
- package/dist/{CanvasWidget-D4iIs915.cjs.map → CanvasWidget-CMVhjpJc.cjs.map} +1 -1
- package/dist/{CanvasWidget-B0iU38rA.js → CanvasWidget-DPrxnI7M.js} +2 -2
- package/dist/{CanvasWidget-B0iU38rA.js.map → CanvasWidget-DPrxnI7M.js.map} +1 -1
- package/dist/{CanvasdotWidget-DG6qDFlh.cjs → CanvasdotWidget-DskyFyIC.cjs} +2 -2
- package/dist/{CanvasdotWidget-DG6qDFlh.cjs.map → CanvasdotWidget-DskyFyIC.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-C9viSVBs.js → CanvasdotWidget-s1ALDR4k.js} +2 -2
- package/dist/{CanvasdotWidget-C9viSVBs.js.map → CanvasdotWidget-s1ALDR4k.js.map} +1 -1
- package/dist/{CanvasimageWidget-BJhOpZ3q.cjs → CanvasimageWidget-BngTI0bl.cjs} +2 -2
- package/dist/{CanvasimageWidget-BJhOpZ3q.cjs.map → CanvasimageWidget-BngTI0bl.cjs.map} +1 -1
- package/dist/{CanvasimageWidget-CFiCpITu.js → CanvasimageWidget-Cs-KjdqK.js} +3 -3
- package/dist/{CanvasimageWidget-CFiCpITu.js.map → CanvasimageWidget-Cs-KjdqK.js.map} +1 -1
- package/dist/{CanvasimagevalueWidget-D-4P_8Gh.cjs → CanvasimagevalueWidget-0qTn6Gb5.cjs} +2 -2
- package/dist/{CanvasimagevalueWidget-D-4P_8Gh.cjs.map → CanvasimagevalueWidget-0qTn6Gb5.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-fu6vbAY0.js → CanvasimagevalueWidget-B-wBQisl.js} +3 -3
- package/dist/{CanvasimagevalueWidget-fu6vbAY0.js.map → CanvasimagevalueWidget-B-wBQisl.js.map} +1 -1
- package/dist/{CanvaslabelWidget-BVqHq3Vp.js → CanvaslabelWidget-CLBK52pP.js} +2 -2
- package/dist/{CanvaslabelWidget-BVqHq3Vp.js.map → CanvaslabelWidget-CLBK52pP.js.map} +1 -1
- package/dist/{CanvaslabelWidget-1OS-a3F4.cjs → CanvaslabelWidget-b2yvqZBZ.cjs} +2 -2
- package/dist/{CanvaslabelWidget-1OS-a3F4.cjs.map → CanvaslabelWidget-b2yvqZBZ.cjs.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-C3vVvK2b.cjs → CanvaslabelvalueWidget-CA03ncx0.cjs} +2 -2
- package/dist/{CanvaslabelvalueWidget-C3vVvK2b.cjs.map → CanvaslabelvalueWidget-CA03ncx0.cjs.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-BOFa8-NU.js → CanvaslabelvalueWidget-CAa70y_o.js} +2 -2
- package/dist/{CanvaslabelvalueWidget-BOFa8-NU.js.map → CanvaslabelvalueWidget-CAa70y_o.js.map} +1 -1
- package/dist/{CanvaslineWidget-Cr8MsDUl.cjs → CanvaslineWidget-B-yhgIlR.cjs} +2 -2
- package/dist/{CanvaslineWidget-Cr8MsDUl.cjs.map → CanvaslineWidget-B-yhgIlR.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-l3ko0QXk.js → CanvaslineWidget-PdwVJOQ5.js} +2 -2
- package/dist/{CanvaslineWidget-l3ko0QXk.js.map → CanvaslineWidget-PdwVJOQ5.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-BCZoO-Z6.js → CanvaslinevalueWidget-CKrp1f3Z.js} +2 -2
- package/dist/{CanvaslinevalueWidget-BCZoO-Z6.js.map → CanvaslinevalueWidget-CKrp1f3Z.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-DRowns-E.cjs → CanvaslinevalueWidget-PVW-_nOk.cjs} +2 -2
- package/dist/{CanvaslinevalueWidget-DRowns-E.cjs.map → CanvaslinevalueWidget-PVW-_nOk.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-Cy9VUV7t.cjs → CheckbuttonWidget-BItae9qq.cjs} +2 -2
- package/dist/{CheckbuttonWidget-Cy9VUV7t.cjs.map → CheckbuttonWidget-BItae9qq.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-BN7e1d5b.js → CheckbuttonWidget-CTSfH4NN.js} +2 -2
- package/dist/{CheckbuttonWidget-BN7e1d5b.js.map → CheckbuttonWidget-CTSfH4NN.js.map} +1 -1
- package/dist/{ComboboxWidget-DbQwLEJY.cjs → ComboboxWidget-BFKz1kva.cjs} +2 -2
- package/dist/{ComboboxWidget-DbQwLEJY.cjs.map → ComboboxWidget-BFKz1kva.cjs.map} +1 -1
- package/dist/{ComboboxWidget-Bb5RGXDB.js → ComboboxWidget-BQzv9zk5.js} +2 -2
- package/dist/{ComboboxWidget-Bb5RGXDB.js.map → ComboboxWidget-BQzv9zk5.js.map} +1 -1
- package/dist/{CriticalCmdDialog-p0ZMNHpv.cjs → CriticalCmdDialog-CfUGhKPh.cjs} +2 -2
- package/dist/{CriticalCmdDialog-p0ZMNHpv.cjs.map → CriticalCmdDialog-CfUGhKPh.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-BUHsxfpO.js → CriticalCmdDialog-D5m3w1fr.js} +2 -2
- package/dist/{CriticalCmdDialog-BUHsxfpO.js.map → CriticalCmdDialog-D5m3w1fr.js.map} +1 -1
- package/dist/{DateWidget-Cv3Uzbyr.cjs → DateWidget-CuUySNFb.cjs} +2 -2
- package/dist/{DateWidget-Cv3Uzbyr.cjs.map → DateWidget-CuUySNFb.cjs.map} +1 -1
- package/dist/{DateWidget-Dggqab-F.js → DateWidget-DKXxXT1g.js} +2 -2
- package/dist/{DateWidget-Dggqab-F.js.map → DateWidget-DKXxXT1g.js.map} +1 -1
- package/dist/{DetailsDialog-BhSAQDSK.js → DetailsDialog-DEjAO6yp.js} +2 -2
- package/dist/{DetailsDialog-BhSAQDSK.js.map → DetailsDialog-DEjAO6yp.js.map} +1 -1
- package/dist/{DetailsDialog-CSUO0ibv.cjs → DetailsDialog-DlUuDdFa.cjs} +2 -2
- package/dist/{DetailsDialog-CSUO0ibv.cjs.map → DetailsDialog-DlUuDdFa.cjs.map} +1 -1
- package/dist/{EventListDialog-C7RuZnvD.cjs → EventListDialog-CPYg1a2g.cjs} +2 -2
- package/dist/{EventListDialog-C7RuZnvD.cjs.map → EventListDialog-CPYg1a2g.cjs.map} +1 -1
- package/dist/{EventListDialog-CSxz4nmr.js → EventListDialog-CabnKWVX.js} +3 -3
- package/dist/{EventListDialog-CSxz4nmr.js.map → EventListDialog-CabnKWVX.js.map} +1 -1
- package/dist/{FormatvalueWidget-B9_PbzY2.js → FormatvalueWidget-7Yp9jfgX.js} +3 -3
- package/dist/{FormatvalueWidget-B9_PbzY2.js.map → FormatvalueWidget-7Yp9jfgX.js.map} +1 -1
- package/dist/{FormatvalueWidget-VYVvrtya.cjs → FormatvalueWidget-LNNT9pLh.cjs} +2 -2
- package/dist/{FormatvalueWidget-VYVvrtya.cjs.map → FormatvalueWidget-LNNT9pLh.cjs.map} +1 -1
- package/dist/{Graph-B2Ir-2Ot.cjs → Graph-ZGEBRGOA.cjs} +2 -2
- package/dist/{Graph-B2Ir-2Ot.cjs.map → Graph-ZGEBRGOA.cjs.map} +1 -1
- package/dist/{Graph-B29y4d5A.js → Graph-hzxapkW-.js} +2 -2
- package/dist/{Graph-B29y4d5A.js.map → Graph-hzxapkW-.js.map} +1 -1
- package/dist/{GraphWidget-oBxPa3EB.js → GraphWidget-Dn0ZaxHo.js} +2 -2
- package/dist/{GraphWidget-oBxPa3EB.js.map → GraphWidget-Dn0ZaxHo.js.map} +1 -1
- package/dist/{GraphWidget-BsiCtRsJ.cjs → GraphWidget-caScsshg.cjs} +2 -2
- package/dist/{GraphWidget-BsiCtRsJ.cjs.map → GraphWidget-caScsshg.cjs.map} +1 -1
- package/dist/{HorizontalWidget-BWgZL_Oz.js → HorizontalWidget-BFzi3rMl.js} +2 -2
- package/dist/{HorizontalWidget-BWgZL_Oz.js.map → HorizontalWidget-BFzi3rMl.js.map} +1 -1
- package/dist/{HorizontalWidget-wn07kYWX.cjs → HorizontalWidget-Bt7N0bIN.cjs} +2 -2
- package/dist/{HorizontalWidget-wn07kYWX.cjs.map → HorizontalWidget-Bt7N0bIN.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-yMYUnNB8.js → HorizontalboxWidget-DIagyace.js} +5 -5
- package/dist/{HorizontalboxWidget-yMYUnNB8.js.map → HorizontalboxWidget-DIagyace.js.map} +1 -1
- package/dist/{HorizontalboxWidget-BQLGULQ-.cjs → HorizontalboxWidget-Dv6NWovB.cjs} +2 -2
- package/dist/{HorizontalboxWidget-BQLGULQ-.cjs.map → HorizontalboxWidget-Dv6NWovB.cjs.map} +1 -1
- package/dist/{HorizontallineWidget-C4zMx7z2.js → HorizontallineWidget-BOZNWM3a.js} +2 -2
- package/dist/{HorizontallineWidget-C4zMx7z2.js.map → HorizontallineWidget-BOZNWM3a.js.map} +1 -1
- package/dist/{HorizontallineWidget-CfrV_K28.cjs → HorizontallineWidget-CFsWevmI.cjs} +2 -2
- package/dist/{HorizontallineWidget-CfrV_K28.cjs.map → HorizontallineWidget-CFsWevmI.cjs.map} +1 -1
- package/dist/{IframeWidget-DA4P_mJT.js → IframeWidget-BU24bhc2.js} +2 -2
- package/dist/{IframeWidget-DA4P_mJT.js.map → IframeWidget-BU24bhc2.js.map} +1 -1
- package/dist/{IframeWidget-DeNDRzqB.cjs → IframeWidget-J6g6EhHh.cjs} +2 -2
- package/dist/{IframeWidget-DeNDRzqB.cjs.map → IframeWidget-J6g6EhHh.cjs.map} +1 -1
- package/dist/{ImageLoader-mxOVUyj1.cjs → ImageLoader-BVVI9FSl.cjs} +2 -2
- package/dist/{ImageLoader-mxOVUyj1.cjs.map → ImageLoader-BVVI9FSl.cjs.map} +1 -1
- package/dist/{ImageLoader-rvd9t-mk.js → ImageLoader-xxDrxPAX.js} +2 -2
- package/dist/{ImageLoader-rvd9t-mk.js.map → ImageLoader-xxDrxPAX.js.map} +1 -1
- package/dist/{ImageviewerWidget-CV76ouHz.cjs → ImageviewerWidget-BSTS4nPw.cjs} +2 -2
- package/dist/{ImageviewerWidget-CV76ouHz.cjs.map → ImageviewerWidget-BSTS4nPw.cjs.map} +1 -1
- package/dist/{ImageviewerWidget-B1wK0hK4.js → ImageviewerWidget-YMA4CVsl.js} +2 -2
- package/dist/{ImageviewerWidget-B1wK0hK4.js.map → ImageviewerWidget-YMA4CVsl.js.map} +1 -1
- package/dist/{InterfacesTab-CVvIDSTG.js → InterfacesTab-Cv50gOTl.js} +3 -3
- package/dist/{InterfacesTab-CVvIDSTG.js.map → InterfacesTab-Cv50gOTl.js.map} +1 -1
- package/dist/{InterfacesTab-DHoYHLxF.cjs → InterfacesTab-DOjyTYVC.cjs} +2 -2
- package/dist/{InterfacesTab-DHoYHLxF.cjs.map → InterfacesTab-DOjyTYVC.cjs.map} +1 -1
- package/dist/{LabelWidget-CY0saBoK.js → LabelWidget-2402SA18.js} +2 -2
- package/dist/{LabelWidget-CY0saBoK.js.map → LabelWidget-2402SA18.js.map} +1 -1
- package/dist/{LabelWidget-BobQDS5m.cjs → LabelWidget-t-nltZ16.cjs} +2 -2
- package/dist/{LabelWidget-BobQDS5m.cjs.map → LabelWidget-t-nltZ16.cjs.map} +1 -1
- package/dist/{LabelledWidget-B3ZOYaGy.js → LabelledWidget-Cbubzj_g.js} +4 -4
- package/dist/{LabelledWidget-B3ZOYaGy.js.map → LabelledWidget-Cbubzj_g.js.map} +1 -1
- package/dist/{LabelledWidget-Dp4fjHpu.cjs → LabelledWidget-tWrIx1sj.cjs} +2 -2
- package/dist/{LabelledWidget-Dp4fjHpu.cjs.map → LabelledWidget-tWrIx1sj.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-1BF_rNsT.cjs → LabelprogressbarWidget-1k8njgQG.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-1BF_rNsT.cjs.map → LabelprogressbarWidget-1k8njgQG.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-CmXcESTg.js → LabelprogressbarWidget-s8V7w6LJ.js} +4 -4
- package/dist/{LabelprogressbarWidget-CmXcESTg.js.map → LabelprogressbarWidget-s8V7w6LJ.js.map} +1 -1
- package/dist/{LabelsparklineWidget-DgzZAWfI.cjs → LabelsparklineWidget-4yoeI7gJ.cjs} +2 -2
- package/dist/{LabelsparklineWidget-DgzZAWfI.cjs.map → LabelsparklineWidget-4yoeI7gJ.cjs.map} +1 -1
- package/dist/{LabelsparklineWidget-D_yrQrn6.js → LabelsparklineWidget-qbM_OXLh.js} +4 -4
- package/dist/{LabelsparklineWidget-D_yrQrn6.js.map → LabelsparklineWidget-qbM_OXLh.js.map} +1 -1
- package/dist/{LabelvalueWidget-dNaNfsBE.js → LabelvalueWidget-B5Ihc2yP.js} +4 -4
- package/dist/{LabelvalueWidget-dNaNfsBE.js.map → LabelvalueWidget-B5Ihc2yP.js.map} +1 -1
- package/dist/{LabelvalueWidget-T6FC3w0l.cjs → LabelvalueWidget-CEua41bt.cjs} +2 -2
- package/dist/{LabelvalueWidget-T6FC3w0l.cjs.map → LabelvalueWidget-CEua41bt.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-Cb7UqEa-.cjs → LabelvaluedescWidget-7jth-OmG.cjs} +2 -2
- package/dist/{LabelvaluedescWidget-Cb7UqEa-.cjs.map → LabelvaluedescWidget-7jth-OmG.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-3vNoH6Mc.js → LabelvaluedescWidget-Cl3JHPGR.js} +5 -5
- package/dist/{LabelvaluedescWidget-3vNoH6Mc.js.map → LabelvaluedescWidget-Cl3JHPGR.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-Bi43GWx7.cjs → LabelvaluelimitsbarWidget-BDhDe4-V.cjs} +2 -2
- package/dist/{LabelvaluelimitsbarWidget-Bi43GWx7.cjs.map → LabelvaluelimitsbarWidget-BDhDe4-V.cjs.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-7VppYVIN.js → LabelvaluelimitsbarWidget-DnpfRyHl.js} +4 -4
- package/dist/{LabelvaluelimitsbarWidget-7VppYVIN.js.map → LabelvaluelimitsbarWidget-DnpfRyHl.js.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-BZ6nwifg.js → LabelvaluelimitscolumnWidget-D4L9L5oa.js} +5 -5
- package/dist/{LabelvaluelimitscolumnWidget-BZ6nwifg.js.map → LabelvaluelimitscolumnWidget-D4L9L5oa.js.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-CtTEiWPR.cjs → LabelvaluelimitscolumnWidget-d1puBx2r.cjs} +2 -2
- package/dist/{LabelvaluelimitscolumnWidget-CtTEiWPR.cjs.map → LabelvaluelimitscolumnWidget-d1puBx2r.cjs.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-C5w7sRFw.cjs → LabelvaluerangebarWidget-BczxhVFU.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-C5w7sRFw.cjs.map → LabelvaluerangebarWidget-BczxhVFU.cjs.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-IyuXLNsw.js → LabelvaluerangebarWidget-BivnHCbE.js} +4 -4
- package/dist/{LabelvaluerangebarWidget-IyuXLNsw.js.map → LabelvaluerangebarWidget-BivnHCbE.js.map} +1 -1
- package/dist/{Layout-BqMhhhws.js → Layout-B7KU2jmu.js} +2 -2
- package/dist/{Layout-BqMhhhws.js.map → Layout-B7KU2jmu.js.map} +1 -1
- package/dist/Layout-DoI_Bpyu.cjs +2 -0
- package/dist/{Layout-DUWX7PWw.cjs.map → Layout-DoI_Bpyu.cjs.map} +1 -1
- package/dist/{LedWidget-ByRkD33m.cjs → LedWidget-BSZWv-hh.cjs} +2 -2
- package/dist/{LedWidget-ByRkD33m.cjs.map → LedWidget-BSZWv-hh.cjs.map} +1 -1
- package/dist/{LedWidget-DSxpmIOK.js → LedWidget-DpdthKEd.js} +4 -4
- package/dist/{LedWidget-DSxpmIOK.js.map → LedWidget-DpdthKEd.js.map} +1 -1
- package/dist/{LimitsbarWidget-BoPTdVV5.js → LimitsbarWidget-CLyj3Kb-.js} +2 -2
- package/dist/{LimitsbarWidget-BoPTdVV5.js.map → LimitsbarWidget-CLyj3Kb-.js.map} +1 -1
- package/dist/{LimitsbarWidget-DAZA6YDH.cjs → LimitsbarWidget-CaBnnZR-.cjs} +2 -2
- package/dist/{LimitsbarWidget-DAZA6YDH.cjs.map → LimitsbarWidget-CaBnnZR-.cjs.map} +1 -1
- package/dist/{LimitscolorWidget-Bt3qOvrv.js → LimitscolorWidget-ChvzYoug.js} +2 -2
- package/dist/{LimitscolorWidget-Bt3qOvrv.js.map → LimitscolorWidget-ChvzYoug.js.map} +1 -1
- package/dist/{LimitscolorWidget-ECUDD3Yg.cjs → LimitscolorWidget-DilOPB_Q.cjs} +2 -2
- package/dist/{LimitscolorWidget-ECUDD3Yg.cjs.map → LimitscolorWidget-DilOPB_Q.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-DrsRK8l_.cjs → LimitscolumnWidget-C8m6Sqp8.cjs} +2 -2
- package/dist/{LimitscolumnWidget-DrsRK8l_.cjs.map → LimitscolumnWidget-C8m6Sqp8.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-Ce6YnUBz.js → LimitscolumnWidget-IOhsLFZ1.js} +2 -2
- package/dist/{LimitscolumnWidget-Ce6YnUBz.js.map → LimitscolumnWidget-IOhsLFZ1.js.map} +1 -1
- package/dist/{LinegraphWidget-BK03y7ev.cjs → LinegraphWidget-DOPBUi0Y.cjs} +2 -2
- package/dist/{LinegraphWidget-BK03y7ev.cjs.map → LinegraphWidget-DOPBUi0Y.cjs.map} +1 -1
- package/dist/{LinegraphWidget-XAbg0jj2.js → LinegraphWidget-DZdqMqjw.js} +4 -4
- package/dist/{LinegraphWidget-XAbg0jj2.js.map → LinegraphWidget-DZdqMqjw.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-Cl1-0jWU.cjs → MatrixbycolumnsWidget-BrynJcbR.cjs} +2 -2
- package/dist/{MatrixbycolumnsWidget-Cl1-0jWU.cjs.map → MatrixbycolumnsWidget-BrynJcbR.cjs.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-5MgJFZtz.js → MatrixbycolumnsWidget-BzGYMhJ2.js} +3 -3
- package/dist/{MatrixbycolumnsWidget-5MgJFZtz.js.map → MatrixbycolumnsWidget-BzGYMhJ2.js.map} +1 -1
- package/dist/{MicroservicesTab-DlnZ9h0y.js → MicroservicesTab-DrqUNTBZ.js} +3 -3
- package/dist/{MicroservicesTab-DlnZ9h0y.js.map → MicroservicesTab-DrqUNTBZ.js.map} +1 -1
- package/dist/{MicroservicesTab-DLAy8cBq.cjs → MicroservicesTab-pL6PYFy5.cjs} +2 -2
- package/dist/{MicroservicesTab-DLAy8cBq.cjs.map → MicroservicesTab-pL6PYFy5.cjs.map} +1 -1
- package/dist/{Openc3Screen-1vPogvfj.js → Openc3Screen-CPknMmN8.js} +3 -3
- package/dist/{Openc3Screen-1vPogvfj.js.map → Openc3Screen-CPknMmN8.js.map} +1 -1
- package/dist/{Openc3Screen-DERmiz3g.cjs → Openc3Screen-CQkUFNEH.cjs} +2 -2
- package/dist/{Openc3Screen-DERmiz3g.cjs.map → Openc3Screen-CQkUFNEH.cjs.map} +1 -1
- package/dist/{OutputDialog-aZe2HT6j.js → OutputDialog-B6i5yvkr.js} +2 -2
- package/dist/{OutputDialog-aZe2HT6j.js.map → OutputDialog-B6i5yvkr.js.map} +1 -1
- package/dist/{OutputDialog-BUc85qgI.cjs → OutputDialog-BwBPgVHK.cjs} +2 -2
- package/dist/{OutputDialog-BUc85qgI.cjs.map → OutputDialog-BwBPgVHK.cjs.map} +1 -1
- package/dist/{PackagesTab-D5hNxd_X.js → PackagesTab-CjcBp95A.js} +3 -3
- package/dist/{PackagesTab-D5hNxd_X.js.map → PackagesTab-CjcBp95A.js.map} +1 -1
- package/dist/{PackagesTab-D9h8f-Rc.cjs → PackagesTab-DYoGxaWx.cjs} +2 -2
- package/dist/{PackagesTab-D9h8f-Rc.cjs.map → PackagesTab-DYoGxaWx.cjs.map} +1 -1
- package/dist/{PluginsTab-BP8DYqd-.js → PluginsTab-Diu6vzUR.js} +3 -3
- package/dist/{PluginsTab-BP8DYqd-.js.map → PluginsTab-Diu6vzUR.js.map} +1 -1
- package/dist/{PluginsTab-swaGuthJ.cjs → PluginsTab-UcluFu7J.cjs} +2 -2
- package/dist/{PluginsTab-swaGuthJ.cjs.map → PluginsTab-UcluFu7J.cjs.map} +1 -1
- package/dist/{ProgressbarWidget-CDwDOFIy.js → ProgressbarWidget-Bre-0zcS.js} +2 -2
- package/dist/{ProgressbarWidget-CDwDOFIy.js.map → ProgressbarWidget-Bre-0zcS.js.map} +1 -1
- package/dist/{ProgressbarWidget-giMKlGsU.cjs → ProgressbarWidget-BwnZ2_h4.cjs} +2 -2
- package/dist/{ProgressbarWidget-giMKlGsU.cjs.map → ProgressbarWidget-BwnZ2_h4.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-CDPV19UM.cjs → RadiobuttonWidget-BzO43-f0.cjs} +2 -2
- package/dist/{RadiobuttonWidget-CDPV19UM.cjs.map → RadiobuttonWidget-BzO43-f0.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-cQ8V8LaD.js → RadiobuttonWidget-CLbfhrkc.js} +2 -2
- package/dist/{RadiobuttonWidget-cQ8V8LaD.js.map → RadiobuttonWidget-CLbfhrkc.js.map} +1 -1
- package/dist/{RadiogroupWidget-DPYowBpl.cjs → RadiogroupWidget-CCHJJuvX.cjs} +2 -2
- package/dist/{RadiogroupWidget-DPYowBpl.cjs.map → RadiogroupWidget-CCHJJuvX.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-BvRnuGA2.js → RadiogroupWidget-DvRc70_Q.js} +2 -2
- package/dist/{RadiogroupWidget-BvRnuGA2.js.map → RadiogroupWidget-DvRc70_Q.js.map} +1 -1
- package/dist/{RangebarWidget-aHmgV0qs.js → RangebarWidget-BvzVWcfZ.js} +2 -2
- package/dist/{RangebarWidget-aHmgV0qs.js.map → RangebarWidget-BvzVWcfZ.js.map} +1 -1
- package/dist/{RangebarWidget-DtjrqC3F.cjs → RangebarWidget-DbmeAM6e.cjs} +2 -2
- package/dist/{RangebarWidget-DtjrqC3F.cjs.map → RangebarWidget-DbmeAM6e.cjs.map} +1 -1
- package/dist/{RedisTab-D1-HQK-m.js → RedisTab-BWYQfcqX.js} +2 -2
- package/dist/{RedisTab-D1-HQK-m.js.map → RedisTab-BWYQfcqX.js.map} +1 -1
- package/dist/{RedisTab-DcFz87gW.cjs → RedisTab-Dq_xGlhh.cjs} +2 -2
- package/dist/{RedisTab-DcFz87gW.cjs.map → RedisTab-Dq_xGlhh.cjs.map} +1 -1
- package/dist/{RollupWidget-Dw2GIsBR.cjs → RollupWidget-BnhD1fw1.cjs} +2 -2
- package/dist/{RollupWidget-Dw2GIsBR.cjs.map → RollupWidget-BnhD1fw1.cjs.map} +1 -1
- package/dist/{RollupWidget-D1jUPrUQ.js → RollupWidget-KT243Ed8.js} +2 -2
- package/dist/{RollupWidget-D1jUPrUQ.js.map → RollupWidget-KT243Ed8.js.map} +1 -1
- package/dist/{RoutersTab-CF0ADapt.js → RoutersTab-CLwJ6J7T.js} +3 -3
- package/dist/{RoutersTab-CF0ADapt.js.map → RoutersTab-CLwJ6J7T.js.map} +1 -1
- package/dist/{RoutersTab-DJDjAIQf.cjs → RoutersTab-DS95AQxI.cjs} +2 -2
- package/dist/{RoutersTab-DJDjAIQf.cjs.map → RoutersTab-DS95AQxI.cjs.map} +1 -1
- package/dist/{ScriptChooser-IegS44oT.js → ScriptChooser-CA2eMEE2.js} +2 -2
- package/dist/{ScriptChooser-IegS44oT.js.map → ScriptChooser-CA2eMEE2.js.map} +1 -1
- package/dist/{ScriptChooser-CPzgZtTN.cjs → ScriptChooser-D2-VTc4T.cjs} +2 -2
- package/dist/{ScriptChooser-CPzgZtTN.cjs.map → ScriptChooser-D2-VTc4T.cjs.map} +1 -1
- package/dist/{ScrollwindowWidget-Cn0o3b4E.js → ScrollwindowWidget-DcpdXyrP.js} +3 -3
- package/dist/{ScrollwindowWidget-Cn0o3b4E.js.map → ScrollwindowWidget-DcpdXyrP.js.map} +1 -1
- package/dist/{ScrollwindowWidget-C79nSa0g.cjs → ScrollwindowWidget-vnhzeIMy.cjs} +2 -2
- package/dist/{ScrollwindowWidget-C79nSa0g.cjs.map → ScrollwindowWidget-vnhzeIMy.cjs.map} +1 -1
- package/dist/{SecretsTab-BAIHxgdM.js → SecretsTab-CQNTFJAM.js} +2 -2
- package/dist/{SecretsTab-BAIHxgdM.js.map → SecretsTab-CQNTFJAM.js.map} +1 -1
- package/dist/{SecretsTab-BVpqbRn5.cjs → SecretsTab-HP8E21SW.cjs} +2 -2
- package/dist/{SecretsTab-BVpqbRn5.cjs.map → SecretsTab-HP8E21SW.cjs.map} +1 -1
- package/dist/{SettingsTab-C2k0BDcX.js → SettingsTab-BAOaLzuc.js} +3 -3
- package/dist/{SettingsTab-C2k0BDcX.js.map → SettingsTab-BAOaLzuc.js.map} +1 -1
- package/dist/{SettingsTab-J1frSo-9.cjs → SettingsTab-CMQxLfkn.cjs} +2 -2
- package/dist/{SettingsTab-J1frSo-9.cjs.map → SettingsTab-CMQxLfkn.cjs.map} +1 -1
- package/dist/{SignalWidget-BQBzqdU-.js → SignalWidget-CoTi0Uzy.js} +2 -2
- package/dist/{SignalWidget-BQBzqdU-.js.map → SignalWidget-CoTi0Uzy.js.map} +1 -1
- package/dist/{SignalWidget-sAMVlO9e.cjs → SignalWidget-DqxDT42W.cjs} +2 -2
- package/dist/{SignalWidget-sAMVlO9e.cjs.map → SignalWidget-DqxDT42W.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-sOMrzIs7.cjs → SimpleTextDialog-BdV90ARp.cjs} +2 -2
- package/dist/{SimpleTextDialog-sOMrzIs7.cjs.map → SimpleTextDialog-BdV90ARp.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-3EEsXpGl.js → SimpleTextDialog-BqVdFj1n.js} +2 -2
- package/dist/{SimpleTextDialog-3EEsXpGl.js.map → SimpleTextDialog-BqVdFj1n.js.map} +1 -1
- package/dist/SpacerWidget--x9MPrff.cjs +2 -0
- package/dist/{SpacerWidget-C5x4sFAQ.cjs.map → SpacerWidget--x9MPrff.cjs.map} +1 -1
- package/dist/SpacerWidget-CTekSgNO.js +19 -0
- package/dist/{SpacerWidget-C0RmQY3t.js.map → SpacerWidget-CTekSgNO.js.map} +1 -1
- package/dist/{SparklineWidget-CfA39olv.cjs → SparklineWidget-BHdwgOeC.cjs} +2 -2
- package/dist/{SparklineWidget-CfA39olv.cjs.map → SparklineWidget-BHdwgOeC.cjs.map} +1 -1
- package/dist/{SparklineWidget-BTH9rvcX.js → SparklineWidget-BxwPKrIr.js} +4 -4
- package/dist/{SparklineWidget-BTH9rvcX.js.map → SparklineWidget-BxwPKrIr.js.map} +1 -1
- package/dist/{TabbookWidget-C-aDdEoD.js → TabbookWidget-B6Nx3Kmt.js} +2 -2
- package/dist/{TabbookWidget-C-aDdEoD.js.map → TabbookWidget-B6Nx3Kmt.js.map} +1 -1
- package/dist/{TabbookWidget-BrPTbXrU.cjs → TabbookWidget-DuszE8ho.cjs} +2 -2
- package/dist/{TabbookWidget-BrPTbXrU.cjs.map → TabbookWidget-DuszE8ho.cjs.map} +1 -1
- package/dist/{TargetsTab-BV-eELWM.cjs → TargetsTab-B8appkxl.cjs} +2 -2
- package/dist/{TargetsTab-BV-eELWM.cjs.map → TargetsTab-B8appkxl.cjs.map} +1 -1
- package/dist/{TargetsTab-DAmlfJ9Z.js → TargetsTab-u-6nY7FX.js} +3 -3
- package/dist/{TargetsTab-DAmlfJ9Z.js.map → TargetsTab-u-6nY7FX.js.map} +1 -1
- package/dist/{TextboxWidget-Lw5glGxY.cjs → TextboxWidget-CBdukKN5.cjs} +2 -2
- package/dist/{TextboxWidget-Lw5glGxY.cjs.map → TextboxWidget-CBdukKN5.cjs.map} +1 -1
- package/dist/{TextboxWidget-Dd2ccpUQ.js → TextboxWidget-DJgAfLFU.js} +4 -4
- package/dist/{TextboxWidget-Dd2ccpUQ.js.map → TextboxWidget-DJgAfLFU.js.map} +1 -1
- package/dist/{TextfieldWidget-DY3aFTnP.js → TextfieldWidget-Bc2xGs8v.js} +2 -2
- package/dist/{TextfieldWidget-DY3aFTnP.js.map → TextfieldWidget-Bc2xGs8v.js.map} +1 -1
- package/dist/{TextfieldWidget-CTsiRDIJ.cjs → TextfieldWidget-u6w1_wqO.cjs} +2 -2
- package/dist/{TextfieldWidget-CTsiRDIJ.cjs.map → TextfieldWidget-u6w1_wqO.cjs.map} +1 -1
- package/dist/{TimeWidget-CB1jqQSZ.cjs → TimeWidget-Bmzei1k_.cjs} +2 -2
- package/dist/{TimeWidget-CB1jqQSZ.cjs.map → TimeWidget-Bmzei1k_.cjs.map} +1 -1
- package/dist/{TimeWidget-C_site21.js → TimeWidget-DO6ZuMLO.js} +2 -2
- package/dist/{TimeWidget-C_site21.js.map → TimeWidget-DO6ZuMLO.js.map} +1 -1
- package/dist/{TitleWidget-E91xUafI.cjs → TitleWidget-B8f0Sa7B.cjs} +2 -2
- package/dist/{TitleWidget-E91xUafI.cjs.map → TitleWidget-B8f0Sa7B.cjs.map} +1 -1
- package/dist/{TitleWidget-Bx81VfQD.js → TitleWidget-CkZhMme1.js} +2 -2
- package/dist/{TitleWidget-Bx81VfQD.js.map → TitleWidget-CkZhMme1.js.map} +1 -1
- package/dist/{ToolsTab-CW_TQ53O.js → ToolsTab-BI6lImcw.js} +3 -3
- package/dist/{ToolsTab-CW_TQ53O.js.map → ToolsTab-BI6lImcw.js.map} +1 -1
- package/dist/{ToolsTab-Bu3XUxr9.cjs → ToolsTab-WSIi50nR.cjs} +2 -2
- package/dist/{ToolsTab-Bu3XUxr9.cjs.map → ToolsTab-WSIi50nR.cjs.map} +1 -1
- package/dist/{TopBar-CkCLoFp7.cjs → TopBar-BwdXu4vD.cjs} +2 -2
- package/dist/{TopBar-CkCLoFp7.cjs.map → TopBar-BwdXu4vD.cjs.map} +1 -1
- package/dist/{TopBar-C9ro4_7Q.js → TopBar-h_jaZ23r.js} +2 -2
- package/dist/{TopBar-C9ro4_7Q.js.map → TopBar-h_jaZ23r.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-EaQZfck4.cjs → UpgradeToEnterpriseDialog-B2LIPuO6.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-EaQZfck4.cjs.map → UpgradeToEnterpriseDialog-B2LIPuO6.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-BH0WHey-.js → UpgradeToEnterpriseDialog-DE2DoA0l.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-BH0WHey-.js.map → UpgradeToEnterpriseDialog-DE2DoA0l.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CHXJm9wA.cjs → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CKn4Dnn-.cjs} +4 -4
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CHXJm9wA.cjs.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CKn4Dnn-.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-xI8cv5P5.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Vn0OLZcG.js} +7 -7
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-xI8cv5P5.js.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Vn0OLZcG.js.map} +1 -1
- package/dist/{VWidget-CRqTUgEv.cjs → VWidget-DKQBzANO.cjs} +2 -2
- package/dist/{VWidget-CRqTUgEv.cjs.map → VWidget-DKQBzANO.cjs.map} +1 -1
- package/dist/{VWidget-DuUens7G.js → VWidget-DzhcRBQe.js} +2 -2
- package/dist/{VWidget-DuUens7G.js.map → VWidget-DzhcRBQe.js.map} +1 -1
- package/dist/{ValueWidget-CN-B9LDi.cjs → ValueWidget-BpS7e3Ks.cjs} +2 -2
- package/dist/{ValueWidget-CN-B9LDi.cjs.map → ValueWidget-BpS7e3Ks.cjs.map} +1 -1
- package/dist/{ValueWidget-cbjxVV3B.js → ValueWidget-tieHz2H1.js} +4 -4
- package/dist/{ValueWidget-cbjxVV3B.js.map → ValueWidget-tieHz2H1.js.map} +1 -1
- package/dist/{ValuelimitsbarWidget-BLHVD0qM.cjs → ValuelimitsbarWidget-COsc2aMd.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-BLHVD0qM.cjs.map → ValuelimitsbarWidget-COsc2aMd.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-cQb2o_xH.js → ValuelimitsbarWidget-oFqxZu0t.js} +4 -4
- package/dist/{ValuelimitsbarWidget-cQb2o_xH.js.map → ValuelimitsbarWidget-oFqxZu0t.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-DqGxHe2k.cjs → ValuelimitscolumnWidget-DPmkVEuC.cjs} +2 -2
- package/dist/{ValuelimitscolumnWidget-DqGxHe2k.cjs.map → ValuelimitscolumnWidget-DPmkVEuC.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-BBTuSCK9.js → ValuelimitscolumnWidget-DYBv8POg.js} +4 -4
- package/dist/{ValuelimitscolumnWidget-BBTuSCK9.js.map → ValuelimitscolumnWidget-DYBv8POg.js.map} +1 -1
- package/dist/{ValuerangebarWidget-xMsUfp1H.cjs → ValuerangebarWidget-D5zHCKXQ.cjs} +2 -2
- package/dist/{ValuerangebarWidget-xMsUfp1H.cjs.map → ValuerangebarWidget-D5zHCKXQ.cjs.map} +1 -1
- package/dist/{ValuerangebarWidget-Ct7iGtu0.js → ValuerangebarWidget-m3gFyG4v.js} +4 -4
- package/dist/{ValuerangebarWidget-Ct7iGtu0.js.map → ValuerangebarWidget-m3gFyG4v.js.map} +1 -1
- package/dist/{VerticalWidget-DJn02myf.js → VerticalWidget-CcdRZmQK.js} +2 -2
- package/dist/{VerticalWidget-DJn02myf.js.map → VerticalWidget-CcdRZmQK.js.map} +1 -1
- package/dist/{VerticalWidget-DiW_FZuh.cjs → VerticalWidget-DHWIKJUB.cjs} +2 -2
- package/dist/{VerticalWidget-DiW_FZuh.cjs.map → VerticalWidget-DHWIKJUB.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-miKFocA3.cjs → VerticalboxWidget-BHNt0RrX.cjs} +2 -2
- package/dist/{VerticalboxWidget-miKFocA3.cjs.map → VerticalboxWidget-BHNt0RrX.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-DHQMxtF3.js → VerticalboxWidget-DfsCYhrX.js} +5 -5
- package/dist/{VerticalboxWidget-DHQMxtF3.js.map → VerticalboxWidget-DfsCYhrX.js.map} +1 -1
- package/dist/{Widget-CP2CtyUr.js → Widget-B5HKasz2.js} +2 -2
- package/dist/{Widget-CP2CtyUr.js.map → Widget-B5HKasz2.js.map} +1 -1
- package/dist/{Widget-BMqF6Utz.cjs → Widget-CMzBJCGp.cjs} +2 -2
- package/dist/{Widget-BMqF6Utz.cjs.map → Widget-CMzBJCGp.cjs.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +11 -11
- package/dist/tools/admin.cjs +6 -11
- package/dist/tools/admin.cjs.map +1 -1
- package/dist/tools/admin.js +1041 -1178
- package/dist/tools/admin.js.map +1 -1
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.js +2 -2
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.js +1 -1
- package/dist/tools/scriptrunner.cjs +6 -6
- package/dist/tools/scriptrunner.cjs.map +1 -1
- package/dist/tools/scriptrunner.js +852 -831
- package/dist/tools/scriptrunner.js.map +1 -1
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +63 -63
- package/package.json +2 -2
- package/dist/Layout-DUWX7PWw.cjs +0 -2
- package/dist/SpacerWidget-C0RmQY3t.js +0 -19
- package/dist/SpacerWidget-C5x4sFAQ.cjs +0 -2
package/dist/tools/admin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { b as
|
|
5
|
-
import { A as
|
|
1
|
+
import { a as Ne } from "../index-qCq0L4jN.js";
|
|
2
|
+
import { resolveComponent as f, createBlock as T, openBlock as y, withCtx as g, createVNode as d, createElementVNode as x, createElementBlock as O, createTextVNode as w, Fragment as G, renderList as U, createCommentVNode as q, toDisplayString as A, withModifiers as P, withDirectives as Fe, vShow as He, toRaw as Pe } from "vue";
|
|
3
|
+
import { _ as j } from "../CustomIcon-h5X7369N.js";
|
|
4
|
+
import { b as D, l as Be } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Vn0OLZcG.js";
|
|
5
|
+
import { A as H, T as Ge } from "../TopBar-h_jaZ23r.js";
|
|
6
6
|
import "single-spa";
|
|
7
|
-
const
|
|
7
|
+
const Ue = {
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: Boolean
|
|
10
10
|
},
|
|
@@ -23,8 +23,8 @@ const Le = {
|
|
|
23
23
|
get() {
|
|
24
24
|
return this.modelValue;
|
|
25
25
|
},
|
|
26
|
-
set(
|
|
27
|
-
this.$emit("update:modelValue",
|
|
26
|
+
set(t) {
|
|
27
|
+
this.$emit("update:modelValue", t);
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
listData: function() {
|
|
@@ -33,15 +33,15 @@ const Le = {
|
|
|
33
33
|
},
|
|
34
34
|
methods: {
|
|
35
35
|
parseGithub: function() {
|
|
36
|
-
const
|
|
37
|
-
return this.response.tree.filter((
|
|
38
|
-
name:
|
|
39
|
-
url: `https://raw.github.com/OpenC3/openc3-tools/main/${
|
|
36
|
+
const t = /\w+.gem/;
|
|
37
|
+
return this.response.tree.filter((e) => t.exec(e.path)).map((e) => ({
|
|
38
|
+
name: e.path,
|
|
39
|
+
url: `https://raw.github.com/OpenC3/openc3-tools/main/${e.path}`
|
|
40
40
|
}));
|
|
41
41
|
},
|
|
42
42
|
getResponse: function() {
|
|
43
|
-
this.disableSearch = !0,
|
|
44
|
-
this.response =
|
|
43
|
+
this.disableSearch = !0, Ne.get(this.url).then((t) => {
|
|
44
|
+
this.response = t.data;
|
|
45
45
|
}), setTimeout(() => {
|
|
46
46
|
this.disableSearch = !1;
|
|
47
47
|
}, 1e4);
|
|
@@ -49,65 +49,65 @@ const Le = {
|
|
|
49
49
|
searchGithub: function() {
|
|
50
50
|
this.type = "github", this.url = "https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1", this.getResponse();
|
|
51
51
|
},
|
|
52
|
-
downloadGem: function(
|
|
53
|
-
const
|
|
54
|
-
|
|
52
|
+
downloadGem: function(t) {
|
|
53
|
+
const e = document.createElement("a");
|
|
54
|
+
e.href = t.url, e.setAttribute("download", t.name), e.click(), e.remove();
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, qe = { class: "pa-3" }, je = { class: "px-2" }, Ye = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "mt-4"
|
|
60
|
-
},
|
|
60
|
+
}, ze = {
|
|
61
61
|
key: 1,
|
|
62
62
|
class: "mt-4"
|
|
63
63
|
};
|
|
64
|
-
function
|
|
65
|
-
const s =
|
|
66
|
-
return
|
|
67
|
-
modelValue:
|
|
68
|
-
"onUpdate:modelValue":
|
|
64
|
+
function We(t, e, n, l, i, o) {
|
|
65
|
+
const s = f("v-spacer"), r = f("v-toolbar"), a = f("v-row"), u = f("v-icon"), c = f("v-btn"), h = f("v-col"), m = f("v-list-item-title"), p = f("v-progress-circular"), v = f("v-list-item"), k = f("v-divider"), E = f("v-card-text"), b = f("v-card"), L = f("v-dialog");
|
|
66
|
+
return y(), T(L, {
|
|
67
|
+
modelValue: o.show,
|
|
68
|
+
"onUpdate:modelValue": e[0] || (e[0] = (_) => o.show = _),
|
|
69
69
|
width: "600"
|
|
70
70
|
}, {
|
|
71
71
|
default: g(() => [
|
|
72
|
-
|
|
72
|
+
d(b, null, {
|
|
73
73
|
default: g(() => [
|
|
74
|
-
|
|
74
|
+
d(r, { height: "24" }, {
|
|
75
75
|
default: g(() => [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
d(s),
|
|
77
|
+
e[1] || (e[1] = x("span", null, " Download Gems ", -1)),
|
|
78
|
+
d(s)
|
|
79
79
|
]),
|
|
80
80
|
_: 1
|
|
81
81
|
}),
|
|
82
|
-
|
|
82
|
+
d(E, null, {
|
|
83
83
|
default: g(() => [
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
default: g(() =>
|
|
87
|
-
|
|
84
|
+
x("div", qe, [
|
|
85
|
+
d(a, { class: "my-2" }, {
|
|
86
|
+
default: g(() => e[2] || (e[2] = [
|
|
87
|
+
w(" Select a download option ")
|
|
88
88
|
])),
|
|
89
89
|
_: 1
|
|
90
90
|
}),
|
|
91
|
-
|
|
91
|
+
d(a, null, {
|
|
92
92
|
default: g(() => [
|
|
93
|
-
|
|
93
|
+
d(h, null, {
|
|
94
94
|
default: g(() => [
|
|
95
|
-
|
|
96
|
-
c
|
|
95
|
+
x("div", je, [
|
|
96
|
+
d(c, {
|
|
97
97
|
block: "",
|
|
98
98
|
"data-test": "searchGithub",
|
|
99
99
|
color: "primary",
|
|
100
|
-
disabled:
|
|
101
|
-
onClick:
|
|
100
|
+
disabled: i.disableSearch,
|
|
101
|
+
onClick: o.searchGithub
|
|
102
102
|
}, {
|
|
103
103
|
default: g(() => [
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
e[4] || (e[4] = w(" Github ")),
|
|
105
|
+
d(u, {
|
|
106
106
|
end: "",
|
|
107
107
|
theme: "dark"
|
|
108
108
|
}, {
|
|
109
|
-
default: g(() =>
|
|
110
|
-
|
|
109
|
+
default: g(() => e[3] || (e[3] = [
|
|
110
|
+
w(" mdi-github ")
|
|
111
111
|
])),
|
|
112
112
|
_: 1
|
|
113
113
|
})
|
|
@@ -121,41 +121,41 @@ function ke(e, t, n, o, l, i) {
|
|
|
121
121
|
]),
|
|
122
122
|
_: 1
|
|
123
123
|
}),
|
|
124
|
-
|
|
125
|
-
default: g(() =>
|
|
126
|
-
|
|
124
|
+
d(a, { class: "mt-5" }, {
|
|
125
|
+
default: g(() => e[5] || (e[5] = [
|
|
126
|
+
w(" Community Gems ")
|
|
127
127
|
])),
|
|
128
128
|
_: 1
|
|
129
129
|
}),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
default: g(() =>
|
|
133
|
-
|
|
130
|
+
o.listData.length < 1 ? (y(), O("div", Ye, [
|
|
131
|
+
d(a, { class: "mx-2" }, {
|
|
132
|
+
default: g(() => e[6] || (e[6] = [
|
|
133
|
+
x("span", null, " I’m sorry, Dave. No gems available.... ", -1)
|
|
134
134
|
])),
|
|
135
135
|
_: 1
|
|
136
136
|
})
|
|
137
|
-
])) : (
|
|
138
|
-
(
|
|
139
|
-
|
|
137
|
+
])) : (y(), O("div", ze, [
|
|
138
|
+
(y(!0), O(G, null, U(o.listData, (_, S) => (y(), O("div", { key: S }, [
|
|
139
|
+
d(v, null, {
|
|
140
140
|
default: g(() => [
|
|
141
|
-
|
|
141
|
+
d(m, null, {
|
|
142
142
|
default: g(() => [
|
|
143
|
-
|
|
143
|
+
w(A(_.name), 1)
|
|
144
144
|
]),
|
|
145
145
|
_: 2
|
|
146
146
|
}, 1024),
|
|
147
|
-
|
|
147
|
+
d(v, { icon: "" }, {
|
|
148
148
|
default: g(() => [
|
|
149
|
-
|
|
149
|
+
i.activeDownload ? (y(), T(p, {
|
|
150
150
|
key: 0,
|
|
151
151
|
indeterminate: "",
|
|
152
152
|
color: "primary"
|
|
153
|
-
})) : (
|
|
153
|
+
})) : (y(), T(c, {
|
|
154
154
|
key: 1,
|
|
155
155
|
icon: "mdi-cloud-download",
|
|
156
156
|
variant: "text",
|
|
157
|
-
disabled:
|
|
158
|
-
onClick: (
|
|
157
|
+
disabled: i.activeDownload,
|
|
158
|
+
onClick: (M) => o.downloadGem(_)
|
|
159
159
|
}, null, 8, ["disabled", "onClick"]))
|
|
160
160
|
]),
|
|
161
161
|
_: 2
|
|
@@ -163,7 +163,7 @@ function ke(e, t, n, o, l, i) {
|
|
|
163
163
|
]),
|
|
164
164
|
_: 2
|
|
165
165
|
}, 1024),
|
|
166
|
-
|
|
166
|
+
S < o.listData.length - 1 ? (y(), T(k, { key: S })) : q("", !0)
|
|
167
167
|
]))), 128))
|
|
168
168
|
]))
|
|
169
169
|
])
|
|
@@ -177,7 +177,7 @@ function ke(e, t, n, o, l, i) {
|
|
|
177
177
|
_: 1
|
|
178
178
|
}, 8, ["modelValue"]);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const Kt = /* @__PURE__ */ j(Ue, [["render", We]]), Ke = {
|
|
181
181
|
props: {
|
|
182
182
|
content: {
|
|
183
183
|
type: String,
|
|
@@ -201,8 +201,8 @@ const ht = /* @__PURE__ */ q(Le, [["render", ke]]), Ie = {
|
|
|
201
201
|
get() {
|
|
202
202
|
return this.modelValue;
|
|
203
203
|
},
|
|
204
|
-
set(
|
|
205
|
-
this.$emit("update:modelValue",
|
|
204
|
+
set(t) {
|
|
205
|
+
this.$emit("update:modelValue", t);
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
title: function() {
|
|
@@ -213,8 +213,8 @@ const ht = /* @__PURE__ */ q(Le, [["render", ke]]), Ie = {
|
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
mounted() {
|
|
216
|
-
const
|
|
217
|
-
this.editor =
|
|
216
|
+
const t = this.buildPluginMode();
|
|
217
|
+
this.editor = D.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight"), this.editor.session.setMode(new t()), this.editor.session.setTabSize(2), this.editor.session.setUseWrapMode(!0), this.editor.$blockScrolling = 1 / 0, this.editor.setHighlightActiveLine(!1), this.editor.setValue(this.content), this.editor.clearSelection(), H.applyVimModeIfEnabled(this.editor), this.editor.focus(), this.readonly && this.editor.setReadOnly(!0);
|
|
218
218
|
},
|
|
219
219
|
beforeUnmount() {
|
|
220
220
|
this.editor && this.editor.destroy();
|
|
@@ -227,114 +227,114 @@ const ht = /* @__PURE__ */ q(Le, [["render", ke]]), Ie = {
|
|
|
227
227
|
this.show = !this.show;
|
|
228
228
|
},
|
|
229
229
|
download: function() {
|
|
230
|
-
const
|
|
230
|
+
const t = new Blob([this.editor.getValue()], {
|
|
231
231
|
type: "text/plain"
|
|
232
|
-
}),
|
|
233
|
-
|
|
232
|
+
}), e = document.createElement("a");
|
|
233
|
+
e.href = URL.createObjectURL(t), e.setAttribute(
|
|
234
234
|
"download",
|
|
235
235
|
`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`
|
|
236
|
-
),
|
|
236
|
+
), e.click();
|
|
237
237
|
},
|
|
238
238
|
buildPluginMode() {
|
|
239
|
-
let
|
|
239
|
+
let t = D.require("ace/lib/oop"), e = D.require(
|
|
240
240
|
"ace/mode/json_highlight_rules"
|
|
241
|
-
).JsonHighlightRules, n =
|
|
241
|
+
).JsonHighlightRules, n = D.require(
|
|
242
242
|
"ace/mode/matching_brace_outdent"
|
|
243
|
-
).MatchingBraceOutdent,
|
|
243
|
+
).MatchingBraceOutdent, l = D.require(
|
|
244
244
|
"ace/mode/behaviour/cstyle"
|
|
245
|
-
).CstyleBehaviour,
|
|
246
|
-
this.HighlightRules =
|
|
247
|
-
}, s =
|
|
248
|
-
return
|
|
245
|
+
).CstyleBehaviour, i = D.require("ace/mode/folding/ruby").FoldMode, o = function() {
|
|
246
|
+
this.HighlightRules = e, this.$outdent = new n(), this.$behaviour = new l(), this.foldingRules = new i(), this.indentKeywords = this.foldingRules.indentKeywords;
|
|
247
|
+
}, s = D.require("ace/mode/ruby").Mode;
|
|
248
|
+
return t.inherits(o, s), (function() {
|
|
249
249
|
this.$id = "ace/mode/openc3";
|
|
250
|
-
}).call(
|
|
250
|
+
}).call(o.prototype), o;
|
|
251
251
|
},
|
|
252
|
-
showContextMenu: function(
|
|
253
|
-
this.menuX =
|
|
254
|
-
let
|
|
252
|
+
showContextMenu: function(t) {
|
|
253
|
+
this.menuX = t.pageX, this.menuY = t.pageY;
|
|
254
|
+
let e = this.editor.getCursorPosition(), n = this.editor.session.getTokenAt(e.row, e.column);
|
|
255
255
|
if (n) {
|
|
256
|
-
let
|
|
257
|
-
|
|
256
|
+
let l = n.value.trim();
|
|
257
|
+
l.includes(" ") ? this.docsKeyword = l.split(" ")[0] : this.docsKeyword = l, this.contextMenu = !0;
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
260
|
toggleVimMode: function() {
|
|
261
|
-
|
|
261
|
+
H.toggleVimMode(this.editor);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
},
|
|
265
|
-
function
|
|
266
|
-
const s =
|
|
267
|
-
return
|
|
268
|
-
modelValue:
|
|
269
|
-
"onUpdate:modelValue":
|
|
264
|
+
}, Xe = ["textContent"], Je = { class: "pa-3" }, Qe = { key: 0 }, Ze = ["textContent"];
|
|
265
|
+
function et(t, e, n, l, i, o) {
|
|
266
|
+
const s = f("v-spacer"), r = f("v-btn"), a = f("v-toolbar"), u = f("v-row"), c = f("v-col"), h = f("v-file-input"), m = f("v-list-item"), p = f("v-list"), v = f("v-menu"), k = f("v-card-text"), E = f("v-card"), b = f("v-dialog");
|
|
267
|
+
return y(), T(b, {
|
|
268
|
+
modelValue: o.show,
|
|
269
|
+
"onUpdate:modelValue": e[4] || (e[4] = (L) => o.show = L),
|
|
270
270
|
persistent: !n.readonly,
|
|
271
271
|
width: "80vw"
|
|
272
272
|
}, {
|
|
273
273
|
default: g(() => [
|
|
274
|
-
|
|
274
|
+
d(E, null, {
|
|
275
275
|
default: g(() => [
|
|
276
|
-
|
|
277
|
-
onSubmit:
|
|
276
|
+
x("form", {
|
|
277
|
+
onSubmit: e[3] || (e[3] = P((...L) => o.submit && o.submit(...L), ["prevent"]))
|
|
278
278
|
}, [
|
|
279
|
-
|
|
279
|
+
d(a, { height: "24" }, {
|
|
280
280
|
default: g(() => [
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
textContent: A(
|
|
284
|
-
}, null, 8,
|
|
285
|
-
|
|
286
|
-
|
|
281
|
+
d(s),
|
|
282
|
+
x("span", {
|
|
283
|
+
textContent: A(o.title)
|
|
284
|
+
}, null, 8, Xe),
|
|
285
|
+
d(s),
|
|
286
|
+
d(r, {
|
|
287
287
|
class: "mx-2",
|
|
288
288
|
icon: "mdi-download",
|
|
289
289
|
variant: "text",
|
|
290
290
|
density: "compact",
|
|
291
291
|
"data-test": "downloadIcon",
|
|
292
|
-
onClick:
|
|
292
|
+
onClick: o.download
|
|
293
293
|
}, null, 8, ["onClick"])
|
|
294
294
|
]),
|
|
295
295
|
_: 1
|
|
296
296
|
}),
|
|
297
|
-
|
|
297
|
+
d(k, null, {
|
|
298
298
|
default: g(() => [
|
|
299
|
-
|
|
300
|
-
n.readonly ?
|
|
301
|
-
|
|
302
|
-
default: g(() =>
|
|
303
|
-
|
|
299
|
+
x("div", Je, [
|
|
300
|
+
n.readonly ? q("", !0) : (y(), O("div", Qe, [
|
|
301
|
+
d(u, { class: "mt-3" }, {
|
|
302
|
+
default: g(() => e[5] || (e[5] = [
|
|
303
|
+
w(" Upload a file. ")
|
|
304
304
|
])),
|
|
305
305
|
_: 1
|
|
306
306
|
}),
|
|
307
|
-
|
|
307
|
+
d(u, {
|
|
308
308
|
"no-gutters": "",
|
|
309
309
|
align: "center"
|
|
310
310
|
}, {
|
|
311
311
|
default: g(() => [
|
|
312
|
-
c
|
|
312
|
+
d(c, { cols: "3" }, {
|
|
313
313
|
default: g(() => [
|
|
314
|
-
|
|
314
|
+
d(r, {
|
|
315
315
|
block: "",
|
|
316
316
|
color: "success",
|
|
317
|
-
disabled: !
|
|
318
|
-
loading:
|
|
317
|
+
disabled: !t.file || t.loadingFile || n.readonly,
|
|
318
|
+
loading: t.loadingFile,
|
|
319
319
|
"data-test": "editScreenLoadBtn",
|
|
320
|
-
onClick:
|
|
320
|
+
onClick: t.loadFile
|
|
321
321
|
}, {
|
|
322
|
-
loader: g(() =>
|
|
323
|
-
|
|
322
|
+
loader: g(() => e[6] || (e[6] = [
|
|
323
|
+
x("span", null, "Loading...", -1)
|
|
324
324
|
])),
|
|
325
325
|
default: g(() => [
|
|
326
|
-
|
|
326
|
+
e[7] || (e[7] = w(" Load "))
|
|
327
327
|
]),
|
|
328
328
|
_: 1
|
|
329
329
|
}, 8, ["disabled", "loading", "onClick"])
|
|
330
330
|
]),
|
|
331
331
|
_: 1
|
|
332
332
|
}),
|
|
333
|
-
c
|
|
333
|
+
d(c, { cols: "9" }, {
|
|
334
334
|
default: g(() => [
|
|
335
|
-
|
|
336
|
-
modelValue:
|
|
337
|
-
"onUpdate:modelValue":
|
|
335
|
+
d(h, {
|
|
336
|
+
modelValue: t.file,
|
|
337
|
+
"onUpdate:modelValue": e[0] || (e[0] = (L) => t.file = L),
|
|
338
338
|
accept: ".json",
|
|
339
339
|
label: "Click to select .json file.",
|
|
340
340
|
disabled: n.readonly
|
|
@@ -346,25 +346,25 @@ function Oe(e, t, n, o, l, i) {
|
|
|
346
346
|
_: 1
|
|
347
347
|
})
|
|
348
348
|
])),
|
|
349
|
-
|
|
349
|
+
d(u, { "no-gutters": "" }, {
|
|
350
350
|
default: g(() => [
|
|
351
|
-
|
|
351
|
+
x("pre", {
|
|
352
352
|
ref: "editor",
|
|
353
353
|
class: "editor",
|
|
354
|
-
onContextmenu:
|
|
354
|
+
onContextmenu: e[1] || (e[1] = P((...L) => o.showContextMenu && o.showContextMenu(...L), ["prevent"]))
|
|
355
355
|
}, null, 544),
|
|
356
|
-
|
|
357
|
-
modelValue:
|
|
358
|
-
"onUpdate:modelValue":
|
|
359
|
-
target: [
|
|
356
|
+
d(v, {
|
|
357
|
+
modelValue: i.contextMenu,
|
|
358
|
+
"onUpdate:modelValue": e[2] || (e[2] = (L) => i.contextMenu = L),
|
|
359
|
+
target: [i.menuX, i.menuY]
|
|
360
360
|
}, {
|
|
361
361
|
default: g(() => [
|
|
362
|
-
|
|
362
|
+
d(p, null, {
|
|
363
363
|
default: g(() => [
|
|
364
|
-
|
|
364
|
+
d(m, {
|
|
365
365
|
title: "Toggle Vim mode",
|
|
366
366
|
"prepend-icon": "extras:vim",
|
|
367
|
-
onClick:
|
|
367
|
+
onClick: o.toggleVimMode
|
|
368
368
|
}, null, 8, ["onClick"])
|
|
369
369
|
]),
|
|
370
370
|
_: 1
|
|
@@ -375,41 +375,41 @@ function Oe(e, t, n, o, l, i) {
|
|
|
375
375
|
]),
|
|
376
376
|
_: 1
|
|
377
377
|
}),
|
|
378
|
-
|
|
378
|
+
d(u, { class: "my-3" }, {
|
|
379
379
|
default: g(() => [
|
|
380
|
-
|
|
380
|
+
Fe(x("span", {
|
|
381
381
|
class: "text-red",
|
|
382
|
-
textContent: A(
|
|
383
|
-
}, null, 8,
|
|
384
|
-
[
|
|
382
|
+
textContent: A(o.error)
|
|
383
|
+
}, null, 8, Ze), [
|
|
384
|
+
[He, o.error]
|
|
385
385
|
])
|
|
386
386
|
]),
|
|
387
387
|
_: 1
|
|
388
388
|
}),
|
|
389
|
-
|
|
389
|
+
d(u, null, {
|
|
390
390
|
default: g(() => [
|
|
391
|
-
|
|
392
|
-
|
|
391
|
+
d(s),
|
|
392
|
+
d(r, {
|
|
393
393
|
variant: "outlined",
|
|
394
394
|
class: "mx-2",
|
|
395
395
|
"data-test": "editCancelBtn",
|
|
396
|
-
onClick:
|
|
396
|
+
onClick: P(o.close, ["prevent"])
|
|
397
397
|
}, {
|
|
398
|
-
default: g(() =>
|
|
399
|
-
|
|
398
|
+
default: g(() => e[8] || (e[8] = [
|
|
399
|
+
w(" Cancel ")
|
|
400
400
|
])),
|
|
401
401
|
_: 1
|
|
402
402
|
}, 8, ["onClick"]),
|
|
403
|
-
n.readonly ?
|
|
403
|
+
n.readonly ? q("", !0) : (y(), T(r, {
|
|
404
404
|
key: 0,
|
|
405
405
|
class: "mx-2",
|
|
406
406
|
color: "primary",
|
|
407
407
|
type: "submit",
|
|
408
408
|
"data-test": "editSubmitBtn",
|
|
409
|
-
disabled: !!
|
|
409
|
+
disabled: !!o.error || n.readonly
|
|
410
410
|
}, {
|
|
411
|
-
default: g(() =>
|
|
412
|
-
|
|
411
|
+
default: g(() => e[9] || (e[9] = [
|
|
412
|
+
w(" Save ")
|
|
413
413
|
])),
|
|
414
414
|
_: 1
|
|
415
415
|
}, 8, ["disabled"]))
|
|
@@ -428,7 +428,7 @@ function Oe(e, t, n, o, l, i) {
|
|
|
428
428
|
_: 1
|
|
429
429
|
}, 8, ["modelValue", "persistent"]);
|
|
430
430
|
}
|
|
431
|
-
const
|
|
431
|
+
const Xt = /* @__PURE__ */ j(Ke, [["render", et], ["__scopeId", "data-v-e84cb3ed"]]), tt = {
|
|
432
432
|
props: {
|
|
433
433
|
modelValue: Boolean,
|
|
434
434
|
plugin: String,
|
|
@@ -446,67 +446,67 @@ const ut = /* @__PURE__ */ q(Ie, [["render", Oe], ["__scopeId", "data-v-e84cb3ed
|
|
|
446
446
|
get() {
|
|
447
447
|
return this.modelValue;
|
|
448
448
|
},
|
|
449
|
-
set(
|
|
450
|
-
this.$emit("update:modelValue",
|
|
449
|
+
set(t) {
|
|
450
|
+
this.$emit("update:modelValue", t);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
},
|
|
454
454
|
created() {
|
|
455
|
-
for (const
|
|
456
|
-
|
|
457
|
-
(
|
|
458
|
-
|
|
459
|
-
name:
|
|
460
|
-
files:
|
|
455
|
+
for (const t of this.targets)
|
|
456
|
+
Be.get(`/openc3-api/targets/${t.name}/modified_files`).then(
|
|
457
|
+
(e) => {
|
|
458
|
+
e.data.length !== 0 && this.modifiedTargets.push({
|
|
459
|
+
name: t.name,
|
|
460
|
+
files: e.data
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
463
|
);
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
|
-
function
|
|
467
|
-
const s =
|
|
468
|
-
return
|
|
469
|
-
modelValue:
|
|
470
|
-
"onUpdate:modelValue":
|
|
466
|
+
function nt(t, e, n, l, i, o) {
|
|
467
|
+
const s = f("v-spacer"), r = f("v-toolbar"), a = f("v-list-item-title"), u = f("v-list-item-subtitle"), c = f("v-list-item"), h = f("v-checkbox"), m = f("v-card-text"), p = f("v-btn"), v = f("v-card-actions"), k = f("v-card"), E = f("v-dialog");
|
|
468
|
+
return y(), T(E, {
|
|
469
|
+
modelValue: o.show,
|
|
470
|
+
"onUpdate:modelValue": e[3] || (e[3] = (b) => o.show = b),
|
|
471
471
|
width: "600"
|
|
472
472
|
}, {
|
|
473
473
|
default: g(() => [
|
|
474
|
-
|
|
474
|
+
d(k, null, {
|
|
475
475
|
default: g(() => [
|
|
476
|
-
|
|
476
|
+
d(r, { height: "24" }, {
|
|
477
477
|
default: g(() => [
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
d(s),
|
|
479
|
+
e[4] || (e[4] = x("span", null, " Modified Plugin ", -1)),
|
|
480
|
+
d(s)
|
|
481
481
|
]),
|
|
482
482
|
_: 1
|
|
483
483
|
}),
|
|
484
|
-
|
|
484
|
+
d(m, { class: "pa-3" }, {
|
|
485
485
|
default: g(() => [
|
|
486
|
-
|
|
487
|
-
(
|
|
488
|
-
key:
|
|
486
|
+
x("div", null, " Plugin " + A(n.plugin) + " was modified. Would you like to delete the existing modified files? ", 1),
|
|
487
|
+
(y(!0), O(G, null, U(i.modifiedTargets, (b, L) => (y(), T(c, {
|
|
488
|
+
key: L,
|
|
489
489
|
lines: "two"
|
|
490
490
|
}, {
|
|
491
491
|
default: g(() => [
|
|
492
|
-
|
|
492
|
+
d(a, null, {
|
|
493
493
|
default: g(() => [
|
|
494
|
-
|
|
494
|
+
w(A(b.name), 1)
|
|
495
495
|
]),
|
|
496
496
|
_: 2
|
|
497
497
|
}, 1024),
|
|
498
|
-
(
|
|
498
|
+
(y(!0), O(G, null, U(b.files, (_, S) => (y(), T(u, { key: S }, {
|
|
499
499
|
default: g(() => [
|
|
500
|
-
|
|
500
|
+
w(A(_), 1)
|
|
501
501
|
]),
|
|
502
502
|
_: 2
|
|
503
503
|
}, 1024))), 128))
|
|
504
504
|
]),
|
|
505
505
|
_: 2
|
|
506
506
|
}, 1024))), 128)),
|
|
507
|
-
|
|
508
|
-
modelValue:
|
|
509
|
-
"onUpdate:modelValue":
|
|
507
|
+
d(h, {
|
|
508
|
+
modelValue: i.deleteModified,
|
|
509
|
+
"onUpdate:modelValue": e[0] || (e[0] = (b) => i.deleteModified = b),
|
|
510
510
|
label: "DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",
|
|
511
511
|
color: "error",
|
|
512
512
|
"data-test": "modified-plugin-delete-checkbox"
|
|
@@ -514,30 +514,30 @@ function Fe(e, t, n, o, l, i) {
|
|
|
514
514
|
]),
|
|
515
515
|
_: 1
|
|
516
516
|
}),
|
|
517
|
-
|
|
517
|
+
d(v, { class: "px-2" }, {
|
|
518
518
|
default: g(() => [
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
d(s),
|
|
520
|
+
d(p, {
|
|
521
521
|
variant: "outlined",
|
|
522
522
|
"data-test": "modified-plugin-cancel",
|
|
523
|
-
onClick:
|
|
524
|
-
|
|
523
|
+
onClick: e[1] || (e[1] = () => {
|
|
524
|
+
o.show = !1, t.$emit("cancel");
|
|
525
525
|
})
|
|
526
526
|
}, {
|
|
527
|
-
default: g(() =>
|
|
528
|
-
|
|
527
|
+
default: g(() => e[5] || (e[5] = [
|
|
528
|
+
w(" Cancel ")
|
|
529
529
|
])),
|
|
530
530
|
_: 1
|
|
531
531
|
}),
|
|
532
|
-
|
|
532
|
+
d(p, {
|
|
533
533
|
variant: "flat",
|
|
534
534
|
"data-test": "modified-plugin-submit",
|
|
535
|
-
onClick:
|
|
536
|
-
|
|
535
|
+
onClick: e[2] || (e[2] = () => {
|
|
536
|
+
o.show = !1, t.$emit("submit", i.deleteModified);
|
|
537
537
|
})
|
|
538
538
|
}, {
|
|
539
|
-
default: g(() =>
|
|
540
|
-
|
|
539
|
+
default: g(() => e[6] || (e[6] = [
|
|
540
|
+
w(" Confirm ")
|
|
541
541
|
])),
|
|
542
542
|
_: 1
|
|
543
543
|
})
|
|
@@ -551,70 +551,70 @@ function Fe(e, t, n, o, l, i) {
|
|
|
551
551
|
_: 1
|
|
552
552
|
}, 8, ["modelValue"]);
|
|
553
553
|
}
|
|
554
|
-
const
|
|
554
|
+
const Jt = /* @__PURE__ */ j(tt, [["render", nt]]), it = [
|
|
555
555
|
{
|
|
556
556
|
displayName: "Plugins",
|
|
557
557
|
name: "PluginsTab",
|
|
558
558
|
path: "plugins",
|
|
559
|
-
component: () => import("../PluginsTab-
|
|
559
|
+
component: () => import("../PluginsTab-Diu6vzUR.js")
|
|
560
560
|
},
|
|
561
561
|
{
|
|
562
562
|
displayName: "Targets",
|
|
563
563
|
name: "TargetsTab",
|
|
564
564
|
path: "targets",
|
|
565
|
-
component: () => import("../TargetsTab-
|
|
565
|
+
component: () => import("../TargetsTab-u-6nY7FX.js")
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
568
|
displayName: "Interfaces",
|
|
569
569
|
name: "InterfacesTab",
|
|
570
570
|
path: "interfaces",
|
|
571
|
-
component: () => import("../InterfacesTab-
|
|
571
|
+
component: () => import("../InterfacesTab-Cv50gOTl.js")
|
|
572
572
|
},
|
|
573
573
|
{
|
|
574
574
|
displayName: "Routers",
|
|
575
575
|
name: "RoutersTab",
|
|
576
576
|
path: "routers",
|
|
577
|
-
component: () => import("../RoutersTab-
|
|
577
|
+
component: () => import("../RoutersTab-CLwJ6J7T.js")
|
|
578
578
|
},
|
|
579
579
|
{
|
|
580
580
|
displayName: "Microservices",
|
|
581
581
|
name: "MicroservicesTab",
|
|
582
582
|
path: "microservices",
|
|
583
|
-
component: () => import("../MicroservicesTab-
|
|
583
|
+
component: () => import("../MicroservicesTab-DrqUNTBZ.js")
|
|
584
584
|
},
|
|
585
585
|
{
|
|
586
586
|
displayName: "Packages",
|
|
587
587
|
name: "PackagesTab",
|
|
588
588
|
path: "packages",
|
|
589
|
-
component: () => import("../PackagesTab-
|
|
589
|
+
component: () => import("../PackagesTab-CjcBp95A.js")
|
|
590
590
|
},
|
|
591
591
|
{
|
|
592
592
|
displayName: "Tools",
|
|
593
593
|
name: "ToolsTab",
|
|
594
594
|
path: "tools",
|
|
595
|
-
component: () => import("../ToolsTab-
|
|
595
|
+
component: () => import("../ToolsTab-BI6lImcw.js")
|
|
596
596
|
},
|
|
597
597
|
{
|
|
598
598
|
displayName: "Redis",
|
|
599
599
|
name: "RedisTab",
|
|
600
600
|
path: "redis",
|
|
601
|
-
component: () => import("../RedisTab-
|
|
601
|
+
component: () => import("../RedisTab-BWYQfcqX.js")
|
|
602
602
|
},
|
|
603
603
|
{
|
|
604
604
|
displayName: "Secrets",
|
|
605
605
|
name: "SecretsTab",
|
|
606
606
|
path: "secrets",
|
|
607
|
-
component: () => import("../SecretsTab-
|
|
607
|
+
component: () => import("../SecretsTab-CQNTFJAM.js")
|
|
608
608
|
},
|
|
609
609
|
{
|
|
610
610
|
displayName: "Settings",
|
|
611
611
|
name: "SettingsTab",
|
|
612
612
|
path: "settings",
|
|
613
|
-
component: () => import("../SettingsTab-
|
|
613
|
+
component: () => import("../SettingsTab-BAOaLzuc.js")
|
|
614
614
|
}
|
|
615
|
-
],
|
|
615
|
+
], ot = {
|
|
616
616
|
components: {
|
|
617
|
-
TopBar:
|
|
617
|
+
TopBar: Ge
|
|
618
618
|
},
|
|
619
619
|
data() {
|
|
620
620
|
return {
|
|
@@ -624,975 +624,838 @@ const ct = /* @__PURE__ */ q(Pe, [["render", Fe]]), Ue = [
|
|
|
624
624
|
},
|
|
625
625
|
computed: {
|
|
626
626
|
tabs: function() {
|
|
627
|
-
return
|
|
628
|
-
displayName:
|
|
629
|
-
path: { name:
|
|
627
|
+
return it.map((t) => ({
|
|
628
|
+
displayName: t.displayName,
|
|
629
|
+
path: { name: t.name }
|
|
630
630
|
}));
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
};
|
|
634
|
-
function
|
|
635
|
-
const s =
|
|
636
|
-
return
|
|
637
|
-
|
|
638
|
-
c
|
|
634
|
+
function lt(t, e, n, l, i, o) {
|
|
635
|
+
const s = f("top-bar"), r = f("v-tab"), a = f("v-tabs"), u = f("router-view"), c = f("v-card");
|
|
636
|
+
return y(), O("div", null, [
|
|
637
|
+
d(s, { title: i.title }, null, 8, ["title"]),
|
|
638
|
+
d(c, null, {
|
|
639
639
|
default: g(() => [
|
|
640
|
-
|
|
641
|
-
modelValue:
|
|
642
|
-
"onUpdate:modelValue":
|
|
640
|
+
d(a, {
|
|
641
|
+
modelValue: i.curTab,
|
|
642
|
+
"onUpdate:modelValue": e[0] || (e[0] = (h) => i.curTab = h),
|
|
643
643
|
"fixed-tabs": ""
|
|
644
644
|
}, {
|
|
645
645
|
default: g(() => [
|
|
646
|
-
(
|
|
647
|
-
key:
|
|
646
|
+
(y(!0), O(G, null, U(o.tabs, (h, m) => (y(), T(r, {
|
|
647
|
+
key: m,
|
|
648
648
|
to: h.path
|
|
649
649
|
}, {
|
|
650
650
|
default: g(() => [
|
|
651
|
-
|
|
651
|
+
w(A(h.displayName), 1)
|
|
652
652
|
]),
|
|
653
653
|
_: 2
|
|
654
654
|
}, 1032, ["to"]))), 128))
|
|
655
655
|
]),
|
|
656
656
|
_: 1
|
|
657
657
|
}, 8, ["modelValue"]),
|
|
658
|
-
|
|
658
|
+
d(u)
|
|
659
659
|
]),
|
|
660
660
|
_: 1
|
|
661
661
|
})
|
|
662
662
|
]);
|
|
663
663
|
}
|
|
664
|
-
const
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
let f = this.diff_compute_(e, t, i, l);
|
|
685
|
-
return r && f.unshift(new d.Diff(0, r)), a && f.push(new d.Diff(0, a)), this.diff_cleanupMerge(f), f;
|
|
686
|
-
};
|
|
687
|
-
d.prototype.diff_compute_ = function(e, t, n, o) {
|
|
688
|
-
let l;
|
|
689
|
-
if (!e) return [new d.Diff(1, t)];
|
|
690
|
-
if (!t) return [new d.Diff(-1, e)];
|
|
691
|
-
let i = e.length > t.length ? e : t, s = e.length > t.length ? t : e, r = i.indexOf(s);
|
|
692
|
-
return r != -1 ? (l = [new d.Diff(1, i.substring(0, r)), new d.Diff(0, s), new d.Diff(1, i.substring(r + s.length))], e.length > t.length && (l[0][0] = l[2][0] = -1), l) : s.length == 1 ? [new d.Diff(-1, e), new d.Diff(1, t)] : n && e.length > 100 && t.length > 100 ? this.diff_lineMode_(e, t, o) : this.diff_bisect_(e, t, o);
|
|
693
|
-
};
|
|
694
|
-
d.prototype.diff_lineMode_ = function(e, t, n) {
|
|
695
|
-
let o = this.diff_linesToChars_(e, t);
|
|
696
|
-
e = o.chars1, t = o.chars2;
|
|
697
|
-
let l = o.lineArray, i = this.diff_main(e, t, !1, n);
|
|
698
|
-
this.diff_charsToLines_(i, l), this.diff_cleanupSemantic(i), i.push(new d.Diff(0, ""));
|
|
699
|
-
let s = 0, r = 0, a = 0, f = "", u = "";
|
|
700
|
-
for (; s < i.length; ) {
|
|
701
|
-
switch (i[s][0]) {
|
|
702
|
-
case 1:
|
|
703
|
-
a++, u += i[s][1];
|
|
704
|
-
break;
|
|
705
|
-
case -1:
|
|
706
|
-
r++, f += i[s][1];
|
|
707
|
-
break;
|
|
708
|
-
case 0:
|
|
709
|
-
if (r >= 1 && a >= 1) {
|
|
710
|
-
i.splice(s - r - a, r + a), s = s - r - a;
|
|
711
|
-
let h = this.diff_main(f, u, !1, n);
|
|
712
|
-
for (let p = h.length - 1; p >= 0; p--) i.splice(s, 0, h[p]);
|
|
713
|
-
s = s + h.length;
|
|
714
|
-
}
|
|
715
|
-
a = 0, r = 0, f = "", u = "";
|
|
716
|
-
break;
|
|
717
|
-
}
|
|
718
|
-
s++;
|
|
664
|
+
const Qt = /* @__PURE__ */ j(ot, [["render", lt]]);
|
|
665
|
+
function te(t) {
|
|
666
|
+
const [e, n] = t;
|
|
667
|
+
return [e, n];
|
|
668
|
+
}
|
|
669
|
+
function le(t, e) {
|
|
670
|
+
let n = t, l = e;
|
|
671
|
+
const i = n.length, o = l.length;
|
|
672
|
+
if (i === 0 || o === 0)
|
|
673
|
+
return 0;
|
|
674
|
+
i > o ? n = n.substring(i - o) : i < o && (l = l.substring(0, i));
|
|
675
|
+
const s = Math.min(i, o);
|
|
676
|
+
if (n === l)
|
|
677
|
+
return s;
|
|
678
|
+
let r = 0, a = 1;
|
|
679
|
+
for (let u = 0; u !== -1; ) {
|
|
680
|
+
const c = n.substring(s - a);
|
|
681
|
+
if (u = l.indexOf(c), u === -1)
|
|
682
|
+
return r;
|
|
683
|
+
a += u, (u === 0 || n.substring(s - a) === l.substring(0, a)) && (r = a, a++);
|
|
719
684
|
}
|
|
720
|
-
return
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
685
|
+
return r;
|
|
686
|
+
}
|
|
687
|
+
function ne(t, e) {
|
|
688
|
+
if (!t || !e || t[0] !== e[0])
|
|
689
|
+
return 0;
|
|
690
|
+
let n = 0, l = Math.min(t.length, e.length), i = l, o = 0;
|
|
691
|
+
for (; n < i; )
|
|
692
|
+
t.substring(o, i) === e.substring(o, i) ? (n = i, o = n) : l = i, i = Math.floor((l - n) / 2 + n);
|
|
693
|
+
return i;
|
|
694
|
+
}
|
|
695
|
+
function Q(t, e) {
|
|
696
|
+
if (!t || !e || t[t.length - 1] !== e[e.length - 1])
|
|
697
|
+
return 0;
|
|
698
|
+
let n = 0, l = Math.min(t.length, e.length), i = l, o = 0;
|
|
699
|
+
for (; n < i; )
|
|
700
|
+
t.substring(t.length - i, t.length - o) === e.substring(e.length - i, e.length - o) ? (n = i, o = n) : l = i, i = Math.floor((l - n) / 2 + n);
|
|
701
|
+
return i;
|
|
702
|
+
}
|
|
703
|
+
function st(t) {
|
|
704
|
+
const e = t.charCodeAt(0);
|
|
705
|
+
return e >= 55296 && e <= 56319;
|
|
706
|
+
}
|
|
707
|
+
function rt(t) {
|
|
708
|
+
const e = t.charCodeAt(0);
|
|
709
|
+
return e >= 56320 && e <= 57343;
|
|
710
|
+
}
|
|
711
|
+
function at(t, e, n) {
|
|
712
|
+
const l = t.length, i = e.length, o = Math.ceil((l + i) / 2), s = o, r = 2 * o, a = new Array(r), u = new Array(r);
|
|
713
|
+
for (let E = 0; E < r; E++)
|
|
714
|
+
a[E] = -1, u[E] = -1;
|
|
715
|
+
a[s + 1] = 0, u[s + 1] = 0;
|
|
716
|
+
const c = l - i, h = c % 2 !== 0;
|
|
717
|
+
let m = 0, p = 0, v = 0, k = 0;
|
|
718
|
+
for (let E = 0; E < o && !(Date.now() > n); E++) {
|
|
719
|
+
for (let b = -E + m; b <= E - p; b += 2) {
|
|
720
|
+
const L = s + b;
|
|
721
|
+
let _;
|
|
722
|
+
b === -E || b !== E && a[L - 1] < a[L + 1] ? _ = a[L + 1] : _ = a[L - 1] + 1;
|
|
723
|
+
let S = _ - b;
|
|
724
|
+
for (; _ < l && S < i && t.charAt(_) === e.charAt(S); )
|
|
725
|
+
_++, S++;
|
|
726
|
+
if (a[L] = _, _ > l)
|
|
727
|
+
p += 2;
|
|
728
|
+
else if (S > i)
|
|
729
|
+
m += 2;
|
|
735
730
|
else if (h) {
|
|
736
|
-
|
|
737
|
-
if (
|
|
738
|
-
|
|
739
|
-
if (
|
|
731
|
+
const M = s + c - b;
|
|
732
|
+
if (M >= 0 && M < r && u[M] !== -1) {
|
|
733
|
+
const N = l - u[M];
|
|
734
|
+
if (_ >= N)
|
|
735
|
+
return se(t, e, _, S, n);
|
|
740
736
|
}
|
|
741
737
|
}
|
|
742
738
|
}
|
|
743
|
-
for (let b = -
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
739
|
+
for (let b = -E + v; b <= E - k; b += 2) {
|
|
740
|
+
const L = s + b;
|
|
741
|
+
let _;
|
|
742
|
+
b === -E || b !== E && u[L - 1] < u[L + 1] ? _ = u[L + 1] : _ = u[L - 1] + 1;
|
|
743
|
+
let S = _ - b;
|
|
744
|
+
for (; _ < l && S < i && t.charAt(l - _ - 1) === e.charAt(i - S - 1); )
|
|
745
|
+
_++, S++;
|
|
746
|
+
if (u[L] = _, _ > l)
|
|
747
|
+
k += 2;
|
|
748
|
+
else if (S > i)
|
|
749
|
+
v += 2;
|
|
750
750
|
else if (!h) {
|
|
751
|
-
|
|
752
|
-
if (
|
|
753
|
-
|
|
754
|
-
if (
|
|
751
|
+
const M = s + c - b;
|
|
752
|
+
if (M >= 0 && M < r && a[M] !== -1) {
|
|
753
|
+
const N = a[M], Z = s + N - M;
|
|
754
|
+
if (_ = l - _, N >= _)
|
|
755
|
+
return se(t, e, N, Z, n);
|
|
755
756
|
}
|
|
756
757
|
}
|
|
757
758
|
}
|
|
758
759
|
}
|
|
759
|
-
return [
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
760
|
+
return [
|
|
761
|
+
[V, t],
|
|
762
|
+
[I, e]
|
|
763
|
+
];
|
|
764
|
+
}
|
|
765
|
+
function se(t, e, n, l, i) {
|
|
766
|
+
const o = t.substring(0, n), s = e.substring(0, l), r = t.substring(n), a = e.substring(l), u = F(o, s, { checkLines: !1, deadline: i }), c = F(r, a, { checkLines: !1, deadline: i });
|
|
767
|
+
return u.concat(c);
|
|
768
|
+
}
|
|
769
|
+
function ut(t, e, n = 1) {
|
|
770
|
+
if (n <= 0)
|
|
771
|
+
return null;
|
|
772
|
+
const l = t.length > e.length ? t : e, i = t.length > e.length ? e : t;
|
|
773
|
+
if (l.length < 4 || i.length * 2 < l.length)
|
|
774
|
+
return null;
|
|
775
|
+
const o = re(l, i, Math.ceil(l.length / 4)), s = re(l, i, Math.ceil(l.length / 2));
|
|
776
|
+
let r;
|
|
777
|
+
if (o && s)
|
|
778
|
+
r = o[4].length > s[4].length ? o : s;
|
|
779
|
+
else {
|
|
780
|
+
if (!o && !s)
|
|
781
|
+
return null;
|
|
782
|
+
s ? o || (r = s) : r = o;
|
|
783
|
+
}
|
|
784
|
+
if (!r)
|
|
785
|
+
throw new Error("Unable to find a half match.");
|
|
786
|
+
let a, u, c, h;
|
|
787
|
+
t.length > e.length ? (a = r[0], u = r[1], c = r[2], h = r[3]) : (c = r[0], h = r[1], a = r[2], u = r[3]);
|
|
788
|
+
const m = r[4];
|
|
789
|
+
return [a, u, c, h, m];
|
|
790
|
+
}
|
|
791
|
+
function re(t, e, n) {
|
|
792
|
+
const l = t.slice(n, n + Math.floor(t.length / 4));
|
|
793
|
+
let i = -1, o = "", s, r, a, u;
|
|
794
|
+
for (; (i = e.indexOf(l, i + 1)) !== -1; ) {
|
|
795
|
+
const c = ne(t.slice(n), e.slice(i)), h = Q(t.slice(0, n), e.slice(0, i));
|
|
796
|
+
o.length < h + c && (o = e.slice(i - h, i) + e.slice(i, i + c), s = t.slice(0, n - h), r = t.slice(n + c), a = e.slice(0, i - h), u = e.slice(i + c));
|
|
797
|
+
}
|
|
798
|
+
return o.length * 2 >= t.length ? [
|
|
799
|
+
s || "",
|
|
800
|
+
r || "",
|
|
801
|
+
a || "",
|
|
802
|
+
u || "",
|
|
803
|
+
o || ""
|
|
804
|
+
] : null;
|
|
805
|
+
}
|
|
806
|
+
function ct(t, e) {
|
|
807
|
+
for (let n = 0; n < t.length; n++) {
|
|
808
|
+
const l = t[n][1], i = [];
|
|
809
|
+
for (let o = 0; o < l.length; o++)
|
|
810
|
+
i[o] = e[l.charCodeAt(o)];
|
|
811
|
+
t[n][1] = i.join("");
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
function dt(t, e) {
|
|
815
|
+
const n = [], l = {};
|
|
767
816
|
n[0] = "";
|
|
768
|
-
function
|
|
769
|
-
let
|
|
817
|
+
function i(a) {
|
|
818
|
+
let u = "", c = 0, h = -1, m = n.length;
|
|
770
819
|
for (; h < a.length - 1; ) {
|
|
771
820
|
h = a.indexOf(`
|
|
772
|
-
`,
|
|
773
|
-
let
|
|
774
|
-
(
|
|
821
|
+
`, c), h === -1 && (h = a.length - 1);
|
|
822
|
+
let p = a.slice(c, h + 1);
|
|
823
|
+
(l.hasOwnProperty ? l.hasOwnProperty(p) : l[p] !== void 0) ? u += String.fromCharCode(l[p]) : (m === o && (p = a.slice(c), h = a.length), u += String.fromCharCode(m), l[p] = m, n[m++] = p), c = h + 1;
|
|
775
824
|
}
|
|
776
|
-
return
|
|
825
|
+
return u;
|
|
777
826
|
}
|
|
778
|
-
let
|
|
779
|
-
|
|
780
|
-
|
|
827
|
+
let o = 4e4;
|
|
828
|
+
const s = i(t);
|
|
829
|
+
o = 65535;
|
|
830
|
+
const r = i(e);
|
|
781
831
|
return { chars1: s, chars2: r, lineArray: n };
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
let n = 0, o = Math.min(e.length, t.length), l = o, i = 0;
|
|
799
|
-
for (; n < l; ) e.substring(e.length - l, e.length - i) == t.substring(t.length - l, t.length - i) ? (n = l, i = n) : o = l, l = Math.floor((o - n) / 2 + n);
|
|
800
|
-
return l;
|
|
801
|
-
};
|
|
802
|
-
d.prototype.diff_commonOverlap_ = function(e, t) {
|
|
803
|
-
let n = e.length, o = t.length;
|
|
804
|
-
if (n == 0 || o == 0) return 0;
|
|
805
|
-
n > o ? e = e.substring(n - o) : n < o && (t = t.substring(0, n));
|
|
806
|
-
let l = Math.min(n, o);
|
|
807
|
-
if (e == t) return l;
|
|
808
|
-
let i = 0, s = 1;
|
|
809
|
-
for (; ; ) {
|
|
810
|
-
let r = e.substring(l - s), a = t.indexOf(r);
|
|
811
|
-
if (a == -1) return i;
|
|
812
|
-
s += a, (a == 0 || e.substring(l - s) == t.substring(0, s)) && (i = s, s++);
|
|
813
|
-
}
|
|
814
|
-
};
|
|
815
|
-
d.prototype.diff_halfMatch_ = function(e, t) {
|
|
816
|
-
if (this.Diff_Timeout <= 0) return null;
|
|
817
|
-
let n = e.length > t.length ? e : t, o = e.length > t.length ? t : e;
|
|
818
|
-
if (n.length < 4 || o.length * 2 < n.length) return null;
|
|
819
|
-
let l = this;
|
|
820
|
-
function i(w, C, y) {
|
|
821
|
-
let b = w.substring(y, y + Math.floor(w.length / 4)), v = -1, x = "", L, k, N, O;
|
|
822
|
-
for (; (v = C.indexOf(b, v + 1)) != -1; ) {
|
|
823
|
-
let P = l.diff_commonPrefix(w.substring(y), C.substring(v)), F = l.diff_commonSuffix(w.substring(0, y), C.substring(0, v));
|
|
824
|
-
x.length < F + P && (x = C.substring(v - F, v) + C.substring(v, v + P), L = w.substring(0, y - F), k = w.substring(y + P), N = C.substring(0, v - F), O = C.substring(v + P));
|
|
825
|
-
}
|
|
826
|
-
return x.length * 2 >= w.length ? [L, k, N, O, x] : null;
|
|
827
|
-
}
|
|
828
|
-
let s = i(n, o, Math.ceil(n.length / 4)), r = i(n, o, Math.ceil(n.length / 2)), a;
|
|
829
|
-
if (!s && !r) return null;
|
|
830
|
-
r ? s ? a = s[4].length > r[4].length ? s : r : a = r : a = s;
|
|
831
|
-
let f, u, h, p;
|
|
832
|
-
e.length > t.length ? (f = a[0], u = a[1], h = a[2], p = a[3]) : (h = a[0], p = a[1], f = a[2], u = a[3]);
|
|
833
|
-
let _ = a[4];
|
|
834
|
-
return [f, u, h, p, _];
|
|
835
|
-
};
|
|
836
|
-
d.prototype.diff_cleanupSemantic = function(e) {
|
|
837
|
-
let t = !1, n = [], o = 0, l = null, i = 0, s = 0, r = 0, a = 0, f = 0;
|
|
838
|
-
for (; i < e.length; ) e[i][0] == 0 ? (n[o++] = i, s = a, r = f, a = 0, f = 0, l = e[i][1]) : (e[i][0] == 1 ? a += e[i][1].length : f += e[i][1].length, l && l.length <= Math.max(s, r) && l.length <= Math.max(a, f) && (e.splice(n[o - 1], 0, new d.Diff(-1, l)), e[n[o - 1] + 1][0] = 1, o--, o--, i = o > 0 ? n[o - 1] : -1, s = 0, r = 0, a = 0, f = 0, l = null, t = !0)), i++;
|
|
839
|
-
for (t && this.diff_cleanupMerge(e), this.diff_cleanupSemanticLossless(e), i = 1; i < e.length; ) {
|
|
840
|
-
if (e[i - 1][0] == -1 && e[i][0] == 1) {
|
|
841
|
-
let u = e[i - 1][1], h = e[i][1], p = this.diff_commonOverlap_(u, h), _ = this.diff_commonOverlap_(h, u);
|
|
842
|
-
p >= _ ? (p >= u.length / 2 || p >= h.length / 2) && (e.splice(i, 0, new d.Diff(0, h.substring(0, p))), e[i - 1][1] = u.substring(0, u.length - p), e[i + 1][1] = h.substring(p), i++) : (_ >= u.length / 2 || _ >= h.length / 2) && (e.splice(i, 0, new d.Diff(0, u.substring(0, _))), e[i - 1][0] = 1, e[i - 1][1] = h.substring(0, h.length - _), e[i + 1][0] = -1, e[i + 1][1] = u.substring(_), i++), i++;
|
|
843
|
-
}
|
|
844
|
-
i++;
|
|
845
|
-
}
|
|
846
|
-
};
|
|
847
|
-
d.prototype.diff_cleanupSemanticLossless = function(e) {
|
|
848
|
-
function t(o, l) {
|
|
849
|
-
if (!o || !l) return 6;
|
|
850
|
-
let i = o.charAt(o.length - 1), s = l.charAt(0), r = i.match(d.nonAlphaNumericRegex_), a = s.match(d.nonAlphaNumericRegex_), f = r && i.match(d.whitespaceRegex_), u = a && s.match(d.whitespaceRegex_), h = f && i.match(d.linebreakRegex_), p = u && s.match(d.linebreakRegex_), _ = h && o.match(d.blanklineEndRegex_), w = p && l.match(d.blanklineStartRegex_);
|
|
851
|
-
return _ || w ? 5 : h || p ? 4 : r && !f && u ? 3 : f || u ? 2 : r || a ? 1 : 0;
|
|
852
|
-
}
|
|
853
|
-
let n = 1;
|
|
854
|
-
for (; n < e.length - 1; ) {
|
|
855
|
-
if (e[n - 1][0] == 0 && e[n + 1][0] == 0) {
|
|
856
|
-
let o = e[n - 1][1], l = e[n][1], i = e[n + 1][1], s = this.diff_commonSuffix(o, l);
|
|
857
|
-
if (s) {
|
|
858
|
-
o[o.length - s] === `
|
|
859
|
-
` && (s -= 1);
|
|
860
|
-
let h = l.substring(l.length - s);
|
|
861
|
-
o = o.substring(0, o.length - s), l = h + l.substring(0, l.length - s), i = h + i;
|
|
862
|
-
}
|
|
863
|
-
let r = o, a = l, f = i, u = t(o, l) + t(l, i);
|
|
864
|
-
for (; l.charAt(0) === i.charAt(0); ) {
|
|
865
|
-
o += l.charAt(0), l = l.substring(1) + i.charAt(0), i = i.substring(1);
|
|
866
|
-
let h = t(o, l) + t(l, i);
|
|
867
|
-
h >= u && (u = h, r = o, a = l, f = i);
|
|
868
|
-
}
|
|
869
|
-
e[n - 1][1] != r && (r ? e[n - 1][1] = r : (e.splice(n - 1, 1), n--), e[n][1] = a, f ? e[n + 1][1] = f : (e.splice(n + 1, 1), n--));
|
|
870
|
-
}
|
|
871
|
-
n++;
|
|
872
|
-
}
|
|
873
|
-
};
|
|
874
|
-
d.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/;
|
|
875
|
-
d.whitespaceRegex_ = /\s/;
|
|
876
|
-
d.linebreakRegex_ = /[\r\n]/;
|
|
877
|
-
d.blanklineEndRegex_ = /\n\r?\n$/;
|
|
878
|
-
d.blanklineStartRegex_ = /^\r?\n\r?\n/;
|
|
879
|
-
d.prototype.diff_cleanupEfficiency = function(e) {
|
|
880
|
-
let t = !1, n = [], o = 0, l = null, i = 0, s = !1, r = !1, a = !1, f = !1;
|
|
881
|
-
for (; i < e.length; ) e[i][0] == 0 ? (e[i][1].length < this.Diff_EditCost && (a || f) ? (n[o++] = i, s = a, r = f, l = e[i][1]) : (o = 0, l = null), a = f = !1) : (e[i][0] == -1 ? f = !0 : a = !0, l && (s && r && a && f || l.length < this.Diff_EditCost / 2 && s + r + a + f == 3) && (e.splice(n[o - 1], 0, new d.Diff(-1, l)), e[n[o - 1] + 1][0] = 1, o--, l = null, s && r ? (a = f = !0, o = 0) : (o--, i = o > 0 ? n[o - 1] : -1, a = f = !1), t = !0)), i++;
|
|
882
|
-
t && this.diff_cleanupMerge(e);
|
|
883
|
-
};
|
|
884
|
-
d.prototype.diff_cleanupMerge = function(e) {
|
|
885
|
-
e.push(new d.Diff(0, ""));
|
|
886
|
-
let t = 0, n = 0, o = 0, l = "", i = "", s;
|
|
887
|
-
for (; t < e.length; ) switch (e[t][0]) {
|
|
888
|
-
case 1:
|
|
889
|
-
o++, i += e[t][1], t++;
|
|
890
|
-
break;
|
|
891
|
-
case -1:
|
|
892
|
-
n++, l += e[t][1], t++;
|
|
893
|
-
break;
|
|
894
|
-
case 0:
|
|
895
|
-
n + o > 1 ? (n !== 0 && o !== 0 && (s = this.diff_commonPrefix(i, l), s !== 0 && (t - n - o > 0 && e[t - n - o - 1][0] == 0 ? e[t - n - o - 1][1] += i.substring(0, s) : (e.splice(0, 0, new d.Diff(0, i.substring(0, s))), t++), i = i.substring(s), l = l.substring(s)), s = this.diff_commonSuffix(i, l), s !== 0 && (e[t][1] = i.substring(i.length - s) + e[t][1], i = i.substring(0, i.length - s), l = l.substring(0, l.length - s))), t -= n + o, e.splice(t, n + o), l.length && (e.splice(t, 0, new d.Diff(-1, l)), t++), i.length && (e.splice(t, 0, new d.Diff(1, i)), t++), t++) : t !== 0 && e[t - 1][0] == 0 ? (e[t - 1][1] += e[t][1], e.splice(t, 1)) : t++, o = 0, n = 0, l = "", i = "";
|
|
896
|
-
break;
|
|
897
|
-
}
|
|
898
|
-
e[e.length - 1][1] === "" && e.pop();
|
|
899
|
-
let r = !1;
|
|
900
|
-
for (t = 1; t < e.length - 1; ) e[t - 1][0] == 0 && e[t + 1][0] == 0 && (e[t][1].substring(e[t][1].length - e[t - 1][1].length) == e[t - 1][1] ? (e[t][1] = e[t - 1][1] + e[t][1].substring(0, e[t][1].length - e[t - 1][1].length), e[t + 1][1] = e[t - 1][1] + e[t + 1][1], e.splice(t - 1, 1), r = !0) : e[t][1].substring(0, e[t + 1][1].length) == e[t + 1][1] && (e[t - 1][1] += e[t + 1][1], e[t][1] = e[t][1].substring(e[t + 1][1].length) + e[t + 1][1], e.splice(t + 1, 1), r = !0)), t++;
|
|
901
|
-
r && this.diff_cleanupMerge(e);
|
|
902
|
-
};
|
|
903
|
-
d.prototype.diff_cleanupSplitSurrogates = function(e) {
|
|
904
|
-
let t;
|
|
905
|
-
for (let n = 0; n < e.length; n++) {
|
|
906
|
-
let o = e[n], l = o[1][0], i = o[1][o[1].length - 1];
|
|
907
|
-
if (o[1].length === 0) {
|
|
908
|
-
e.splice(n--, 1);
|
|
909
|
-
continue;
|
|
910
|
-
}
|
|
911
|
-
if (i && this.isHighSurrogate(i) && (t = i, o[1] = o[1].slice(0, -1)), t && l && this.isHighSurrogate(t) && this.isLowSurrogate(l) && (o[1] = t + o[1]), o[1].length === 0) {
|
|
912
|
-
e.splice(n--, 1);
|
|
913
|
-
continue;
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
return e;
|
|
917
|
-
};
|
|
918
|
-
d.prototype.isHighSurrogate = function(e) {
|
|
919
|
-
let t = e.charCodeAt(0);
|
|
920
|
-
return t >= 55296 && t <= 56319;
|
|
921
|
-
};
|
|
922
|
-
d.prototype.isLowSurrogate = function(e) {
|
|
923
|
-
let t = e.charCodeAt(0);
|
|
924
|
-
return t >= 56320 && t <= 57343;
|
|
925
|
-
};
|
|
926
|
-
d.prototype.digit16 = function(e) {
|
|
927
|
-
switch (e) {
|
|
928
|
-
case "0":
|
|
929
|
-
return 0;
|
|
930
|
-
case "1":
|
|
931
|
-
return 1;
|
|
932
|
-
case "2":
|
|
933
|
-
return 2;
|
|
934
|
-
case "3":
|
|
935
|
-
return 3;
|
|
936
|
-
case "4":
|
|
937
|
-
return 4;
|
|
938
|
-
case "5":
|
|
939
|
-
return 5;
|
|
940
|
-
case "6":
|
|
941
|
-
return 6;
|
|
942
|
-
case "7":
|
|
943
|
-
return 7;
|
|
944
|
-
case "8":
|
|
945
|
-
return 8;
|
|
946
|
-
case "9":
|
|
947
|
-
return 9;
|
|
948
|
-
case "A":
|
|
949
|
-
case "a":
|
|
950
|
-
return 10;
|
|
951
|
-
case "B":
|
|
952
|
-
case "b":
|
|
953
|
-
return 11;
|
|
954
|
-
case "C":
|
|
955
|
-
case "c":
|
|
956
|
-
return 12;
|
|
957
|
-
case "D":
|
|
958
|
-
case "d":
|
|
959
|
-
return 13;
|
|
960
|
-
case "E":
|
|
961
|
-
case "e":
|
|
962
|
-
return 14;
|
|
963
|
-
case "F":
|
|
964
|
-
case "f":
|
|
965
|
-
return 15;
|
|
966
|
-
default:
|
|
967
|
-
throw new Error("Invalid hex-code");
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
d.prototype.decodeURI = function(e) {
|
|
971
|
-
try {
|
|
972
|
-
return decodeURI(e);
|
|
973
|
-
} catch {
|
|
974
|
-
let t = 0, n = "";
|
|
975
|
-
for (; t < e.length; ) {
|
|
976
|
-
if (e[t] !== "%") {
|
|
977
|
-
n += e[t++];
|
|
978
|
-
continue;
|
|
979
|
-
}
|
|
980
|
-
let o = (this.digit16(e[t + 1]) << 4) + this.digit16(e[t + 2]);
|
|
981
|
-
if ((o & 128) === 0) {
|
|
982
|
-
n += String.fromCharCode(o), t += 3;
|
|
983
|
-
continue;
|
|
984
|
-
}
|
|
985
|
-
if (e[t + 3] !== "%") throw new URIError("URI malformed");
|
|
986
|
-
let l = (this.digit16(e[t + 4]) << 4) + this.digit16(e[t + 5]);
|
|
987
|
-
if ((l & 192) !== 128) throw new URIError("URI malformed");
|
|
988
|
-
if (l = l & 63, (o & 224) === 192) {
|
|
989
|
-
n += String.fromCharCode((o & 31) << 6 | l), t += 6;
|
|
990
|
-
continue;
|
|
991
|
-
}
|
|
992
|
-
if (e[t + 6] !== "%") throw new URIError("URI malformed");
|
|
993
|
-
let i = (this.digit16(e[t + 7]) << 4) + this.digit16(e[t + 8]);
|
|
994
|
-
if ((i & 192) !== 128) throw new URIError("URI malformed");
|
|
995
|
-
if (i = i & 63, (o & 240) === 224) {
|
|
996
|
-
n += String.fromCharCode((o & 15) << 12 | l << 6 | i), t += 9;
|
|
997
|
-
continue;
|
|
998
|
-
}
|
|
999
|
-
if (e[t + 9] !== "%") throw new URIError("URI malformed");
|
|
1000
|
-
let s = (this.digit16(e[t + 10]) << 4) + this.digit16(e[t + 11]);
|
|
1001
|
-
if ((s & 192) !== 128) throw new URIError("URI malformed");
|
|
1002
|
-
if (s = s & 63, (o & 248) === 240) {
|
|
1003
|
-
let r = (o & 7) << 18 | l << 12 | i << 6 | s;
|
|
1004
|
-
if (r >= 65536 && r <= 1114111) {
|
|
1005
|
-
n += String.fromCharCode((r & 65535) >>> 10 & 1023 | 55296), n += String.fromCharCode(56320 | r & 65535 & 1023), t += 12;
|
|
1006
|
-
continue;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
throw new URIError("URI malformed");
|
|
1010
|
-
}
|
|
1011
|
-
return n;
|
|
1012
|
-
}
|
|
1013
|
-
};
|
|
1014
|
-
d.prototype.diff_xIndex = function(e, t) {
|
|
1015
|
-
let n = 0, o = 0, l = 0, i = 0, s;
|
|
1016
|
-
for (s = 0; s < e.length && (e[s][0] !== 1 && (n += e[s][1].length), e[s][0] !== -1 && (o += e[s][1].length), !(n > t)); s++) l = n, i = o;
|
|
1017
|
-
return e.length != s && e[s][0] === -1 ? i : i + (t - l);
|
|
1018
|
-
};
|
|
1019
|
-
d.prototype.diff_prettyHtml = function(e) {
|
|
1020
|
-
e = this.diff_cleanupSplitSurrogates(e);
|
|
1021
|
-
let t = [], n = /&/g, o = /</g, l = />/g, i = /\n/g;
|
|
1022
|
-
for (let s = 0; s < e.length; s++) {
|
|
1023
|
-
let r = e[s][0], a = e[s][1].replace(n, "&").replace(o, "<").replace(l, ">").replace(i, "¶<br>");
|
|
1024
|
-
switch (r) {
|
|
1025
|
-
case 1:
|
|
1026
|
-
t[s] = '<ins style="background:#e6ffe6;">' + a + "</ins>";
|
|
1027
|
-
break;
|
|
1028
|
-
case -1:
|
|
1029
|
-
t[s] = '<del style="background:#ffe6e6;">' + a + "</del>";
|
|
1030
|
-
break;
|
|
1031
|
-
case 0:
|
|
1032
|
-
t[s] = "<span>" + a + "</span>";
|
|
1033
|
-
break;
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
return t.join("");
|
|
1037
|
-
};
|
|
1038
|
-
d.prototype.diff_text1 = function(e) {
|
|
1039
|
-
let t = [];
|
|
1040
|
-
for (let n = 0; n < e.length; n++) e[n][0] !== 1 && (t[n] = e[n][1]);
|
|
1041
|
-
return t.join("");
|
|
1042
|
-
};
|
|
1043
|
-
d.prototype.diff_text2 = function(e) {
|
|
1044
|
-
let t = [];
|
|
1045
|
-
for (let n = 0; n < e.length; n++) e[n][0] !== -1 && (t[n] = e[n][1]);
|
|
1046
|
-
return t.join("");
|
|
1047
|
-
};
|
|
1048
|
-
d.prototype.diff_levenshtein = function(e) {
|
|
1049
|
-
let t = 0, n = 0, o = 0;
|
|
1050
|
-
for (let l = 0; l < e.length; l++) {
|
|
1051
|
-
let i = e[l][0], s = e[l][1];
|
|
1052
|
-
switch (i) {
|
|
1053
|
-
case 1:
|
|
1054
|
-
n += s.length;
|
|
1055
|
-
break;
|
|
1056
|
-
case -1:
|
|
1057
|
-
o += s.length;
|
|
832
|
+
}
|
|
833
|
+
function ht(t, e, n) {
|
|
834
|
+
let l = t, i = e;
|
|
835
|
+
const o = dt(l, i);
|
|
836
|
+
l = o.chars1, i = o.chars2;
|
|
837
|
+
const s = o.lineArray;
|
|
838
|
+
let r = F(l, i, {
|
|
839
|
+
checkLines: !1,
|
|
840
|
+
deadline: n.deadline
|
|
841
|
+
});
|
|
842
|
+
ct(r, s), r = ke(r), r.push([$, ""]);
|
|
843
|
+
let a = 0, u = 0, c = 0, h = "", m = "";
|
|
844
|
+
for (; a < r.length; ) {
|
|
845
|
+
switch (r[a][0]) {
|
|
846
|
+
case I:
|
|
847
|
+
c++, m += r[a][1];
|
|
1058
848
|
break;
|
|
1059
|
-
case
|
|
1060
|
-
|
|
849
|
+
case V:
|
|
850
|
+
u++, h += r[a][1];
|
|
1061
851
|
break;
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
break;
|
|
1073
|
-
case -1:
|
|
1074
|
-
t[n] = "-" + e[n][1].length;
|
|
1075
|
-
break;
|
|
1076
|
-
case 0:
|
|
1077
|
-
t[n] = "=" + e[n][1].length;
|
|
1078
|
-
break;
|
|
1079
|
-
}
|
|
1080
|
-
return t.join(" ").replace(/%20/g, " ");
|
|
1081
|
-
};
|
|
1082
|
-
d.prototype.diff_fromDelta = function(e, t) {
|
|
1083
|
-
let n = 0, o = "", l = [], i = 0, s = 0, r = t.split(/\t/g);
|
|
1084
|
-
for (let a = 0; a < r.length; a++) {
|
|
1085
|
-
let f = r[a].substring(1);
|
|
1086
|
-
switch (r[a].charAt(0)) {
|
|
1087
|
-
case "+":
|
|
1088
|
-
try {
|
|
1089
|
-
l[i++] = new d.Diff(1, this.decodeURI(f));
|
|
1090
|
-
} catch {
|
|
1091
|
-
throw new Error("Illegal escape in diff_fromDelta: " + f);
|
|
852
|
+
case $:
|
|
853
|
+
if (u >= 1 && c >= 1) {
|
|
854
|
+
r.splice(a - u - c, u + c), a = a - u - c;
|
|
855
|
+
const p = F(h, m, {
|
|
856
|
+
checkLines: !1,
|
|
857
|
+
deadline: n.deadline
|
|
858
|
+
});
|
|
859
|
+
for (let v = p.length - 1; v >= 0; v--)
|
|
860
|
+
r.splice(a, 0, p[v]);
|
|
861
|
+
a += p.length;
|
|
1092
862
|
}
|
|
1093
|
-
|
|
1094
|
-
case "-":
|
|
1095
|
-
case "=":
|
|
1096
|
-
if (n = parseInt(f, 10), isNaN(n) || n < 0) throw new Error("Invalid number in diff_fromDelta: " + f);
|
|
1097
|
-
o = e.substring(s, s += n), r[a].charAt(0) == "=" ? l[i++] = new d.Diff(0, o) : l[i++] = new d.Diff(-1, o);
|
|
863
|
+
c = 0, u = 0, h = "", m = "";
|
|
1098
864
|
break;
|
|
1099
865
|
default:
|
|
1100
|
-
|
|
866
|
+
throw new Error("Unknown diff operation.");
|
|
1101
867
|
}
|
|
868
|
+
a++;
|
|
1102
869
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
if (
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
for (let b = C; b >= w; b--) {
|
|
1128
|
-
let v = o[e.charAt(b - 1)];
|
|
1129
|
-
if (_ === 0 ? y[b] = (y[b + 1] << 1 | 1) & v : y[b] = (y[b + 1] << 1 | 1) & v | ((p[b + 1] | p[b]) << 1 | 1) | p[b + 1], y[b] & a) {
|
|
1130
|
-
let x = i(_, b - 1);
|
|
1131
|
-
if (x <= s) if (s = x, r = b - 1, r > n) w = Math.max(1, 2 * n - r);
|
|
1132
|
-
else break;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
if (i(_ + 1, n) > s) break;
|
|
1136
|
-
p = y;
|
|
1137
|
-
}
|
|
1138
|
-
return r;
|
|
1139
|
-
};
|
|
1140
|
-
d.prototype.match_alphabet_ = function(e) {
|
|
1141
|
-
let t = {};
|
|
1142
|
-
for (let n = 0; n < e.length; n++) t[e.charAt(n)] = 0;
|
|
1143
|
-
for (let n = 0; n < e.length; n++) t[e.charAt(n)] |= 1 << e.length - n - 1;
|
|
1144
|
-
return t;
|
|
1145
|
-
};
|
|
1146
|
-
d.prototype.patch_addContext_ = function(e, t) {
|
|
1147
|
-
if (t.length == 0) return;
|
|
1148
|
-
if (e.start2 === null) throw Error("patch not initialized");
|
|
1149
|
-
let n = t.substring(e.start2, e.start2 + e.length1), o = 0;
|
|
1150
|
-
for (; t.indexOf(n) != t.lastIndexOf(n) && n.length < this.Match_MaxBits - this.Patch_Margin - this.Patch_Margin; ) o += this.Patch_Margin, n = t.substring(e.start2 - o, e.start2 + e.length1 + o);
|
|
1151
|
-
o += this.Patch_Margin, e.start2 - o > 0 && d.prototype.isLowSurrogate(t[e.start2 - o]) && o++;
|
|
1152
|
-
let l = t.substring(e.start2 - o, e.start2);
|
|
1153
|
-
l && e.diffs.unshift(new d.Diff(0, l)), e.start2 + e.length1 + o < t.length && d.prototype.isHighSurrogate(t[e.start2 + e.length1 + o]) && o++;
|
|
1154
|
-
let i = t.substring(e.start2 + e.length1, e.start2 + e.length1 + o);
|
|
1155
|
-
i && e.diffs.push(new d.Diff(0, i)), e.start1 -= l.length, e.start2 -= l.length, e.length1 += l.length + i.length, e.length2 += l.length + i.length;
|
|
1156
|
-
};
|
|
1157
|
-
d.prototype.patch_make = function(e, t, n) {
|
|
1158
|
-
let o, l;
|
|
1159
|
-
if (typeof e == "string" && typeof t == "string" && typeof n > "u") o = e, l = this.diff_main(o, t, !0), l.length > 2 && (this.diff_cleanupSemantic(l), this.diff_cleanupEfficiency(l));
|
|
1160
|
-
else if (e && typeof e == "object" && typeof t > "u" && typeof n > "u") l = e, o = this.diff_text1(l);
|
|
1161
|
-
else if (typeof e == "string" && t && typeof t == "object" && typeof n > "u") o = e, l = t;
|
|
1162
|
-
else if (typeof e == "string" && typeof t == "string" && n && typeof n == "object") o = e, l = n;
|
|
1163
|
-
else throw new Error("Unknown call format to patch_make.");
|
|
1164
|
-
if (l.length === 0) return [];
|
|
1165
|
-
l = this.diff_cleanupSplitSurrogates(l);
|
|
1166
|
-
let i = [], s = new d.patch_obj(), r = 0, a = 0, f = 0, u = o, h = o;
|
|
1167
|
-
for (let p = 0; p < l.length; p++) {
|
|
1168
|
-
let _ = l[p][0], w = l[p][1];
|
|
1169
|
-
switch (!r && _ !== 0 && (s.start1 = a, s.start2 = f), _) {
|
|
1170
|
-
case 1:
|
|
1171
|
-
s.diffs[r++] = l[p], s.length2 += w.length, h = h.substring(0, f) + w + h.substring(f);
|
|
1172
|
-
break;
|
|
1173
|
-
case -1:
|
|
1174
|
-
s.length1 += w.length, s.diffs[r++] = l[p], h = h.substring(0, f) + h.substring(f + w.length);
|
|
1175
|
-
break;
|
|
1176
|
-
case 0:
|
|
1177
|
-
w.length <= 2 * this.Patch_Margin && r && l.length != p + 1 ? (s.diffs[r++] = l[p], s.length1 += w.length, s.length2 += w.length) : w.length >= 2 * this.Patch_Margin && r && (this.patch_addContext_(s, u), i.push(s), s = new d.patch_obj(), r = 0, u = h, a = f);
|
|
1178
|
-
break;
|
|
1179
|
-
}
|
|
1180
|
-
_ !== 1 && (a += w.length), _ !== -1 && (f += w.length);
|
|
1181
|
-
}
|
|
1182
|
-
return r && (this.patch_addContext_(s, u), i.push(s)), i;
|
|
1183
|
-
};
|
|
1184
|
-
d.prototype.patch_deepCopy = function(e) {
|
|
1185
|
-
let t = [];
|
|
1186
|
-
for (let n = 0; n < e.length; n++) {
|
|
1187
|
-
let o = e[n], l = new d.patch_obj();
|
|
1188
|
-
l.diffs = [];
|
|
1189
|
-
for (let i = 0; i < o.diffs.length; i++) l.diffs[i] = new d.Diff(o.diffs[i][0], o.diffs[i][1]);
|
|
1190
|
-
l.start1 = o.start1, l.start2 = o.start2, l.length1 = o.length1, l.length2 = o.length2, t[n] = l;
|
|
870
|
+
return r.pop(), r;
|
|
871
|
+
}
|
|
872
|
+
function gt(t, e, n) {
|
|
873
|
+
let l;
|
|
874
|
+
if (!t)
|
|
875
|
+
return [[I, e]];
|
|
876
|
+
if (!e)
|
|
877
|
+
return [[V, t]];
|
|
878
|
+
const i = t.length > e.length ? t : e, o = t.length > e.length ? e : t, s = i.indexOf(o);
|
|
879
|
+
if (s !== -1)
|
|
880
|
+
return l = [
|
|
881
|
+
[I, i.substring(0, s)],
|
|
882
|
+
[$, o],
|
|
883
|
+
[I, i.substring(s + o.length)]
|
|
884
|
+
], t.length > e.length && (l[0][0] = V, l[2][0] = V), l;
|
|
885
|
+
if (o.length === 1)
|
|
886
|
+
return [
|
|
887
|
+
[V, t],
|
|
888
|
+
[I, e]
|
|
889
|
+
];
|
|
890
|
+
const r = ut(t, e);
|
|
891
|
+
if (r) {
|
|
892
|
+
const a = r[0], u = r[1], c = r[2], h = r[3], m = r[4], p = F(a, c, n), v = F(u, h, n);
|
|
893
|
+
return p.concat([[$, m]], v);
|
|
1191
894
|
}
|
|
895
|
+
return n.checkLines && t.length > 100 && e.length > 100 ? ht(t, e, n) : at(t, e, n.deadline);
|
|
896
|
+
}
|
|
897
|
+
var ft = Object.defineProperty, ae = Object.getOwnPropertySymbols, mt = Object.prototype.hasOwnProperty, pt = Object.prototype.propertyIsEnumerable, ue = (t, e, n) => e in t ? ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, _t = (t, e) => {
|
|
898
|
+
for (var n in e || (e = {}))
|
|
899
|
+
mt.call(e, n) && ue(t, n, e[n]);
|
|
900
|
+
if (ae)
|
|
901
|
+
for (var n of ae(e))
|
|
902
|
+
pt.call(e, n) && ue(t, n, e[n]);
|
|
1192
903
|
return t;
|
|
1193
904
|
};
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
e
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
905
|
+
const V = -1, I = 1, $ = 0;
|
|
906
|
+
function bt(t, e, n) {
|
|
907
|
+
if (t === null || e === null)
|
|
908
|
+
throw new Error("Null input. (diff)");
|
|
909
|
+
const l = F(t, e, Lt(n || {}));
|
|
910
|
+
return wt(l), l;
|
|
911
|
+
}
|
|
912
|
+
function F(t, e, n) {
|
|
913
|
+
let l = t, i = e;
|
|
914
|
+
if (l === i)
|
|
915
|
+
return l ? [[$, l]] : [];
|
|
916
|
+
let o = ne(l, i);
|
|
917
|
+
const s = l.substring(0, o);
|
|
918
|
+
l = l.substring(o), i = i.substring(o), o = Q(l, i);
|
|
919
|
+
const r = l.substring(l.length - o);
|
|
920
|
+
l = l.substring(0, l.length - o), i = i.substring(0, i.length - o);
|
|
921
|
+
let a = gt(l, i, n);
|
|
922
|
+
return s && a.unshift([$, s]), r && a.push([$, r]), a = ie(a), a;
|
|
923
|
+
}
|
|
924
|
+
function vt(t) {
|
|
925
|
+
let e = 1;
|
|
926
|
+
return typeof t < "u" && (e = t <= 0 ? Number.MAX_VALUE : t), Date.now() + e * 1e3;
|
|
927
|
+
}
|
|
928
|
+
function Lt(t) {
|
|
929
|
+
return _t({
|
|
930
|
+
checkLines: !0,
|
|
931
|
+
deadline: vt(t.timeout || 1)
|
|
932
|
+
}, t);
|
|
933
|
+
}
|
|
934
|
+
function z(t, e, n) {
|
|
935
|
+
return n === 1 ? t + e : e + t;
|
|
936
|
+
}
|
|
937
|
+
function W(t, e) {
|
|
938
|
+
return e === 1 ? [t.substring(0, t.length - 1), t[t.length - 1]] : [t.substring(1), t[0]];
|
|
939
|
+
}
|
|
940
|
+
function yt(t, e, n, l) {
|
|
941
|
+
return l === 1 ? t[e][1][t[e][1].length - 1] === t[n][1][t[n][1].length - 1] : t[e][1][0] === t[n][1][0];
|
|
942
|
+
}
|
|
943
|
+
function ce(t, e, n) {
|
|
944
|
+
const l = n === 1 ? -1 : 1;
|
|
945
|
+
let i = null, o = null, s = e + n;
|
|
946
|
+
for (; s >= 0 && s < t.length && (i === null || o === null); s += n) {
|
|
947
|
+
const [u, c] = t[s];
|
|
948
|
+
if (c.length !== 0) {
|
|
949
|
+
if (u === I) {
|
|
950
|
+
i === null && (i = s);
|
|
951
|
+
continue;
|
|
952
|
+
} else if (u === V) {
|
|
953
|
+
o === null && (o = s);
|
|
954
|
+
continue;
|
|
955
|
+
} else if (u === $) {
|
|
956
|
+
if (i === null && o === null) {
|
|
957
|
+
const [h, m] = W(t[e][1], n);
|
|
958
|
+
t[e][1] = h, t[s][1] = z(t[s][1], m, l);
|
|
959
|
+
return;
|
|
1217
960
|
}
|
|
961
|
+
break;
|
|
1218
962
|
}
|
|
1219
963
|
}
|
|
1220
964
|
}
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
for (let i = 1; i <= t; i++) n += String.fromCharCode(i);
|
|
1226
|
-
for (let i = 0; i < e.length; i++) e[i].start1 += t, e[i].start2 += t;
|
|
1227
|
-
let o = e[0], l = o.diffs;
|
|
1228
|
-
if (l.length == 0 || l[0][0] != 0) l.unshift(new d.Diff(0, n)), o.start1 -= t, o.start2 -= t, o.length1 += t, o.length2 += t;
|
|
1229
|
-
else if (t > l[0][1].length) {
|
|
1230
|
-
let i = t - l[0][1].length;
|
|
1231
|
-
l[0][1] = n.substring(l[0][1].length) + l[0][1], o.start1 -= i, o.start2 -= i, o.length1 += i, o.length2 += i;
|
|
965
|
+
if (i !== null && o !== null && yt(t, i, o, n)) {
|
|
966
|
+
const [u, c] = W(t[i][1], l), [h] = W(t[o][1], l);
|
|
967
|
+
t[i][1] = u, t[o][1] = h, t[e][1] = z(t[e][1], c, n);
|
|
968
|
+
return;
|
|
1232
969
|
}
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
970
|
+
const [r, a] = W(t[e][1], n);
|
|
971
|
+
t[e][1] = r, i === null ? (t.splice(s, 0, [I, a]), o !== null && o >= s && o++) : t[i][1] = z(t[i][1], a, l), o === null ? t.splice(s, 0, [V, a]) : t[o][1] = z(t[o][1], a, l);
|
|
972
|
+
}
|
|
973
|
+
function wt(t) {
|
|
974
|
+
for (let e = 0; e < t.length; e++) {
|
|
975
|
+
const [n, l] = t[e];
|
|
976
|
+
if (l.length === 0) continue;
|
|
977
|
+
const i = l[0], o = l[l.length - 1];
|
|
978
|
+
st(o) && n === $ && ce(t, e, 1), rt(i) && n === $ && ce(t, e, -1);
|
|
1237
979
|
}
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
u === 1 ? (r.length2 += h.length, i += h.length, r.diffs.push(o.diffs.shift()), a = !1) : u === -1 && r.diffs.length == 1 && r.diffs[0][0] == 0 && h.length > 2 * t ? (r.length1 += h.length, l += h.length, a = !1, r.diffs.push(new d.Diff(u, h)), o.diffs.shift()) : (h = h.substring(0, t - r.length1 - this.Patch_Margin), r.length1 += h.length, l += h.length, u === 0 ? (r.length2 += h.length, i += h.length) : a = !1, r.diffs.push(new d.Diff(u, h)), h == o.diffs[0][1] ? o.diffs.shift() : o.diffs[0][1] = o.diffs[0][1].substring(h.length));
|
|
1252
|
-
}
|
|
1253
|
-
s = this.diff_text2(r.diffs), s = s.substring(s.length - this.Patch_Margin);
|
|
1254
|
-
let f = this.diff_text1(o.diffs).substring(0, this.Patch_Margin);
|
|
1255
|
-
f !== "" && (r.length1 += f.length, r.length2 += f.length, r.diffs.length !== 0 && r.diffs[r.diffs.length - 1][0] === 0 ? r.diffs[r.diffs.length - 1][1] += f : r.diffs.push(new d.Diff(0, f))), a || e.splice(++n, 0, r);
|
|
980
|
+
for (let e = 0; e < t.length; e++)
|
|
981
|
+
t[e][1].length === 0 && t.splice(e, 1);
|
|
982
|
+
}
|
|
983
|
+
function ke(t) {
|
|
984
|
+
let e = t.map((h) => te(h)), n = !1;
|
|
985
|
+
const l = [];
|
|
986
|
+
let i = 0, o = null, s = 0, r = 0, a = 0, u = 0, c = 0;
|
|
987
|
+
for (; s < e.length; )
|
|
988
|
+
e[s][0] === $ ? (l[i++] = s, r = u, a = c, u = 0, c = 0, o = e[s][1]) : (e[s][0] === I ? u += e[s][1].length : c += e[s][1].length, o && o.length <= Math.max(r, a) && o.length <= Math.max(u, c) && (e.splice(l[i - 1], 0, [V, o]), e[l[i - 1] + 1][0] = I, i--, i--, s = i > 0 ? l[i - 1] : -1, r = 0, a = 0, u = 0, c = 0, o = null, n = !0)), s++;
|
|
989
|
+
for (n && (e = ie(e)), e = St(e), s = 1; s < e.length; ) {
|
|
990
|
+
if (e[s - 1][0] === V && e[s][0] === I) {
|
|
991
|
+
const h = e[s - 1][1], m = e[s][1], p = le(h, m), v = le(m, h);
|
|
992
|
+
p >= v ? (p >= h.length / 2 || p >= m.length / 2) && (e.splice(s, 0, [$, m.substring(0, p)]), e[s - 1][1] = h.substring(0, h.length - p), e[s + 1][1] = m.substring(p), s++) : (v >= h.length / 2 || v >= m.length / 2) && (e.splice(s, 0, [$, h.substring(0, v)]), e[s - 1][0] = I, e[s - 1][1] = m.substring(0, m.length - v), e[s + 1][0] = V, e[s + 1][1] = h.substring(v), s++), s++;
|
|
1256
993
|
}
|
|
994
|
+
s++;
|
|
1257
995
|
}
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
if (
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
} catch {
|
|
1278
|
-
throw new Error("Illegal escape in patch_fromText: " + a);
|
|
996
|
+
return e;
|
|
997
|
+
}
|
|
998
|
+
const de = /[^a-zA-Z0-9]/, he = /\s/, ge = /[\r\n]/, Ct = /\n\r?\n$/, Et = /^\r?\n\r?\n/;
|
|
999
|
+
function St(t) {
|
|
1000
|
+
const e = t.map((i) => te(i));
|
|
1001
|
+
function n(i, o) {
|
|
1002
|
+
if (!i || !o)
|
|
1003
|
+
return 6;
|
|
1004
|
+
const s = i.charAt(i.length - 1), r = o.charAt(0), a = s.match(de), u = r.match(de), c = a && s.match(he), h = u && r.match(he), m = c && s.match(ge), p = h && r.match(ge), v = m && i.match(Ct), k = p && o.match(Et);
|
|
1005
|
+
return v || k ? 5 : m || p ? 4 : a && !c && h ? 3 : c || h ? 2 : a || u ? 1 : 0;
|
|
1006
|
+
}
|
|
1007
|
+
let l = 1;
|
|
1008
|
+
for (; l < e.length - 1; ) {
|
|
1009
|
+
if (e[l - 1][0] === $ && e[l + 1][0] === $) {
|
|
1010
|
+
let i = e[l - 1][1], o = e[l][1], s = e[l + 1][1];
|
|
1011
|
+
const r = Q(i, o);
|
|
1012
|
+
if (r) {
|
|
1013
|
+
const m = o.substring(o.length - r);
|
|
1014
|
+
i = i.substring(0, i.length - r), o = m + o.substring(0, o.length - r), s = m + s;
|
|
1279
1015
|
}
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
if (r !== "") throw new Error('Invalid patch mode "' + r + '" in: ' + a);
|
|
1016
|
+
let a = i, u = o, c = s, h = n(i, o) + n(o, s);
|
|
1017
|
+
for (; o.charAt(0) === s.charAt(0); ) {
|
|
1018
|
+
i += o.charAt(0), o = o.substring(1) + s.charAt(0), s = s.substring(1);
|
|
1019
|
+
const m = n(i, o) + n(o, s);
|
|
1020
|
+
m >= h && (h = m, a = i, u = o, c = s);
|
|
1286
1021
|
}
|
|
1287
|
-
|
|
1022
|
+
e[l - 1][1] !== a && (a ? e[l - 1][1] = a : (e.splice(l - 1, 1), l--), e[l][1] = u, c ? e[l + 1][1] = c : (e.splice(l + 1, 1), l--));
|
|
1288
1023
|
}
|
|
1024
|
+
l++;
|
|
1289
1025
|
}
|
|
1290
|
-
return
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
d.prototype.diff_cleanupSplitSurrogates(this.diffs);
|
|
1301
|
-
for (let l = 0; l < this.diffs.length; l++) {
|
|
1302
|
-
switch (this.diffs[l][0]) {
|
|
1303
|
-
case 1:
|
|
1304
|
-
o = "+";
|
|
1026
|
+
return e;
|
|
1027
|
+
}
|
|
1028
|
+
function ie(t) {
|
|
1029
|
+
let e = t.map((u) => te(u));
|
|
1030
|
+
e.push([$, ""]);
|
|
1031
|
+
let n = 0, l = 0, i = 0, o = "", s = "", r;
|
|
1032
|
+
for (; n < e.length; )
|
|
1033
|
+
switch (e[n][0]) {
|
|
1034
|
+
case I:
|
|
1035
|
+
i++, s += e[n][1], n++;
|
|
1305
1036
|
break;
|
|
1306
|
-
case
|
|
1307
|
-
o
|
|
1037
|
+
case V:
|
|
1038
|
+
l++, o += e[n][1], n++;
|
|
1308
1039
|
break;
|
|
1309
|
-
case
|
|
1310
|
-
|
|
1040
|
+
case $:
|
|
1041
|
+
l + i > 1 ? (l !== 0 && i !== 0 && (r = ne(s, o), r !== 0 && (n - l - i > 0 && e[n - l - i - 1][0] === $ ? e[n - l - i - 1][1] += s.substring(
|
|
1042
|
+
0,
|
|
1043
|
+
r
|
|
1044
|
+
) : (e.splice(0, 0, [$, s.substring(0, r)]), n++), s = s.substring(r), o = o.substring(r)), r = Q(s, o), r !== 0 && (e[n][1] = s.substring(s.length - r) + e[n][1], s = s.substring(0, s.length - r), o = o.substring(0, o.length - r))), n -= l + i, e.splice(n, l + i), o.length && (e.splice(n, 0, [V, o]), n++), s.length && (e.splice(n, 0, [I, s]), n++), n++) : n !== 0 && e[n - 1][0] === $ ? (e[n - 1][1] += e[n][1], e.splice(n, 1)) : n++, i = 0, l = 0, o = "", s = "";
|
|
1311
1045
|
break;
|
|
1046
|
+
default:
|
|
1047
|
+
throw new Error("Unknown diff operation");
|
|
1312
1048
|
}
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1049
|
+
e[e.length - 1][1] === "" && e.pop();
|
|
1050
|
+
let a = !1;
|
|
1051
|
+
for (n = 1; n < e.length - 1; )
|
|
1052
|
+
e[n - 1][0] === $ && e[n + 1][0] === $ && (e[n][1].substring(e[n][1].length - e[n - 1][1].length) === e[n - 1][1] ? (e[n][1] = e[n - 1][1] + e[n][1].substring(0, e[n][1].length - e[n - 1][1].length), e[n + 1][1] = e[n - 1][1] + e[n + 1][1], e.splice(n - 1, 1), a = !0) : e[n][1].substring(0, e[n + 1][1].length) === e[n + 1][1] && (e[n - 1][1] += e[n + 1][1], e[n][1] = e[n][1].substring(e[n + 1][1].length) + e[n + 1][1], e.splice(n + 1, 1), a = !0)), n++;
|
|
1053
|
+
return a && (e = ie(e)), e;
|
|
1054
|
+
}
|
|
1055
|
+
function K(t) {
|
|
1056
|
+
return t && typeof t == "object" && !Array.isArray(t) && t !== null;
|
|
1057
|
+
}
|
|
1058
|
+
function oe(t, e) {
|
|
1059
|
+
return K(t) && K(e) && Object.keys(e).forEach((n) => {
|
|
1060
|
+
n === "__proto__" || n === "constructor" || (K(e[n]) ? ((!t[n] || !K(t[n])) && (t[n] = e[n]), oe(t[n], e[n])) : Object.assign(t, {
|
|
1061
|
+
[n]: e[n]
|
|
1062
|
+
}));
|
|
1063
|
+
}), t;
|
|
1064
|
+
}
|
|
1065
|
+
function fe(t, e, n = !1) {
|
|
1066
|
+
let l = null, i = !0;
|
|
1067
|
+
return (...o) => {
|
|
1068
|
+
const s = n && i, r = () => {
|
|
1069
|
+
t.apply(this, o), l = null;
|
|
1331
1070
|
};
|
|
1332
|
-
s && (
|
|
1071
|
+
s && (i = !1, r()), l || (l = setTimeout(r, e));
|
|
1333
1072
|
};
|
|
1334
1073
|
}
|
|
1335
|
-
function
|
|
1074
|
+
function $t(t, e) {
|
|
1336
1075
|
let n;
|
|
1337
|
-
return (...
|
|
1338
|
-
const
|
|
1339
|
-
clearTimeout(n), n = setTimeout(() =>
|
|
1076
|
+
return (...l) => {
|
|
1077
|
+
const i = this;
|
|
1078
|
+
clearTimeout(n), n = setTimeout(() => t.apply(i, l), e);
|
|
1340
1079
|
};
|
|
1341
1080
|
}
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1081
|
+
function me(t = "") {
|
|
1082
|
+
return t.replace(/\r\n/g, `
|
|
1344
1083
|
`);
|
|
1345
1084
|
}
|
|
1346
|
-
function
|
|
1347
|
-
const
|
|
1348
|
-
return `M ${
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
}
|
|
1362
|
-
function
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
return t.
|
|
1369
|
-
}
|
|
1370
|
-
function
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
return
|
|
1375
|
-
}
|
|
1376
|
-
function
|
|
1377
|
-
const
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1085
|
+
function pe(t, e, n, l) {
|
|
1086
|
+
const i = n - t, o = t + i / 2;
|
|
1087
|
+
return `M ${t} ${e} C ${o},${e} ${o},${l} ${n},${l}`;
|
|
1088
|
+
}
|
|
1089
|
+
var C = {
|
|
1090
|
+
DIFF_EQUAL: 0,
|
|
1091
|
+
DIFF_DELETE: -1,
|
|
1092
|
+
DIFF_INSERT: 1,
|
|
1093
|
+
EDITOR_RIGHT: "right",
|
|
1094
|
+
EDITOR_LEFT: "left",
|
|
1095
|
+
RTL: "rtl",
|
|
1096
|
+
LTR: "ltr",
|
|
1097
|
+
SVG_NS: "http://www.w3.org/2000/svg",
|
|
1098
|
+
DIFF_GRANULARITY_SPECIFIC: "specific",
|
|
1099
|
+
DIFF_GRANULARITY_BROAD: "broad"
|
|
1100
|
+
};
|
|
1101
|
+
function _e(t, e) {
|
|
1102
|
+
let { mode: n } = t.options;
|
|
1103
|
+
return e === C.EDITOR_LEFT && t.options.left.mode !== null && (n = t.options.left.mode), e === C.EDITOR_RIGHT && t.options.right.mode !== null && (n = t.options.right.mode), n;
|
|
1104
|
+
}
|
|
1105
|
+
function be(t, e) {
|
|
1106
|
+
let { theme: n } = t.options;
|
|
1107
|
+
return e === C.EDITOR_LEFT && t.options.left.theme !== null && (n = t.options.left.theme), e === C.EDITOR_RIGHT && t.options.right.theme !== null && (n = t.options.right.theme), n;
|
|
1108
|
+
}
|
|
1109
|
+
function De(t, e) {
|
|
1110
|
+
return t.ace.getSession().doc.getLine(e);
|
|
1111
|
+
}
|
|
1112
|
+
function Tt(t) {
|
|
1113
|
+
return document.getElementById(t.options.left.id).offsetHeight;
|
|
1114
|
+
}
|
|
1115
|
+
function ve(t) {
|
|
1116
|
+
const e = document.createElement("div"), n = {
|
|
1117
|
+
class: t.className,
|
|
1118
|
+
style: `top:${t.topOffset}px`,
|
|
1119
|
+
title: t.tooltip,
|
|
1120
|
+
"data-diff-index": t.diffIndex
|
|
1121
|
+
};
|
|
1122
|
+
for (const l in n) e.setAttribute(l, n[l]);
|
|
1123
|
+
return e.innerHTML = t.arrowContent, e;
|
|
1124
|
+
}
|
|
1125
|
+
function ee(t, e) {
|
|
1126
|
+
const n = Math.random().toString(36).substr(2, 5), l = `js-${e}-${n}`, i = t.querySelector(`.${e}`);
|
|
1127
|
+
if (i)
|
|
1128
|
+
return i.id = i.id || l, i.id;
|
|
1129
|
+
const o = document.createElement("div");
|
|
1130
|
+
return t.appendChild(o), o.className = e, o.id = l, o.id;
|
|
1131
|
+
}
|
|
1132
|
+
function Le(t, e, n, l) {
|
|
1133
|
+
const i = t === "document" ? document : document.querySelector(t);
|
|
1134
|
+
i.addEventListener(e, (o) => {
|
|
1135
|
+
const s = i.querySelectorAll(n), { target: r } = o;
|
|
1136
|
+
for (let a = 0, u = s.length; a < u; a += 1) {
|
|
1137
|
+
let c = r;
|
|
1382
1138
|
const h = s[a];
|
|
1383
|
-
for (;
|
|
1139
|
+
for (; c && c !== i; )
|
|
1140
|
+
c === h && l.call(h, o), c = c.parentNode;
|
|
1384
1141
|
}
|
|
1385
1142
|
});
|
|
1386
1143
|
}
|
|
1387
|
-
let
|
|
1388
|
-
function
|
|
1389
|
-
if (
|
|
1390
|
-
const
|
|
1391
|
-
return
|
|
1392
|
-
}
|
|
1393
|
-
function
|
|
1394
|
-
if (!(this instanceof
|
|
1395
|
-
const
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1144
|
+
let X;
|
|
1145
|
+
function xt(t) {
|
|
1146
|
+
if (t.Range) return t.Range;
|
|
1147
|
+
const e = t.acequire || t.require;
|
|
1148
|
+
return e ? e("ace/range") : !1;
|
|
1149
|
+
}
|
|
1150
|
+
function J(t = {}) {
|
|
1151
|
+
if (!(this instanceof J)) return new J(t);
|
|
1152
|
+
const e = this, n = () => window ? window.ace : void 0;
|
|
1153
|
+
e.options = oe({
|
|
1154
|
+
ace: n(),
|
|
1155
|
+
mode: null,
|
|
1156
|
+
theme: null,
|
|
1157
|
+
element: null,
|
|
1158
|
+
diffGranularity: C.DIFF_GRANULARITY_BROAD,
|
|
1159
|
+
lockScrolling: !1,
|
|
1160
|
+
showDiffs: !0,
|
|
1161
|
+
showConnectors: !0,
|
|
1162
|
+
maxDiffs: 5e3,
|
|
1163
|
+
left: {
|
|
1164
|
+
id: null,
|
|
1165
|
+
content: null,
|
|
1166
|
+
mode: null,
|
|
1167
|
+
theme: null,
|
|
1168
|
+
editable: !0,
|
|
1169
|
+
copyLinkEnabled: !0
|
|
1170
|
+
},
|
|
1171
|
+
right: {
|
|
1172
|
+
id: null,
|
|
1173
|
+
content: null,
|
|
1174
|
+
mode: null,
|
|
1175
|
+
theme: null,
|
|
1176
|
+
editable: !0,
|
|
1177
|
+
copyLinkEnabled: !0
|
|
1178
|
+
},
|
|
1179
|
+
classes: {
|
|
1180
|
+
gutterID: "acediff__gutter",
|
|
1181
|
+
diff: "acediff__diffLine",
|
|
1182
|
+
connector: "acediff__connector",
|
|
1183
|
+
newCodeConnectorLink: "acediff__newCodeConnector",
|
|
1184
|
+
newCodeConnectorLinkContent: "→",
|
|
1185
|
+
deletedCodeConnectorLink: "acediff__deletedCodeConnector",
|
|
1186
|
+
deletedCodeConnectorLinkContent: "←",
|
|
1187
|
+
copyRightContainer: "acediff__copy--right",
|
|
1188
|
+
copyLeftContainer: "acediff__copy--left"
|
|
1189
|
+
},
|
|
1190
|
+
connectorYOffset: 0
|
|
1191
|
+
}, t);
|
|
1192
|
+
const { ace: l } = e.options;
|
|
1193
|
+
if (!l) {
|
|
1194
|
+
const i = "No ace editor found nor supplied - `options.ace` or `window.ace` is missing";
|
|
1195
|
+
return console.error(i), new Error(i);
|
|
1401
1196
|
}
|
|
1402
|
-
if (
|
|
1403
|
-
const
|
|
1404
|
-
return console.error(
|
|
1197
|
+
if (X = xt(l), !X) {
|
|
1198
|
+
const i = "Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";
|
|
1199
|
+
return console.error(i), new Error(i);
|
|
1405
1200
|
}
|
|
1406
|
-
if (
|
|
1407
|
-
const
|
|
1408
|
-
return console.error(
|
|
1201
|
+
if (e.options.element === null) {
|
|
1202
|
+
const i = "You need to specify an element for Ace-diff - `options.element` is missing";
|
|
1203
|
+
return console.error(i), new Error(i);
|
|
1409
1204
|
}
|
|
1410
|
-
if (
|
|
1411
|
-
const
|
|
1412
|
-
return console.error(
|
|
1205
|
+
if (e.options.element instanceof HTMLElement ? e.el = e.options.element : e.el = document.body.querySelector(e.options.element), !e.el) {
|
|
1206
|
+
const i = `Can't find the specified element ${e.options.element}`;
|
|
1207
|
+
return console.error(i), new Error(i);
|
|
1413
1208
|
}
|
|
1414
|
-
|
|
1415
|
-
|
|
1209
|
+
e.options.left.id = ee(e.el, "acediff__left"), e.options.classes.gutterID = ee(e.el, "acediff__gutter"), e.options.right.id = ee(e.el, "acediff__right"), e.el.innerHTML = `<div class="acediff__wrap">${e.el.innerHTML}</div>`, e.editors = {
|
|
1210
|
+
left: {
|
|
1211
|
+
ace: l.edit(e.options.left.id),
|
|
1212
|
+
markers: [],
|
|
1213
|
+
lineLengths: []
|
|
1214
|
+
},
|
|
1215
|
+
right: {
|
|
1216
|
+
ace: l.edit(e.options.right.id),
|
|
1217
|
+
markers: [],
|
|
1218
|
+
lineLengths: []
|
|
1219
|
+
},
|
|
1220
|
+
editorHeight: null
|
|
1221
|
+
}, e.editors.left.ace.getSession().setMode(_e(e, C.EDITOR_LEFT)), e.editors.right.ace.getSession().setMode(_e(e, C.EDITOR_RIGHT)), e.editors.left.ace.setReadOnly(!e.options.left.editable), e.editors.right.ace.setReadOnly(!e.options.right.editable), e.editors.left.ace.setTheme(be(e, C.EDITOR_LEFT)), e.editors.right.ace.setTheme(be(e, C.EDITOR_RIGHT)), e.editors.left.ace.setValue(me(e.options.left.content), -1), e.editors.right.ace.setValue(me(e.options.right.content), -1), e.editors.editorHeight = Tt(e), setTimeout(() => {
|
|
1222
|
+
e.lineHeight = e.editors.left.ace.renderer.lineHeight, kt(e), Vt(e), Me(e), e.diff();
|
|
1416
1223
|
}, 1);
|
|
1417
1224
|
}
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
},
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
},
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1225
|
+
J.prototype = {
|
|
1226
|
+
// allows on-the-fly changes to the AceDiff instance settings
|
|
1227
|
+
setOptions(t) {
|
|
1228
|
+
oe(this.options, t), this.diff();
|
|
1229
|
+
},
|
|
1230
|
+
getNumDiffs() {
|
|
1231
|
+
return this.diffs.length;
|
|
1232
|
+
},
|
|
1233
|
+
// exposes the Ace editors in case the dev needs it
|
|
1234
|
+
getEditors() {
|
|
1235
|
+
return {
|
|
1236
|
+
left: this.editors.left.ace,
|
|
1237
|
+
right: this.editors.right.ace
|
|
1238
|
+
};
|
|
1239
|
+
},
|
|
1240
|
+
// our main diffing function. I actually don't think this needs to exposed:
|
|
1241
|
+
// it's called automatically, but just to be safe, it's included
|
|
1242
|
+
diff() {
|
|
1243
|
+
const t = this.editors.left.ace.getSession().getValue(), e = this.editors.right.ace.getSession().getValue(), n = ke(bt(e, t));
|
|
1244
|
+
this.editors.left.lineLengths = we(this.editors.left), this.editors.right.lineLengths = we(this.editors.right);
|
|
1245
|
+
const l = [], i = {
|
|
1246
|
+
left: 0,
|
|
1247
|
+
right: 0
|
|
1248
|
+
};
|
|
1249
|
+
n.forEach((o) => {
|
|
1250
|
+
const s = o[0];
|
|
1251
|
+
let r = o[1];
|
|
1252
|
+
r.length !== 0 && (s === C.DIFF_EQUAL ? (i.left += r.length, i.right += r.length) : s === C.DIFF_DELETE ? (l.push(Se(this, C.DIFF_DELETE, i.left, i.right, r)), i.right += r.length) : s === C.DIFF_INSERT && (l.push(Se(this, C.DIFF_INSERT, i.left, i.right, r)), i.left += r.length));
|
|
1253
|
+
}, this), this.diffs = At(this, l), !(this.diffs.length > this.options.maxDiffs) && (Ie(this), Ve(this));
|
|
1254
|
+
},
|
|
1255
|
+
destroy() {
|
|
1256
|
+
const t = this.editors.left.ace.getValue();
|
|
1257
|
+
this.editors.left.ace.destroy();
|
|
1258
|
+
let e = this.editors.left.ace.container, n = e.cloneNode(!1);
|
|
1259
|
+
n.textContent = t, e.parentNode.replaceChild(n, e);
|
|
1260
|
+
const l = this.editors.right.ace.getValue();
|
|
1261
|
+
this.editors.right.ace.destroy(), e = this.editors.right.ace.container, n = e.cloneNode(!1), n.textContent = l, e.parentNode.replaceChild(n, e);
|
|
1262
|
+
const i = document.getElementById(this.options.classes.gutterID);
|
|
1263
|
+
i && (i.innerHTML = ""), this.removeEventHandlers();
|
|
1264
|
+
}
|
|
1442
1265
|
};
|
|
1443
|
-
function
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
}, 16)),
|
|
1447
|
-
|
|
1266
|
+
function kt(t) {
|
|
1267
|
+
t.editors.left.ace.getSession().on("changeScrollTop", fe(() => {
|
|
1268
|
+
Ee(t);
|
|
1269
|
+
}, 16)), t.editors.right.ace.getSession().on("changeScrollTop", fe(() => {
|
|
1270
|
+
Ee(t);
|
|
1448
1271
|
}, 16));
|
|
1449
|
-
const
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
}),
|
|
1453
|
-
|
|
1272
|
+
const e = t.diff.bind(t);
|
|
1273
|
+
t.editors.left.ace.on("change", e), t.editors.right.ace.on("change", e), t.options.left.copyLinkEnabled && Le(`#${t.options.classes.gutterID}`, "click", `.${t.options.classes.newCodeConnectorLink}`, (l) => {
|
|
1274
|
+
ye(t, l, C.LTR);
|
|
1275
|
+
}), t.options.right.copyLinkEnabled && Le(`#${t.options.classes.gutterID}`, "click", `.${t.options.classes.deletedCodeConnectorLink}`, (l) => {
|
|
1276
|
+
ye(t, l, C.RTL);
|
|
1454
1277
|
});
|
|
1455
|
-
const n =
|
|
1456
|
-
|
|
1278
|
+
const n = $t(() => {
|
|
1279
|
+
t.editors.availableHeight = document.getElementById(t.options.left.id).offsetHeight, t.diff();
|
|
1457
1280
|
}, 250);
|
|
1458
|
-
window.addEventListener("resize", n),
|
|
1281
|
+
window.addEventListener("resize", n), t.removeEventHandlers = () => {
|
|
1459
1282
|
window.removeEventListener("resize", n);
|
|
1460
1283
|
};
|
|
1461
1284
|
}
|
|
1462
|
-
function
|
|
1463
|
-
const
|
|
1464
|
-
let
|
|
1465
|
-
n ===
|
|
1285
|
+
function ye(t, e, n) {
|
|
1286
|
+
const l = parseInt(e.target.getAttribute("data-diff-index"), 10), i = t.diffs[l];
|
|
1287
|
+
let o, s, r, a, u, c;
|
|
1288
|
+
n === C.LTR ? (o = t.editors.left, s = t.editors.right, r = i.leftStartLine, a = i.leftEndLine, u = i.rightStartLine, c = i.rightEndLine) : (o = t.editors.right, s = t.editors.left, r = i.rightStartLine, a = i.rightEndLine, u = i.leftStartLine, c = i.leftEndLine);
|
|
1466
1289
|
let h = "";
|
|
1467
|
-
for (let
|
|
1468
|
-
|
|
1290
|
+
for (let p = r; p < a; p += 1)
|
|
1291
|
+
h += De(o, p), p < o.ace.getSession().getLength() - 1 && (h += `
|
|
1469
1292
|
`);
|
|
1470
|
-
const
|
|
1471
|
-
s.ace.getSession().replace(new
|
|
1293
|
+
const m = s.ace.getSession().getScrollTop();
|
|
1294
|
+
s.ace.getSession().replace(new X(u, 0, c, 0), h), s.ace.getSession().setScrollTop(parseInt(m, 10)), t.diff();
|
|
1472
1295
|
}
|
|
1473
|
-
function
|
|
1474
|
-
const
|
|
1475
|
-
return
|
|
1476
|
-
n.push(
|
|
1296
|
+
function we(t) {
|
|
1297
|
+
const e = t.ace.getSession().doc.getAllLines(), n = [];
|
|
1298
|
+
return e.forEach((l) => {
|
|
1299
|
+
n.push(l.length + 1);
|
|
1477
1300
|
}), n;
|
|
1478
1301
|
}
|
|
1479
|
-
function
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1482
|
-
const s = `${
|
|
1483
|
-
|
|
1484
|
-
}
|
|
1485
|
-
function
|
|
1486
|
-
|
|
1487
|
-
}
|
|
1488
|
-
function
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
},
|
|
1492
|
-
|
|
1493
|
-
},
|
|
1494
|
-
}
|
|
1495
|
-
function
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1498
|
-
const r = -1, a =
|
|
1499
|
-
|
|
1500
|
-
}
|
|
1501
|
-
function
|
|
1502
|
-
if (
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1302
|
+
function Ce(t, e, n, l, i) {
|
|
1303
|
+
const o = t.editors[e];
|
|
1304
|
+
l < n && (l = n);
|
|
1305
|
+
const s = `${i} ${l > n ? "lines" : "targetOnly"}`;
|
|
1306
|
+
l > n && (l -= 1), o.markers.push(o.ace.session.addMarker(new X(n, 0, l, 1), s, "fullLine"));
|
|
1307
|
+
}
|
|
1308
|
+
function Ee(t) {
|
|
1309
|
+
Ie(t), Ve(t), Mt(t);
|
|
1310
|
+
}
|
|
1311
|
+
function Ie(t) {
|
|
1312
|
+
t.editors.left.markers.forEach((e) => {
|
|
1313
|
+
t.editors.left.ace.getSession().removeMarker(e);
|
|
1314
|
+
}, t), t.editors.right.markers.forEach((e) => {
|
|
1315
|
+
t.editors.right.ace.getSession().removeMarker(e);
|
|
1316
|
+
}, t);
|
|
1317
|
+
}
|
|
1318
|
+
function Dt(t, e, n, l, i) {
|
|
1319
|
+
const o = t.editors.left.ace.getSession().getScrollTop(), s = t.editors.right.ace.getSession().getScrollTop();
|
|
1320
|
+
t.connectorYOffset = 1;
|
|
1321
|
+
const r = -1, a = e * t.lineHeight - o + 0.5, u = t.gutterWidth + 1, c = l * t.lineHeight - s + 0.5, h = -1, m = n * t.lineHeight - o + t.connectorYOffset + 0.5, p = t.gutterWidth + 1, v = i * t.lineHeight - s + t.connectorYOffset + 0.5, k = pe(r, a, u, c), E = pe(p, v, h, m), b = `L${u},${c} ${p},${v}`, L = `L${h},${m} ${r},${a}`, _ = `${k} ${b} ${E} ${L}`, S = document.createElementNS(C.SVG_NS, "path");
|
|
1322
|
+
S.setAttribute("d", _), S.setAttribute("class", t.options.classes.connector), t.gutterSVG.appendChild(S);
|
|
1323
|
+
}
|
|
1324
|
+
function It(t, e, n) {
|
|
1325
|
+
if (e.leftEndLine > e.leftStartLine && t.options.left.copyLinkEnabled) {
|
|
1326
|
+
const l = ve({
|
|
1327
|
+
className: t.options.classes.newCodeConnectorLink,
|
|
1328
|
+
topOffset: e.leftStartLine * t.lineHeight,
|
|
1329
|
+
tooltip: "Copy to right",
|
|
1330
|
+
diffIndex: n,
|
|
1331
|
+
arrowContent: t.options.classes.newCodeConnectorLinkContent
|
|
1332
|
+
});
|
|
1333
|
+
t.copyRightContainer.appendChild(l);
|
|
1505
1334
|
}
|
|
1506
|
-
if (
|
|
1507
|
-
const
|
|
1508
|
-
|
|
1335
|
+
if (e.rightEndLine > e.rightStartLine && t.options.right.copyLinkEnabled) {
|
|
1336
|
+
const l = ve({
|
|
1337
|
+
className: t.options.classes.deletedCodeConnectorLink,
|
|
1338
|
+
topOffset: e.rightStartLine * t.lineHeight,
|
|
1339
|
+
tooltip: "Copy to left",
|
|
1340
|
+
diffIndex: n,
|
|
1341
|
+
arrowContent: t.options.classes.deletedCodeConnectorLinkContent
|
|
1342
|
+
});
|
|
1343
|
+
t.copyLeftContainer.appendChild(l);
|
|
1509
1344
|
}
|
|
1510
1345
|
}
|
|
1511
|
-
function
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1514
|
-
}
|
|
1515
|
-
function
|
|
1516
|
-
let
|
|
1517
|
-
if (
|
|
1518
|
-
let s =
|
|
1519
|
-
const
|
|
1520
|
-
let
|
|
1521
|
-
|
|
1346
|
+
function Mt(t) {
|
|
1347
|
+
const e = t.editors.left.ace.getSession().getScrollTop(), n = t.editors.right.ace.getSession().getScrollTop();
|
|
1348
|
+
t.copyRightContainer.style.cssText = `top: ${-e}px`, t.copyLeftContainer.style.cssText = `top: ${-n}px`;
|
|
1349
|
+
}
|
|
1350
|
+
function Se(t, e, n, l, i) {
|
|
1351
|
+
let o = {};
|
|
1352
|
+
if (e === C.DIFF_INSERT) {
|
|
1353
|
+
let s = $e(t.editors.left, n, i), r = Te(t.editors.right, l), a = B(t.editors.right, r);
|
|
1354
|
+
const u = B(t.editors.left, s.startLine);
|
|
1355
|
+
let c = r, h = s.startLine === s.endLine, m = 0;
|
|
1356
|
+
// dense, but this accommodates two scenarios:
|
|
1357
|
+
// 1. where a completely fresh new line is being inserted in left editor, we want the line on right to stay a 1px line
|
|
1358
|
+
// 2. where a new character is inserted at the start of a newline on the left but the line contains other stuff,
|
|
1359
|
+
// we DO want to make it a full line
|
|
1360
|
+
(s.startChar > 0 || h && i.length < u) && // if the right editor line was empty, it's ALWAYS a single line insert [not an OR above?]
|
|
1361
|
+
a > 0 && // if the text being inserted starts mid-line
|
|
1362
|
+
s.startChar < u && m++, o = {
|
|
1363
|
+
leftStartLine: s.startLine,
|
|
1364
|
+
leftEndLine: s.endLine + 1,
|
|
1365
|
+
rightStartLine: c,
|
|
1366
|
+
rightEndLine: c + m
|
|
1367
|
+
};
|
|
1522
1368
|
} else {
|
|
1523
|
-
let s =
|
|
1524
|
-
const
|
|
1525
|
-
let
|
|
1526
|
-
|
|
1369
|
+
let s = $e(t.editors.right, l, i), r = Te(t.editors.left, n), a = B(t.editors.left, r);
|
|
1370
|
+
const u = B(t.editors.right, s.startLine);
|
|
1371
|
+
let c = r, h = s.startLine === s.endLine, m = 0;
|
|
1372
|
+
// dense, but this accommodates two scenarios:
|
|
1373
|
+
// 1. where a completely fresh new line is being inserted in left editor, we want the line on right to stay a 1px line
|
|
1374
|
+
// 2. where a new character is inserted at the start of a newline on the left but the line contains other stuff,
|
|
1375
|
+
// we DO want to make it a full line
|
|
1376
|
+
(s.startChar > 0 || h && i.length < u) && // if the right editor line was empty, it's ALWAYS a single line insert [not an OR above?]
|
|
1377
|
+
a > 0 && // if the text being inserted starts mid-line
|
|
1378
|
+
s.startChar < u && m++, o = {
|
|
1379
|
+
leftStartLine: c,
|
|
1380
|
+
leftEndLine: c + m,
|
|
1381
|
+
rightStartLine: s.startLine,
|
|
1382
|
+
rightEndLine: s.endLine + 1
|
|
1383
|
+
};
|
|
1527
1384
|
}
|
|
1528
|
-
return
|
|
1385
|
+
return o;
|
|
1529
1386
|
}
|
|
1530
|
-
function
|
|
1531
|
-
const
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1387
|
+
function $e(t, e, n) {
|
|
1388
|
+
const l = {
|
|
1389
|
+
startLine: 0,
|
|
1390
|
+
startChar: 0,
|
|
1391
|
+
endLine: 0,
|
|
1392
|
+
endChar: 0
|
|
1393
|
+
}, i = e + n.length;
|
|
1394
|
+
let o = 0, s = !1, r = !1;
|
|
1395
|
+
t.lineLengths.forEach((u, c) => {
|
|
1396
|
+
o += u, !s && e < o && (l.startLine = c, l.startChar = e - o + u, s = !0), !r && i <= o && (l.endLine = c, l.endChar = i - o + u, r = !0);
|
|
1397
|
+
}), l.startChar > 0 && B(t, l.startLine) === l.startChar && (l.startLine++, l.startChar = 0), l.endChar === 0 && l.endLine--;
|
|
1536
1398
|
const a = /\n$/.test(n);
|
|
1537
|
-
return
|
|
1399
|
+
return l.startChar > 0 && a && l.endLine++, l;
|
|
1538
1400
|
}
|
|
1539
|
-
function B(
|
|
1540
|
-
return
|
|
1401
|
+
function B(t, e) {
|
|
1402
|
+
return De(t, e).length;
|
|
1541
1403
|
}
|
|
1542
|
-
function
|
|
1543
|
-
const n =
|
|
1544
|
-
let
|
|
1545
|
-
for (let
|
|
1546
|
-
o
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1404
|
+
function Te(t, e) {
|
|
1405
|
+
const n = t.ace.getSession().doc.getAllLines();
|
|
1406
|
+
let l = 0, i = 0;
|
|
1407
|
+
for (let o = 0; o < n.length; o += 1)
|
|
1408
|
+
if (i += n[o].length + 1, e <= i) {
|
|
1409
|
+
l = o, e === i && o < n.length - 1 && (l += 1);
|
|
1410
|
+
break;
|
|
1411
|
+
}
|
|
1412
|
+
return i >= t.ace.getSession().getValue().length && (l += 1), l;
|
|
1550
1413
|
}
|
|
1551
|
-
function
|
|
1552
|
-
|
|
1553
|
-
const
|
|
1554
|
-
|
|
1414
|
+
function Me(t) {
|
|
1415
|
+
t.gutterHeight = document.getElementById(t.options.classes.gutterID).clientHeight, t.gutterWidth = document.getElementById(t.options.classes.gutterID).clientWidth;
|
|
1416
|
+
const e = xe(t, C.EDITOR_LEFT), n = xe(t, C.EDITOR_RIGHT), l = Math.max(e, n, t.gutterHeight);
|
|
1417
|
+
t.gutterSVG = document.createElementNS(C.SVG_NS, "svg"), t.gutterSVG.setAttribute("width", t.gutterWidth), t.gutterSVG.setAttribute("height", l), document.getElementById(t.options.classes.gutterID).appendChild(t.gutterSVG);
|
|
1555
1418
|
}
|
|
1556
|
-
function
|
|
1557
|
-
return (
|
|
1419
|
+
function xe(t, e) {
|
|
1420
|
+
return (e === C.EDITOR_LEFT ? t.editors.left : t.editors.right).ace.getSession().getLength() * t.lineHeight;
|
|
1558
1421
|
}
|
|
1559
|
-
function
|
|
1560
|
-
|
|
1422
|
+
function Vt(t) {
|
|
1423
|
+
t.copyRightContainer = document.createElement("div"), t.copyRightContainer.setAttribute("class", t.options.classes.copyRightContainer), t.copyLeftContainer = document.createElement("div"), t.copyLeftContainer.setAttribute("class", t.options.classes.copyLeftContainer), document.getElementById(t.options.classes.gutterID).appendChild(t.copyRightContainer), document.getElementById(t.options.classes.gutterID).appendChild(t.copyLeftContainer);
|
|
1561
1424
|
}
|
|
1562
|
-
function
|
|
1563
|
-
document.getElementById(
|
|
1425
|
+
function Rt(t) {
|
|
1426
|
+
document.getElementById(t.options.classes.gutterID).removeChild(t.gutterSVG), Me(t);
|
|
1564
1427
|
}
|
|
1565
|
-
function
|
|
1566
|
-
|
|
1428
|
+
function Ot(t) {
|
|
1429
|
+
t.copyLeftContainer.innerHTML = "", t.copyRightContainer.innerHTML = "";
|
|
1567
1430
|
}
|
|
1568
|
-
function
|
|
1431
|
+
function At(t, e) {
|
|
1569
1432
|
const n = [];
|
|
1570
|
-
function o
|
|
1571
|
-
return
|
|
1433
|
+
function l(o) {
|
|
1434
|
+
return t.options.diffGranularity === C.DIFF_GRANULARITY_SPECIFIC ? o < 1 : o <= 1;
|
|
1572
1435
|
}
|
|
1573
|
-
|
|
1436
|
+
e.forEach((o, s) => {
|
|
1574
1437
|
if (s === 0) {
|
|
1575
|
-
n.push(
|
|
1438
|
+
n.push(o);
|
|
1576
1439
|
return;
|
|
1577
1440
|
}
|
|
1578
1441
|
let r = !1;
|
|
1579
|
-
for (let a = 0; a < n.length; a += 1) if (
|
|
1580
|
-
n[a].leftStartLine = Math.min(
|
|
1442
|
+
for (let a = 0; a < n.length; a += 1) if (l(Math.abs(o.leftStartLine - n[a].leftEndLine)) && l(Math.abs(o.rightStartLine - n[a].rightEndLine))) {
|
|
1443
|
+
n[a].leftStartLine = Math.min(o.leftStartLine, n[a].leftStartLine), n[a].rightStartLine = Math.min(o.rightStartLine, n[a].rightStartLine), n[a].leftEndLine = Math.max(o.leftEndLine, n[a].leftEndLine), n[a].rightEndLine = Math.max(o.rightEndLine, n[a].rightEndLine), r = !0;
|
|
1581
1444
|
break;
|
|
1582
1445
|
}
|
|
1583
|
-
r || n.push(
|
|
1446
|
+
r || n.push(o);
|
|
1584
1447
|
});
|
|
1585
|
-
const
|
|
1586
|
-
return n.forEach((
|
|
1587
|
-
|
|
1588
|
-
}),
|
|
1448
|
+
const i = [];
|
|
1449
|
+
return n.forEach((o) => {
|
|
1450
|
+
o.leftStartLine === o.leftEndLine && o.rightStartLine === o.rightEndLine || i.push(o);
|
|
1451
|
+
}), i;
|
|
1589
1452
|
}
|
|
1590
|
-
function
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
},
|
|
1453
|
+
function Ve(t) {
|
|
1454
|
+
Rt(t), Ot(t), t.diffs.forEach((e, n) => {
|
|
1455
|
+
t.options.showDiffs && (Ce(t, C.EDITOR_LEFT, e.leftStartLine, e.leftEndLine, t.options.classes.diff), Ce(t, C.EDITOR_RIGHT, e.rightStartLine, e.rightEndLine, t.options.classes.diff), t.options.showConnectors && Dt(t, e.leftStartLine, e.leftEndLine, e.rightStartLine, e.rightEndLine), It(t, e, n));
|
|
1456
|
+
}, t);
|
|
1594
1457
|
}
|
|
1595
|
-
const
|
|
1458
|
+
const Nt = {
|
|
1596
1459
|
props: {
|
|
1597
1460
|
pluginName: {
|
|
1598
1461
|
type: String,
|
|
@@ -1631,8 +1494,8 @@ const Ze = {
|
|
|
1631
1494
|
get() {
|
|
1632
1495
|
return this.modelValue;
|
|
1633
1496
|
},
|
|
1634
|
-
set(
|
|
1635
|
-
this.$emit("update:modelValue",
|
|
1497
|
+
set(t) {
|
|
1498
|
+
this.$emit("update:modelValue", t);
|
|
1636
1499
|
}
|
|
1637
1500
|
}
|
|
1638
1501
|
},
|
|
@@ -1645,10 +1508,10 @@ const Ze = {
|
|
|
1645
1508
|
}
|
|
1646
1509
|
},
|
|
1647
1510
|
mounted() {
|
|
1648
|
-
const
|
|
1649
|
-
this.existingPluginTxt === null ? (this.editor =
|
|
1511
|
+
const t = this.buildPluginMode();
|
|
1512
|
+
this.existingPluginTxt === null ? (this.editor = D.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight"), this.editor.session.setMode(new t()), this.editor.session.setTabSize(2), this.editor.session.setUseWrapMode(!0), this.editor.$blockScrolling = 1 / 0, this.editor.setHighlightActiveLine(!1), this.editor.setValue(this.localPluginTxt), this.editor.clearSelection(), H.applyVimModeIfEnabled(this.editor), this.editor.focus()) : (this.tab = 1, this.differ = new J({
|
|
1650
1513
|
element: this.$refs.editor,
|
|
1651
|
-
mode: new
|
|
1514
|
+
mode: new t(),
|
|
1652
1515
|
theme: "ace/theme/twilight",
|
|
1653
1516
|
left: {
|
|
1654
1517
|
content: this.localExistingPluginTxt,
|
|
@@ -1658,7 +1521,7 @@ const Ze = {
|
|
|
1658
1521
|
content: this.localPluginTxt,
|
|
1659
1522
|
editable: !1
|
|
1660
1523
|
}
|
|
1661
|
-
}), this.differ.getEditors().left.setFontSize(16), this.differ.getEditors().right.setFontSize(16),
|
|
1524
|
+
}), this.differ.getEditors().left.setFontSize(16), this.differ.getEditors().right.setFontSize(16), H.applyVimModeIfEnabled(this.differ.getEditors().left), H.applyVimModeIfEnabled(this.differ.getEditors().right), this.curDiff = -1);
|
|
1662
1525
|
},
|
|
1663
1526
|
beforeUnmount() {
|
|
1664
1527
|
this.editor && this.editor.destroy(), this.differ && this.differ.destroy();
|
|
@@ -1672,29 +1535,29 @@ const Ze = {
|
|
|
1672
1535
|
},
|
|
1673
1536
|
scrollToCurDiff() {
|
|
1674
1537
|
if (this.differ.diffs.length === 0) return;
|
|
1675
|
-
let
|
|
1676
|
-
|
|
1538
|
+
let t = this.differ.diffs[this.curDiff].leftStartLine, e = this.differ.diffs[this.curDiff].rightStartLine;
|
|
1539
|
+
t > 5 && (t -= 5), e > 5 && (e -= 5), this.differ.getEditors().left.scrollToLine(t), this.differ.getEditors().right.scrollToLine(e);
|
|
1677
1540
|
},
|
|
1678
1541
|
buildPluginMode() {
|
|
1679
|
-
let
|
|
1542
|
+
let t = D.require("ace/lib/oop"), e = D.require(
|
|
1680
1543
|
"ace/mode/ruby_highlight_rules"
|
|
1681
|
-
).RubyHighlightRules, n = ["VARIABLE"],
|
|
1682
|
-
|
|
1683
|
-
for (let
|
|
1684
|
-
this.$rules[
|
|
1685
|
-
regex:
|
|
1544
|
+
).RubyHighlightRules, n = ["VARIABLE"], l = new RegExp(`(\\b${n.join("\\b|\\b")}\\b)`), i = function() {
|
|
1545
|
+
e.call(this);
|
|
1546
|
+
for (let c in this.$rules)
|
|
1547
|
+
this.$rules[c].unshift({
|
|
1548
|
+
regex: l,
|
|
1686
1549
|
token: "support.function"
|
|
1687
1550
|
});
|
|
1688
1551
|
};
|
|
1689
|
-
|
|
1690
|
-
let
|
|
1552
|
+
t.inherits(i, e);
|
|
1553
|
+
let o = D.require(
|
|
1691
1554
|
"ace/mode/matching_brace_outdent"
|
|
1692
|
-
).MatchingBraceOutdent, s =
|
|
1555
|
+
).MatchingBraceOutdent, s = D.require(
|
|
1693
1556
|
"ace/mode/behaviour/cstyle"
|
|
1694
|
-
).CstyleBehaviour, r =
|
|
1695
|
-
this.HighlightRules =
|
|
1696
|
-
},
|
|
1697
|
-
return
|
|
1557
|
+
).CstyleBehaviour, r = D.require("ace/mode/folding/ruby").FoldMode, a = function() {
|
|
1558
|
+
this.HighlightRules = i, this.$outdent = new o(), this.$behaviour = new s(), this.foldingRules = new r(), this.indentKeywords = this.foldingRules.indentKeywords;
|
|
1559
|
+
}, u = D.require("ace/mode/ruby").Mode;
|
|
1560
|
+
return t.inherits(a, u), (function() {
|
|
1698
1561
|
this.$id = "ace/mode/openc3";
|
|
1699
1562
|
}).call(a.prototype), a;
|
|
1700
1563
|
},
|
|
@@ -1707,96 +1570,96 @@ const Ze = {
|
|
|
1707
1570
|
okText: "Install",
|
|
1708
1571
|
cancelText: "Cancel"
|
|
1709
1572
|
}
|
|
1710
|
-
).then((
|
|
1573
|
+
).then((t) => {
|
|
1711
1574
|
this.emitSubmit(
|
|
1712
1575
|
this.differ.getEditors().left.getValue().split(`
|
|
1713
1576
|
`)
|
|
1714
1577
|
);
|
|
1715
|
-
}).catch((
|
|
1578
|
+
}).catch((t) => {
|
|
1716
1579
|
});
|
|
1717
1580
|
},
|
|
1718
|
-
emitSubmit(
|
|
1719
|
-
let
|
|
1581
|
+
emitSubmit(t) {
|
|
1582
|
+
let e = {
|
|
1720
1583
|
name: this.pluginName,
|
|
1721
|
-
variables:
|
|
1722
|
-
plugin_txt_lines:
|
|
1584
|
+
variables: Pe(this.localVariables),
|
|
1585
|
+
plugin_txt_lines: t
|
|
1723
1586
|
};
|
|
1724
|
-
this.$emit("callback",
|
|
1587
|
+
this.$emit("callback", e);
|
|
1725
1588
|
},
|
|
1726
1589
|
close: function() {
|
|
1727
1590
|
this.show = !this.show;
|
|
1728
1591
|
},
|
|
1729
|
-
showContextMenu: function(
|
|
1730
|
-
this.menuX =
|
|
1731
|
-
let
|
|
1592
|
+
showContextMenu: function(t) {
|
|
1593
|
+
this.menuX = t.pageX, this.menuY = t.pageY;
|
|
1594
|
+
let e = this.editor.getCursorPosition(), n = this.editor.session.getTokenAt(e.row, e.column);
|
|
1732
1595
|
if (n) {
|
|
1733
|
-
let
|
|
1734
|
-
|
|
1596
|
+
let l = n.value.trim();
|
|
1597
|
+
l.includes(" ") ? this.docsKeyword = l.split(" ")[0] : this.docsKeyword = l, this.contextMenu = !0;
|
|
1735
1598
|
}
|
|
1736
1599
|
},
|
|
1737
1600
|
toggleVimMode: function() {
|
|
1738
|
-
this.editor &&
|
|
1601
|
+
this.editor && H.toggleVimMode(this.editor);
|
|
1739
1602
|
}
|
|
1740
1603
|
}
|
|
1741
|
-
},
|
|
1604
|
+
}, Ft = { style: { flex: "1" } }, Ht = { class: "pa-3" }, Pt = {
|
|
1742
1605
|
ref: "editor",
|
|
1743
1606
|
class: "editor"
|
|
1744
|
-
},
|
|
1745
|
-
function
|
|
1746
|
-
const s =
|
|
1747
|
-
return
|
|
1748
|
-
modelValue:
|
|
1749
|
-
"onUpdate:modelValue":
|
|
1607
|
+
}, Bt = { key: 0 };
|
|
1608
|
+
function Gt(t, e, n, l, i, o) {
|
|
1609
|
+
const s = f("v-card-title"), r = f("v-icon"), a = f("v-row"), u = f("v-tab"), c = f("v-tabs"), h = f("v-text-field"), m = f("v-col"), p = f("v-window-item"), v = f("v-list-item-title"), k = f("v-list-item"), E = f("v-divider"), b = f("v-list"), L = f("v-menu"), _ = f("v-window"), S = f("v-btn"), M = f("v-spacer"), N = f("v-card-actions"), Z = f("v-card-text"), Re = f("v-card"), Oe = f("v-dialog");
|
|
1610
|
+
return y(), T(Oe, {
|
|
1611
|
+
modelValue: o.show,
|
|
1612
|
+
"onUpdate:modelValue": e[5] || (e[5] = (R) => o.show = R),
|
|
1750
1613
|
persistent: "",
|
|
1751
1614
|
width: "80vw"
|
|
1752
1615
|
}, {
|
|
1753
1616
|
default: g(() => [
|
|
1754
|
-
|
|
1617
|
+
d(Re, null, {
|
|
1755
1618
|
default: g(() => [
|
|
1756
|
-
|
|
1619
|
+
d(Z, null, {
|
|
1757
1620
|
default: g(() => [
|
|
1758
|
-
|
|
1621
|
+
d(s, null, {
|
|
1759
1622
|
default: g(() => [
|
|
1760
|
-
|
|
1623
|
+
w(A(n.pluginName), 1)
|
|
1761
1624
|
]),
|
|
1762
1625
|
_: 1
|
|
1763
1626
|
}),
|
|
1764
|
-
n.existingPluginTxt !== null ? (
|
|
1627
|
+
n.existingPluginTxt !== null ? (y(), T(a, {
|
|
1765
1628
|
key: 0,
|
|
1766
1629
|
class: "notice d-flex flex-row"
|
|
1767
1630
|
}, {
|
|
1768
1631
|
default: g(() => [
|
|
1769
|
-
|
|
1632
|
+
d(r, {
|
|
1770
1633
|
size: "x-large",
|
|
1771
1634
|
start: "",
|
|
1772
1635
|
color: "yellow"
|
|
1773
1636
|
}, {
|
|
1774
|
-
default: g(() =>
|
|
1775
|
-
|
|
1637
|
+
default: g(() => e[6] || (e[6] = [
|
|
1638
|
+
w(" mdi-alert-box ")
|
|
1776
1639
|
])),
|
|
1777
1640
|
_: 1
|
|
1778
1641
|
}),
|
|
1779
|
-
|
|
1642
|
+
x("div", Ft, " The existing plugin.txt is different from the " + A(n.pluginName) + "'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update " + A(n.pluginName) + "'s plugin.txt going forward. ", 1)
|
|
1780
1643
|
]),
|
|
1781
1644
|
_: 1
|
|
1782
|
-
})) :
|
|
1783
|
-
|
|
1645
|
+
})) : q("", !0),
|
|
1646
|
+
d(a, { class: "pb-3 pr-3" }, {
|
|
1784
1647
|
default: g(() => [
|
|
1785
|
-
c
|
|
1786
|
-
modelValue:
|
|
1787
|
-
"onUpdate:modelValue":
|
|
1648
|
+
d(c, {
|
|
1649
|
+
modelValue: i.tab,
|
|
1650
|
+
"onUpdate:modelValue": e[0] || (e[0] = (R) => i.tab = R),
|
|
1788
1651
|
class: "ml-3"
|
|
1789
1652
|
}, {
|
|
1790
1653
|
default: g(() => [
|
|
1791
|
-
(
|
|
1792
|
-
default: g(() =>
|
|
1793
|
-
|
|
1654
|
+
(y(), T(u, { key: 0 }, {
|
|
1655
|
+
default: g(() => e[7] || (e[7] = [
|
|
1656
|
+
w(" Variables ")
|
|
1794
1657
|
])),
|
|
1795
1658
|
_: 1
|
|
1796
1659
|
})),
|
|
1797
|
-
(
|
|
1798
|
-
default: g(() =>
|
|
1799
|
-
|
|
1660
|
+
(y(), T(u, { key: 1 }, {
|
|
1661
|
+
default: g(() => e[8] || (e[8] = [
|
|
1662
|
+
w(" plugin.txt ")
|
|
1800
1663
|
])),
|
|
1801
1664
|
_: 1
|
|
1802
1665
|
}))
|
|
@@ -1806,29 +1669,29 @@ function ot(e, t, n, o, l, i) {
|
|
|
1806
1669
|
]),
|
|
1807
1670
|
_: 1
|
|
1808
1671
|
}),
|
|
1809
|
-
|
|
1810
|
-
onSubmit:
|
|
1672
|
+
x("form", {
|
|
1673
|
+
onSubmit: e[4] || (e[4] = P((...R) => t.onSubmit && t.onSubmit(...R), ["prevent"]))
|
|
1811
1674
|
}, [
|
|
1812
|
-
|
|
1813
|
-
modelValue:
|
|
1814
|
-
"onUpdate:modelValue":
|
|
1675
|
+
d(_, {
|
|
1676
|
+
modelValue: i.tab,
|
|
1677
|
+
"onUpdate:modelValue": e[3] || (e[3] = (R) => i.tab = R)
|
|
1815
1678
|
}, {
|
|
1816
1679
|
default: g(() => [
|
|
1817
|
-
(
|
|
1680
|
+
(y(), T(p, {
|
|
1818
1681
|
key: 0,
|
|
1819
1682
|
eager: "true",
|
|
1820
1683
|
class: "tab"
|
|
1821
1684
|
}, {
|
|
1822
1685
|
default: g(() => [
|
|
1823
|
-
|
|
1824
|
-
|
|
1686
|
+
x("div", Ht, [
|
|
1687
|
+
d(a, { class: "mt-3" }, {
|
|
1825
1688
|
default: g(() => [
|
|
1826
|
-
(
|
|
1827
|
-
|
|
1689
|
+
(y(!0), O(G, null, U(i.localVariables, (R, Y) => (y(), O("div", { key: Y }, [
|
|
1690
|
+
d(m, { style: { width: "220px" } }, {
|
|
1828
1691
|
default: g(() => [
|
|
1829
|
-
|
|
1830
|
-
modelValue:
|
|
1831
|
-
"onUpdate:modelValue": (
|
|
1692
|
+
d(h, {
|
|
1693
|
+
modelValue: i.localVariables[Y],
|
|
1694
|
+
"onUpdate:modelValue": (Ae) => i.localVariables[Y] = Ae,
|
|
1832
1695
|
clearable: "",
|
|
1833
1696
|
type: "text",
|
|
1834
1697
|
label: Y
|
|
@@ -1844,52 +1707,52 @@ function ot(e, t, n, o, l, i) {
|
|
|
1844
1707
|
]),
|
|
1845
1708
|
_: 1
|
|
1846
1709
|
})),
|
|
1847
|
-
n.existingPluginTxt === null ? (
|
|
1710
|
+
n.existingPluginTxt === null ? (y(), T(p, {
|
|
1848
1711
|
key: "1-new",
|
|
1849
1712
|
eager: "true",
|
|
1850
1713
|
class: "tab"
|
|
1851
1714
|
}, {
|
|
1852
1715
|
default: g(() => [
|
|
1853
|
-
|
|
1716
|
+
d(a, { class: "pa-3" }, {
|
|
1854
1717
|
default: g(() => [
|
|
1855
|
-
|
|
1856
|
-
default: g(() =>
|
|
1857
|
-
|
|
1718
|
+
d(m, null, {
|
|
1719
|
+
default: g(() => e[9] || (e[9] = [
|
|
1720
|
+
w(" This can be edited before installation. ")
|
|
1858
1721
|
])),
|
|
1859
1722
|
_: 1
|
|
1860
1723
|
})
|
|
1861
1724
|
]),
|
|
1862
1725
|
_: 1
|
|
1863
1726
|
}),
|
|
1864
|
-
|
|
1727
|
+
x("pre", {
|
|
1865
1728
|
ref: "editor",
|
|
1866
1729
|
class: "editor",
|
|
1867
|
-
onContextmenu:
|
|
1730
|
+
onContextmenu: e[1] || (e[1] = P((...R) => o.showContextMenu && o.showContextMenu(...R), ["prevent"]))
|
|
1868
1731
|
}, null, 544),
|
|
1869
|
-
|
|
1870
|
-
modelValue:
|
|
1871
|
-
"onUpdate:modelValue":
|
|
1872
|
-
target: [
|
|
1732
|
+
d(L, {
|
|
1733
|
+
modelValue: i.contextMenu,
|
|
1734
|
+
"onUpdate:modelValue": e[2] || (e[2] = (R) => i.contextMenu = R),
|
|
1735
|
+
target: [i.menuX, i.menuY]
|
|
1873
1736
|
}, {
|
|
1874
1737
|
default: g(() => [
|
|
1875
|
-
|
|
1738
|
+
d(b, null, {
|
|
1876
1739
|
default: g(() => [
|
|
1877
|
-
|
|
1740
|
+
d(k, { link: "" }, {
|
|
1878
1741
|
default: g(() => [
|
|
1879
|
-
|
|
1742
|
+
d(v, { onClick: t.openDocumentation }, {
|
|
1880
1743
|
default: g(() => [
|
|
1881
|
-
|
|
1744
|
+
w(A(t.docsKeyword) + " documentation ", 1)
|
|
1882
1745
|
]),
|
|
1883
1746
|
_: 1
|
|
1884
1747
|
}, 8, ["onClick"])
|
|
1885
1748
|
]),
|
|
1886
1749
|
_: 1
|
|
1887
1750
|
}),
|
|
1888
|
-
|
|
1889
|
-
|
|
1751
|
+
d(E),
|
|
1752
|
+
d(k, {
|
|
1890
1753
|
title: "Toggle Vim mode",
|
|
1891
1754
|
"prepend-icon": "extras:vim",
|
|
1892
|
-
onClick:
|
|
1755
|
+
onClick: o.toggleVimMode
|
|
1893
1756
|
}, null, 8, ["onClick"])
|
|
1894
1757
|
]),
|
|
1895
1758
|
_: 1
|
|
@@ -1899,76 +1762,76 @@ function ot(e, t, n, o, l, i) {
|
|
|
1899
1762
|
}, 8, ["modelValue", "target"])
|
|
1900
1763
|
]),
|
|
1901
1764
|
_: 1
|
|
1902
|
-
})) : (
|
|
1765
|
+
})) : (y(), T(p, {
|
|
1903
1766
|
key: "1-existing",
|
|
1904
1767
|
eager: "true",
|
|
1905
1768
|
class: "tab"
|
|
1906
1769
|
}, {
|
|
1907
1770
|
default: g(() => [
|
|
1908
|
-
|
|
1771
|
+
d(a, { class: "pa-3" }, {
|
|
1909
1772
|
default: g(() => [
|
|
1910
|
-
|
|
1911
|
-
default: g(() =>
|
|
1912
|
-
|
|
1773
|
+
d(m, null, {
|
|
1774
|
+
default: g(() => e[10] || (e[10] = [
|
|
1775
|
+
w(" Existing plugin.txt. This can be edited before installation. ")
|
|
1913
1776
|
])),
|
|
1914
1777
|
_: 1
|
|
1915
1778
|
}),
|
|
1916
|
-
|
|
1917
|
-
default: g(() =>
|
|
1918
|
-
|
|
1779
|
+
d(m, { class: "ml-6" }, {
|
|
1780
|
+
default: g(() => e[11] || (e[11] = [
|
|
1781
|
+
w(" Uneditable plugin.txt from the new plugin. ")
|
|
1919
1782
|
])),
|
|
1920
1783
|
_: 1
|
|
1921
1784
|
})
|
|
1922
1785
|
]),
|
|
1923
1786
|
_: 1
|
|
1924
1787
|
}),
|
|
1925
|
-
|
|
1788
|
+
x("pre", Pt, null, 512)
|
|
1926
1789
|
]),
|
|
1927
1790
|
_: 1
|
|
1928
1791
|
}))
|
|
1929
1792
|
]),
|
|
1930
1793
|
_: 1
|
|
1931
1794
|
}, 8, ["modelValue"]),
|
|
1932
|
-
|
|
1795
|
+
d(N, { class: "px-2 mt-2" }, {
|
|
1933
1796
|
default: g(() => [
|
|
1934
|
-
n.existingPluginTxt !== null ? (
|
|
1935
|
-
|
|
1797
|
+
n.existingPluginTxt !== null ? (y(), O("div", Bt, [
|
|
1798
|
+
d(S, {
|
|
1936
1799
|
variant: "text",
|
|
1937
|
-
onClick:
|
|
1800
|
+
onClick: o.nextDiff
|
|
1938
1801
|
}, {
|
|
1939
|
-
default: g(() =>
|
|
1940
|
-
|
|
1802
|
+
default: g(() => e[12] || (e[12] = [
|
|
1803
|
+
w(" Next Diff ")
|
|
1941
1804
|
])),
|
|
1942
1805
|
_: 1
|
|
1943
1806
|
}, 8, ["onClick"]),
|
|
1944
|
-
|
|
1807
|
+
d(S, {
|
|
1945
1808
|
variant: "text",
|
|
1946
|
-
onClick:
|
|
1809
|
+
onClick: o.previousDiff
|
|
1947
1810
|
}, {
|
|
1948
|
-
default: g(() =>
|
|
1949
|
-
|
|
1811
|
+
default: g(() => e[13] || (e[13] = [
|
|
1812
|
+
w(" Previous Diff ")
|
|
1950
1813
|
])),
|
|
1951
1814
|
_: 1
|
|
1952
1815
|
}, 8, ["onClick"])
|
|
1953
|
-
])) :
|
|
1954
|
-
|
|
1955
|
-
|
|
1816
|
+
])) : q("", !0),
|
|
1817
|
+
d(M),
|
|
1818
|
+
d(S, {
|
|
1956
1819
|
variant: "outlined",
|
|
1957
1820
|
"data-test": "edit-cancel",
|
|
1958
|
-
onClick:
|
|
1821
|
+
onClick: P(o.close, ["prevent"])
|
|
1959
1822
|
}, {
|
|
1960
|
-
default: g(() =>
|
|
1961
|
-
|
|
1823
|
+
default: g(() => e[14] || (e[14] = [
|
|
1824
|
+
w(" Cancel ")
|
|
1962
1825
|
])),
|
|
1963
1826
|
_: 1
|
|
1964
1827
|
}, 8, ["onClick"]),
|
|
1965
|
-
|
|
1828
|
+
d(S, {
|
|
1966
1829
|
variant: "flat",
|
|
1967
1830
|
"data-test": "edit-submit",
|
|
1968
|
-
onClick:
|
|
1831
|
+
onClick: o.submit
|
|
1969
1832
|
}, {
|
|
1970
|
-
default: g(() =>
|
|
1971
|
-
|
|
1833
|
+
default: g(() => e[15] || (e[15] = [
|
|
1834
|
+
w(" Install ")
|
|
1972
1835
|
])),
|
|
1973
1836
|
_: 1
|
|
1974
1837
|
}, 8, ["onClick"])
|
|
@@ -1986,13 +1849,13 @@ function ot(e, t, n, o, l, i) {
|
|
|
1986
1849
|
_: 1
|
|
1987
1850
|
}, 8, ["modelValue"]);
|
|
1988
1851
|
}
|
|
1989
|
-
const
|
|
1852
|
+
const Zt = /* @__PURE__ */ j(Nt, [["render", Gt], ["__scopeId", "data-v-5b18ccf5"]]);
|
|
1990
1853
|
export {
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1854
|
+
Kt as DownloadDialog,
|
|
1855
|
+
Xt as EditDialog,
|
|
1856
|
+
Jt as ModifiedPluginDialog,
|
|
1857
|
+
Qt as OpenC3Admin,
|
|
1858
|
+
Zt as PluginDialog,
|
|
1859
|
+
it as TabsList
|
|
1997
1860
|
};
|
|
1998
1861
|
//# sourceMappingURL=admin.js.map
|