@openc3/vue-common 6.2.1 → 6.3.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-BxEO5hEG.js → ArrayWidget-BbsN1dzF.js} +5 -5
- package/dist/{ArrayWidget-BxEO5hEG.js.map → ArrayWidget-BbsN1dzF.js.map} +1 -1
- package/dist/{ArrayWidget-BIQi_bWC.cjs → ArrayWidget-DkjHrXsu.cjs} +3 -3
- package/dist/{ArrayWidget-BIQi_bWC.cjs.map → ArrayWidget-DkjHrXsu.cjs.map} +1 -1
- package/dist/{ArrayplotWidget-B_VPoV4v.js → ArrayplotWidget-CCKEyYIx.js} +4 -4
- package/dist/{ArrayplotWidget-B_VPoV4v.js.map → ArrayplotWidget-CCKEyYIx.js.map} +1 -1
- package/dist/ArrayplotWidget-COeaK_Lz.cjs +2 -0
- package/dist/{ArrayplotWidget-Donxhd8_.cjs.map → ArrayplotWidget-COeaK_Lz.cjs.map} +1 -1
- package/dist/{BarColumn-C9dkpg2O.js → BarColumn-C6p07yWK.js} +3 -3
- package/dist/{BarColumn-C9dkpg2O.js.map → BarColumn-C6p07yWK.js.map} +1 -1
- package/dist/BarColumn-CJLW1nXy.cjs +2 -0
- package/dist/{BarColumn-CyRSZHMh.cjs.map → BarColumn-CJLW1nXy.cjs.map} +1 -1
- package/dist/BlockWidget-BFVYgbd_.cjs +3 -0
- package/dist/{BlockWidget-DPLN1jgj.cjs.map → BlockWidget-BFVYgbd_.cjs.map} +1 -1
- package/dist/{BlockWidget-CuefOin6.js → BlockWidget-DlCHbqZX.js} +5 -5
- package/dist/{BlockWidget-CuefOin6.js.map → BlockWidget-DlCHbqZX.js.map} +1 -1
- package/dist/{ButtonWidget-B6HM0Doo.js → ButtonWidget-CtfJzCBR.js} +15 -15
- package/dist/{ButtonWidget-B6HM0Doo.js.map → ButtonWidget-CtfJzCBR.js.map} +1 -1
- package/dist/ButtonWidget-HN8UHsme.cjs +3 -0
- package/dist/{ButtonWidget-DccYzIY3.cjs.map → ButtonWidget-HN8UHsme.cjs.map} +1 -1
- package/dist/CanvasWidget-CHmkxxMO.cjs +2 -0
- package/dist/{CanvasWidget-BzTU9rc9.cjs.map → CanvasWidget-CHmkxxMO.cjs.map} +1 -1
- package/dist/{CanvasWidget-DZQGG-yQ.js → CanvasWidget-CqRlXc4r.js} +3 -3
- package/dist/{CanvasWidget-DZQGG-yQ.js.map → CanvasWidget-CqRlXc4r.js.map} +1 -1
- package/dist/{CanvasdotWidget-6wuCSnw_.js → CanvasdotWidget--Xr_KsZs.js} +3 -3
- package/dist/{CanvasdotWidget-6wuCSnw_.js.map → CanvasdotWidget--Xr_KsZs.js.map} +1 -1
- package/dist/CanvasdotWidget-B4bUcKRc.cjs +2 -0
- package/dist/{CanvasdotWidget-B7VTS1QI.cjs.map → CanvasdotWidget-B4bUcKRc.cjs.map} +1 -1
- package/dist/CanvasimageWidget-B5YozXoI.cjs +2 -0
- package/dist/{CanvasimageWidget-BwYpfmDE.cjs.map → CanvasimageWidget-B5YozXoI.cjs.map} +1 -1
- package/dist/{CanvasimageWidget-mhcPpAuN.js → CanvasimageWidget-BPlj5QYK.js} +4 -4
- package/dist/{CanvasimageWidget-mhcPpAuN.js.map → CanvasimageWidget-BPlj5QYK.js.map} +1 -1
- package/dist/{CanvasimagevalueWidget-Cx-dH8Gc.js → CanvasimagevalueWidget-DVFGLt8f.js} +4 -4
- package/dist/{CanvasimagevalueWidget-Cx-dH8Gc.js.map → CanvasimagevalueWidget-DVFGLt8f.js.map} +1 -1
- package/dist/CanvasimagevalueWidget-Dx1HnbEw.cjs +2 -0
- package/dist/{CanvasimagevalueWidget-E_NsZ82T.cjs.map → CanvasimagevalueWidget-Dx1HnbEw.cjs.map} +1 -1
- package/dist/{CanvaslabelWidget-CQZCeohU.js → CanvaslabelWidget-CYNqmyP0.js} +3 -3
- package/dist/{CanvaslabelWidget-CQZCeohU.js.map → CanvaslabelWidget-CYNqmyP0.js.map} +1 -1
- package/dist/CanvaslabelWidget-DgadQD-D.cjs +2 -0
- package/dist/{CanvaslabelWidget-BBDuXWfU.cjs.map → CanvaslabelWidget-DgadQD-D.cjs.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-CwmYDCjr.js → CanvaslabelvalueWidget-B7yIDmsn.js} +3 -3
- package/dist/{CanvaslabelvalueWidget-CwmYDCjr.js.map → CanvaslabelvalueWidget-B7yIDmsn.js.map} +1 -1
- package/dist/CanvaslabelvalueWidget-C3k5gx5c.cjs +2 -0
- package/dist/{CanvaslabelvalueWidget-DAdu7ujn.cjs.map → CanvaslabelvalueWidget-C3k5gx5c.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-nTP3fJB4.js → CanvaslineWidget-BICdxX0Q.js} +3 -3
- package/dist/{CanvaslineWidget-nTP3fJB4.js.map → CanvaslineWidget-BICdxX0Q.js.map} +1 -1
- package/dist/CanvaslineWidget-CYHkes0a.cjs +2 -0
- package/dist/{CanvaslineWidget-Bv5da1Vy.cjs.map → CanvaslineWidget-CYHkes0a.cjs.map} +1 -1
- package/dist/CanvaslinevalueWidget-5DzhZ22p.cjs +2 -0
- package/dist/{CanvaslinevalueWidget-BVfUB96K.cjs.map → CanvaslinevalueWidget-5DzhZ22p.cjs.map} +1 -1
- package/dist/{CanvaslinevalueWidget-C3sJnjLQ.js → CanvaslinevalueWidget-Cq-Ddh0P.js} +3 -3
- package/dist/{CanvaslinevalueWidget-C3sJnjLQ.js.map → CanvaslinevalueWidget-Cq-Ddh0P.js.map} +1 -1
- package/dist/{CheckbuttonWidget-5-8YDsQL.js → CheckbuttonWidget-B74AWeaW.js} +3 -3
- package/dist/{CheckbuttonWidget-5-8YDsQL.js.map → CheckbuttonWidget-B74AWeaW.js.map} +1 -1
- package/dist/CheckbuttonWidget-BCzsXnIF.cjs +2 -0
- package/dist/{CheckbuttonWidget-BGqD-BGc.cjs.map → CheckbuttonWidget-BCzsXnIF.cjs.map} +1 -1
- package/dist/{ComboboxWidget-DzBL8h9f.js → ComboboxWidget-CtyKbEWb.js} +3 -3
- package/dist/{ComboboxWidget-DzBL8h9f.js.map → ComboboxWidget-CtyKbEWb.js.map} +1 -1
- package/dist/ComboboxWidget-DQgDyDAC.cjs +2 -0
- package/dist/{ComboboxWidget-DoHMlSAr.cjs.map → ComboboxWidget-DQgDyDAC.cjs.map} +1 -1
- package/dist/CriticalCmdDialog-BnxZlt7W.cjs +2 -0
- package/dist/{CriticalCmdDialog-DoLBrU2k.cjs.map → CriticalCmdDialog-BnxZlt7W.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-DLEasFsx.js → CriticalCmdDialog-DPIZOBeP.js} +4 -4
- package/dist/{CriticalCmdDialog-DLEasFsx.js.map → CriticalCmdDialog-DPIZOBeP.js.map} +1 -1
- package/dist/CustomIcon-Bop2mEnu.cjs +2 -0
- package/dist/CustomIcon-Bop2mEnu.cjs.map +1 -0
- package/dist/CustomIcon-h5X7369N.js +50 -0
- package/dist/CustomIcon-h5X7369N.js.map +1 -0
- package/dist/DateWidget-BB4cIuUS.cjs +2 -0
- package/dist/{DateWidget-DKZz1J9J.cjs.map → DateWidget-BB4cIuUS.cjs.map} +1 -1
- package/dist/{DateWidget-CW7Od7lB.js → DateWidget-BEVSczU8.js} +3 -3
- package/dist/{DateWidget-CW7Od7lB.js.map → DateWidget-BEVSczU8.js.map} +1 -1
- package/dist/{DetailsDialog-BvbziA7Y.js → DetailsDialog-DmEC5BTs.js} +6 -6
- package/dist/{DetailsDialog-BvbziA7Y.js.map → DetailsDialog-DmEC5BTs.js.map} +1 -1
- package/dist/DetailsDialog-mvxMFmgV.cjs +2 -0
- package/dist/{DetailsDialog-CiuQYvJK.cjs.map → DetailsDialog-mvxMFmgV.cjs.map} +1 -1
- package/dist/DynamicWidget-BWEVCUfd.cjs +2 -0
- package/dist/{DynamicWidget-3wHr6Ng-.cjs.map → DynamicWidget-BWEVCUfd.cjs.map} +1 -1
- package/dist/{DynamicWidget-gFSYxzvT.js → DynamicWidget-CfMtj7H8.js} +2 -2
- package/dist/{DynamicWidget-gFSYxzvT.js.map → DynamicWidget-CfMtj7H8.js.map} +1 -1
- package/dist/EventListDialog-BHZLl28V.cjs +2 -0
- package/dist/EventListDialog-BHZLl28V.cjs.map +1 -0
- package/dist/EventListDialog-CSMSmCIT.js +1586 -0
- package/dist/EventListDialog-CSMSmCIT.js.map +1 -0
- package/dist/FormatvalueWidget-CdjCEAI7.cjs +2 -0
- package/dist/{FormatvalueWidget-DFrbeKb9.cjs.map → FormatvalueWidget-CdjCEAI7.cjs.map} +1 -1
- package/dist/{FormatvalueWidget-CGpnTqVH.js → FormatvalueWidget-DN12xymS.js} +4 -4
- package/dist/{FormatvalueWidget-CGpnTqVH.js.map → FormatvalueWidget-DN12xymS.js.map} +1 -1
- package/dist/{Graph-3rkhFP3G.js → Graph-Bgo0cjl3.js} +214 -209
- package/dist/Graph-Bgo0cjl3.js.map +1 -0
- package/dist/Graph-Ujd2yaeI.cjs +2 -0
- package/dist/Graph-Ujd2yaeI.cjs.map +1 -0
- package/dist/{GraphWidget-Dycey-mj.js → GraphWidget-DurWDmpg.js} +2 -2
- package/dist/{GraphWidget-Dycey-mj.js.map → GraphWidget-DurWDmpg.js.map} +1 -1
- package/dist/{GraphWidget-22NxFa9k.cjs → GraphWidget-sid4Ws9H.cjs} +2 -2
- package/dist/{GraphWidget-22NxFa9k.cjs.map → GraphWidget-sid4Ws9H.cjs.map} +1 -1
- package/dist/{HorizontalWidget-D31NRWy5.js → HorizontalWidget-Cd_wl1b3.js} +3 -3
- package/dist/{HorizontalWidget-D31NRWy5.js.map → HorizontalWidget-Cd_wl1b3.js.map} +1 -1
- package/dist/HorizontalWidget-_6IR0cR8.cjs +2 -0
- package/dist/{HorizontalWidget-BBeB0eBI.cjs.map → HorizontalWidget-_6IR0cR8.cjs.map} +1 -1
- package/dist/HorizontalboxWidget-BcMTFBU-.js +47 -0
- package/dist/HorizontalboxWidget-BcMTFBU-.js.map +1 -0
- package/dist/HorizontalboxWidget-zmnurtv1.cjs +2 -0
- package/dist/HorizontalboxWidget-zmnurtv1.cjs.map +1 -0
- package/dist/HorizontallineWidget-CM-6WqCj.cjs +2 -0
- package/dist/{HorizontallineWidget-BCKOQase.cjs.map → HorizontallineWidget-CM-6WqCj.cjs.map} +1 -1
- package/dist/HorizontallineWidget-CXFqHclf.js +16 -0
- package/dist/{HorizontallineWidget-CbxREBYI.js.map → HorizontallineWidget-CXFqHclf.js.map} +1 -1
- package/dist/{IframeWidget-Ctj8OIcG.js → IframeWidget-BPerHCCa.js} +3 -3
- package/dist/{IframeWidget-Ctj8OIcG.js.map → IframeWidget-BPerHCCa.js.map} +1 -1
- package/dist/IframeWidget-EhncMob0.cjs +2 -0
- package/dist/{IframeWidget-CZwsTgvX.cjs.map → IframeWidget-EhncMob0.cjs.map} +1 -1
- package/dist/{ImageLoader-BrNrCBvi.js → ImageLoader-4N-7Gj61.js} +2 -2
- package/dist/{ImageLoader-BrNrCBvi.js.map → ImageLoader-4N-7Gj61.js.map} +1 -1
- package/dist/ImageLoader-cRmBcpU9.cjs +2 -0
- package/dist/{ImageLoader-D_Gq-KxR.cjs.map → ImageLoader-cRmBcpU9.cjs.map} +1 -1
- package/dist/ImageviewerWidget-Bv3CreXd.cjs +2 -0
- package/dist/{ImageviewerWidget-DwRPFSLR.cjs.map → ImageviewerWidget-Bv3CreXd.cjs.map} +1 -1
- package/dist/{ImageviewerWidget-XrsqxmLo.js → ImageviewerWidget-Cw_H_HmZ.js} +3 -3
- package/dist/{ImageviewerWidget-XrsqxmLo.js.map → ImageviewerWidget-Cw_H_HmZ.js.map} +1 -1
- package/dist/{InterfacesTab-DAeNlGlB.js → InterfacesTab-B4glsR9Z.js} +4 -4
- package/dist/{InterfacesTab-DAeNlGlB.js.map → InterfacesTab-B4glsR9Z.js.map} +1 -1
- package/dist/InterfacesTab-Co1Kd6Fa.cjs +2 -0
- package/dist/{InterfacesTab-CLaicsHA.cjs.map → InterfacesTab-Co1Kd6Fa.cjs.map} +1 -1
- package/dist/LabelWidget-mMcf5S8K.cjs +2 -0
- package/dist/LabelWidget-mMcf5S8K.cjs.map +1 -0
- package/dist/{LabelWidget-t7I87dp7.js → LabelWidget-xrmcVeq8.js} +5 -5
- package/dist/LabelWidget-xrmcVeq8.js.map +1 -0
- package/dist/LabelledWidget-BoYCuDaH.cjs +2 -0
- package/dist/{LabelledWidget-DUpHxc9z.cjs.map → LabelledWidget-BoYCuDaH.cjs.map} +1 -1
- package/dist/{LabelledWidget-C7TDf92M.js → LabelledWidget-D48QoyMk.js} +5 -5
- package/dist/{LabelledWidget-C7TDf92M.js.map → LabelledWidget-D48QoyMk.js.map} +1 -1
- package/dist/{LabelprogressbarWidget-wwLURt1u.js → LabelprogressbarWidget-C_950t6g.js} +5 -5
- package/dist/{LabelprogressbarWidget-wwLURt1u.js.map → LabelprogressbarWidget-C_950t6g.js.map} +1 -1
- package/dist/LabelprogressbarWidget-DiucKsT2.cjs +2 -0
- package/dist/{LabelprogressbarWidget-D6cpayCR.cjs.map → LabelprogressbarWidget-DiucKsT2.cjs.map} +1 -1
- package/dist/{LabelsparklineWidget-B3awLUyP.js → LabelsparklineWidget-0KXQyPoU.js} +5 -5
- package/dist/{LabelsparklineWidget-B3awLUyP.js.map → LabelsparklineWidget-0KXQyPoU.js.map} +1 -1
- package/dist/LabelsparklineWidget-A3MTEhQc.cjs +2 -0
- package/dist/{LabelsparklineWidget-CJRnLETe.cjs.map → LabelsparklineWidget-A3MTEhQc.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-Zx_yHCtl.js → LabelvalueWidget-CQ06wWDK.js} +5 -5
- package/dist/{LabelvalueWidget-Zx_yHCtl.js.map → LabelvalueWidget-CQ06wWDK.js.map} +1 -1
- package/dist/LabelvalueWidget-DnKoz0-N.cjs +2 -0
- package/dist/{LabelvalueWidget-owiMSCYl.cjs.map → LabelvalueWidget-DnKoz0-N.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-BBSBh4vI.js → LabelvaluedescWidget-Bo8zT01X.js} +6 -6
- package/dist/{LabelvaluedescWidget-BBSBh4vI.js.map → LabelvaluedescWidget-Bo8zT01X.js.map} +1 -1
- package/dist/LabelvaluedescWidget-I6ljK--Y.cjs +2 -0
- package/dist/{LabelvaluedescWidget-MRmZBUc0.cjs.map → LabelvaluedescWidget-I6ljK--Y.cjs.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-CZueHYWG.js → LabelvaluelimitsbarWidget-BucTw8Yk.js} +5 -5
- package/dist/{LabelvaluelimitsbarWidget-CZueHYWG.js.map → LabelvaluelimitsbarWidget-BucTw8Yk.js.map} +1 -1
- package/dist/LabelvaluelimitsbarWidget-Cb6i_Ixc.cjs +2 -0
- package/dist/{LabelvaluelimitsbarWidget-BQ2XYPNE.cjs.map → LabelvaluelimitsbarWidget-Cb6i_Ixc.cjs.map} +1 -1
- package/dist/LabelvaluelimitscolumnWidget-ClY5OxUC.cjs +2 -0
- package/dist/{LabelvaluelimitscolumnWidget-DNmVpU8J.cjs.map → LabelvaluelimitscolumnWidget-ClY5OxUC.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-BTvzyQMq.js → LabelvaluelimitscolumnWidget-Dflb1hNd.js} +6 -6
- package/dist/{LabelvaluelimitscolumnWidget-BTvzyQMq.js.map → LabelvaluelimitscolumnWidget-Dflb1hNd.js.map} +1 -1
- package/dist/LabelvaluerangebarWidget-9S5rVZaS.cjs +2 -0
- package/dist/{LabelvaluerangebarWidget-DL0U8cbw.cjs.map → LabelvaluerangebarWidget-9S5rVZaS.cjs.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-BhYTBgDq.js → LabelvaluerangebarWidget-D8cbfXFM.js} +5 -5
- package/dist/{LabelvaluerangebarWidget-BhYTBgDq.js.map → LabelvaluerangebarWidget-D8cbfXFM.js.map} +1 -1
- package/dist/Layout-DuCYyOw4.cjs +2 -0
- package/dist/{Layout-DRL0EeSA.cjs.map → Layout-DuCYyOw4.cjs.map} +1 -1
- package/dist/{Layout-Bh7VzCZd.js → Layout-Tf--nruw.js} +2 -2
- package/dist/{Layout-Bh7VzCZd.js.map → Layout-Tf--nruw.js.map} +1 -1
- package/dist/LedWidget-B2BcwiYF.cjs +2 -0
- package/dist/LedWidget-B2BcwiYF.cjs.map +1 -0
- package/dist/LedWidget-qH_FthkK.js +145 -0
- package/dist/LedWidget-qH_FthkK.js.map +1 -0
- package/dist/{LimitsbarWidget-Djui0IpK.js → LimitsbarWidget-B9lAB2RD.js} +3 -3
- package/dist/{LimitsbarWidget-Djui0IpK.js.map → LimitsbarWidget-B9lAB2RD.js.map} +1 -1
- package/dist/LimitsbarWidget-CVCLFIhG.cjs +2 -0
- package/dist/{LimitsbarWidget-CYIH8fdp.cjs.map → LimitsbarWidget-CVCLFIhG.cjs.map} +1 -1
- package/dist/LimitscolorWidget-DORhDxRo.cjs +2 -0
- package/dist/{LimitscolorWidget-CS0wpX9A.cjs.map → LimitscolorWidget-DORhDxRo.cjs.map} +1 -1
- package/dist/{LimitscolorWidget-DdmvKzmx.js → LimitscolorWidget-c6Qa6su7.js} +3 -3
- package/dist/{LimitscolorWidget-DdmvKzmx.js.map → LimitscolorWidget-c6Qa6su7.js.map} +1 -1
- package/dist/LimitscolumnWidget-C9Uyg7Fh.cjs +2 -0
- package/dist/{LimitscolumnWidget-C_UW6xKq.cjs.map → LimitscolumnWidget-C9Uyg7Fh.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-Cc19IEjq.js → LimitscolumnWidget-CcLs_443.js} +3 -3
- package/dist/{LimitscolumnWidget-Cc19IEjq.js.map → LimitscolumnWidget-CcLs_443.js.map} +1 -1
- package/dist/{LinegraphWidget-BtieJxeL.js → LinegraphWidget-BSVYLFo1.js} +5 -5
- package/dist/{LinegraphWidget-BtieJxeL.js.map → LinegraphWidget-BSVYLFo1.js.map} +1 -1
- package/dist/LinegraphWidget-Bf8DIwEn.cjs +2 -0
- package/dist/{LinegraphWidget-8td_PqgU.cjs.map → LinegraphWidget-Bf8DIwEn.cjs.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-DnExVRF8.js → MatrixbycolumnsWidget-DXFpZTre.js} +4 -4
- package/dist/{MatrixbycolumnsWidget-DnExVRF8.js.map → MatrixbycolumnsWidget-DXFpZTre.js.map} +1 -1
- package/dist/MatrixbycolumnsWidget-DpdFzNeP.cjs +2 -0
- package/dist/{MatrixbycolumnsWidget-CGOeCNW2.cjs.map → MatrixbycolumnsWidget-DpdFzNeP.cjs.map} +1 -1
- package/dist/MicroservicesTab-B5n-mN8G.cjs +2 -0
- package/dist/MicroservicesTab-B5n-mN8G.cjs.map +1 -0
- package/dist/{MicroservicesTab-IbTmbPxO.js → MicroservicesTab-mCdS0v39.js} +17 -21
- package/dist/MicroservicesTab-mCdS0v39.js.map +1 -0
- package/dist/Openc3Screen-BYhHaH_I.cjs +5 -0
- package/dist/Openc3Screen-BYhHaH_I.cjs.map +1 -0
- package/dist/Openc3Screen-Cud0OCFu.js +1789 -0
- package/dist/Openc3Screen-Cud0OCFu.js.map +1 -0
- package/dist/{OutputDialog-B4Q0QMJ1.cjs → OutputDialog-DXoL9VPw.cjs} +2 -2
- package/dist/OutputDialog-DXoL9VPw.cjs.map +1 -0
- package/dist/{OutputDialog-Ci5OT_fH.js → OutputDialog-zVPZiZay.js} +3 -6
- package/dist/OutputDialog-zVPZiZay.js.map +1 -0
- package/dist/PackagesTab-CvT2JyMA.cjs +2 -0
- package/dist/{PackagesTab-eYbk2vw7.cjs.map → PackagesTab-CvT2JyMA.cjs.map} +1 -1
- package/dist/{PackagesTab-BX8YP3H1.js → PackagesTab-SWcXumpK.js} +4 -4
- package/dist/{PackagesTab-BX8YP3H1.js.map → PackagesTab-SWcXumpK.js.map} +1 -1
- package/dist/{PluginsTab-Ds3jk64b.js → PluginsTab-B64OvayB.js} +4 -4
- package/dist/{PluginsTab-Ds3jk64b.js.map → PluginsTab-B64OvayB.js.map} +1 -1
- package/dist/{PluginsTab-Ck3DvEGm.cjs → PluginsTab-CfpwWsqv.cjs} +4 -4
- package/dist/{PluginsTab-Ck3DvEGm.cjs.map → PluginsTab-CfpwWsqv.cjs.map} +1 -1
- package/dist/ProgressbarWidget-fGWa6ipm.cjs +2 -0
- package/dist/{ProgressbarWidget-CUIAYySg.cjs.map → ProgressbarWidget-fGWa6ipm.cjs.map} +1 -1
- package/dist/{ProgressbarWidget-DIfqhHRE.js → ProgressbarWidget-iYGw8-Dc.js} +3 -3
- package/dist/{ProgressbarWidget-DIfqhHRE.js.map → ProgressbarWidget-iYGw8-Dc.js.map} +1 -1
- package/dist/RadiobuttonWidget-ZEPJbOp_.cjs +2 -0
- package/dist/{RadiobuttonWidget-Cjk1JAP_.cjs.map → RadiobuttonWidget-ZEPJbOp_.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-QzIkNP7m.js → RadiobuttonWidget-ytmoVZ3u.js} +3 -3
- package/dist/{RadiobuttonWidget-QzIkNP7m.js.map → RadiobuttonWidget-ytmoVZ3u.js.map} +1 -1
- package/dist/{RadiogroupWidget-Ci9sCX39.js → RadiogroupWidget-CusMBhKH.js} +3 -3
- package/dist/{RadiogroupWidget-Ci9sCX39.js.map → RadiogroupWidget-CusMBhKH.js.map} +1 -1
- package/dist/RadiogroupWidget-EK4rEGUC.cjs +2 -0
- package/dist/{RadiogroupWidget-B4lkYWaC.cjs.map → RadiogroupWidget-EK4rEGUC.cjs.map} +1 -1
- package/dist/{RangebarWidget-CN0YuHqy.js → RangebarWidget-D_zGTtCa.js} +3 -3
- package/dist/{RangebarWidget-CN0YuHqy.js.map → RangebarWidget-D_zGTtCa.js.map} +1 -1
- package/dist/RangebarWidget-DwIs-L5k.cjs +2 -0
- package/dist/{RangebarWidget-nl0rzj93.cjs.map → RangebarWidget-DwIs-L5k.cjs.map} +1 -1
- package/dist/RedisTab-67UcKoPf.cjs +2 -0
- package/dist/{RedisTab-DhS4GHDj.cjs.map → RedisTab-67UcKoPf.cjs.map} +1 -1
- package/dist/{RedisTab-CVimDkIE.js → RedisTab-CyPo6ADN.js} +14 -14
- package/dist/{RedisTab-CVimDkIE.js.map → RedisTab-CyPo6ADN.js.map} +1 -1
- package/dist/RollupWidget-DC3OIP6G.cjs +2 -0
- package/dist/{RollupWidget-Bgudi_bt.cjs.map → RollupWidget-DC3OIP6G.cjs.map} +1 -1
- package/dist/{RollupWidget-y4jBtJB2.js → RollupWidget-Dolsixyt.js} +3 -3
- package/dist/{RollupWidget-y4jBtJB2.js.map → RollupWidget-Dolsixyt.js.map} +1 -1
- package/dist/RoutersTab-BBPlFi_z.cjs +2 -0
- package/dist/{RoutersTab-CzO10cVP.cjs.map → RoutersTab-BBPlFi_z.cjs.map} +1 -1
- package/dist/{RoutersTab-Dki_66av.js → RoutersTab-Cs2dFVNA.js} +4 -4
- package/dist/{RoutersTab-Dki_66av.js.map → RoutersTab-Cs2dFVNA.js.map} +1 -1
- package/dist/{ScriptChooser-l5i8c8KP.js → ScriptChooser-EV65rbWx.js} +3 -3
- package/dist/{ScriptChooser-l5i8c8KP.js.map → ScriptChooser-EV65rbWx.js.map} +1 -1
- package/dist/ScriptChooser-vyZwngrz.cjs +2 -0
- package/dist/{ScriptChooser-BNm_zXxX.cjs.map → ScriptChooser-vyZwngrz.cjs.map} +1 -1
- package/dist/ScrollwindowWidget-BWeqSUPc.cjs +2 -0
- package/dist/{ScrollwindowWidget-BIiV7xwi.cjs.map → ScrollwindowWidget-BWeqSUPc.cjs.map} +1 -1
- package/dist/{ScrollwindowWidget-CBzYk4Y3.js → ScrollwindowWidget-DV2nZuNi.js} +4 -4
- package/dist/{ScrollwindowWidget-CBzYk4Y3.js.map → ScrollwindowWidget-DV2nZuNi.js.map} +1 -1
- package/dist/SecretsTab-0IFqUxNJ.cjs +2 -0
- package/dist/{SecretsTab-BSzFZ81X.cjs.map → SecretsTab-0IFqUxNJ.cjs.map} +1 -1
- package/dist/{SecretsTab-BjviaTxh.js → SecretsTab-DVyyyGlG.js} +3 -3
- package/dist/{SecretsTab-BjviaTxh.js.map → SecretsTab-DVyyyGlG.js.map} +1 -1
- package/dist/SettingsTab-B1LvOLG2.cjs +3 -0
- package/dist/SettingsTab-B1LvOLG2.cjs.map +1 -0
- package/dist/{SettingsTab-Bo_dYXgb.js → SettingsTab-g29K6FyC.js} +198 -135
- package/dist/SettingsTab-g29K6FyC.js.map +1 -0
- package/dist/SignalWidget-RvRwpE8T.cjs +2 -0
- package/dist/{SignalWidget-CvZkvejy.cjs.map → SignalWidget-RvRwpE8T.cjs.map} +1 -1
- package/dist/{SignalWidget-DQ5Uc2uV.js → SignalWidget-d9-6h85k.js} +3 -3
- package/dist/{SignalWidget-DQ5Uc2uV.js.map → SignalWidget-d9-6h85k.js.map} +1 -1
- package/dist/SimpleTextDialog-Cpbt7Q-8.cjs +2 -0
- package/dist/{SimpleTextDialog-DmeNMMCR.cjs.map → SimpleTextDialog-Cpbt7Q-8.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-CheuP_ls.js → SimpleTextDialog-pwN8oRy1.js} +9 -10
- package/dist/{SimpleTextDialog-CheuP_ls.js.map → SimpleTextDialog-pwN8oRy1.js.map} +1 -1
- package/dist/SpacerWidget-7_8bpLCb.cjs +2 -0
- package/dist/{SpacerWidget-BBJR6HBQ.cjs.map → SpacerWidget-7_8bpLCb.cjs.map} +1 -1
- package/dist/{SpacerWidget-6rsc_dSM.js → SpacerWidget-BH0p2OLi.js} +3 -3
- package/dist/{SpacerWidget-6rsc_dSM.js.map → SpacerWidget-BH0p2OLi.js.map} +1 -1
- package/dist/SparklineWidget-60jVlbHA.cjs +2 -0
- package/dist/{SparklineWidget-BxBLnjAO.cjs.map → SparklineWidget-60jVlbHA.cjs.map} +1 -1
- package/dist/{SparklineWidget-CZtvu2ss.js → SparklineWidget-coxi9r2g.js} +5 -5
- package/dist/{SparklineWidget-CZtvu2ss.js.map → SparklineWidget-coxi9r2g.js.map} +1 -1
- package/dist/{TabbookWidget-DNALU0jl.js → TabbookWidget-B1XKplGH.js} +3 -3
- package/dist/{TabbookWidget-DNALU0jl.js.map → TabbookWidget-B1XKplGH.js.map} +1 -1
- package/dist/TabbookWidget-D1CVT9IK.cjs +2 -0
- package/dist/{TabbookWidget-DyFQnA10.cjs.map → TabbookWidget-D1CVT9IK.cjs.map} +1 -1
- package/dist/{TargetsTab-Cd8U1aN_.js → TargetsTab-BkBkXn9A.js} +12 -12
- package/dist/{TargetsTab-Cd8U1aN_.js.map → TargetsTab-BkBkXn9A.js.map} +1 -1
- package/dist/TargetsTab-C-m26Eqq.cjs +2 -0
- package/dist/{TargetsTab-DMiOliqg.cjs.map → TargetsTab-C-m26Eqq.cjs.map} +1 -1
- package/dist/{TextBoxDialog-fHkDTtzI.js → TextBoxDialog-DOJ5d2RM.js} +2 -2
- package/dist/{TextBoxDialog-fHkDTtzI.js.map → TextBoxDialog-DOJ5d2RM.js.map} +1 -1
- package/dist/TextBoxDialog-DfMXg_5C.cjs +2 -0
- package/dist/{TextBoxDialog-DvUf3Cak.cjs.map → TextBoxDialog-DfMXg_5C.cjs.map} +1 -1
- package/dist/TextboxWidget-BDG4NxRw.cjs +2 -0
- package/dist/{TextboxWidget-D6lW_dsU.cjs.map → TextboxWidget-BDG4NxRw.cjs.map} +1 -1
- package/dist/{TextboxWidget-5hqPj74D.js → TextboxWidget-C-_M2M4l.js} +5 -5
- package/dist/{TextboxWidget-5hqPj74D.js.map → TextboxWidget-C-_M2M4l.js.map} +1 -1
- package/dist/TextfieldWidget-BGJv9Lox.cjs +2 -0
- package/dist/{TextfieldWidget-iHN7-fyF.cjs.map → TextfieldWidget-BGJv9Lox.cjs.map} +1 -1
- package/dist/{TextfieldWidget-Df0ANSiU.js → TextfieldWidget-C08N4JE8.js} +3 -3
- package/dist/{TextfieldWidget-Df0ANSiU.js.map → TextfieldWidget-C08N4JE8.js.map} +1 -1
- package/dist/TimeWidget-CGCOIouj.cjs +2 -0
- package/dist/{TimeWidget-C3NZqTEG.cjs.map → TimeWidget-CGCOIouj.cjs.map} +1 -1
- package/dist/{TimeWidget-C6XQMUG2.js → TimeWidget-DtwdEcFg.js} +3 -3
- package/dist/{TimeWidget-C6XQMUG2.js.map → TimeWidget-DtwdEcFg.js.map} +1 -1
- package/dist/TitleWidget-BljFH9RB.cjs +2 -0
- package/dist/{TitleWidget-CWZs33c4.cjs.map → TitleWidget-BljFH9RB.cjs.map} +1 -1
- package/dist/{TitleWidget-B9SPUlbW.js → TitleWidget-CT-aLcNb.js} +3 -3
- package/dist/{TitleWidget-B9SPUlbW.js.map → TitleWidget-CT-aLcNb.js.map} +1 -1
- package/dist/{ToolsTab-Cgpb2nAW.js → ToolsTab-NveeVXz2.js} +4 -4
- package/dist/{ToolsTab-Cgpb2nAW.js.map → ToolsTab-NveeVXz2.js.map} +1 -1
- package/dist/{ToolsTab-CUpUmkZL.cjs → ToolsTab-RMTst_Sy.cjs} +3 -3
- package/dist/{ToolsTab-CUpUmkZL.cjs.map → ToolsTab-RMTst_Sy.cjs.map} +1 -1
- package/dist/{TopBar-F1jHuFan.js → TopBar-CnJNNJlV.js} +104 -74
- package/dist/TopBar-CnJNNJlV.js.map +1 -0
- package/dist/TopBar-Cnmb6DyC.cjs +2 -0
- package/dist/TopBar-Cnmb6DyC.cjs.map +1 -0
- package/dist/{UpgradeToEnterpriseDialog-DVcAH30Y.js → UpgradeToEnterpriseDialog-BvfgoNB1.js} +9 -10
- package/dist/{UpgradeToEnterpriseDialog-DVcAH30Y.js.map → UpgradeToEnterpriseDialog-BvfgoNB1.js.map} +1 -1
- package/dist/UpgradeToEnterpriseDialog-sUipOVpB.cjs +2 -0
- package/dist/{UpgradeToEnterpriseDialog-DfIKahNK.cjs.map → UpgradeToEnterpriseDialog-sUipOVpB.cjs.map} +1 -1
- package/dist/{VWidget-C2x_zSC2.cjs → VWidget-2N2cOosI.cjs} +2 -2
- package/dist/{VWidget-C2x_zSC2.cjs.map → VWidget-2N2cOosI.cjs.map} +1 -1
- package/dist/{VWidget-C4spAawK.js → VWidget-DQqb7NVW.js} +2 -2
- package/dist/{VWidget-C4spAawK.js.map → VWidget-DQqb7NVW.js.map} +1 -1
- package/dist/{ValueWidget-D4RrYVEK.js → ValueWidget-C6RanBj3.js} +5 -5
- package/dist/{ValueWidget-D4RrYVEK.js.map → ValueWidget-C6RanBj3.js.map} +1 -1
- package/dist/ValueWidget-Cu7hgKja.cjs +2 -0
- package/dist/{ValueWidget-Do3Yn47P.cjs.map → ValueWidget-Cu7hgKja.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-Bc9_Vj_f.js → ValuelimitsbarWidget-B3bvjfxc.js} +5 -5
- package/dist/{ValuelimitsbarWidget-Bc9_Vj_f.js.map → ValuelimitsbarWidget-B3bvjfxc.js.map} +1 -1
- package/dist/ValuelimitsbarWidget-C0HROxrb.cjs +2 -0
- package/dist/{ValuelimitsbarWidget-DJuh7FOs.cjs.map → ValuelimitsbarWidget-C0HROxrb.cjs.map} +1 -1
- package/dist/ValuelimitscolumnWidget-CWvLfg8u.cjs +2 -0
- package/dist/{ValuelimitscolumnWidget-BFpG-H7v.cjs.map → ValuelimitscolumnWidget-CWvLfg8u.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-DHKIL7sf.js → ValuelimitscolumnWidget-QvhI6EcE.js} +5 -5
- package/dist/{ValuelimitscolumnWidget-DHKIL7sf.js.map → ValuelimitscolumnWidget-QvhI6EcE.js.map} +1 -1
- package/dist/{ValuerangebarWidget-CecQRIok.js → ValuerangebarWidget-Dt3K9BnC.js} +5 -5
- package/dist/{ValuerangebarWidget-CecQRIok.js.map → ValuerangebarWidget-Dt3K9BnC.js.map} +1 -1
- package/dist/ValuerangebarWidget-DyN78cQl.cjs +2 -0
- package/dist/{ValuerangebarWidget-BlZSaiXo.cjs.map → ValuerangebarWidget-DyN78cQl.cjs.map} +1 -1
- package/dist/{VerticalWidget-D8jUFxjS.js → VerticalWidget-BIIViZgI.js} +3 -3
- package/dist/{VerticalWidget-D8jUFxjS.js.map → VerticalWidget-BIIViZgI.js.map} +1 -1
- package/dist/VerticalWidget-CFTOu4H8.cjs +2 -0
- package/dist/{VerticalWidget--8UErB4q.cjs.map → VerticalWidget-CFTOu4H8.cjs.map} +1 -1
- package/dist/VerticalboxWidget-DY72fLHW.js +46 -0
- package/dist/VerticalboxWidget-DY72fLHW.js.map +1 -0
- package/dist/VerticalboxWidget-Z8-DWI8t.cjs +2 -0
- package/dist/VerticalboxWidget-Z8-DWI8t.cjs.map +1 -0
- package/dist/Widget-ChoIB2dd.cjs +2 -0
- package/dist/{Widget-DNf52jRQ.cjs.map → Widget-ChoIB2dd.cjs.map} +1 -1
- package/dist/{Widget-fRCERxGf.js → Widget-oyqWpFXJ.js} +18 -18
- package/dist/{Widget-fRCERxGf.js.map → Widget-oyqWpFXJ.js.map} +1 -1
- package/dist/WidgetComponents-C1lSLZ0I.js +30205 -0
- package/dist/WidgetComponents-C1lSLZ0I.js.map +1 -0
- package/dist/WidgetComponents-utpQ592X.cjs +1493 -0
- package/dist/WidgetComponents-utpQ592X.cjs.map +1 -0
- package/dist/components.cjs +3 -6
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +372 -1966
- package/dist/components.js.map +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.js +59 -52
- package/dist/icons.js.map +1 -1
- package/dist/index-BX05anye.cjs +7 -0
- package/dist/index-BX05anye.cjs.map +1 -0
- package/dist/{index-CFQnWdPA.js → index-DwP8ryNM.js} +385 -396
- package/dist/index-DwP8ryNM.js.map +1 -0
- package/dist/plugins.cjs +4 -4
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.js +71 -67
- package/dist/plugins.js.map +1 -1
- package/dist/tools/admin.cjs +7 -7
- package/dist/tools/admin.cjs.map +1 -1
- package/dist/tools/admin.js +824 -744
- package/dist/tools/admin.js.map +1 -1
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.cjs.map +1 -1
- package/dist/tools/base.js +10 -16
- package/dist/tools/base.js.map +1 -1
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.cjs.map +1 -1
- package/dist/tools/calendar.js +9 -1583
- package/dist/tools/calendar.js.map +1 -1
- package/dist/tools/scriptrunner.cjs +86 -0
- package/dist/tools/scriptrunner.cjs.map +1 -0
- package/dist/tools/scriptrunner.js +4564 -0
- package/dist/tools/scriptrunner.js.map +1 -0
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +64 -64
- package/package.json +20 -15
- package/dist/ArrayplotWidget-Donxhd8_.cjs +0 -2
- package/dist/BarColumn-CyRSZHMh.cjs +0 -2
- package/dist/BlockWidget-DPLN1jgj.cjs +0 -3
- package/dist/ButtonWidget-DccYzIY3.cjs +0 -3
- package/dist/CanvasWidget-BzTU9rc9.cjs +0 -2
- package/dist/CanvasdotWidget-B7VTS1QI.cjs +0 -2
- package/dist/CanvasimageWidget-BwYpfmDE.cjs +0 -2
- package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs +0 -2
- package/dist/CanvaslabelWidget-BBDuXWfU.cjs +0 -2
- package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs +0 -2
- package/dist/CanvaslineWidget-Bv5da1Vy.cjs +0 -2
- package/dist/CanvaslinevalueWidget-BVfUB96K.cjs +0 -2
- package/dist/CheckbuttonWidget-BGqD-BGc.cjs +0 -2
- package/dist/ComboboxWidget-DoHMlSAr.cjs +0 -2
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +0 -2
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +0 -1
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +0 -10
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +0 -1
- package/dist/CriticalCmdDialog-DoLBrU2k.cjs +0 -2
- package/dist/DateWidget-DKZz1J9J.cjs +0 -2
- package/dist/DetailsDialog-CiuQYvJK.cjs +0 -2
- package/dist/DynamicWidget-3wHr6Ng-.cjs +0 -2
- package/dist/FormatvalueWidget-DFrbeKb9.cjs +0 -2
- package/dist/Graph-3rkhFP3G.js.map +0 -1
- package/dist/Graph-C3vGMcos.cjs +0 -2
- package/dist/Graph-C3vGMcos.cjs.map +0 -1
- package/dist/HorizontalWidget-BBeB0eBI.cjs +0 -2
- package/dist/HorizontalboxWidget-Br8dSVHD.js +0 -38
- package/dist/HorizontalboxWidget-Br8dSVHD.js.map +0 -1
- package/dist/HorizontalboxWidget-DsdzrCJx.cjs +0 -2
- package/dist/HorizontalboxWidget-DsdzrCJx.cjs.map +0 -1
- package/dist/HorizontallineWidget-BCKOQase.cjs +0 -2
- package/dist/HorizontallineWidget-CbxREBYI.js +0 -11
- package/dist/IframeWidget-CZwsTgvX.cjs +0 -2
- package/dist/ImageLoader-D_Gq-KxR.cjs +0 -2
- package/dist/ImageviewerWidget-DwRPFSLR.cjs +0 -2
- package/dist/InterfacesTab-CLaicsHA.cjs +0 -2
- package/dist/LabelWidget-C-s8OVmA.cjs +0 -2
- package/dist/LabelWidget-C-s8OVmA.cjs.map +0 -1
- package/dist/LabelWidget-t7I87dp7.js.map +0 -1
- package/dist/LabelledWidget-DUpHxc9z.cjs +0 -2
- package/dist/LabelprogressbarWidget-D6cpayCR.cjs +0 -2
- package/dist/LabelsparklineWidget-CJRnLETe.cjs +0 -2
- package/dist/LabelvalueWidget-owiMSCYl.cjs +0 -2
- package/dist/LabelvaluedescWidget-MRmZBUc0.cjs +0 -2
- package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs +0 -2
- package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs +0 -2
- package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs +0 -2
- package/dist/Layout-DRL0EeSA.cjs +0 -2
- package/dist/LedWidget-B8rjFe1b.cjs +0 -2
- package/dist/LedWidget-B8rjFe1b.cjs.map +0 -1
- package/dist/LedWidget-CxJjJBBS.js +0 -71
- package/dist/LedWidget-CxJjJBBS.js.map +0 -1
- package/dist/LimitsbarWidget-CYIH8fdp.cjs +0 -2
- package/dist/LimitscolorWidget-CS0wpX9A.cjs +0 -2
- package/dist/LimitscolumnWidget-C_UW6xKq.cjs +0 -2
- package/dist/LinegraphWidget-8td_PqgU.cjs +0 -2
- package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs +0 -2
- package/dist/MicroservicesTab-IbTmbPxO.js.map +0 -1
- package/dist/MicroservicesTab-uMC8NebS.cjs +0 -2
- package/dist/MicroservicesTab-uMC8NebS.cjs.map +0 -1
- package/dist/OutputDialog-B4Q0QMJ1.cjs.map +0 -1
- package/dist/OutputDialog-Ci5OT_fH.js.map +0 -1
- package/dist/PackagesTab-eYbk2vw7.cjs +0 -2
- package/dist/ProgressbarWidget-CUIAYySg.cjs +0 -2
- package/dist/RadiobuttonWidget-Cjk1JAP_.cjs +0 -2
- package/dist/RadiogroupWidget-B4lkYWaC.cjs +0 -2
- package/dist/RangebarWidget-nl0rzj93.cjs +0 -2
- package/dist/RedisTab-DhS4GHDj.cjs +0 -2
- package/dist/RollupWidget-Bgudi_bt.cjs +0 -2
- package/dist/RoutersTab-CzO10cVP.cjs +0 -2
- package/dist/ScriptChooser-BNm_zXxX.cjs +0 -2
- package/dist/ScrollwindowWidget-BIiV7xwi.cjs +0 -2
- package/dist/SecretsTab-BSzFZ81X.cjs +0 -2
- package/dist/SettingsTab-Bo_dYXgb.js.map +0 -1
- package/dist/SettingsTab-DH8LAAoG.cjs +0 -3
- package/dist/SettingsTab-DH8LAAoG.cjs.map +0 -1
- package/dist/SignalWidget-CvZkvejy.cjs +0 -2
- package/dist/SimpleTextDialog-DmeNMMCR.cjs +0 -2
- package/dist/SpacerWidget-BBJR6HBQ.cjs +0 -2
- package/dist/SparklineWidget-BxBLnjAO.cjs +0 -2
- package/dist/TabbookWidget-DyFQnA10.cjs +0 -2
- package/dist/TargetsTab-DMiOliqg.cjs +0 -2
- package/dist/TextBoxDialog-DvUf3Cak.cjs +0 -2
- package/dist/TextboxWidget-D6lW_dsU.cjs +0 -2
- package/dist/TextfieldWidget-iHN7-fyF.cjs +0 -2
- package/dist/TimeWidget-C3NZqTEG.cjs +0 -2
- package/dist/TitleWidget-CWZs33c4.cjs +0 -2
- package/dist/TopBar-DuXL27iD.cjs +0 -2
- package/dist/TopBar-DuXL27iD.cjs.map +0 -1
- package/dist/TopBar-F1jHuFan.js.map +0 -1
- package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs +0 -2
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs +0 -1417
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js +0 -26941
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js.map +0 -1
- package/dist/ValueWidget-Do3Yn47P.cjs +0 -2
- package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs +0 -2
- package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs +0 -2
- package/dist/ValuerangebarWidget-BlZSaiXo.cjs +0 -2
- package/dist/VerticalWidget--8UErB4q.cjs +0 -2
- package/dist/VerticalboxWidget-B4eGUSYH.js +0 -37
- package/dist/VerticalboxWidget-B4eGUSYH.js.map +0 -1
- package/dist/VerticalboxWidget-cxHq1WKQ.cjs +0 -2
- package/dist/VerticalboxWidget-cxHq1WKQ.cjs.map +0 -1
- package/dist/Widget-DNf52jRQ.cjs +0 -2
- package/dist/index-Bz_jHTkl.cjs +0 -7
- package/dist/index-Bz_jHTkl.cjs.map +0 -1
- package/dist/index-CFQnWdPA.js.map +0 -1
package/dist/tools/admin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import { _ as
|
|
4
|
-
import {
|
|
1
|
+
import { a as we } from "../index-DwP8ryNM.js";
|
|
2
|
+
import { resolveComponent as m, createBlock as k, openBlock as L, withCtx as g, createVNode as c, createElementVNode as M, createElementBlock as R, createTextVNode as S, Fragment as G, renderList as $, createCommentVNode as j, toDisplayString as N, mergeProps as ye, withModifiers as H, normalizeProps as ve, guardReactiveProps as xe, withDirectives as Ce, vShow as Ee, toRaw as Le } from "vue";
|
|
3
|
+
import { _ as q } from "../CustomIcon-h5X7369N.js";
|
|
4
|
+
import { b as I, o as Se } from "../WidgetComponents-C1lSLZ0I.js";
|
|
5
|
+
import { A as U, T as De } from "../TopBar-CnJNNJlV.js";
|
|
5
6
|
import "single-spa";
|
|
6
|
-
|
|
7
|
-
const Se = {
|
|
7
|
+
const Me = {
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: Boolean
|
|
10
10
|
},
|
|
@@ -40,7 +40,7 @@ const Se = {
|
|
|
40
40
|
}));
|
|
41
41
|
},
|
|
42
42
|
getResponse: function() {
|
|
43
|
-
this.disableSearch = !0,
|
|
43
|
+
this.disableSearch = !0, we.get(this.url).then((e) => {
|
|
44
44
|
this.response = e.data;
|
|
45
45
|
}), setTimeout(() => {
|
|
46
46
|
this.disableSearch = !1;
|
|
@@ -54,60 +54,60 @@ const Se = {
|
|
|
54
54
|
t.href = e.url, t.setAttribute("download", e.name), t.click(), t.remove();
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Te = { class: "pa-3" }, ke = { class: "px-2" }, Ie = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "mt-4"
|
|
60
|
-
},
|
|
60
|
+
}, Re = {
|
|
61
61
|
key: 1,
|
|
62
62
|
class: "mt-4"
|
|
63
|
-
},
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return
|
|
63
|
+
}, Ve = { key: 0 }, Ae = { key: 1 };
|
|
64
|
+
function Ne(e, t, n, o, l, i) {
|
|
65
|
+
const s = m("v-spacer"), r = m("v-toolbar"), a = m("v-row"), f = m("v-icon"), u = m("v-btn"), d = m("v-col"), p = m("v-list-item-title"), _ = m("v-progress-circular"), w = m("v-tooltip"), C = m("v-list-item"), y = m("v-divider"), b = m("v-card-text"), E = m("v-card"), x = m("v-dialog");
|
|
66
|
+
return L(), k(x, {
|
|
67
67
|
modelValue: i.show,
|
|
68
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
68
|
+
"onUpdate:modelValue": t[0] || (t[0] = (v) => i.show = v),
|
|
69
69
|
width: "600"
|
|
70
70
|
}, {
|
|
71
|
-
default:
|
|
72
|
-
|
|
73
|
-
default:
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
|
|
77
|
-
t[1] || (t[1] =
|
|
78
|
-
|
|
71
|
+
default: g(() => [
|
|
72
|
+
c(E, null, {
|
|
73
|
+
default: g(() => [
|
|
74
|
+
c(r, { height: "24" }, {
|
|
75
|
+
default: g(() => [
|
|
76
|
+
c(s),
|
|
77
|
+
t[1] || (t[1] = M("span", null, " Download Gems ", -1)),
|
|
78
|
+
c(s)
|
|
79
79
|
]),
|
|
80
80
|
_: 1
|
|
81
81
|
}),
|
|
82
|
-
|
|
83
|
-
default:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
default:
|
|
87
|
-
|
|
82
|
+
c(b, null, {
|
|
83
|
+
default: g(() => [
|
|
84
|
+
M("div", Te, [
|
|
85
|
+
c(a, { class: "my-2" }, {
|
|
86
|
+
default: g(() => t[2] || (t[2] = [
|
|
87
|
+
S(" Select a download option ")
|
|
88
88
|
])),
|
|
89
89
|
_: 1
|
|
90
90
|
}),
|
|
91
|
-
|
|
92
|
-
default:
|
|
93
|
-
|
|
94
|
-
default:
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
c(a, null, {
|
|
92
|
+
default: g(() => [
|
|
93
|
+
c(d, null, {
|
|
94
|
+
default: g(() => [
|
|
95
|
+
M("div", ke, [
|
|
96
|
+
c(u, {
|
|
97
97
|
onClick: i.searchGithub,
|
|
98
98
|
block: "",
|
|
99
99
|
"data-test": "searchGithub",
|
|
100
100
|
color: "primary",
|
|
101
|
-
disabled:
|
|
101
|
+
disabled: l.disableSearch
|
|
102
102
|
}, {
|
|
103
|
-
default:
|
|
104
|
-
t[4] || (t[4] =
|
|
105
|
-
|
|
103
|
+
default: g(() => [
|
|
104
|
+
t[4] || (t[4] = S(" Github ")),
|
|
105
|
+
c(f, {
|
|
106
106
|
end: "",
|
|
107
107
|
theme: "dark"
|
|
108
108
|
}, {
|
|
109
|
-
default:
|
|
110
|
-
|
|
109
|
+
default: g(() => t[3] || (t[3] = [
|
|
110
|
+
S(" mdi-github ")
|
|
111
111
|
])),
|
|
112
112
|
_: 1
|
|
113
113
|
})
|
|
@@ -121,51 +121,51 @@ function Me(e, t, n, o, s, i) {
|
|
|
121
121
|
]),
|
|
122
122
|
_: 1
|
|
123
123
|
}),
|
|
124
|
-
|
|
125
|
-
default:
|
|
126
|
-
|
|
124
|
+
c(a, { class: "mt-5" }, {
|
|
125
|
+
default: g(() => t[5] || (t[5] = [
|
|
126
|
+
S(" Community Gems ")
|
|
127
127
|
])),
|
|
128
128
|
_: 1
|
|
129
129
|
}),
|
|
130
|
-
i.listData.length < 1 ? (
|
|
131
|
-
|
|
132
|
-
default:
|
|
133
|
-
|
|
130
|
+
i.listData.length < 1 ? (L(), R("div", Ie, [
|
|
131
|
+
c(a, { class: "mx-2" }, {
|
|
132
|
+
default: g(() => t[6] || (t[6] = [
|
|
133
|
+
M("span", null, " I’m sorry, Dave. No gems available.... ", -1)
|
|
134
134
|
])),
|
|
135
135
|
_: 1
|
|
136
136
|
})
|
|
137
|
-
])) : (
|
|
138
|
-
(
|
|
139
|
-
|
|
140
|
-
default:
|
|
141
|
-
|
|
142
|
-
default:
|
|
143
|
-
|
|
137
|
+
])) : (L(), R("div", Re, [
|
|
138
|
+
(L(!0), R(G, null, $(i.listData, (v, T) => (L(), R("div", { key: T }, [
|
|
139
|
+
c(C, null, {
|
|
140
|
+
default: g(() => [
|
|
141
|
+
c(p, null, {
|
|
142
|
+
default: g(() => [
|
|
143
|
+
S(N(v.name), 1)
|
|
144
144
|
]),
|
|
145
145
|
_: 2
|
|
146
146
|
}, 1024),
|
|
147
|
-
|
|
148
|
-
default:
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
c(C, { icon: "" }, {
|
|
148
|
+
default: g(() => [
|
|
149
|
+
l.activeDownload ? (L(), R("div", Ve, [
|
|
150
|
+
c(_, {
|
|
151
151
|
indeterminate: "",
|
|
152
152
|
color: "primary"
|
|
153
153
|
})
|
|
154
|
-
])) : (
|
|
155
|
-
|
|
156
|
-
activator:
|
|
157
|
-
|
|
158
|
-
onClick: (
|
|
159
|
-
disabled:
|
|
154
|
+
])) : (L(), R("div", Ae, [
|
|
155
|
+
c(w, { location: "top" }, {
|
|
156
|
+
activator: g(({ props: V }) => [
|
|
157
|
+
c(f, ye({ ref_for: !0 }, V, {
|
|
158
|
+
onClick: (P) => i.downloadGem(v),
|
|
159
|
+
disabled: l.activeDownload
|
|
160
160
|
}), {
|
|
161
|
-
default:
|
|
162
|
-
|
|
161
|
+
default: g(() => t[7] || (t[7] = [
|
|
162
|
+
S(" mdi-cloud-download ")
|
|
163
163
|
])),
|
|
164
164
|
_: 2
|
|
165
165
|
}, 1040, ["onClick", "disabled"])
|
|
166
166
|
]),
|
|
167
|
-
default:
|
|
168
|
-
t[8] || (t[8] =
|
|
167
|
+
default: g(() => [
|
|
168
|
+
t[8] || (t[8] = M("span", null, "Download Gem", -1))
|
|
169
169
|
]),
|
|
170
170
|
_: 2
|
|
171
171
|
}, 1024)
|
|
@@ -176,7 +176,7 @@ function Me(e, t, n, o, s, i) {
|
|
|
176
176
|
]),
|
|
177
177
|
_: 2
|
|
178
178
|
}, 1024),
|
|
179
|
-
|
|
179
|
+
T < i.listData.length - 1 ? (L(), k(y, { key: T })) : j("", !0)
|
|
180
180
|
]))), 128))
|
|
181
181
|
]))
|
|
182
182
|
])
|
|
@@ -190,7 +190,7 @@ function Me(e, t, n, o, s, i) {
|
|
|
190
190
|
_: 1
|
|
191
191
|
}, 8, ["modelValue"]);
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const _t = /* @__PURE__ */ q(Me, [["render", Ne]]), Pe = {
|
|
194
194
|
props: {
|
|
195
195
|
content: {
|
|
196
196
|
type: String,
|
|
@@ -203,12 +203,15 @@ const pt = /* @__PURE__ */ U(Se, [["render", Me]]), Re = {
|
|
|
203
203
|
},
|
|
204
204
|
data() {
|
|
205
205
|
return {
|
|
206
|
-
editor: null
|
|
206
|
+
editor: null,
|
|
207
|
+
contextMenu: !1,
|
|
208
|
+
menuX: 0,
|
|
209
|
+
menuY: 0
|
|
207
210
|
};
|
|
208
211
|
},
|
|
209
212
|
mounted() {
|
|
210
213
|
const e = this.buildPluginMode();
|
|
211
|
-
this.editor =
|
|
214
|
+
this.editor = I.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight"), this.editor.session.setMode(new e()), 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(), U.applyVimModeIfEnabled(this.editor), this.editor.focus(), this.readonly && this.editor.setReadOnly(!0);
|
|
212
215
|
},
|
|
213
216
|
beforeUnmount() {
|
|
214
217
|
this.editor && this.editor.destroy();
|
|
@@ -246,62 +249,70 @@ const pt = /* @__PURE__ */ U(Se, [["render", Me]]), Re = {
|
|
|
246
249
|
), t.click();
|
|
247
250
|
},
|
|
248
251
|
buildPluginMode() {
|
|
249
|
-
let e =
|
|
252
|
+
let e = I.require("ace/lib/oop"), t = I.require(
|
|
250
253
|
"ace/mode/json_highlight_rules"
|
|
251
|
-
).JsonHighlightRules, n =
|
|
254
|
+
).JsonHighlightRules, n = I.require(
|
|
252
255
|
"ace/mode/matching_brace_outdent"
|
|
253
|
-
).MatchingBraceOutdent, o =
|
|
256
|
+
).MatchingBraceOutdent, o = I.require(
|
|
254
257
|
"ace/mode/behaviour/cstyle"
|
|
255
|
-
).CstyleBehaviour,
|
|
256
|
-
this.HighlightRules = t, this.$outdent = new n(), this.$behaviour = new o(), this.foldingRules = new
|
|
257
|
-
},
|
|
258
|
-
return e.inherits(i,
|
|
258
|
+
).CstyleBehaviour, l = I.require("ace/mode/folding/ruby").FoldMode, i = function() {
|
|
259
|
+
this.HighlightRules = t, this.$outdent = new n(), this.$behaviour = new o(), this.foldingRules = new l(), this.indentKeywords = this.foldingRules.indentKeywords;
|
|
260
|
+
}, s = I.require("ace/mode/ruby").Mode;
|
|
261
|
+
return e.inherits(i, s), (function() {
|
|
259
262
|
this.$id = "ace/mode/openc3";
|
|
260
263
|
}).call(i.prototype), i;
|
|
264
|
+
},
|
|
265
|
+
showContextMenu: function(e) {
|
|
266
|
+
this.menuX = e.pageX, this.menuY = e.pageY;
|
|
267
|
+
let t = this.editor.getCursorPosition(), n = this.editor.session.getTokenAt(t.row, t.column);
|
|
268
|
+
if (n) {
|
|
269
|
+
let o = n.value.trim();
|
|
270
|
+
o.includes(" ") ? this.docsKeyword = o.split(" ")[0] : this.docsKeyword = o, this.contextMenu = !0;
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
toggleVimMode: function() {
|
|
274
|
+
U.toggleVimMode(this.editor);
|
|
261
275
|
}
|
|
262
276
|
}
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
function He(e, t, n, o, s, i) {
|
|
268
|
-
const l = _("v-spacer"), r = _("v-icon"), a = _("v-tooltip"), f = _("v-toolbar"), c = _("v-row"), h = _("v-btn"), p = _("v-col"), m = _("v-file-input"), w = _("v-card-text"), v = _("v-card"), y = _("v-dialog");
|
|
269
|
-
return S(), M(y, {
|
|
277
|
+
}, Oe = ["textContent"], Fe = { class: "mx-2" }, Ue = { class: "pa-3" }, He = { key: 0 }, Be = ["textContent"];
|
|
278
|
+
function Ge(e, t, n, o, l, i) {
|
|
279
|
+
const s = m("v-spacer"), r = m("v-icon"), a = m("v-tooltip"), f = m("v-toolbar"), u = m("v-row"), d = m("v-btn"), p = m("v-col"), _ = m("v-file-input"), w = m("v-list-item"), C = m("v-list"), y = m("v-menu"), b = m("v-card-text"), E = m("v-card"), x = m("v-dialog");
|
|
280
|
+
return L(), k(x, {
|
|
270
281
|
persistent: !n.readonly,
|
|
271
282
|
modelValue: i.show,
|
|
272
|
-
"onUpdate:modelValue": t[
|
|
283
|
+
"onUpdate:modelValue": t[4] || (t[4] = (v) => i.show = v),
|
|
273
284
|
width: "80vw"
|
|
274
285
|
}, {
|
|
275
|
-
default:
|
|
276
|
-
|
|
277
|
-
default:
|
|
278
|
-
|
|
279
|
-
onSubmit: t[
|
|
286
|
+
default: g(() => [
|
|
287
|
+
c(E, null, {
|
|
288
|
+
default: g(() => [
|
|
289
|
+
M("form", {
|
|
290
|
+
onSubmit: t[3] || (t[3] = H((...v) => i.submit && i.submit(...v), ["prevent"]))
|
|
280
291
|
}, [
|
|
281
|
-
|
|
282
|
-
default:
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
textContent:
|
|
286
|
-
}, null, 8,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
activator:
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
c(f, { height: "24" }, {
|
|
293
|
+
default: g(() => [
|
|
294
|
+
c(s),
|
|
295
|
+
M("span", {
|
|
296
|
+
textContent: N(i.title)
|
|
297
|
+
}, null, 8, Oe),
|
|
298
|
+
c(s),
|
|
299
|
+
M("div", Fe, [
|
|
300
|
+
c(a, { location: "top" }, {
|
|
301
|
+
activator: g(({ props: v }) => [
|
|
302
|
+
M("div", ve(xe(v)), [
|
|
303
|
+
c(r, {
|
|
293
304
|
"data-test": "downloadIcon",
|
|
294
305
|
onClick: i.download
|
|
295
306
|
}, {
|
|
296
|
-
default:
|
|
297
|
-
|
|
307
|
+
default: g(() => t[5] || (t[5] = [
|
|
308
|
+
S(" mdi-download ")
|
|
298
309
|
])),
|
|
299
310
|
_: 1
|
|
300
311
|
}, 8, ["onClick"])
|
|
301
312
|
], 16)
|
|
302
313
|
]),
|
|
303
|
-
default:
|
|
304
|
-
t[
|
|
314
|
+
default: g(() => [
|
|
315
|
+
t[6] || (t[6] = M("span", null, " Download ", -1))
|
|
305
316
|
]),
|
|
306
317
|
_: 1
|
|
307
318
|
})
|
|
@@ -309,24 +320,24 @@ function He(e, t, n, o, s, i) {
|
|
|
309
320
|
]),
|
|
310
321
|
_: 1
|
|
311
322
|
}),
|
|
312
|
-
|
|
313
|
-
default:
|
|
314
|
-
|
|
315
|
-
n.readonly ?
|
|
316
|
-
|
|
317
|
-
default:
|
|
318
|
-
|
|
323
|
+
c(b, null, {
|
|
324
|
+
default: g(() => [
|
|
325
|
+
M("div", Ue, [
|
|
326
|
+
n.readonly ? j("", !0) : (L(), R("div", He, [
|
|
327
|
+
c(u, { class: "mt-3" }, {
|
|
328
|
+
default: g(() => t[7] || (t[7] = [
|
|
329
|
+
S(" Upload a file. ")
|
|
319
330
|
])),
|
|
320
331
|
_: 1
|
|
321
332
|
}),
|
|
322
|
-
|
|
333
|
+
c(u, {
|
|
323
334
|
"no-gutters": "",
|
|
324
335
|
align: "center"
|
|
325
336
|
}, {
|
|
326
|
-
default:
|
|
327
|
-
|
|
328
|
-
default:
|
|
329
|
-
|
|
337
|
+
default: g(() => [
|
|
338
|
+
c(p, { cols: "3" }, {
|
|
339
|
+
default: g(() => [
|
|
340
|
+
c(d, {
|
|
330
341
|
block: "",
|
|
331
342
|
color: "success",
|
|
332
343
|
onClick: e.loadFile,
|
|
@@ -334,22 +345,22 @@ function He(e, t, n, o, s, i) {
|
|
|
334
345
|
loading: e.loadingFile,
|
|
335
346
|
"data-test": "editScreenLoadBtn"
|
|
336
347
|
}, {
|
|
337
|
-
loader:
|
|
338
|
-
|
|
348
|
+
loader: g(() => t[8] || (t[8] = [
|
|
349
|
+
M("span", null, "Loading...", -1)
|
|
339
350
|
])),
|
|
340
|
-
default:
|
|
341
|
-
t[
|
|
351
|
+
default: g(() => [
|
|
352
|
+
t[9] || (t[9] = S(" Load "))
|
|
342
353
|
]),
|
|
343
354
|
_: 1
|
|
344
355
|
}, 8, ["onClick", "disabled", "loading"])
|
|
345
356
|
]),
|
|
346
357
|
_: 1
|
|
347
358
|
}),
|
|
348
|
-
|
|
349
|
-
default:
|
|
350
|
-
|
|
359
|
+
c(p, { cols: "9" }, {
|
|
360
|
+
default: g(() => [
|
|
361
|
+
c(_, {
|
|
351
362
|
modelValue: e.file,
|
|
352
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
363
|
+
"onUpdate:modelValue": t[0] || (t[0] = (v) => e.file = v),
|
|
353
364
|
accept: ".json",
|
|
354
365
|
label: "Click to select .json file.",
|
|
355
366
|
disabled: n.readonly
|
|
@@ -361,38 +372,61 @@ function He(e, t, n, o, s, i) {
|
|
|
361
372
|
_: 1
|
|
362
373
|
})
|
|
363
374
|
])),
|
|
364
|
-
|
|
365
|
-
default:
|
|
366
|
-
|
|
375
|
+
c(u, { "no-gutters": "" }, {
|
|
376
|
+
default: g(() => [
|
|
377
|
+
M("pre", {
|
|
378
|
+
class: "editor",
|
|
379
|
+
ref: "editor",
|
|
380
|
+
onContextmenu: t[1] || (t[1] = H((...v) => i.showContextMenu && i.showContextMenu(...v), ["prevent"]))
|
|
381
|
+
}, null, 544),
|
|
382
|
+
c(y, {
|
|
383
|
+
modelValue: l.contextMenu,
|
|
384
|
+
"onUpdate:modelValue": t[2] || (t[2] = (v) => l.contextMenu = v),
|
|
385
|
+
target: [l.menuX, l.menuY]
|
|
386
|
+
}, {
|
|
387
|
+
default: g(() => [
|
|
388
|
+
c(C, null, {
|
|
389
|
+
default: g(() => [
|
|
390
|
+
c(w, {
|
|
391
|
+
title: "Toggle Vim mode",
|
|
392
|
+
"prepend-icon": "extras:vim",
|
|
393
|
+
onClick: i.toggleVimMode
|
|
394
|
+
}, null, 8, ["onClick"])
|
|
395
|
+
]),
|
|
396
|
+
_: 1
|
|
397
|
+
})
|
|
398
|
+
]),
|
|
399
|
+
_: 1
|
|
400
|
+
}, 8, ["modelValue", "target"])
|
|
367
401
|
]),
|
|
368
402
|
_: 1
|
|
369
403
|
}),
|
|
370
|
-
|
|
371
|
-
default:
|
|
372
|
-
|
|
404
|
+
c(u, { class: "my-3" }, {
|
|
405
|
+
default: g(() => [
|
|
406
|
+
Ce(M("span", {
|
|
373
407
|
class: "text-red",
|
|
374
|
-
textContent:
|
|
375
|
-
}, null, 8,
|
|
376
|
-
[
|
|
408
|
+
textContent: N(i.error)
|
|
409
|
+
}, null, 8, Be), [
|
|
410
|
+
[Ee, i.error]
|
|
377
411
|
])
|
|
378
412
|
]),
|
|
379
413
|
_: 1
|
|
380
414
|
}),
|
|
381
|
-
|
|
382
|
-
default:
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
onClick:
|
|
415
|
+
c(u, null, {
|
|
416
|
+
default: g(() => [
|
|
417
|
+
c(s),
|
|
418
|
+
c(d, {
|
|
419
|
+
onClick: H(i.close, ["prevent"]),
|
|
386
420
|
variant: "outlined",
|
|
387
421
|
class: "mx-2",
|
|
388
422
|
"data-test": "editCancelBtn"
|
|
389
423
|
}, {
|
|
390
|
-
default:
|
|
391
|
-
|
|
424
|
+
default: g(() => t[10] || (t[10] = [
|
|
425
|
+
S(" Cancel ")
|
|
392
426
|
])),
|
|
393
427
|
_: 1
|
|
394
428
|
}, 8, ["onClick"]),
|
|
395
|
-
n.readonly ?
|
|
429
|
+
n.readonly ? j("", !0) : (L(), k(d, {
|
|
396
430
|
key: 0,
|
|
397
431
|
class: "mx-2",
|
|
398
432
|
color: "primary",
|
|
@@ -400,8 +434,8 @@ function He(e, t, n, o, s, i) {
|
|
|
400
434
|
"data-test": "editSubmitBtn",
|
|
401
435
|
disabled: !!i.error || n.readonly
|
|
402
436
|
}, {
|
|
403
|
-
default:
|
|
404
|
-
|
|
437
|
+
default: g(() => t[11] || (t[11] = [
|
|
438
|
+
S(" Save ")
|
|
405
439
|
])),
|
|
406
440
|
_: 1
|
|
407
441
|
}, 8, ["disabled"]))
|
|
@@ -420,7 +454,7 @@ function He(e, t, n, o, s, i) {
|
|
|
420
454
|
_: 1
|
|
421
455
|
}, 8, ["persistent", "modelValue"]);
|
|
422
456
|
}
|
|
423
|
-
const
|
|
457
|
+
const bt = /* @__PURE__ */ q(Pe, [["render", Ge], ["__scopeId", "data-v-4b6b190e"]]), $e = {
|
|
424
458
|
props: {
|
|
425
459
|
modelValue: Boolean,
|
|
426
460
|
plugin: String,
|
|
@@ -445,7 +479,7 @@ const mt = /* @__PURE__ */ U(Re, [["render", He], ["__scopeId", "data-v-74f3ff47
|
|
|
445
479
|
},
|
|
446
480
|
created() {
|
|
447
481
|
for (const e of this.targets)
|
|
448
|
-
|
|
482
|
+
Se.get(`/openc3-api/targets/${e.name}/modified_files`).then(
|
|
449
483
|
(t) => {
|
|
450
484
|
t.data.length !== 0 && this.modifiedTargets.push({
|
|
451
485
|
name: e.name,
|
|
@@ -455,50 +489,50 @@ const mt = /* @__PURE__ */ U(Re, [["render", He], ["__scopeId", "data-v-74f3ff47
|
|
|
455
489
|
);
|
|
456
490
|
}
|
|
457
491
|
};
|
|
458
|
-
function
|
|
459
|
-
const
|
|
460
|
-
return
|
|
492
|
+
function je(e, t, n, o, l, i) {
|
|
493
|
+
const s = m("v-spacer"), r = m("v-toolbar"), a = m("v-list-item-title"), f = m("v-list-item-subtitle"), u = m("v-list-item"), d = m("v-checkbox"), p = m("v-card-text"), _ = m("v-btn"), w = m("v-card-actions"), C = m("v-card"), y = m("v-dialog");
|
|
494
|
+
return L(), k(y, {
|
|
461
495
|
modelValue: i.show,
|
|
462
496
|
"onUpdate:modelValue": t[3] || (t[3] = (b) => i.show = b),
|
|
463
497
|
width: "600"
|
|
464
498
|
}, {
|
|
465
|
-
default:
|
|
466
|
-
|
|
467
|
-
default:
|
|
468
|
-
|
|
469
|
-
default:
|
|
470
|
-
|
|
471
|
-
t[4] || (t[4] =
|
|
472
|
-
|
|
499
|
+
default: g(() => [
|
|
500
|
+
c(C, null, {
|
|
501
|
+
default: g(() => [
|
|
502
|
+
c(r, { height: "24" }, {
|
|
503
|
+
default: g(() => [
|
|
504
|
+
c(s),
|
|
505
|
+
t[4] || (t[4] = M("span", null, " Modified Plugin ", -1)),
|
|
506
|
+
c(s)
|
|
473
507
|
]),
|
|
474
508
|
_: 1
|
|
475
509
|
}),
|
|
476
|
-
|
|
477
|
-
default:
|
|
478
|
-
|
|
479
|
-
(
|
|
510
|
+
c(p, { class: "pa-3" }, {
|
|
511
|
+
default: g(() => [
|
|
512
|
+
M("div", null, " Plugin " + N(n.plugin) + " was modified. Would you like to delete the existing modified files? ", 1),
|
|
513
|
+
(L(!0), R(G, null, $(l.modifiedTargets, (b, E) => (L(), k(u, {
|
|
480
514
|
lines: "two",
|
|
481
|
-
key:
|
|
515
|
+
key: E
|
|
482
516
|
}, {
|
|
483
|
-
default:
|
|
484
|
-
|
|
485
|
-
default:
|
|
486
|
-
|
|
517
|
+
default: g(() => [
|
|
518
|
+
c(a, null, {
|
|
519
|
+
default: g(() => [
|
|
520
|
+
S(N(b.name), 1)
|
|
487
521
|
]),
|
|
488
522
|
_: 2
|
|
489
523
|
}, 1024),
|
|
490
|
-
(
|
|
491
|
-
default:
|
|
492
|
-
|
|
524
|
+
(L(!0), R(G, null, $(b.files, (x, v) => (L(), k(f, { key: v }, {
|
|
525
|
+
default: g(() => [
|
|
526
|
+
S(N(x), 1)
|
|
493
527
|
]),
|
|
494
528
|
_: 2
|
|
495
529
|
}, 1024))), 128))
|
|
496
530
|
]),
|
|
497
531
|
_: 2
|
|
498
532
|
}, 1024))), 128)),
|
|
499
|
-
|
|
500
|
-
modelValue:
|
|
501
|
-
"onUpdate:modelValue": t[0] || (t[0] = (b) =>
|
|
533
|
+
c(d, {
|
|
534
|
+
modelValue: l.deleteModified,
|
|
535
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => l.deleteModified = b),
|
|
502
536
|
label: "DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",
|
|
503
537
|
color: "error",
|
|
504
538
|
"data-test": "modified-plugin-delete-checkbox"
|
|
@@ -506,30 +540,30 @@ function $e(e, t, n, o, s, i) {
|
|
|
506
540
|
]),
|
|
507
541
|
_: 1
|
|
508
542
|
}),
|
|
509
|
-
|
|
510
|
-
default:
|
|
511
|
-
|
|
512
|
-
|
|
543
|
+
c(w, { class: "px-2" }, {
|
|
544
|
+
default: g(() => [
|
|
545
|
+
c(s),
|
|
546
|
+
c(_, {
|
|
513
547
|
variant: "outlined",
|
|
514
548
|
"data-test": "modified-plugin-cancel",
|
|
515
549
|
onClick: t[1] || (t[1] = () => {
|
|
516
550
|
i.show = !1, e.$emit("cancel");
|
|
517
551
|
})
|
|
518
552
|
}, {
|
|
519
|
-
default:
|
|
520
|
-
|
|
553
|
+
default: g(() => t[5] || (t[5] = [
|
|
554
|
+
S(" Cancel ")
|
|
521
555
|
])),
|
|
522
556
|
_: 1
|
|
523
557
|
}),
|
|
524
|
-
|
|
558
|
+
c(_, {
|
|
525
559
|
variant: "flat",
|
|
526
560
|
"data-test": "modified-plugin-submit",
|
|
527
561
|
onClick: t[2] || (t[2] = () => {
|
|
528
|
-
i.show = !1, e.$emit("submit",
|
|
562
|
+
i.show = !1, e.$emit("submit", l.deleteModified);
|
|
529
563
|
})
|
|
530
564
|
}, {
|
|
531
|
-
default:
|
|
532
|
-
|
|
565
|
+
default: g(() => t[6] || (t[6] = [
|
|
566
|
+
S(" Confirm ")
|
|
533
567
|
])),
|
|
534
568
|
_: 1
|
|
535
569
|
})
|
|
@@ -543,70 +577,70 @@ function $e(e, t, n, o, s, i) {
|
|
|
543
577
|
_: 1
|
|
544
578
|
}, 8, ["modelValue"]);
|
|
545
579
|
}
|
|
546
|
-
const
|
|
580
|
+
const wt = /* @__PURE__ */ q($e, [["render", je]]), qe = [
|
|
547
581
|
{
|
|
548
582
|
displayName: "Plugins",
|
|
549
583
|
name: "PluginsTab",
|
|
550
584
|
path: "plugins",
|
|
551
|
-
component: () => import("../PluginsTab-
|
|
585
|
+
component: () => import("../PluginsTab-B64OvayB.js")
|
|
552
586
|
},
|
|
553
587
|
{
|
|
554
588
|
displayName: "Targets",
|
|
555
589
|
name: "TargetsTab",
|
|
556
590
|
path: "targets",
|
|
557
|
-
component: () => import("../TargetsTab-
|
|
591
|
+
component: () => import("../TargetsTab-BkBkXn9A.js")
|
|
558
592
|
},
|
|
559
593
|
{
|
|
560
594
|
displayName: "Interfaces",
|
|
561
595
|
name: "InterfacesTab",
|
|
562
596
|
path: "interfaces",
|
|
563
|
-
component: () => import("../InterfacesTab-
|
|
597
|
+
component: () => import("../InterfacesTab-B4glsR9Z.js")
|
|
564
598
|
},
|
|
565
599
|
{
|
|
566
600
|
displayName: "Routers",
|
|
567
601
|
name: "RoutersTab",
|
|
568
602
|
path: "routers",
|
|
569
|
-
component: () => import("../RoutersTab-
|
|
603
|
+
component: () => import("../RoutersTab-Cs2dFVNA.js")
|
|
570
604
|
},
|
|
571
605
|
{
|
|
572
606
|
displayName: "Microservices",
|
|
573
607
|
name: "MicroservicesTab",
|
|
574
608
|
path: "microservices",
|
|
575
|
-
component: () => import("../MicroservicesTab-
|
|
609
|
+
component: () => import("../MicroservicesTab-mCdS0v39.js")
|
|
576
610
|
},
|
|
577
611
|
{
|
|
578
612
|
displayName: "Packages",
|
|
579
613
|
name: "PackagesTab",
|
|
580
614
|
path: "packages",
|
|
581
|
-
component: () => import("../PackagesTab-
|
|
615
|
+
component: () => import("../PackagesTab-SWcXumpK.js")
|
|
582
616
|
},
|
|
583
617
|
{
|
|
584
618
|
displayName: "Tools",
|
|
585
619
|
name: "ToolsTab",
|
|
586
620
|
path: "tools",
|
|
587
|
-
component: () => import("../ToolsTab-
|
|
621
|
+
component: () => import("../ToolsTab-NveeVXz2.js")
|
|
588
622
|
},
|
|
589
623
|
{
|
|
590
624
|
displayName: "Redis",
|
|
591
625
|
name: "RedisTab",
|
|
592
626
|
path: "redis",
|
|
593
|
-
component: () => import("../RedisTab-
|
|
627
|
+
component: () => import("../RedisTab-CyPo6ADN.js")
|
|
594
628
|
},
|
|
595
629
|
{
|
|
596
630
|
displayName: "Secrets",
|
|
597
631
|
name: "SecretsTab",
|
|
598
632
|
path: "secrets",
|
|
599
|
-
component: () => import("../SecretsTab-
|
|
633
|
+
component: () => import("../SecretsTab-DVyyyGlG.js")
|
|
600
634
|
},
|
|
601
635
|
{
|
|
602
636
|
displayName: "Settings",
|
|
603
637
|
name: "SettingsTab",
|
|
604
638
|
path: "settings",
|
|
605
|
-
component: () => import("../SettingsTab-
|
|
639
|
+
component: () => import("../SettingsTab-g29K6FyC.js")
|
|
606
640
|
}
|
|
607
|
-
],
|
|
641
|
+
], Ye = {
|
|
608
642
|
components: {
|
|
609
|
-
TopBar:
|
|
643
|
+
TopBar: De
|
|
610
644
|
},
|
|
611
645
|
data() {
|
|
612
646
|
return {
|
|
@@ -616,275 +650,275 @@ const _t = /* @__PURE__ */ U(Ue, [["render", $e]]), Be = [
|
|
|
616
650
|
},
|
|
617
651
|
computed: {
|
|
618
652
|
tabs: function() {
|
|
619
|
-
return
|
|
653
|
+
return qe.map((e) => ({
|
|
620
654
|
displayName: e.displayName,
|
|
621
655
|
path: { name: e.name }
|
|
622
656
|
}));
|
|
623
657
|
}
|
|
624
658
|
}
|
|
625
659
|
};
|
|
626
|
-
function
|
|
627
|
-
const
|
|
628
|
-
return
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
default:
|
|
632
|
-
|
|
633
|
-
modelValue:
|
|
634
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
660
|
+
function ze(e, t, n, o, l, i) {
|
|
661
|
+
const s = m("top-bar"), r = m("v-tab"), a = m("v-tabs"), f = m("router-view"), u = m("v-card");
|
|
662
|
+
return L(), R("div", null, [
|
|
663
|
+
c(s, { title: l.title }, null, 8, ["title"]),
|
|
664
|
+
c(u, null, {
|
|
665
|
+
default: g(() => [
|
|
666
|
+
c(a, {
|
|
667
|
+
modelValue: l.curTab,
|
|
668
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => l.curTab = d),
|
|
635
669
|
"fixed-tabs": ""
|
|
636
670
|
}, {
|
|
637
|
-
default:
|
|
638
|
-
(
|
|
671
|
+
default: g(() => [
|
|
672
|
+
(L(!0), R(G, null, $(i.tabs, (d, p) => (L(), k(r, {
|
|
639
673
|
key: p,
|
|
640
|
-
to:
|
|
674
|
+
to: d.path
|
|
641
675
|
}, {
|
|
642
|
-
default:
|
|
643
|
-
|
|
676
|
+
default: g(() => [
|
|
677
|
+
S(N(d.displayName), 1)
|
|
644
678
|
]),
|
|
645
679
|
_: 2
|
|
646
680
|
}, 1032, ["to"]))), 128))
|
|
647
681
|
]),
|
|
648
682
|
_: 1
|
|
649
683
|
}, 8, ["modelValue"]),
|
|
650
|
-
|
|
684
|
+
c(f)
|
|
651
685
|
]),
|
|
652
686
|
_: 1
|
|
653
687
|
})
|
|
654
688
|
]);
|
|
655
689
|
}
|
|
656
|
-
const
|
|
690
|
+
const yt = /* @__PURE__ */ q(Ye, [["render", ze]]), h = function() {
|
|
657
691
|
this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
|
|
658
692
|
};
|
|
659
|
-
|
|
693
|
+
h.Diff = function(e, t) {
|
|
660
694
|
this[0] = e, this[1] = t;
|
|
661
695
|
};
|
|
662
|
-
|
|
663
|
-
|
|
696
|
+
h.Diff.prototype.length = 2;
|
|
697
|
+
h.Diff.prototype.toString = function() {
|
|
664
698
|
return this[0] + "," + this[1];
|
|
665
699
|
};
|
|
666
|
-
|
|
700
|
+
h.prototype.diff_main = function(e, t, n, o) {
|
|
667
701
|
typeof o > "u" && (this.Diff_Timeout <= 0 ? o = Number.MAX_VALUE : o = (/* @__PURE__ */ new Date()).getTime() + this.Diff_Timeout * 1e3);
|
|
668
|
-
let
|
|
702
|
+
let l = o;
|
|
669
703
|
if (e == null || t == null) throw new Error("Null input. (diff_main)");
|
|
670
|
-
if (e == t) return e ? [new
|
|
704
|
+
if (e == t) return e ? [new h.Diff(0, e)] : [];
|
|
671
705
|
typeof n > "u" && (n = !0);
|
|
672
|
-
let i = n,
|
|
673
|
-
e = e.substring(
|
|
674
|
-
let a = e.substring(e.length -
|
|
675
|
-
e = e.substring(0, e.length -
|
|
676
|
-
let f = this.diff_compute_(e, t, i,
|
|
677
|
-
return r && f.unshift(new
|
|
706
|
+
let i = n, s = this.diff_commonPrefix(e, t), r = e.substring(0, s);
|
|
707
|
+
e = e.substring(s), t = t.substring(s), s = this.diff_commonSuffix(e, t);
|
|
708
|
+
let a = e.substring(e.length - s);
|
|
709
|
+
e = e.substring(0, e.length - s), t = t.substring(0, t.length - s);
|
|
710
|
+
let f = this.diff_compute_(e, t, i, l);
|
|
711
|
+
return r && f.unshift(new h.Diff(0, r)), a && f.push(new h.Diff(0, a)), this.diff_cleanupMerge(f), f;
|
|
678
712
|
};
|
|
679
|
-
|
|
680
|
-
let
|
|
681
|
-
if (!e) return [new
|
|
682
|
-
if (!t) return [new
|
|
683
|
-
let i = e.length > t.length ? e : t,
|
|
684
|
-
return r != -1 ? (
|
|
713
|
+
h.prototype.diff_compute_ = function(e, t, n, o) {
|
|
714
|
+
let l;
|
|
715
|
+
if (!e) return [new h.Diff(1, t)];
|
|
716
|
+
if (!t) return [new h.Diff(-1, e)];
|
|
717
|
+
let i = e.length > t.length ? e : t, s = e.length > t.length ? t : e, r = i.indexOf(s);
|
|
718
|
+
return r != -1 ? (l = [new h.Diff(1, i.substring(0, r)), new h.Diff(0, s), new h.Diff(1, i.substring(r + s.length))], e.length > t.length && (l[0][0] = l[2][0] = -1), l) : s.length == 1 ? [new h.Diff(-1, e), new h.Diff(1, t)] : n && e.length > 100 && t.length > 100 ? this.diff_lineMode_(e, t, o) : this.diff_bisect_(e, t, o);
|
|
685
719
|
};
|
|
686
|
-
|
|
720
|
+
h.prototype.diff_lineMode_ = function(e, t, n) {
|
|
687
721
|
let o = this.diff_linesToChars_(e, t);
|
|
688
722
|
e = o.chars1, t = o.chars2;
|
|
689
|
-
let
|
|
690
|
-
this.diff_charsToLines_(i,
|
|
691
|
-
let
|
|
692
|
-
for (;
|
|
693
|
-
switch (i[
|
|
723
|
+
let l = o.lineArray, i = this.diff_main(e, t, !1, n);
|
|
724
|
+
this.diff_charsToLines_(i, l), this.diff_cleanupSemantic(i), i.push(new h.Diff(0, ""));
|
|
725
|
+
let s = 0, r = 0, a = 0, f = "", u = "";
|
|
726
|
+
for (; s < i.length; ) {
|
|
727
|
+
switch (i[s][0]) {
|
|
694
728
|
case 1:
|
|
695
|
-
a++,
|
|
729
|
+
a++, u += i[s][1];
|
|
696
730
|
break;
|
|
697
731
|
case -1:
|
|
698
|
-
r++, f += i[
|
|
732
|
+
r++, f += i[s][1];
|
|
699
733
|
break;
|
|
700
734
|
case 0:
|
|
701
735
|
if (r >= 1 && a >= 1) {
|
|
702
|
-
i.splice(
|
|
703
|
-
let
|
|
704
|
-
for (let p =
|
|
705
|
-
|
|
736
|
+
i.splice(s - r - a, r + a), s = s - r - a;
|
|
737
|
+
let d = this.diff_main(f, u, !1, n);
|
|
738
|
+
for (let p = d.length - 1; p >= 0; p--) i.splice(s, 0, d[p]);
|
|
739
|
+
s = s + d.length;
|
|
706
740
|
}
|
|
707
|
-
a = 0, r = 0, f = "",
|
|
741
|
+
a = 0, r = 0, f = "", u = "";
|
|
708
742
|
break;
|
|
709
743
|
}
|
|
710
|
-
|
|
744
|
+
s++;
|
|
711
745
|
}
|
|
712
746
|
return i.pop(), i;
|
|
713
747
|
};
|
|
714
|
-
|
|
715
|
-
let o = e.length,
|
|
748
|
+
h.prototype.diff_bisect_ = function(e, t, n) {
|
|
749
|
+
let o = e.length, l = t.length, i = Math.ceil((o + l) / 2), s = i, r = 2 * i, a = new Array(r), f = new Array(r);
|
|
716
750
|
for (let y = 0; y < r; y++) a[y] = -1, f[y] = -1;
|
|
717
|
-
a[
|
|
718
|
-
let
|
|
751
|
+
a[s + 1] = 0, f[s + 1] = 0;
|
|
752
|
+
let u = o - l, d = u % 2 != 0, p = 0, _ = 0, w = 0, C = 0;
|
|
719
753
|
for (let y = 0; y < i && !((/* @__PURE__ */ new Date()).getTime() > n); y++) {
|
|
720
|
-
for (let b = -y + p; b <= y -
|
|
721
|
-
let
|
|
722
|
-
b == -y || b != y && a[
|
|
723
|
-
let
|
|
724
|
-
for (; x < o &&
|
|
725
|
-
if (a[
|
|
726
|
-
else if (
|
|
727
|
-
else if (
|
|
728
|
-
let
|
|
729
|
-
if (
|
|
730
|
-
let
|
|
731
|
-
if (x >=
|
|
754
|
+
for (let b = -y + p; b <= y - _; b += 2) {
|
|
755
|
+
let E = s + b, x;
|
|
756
|
+
b == -y || b != y && a[E - 1] < a[E + 1] ? x = a[E + 1] : x = a[E - 1] + 1;
|
|
757
|
+
let v = x - b;
|
|
758
|
+
for (; x < o && v < l && e.charAt(x) == t.charAt(v); ) x++, v++;
|
|
759
|
+
if (a[E] = x, x > o) _ += 2;
|
|
760
|
+
else if (v > l) p += 2;
|
|
761
|
+
else if (d) {
|
|
762
|
+
let T = s + u - b;
|
|
763
|
+
if (T >= 0 && T < r && f[T] != -1) {
|
|
764
|
+
let V = o - f[T];
|
|
765
|
+
if (x >= V) return this.diff_bisectSplit_(e, t, x, v, n);
|
|
732
766
|
}
|
|
733
767
|
}
|
|
734
768
|
}
|
|
735
|
-
for (let b = -y + w; b <= y -
|
|
736
|
-
let
|
|
737
|
-
b == -y || b != y && f[
|
|
738
|
-
let
|
|
739
|
-
for (; x < o &&
|
|
740
|
-
if (f[
|
|
741
|
-
else if (
|
|
742
|
-
else if (!
|
|
743
|
-
let
|
|
744
|
-
if (
|
|
745
|
-
let
|
|
746
|
-
if (x = o - x,
|
|
769
|
+
for (let b = -y + w; b <= y - C; b += 2) {
|
|
770
|
+
let E = s + b, x;
|
|
771
|
+
b == -y || b != y && f[E - 1] < f[E + 1] ? x = f[E + 1] : x = f[E - 1] + 1;
|
|
772
|
+
let v = x - b;
|
|
773
|
+
for (; x < o && v < l && e.charAt(o - x - 1) == t.charAt(l - v - 1); ) x++, v++;
|
|
774
|
+
if (f[E] = x, x > o) C += 2;
|
|
775
|
+
else if (v > l) w += 2;
|
|
776
|
+
else if (!d) {
|
|
777
|
+
let T = s + u - b;
|
|
778
|
+
if (T >= 0 && T < r && a[T] != -1) {
|
|
779
|
+
let V = a[T], P = s + V - T;
|
|
780
|
+
if (x = o - x, V >= x) return this.diff_bisectSplit_(e, t, V, P, n);
|
|
747
781
|
}
|
|
748
782
|
}
|
|
749
783
|
}
|
|
750
784
|
}
|
|
751
|
-
return [new
|
|
785
|
+
return [new h.Diff(-1, e), new h.Diff(1, t)];
|
|
752
786
|
};
|
|
753
|
-
|
|
754
|
-
let i = e.substring(0, n),
|
|
755
|
-
return f.concat(
|
|
787
|
+
h.prototype.diff_bisectSplit_ = function(e, t, n, o, l) {
|
|
788
|
+
let i = e.substring(0, n), s = t.substring(0, o), r = e.substring(n), a = t.substring(o), f = this.diff_main(i, s, !1, l), u = this.diff_main(r, a, !1, l);
|
|
789
|
+
return f.concat(u);
|
|
756
790
|
};
|
|
757
|
-
|
|
791
|
+
h.prototype.diff_linesToChars_ = function(e, t) {
|
|
758
792
|
let n = [], o = {};
|
|
759
793
|
n[0] = "";
|
|
760
|
-
function
|
|
761
|
-
let f = "",
|
|
762
|
-
for (;
|
|
763
|
-
|
|
764
|
-
`,
|
|
765
|
-
let
|
|
766
|
-
(o.hasOwnProperty ? o.hasOwnProperty(
|
|
794
|
+
function l(a) {
|
|
795
|
+
let f = "", u = 0, d = -1, p = n.length;
|
|
796
|
+
for (; d < a.length - 1; ) {
|
|
797
|
+
d = a.indexOf(`
|
|
798
|
+
`, u), d == -1 && (d = a.length - 1);
|
|
799
|
+
let _ = a.substring(u, d + 1);
|
|
800
|
+
(o.hasOwnProperty ? o.hasOwnProperty(_) : o[_] !== void 0) ? f += String.fromCharCode(o[_]) : (p == i && (_ = a.substring(u), d = a.length), f += String.fromCharCode(p), o[_] = p, n[p++] = _), u = d + 1;
|
|
767
801
|
}
|
|
768
802
|
return f;
|
|
769
803
|
}
|
|
770
|
-
let i = 4e4,
|
|
804
|
+
let i = 4e4, s = l(e);
|
|
771
805
|
i = 65535;
|
|
772
|
-
let r =
|
|
773
|
-
return { chars1:
|
|
806
|
+
let r = l(t);
|
|
807
|
+
return { chars1: s, chars2: r, lineArray: n };
|
|
774
808
|
};
|
|
775
|
-
|
|
809
|
+
h.prototype.diff_charsToLines_ = function(e, t) {
|
|
776
810
|
for (let n = 0; n < e.length; n++) {
|
|
777
|
-
let o = e[n][1],
|
|
778
|
-
for (let i = 0; i < o.length; i++)
|
|
779
|
-
e[n][1] =
|
|
811
|
+
let o = e[n][1], l = [];
|
|
812
|
+
for (let i = 0; i < o.length; i++) l[i] = t[o.charCodeAt(i)];
|
|
813
|
+
e[n][1] = l.join("");
|
|
780
814
|
}
|
|
781
815
|
};
|
|
782
|
-
|
|
816
|
+
h.prototype.diff_commonPrefix = function(e, t) {
|
|
783
817
|
if (!e || !t || e.charAt(0) != t.charAt(0)) return 0;
|
|
784
|
-
let n = 0, o = Math.min(e.length, t.length),
|
|
785
|
-
for (; n <
|
|
786
|
-
return
|
|
818
|
+
let n = 0, o = Math.min(e.length, t.length), l = o, i = 0;
|
|
819
|
+
for (; n < l; ) e.substring(i, l) == t.substring(i, l) ? (n = l, i = n) : o = l, l = Math.floor((o - n) / 2 + n);
|
|
820
|
+
return l;
|
|
787
821
|
};
|
|
788
|
-
|
|
822
|
+
h.prototype.diff_commonSuffix = function(e, t) {
|
|
789
823
|
if (!e || !t || e.charAt(e.length - 1) != t.charAt(t.length - 1)) return 0;
|
|
790
|
-
let n = 0, o = Math.min(e.length, t.length),
|
|
791
|
-
for (; n <
|
|
792
|
-
return
|
|
824
|
+
let n = 0, o = Math.min(e.length, t.length), l = o, i = 0;
|
|
825
|
+
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);
|
|
826
|
+
return l;
|
|
793
827
|
};
|
|
794
|
-
|
|
828
|
+
h.prototype.diff_commonOverlap_ = function(e, t) {
|
|
795
829
|
let n = e.length, o = t.length;
|
|
796
830
|
if (n == 0 || o == 0) return 0;
|
|
797
831
|
n > o ? e = e.substring(n - o) : n < o && (t = t.substring(0, n));
|
|
798
|
-
let
|
|
799
|
-
if (e == t) return
|
|
800
|
-
let i = 0,
|
|
832
|
+
let l = Math.min(n, o);
|
|
833
|
+
if (e == t) return l;
|
|
834
|
+
let i = 0, s = 1;
|
|
801
835
|
for (; ; ) {
|
|
802
|
-
let r = e.substring(
|
|
836
|
+
let r = e.substring(l - s), a = t.indexOf(r);
|
|
803
837
|
if (a == -1) return i;
|
|
804
|
-
|
|
838
|
+
s += a, (a == 0 || e.substring(l - s) == t.substring(0, s)) && (i = s, s++);
|
|
805
839
|
}
|
|
806
840
|
};
|
|
807
|
-
|
|
841
|
+
h.prototype.diff_halfMatch_ = function(e, t) {
|
|
808
842
|
if (this.Diff_Timeout <= 0) return null;
|
|
809
843
|
let n = e.length > t.length ? e : t, o = e.length > t.length ? t : e;
|
|
810
844
|
if (n.length < 4 || o.length * 2 < n.length) return null;
|
|
811
|
-
let
|
|
812
|
-
function i(w,
|
|
813
|
-
let b = w.substring(y, y + Math.floor(w.length / 4)),
|
|
814
|
-
for (; (
|
|
815
|
-
let
|
|
816
|
-
x.length <
|
|
845
|
+
let l = this;
|
|
846
|
+
function i(w, C, y) {
|
|
847
|
+
let b = w.substring(y, y + Math.floor(w.length / 4)), E = -1, x = "", v, T, V, P;
|
|
848
|
+
for (; (E = C.indexOf(b, E + 1)) != -1; ) {
|
|
849
|
+
let O = l.diff_commonPrefix(w.substring(y), C.substring(E)), F = l.diff_commonSuffix(w.substring(0, y), C.substring(0, E));
|
|
850
|
+
x.length < F + O && (x = C.substring(E - F, E) + C.substring(E, E + O), v = w.substring(0, y - F), T = w.substring(y + O), V = C.substring(0, E - F), P = C.substring(E + O));
|
|
817
851
|
}
|
|
818
|
-
return x.length * 2 >= w.length ? [
|
|
852
|
+
return x.length * 2 >= w.length ? [v, T, V, P, x] : null;
|
|
819
853
|
}
|
|
820
|
-
let
|
|
821
|
-
if (!
|
|
822
|
-
r ?
|
|
823
|
-
let f,
|
|
824
|
-
e.length > t.length ? (f = a[0],
|
|
825
|
-
let
|
|
826
|
-
return [f,
|
|
854
|
+
let s = i(n, o, Math.ceil(n.length / 4)), r = i(n, o, Math.ceil(n.length / 2)), a;
|
|
855
|
+
if (!s && !r) return null;
|
|
856
|
+
r ? s ? a = s[4].length > r[4].length ? s : r : a = r : a = s;
|
|
857
|
+
let f, u, d, p;
|
|
858
|
+
e.length > t.length ? (f = a[0], u = a[1], d = a[2], p = a[3]) : (d = a[0], p = a[1], f = a[2], u = a[3]);
|
|
859
|
+
let _ = a[4];
|
|
860
|
+
return [f, u, d, p, _];
|
|
827
861
|
};
|
|
828
|
-
|
|
829
|
-
let t = !1, n = [], o = 0,
|
|
830
|
-
for (; i < e.length; ) e[i][0] == 0 ? (n[o++] = i,
|
|
862
|
+
h.prototype.diff_cleanupSemantic = function(e) {
|
|
863
|
+
let t = !1, n = [], o = 0, l = null, i = 0, s = 0, r = 0, a = 0, f = 0;
|
|
864
|
+
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 h.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++;
|
|
831
865
|
for (t && this.diff_cleanupMerge(e), this.diff_cleanupSemanticLossless(e), i = 1; i < e.length; ) {
|
|
832
866
|
if (e[i - 1][0] == -1 && e[i][0] == 1) {
|
|
833
|
-
let
|
|
834
|
-
p >=
|
|
867
|
+
let u = e[i - 1][1], d = e[i][1], p = this.diff_commonOverlap_(u, d), _ = this.diff_commonOverlap_(d, u);
|
|
868
|
+
p >= _ ? (p >= u.length / 2 || p >= d.length / 2) && (e.splice(i, 0, new h.Diff(0, d.substring(0, p))), e[i - 1][1] = u.substring(0, u.length - p), e[i + 1][1] = d.substring(p), i++) : (_ >= u.length / 2 || _ >= d.length / 2) && (e.splice(i, 0, new h.Diff(0, u.substring(0, _))), e[i - 1][0] = 1, e[i - 1][1] = d.substring(0, d.length - _), e[i + 1][0] = -1, e[i + 1][1] = u.substring(_), i++), i++;
|
|
835
869
|
}
|
|
836
870
|
i++;
|
|
837
871
|
}
|
|
838
872
|
};
|
|
839
|
-
|
|
840
|
-
function t(o,
|
|
841
|
-
if (!o || !
|
|
842
|
-
let i = o.charAt(o.length - 1),
|
|
843
|
-
return
|
|
873
|
+
h.prototype.diff_cleanupSemanticLossless = function(e) {
|
|
874
|
+
function t(o, l) {
|
|
875
|
+
if (!o || !l) return 6;
|
|
876
|
+
let i = o.charAt(o.length - 1), s = l.charAt(0), r = i.match(h.nonAlphaNumericRegex_), a = s.match(h.nonAlphaNumericRegex_), f = r && i.match(h.whitespaceRegex_), u = a && s.match(h.whitespaceRegex_), d = f && i.match(h.linebreakRegex_), p = u && s.match(h.linebreakRegex_), _ = d && o.match(h.blanklineEndRegex_), w = p && l.match(h.blanklineStartRegex_);
|
|
877
|
+
return _ || w ? 5 : d || p ? 4 : r && !f && u ? 3 : f || u ? 2 : r || a ? 1 : 0;
|
|
844
878
|
}
|
|
845
879
|
let n = 1;
|
|
846
880
|
for (; n < e.length - 1; ) {
|
|
847
881
|
if (e[n - 1][0] == 0 && e[n + 1][0] == 0) {
|
|
848
|
-
let o = e[n - 1][1],
|
|
849
|
-
if (
|
|
850
|
-
o[o.length -
|
|
851
|
-
` && (
|
|
852
|
-
let
|
|
853
|
-
o = o.substring(0, o.length -
|
|
882
|
+
let o = e[n - 1][1], l = e[n][1], i = e[n + 1][1], s = this.diff_commonSuffix(o, l);
|
|
883
|
+
if (s) {
|
|
884
|
+
o[o.length - s] === `
|
|
885
|
+
` && (s -= 1);
|
|
886
|
+
let d = l.substring(l.length - s);
|
|
887
|
+
o = o.substring(0, o.length - s), l = d + l.substring(0, l.length - s), i = d + i;
|
|
854
888
|
}
|
|
855
|
-
let r = o, a =
|
|
856
|
-
for (;
|
|
857
|
-
o +=
|
|
858
|
-
let
|
|
859
|
-
|
|
889
|
+
let r = o, a = l, f = i, u = t(o, l) + t(l, i);
|
|
890
|
+
for (; l.charAt(0) === i.charAt(0); ) {
|
|
891
|
+
o += l.charAt(0), l = l.substring(1) + i.charAt(0), i = i.substring(1);
|
|
892
|
+
let d = t(o, l) + t(l, i);
|
|
893
|
+
d >= u && (u = d, r = o, a = l, f = i);
|
|
860
894
|
}
|
|
861
895
|
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--));
|
|
862
896
|
}
|
|
863
897
|
n++;
|
|
864
898
|
}
|
|
865
899
|
};
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
let t = !1, n = [], o = 0,
|
|
873
|
-
for (; i < e.length; ) e[i][0] == 0 ? (e[i][1].length < this.Diff_EditCost && (a || f) ? (n[o++] = i,
|
|
900
|
+
h.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/;
|
|
901
|
+
h.whitespaceRegex_ = /\s/;
|
|
902
|
+
h.linebreakRegex_ = /[\r\n]/;
|
|
903
|
+
h.blanklineEndRegex_ = /\n\r?\n$/;
|
|
904
|
+
h.blanklineStartRegex_ = /^\r?\n\r?\n/;
|
|
905
|
+
h.prototype.diff_cleanupEfficiency = function(e) {
|
|
906
|
+
let t = !1, n = [], o = 0, l = null, i = 0, s = !1, r = !1, a = !1, f = !1;
|
|
907
|
+
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 h.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++;
|
|
874
908
|
t && this.diff_cleanupMerge(e);
|
|
875
909
|
};
|
|
876
|
-
|
|
877
|
-
e.push(new
|
|
878
|
-
let t = 0, n = 0, o = 0,
|
|
910
|
+
h.prototype.diff_cleanupMerge = function(e) {
|
|
911
|
+
e.push(new h.Diff(0, ""));
|
|
912
|
+
let t = 0, n = 0, o = 0, l = "", i = "", s;
|
|
879
913
|
for (; t < e.length; ) switch (e[t][0]) {
|
|
880
914
|
case 1:
|
|
881
915
|
o++, i += e[t][1], t++;
|
|
882
916
|
break;
|
|
883
917
|
case -1:
|
|
884
|
-
n++,
|
|
918
|
+
n++, l += e[t][1], t++;
|
|
885
919
|
break;
|
|
886
920
|
case 0:
|
|
887
|
-
n + o > 1 ? (n !== 0 && o !== 0 && (
|
|
921
|
+
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 h.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 h.Diff(-1, l)), t++), i.length && (e.splice(t, 0, new h.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 = "";
|
|
888
922
|
break;
|
|
889
923
|
}
|
|
890
924
|
e[e.length - 1][1] === "" && e.pop();
|
|
@@ -892,30 +926,30 @@ d.prototype.diff_cleanupMerge = function(e) {
|
|
|
892
926
|
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++;
|
|
893
927
|
r && this.diff_cleanupMerge(e);
|
|
894
928
|
};
|
|
895
|
-
|
|
929
|
+
h.prototype.diff_cleanupSplitSurrogates = function(e) {
|
|
896
930
|
let t;
|
|
897
931
|
for (let n = 0; n < e.length; n++) {
|
|
898
|
-
let o = e[n],
|
|
932
|
+
let o = e[n], l = o[1][0], i = o[1][o[1].length - 1];
|
|
899
933
|
if (o[1].length === 0) {
|
|
900
934
|
e.splice(n--, 1);
|
|
901
935
|
continue;
|
|
902
936
|
}
|
|
903
|
-
if (i && this.isHighSurrogate(i) && (t = i, o[1] = o[1].slice(0, -1)), t &&
|
|
937
|
+
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) {
|
|
904
938
|
e.splice(n--, 1);
|
|
905
939
|
continue;
|
|
906
940
|
}
|
|
907
941
|
}
|
|
908
942
|
return e;
|
|
909
943
|
};
|
|
910
|
-
|
|
944
|
+
h.prototype.isHighSurrogate = function(e) {
|
|
911
945
|
let t = e.charCodeAt(0);
|
|
912
946
|
return t >= 55296 && t <= 56319;
|
|
913
947
|
};
|
|
914
|
-
|
|
948
|
+
h.prototype.isLowSurrogate = function(e) {
|
|
915
949
|
let t = e.charCodeAt(0);
|
|
916
950
|
return t >= 56320 && t <= 57343;
|
|
917
951
|
};
|
|
918
|
-
|
|
952
|
+
h.prototype.digit16 = function(e) {
|
|
919
953
|
switch (e) {
|
|
920
954
|
case "0":
|
|
921
955
|
return 0;
|
|
@@ -959,7 +993,7 @@ d.prototype.digit16 = function(e) {
|
|
|
959
993
|
throw new Error("Invalid hex-code");
|
|
960
994
|
}
|
|
961
995
|
};
|
|
962
|
-
|
|
996
|
+
h.prototype.decodeURI = function(e) {
|
|
963
997
|
try {
|
|
964
998
|
return decodeURI(e);
|
|
965
999
|
} catch {
|
|
@@ -970,29 +1004,29 @@ d.prototype.decodeURI = function(e) {
|
|
|
970
1004
|
continue;
|
|
971
1005
|
}
|
|
972
1006
|
let o = (this.digit16(e[t + 1]) << 4) + this.digit16(e[t + 2]);
|
|
973
|
-
if (
|
|
1007
|
+
if ((o & 128) === 0) {
|
|
974
1008
|
n += String.fromCharCode(o), t += 3;
|
|
975
1009
|
continue;
|
|
976
1010
|
}
|
|
977
1011
|
if (e[t + 3] !== "%") throw new URIError("URI malformed");
|
|
978
|
-
let
|
|
979
|
-
if ((
|
|
980
|
-
if (
|
|
981
|
-
n += String.fromCharCode((o & 31) << 6 |
|
|
1012
|
+
let l = (this.digit16(e[t + 4]) << 4) + this.digit16(e[t + 5]);
|
|
1013
|
+
if ((l & 192) !== 128) throw new URIError("URI malformed");
|
|
1014
|
+
if (l = l & 63, (o & 224) === 192) {
|
|
1015
|
+
n += String.fromCharCode((o & 31) << 6 | l), t += 6;
|
|
982
1016
|
continue;
|
|
983
1017
|
}
|
|
984
1018
|
if (e[t + 6] !== "%") throw new URIError("URI malformed");
|
|
985
1019
|
let i = (this.digit16(e[t + 7]) << 4) + this.digit16(e[t + 8]);
|
|
986
1020
|
if ((i & 192) !== 128) throw new URIError("URI malformed");
|
|
987
1021
|
if (i = i & 63, (o & 240) === 224) {
|
|
988
|
-
n += String.fromCharCode((o & 15) << 12 |
|
|
1022
|
+
n += String.fromCharCode((o & 15) << 12 | l << 6 | i), t += 9;
|
|
989
1023
|
continue;
|
|
990
1024
|
}
|
|
991
1025
|
if (e[t + 9] !== "%") throw new URIError("URI malformed");
|
|
992
|
-
let
|
|
993
|
-
if ((
|
|
994
|
-
if (
|
|
995
|
-
let r = (o & 7) << 18 |
|
|
1026
|
+
let s = (this.digit16(e[t + 10]) << 4) + this.digit16(e[t + 11]);
|
|
1027
|
+
if ((s & 192) !== 128) throw new URIError("URI malformed");
|
|
1028
|
+
if (s = s & 63, (o & 248) === 240) {
|
|
1029
|
+
let r = (o & 7) << 18 | l << 12 | i << 6 | s;
|
|
996
1030
|
if (r >= 65536 && r <= 1114111) {
|
|
997
1031
|
n += String.fromCharCode((r & 65535) >>> 10 & 1023 | 55296), n += String.fromCharCode(56320 | r & 65535 & 1023), t += 12;
|
|
998
1032
|
continue;
|
|
@@ -1003,50 +1037,50 @@ d.prototype.decodeURI = function(e) {
|
|
|
1003
1037
|
return n;
|
|
1004
1038
|
}
|
|
1005
1039
|
};
|
|
1006
|
-
|
|
1007
|
-
let n = 0, o = 0,
|
|
1008
|
-
for (
|
|
1009
|
-
return e.length !=
|
|
1040
|
+
h.prototype.diff_xIndex = function(e, t) {
|
|
1041
|
+
let n = 0, o = 0, l = 0, i = 0, s;
|
|
1042
|
+
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;
|
|
1043
|
+
return e.length != s && e[s][0] === -1 ? i : i + (t - l);
|
|
1010
1044
|
};
|
|
1011
|
-
|
|
1045
|
+
h.prototype.diff_prettyHtml = function(e) {
|
|
1012
1046
|
e = this.diff_cleanupSplitSurrogates(e);
|
|
1013
|
-
let t = [], n = /&/g, o = /</g,
|
|
1014
|
-
for (let
|
|
1015
|
-
let r = e[
|
|
1047
|
+
let t = [], n = /&/g, o = /</g, l = />/g, i = /\n/g;
|
|
1048
|
+
for (let s = 0; s < e.length; s++) {
|
|
1049
|
+
let r = e[s][0], a = e[s][1].replace(n, "&").replace(o, "<").replace(l, ">").replace(i, "¶<br>");
|
|
1016
1050
|
switch (r) {
|
|
1017
1051
|
case 1:
|
|
1018
|
-
t[
|
|
1052
|
+
t[s] = '<ins style="background:#e6ffe6;">' + a + "</ins>";
|
|
1019
1053
|
break;
|
|
1020
1054
|
case -1:
|
|
1021
|
-
t[
|
|
1055
|
+
t[s] = '<del style="background:#ffe6e6;">' + a + "</del>";
|
|
1022
1056
|
break;
|
|
1023
1057
|
case 0:
|
|
1024
|
-
t[
|
|
1058
|
+
t[s] = "<span>" + a + "</span>";
|
|
1025
1059
|
break;
|
|
1026
1060
|
}
|
|
1027
1061
|
}
|
|
1028
1062
|
return t.join("");
|
|
1029
1063
|
};
|
|
1030
|
-
|
|
1064
|
+
h.prototype.diff_text1 = function(e) {
|
|
1031
1065
|
let t = [];
|
|
1032
1066
|
for (let n = 0; n < e.length; n++) e[n][0] !== 1 && (t[n] = e[n][1]);
|
|
1033
1067
|
return t.join("");
|
|
1034
1068
|
};
|
|
1035
|
-
|
|
1069
|
+
h.prototype.diff_text2 = function(e) {
|
|
1036
1070
|
let t = [];
|
|
1037
1071
|
for (let n = 0; n < e.length; n++) e[n][0] !== -1 && (t[n] = e[n][1]);
|
|
1038
1072
|
return t.join("");
|
|
1039
1073
|
};
|
|
1040
|
-
|
|
1074
|
+
h.prototype.diff_levenshtein = function(e) {
|
|
1041
1075
|
let t = 0, n = 0, o = 0;
|
|
1042
|
-
for (let
|
|
1043
|
-
let i = e[
|
|
1076
|
+
for (let l = 0; l < e.length; l++) {
|
|
1077
|
+
let i = e[l][0], s = e[l][1];
|
|
1044
1078
|
switch (i) {
|
|
1045
1079
|
case 1:
|
|
1046
|
-
n +=
|
|
1080
|
+
n += s.length;
|
|
1047
1081
|
break;
|
|
1048
1082
|
case -1:
|
|
1049
|
-
o +=
|
|
1083
|
+
o += s.length;
|
|
1050
1084
|
break;
|
|
1051
1085
|
case 0:
|
|
1052
1086
|
t += Math.max(n, o), n = 0, o = 0;
|
|
@@ -1055,7 +1089,7 @@ d.prototype.diff_levenshtein = function(e) {
|
|
|
1055
1089
|
}
|
|
1056
1090
|
return t += Math.max(n, o), t;
|
|
1057
1091
|
};
|
|
1058
|
-
|
|
1092
|
+
h.prototype.diff_toDelta = function(e) {
|
|
1059
1093
|
e = this.diff_cleanupSplitSurrogates(e);
|
|
1060
1094
|
let t = [];
|
|
1061
1095
|
for (let n = 0; n < e.length; n++) switch (e[n][0]) {
|
|
@@ -1071,14 +1105,14 @@ d.prototype.diff_toDelta = function(e) {
|
|
|
1071
1105
|
}
|
|
1072
1106
|
return t.join(" ").replace(/%20/g, " ");
|
|
1073
1107
|
};
|
|
1074
|
-
|
|
1075
|
-
let n = 0, o = "",
|
|
1108
|
+
h.prototype.diff_fromDelta = function(e, t) {
|
|
1109
|
+
let n = 0, o = "", l = [], i = 0, s = 0, r = t.split(/\t/g);
|
|
1076
1110
|
for (let a = 0; a < r.length; a++) {
|
|
1077
1111
|
let f = r[a].substring(1);
|
|
1078
1112
|
switch (r[a].charAt(0)) {
|
|
1079
1113
|
case "+":
|
|
1080
1114
|
try {
|
|
1081
|
-
|
|
1115
|
+
l[i++] = new h.Diff(1, this.decodeURI(f));
|
|
1082
1116
|
} catch {
|
|
1083
1117
|
throw new Error("Illegal escape in diff_fromDelta: " + f);
|
|
1084
1118
|
}
|
|
@@ -1086,192 +1120,192 @@ d.prototype.diff_fromDelta = function(e, t) {
|
|
|
1086
1120
|
case "-":
|
|
1087
1121
|
case "=":
|
|
1088
1122
|
if (n = parseInt(f, 10), isNaN(n) || n < 0) throw new Error("Invalid number in diff_fromDelta: " + f);
|
|
1089
|
-
o = e.substring(
|
|
1123
|
+
o = e.substring(s, s += n), r[a].charAt(0) == "=" ? l[i++] = new h.Diff(0, o) : l[i++] = new h.Diff(-1, o);
|
|
1090
1124
|
break;
|
|
1091
1125
|
default:
|
|
1092
1126
|
if (r[a]) throw new Error("Invalid diff operation in diff_fromDelta: " + r[a]);
|
|
1093
1127
|
}
|
|
1094
1128
|
}
|
|
1095
|
-
if (
|
|
1096
|
-
return
|
|
1129
|
+
if (s != e.length) throw new Error("Delta length (" + s + ") does not equal source text length (" + e.length + ").");
|
|
1130
|
+
return l;
|
|
1097
1131
|
};
|
|
1098
|
-
|
|
1132
|
+
h.prototype.match_main = function(e, t, n) {
|
|
1099
1133
|
if (e == null || t == null || n == null) throw new Error("Null input. (match_main)");
|
|
1100
1134
|
return n = Math.max(0, Math.min(n, e.length)), e == t ? 0 : e.length ? e.substring(n, n + t.length) == t ? n : this.match_bitap_(e, t, n) : -1;
|
|
1101
1135
|
};
|
|
1102
|
-
|
|
1136
|
+
h.prototype.match_bitap_ = function(e, t, n) {
|
|
1103
1137
|
if (t.length > this.Match_MaxBits) throw new Error("Pattern too long for this browser.");
|
|
1104
|
-
let o = this.match_alphabet_(t),
|
|
1105
|
-
function i(
|
|
1106
|
-
let
|
|
1107
|
-
return
|
|
1138
|
+
let o = this.match_alphabet_(t), l = this;
|
|
1139
|
+
function i(_, w) {
|
|
1140
|
+
let C = _ / t.length, y = Math.abs(n - w);
|
|
1141
|
+
return l.Match_Distance ? C + y / l.Match_Distance : y ? 1 : C;
|
|
1108
1142
|
}
|
|
1109
|
-
let
|
|
1110
|
-
r != -1 && (
|
|
1143
|
+
let s = this.Match_Threshold, r = e.indexOf(t, n);
|
|
1144
|
+
r != -1 && (s = Math.min(i(0, r), s), r = e.lastIndexOf(t, n + t.length), r != -1 && (s = Math.min(i(0, r), s)));
|
|
1111
1145
|
let a = 1 << t.length - 1;
|
|
1112
1146
|
r = -1;
|
|
1113
|
-
let f,
|
|
1114
|
-
for (let
|
|
1115
|
-
for (f = 0,
|
|
1116
|
-
|
|
1117
|
-
let w = Math.max(1, n -
|
|
1118
|
-
y[
|
|
1119
|
-
for (let b =
|
|
1120
|
-
let
|
|
1121
|
-
if (
|
|
1122
|
-
let x = i(
|
|
1123
|
-
if (x <=
|
|
1147
|
+
let f, u, d = t.length + e.length, p;
|
|
1148
|
+
for (let _ = 0; _ < t.length; _++) {
|
|
1149
|
+
for (f = 0, u = d; f < u; ) i(_, n + u) <= s ? f = u : d = u, u = Math.floor((d - f) / 2 + f);
|
|
1150
|
+
d = u;
|
|
1151
|
+
let w = Math.max(1, n - u + 1), C = Math.min(n + u, e.length) + t.length, y = Array(C + 2);
|
|
1152
|
+
y[C + 1] = (1 << _) - 1;
|
|
1153
|
+
for (let b = C; b >= w; b--) {
|
|
1154
|
+
let E = o[e.charAt(b - 1)];
|
|
1155
|
+
if (_ === 0 ? y[b] = (y[b + 1] << 1 | 1) & E : y[b] = (y[b + 1] << 1 | 1) & E | ((p[b + 1] | p[b]) << 1 | 1) | p[b + 1], y[b] & a) {
|
|
1156
|
+
let x = i(_, b - 1);
|
|
1157
|
+
if (x <= s) if (s = x, r = b - 1, r > n) w = Math.max(1, 2 * n - r);
|
|
1124
1158
|
else break;
|
|
1125
1159
|
}
|
|
1126
1160
|
}
|
|
1127
|
-
if (i(
|
|
1161
|
+
if (i(_ + 1, n) > s) break;
|
|
1128
1162
|
p = y;
|
|
1129
1163
|
}
|
|
1130
1164
|
return r;
|
|
1131
1165
|
};
|
|
1132
|
-
|
|
1166
|
+
h.prototype.match_alphabet_ = function(e) {
|
|
1133
1167
|
let t = {};
|
|
1134
1168
|
for (let n = 0; n < e.length; n++) t[e.charAt(n)] = 0;
|
|
1135
1169
|
for (let n = 0; n < e.length; n++) t[e.charAt(n)] |= 1 << e.length - n - 1;
|
|
1136
1170
|
return t;
|
|
1137
1171
|
};
|
|
1138
|
-
|
|
1172
|
+
h.prototype.patch_addContext_ = function(e, t) {
|
|
1139
1173
|
if (t.length == 0) return;
|
|
1140
1174
|
if (e.start2 === null) throw Error("patch not initialized");
|
|
1141
1175
|
let n = t.substring(e.start2, e.start2 + e.length1), o = 0;
|
|
1142
1176
|
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);
|
|
1143
|
-
o += this.Patch_Margin, e.start2 - o > 0 &&
|
|
1144
|
-
let
|
|
1145
|
-
|
|
1177
|
+
o += this.Patch_Margin, e.start2 - o > 0 && h.prototype.isLowSurrogate(t[e.start2 - o]) && o++;
|
|
1178
|
+
let l = t.substring(e.start2 - o, e.start2);
|
|
1179
|
+
l && e.diffs.unshift(new h.Diff(0, l)), e.start2 + e.length1 + o < t.length && h.prototype.isHighSurrogate(t[e.start2 + e.length1 + o]) && o++;
|
|
1146
1180
|
let i = t.substring(e.start2 + e.length1, e.start2 + e.length1 + o);
|
|
1147
|
-
i && e.diffs.push(new
|
|
1181
|
+
i && e.diffs.push(new h.Diff(0, i)), e.start1 -= l.length, e.start2 -= l.length, e.length1 += l.length + i.length, e.length2 += l.length + i.length;
|
|
1148
1182
|
};
|
|
1149
|
-
|
|
1150
|
-
let o,
|
|
1151
|
-
if (typeof e == "string" && typeof t == "string" && typeof n > "u") o = e,
|
|
1152
|
-
else if (e && typeof e == "object" && typeof t > "u" && typeof n > "u")
|
|
1153
|
-
else if (typeof e == "string" && t && typeof t == "object" && typeof n > "u") o = e,
|
|
1154
|
-
else if (typeof e == "string" && typeof t == "string" && n && typeof n == "object") o = e,
|
|
1183
|
+
h.prototype.patch_make = function(e, t, n) {
|
|
1184
|
+
let o, l;
|
|
1185
|
+
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));
|
|
1186
|
+
else if (e && typeof e == "object" && typeof t > "u" && typeof n > "u") l = e, o = this.diff_text1(l);
|
|
1187
|
+
else if (typeof e == "string" && t && typeof t == "object" && typeof n > "u") o = e, l = t;
|
|
1188
|
+
else if (typeof e == "string" && typeof t == "string" && n && typeof n == "object") o = e, l = n;
|
|
1155
1189
|
else throw new Error("Unknown call format to patch_make.");
|
|
1156
|
-
if (
|
|
1157
|
-
|
|
1158
|
-
let i = [],
|
|
1159
|
-
for (let p = 0; p <
|
|
1160
|
-
let
|
|
1161
|
-
switch (!r &&
|
|
1190
|
+
if (l.length === 0) return [];
|
|
1191
|
+
l = this.diff_cleanupSplitSurrogates(l);
|
|
1192
|
+
let i = [], s = new h.patch_obj(), r = 0, a = 0, f = 0, u = o, d = o;
|
|
1193
|
+
for (let p = 0; p < l.length; p++) {
|
|
1194
|
+
let _ = l[p][0], w = l[p][1];
|
|
1195
|
+
switch (!r && _ !== 0 && (s.start1 = a, s.start2 = f), _) {
|
|
1162
1196
|
case 1:
|
|
1163
|
-
|
|
1197
|
+
s.diffs[r++] = l[p], s.length2 += w.length, d = d.substring(0, f) + w + d.substring(f);
|
|
1164
1198
|
break;
|
|
1165
1199
|
case -1:
|
|
1166
|
-
|
|
1200
|
+
s.length1 += w.length, s.diffs[r++] = l[p], d = d.substring(0, f) + d.substring(f + w.length);
|
|
1167
1201
|
break;
|
|
1168
1202
|
case 0:
|
|
1169
|
-
w.length <= 2 * this.Patch_Margin && r &&
|
|
1203
|
+
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 h.patch_obj(), r = 0, u = d, a = f);
|
|
1170
1204
|
break;
|
|
1171
1205
|
}
|
|
1172
|
-
|
|
1206
|
+
_ !== 1 && (a += w.length), _ !== -1 && (f += w.length);
|
|
1173
1207
|
}
|
|
1174
|
-
return r && (this.patch_addContext_(
|
|
1208
|
+
return r && (this.patch_addContext_(s, u), i.push(s)), i;
|
|
1175
1209
|
};
|
|
1176
|
-
|
|
1210
|
+
h.prototype.patch_deepCopy = function(e) {
|
|
1177
1211
|
let t = [];
|
|
1178
1212
|
for (let n = 0; n < e.length; n++) {
|
|
1179
|
-
let o = e[n],
|
|
1180
|
-
|
|
1181
|
-
for (let i = 0; i < o.diffs.length; i++)
|
|
1182
|
-
|
|
1213
|
+
let o = e[n], l = new h.patch_obj();
|
|
1214
|
+
l.diffs = [];
|
|
1215
|
+
for (let i = 0; i < o.diffs.length; i++) l.diffs[i] = new h.Diff(o.diffs[i][0], o.diffs[i][1]);
|
|
1216
|
+
l.start1 = o.start1, l.start2 = o.start2, l.length1 = o.length1, l.length2 = o.length2, t[n] = l;
|
|
1183
1217
|
}
|
|
1184
1218
|
return t;
|
|
1185
1219
|
};
|
|
1186
|
-
|
|
1220
|
+
h.prototype.patch_apply = function(e, t) {
|
|
1187
1221
|
if (e.length == 0) return [t, []];
|
|
1188
1222
|
e = this.patch_deepCopy(e);
|
|
1189
1223
|
let n = this.patch_addPadding(e);
|
|
1190
1224
|
t = n + t + n, this.patch_splitMax(e);
|
|
1191
|
-
let o = 0,
|
|
1225
|
+
let o = 0, l = [];
|
|
1192
1226
|
for (let i = 0; i < e.length; i++) {
|
|
1193
|
-
let
|
|
1194
|
-
if (r.length > this.Match_MaxBits ? (a = this.match_main(t, r.substring(0, this.Match_MaxBits),
|
|
1227
|
+
let s = e[i].start2 + o, r = this.diff_text1(e[i].diffs), a, f = -1;
|
|
1228
|
+
if (r.length > this.Match_MaxBits ? (a = this.match_main(t, r.substring(0, this.Match_MaxBits), s), a != -1 && (f = this.match_main(t, r.substring(r.length - this.Match_MaxBits), s + r.length - this.Match_MaxBits), (f == -1 || a >= f) && (a = -1))) : a = this.match_main(t, r, s), a == -1) l[i] = !1, o -= e[i].length2 - e[i].length1;
|
|
1195
1229
|
else {
|
|
1196
|
-
|
|
1197
|
-
let
|
|
1198
|
-
if (f == -1 ?
|
|
1230
|
+
l[i] = !0, o = a - s;
|
|
1231
|
+
let u;
|
|
1232
|
+
if (f == -1 ? u = t.substring(a, a + r.length) : u = t.substring(a, f + this.Match_MaxBits), r == u) t = t.substring(0, a) + this.diff_text2(e[i].diffs) + t.substring(a + r.length);
|
|
1199
1233
|
else {
|
|
1200
|
-
let
|
|
1201
|
-
if (r.length > this.Match_MaxBits && this.diff_levenshtein(
|
|
1234
|
+
let d = this.diff_main(r, u, !1);
|
|
1235
|
+
if (r.length > this.Match_MaxBits && this.diff_levenshtein(d) / r.length > this.Patch_DeleteThreshold) l[i] = !1;
|
|
1202
1236
|
else {
|
|
1203
|
-
this.diff_cleanupSemanticLossless(
|
|
1204
|
-
let p = 0,
|
|
1237
|
+
this.diff_cleanupSemanticLossless(d);
|
|
1238
|
+
let p = 0, _;
|
|
1205
1239
|
for (let w = 0; w < e[i].diffs.length; w++) {
|
|
1206
|
-
let
|
|
1207
|
-
|
|
1240
|
+
let C = e[i].diffs[w];
|
|
1241
|
+
C[0] !== 0 && (_ = this.diff_xIndex(d, p)), C[0] === 1 ? t = t.substring(0, a + _) + C[1] + t.substring(a + _) : C[0] === -1 && (t = t.substring(0, a + _) + t.substring(a + this.diff_xIndex(d, p + C[1].length))), C[0] !== -1 && (p += C[1].length);
|
|
1208
1242
|
}
|
|
1209
1243
|
}
|
|
1210
1244
|
}
|
|
1211
1245
|
}
|
|
1212
1246
|
}
|
|
1213
|
-
return t = t.substring(n.length, t.length - n.length), [t,
|
|
1247
|
+
return t = t.substring(n.length, t.length - n.length), [t, l];
|
|
1214
1248
|
};
|
|
1215
|
-
|
|
1249
|
+
h.prototype.patch_addPadding = function(e) {
|
|
1216
1250
|
let t = this.Patch_Margin, n = "";
|
|
1217
1251
|
for (let i = 1; i <= t; i++) n += String.fromCharCode(i);
|
|
1218
1252
|
for (let i = 0; i < e.length; i++) e[i].start1 += t, e[i].start2 += t;
|
|
1219
|
-
let o = e[0],
|
|
1220
|
-
if (
|
|
1221
|
-
else if (t >
|
|
1222
|
-
let i = t -
|
|
1223
|
-
|
|
1253
|
+
let o = e[0], l = o.diffs;
|
|
1254
|
+
if (l.length == 0 || l[0][0] != 0) l.unshift(new h.Diff(0, n)), o.start1 -= t, o.start2 -= t, o.length1 += t, o.length2 += t;
|
|
1255
|
+
else if (t > l[0][1].length) {
|
|
1256
|
+
let i = t - l[0][1].length;
|
|
1257
|
+
l[0][1] = n.substring(l[0][1].length) + l[0][1], o.start1 -= i, o.start2 -= i, o.length1 += i, o.length2 += i;
|
|
1224
1258
|
}
|
|
1225
|
-
if (o = e[e.length - 1],
|
|
1226
|
-
else if (t >
|
|
1227
|
-
let i = t -
|
|
1228
|
-
|
|
1259
|
+
if (o = e[e.length - 1], l = o.diffs, l.length == 0 || l[l.length - 1][0] != 0) l.push(new h.Diff(0, n)), o.length1 += t, o.length2 += t;
|
|
1260
|
+
else if (t > l[l.length - 1][1].length) {
|
|
1261
|
+
let i = t - l[l.length - 1][1].length;
|
|
1262
|
+
l[l.length - 1][1] += n.substring(0, i), o.length1 += i, o.length2 += i;
|
|
1229
1263
|
}
|
|
1230
1264
|
return n;
|
|
1231
1265
|
};
|
|
1232
|
-
|
|
1266
|
+
h.prototype.patch_splitMax = function(e) {
|
|
1233
1267
|
let t = this.Match_MaxBits;
|
|
1234
1268
|
for (let n = 0; n < e.length; n++) {
|
|
1235
1269
|
if (e[n].length1 <= t) continue;
|
|
1236
1270
|
let o = e[n];
|
|
1237
1271
|
e.splice(n--, 1);
|
|
1238
|
-
let
|
|
1272
|
+
let l = o.start1, i = o.start2, s = "";
|
|
1239
1273
|
for (; o.diffs.length !== 0; ) {
|
|
1240
|
-
let r = new
|
|
1241
|
-
for (r.start1 =
|
|
1242
|
-
let
|
|
1243
|
-
|
|
1274
|
+
let r = new h.patch_obj(), a = !0;
|
|
1275
|
+
for (r.start1 = l - s.length, r.start2 = i - s.length, s !== "" && (r.length1 = r.length2 = s.length, r.diffs.push(new h.Diff(0, s))); o.diffs.length !== 0 && r.length1 < t - this.Patch_Margin; ) {
|
|
1276
|
+
let u = o.diffs[0][0], d = o.diffs[0][1];
|
|
1277
|
+
u === 1 ? (r.length2 += d.length, i += d.length, r.diffs.push(o.diffs.shift()), a = !1) : u === -1 && r.diffs.length == 1 && r.diffs[0][0] == 0 && d.length > 2 * t ? (r.length1 += d.length, l += d.length, a = !1, r.diffs.push(new h.Diff(u, d)), o.diffs.shift()) : (d = d.substring(0, t - r.length1 - this.Patch_Margin), r.length1 += d.length, l += d.length, u === 0 ? (r.length2 += d.length, i += d.length) : a = !1, r.diffs.push(new h.Diff(u, d)), d == o.diffs[0][1] ? o.diffs.shift() : o.diffs[0][1] = o.diffs[0][1].substring(d.length));
|
|
1244
1278
|
}
|
|
1245
|
-
|
|
1279
|
+
s = this.diff_text2(r.diffs), s = s.substring(s.length - this.Patch_Margin);
|
|
1246
1280
|
let f = this.diff_text1(o.diffs).substring(0, this.Patch_Margin);
|
|
1247
|
-
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
|
|
1281
|
+
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 h.Diff(0, f))), a || e.splice(++n, 0, r);
|
|
1248
1282
|
}
|
|
1249
1283
|
}
|
|
1250
1284
|
};
|
|
1251
|
-
|
|
1285
|
+
h.prototype.patch_toText = function(e) {
|
|
1252
1286
|
let t = [];
|
|
1253
1287
|
for (let n = 0; n < e.length; n++) t[n] = e[n];
|
|
1254
1288
|
return t.join("");
|
|
1255
1289
|
};
|
|
1256
|
-
|
|
1290
|
+
h.prototype.patch_fromText = function(e) {
|
|
1257
1291
|
let t = [];
|
|
1258
1292
|
if (!e) return t;
|
|
1259
1293
|
let n = e.split(`
|
|
1260
|
-
`), o = 0,
|
|
1294
|
+
`), o = 0, l = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;
|
|
1261
1295
|
for (; o < n.length; ) {
|
|
1262
|
-
let i = n[o].match(
|
|
1296
|
+
let i = n[o].match(l);
|
|
1263
1297
|
if (!i) throw new Error("Invalid patch string: " + n[o]);
|
|
1264
|
-
let
|
|
1265
|
-
for (t.push(
|
|
1298
|
+
let s = new h.patch_obj();
|
|
1299
|
+
for (t.push(s), s.start1 = parseInt(i[1], 10), i[2] === "" ? (s.start1--, s.length1 = 1) : i[2] == "0" ? s.length1 = 0 : (s.start1--, s.length1 = parseInt(i[2], 10)), s.start2 = parseInt(i[3], 10), i[4] === "" ? (s.start2--, s.length2 = 1) : i[4] == "0" ? s.length2 = 0 : (s.start2--, s.length2 = parseInt(i[4], 10)), o++; o < n.length; ) {
|
|
1266
1300
|
let r = n[o].charAt(0), a = "";
|
|
1267
1301
|
try {
|
|
1268
1302
|
a = decodeURI(n[o].substring(1));
|
|
1269
1303
|
} catch {
|
|
1270
1304
|
throw new Error("Illegal escape in patch_fromText: " + a);
|
|
1271
1305
|
}
|
|
1272
|
-
if (r == "-")
|
|
1273
|
-
else if (r == "+")
|
|
1274
|
-
else if (r == " ")
|
|
1306
|
+
if (r == "-") s.diffs.push(new h.Diff(-1, a));
|
|
1307
|
+
else if (r == "+") s.diffs.push(new h.Diff(1, a));
|
|
1308
|
+
else if (r == " ") s.diffs.push(new h.Diff(0, a));
|
|
1275
1309
|
else {
|
|
1276
1310
|
if (r == "@") break;
|
|
1277
1311
|
if (r !== "") throw new Error('Invalid patch mode "' + r + '" in: ' + a);
|
|
@@ -1281,17 +1315,17 @@ d.prototype.patch_fromText = function(e) {
|
|
|
1281
1315
|
}
|
|
1282
1316
|
return t;
|
|
1283
1317
|
};
|
|
1284
|
-
|
|
1318
|
+
h.patch_obj = function() {
|
|
1285
1319
|
this.diffs = [], this.start1 = null, this.start2 = null, this.length1 = 0, this.length2 = 0;
|
|
1286
1320
|
};
|
|
1287
|
-
|
|
1321
|
+
h.patch_obj.prototype.toString = function() {
|
|
1288
1322
|
let e, t;
|
|
1289
1323
|
this.length1 === 0 ? e = this.start1 + ",0" : this.length1 == 1 ? e = this.start1 + 1 : e = this.start1 + 1 + "," + this.length1, this.length2 === 0 ? t = this.start2 + ",0" : this.length2 == 1 ? t = this.start2 + 1 : t = this.start2 + 1 + "," + this.length2;
|
|
1290
1324
|
let n = ["@@ -" + e + " +" + t + ` @@
|
|
1291
1325
|
`], o;
|
|
1292
|
-
|
|
1293
|
-
for (let
|
|
1294
|
-
switch (this.diffs[
|
|
1326
|
+
h.prototype.diff_cleanupSplitSurrogates(this.diffs);
|
|
1327
|
+
for (let l = 0; l < this.diffs.length; l++) {
|
|
1328
|
+
switch (this.diffs[l][0]) {
|
|
1295
1329
|
case 1:
|
|
1296
1330
|
o = "+";
|
|
1297
1331
|
break;
|
|
@@ -1302,268 +1336,268 @@ d.patch_obj.prototype.toString = function() {
|
|
|
1302
1336
|
o = " ";
|
|
1303
1337
|
break;
|
|
1304
1338
|
}
|
|
1305
|
-
n[
|
|
1339
|
+
n[l + 1] = o + encodeURI(this.diffs[l][1]) + `
|
|
1306
1340
|
`;
|
|
1307
1341
|
}
|
|
1308
1342
|
return n.join("").replace(/%20/g, " ");
|
|
1309
1343
|
};
|
|
1310
|
-
function
|
|
1344
|
+
function z(e) {
|
|
1311
1345
|
return e && typeof e == "object" && !Array.isArray(e) && e !== null;
|
|
1312
1346
|
}
|
|
1313
|
-
function
|
|
1314
|
-
return
|
|
1315
|
-
n === "__proto__" || n === "constructor" || (
|
|
1347
|
+
function J(e, t) {
|
|
1348
|
+
return z(e) && z(t) && Object.keys(t).forEach((n) => {
|
|
1349
|
+
n === "__proto__" || n === "constructor" || (z(t[n]) ? ((!e[n] || !z(e[n])) && (e[n] = t[n]), J(e[n], t[n])) : Object.assign(e, { [n]: t[n] }));
|
|
1316
1350
|
}), e;
|
|
1317
1351
|
}
|
|
1318
|
-
function
|
|
1319
|
-
let o = null,
|
|
1352
|
+
function Q(e, t, n = !1) {
|
|
1353
|
+
let o = null, l = !0;
|
|
1320
1354
|
return (...i) => {
|
|
1321
|
-
const
|
|
1355
|
+
const s = n && l, r = () => {
|
|
1322
1356
|
e.apply(this, i), o = null;
|
|
1323
1357
|
};
|
|
1324
|
-
|
|
1358
|
+
s && (l = !1, r()), o || (o = setTimeout(r, t));
|
|
1325
1359
|
};
|
|
1326
1360
|
}
|
|
1327
|
-
function
|
|
1361
|
+
function Ke(e, t) {
|
|
1328
1362
|
let n;
|
|
1329
1363
|
return (...o) => {
|
|
1330
|
-
const
|
|
1331
|
-
clearTimeout(n), n = setTimeout(() => e.apply(
|
|
1364
|
+
const l = this;
|
|
1365
|
+
clearTimeout(n), n = setTimeout(() => e.apply(l, o), t);
|
|
1332
1366
|
};
|
|
1333
1367
|
}
|
|
1334
|
-
function
|
|
1368
|
+
function Z(e = "") {
|
|
1335
1369
|
return e.replace(/\r\n/g, `
|
|
1336
1370
|
`);
|
|
1337
1371
|
}
|
|
1338
|
-
function
|
|
1339
|
-
const
|
|
1372
|
+
function ee(e, t, n, o) {
|
|
1373
|
+
const l = n - e, i = e + l / 2;
|
|
1340
1374
|
return `M ${e} ${t} C ${i},${t} ${i},${o} ${n},${o}`;
|
|
1341
1375
|
}
|
|
1342
|
-
const
|
|
1343
|
-
function
|
|
1376
|
+
const D = { DIFF_EQUAL: 0, DIFF_DELETE: -1, DIFF_INSERT: 1, EDITOR_RIGHT: "right", EDITOR_LEFT: "left", RTL: "rtl", LTR: "ltr", SVG_NS: "http://www.w3.org/2000/svg", DIFF_GRANULARITY_SPECIFIC: "specific", DIFF_GRANULARITY_BROAD: "broad" };
|
|
1377
|
+
function te(e, t) {
|
|
1344
1378
|
let { mode: n } = e.options;
|
|
1345
|
-
return t ===
|
|
1379
|
+
return t === D.EDITOR_LEFT && e.options.left.mode !== null && (n = e.options.left.mode), t === D.EDITOR_RIGHT && e.options.right.mode !== null && (n = e.options.right.mode), n;
|
|
1346
1380
|
}
|
|
1347
|
-
function
|
|
1381
|
+
function ne(e, t) {
|
|
1348
1382
|
let { theme: n } = e.options;
|
|
1349
|
-
return t ===
|
|
1383
|
+
return t === D.EDITOR_LEFT && e.options.left.theme !== null && (n = e.options.left.theme), t === D.EDITOR_RIGHT && e.options.right.theme !== null && (n = e.options.right.theme), n;
|
|
1350
1384
|
}
|
|
1351
|
-
function
|
|
1385
|
+
function ce(e, t) {
|
|
1352
1386
|
return e.ace.getSession().doc.getLine(t);
|
|
1353
1387
|
}
|
|
1354
|
-
function
|
|
1388
|
+
function Xe(e) {
|
|
1355
1389
|
return document.getElementById(e.options.left.id).offsetHeight;
|
|
1356
1390
|
}
|
|
1357
|
-
function
|
|
1391
|
+
function ie(e) {
|
|
1358
1392
|
const t = document.createElement("div"), n = { class: e.className, style: `top:${e.topOffset}px`, title: e.tooltip, "data-diff-index": e.diffIndex };
|
|
1359
1393
|
for (const o in n) t.setAttribute(o, n[o]);
|
|
1360
1394
|
return t.innerHTML = e.arrowContent, t;
|
|
1361
1395
|
}
|
|
1362
|
-
function
|
|
1363
|
-
const n = Math.random().toString(36).substr(2, 5), o = `js-${t}-${n}`,
|
|
1364
|
-
if (
|
|
1396
|
+
function W(e, t) {
|
|
1397
|
+
const n = Math.random().toString(36).substr(2, 5), o = `js-${t}-${n}`, l = e.querySelector(`.${t}`);
|
|
1398
|
+
if (l) return l.id = l.id || o, l.id;
|
|
1365
1399
|
const i = document.createElement("div");
|
|
1366
1400
|
return e.appendChild(i), i.className = t, i.id = o, i.id;
|
|
1367
1401
|
}
|
|
1368
|
-
function
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1371
|
-
const
|
|
1372
|
-
for (let a = 0, f =
|
|
1373
|
-
let
|
|
1374
|
-
const
|
|
1375
|
-
for (;
|
|
1402
|
+
function oe(e, t, n, o) {
|
|
1403
|
+
const l = e === "document" ? document : document.querySelector(e);
|
|
1404
|
+
l.addEventListener(t, (i) => {
|
|
1405
|
+
const s = l.querySelectorAll(n), { target: r } = i;
|
|
1406
|
+
for (let a = 0, f = s.length; a < f; a += 1) {
|
|
1407
|
+
let u = r;
|
|
1408
|
+
const d = s[a];
|
|
1409
|
+
for (; u && u !== l; ) u === d && o.call(d, i), u = u.parentNode;
|
|
1376
1410
|
}
|
|
1377
1411
|
});
|
|
1378
1412
|
}
|
|
1379
|
-
let
|
|
1380
|
-
function
|
|
1413
|
+
let K;
|
|
1414
|
+
function We(e) {
|
|
1381
1415
|
if (e.Range) return e.Range;
|
|
1382
1416
|
const t = e.acequire || e.require;
|
|
1383
1417
|
return t ? t("ace/range") : !1;
|
|
1384
1418
|
}
|
|
1385
|
-
function
|
|
1386
|
-
if (!(this instanceof
|
|
1419
|
+
function X(e = {}) {
|
|
1420
|
+
if (!(this instanceof X)) return new X(e);
|
|
1387
1421
|
const t = this, n = () => window ? window.ace : void 0;
|
|
1388
|
-
t.options =
|
|
1422
|
+
t.options = J({ ace: n(), mode: null, theme: null, element: null, diffGranularity: D.DIFF_GRANULARITY_BROAD, lockScrolling: !1, showDiffs: !0, showConnectors: !0, maxDiffs: 5e3, left: { id: null, content: null, mode: null, theme: null, editable: !0, copyLinkEnabled: !0 }, right: { id: null, content: null, mode: null, theme: null, editable: !0, copyLinkEnabled: !0 }, classes: { gutterID: "acediff__gutter", diff: "acediff__diffLine", connector: "acediff__connector", newCodeConnectorLink: "acediff__newCodeConnector", newCodeConnectorLinkContent: "→", deletedCodeConnectorLink: "acediff__deletedCodeConnector", deletedCodeConnectorLinkContent: "←", copyRightContainer: "acediff__copy--right", copyLeftContainer: "acediff__copy--left" }, connectorYOffset: 0 }, e);
|
|
1389
1423
|
const { ace: o } = t.options;
|
|
1390
1424
|
if (!o) {
|
|
1391
|
-
const
|
|
1392
|
-
return console.error(
|
|
1425
|
+
const l = "No ace editor found nor supplied - `options.ace` or `window.ace` is missing";
|
|
1426
|
+
return console.error(l), new Error(l);
|
|
1393
1427
|
}
|
|
1394
|
-
if (
|
|
1395
|
-
const
|
|
1396
|
-
return console.error(
|
|
1428
|
+
if (K = We(o), !K) {
|
|
1429
|
+
const l = "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";
|
|
1430
|
+
return console.error(l), new Error(l);
|
|
1397
1431
|
}
|
|
1398
1432
|
if (t.options.element === null) {
|
|
1399
|
-
const
|
|
1400
|
-
return console.error(
|
|
1433
|
+
const l = "You need to specify an element for Ace-diff - `options.element` is missing";
|
|
1434
|
+
return console.error(l), new Error(l);
|
|
1401
1435
|
}
|
|
1402
1436
|
if (t.options.element instanceof HTMLElement ? t.el = t.options.element : t.el = document.body.querySelector(t.options.element), !t.el) {
|
|
1403
|
-
const
|
|
1404
|
-
return console.error(
|
|
1437
|
+
const l = `Can't find the specified element ${t.options.element}`;
|
|
1438
|
+
return console.error(l), new Error(l);
|
|
1405
1439
|
}
|
|
1406
|
-
t.options.left.id =
|
|
1407
|
-
t.lineHeight = t.editors.left.ace.renderer.lineHeight,
|
|
1440
|
+
t.options.left.id = W(t.el, "acediff__left"), t.options.classes.gutterID = W(t.el, "acediff__gutter"), t.options.right.id = W(t.el, "acediff__right"), t.el.innerHTML = `<div class="acediff__wrap">${t.el.innerHTML}</div>`, t.editors = { left: { ace: o.edit(t.options.left.id), markers: [], lineLengths: [] }, right: { ace: o.edit(t.options.right.id), markers: [], lineLengths: [] }, editorHeight: null }, t.editors.left.ace.getSession().setMode(te(t, D.EDITOR_LEFT)), t.editors.right.ace.getSession().setMode(te(t, D.EDITOR_RIGHT)), t.editors.left.ace.setReadOnly(!t.options.left.editable), t.editors.right.ace.setReadOnly(!t.options.right.editable), t.editors.left.ace.setTheme(ne(t, D.EDITOR_LEFT)), t.editors.right.ace.setTheme(ne(t, D.EDITOR_RIGHT)), t.editors.left.ace.setValue(Z(t.options.left.content), -1), t.editors.right.ace.setValue(Z(t.options.right.content), -1), t.editors.editorHeight = Xe(t), setTimeout(() => {
|
|
1441
|
+
t.lineHeight = t.editors.left.ace.renderer.lineHeight, Je(t), tt(t), me(t), t.diff();
|
|
1408
1442
|
}, 1);
|
|
1409
1443
|
}
|
|
1410
|
-
|
|
1411
|
-
|
|
1444
|
+
X.prototype = { setOptions(e) {
|
|
1445
|
+
J(this.options, e), this.diff();
|
|
1412
1446
|
}, getNumDiffs() {
|
|
1413
1447
|
return this.diffs.length;
|
|
1414
1448
|
}, getEditors() {
|
|
1415
1449
|
return { left: this.editors.left.ace, right: this.editors.right.ace };
|
|
1416
1450
|
}, diff() {
|
|
1417
|
-
const e = new
|
|
1418
|
-
e.diff_cleanupSemantic(o), this.editors.left.lineLengths =
|
|
1419
|
-
const
|
|
1420
|
-
o.forEach((
|
|
1421
|
-
const r =
|
|
1422
|
-
let a =
|
|
1423
|
-
a.length !== 0 && (r ===
|
|
1424
|
-
}, this), this.diffs =
|
|
1451
|
+
const e = new h(), t = this.editors.left.ace.getSession().getValue(), n = this.editors.right.ace.getSession().getValue(), o = e.diff_main(n, t);
|
|
1452
|
+
e.diff_cleanupSemantic(o), this.editors.left.lineLengths = se(this.editors.left), this.editors.right.lineLengths = se(this.editors.right);
|
|
1453
|
+
const l = [], i = { left: 0, right: 0 };
|
|
1454
|
+
o.forEach((s) => {
|
|
1455
|
+
const r = s[0];
|
|
1456
|
+
let a = s[1];
|
|
1457
|
+
a.length !== 0 && (r === D.DIFF_EQUAL ? (i.left += a.length, i.right += a.length) : r === D.DIFF_DELETE ? (l.push(fe(this, D.DIFF_DELETE, i.left, i.right, a)), i.right += a.length) : r === D.DIFF_INSERT && (l.push(fe(this, D.DIFF_INSERT, i.left, i.right, a)), i.left += a.length));
|
|
1458
|
+
}, this), this.diffs = ot(this, l), !(this.diffs.length > this.options.maxDiffs) && (pe(this), _e(this));
|
|
1425
1459
|
}, destroy() {
|
|
1426
1460
|
const e = this.editors.left.ace.getValue();
|
|
1427
1461
|
this.editors.left.ace.destroy();
|
|
1428
1462
|
let t = this.editors.left.ace.container, n = t.cloneNode(!1);
|
|
1429
1463
|
n.textContent = e, t.parentNode.replaceChild(n, t);
|
|
1430
1464
|
const o = this.editors.right.ace.getValue();
|
|
1431
|
-
this.editors.right.ace.destroy(), t = this.editors.right.ace.container, n = t.cloneNode(!1), n.textContent = o, t.parentNode.replaceChild(n, t), document.getElementById(this.options.classes.gutterID).innerHTML = "",
|
|
1465
|
+
this.editors.right.ace.destroy(), t = this.editors.right.ace.container, n = t.cloneNode(!1), n.textContent = o, t.parentNode.replaceChild(n, t), document.getElementById(this.options.classes.gutterID).innerHTML = "", ge();
|
|
1432
1466
|
} };
|
|
1433
|
-
let
|
|
1467
|
+
let ge = () => {
|
|
1434
1468
|
};
|
|
1435
|
-
function
|
|
1436
|
-
e.editors.left.ace.getSession().on("changeScrollTop",
|
|
1437
|
-
|
|
1438
|
-
}, 16)), e.editors.right.ace.getSession().on("changeScrollTop",
|
|
1439
|
-
|
|
1469
|
+
function Je(e) {
|
|
1470
|
+
e.editors.left.ace.getSession().on("changeScrollTop", Q(() => {
|
|
1471
|
+
ae(e);
|
|
1472
|
+
}, 16)), e.editors.right.ace.getSession().on("changeScrollTop", Q(() => {
|
|
1473
|
+
ae(e);
|
|
1440
1474
|
}, 16));
|
|
1441
1475
|
const t = e.diff.bind(e);
|
|
1442
|
-
e.editors.left.ace.on("change", t), e.editors.right.ace.on("change", t), e.options.left.copyLinkEnabled &&
|
|
1443
|
-
|
|
1444
|
-
}), e.options.right.copyLinkEnabled &&
|
|
1445
|
-
|
|
1476
|
+
e.editors.left.ace.on("change", t), e.editors.right.ace.on("change", t), e.options.left.copyLinkEnabled && oe(`#${e.options.classes.gutterID}`, "click", `.${e.options.classes.newCodeConnectorLink}`, (o) => {
|
|
1477
|
+
le(e, o, D.LTR);
|
|
1478
|
+
}), e.options.right.copyLinkEnabled && oe(`#${e.options.classes.gutterID}`, "click", `.${e.options.classes.deletedCodeConnectorLink}`, (o) => {
|
|
1479
|
+
le(e, o, D.RTL);
|
|
1446
1480
|
});
|
|
1447
|
-
const n =
|
|
1481
|
+
const n = Ke(() => {
|
|
1448
1482
|
e.editors.availableHeight = document.getElementById(e.options.left.id).offsetHeight, e.diff();
|
|
1449
1483
|
}, 250);
|
|
1450
|
-
window.addEventListener("resize", n),
|
|
1484
|
+
window.addEventListener("resize", n), ge = () => {
|
|
1451
1485
|
window.removeEventListener("resize", n);
|
|
1452
1486
|
};
|
|
1453
1487
|
}
|
|
1454
|
-
function
|
|
1455
|
-
const o = parseInt(t.target.getAttribute("data-diff-index"), 10),
|
|
1456
|
-
let i,
|
|
1457
|
-
n ===
|
|
1458
|
-
let
|
|
1459
|
-
for (let
|
|
1460
|
-
`),
|
|
1488
|
+
function le(e, t, n) {
|
|
1489
|
+
const o = parseInt(t.target.getAttribute("data-diff-index"), 10), l = e.diffs[o];
|
|
1490
|
+
let i, s, r, a, f, u;
|
|
1491
|
+
n === D.LTR ? (i = e.editors.left, s = e.editors.right, r = l.leftStartLine, a = l.leftEndLine, f = l.rightStartLine, u = l.rightEndLine) : (i = e.editors.right, s = e.editors.left, r = l.rightStartLine, a = l.rightEndLine, f = l.leftStartLine, u = l.leftEndLine);
|
|
1492
|
+
let d = "";
|
|
1493
|
+
for (let _ = r; _ < a; _ += 1) d += ce(i, _), _ === r && d === "" && f != 0 && (d += `
|
|
1494
|
+
`), _ < i.ace.getSession().getLength() - 1 && (d += `
|
|
1461
1495
|
`);
|
|
1462
|
-
const p =
|
|
1463
|
-
|
|
1496
|
+
const p = s.ace.getSession().getScrollTop();
|
|
1497
|
+
s.ace.getSession().replace(new K(f, 0, u, 0), d), s.ace.getSession().setScrollTop(parseInt(p, 10)), e.diff();
|
|
1464
1498
|
}
|
|
1465
|
-
function
|
|
1499
|
+
function se(e) {
|
|
1466
1500
|
const t = e.ace.getSession().doc.getAllLines(), n = [];
|
|
1467
1501
|
return t.forEach((o) => {
|
|
1468
1502
|
n.push(o.length + 1);
|
|
1469
1503
|
}), n;
|
|
1470
1504
|
}
|
|
1471
|
-
function
|
|
1505
|
+
function re(e, t, n, o, l) {
|
|
1472
1506
|
const i = e.editors[t];
|
|
1473
1507
|
o < n && (o = n);
|
|
1474
|
-
const
|
|
1475
|
-
o > n && (o -= 1), i.markers.push(i.ace.session.addMarker(new
|
|
1508
|
+
const s = `${l} ${o > n ? "lines" : "targetOnly"}`;
|
|
1509
|
+
o > n && (o -= 1), i.markers.push(i.ace.session.addMarker(new K(n, 0, o, 1), s, "fullLine"));
|
|
1476
1510
|
}
|
|
1477
|
-
function
|
|
1478
|
-
|
|
1511
|
+
function ae(e) {
|
|
1512
|
+
pe(e), _e(e), et(e);
|
|
1479
1513
|
}
|
|
1480
|
-
function
|
|
1514
|
+
function pe(e) {
|
|
1481
1515
|
e.editors.left.markers.forEach((t) => {
|
|
1482
1516
|
e.editors.left.ace.getSession().removeMarker(t);
|
|
1483
1517
|
}, e), e.editors.right.markers.forEach((t) => {
|
|
1484
1518
|
e.editors.right.ace.getSession().removeMarker(t);
|
|
1485
1519
|
}, e);
|
|
1486
1520
|
}
|
|
1487
|
-
function
|
|
1488
|
-
const i = e.editors.left.ace.getSession().getScrollTop(),
|
|
1521
|
+
function Qe(e, t, n, o, l) {
|
|
1522
|
+
const i = e.editors.left.ace.getSession().getScrollTop(), s = e.editors.right.ace.getSession().getScrollTop();
|
|
1489
1523
|
e.connectorYOffset = 1;
|
|
1490
|
-
const r = -1, a = t * e.lineHeight - i + 0.5, f = e.gutterWidth + 1,
|
|
1491
|
-
|
|
1524
|
+
const r = -1, a = t * e.lineHeight - i + 0.5, f = e.gutterWidth + 1, u = o * e.lineHeight - s + 0.5, d = -1, p = n * e.lineHeight - i + e.connectorYOffset + 0.5, _ = e.gutterWidth + 1, w = l * e.lineHeight - s + e.connectorYOffset + 0.5, C = ee(r, a, f, u), y = ee(_, w, d, p), b = `L${f},${u} ${_},${w}`, E = `L${d},${p} ${r},${a}`, x = `${C} ${b} ${y} ${E}`, v = document.createElementNS(D.SVG_NS, "path");
|
|
1525
|
+
v.setAttribute("d", x), v.setAttribute("class", e.options.classes.connector), e.gutterSVG.appendChild(v);
|
|
1492
1526
|
}
|
|
1493
|
-
function
|
|
1527
|
+
function Ze(e, t, n) {
|
|
1494
1528
|
if (t.leftEndLine > t.leftStartLine && e.options.left.copyLinkEnabled) {
|
|
1495
|
-
const o =
|
|
1529
|
+
const o = ie({ className: e.options.classes.newCodeConnectorLink, topOffset: t.leftStartLine * e.lineHeight, tooltip: "Copy to right", diffIndex: n, arrowContent: e.options.classes.newCodeConnectorLinkContent });
|
|
1496
1530
|
e.copyRightContainer.appendChild(o);
|
|
1497
1531
|
}
|
|
1498
1532
|
if (t.rightEndLine > t.rightStartLine && e.options.right.copyLinkEnabled) {
|
|
1499
|
-
const o =
|
|
1533
|
+
const o = ie({ className: e.options.classes.deletedCodeConnectorLink, topOffset: t.rightStartLine * e.lineHeight, tooltip: "Copy to left", diffIndex: n, arrowContent: e.options.classes.deletedCodeConnectorLinkContent });
|
|
1500
1534
|
e.copyLeftContainer.appendChild(o);
|
|
1501
1535
|
}
|
|
1502
1536
|
}
|
|
1503
|
-
function
|
|
1537
|
+
function et(e) {
|
|
1504
1538
|
const t = e.editors.left.ace.getSession().getScrollTop(), n = e.editors.right.ace.getSession().getScrollTop();
|
|
1505
1539
|
e.copyRightContainer.style.cssText = `top: ${-t}px`, e.copyLeftContainer.style.cssText = `top: ${-n}px`;
|
|
1506
1540
|
}
|
|
1507
|
-
function
|
|
1541
|
+
function fe(e, t, n, o, l) {
|
|
1508
1542
|
let i = {};
|
|
1509
|
-
if (t ===
|
|
1510
|
-
let
|
|
1511
|
-
const f =
|
|
1512
|
-
let
|
|
1513
|
-
(
|
|
1543
|
+
if (t === D.DIFF_INSERT) {
|
|
1544
|
+
let s = de(e.editors.left, n, l), r = he(e.editors.right, o), a = B(e.editors.right, r);
|
|
1545
|
+
const f = B(e.editors.left, s.startLine);
|
|
1546
|
+
let u = r, d = s.startLine === s.endLine, p = 0;
|
|
1547
|
+
(s.startChar > 0 || d && l.length < f) && a > 0 && s.startChar < f && p++, i = { leftStartLine: s.startLine, leftEndLine: s.endLine + 1, rightStartLine: u, rightEndLine: u + p };
|
|
1514
1548
|
} else {
|
|
1515
|
-
let
|
|
1516
|
-
const f =
|
|
1517
|
-
let
|
|
1518
|
-
(
|
|
1549
|
+
let s = de(e.editors.right, o, l), r = he(e.editors.left, n), a = B(e.editors.left, r);
|
|
1550
|
+
const f = B(e.editors.right, s.startLine);
|
|
1551
|
+
let u = r, d = s.startLine === s.endLine, p = 0;
|
|
1552
|
+
(s.startChar > 0 || d && l.length < f) && a > 0 && s.startChar < f && p++, i = { leftStartLine: u, leftEndLine: u + p, rightStartLine: s.startLine, rightEndLine: s.endLine + 1 };
|
|
1519
1553
|
}
|
|
1520
1554
|
return i;
|
|
1521
1555
|
}
|
|
1522
|
-
function
|
|
1523
|
-
const o = { startLine: 0, startChar: 0, endLine: 0, endChar: 0 },
|
|
1524
|
-
let i = 0,
|
|
1525
|
-
e.lineLengths.forEach((f,
|
|
1526
|
-
i += f, !
|
|
1527
|
-
}), o.startChar > 0 &&
|
|
1556
|
+
function de(e, t, n) {
|
|
1557
|
+
const o = { startLine: 0, startChar: 0, endLine: 0, endChar: 0 }, l = t + n.length;
|
|
1558
|
+
let i = 0, s = !1, r = !1;
|
|
1559
|
+
e.lineLengths.forEach((f, u) => {
|
|
1560
|
+
i += f, !s && t < i && (o.startLine = u, o.startChar = t - i + f, s = !0), !r && l <= i && (o.endLine = u, o.endChar = l - i + f, r = !0);
|
|
1561
|
+
}), o.startChar > 0 && B(e, o.startLine) === o.startChar && (o.startLine++, o.startChar = 0), o.endChar === 0 && o.endLine--;
|
|
1528
1562
|
const a = /\n$/.test(n);
|
|
1529
1563
|
return o.startChar > 0 && a && o.endLine++, o;
|
|
1530
1564
|
}
|
|
1531
|
-
function
|
|
1532
|
-
return
|
|
1565
|
+
function B(e, t) {
|
|
1566
|
+
return ce(e, t).length;
|
|
1533
1567
|
}
|
|
1534
|
-
function
|
|
1568
|
+
function he(e, t) {
|
|
1535
1569
|
const n = e.ace.getSession().doc.getAllLines();
|
|
1536
|
-
let o = 0,
|
|
1537
|
-
for (let i = 0; i < n.length; i += 1) if (
|
|
1570
|
+
let o = 0, l = 0;
|
|
1571
|
+
for (let i = 0; i < n.length; i += 1) if (l += n[i].length + 1, t < l) {
|
|
1538
1572
|
o = i;
|
|
1539
1573
|
break;
|
|
1540
1574
|
}
|
|
1541
|
-
return
|
|
1575
|
+
return l > e.ace.getSession().getValue().length && (o += 1), o;
|
|
1542
1576
|
}
|
|
1543
|
-
function
|
|
1577
|
+
function me(e) {
|
|
1544
1578
|
e.gutterHeight = document.getElementById(e.options.classes.gutterID).clientHeight, e.gutterWidth = document.getElementById(e.options.classes.gutterID).clientWidth;
|
|
1545
|
-
const t =
|
|
1546
|
-
e.gutterSVG = document.createElementNS(
|
|
1579
|
+
const t = ue(e, D.EDITOR_LEFT), n = ue(e, D.EDITOR_RIGHT), o = Math.max(t, n, e.gutterHeight);
|
|
1580
|
+
e.gutterSVG = document.createElementNS(D.SVG_NS, "svg"), e.gutterSVG.setAttribute("width", e.gutterWidth), e.gutterSVG.setAttribute("height", o), document.getElementById(e.options.classes.gutterID).appendChild(e.gutterSVG);
|
|
1547
1581
|
}
|
|
1548
|
-
function
|
|
1549
|
-
return (t ===
|
|
1582
|
+
function ue(e, t) {
|
|
1583
|
+
return (t === D.EDITOR_LEFT ? e.editors.left : e.editors.right).ace.getSession().getLength() * e.lineHeight;
|
|
1550
1584
|
}
|
|
1551
|
-
function
|
|
1585
|
+
function tt(e) {
|
|
1552
1586
|
e.copyRightContainer = document.createElement("div"), e.copyRightContainer.setAttribute("class", e.options.classes.copyRightContainer), e.copyLeftContainer = document.createElement("div"), e.copyLeftContainer.setAttribute("class", e.options.classes.copyLeftContainer), document.getElementById(e.options.classes.gutterID).appendChild(e.copyRightContainer), document.getElementById(e.options.classes.gutterID).appendChild(e.copyLeftContainer);
|
|
1553
1587
|
}
|
|
1554
|
-
function
|
|
1555
|
-
document.getElementById(e.options.classes.gutterID).removeChild(e.gutterSVG),
|
|
1588
|
+
function nt(e) {
|
|
1589
|
+
document.getElementById(e.options.classes.gutterID).removeChild(e.gutterSVG), me(e);
|
|
1556
1590
|
}
|
|
1557
|
-
function
|
|
1591
|
+
function it(e) {
|
|
1558
1592
|
e.copyLeftContainer.innerHTML = "", e.copyRightContainer.innerHTML = "";
|
|
1559
1593
|
}
|
|
1560
|
-
function
|
|
1594
|
+
function ot(e, t) {
|
|
1561
1595
|
const n = [];
|
|
1562
1596
|
function o(i) {
|
|
1563
|
-
return e.options.diffGranularity ===
|
|
1597
|
+
return e.options.diffGranularity === D.DIFF_GRANULARITY_SPECIFIC ? i < 1 : i <= 1;
|
|
1564
1598
|
}
|
|
1565
|
-
t.forEach((i,
|
|
1566
|
-
if (
|
|
1599
|
+
t.forEach((i, s) => {
|
|
1600
|
+
if (s === 0) {
|
|
1567
1601
|
n.push(i);
|
|
1568
1602
|
return;
|
|
1569
1603
|
}
|
|
@@ -1574,17 +1608,17 @@ function tt(e, t) {
|
|
|
1574
1608
|
}
|
|
1575
1609
|
r || n.push(i);
|
|
1576
1610
|
});
|
|
1577
|
-
const
|
|
1611
|
+
const l = [];
|
|
1578
1612
|
return n.forEach((i) => {
|
|
1579
|
-
i.leftStartLine === i.leftEndLine && i.rightStartLine === i.rightEndLine ||
|
|
1580
|
-
}),
|
|
1613
|
+
i.leftStartLine === i.leftEndLine && i.rightStartLine === i.rightEndLine || l.push(i);
|
|
1614
|
+
}), l;
|
|
1581
1615
|
}
|
|
1582
|
-
function
|
|
1583
|
-
|
|
1584
|
-
e.options.showDiffs && (
|
|
1616
|
+
function _e(e) {
|
|
1617
|
+
nt(e), it(e), e.diffs.forEach((t, n) => {
|
|
1618
|
+
e.options.showDiffs && (re(e, D.EDITOR_LEFT, t.leftStartLine, t.leftEndLine, e.options.classes.diff), re(e, D.EDITOR_RIGHT, t.rightStartLine, t.rightEndLine, e.options.classes.diff), e.options.showConnectors && Qe(e, t.leftStartLine, t.leftEndLine, t.rightStartLine, t.rightEndLine), Ze(e, t, n));
|
|
1585
1619
|
}, e);
|
|
1586
1620
|
}
|
|
1587
|
-
const
|
|
1621
|
+
const lt = {
|
|
1588
1622
|
props: {
|
|
1589
1623
|
pluginName: {
|
|
1590
1624
|
type: String,
|
|
@@ -1612,12 +1646,15 @@ const nt = {
|
|
|
1612
1646
|
localPluginTxt: "",
|
|
1613
1647
|
localExistingPluginTxt: null,
|
|
1614
1648
|
editor: null,
|
|
1615
|
-
differ: null
|
|
1649
|
+
differ: null,
|
|
1650
|
+
contextMenu: !1,
|
|
1651
|
+
menuX: 0,
|
|
1652
|
+
menuY: 0
|
|
1616
1653
|
};
|
|
1617
1654
|
},
|
|
1618
1655
|
mounted() {
|
|
1619
1656
|
const e = this.buildPluginMode();
|
|
1620
|
-
this.existingPluginTxt === null ? (this.editor =
|
|
1657
|
+
this.existingPluginTxt === null ? (this.editor = I.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight"), this.editor.session.setMode(new e()), 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(), U.applyVimModeIfEnabled(this.editor), this.editor.focus()) : (this.tab = 1, this.differ = new X({
|
|
1621
1658
|
element: this.$refs.editor,
|
|
1622
1659
|
mode: new e(),
|
|
1623
1660
|
theme: "ace/theme/twilight",
|
|
@@ -1629,7 +1666,7 @@ const nt = {
|
|
|
1629
1666
|
content: this.localPluginTxt,
|
|
1630
1667
|
editable: !1
|
|
1631
1668
|
}
|
|
1632
|
-
}), this.differ.getEditors().left.setFontSize(16), this.differ.getEditors().right.setFontSize(16), this.curDiff = -1);
|
|
1669
|
+
}), this.differ.getEditors().left.setFontSize(16), this.differ.getEditors().right.setFontSize(16), U.applyVimModeIfEnabled(this.differ.getEditors().left), U.applyVimModeIfEnabled(this.differ.getEditors().right), this.curDiff = -1);
|
|
1633
1670
|
},
|
|
1634
1671
|
beforeUnmount() {
|
|
1635
1672
|
this.editor && this.editor.destroy(), this.differ && this.differ.destroy();
|
|
@@ -1665,24 +1702,24 @@ const nt = {
|
|
|
1665
1702
|
e > 5 && (e -= 5), t > 5 && (t -= 5), this.differ.getEditors().left.scrollToLine(e), this.differ.getEditors().right.scrollToLine(t);
|
|
1666
1703
|
},
|
|
1667
1704
|
buildPluginMode() {
|
|
1668
|
-
let e =
|
|
1705
|
+
let e = I.require("ace/lib/oop"), t = I.require(
|
|
1669
1706
|
"ace/mode/ruby_highlight_rules"
|
|
1670
|
-
).RubyHighlightRules, n = ["VARIABLE"], o = new RegExp(`(\\b${n.join("\\b|\\b")}\\b)`),
|
|
1707
|
+
).RubyHighlightRules, n = ["VARIABLE"], o = new RegExp(`(\\b${n.join("\\b|\\b")}\\b)`), l = function() {
|
|
1671
1708
|
t.call(this);
|
|
1672
|
-
for (let
|
|
1673
|
-
this.$rules[
|
|
1709
|
+
for (let u in this.$rules)
|
|
1710
|
+
this.$rules[u].unshift({
|
|
1674
1711
|
regex: o,
|
|
1675
1712
|
token: "support.function"
|
|
1676
1713
|
});
|
|
1677
1714
|
};
|
|
1678
|
-
e.inherits(
|
|
1679
|
-
let i =
|
|
1715
|
+
e.inherits(l, t);
|
|
1716
|
+
let i = I.require(
|
|
1680
1717
|
"ace/mode/matching_brace_outdent"
|
|
1681
|
-
).MatchingBraceOutdent,
|
|
1718
|
+
).MatchingBraceOutdent, s = I.require(
|
|
1682
1719
|
"ace/mode/behaviour/cstyle"
|
|
1683
|
-
).CstyleBehaviour, r =
|
|
1684
|
-
this.HighlightRules =
|
|
1685
|
-
}, f =
|
|
1720
|
+
).CstyleBehaviour, r = I.require("ace/mode/folding/ruby").FoldMode, a = function() {
|
|
1721
|
+
this.HighlightRules = l, this.$outdent = new i(), this.$behaviour = new s(), this.foldingRules = new r(), this.indentKeywords = this.foldingRules.indentKeywords;
|
|
1722
|
+
}, f = I.require("ace/mode/ruby").Mode;
|
|
1686
1723
|
return e.inherits(a, f), (function() {
|
|
1687
1724
|
this.$id = "ace/mode/openc3";
|
|
1688
1725
|
}).call(a.prototype), a;
|
|
@@ -1707,77 +1744,85 @@ const nt = {
|
|
|
1707
1744
|
emitSubmit(e) {
|
|
1708
1745
|
let t = {
|
|
1709
1746
|
name: this.pluginName,
|
|
1710
|
-
variables:
|
|
1747
|
+
variables: Le(this.localVariables),
|
|
1711
1748
|
plugin_txt_lines: e
|
|
1712
1749
|
};
|
|
1713
1750
|
this.$emit("callback", t);
|
|
1714
1751
|
},
|
|
1715
1752
|
close: function() {
|
|
1716
1753
|
this.show = !this.show;
|
|
1754
|
+
},
|
|
1755
|
+
showContextMenu: function(e) {
|
|
1756
|
+
this.menuX = e.pageX, this.menuY = e.pageY;
|
|
1757
|
+
let t = this.editor.getCursorPosition(), n = this.editor.session.getTokenAt(t.row, t.column);
|
|
1758
|
+
if (n) {
|
|
1759
|
+
let o = n.value.trim();
|
|
1760
|
+
o.includes(" ") ? this.docsKeyword = o.split(" ")[0] : this.docsKeyword = o, this.contextMenu = !0;
|
|
1761
|
+
}
|
|
1762
|
+
},
|
|
1763
|
+
toggleVimMode: function() {
|
|
1764
|
+
this.editor && U.toggleVimMode(this.editor);
|
|
1717
1765
|
}
|
|
1718
1766
|
}
|
|
1719
|
-
},
|
|
1720
|
-
ref: "editor",
|
|
1721
|
-
class: "editor"
|
|
1722
|
-
}, lt = {
|
|
1767
|
+
}, st = { style: { flex: "1" } }, rt = { class: "pa-3" }, at = {
|
|
1723
1768
|
ref: "editor",
|
|
1724
1769
|
class: "editor"
|
|
1725
|
-
},
|
|
1726
|
-
function
|
|
1727
|
-
const
|
|
1728
|
-
return
|
|
1770
|
+
}, ft = { key: 0 };
|
|
1771
|
+
function dt(e, t, n, o, l, i) {
|
|
1772
|
+
const s = m("v-card-title"), r = m("v-icon"), a = m("v-row"), f = m("v-tab"), u = m("v-tabs"), d = m("v-text-field"), p = m("v-col"), _ = m("v-window-item"), w = m("v-list-item-title"), C = m("v-list-item"), y = m("v-divider"), b = m("v-list"), E = m("v-menu"), x = m("v-window"), v = m("v-btn"), T = m("v-spacer"), V = m("v-card-actions"), P = m("v-card-text"), O = m("v-card"), F = m("v-dialog");
|
|
1773
|
+
return L(), k(F, {
|
|
1729
1774
|
persistent: "",
|
|
1730
1775
|
modelValue: i.show,
|
|
1731
|
-
"onUpdate:modelValue": t[
|
|
1776
|
+
"onUpdate:modelValue": t[5] || (t[5] = (A) => i.show = A),
|
|
1732
1777
|
width: "80vw"
|
|
1733
1778
|
}, {
|
|
1734
|
-
default:
|
|
1735
|
-
|
|
1736
|
-
default:
|
|
1737
|
-
|
|
1738
|
-
default:
|
|
1739
|
-
|
|
1740
|
-
default:
|
|
1741
|
-
|
|
1779
|
+
default: g(() => [
|
|
1780
|
+
c(O, null, {
|
|
1781
|
+
default: g(() => [
|
|
1782
|
+
c(P, null, {
|
|
1783
|
+
default: g(() => [
|
|
1784
|
+
c(s, null, {
|
|
1785
|
+
default: g(() => [
|
|
1786
|
+
S(N(n.pluginName), 1)
|
|
1742
1787
|
]),
|
|
1743
1788
|
_: 1
|
|
1744
1789
|
}),
|
|
1745
|
-
n.existingPluginTxt !== null ? (
|
|
1790
|
+
n.existingPluginTxt !== null ? (L(), k(a, {
|
|
1746
1791
|
key: 0,
|
|
1747
1792
|
class: "notice d-flex flex-row"
|
|
1748
1793
|
}, {
|
|
1749
|
-
default:
|
|
1750
|
-
|
|
1794
|
+
default: g(() => [
|
|
1795
|
+
c(r, {
|
|
1751
1796
|
size: "x-large",
|
|
1752
1797
|
start: "",
|
|
1753
1798
|
color: "yellow"
|
|
1754
1799
|
}, {
|
|
1755
|
-
default:
|
|
1756
|
-
|
|
1800
|
+
default: g(() => t[6] || (t[6] = [
|
|
1801
|
+
S(" mdi-alert-box ")
|
|
1757
1802
|
])),
|
|
1758
1803
|
_: 1
|
|
1759
1804
|
}),
|
|
1760
|
-
|
|
1805
|
+
M("div", st, " The existing plugin.txt is different from the " + N(n.pluginName) + "'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update " + N(n.pluginName) + "'s plugin.txt going forward. ", 1)
|
|
1761
1806
|
]),
|
|
1762
1807
|
_: 1
|
|
1763
|
-
})) :
|
|
1764
|
-
|
|
1765
|
-
default:
|
|
1766
|
-
|
|
1767
|
-
modelValue:
|
|
1768
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1808
|
+
})) : j("", !0),
|
|
1809
|
+
c(a, { class: "pb-3 pr-3" }, {
|
|
1810
|
+
default: g(() => [
|
|
1811
|
+
c(u, {
|
|
1812
|
+
modelValue: l.tab,
|
|
1813
|
+
"onUpdate:modelValue": t[0] || (t[0] = (A) => l.tab = A),
|
|
1769
1814
|
class: "ml-3"
|
|
1770
1815
|
}, {
|
|
1771
|
-
default:
|
|
1772
|
-
(
|
|
1773
|
-
default:
|
|
1774
|
-
|
|
1816
|
+
default: g(() => [
|
|
1817
|
+
(L(), k(f, { key: 0 }, {
|
|
1818
|
+
default: g(() => t[7] || (t[7] = [
|
|
1819
|
+
S(" Variables ")
|
|
1775
1820
|
])),
|
|
1776
1821
|
_: 1
|
|
1777
1822
|
})),
|
|
1778
|
-
(
|
|
1779
|
-
default:
|
|
1780
|
-
|
|
1823
|
+
(L(), k(f, { key: 1 }, {
|
|
1824
|
+
default: g(() => t[8] || (t[8] = [
|
|
1825
|
+
S(" plugin.txt ")
|
|
1781
1826
|
])),
|
|
1782
1827
|
_: 1
|
|
1783
1828
|
}))
|
|
@@ -1787,32 +1832,32 @@ function at(e, t, n, o, s, i) {
|
|
|
1787
1832
|
]),
|
|
1788
1833
|
_: 1
|
|
1789
1834
|
}),
|
|
1790
|
-
|
|
1791
|
-
onSubmit: t[
|
|
1835
|
+
M("form", {
|
|
1836
|
+
onSubmit: t[4] || (t[4] = H((...A) => e.onSubmit && e.onSubmit(...A), ["prevent"]))
|
|
1792
1837
|
}, [
|
|
1793
|
-
|
|
1794
|
-
modelValue:
|
|
1795
|
-
"onUpdate:modelValue": t[
|
|
1838
|
+
c(x, {
|
|
1839
|
+
modelValue: l.tab,
|
|
1840
|
+
"onUpdate:modelValue": t[3] || (t[3] = (A) => l.tab = A)
|
|
1796
1841
|
}, {
|
|
1797
|
-
default:
|
|
1798
|
-
(
|
|
1842
|
+
default: g(() => [
|
|
1843
|
+
(L(), k(_, {
|
|
1799
1844
|
key: 0,
|
|
1800
1845
|
eager: "true",
|
|
1801
1846
|
class: "tab"
|
|
1802
1847
|
}, {
|
|
1803
|
-
default:
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
default:
|
|
1807
|
-
(
|
|
1808
|
-
|
|
1809
|
-
default:
|
|
1810
|
-
|
|
1848
|
+
default: g(() => [
|
|
1849
|
+
M("div", rt, [
|
|
1850
|
+
c(a, { class: "mt-3" }, {
|
|
1851
|
+
default: g(() => [
|
|
1852
|
+
(L(!0), R(G, null, $(l.localVariables, (A, Y) => (L(), R("div", { key: Y }, [
|
|
1853
|
+
c(p, { style: { width: "220px" } }, {
|
|
1854
|
+
default: g(() => [
|
|
1855
|
+
c(d, {
|
|
1811
1856
|
clearable: "",
|
|
1812
1857
|
type: "text",
|
|
1813
|
-
label:
|
|
1814
|
-
modelValue:
|
|
1815
|
-
"onUpdate:modelValue": (
|
|
1858
|
+
label: Y,
|
|
1859
|
+
modelValue: l.localVariables[Y],
|
|
1860
|
+
"onUpdate:modelValue": (be) => l.localVariables[Y] = be
|
|
1816
1861
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue"])
|
|
1817
1862
|
]),
|
|
1818
1863
|
_: 2
|
|
@@ -1825,96 +1870,131 @@ function at(e, t, n, o, s, i) {
|
|
|
1825
1870
|
]),
|
|
1826
1871
|
_: 1
|
|
1827
1872
|
})),
|
|
1828
|
-
n.existingPluginTxt === null ? (
|
|
1873
|
+
n.existingPluginTxt === null ? (L(), k(_, {
|
|
1829
1874
|
key: "1-new",
|
|
1830
1875
|
eager: "true",
|
|
1831
1876
|
class: "tab"
|
|
1832
1877
|
}, {
|
|
1833
|
-
default:
|
|
1834
|
-
|
|
1835
|
-
default:
|
|
1836
|
-
|
|
1837
|
-
default:
|
|
1838
|
-
|
|
1878
|
+
default: g(() => [
|
|
1879
|
+
c(a, { class: "pa-3" }, {
|
|
1880
|
+
default: g(() => [
|
|
1881
|
+
c(p, null, {
|
|
1882
|
+
default: g(() => t[9] || (t[9] = [
|
|
1883
|
+
S(" This can be edited before installation. ")
|
|
1839
1884
|
])),
|
|
1840
1885
|
_: 1
|
|
1841
1886
|
})
|
|
1842
1887
|
]),
|
|
1843
1888
|
_: 1
|
|
1844
1889
|
}),
|
|
1845
|
-
|
|
1890
|
+
M("pre", {
|
|
1891
|
+
ref: "editor",
|
|
1892
|
+
class: "editor",
|
|
1893
|
+
onContextmenu: t[1] || (t[1] = H((...A) => i.showContextMenu && i.showContextMenu(...A), ["prevent"]))
|
|
1894
|
+
}, null, 544),
|
|
1895
|
+
c(E, {
|
|
1896
|
+
modelValue: l.contextMenu,
|
|
1897
|
+
"onUpdate:modelValue": t[2] || (t[2] = (A) => l.contextMenu = A),
|
|
1898
|
+
target: [l.menuX, l.menuY]
|
|
1899
|
+
}, {
|
|
1900
|
+
default: g(() => [
|
|
1901
|
+
c(b, null, {
|
|
1902
|
+
default: g(() => [
|
|
1903
|
+
c(C, { link: "" }, {
|
|
1904
|
+
default: g(() => [
|
|
1905
|
+
c(w, { onClick: e.openDocumentation }, {
|
|
1906
|
+
default: g(() => [
|
|
1907
|
+
S(N(e.docsKeyword) + " documentation ", 1)
|
|
1908
|
+
]),
|
|
1909
|
+
_: 1
|
|
1910
|
+
}, 8, ["onClick"])
|
|
1911
|
+
]),
|
|
1912
|
+
_: 1
|
|
1913
|
+
}),
|
|
1914
|
+
c(y),
|
|
1915
|
+
c(C, {
|
|
1916
|
+
title: "Toggle Vim mode",
|
|
1917
|
+
"prepend-icon": "extras:vim",
|
|
1918
|
+
onClick: i.toggleVimMode
|
|
1919
|
+
}, null, 8, ["onClick"])
|
|
1920
|
+
]),
|
|
1921
|
+
_: 1
|
|
1922
|
+
})
|
|
1923
|
+
]),
|
|
1924
|
+
_: 1
|
|
1925
|
+
}, 8, ["modelValue", "target"])
|
|
1846
1926
|
]),
|
|
1847
1927
|
_: 1
|
|
1848
|
-
})) : (
|
|
1928
|
+
})) : (L(), k(_, {
|
|
1849
1929
|
key: "1-existing",
|
|
1850
1930
|
eager: "true",
|
|
1851
1931
|
class: "tab"
|
|
1852
1932
|
}, {
|
|
1853
|
-
default:
|
|
1854
|
-
|
|
1855
|
-
default:
|
|
1856
|
-
|
|
1857
|
-
default:
|
|
1858
|
-
|
|
1933
|
+
default: g(() => [
|
|
1934
|
+
c(a, { class: "pa-3" }, {
|
|
1935
|
+
default: g(() => [
|
|
1936
|
+
c(p, null, {
|
|
1937
|
+
default: g(() => t[10] || (t[10] = [
|
|
1938
|
+
S(" Existing plugin.txt. This can be edited before installation. ")
|
|
1859
1939
|
])),
|
|
1860
1940
|
_: 1
|
|
1861
1941
|
}),
|
|
1862
|
-
|
|
1863
|
-
default:
|
|
1864
|
-
|
|
1942
|
+
c(p, { class: "ml-6" }, {
|
|
1943
|
+
default: g(() => t[11] || (t[11] = [
|
|
1944
|
+
S(" Uneditable plugin.txt from the new plugin. ")
|
|
1865
1945
|
])),
|
|
1866
1946
|
_: 1
|
|
1867
1947
|
})
|
|
1868
1948
|
]),
|
|
1869
1949
|
_: 1
|
|
1870
1950
|
}),
|
|
1871
|
-
|
|
1951
|
+
M("pre", at, null, 512)
|
|
1872
1952
|
]),
|
|
1873
1953
|
_: 1
|
|
1874
1954
|
}))
|
|
1875
1955
|
]),
|
|
1876
1956
|
_: 1
|
|
1877
1957
|
}, 8, ["modelValue"]),
|
|
1878
|
-
|
|
1879
|
-
default:
|
|
1880
|
-
n.existingPluginTxt !== null ? (
|
|
1881
|
-
|
|
1958
|
+
c(V, { class: "px-2 mt-2" }, {
|
|
1959
|
+
default: g(() => [
|
|
1960
|
+
n.existingPluginTxt !== null ? (L(), R("div", ft, [
|
|
1961
|
+
c(v, {
|
|
1882
1962
|
variant: "text",
|
|
1883
1963
|
onClick: i.nextDiff
|
|
1884
1964
|
}, {
|
|
1885
|
-
default:
|
|
1886
|
-
|
|
1965
|
+
default: g(() => t[12] || (t[12] = [
|
|
1966
|
+
S(" Next Diff ")
|
|
1887
1967
|
])),
|
|
1888
1968
|
_: 1
|
|
1889
1969
|
}, 8, ["onClick"]),
|
|
1890
|
-
|
|
1970
|
+
c(v, {
|
|
1891
1971
|
variant: "text",
|
|
1892
1972
|
onClick: i.previousDiff
|
|
1893
1973
|
}, {
|
|
1894
|
-
default:
|
|
1895
|
-
|
|
1974
|
+
default: g(() => t[13] || (t[13] = [
|
|
1975
|
+
S(" Previous Diff ")
|
|
1896
1976
|
])),
|
|
1897
1977
|
_: 1
|
|
1898
1978
|
}, 8, ["onClick"])
|
|
1899
|
-
])) :
|
|
1900
|
-
|
|
1901
|
-
|
|
1979
|
+
])) : j("", !0),
|
|
1980
|
+
c(T),
|
|
1981
|
+
c(v, {
|
|
1902
1982
|
variant: "outlined",
|
|
1903
|
-
onClick:
|
|
1983
|
+
onClick: H(i.close, ["prevent"]),
|
|
1904
1984
|
"data-test": "edit-cancel"
|
|
1905
1985
|
}, {
|
|
1906
|
-
default:
|
|
1907
|
-
|
|
1986
|
+
default: g(() => t[14] || (t[14] = [
|
|
1987
|
+
S(" Cancel ")
|
|
1908
1988
|
])),
|
|
1909
1989
|
_: 1
|
|
1910
1990
|
}, 8, ["onClick"]),
|
|
1911
|
-
|
|
1991
|
+
c(v, {
|
|
1912
1992
|
variant: "flat",
|
|
1913
1993
|
onClick: i.submit,
|
|
1914
1994
|
"data-test": "edit-submit"
|
|
1915
1995
|
}, {
|
|
1916
|
-
default:
|
|
1917
|
-
|
|
1996
|
+
default: g(() => t[15] || (t[15] = [
|
|
1997
|
+
S(" Install ")
|
|
1918
1998
|
])),
|
|
1919
1999
|
_: 1
|
|
1920
2000
|
}, 8, ["onClick"])
|
|
@@ -1932,13 +2012,13 @@ function at(e, t, n, o, s, i) {
|
|
|
1932
2012
|
_: 1
|
|
1933
2013
|
}, 8, ["modelValue"]);
|
|
1934
2014
|
}
|
|
1935
|
-
const
|
|
2015
|
+
const vt = /* @__PURE__ */ q(lt, [["render", dt], ["__scopeId", "data-v-0c2b3caa"]]);
|
|
1936
2016
|
export {
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
2017
|
+
_t as DownloadDialog,
|
|
2018
|
+
bt as EditDialog,
|
|
2019
|
+
wt as ModifiedPluginDialog,
|
|
2020
|
+
yt as OpenC3Admin,
|
|
2021
|
+
vt as PluginDialog,
|
|
2022
|
+
qe as TabsList
|
|
1943
2023
|
};
|
|
1944
2024
|
//# sourceMappingURL=admin.js.map
|