@openc3/vue-common 6.2.0 → 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-BbsN1dzF.js +106 -0
- package/dist/ArrayWidget-BbsN1dzF.js.map +1 -0
- package/dist/ArrayWidget-DkjHrXsu.cjs +3 -0
- package/dist/ArrayWidget-DkjHrXsu.cjs.map +1 -0
- package/dist/ArrayplotWidget-CCKEyYIx.js +199 -0
- package/dist/ArrayplotWidget-CCKEyYIx.js.map +1 -0
- package/dist/ArrayplotWidget-COeaK_Lz.cjs +2 -0
- package/dist/ArrayplotWidget-COeaK_Lz.cjs.map +1 -0
- package/dist/AstroStatus-CILMWL6F.cjs +2 -0
- package/dist/AstroStatus-CILMWL6F.cjs.map +1 -0
- package/dist/AstroStatus-CY9VkeTN.js +40 -0
- package/dist/AstroStatus-CY9VkeTN.js.map +1 -0
- package/dist/BarColumn-C6p07yWK.js +108 -0
- package/dist/BarColumn-C6p07yWK.js.map +1 -0
- package/dist/BarColumn-CJLW1nXy.cjs +2 -0
- package/dist/BarColumn-CJLW1nXy.cjs.map +1 -0
- package/dist/BlockWidget-BFVYgbd_.cjs +3 -0
- package/dist/BlockWidget-BFVYgbd_.cjs.map +1 -0
- package/dist/BlockWidget-DlCHbqZX.js +112 -0
- package/dist/BlockWidget-DlCHbqZX.js.map +1 -0
- package/dist/ButtonWidget-CtfJzCBR.js +166 -0
- package/dist/ButtonWidget-CtfJzCBR.js.map +1 -0
- package/dist/ButtonWidget-HN8UHsme.cjs +3 -0
- package/dist/ButtonWidget-HN8UHsme.cjs.map +1 -0
- package/dist/CanvasWidget-CHmkxxMO.cjs +2 -0
- package/dist/CanvasWidget-CHmkxxMO.cjs.map +1 -0
- package/dist/CanvasWidget-CqRlXc4r.js +39 -0
- package/dist/CanvasWidget-CqRlXc4r.js.map +1 -0
- package/dist/CanvasdotWidget--Xr_KsZs.js +19 -0
- package/dist/CanvasdotWidget--Xr_KsZs.js.map +1 -0
- package/dist/CanvasdotWidget-B4bUcKRc.cjs +2 -0
- package/dist/CanvasdotWidget-B4bUcKRc.cjs.map +1 -0
- package/dist/CanvasimageWidget-B5YozXoI.cjs +2 -0
- package/dist/CanvasimageWidget-B5YozXoI.cjs.map +1 -0
- package/dist/CanvasimageWidget-BPlj5QYK.js +58 -0
- package/dist/CanvasimageWidget-BPlj5QYK.js.map +1 -0
- package/dist/CanvasimagevalueWidget-DVFGLt8f.js +107 -0
- package/dist/CanvasimagevalueWidget-DVFGLt8f.js.map +1 -0
- package/dist/CanvasimagevalueWidget-Dx1HnbEw.cjs +2 -0
- package/dist/CanvasimagevalueWidget-Dx1HnbEw.cjs.map +1 -0
- package/dist/CanvaslabelWidget-CYNqmyP0.js +23 -0
- package/dist/CanvaslabelWidget-CYNqmyP0.js.map +1 -0
- package/dist/CanvaslabelWidget-DgadQD-D.cjs +2 -0
- package/dist/CanvaslabelWidget-DgadQD-D.cjs.map +1 -0
- package/dist/CanvaslabelvalueWidget-B7yIDmsn.js +42 -0
- package/dist/CanvaslabelvalueWidget-B7yIDmsn.js.map +1 -0
- package/dist/CanvaslabelvalueWidget-C3k5gx5c.cjs +2 -0
- package/dist/CanvaslabelvalueWidget-C3k5gx5c.cjs.map +1 -0
- package/dist/CanvaslineWidget-BICdxX0Q.js +28 -0
- package/dist/CanvaslineWidget-BICdxX0Q.js.map +1 -0
- package/dist/CanvaslineWidget-CYHkes0a.cjs +2 -0
- package/dist/CanvaslineWidget-CYHkes0a.cjs.map +1 -0
- package/dist/CanvaslinevalueWidget-5DzhZ22p.cjs +2 -0
- package/dist/CanvaslinevalueWidget-5DzhZ22p.cjs.map +1 -0
- package/dist/CanvaslinevalueWidget-Cq-Ddh0P.js +44 -0
- package/dist/CanvaslinevalueWidget-Cq-Ddh0P.js.map +1 -0
- package/dist/CheckbuttonWidget-B74AWeaW.js +37 -0
- package/dist/CheckbuttonWidget-B74AWeaW.js.map +1 -0
- package/dist/CheckbuttonWidget-BCzsXnIF.cjs +2 -0
- package/dist/CheckbuttonWidget-BCzsXnIF.cjs.map +1 -0
- package/dist/ComboboxWidget-CtyKbEWb.js +37 -0
- package/dist/ComboboxWidget-CtyKbEWb.js.map +1 -0
- package/dist/ComboboxWidget-DQgDyDAC.cjs +2 -0
- package/dist/ComboboxWidget-DQgDyDAC.cjs.map +1 -0
- package/dist/CriticalCmdDialog-BnxZlt7W.cjs +2 -0
- package/dist/CriticalCmdDialog-BnxZlt7W.cjs.map +1 -0
- package/dist/CriticalCmdDialog-DPIZOBeP.js +270 -0
- package/dist/CriticalCmdDialog-DPIZOBeP.js.map +1 -0
- 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-BB4cIuUS.cjs.map +1 -0
- package/dist/DateWidget-BEVSczU8.js +40 -0
- package/dist/DateWidget-BEVSczU8.js.map +1 -0
- package/dist/DetailsDialog-DmEC5BTs.js +767 -0
- package/dist/DetailsDialog-DmEC5BTs.js.map +1 -0
- package/dist/DetailsDialog-mvxMFmgV.cjs +2 -0
- package/dist/DetailsDialog-mvxMFmgV.cjs.map +1 -0
- package/dist/DynamicWidget-BWEVCUfd.cjs +2 -0
- package/dist/DynamicWidget-BWEVCUfd.cjs.map +1 -0
- package/dist/DynamicWidget-CfMtj7H8.js +35 -0
- package/dist/DynamicWidget-CfMtj7H8.js.map +1 -0
- 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-CdjCEAI7.cjs.map +1 -0
- package/dist/FormatvalueWidget-DN12xymS.js +44 -0
- package/dist/FormatvalueWidget-DN12xymS.js.map +1 -0
- package/dist/Graph-Bgo0cjl3.js +1988 -0
- 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-DurWDmpg.js +130 -0
- package/dist/GraphWidget-DurWDmpg.js.map +1 -0
- package/dist/GraphWidget-sid4Ws9H.cjs +2 -0
- package/dist/GraphWidget-sid4Ws9H.cjs.map +1 -0
- package/dist/HorizontalWidget-Cd_wl1b3.js +41 -0
- package/dist/HorizontalWidget-Cd_wl1b3.js.map +1 -0
- package/dist/HorizontalWidget-_6IR0cR8.cjs +2 -0
- package/dist/HorizontalWidget-_6IR0cR8.cjs.map +1 -0
- 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-CM-6WqCj.cjs.map +1 -0
- package/dist/HorizontallineWidget-CXFqHclf.js +16 -0
- package/dist/HorizontallineWidget-CXFqHclf.js.map +1 -0
- package/dist/IframeWidget-BPerHCCa.js +90 -0
- package/dist/IframeWidget-BPerHCCa.js.map +1 -0
- package/dist/IframeWidget-EhncMob0.cjs +2 -0
- package/dist/IframeWidget-EhncMob0.cjs.map +1 -0
- package/dist/ImageLoader-4N-7Gj61.js +36 -0
- package/dist/ImageLoader-4N-7Gj61.js.map +1 -0
- package/dist/ImageLoader-cRmBcpU9.cjs +2 -0
- package/dist/ImageLoader-cRmBcpU9.cjs.map +1 -0
- package/dist/ImageviewerWidget-Bv3CreXd.cjs +2 -0
- package/dist/ImageviewerWidget-Bv3CreXd.cjs.map +1 -0
- package/dist/ImageviewerWidget-Cw_H_HmZ.js +37 -0
- package/dist/ImageviewerWidget-Cw_H_HmZ.js.map +1 -0
- package/dist/InterfacesTab-B4glsR9Z.js +93 -0
- package/dist/InterfacesTab-B4glsR9Z.js.map +1 -0
- package/dist/InterfacesTab-Co1Kd6Fa.cjs +2 -0
- package/dist/InterfacesTab-Co1Kd6Fa.cjs.map +1 -0
- package/dist/LabelWidget-mMcf5S8K.cjs +2 -0
- package/dist/LabelWidget-mMcf5S8K.cjs.map +1 -0
- package/dist/LabelWidget-xrmcVeq8.js +48 -0
- package/dist/LabelWidget-xrmcVeq8.js.map +1 -0
- package/dist/LabelledWidget-BoYCuDaH.cjs +2 -0
- package/dist/LabelledWidget-BoYCuDaH.cjs.map +1 -0
- package/dist/LabelledWidget-D48QoyMk.js +42 -0
- package/dist/LabelledWidget-D48QoyMk.js.map +1 -0
- package/dist/LabelprogressbarWidget-C_950t6g.js +43 -0
- package/dist/LabelprogressbarWidget-C_950t6g.js.map +1 -0
- package/dist/LabelprogressbarWidget-DiucKsT2.cjs +2 -0
- package/dist/LabelprogressbarWidget-DiucKsT2.cjs.map +1 -0
- package/dist/LabelsparklineWidget-0KXQyPoU.js +44 -0
- package/dist/LabelsparklineWidget-0KXQyPoU.js.map +1 -0
- package/dist/LabelsparklineWidget-A3MTEhQc.cjs +2 -0
- package/dist/LabelsparklineWidget-A3MTEhQc.cjs.map +1 -0
- package/dist/LabelvalueWidget-CQ06wWDK.js +58 -0
- package/dist/LabelvalueWidget-CQ06wWDK.js.map +1 -0
- package/dist/LabelvalueWidget-DnKoz0-N.cjs +2 -0
- package/dist/LabelvalueWidget-DnKoz0-N.cjs.map +1 -0
- package/dist/LabelvaluedescWidget-Bo8zT01X.js +59 -0
- package/dist/LabelvaluedescWidget-Bo8zT01X.js.map +1 -0
- package/dist/LabelvaluedescWidget-I6ljK--Y.cjs +2 -0
- package/dist/LabelvaluedescWidget-I6ljK--Y.cjs.map +1 -0
- package/dist/LabelvaluelimitsbarWidget-BucTw8Yk.js +57 -0
- package/dist/LabelvaluelimitsbarWidget-BucTw8Yk.js.map +1 -0
- package/dist/LabelvaluelimitsbarWidget-Cb6i_Ixc.cjs +2 -0
- package/dist/LabelvaluelimitsbarWidget-Cb6i_Ixc.cjs.map +1 -0
- package/dist/LabelvaluelimitscolumnWidget-ClY5OxUC.cjs +2 -0
- package/dist/LabelvaluelimitscolumnWidget-ClY5OxUC.cjs.map +1 -0
- package/dist/LabelvaluelimitscolumnWidget-Dflb1hNd.js +47 -0
- package/dist/LabelvaluelimitscolumnWidget-Dflb1hNd.js.map +1 -0
- package/dist/LabelvaluerangebarWidget-9S5rVZaS.cjs +2 -0
- package/dist/LabelvaluerangebarWidget-9S5rVZaS.cjs.map +1 -0
- package/dist/LabelvaluerangebarWidget-D8cbfXFM.js +79 -0
- package/dist/LabelvaluerangebarWidget-D8cbfXFM.js.map +1 -0
- package/dist/Layout-DuCYyOw4.cjs +2 -0
- package/dist/Layout-DuCYyOw4.cjs.map +1 -0
- package/dist/Layout-Tf--nruw.js +14 -0
- package/dist/Layout-Tf--nruw.js.map +1 -0
- 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-B9lAB2RD.js +69 -0
- package/dist/LimitsbarWidget-B9lAB2RD.js.map +1 -0
- package/dist/LimitsbarWidget-CVCLFIhG.cjs +2 -0
- package/dist/LimitsbarWidget-CVCLFIhG.cjs.map +1 -0
- package/dist/LimitscolorWidget-DORhDxRo.cjs +2 -0
- package/dist/LimitscolorWidget-DORhDxRo.cjs.map +1 -0
- package/dist/LimitscolorWidget-c6Qa6su7.js +63 -0
- package/dist/LimitscolorWidget-c6Qa6su7.js.map +1 -0
- package/dist/LimitscolumnWidget-C9Uyg7Fh.cjs +2 -0
- package/dist/LimitscolumnWidget-C9Uyg7Fh.cjs.map +1 -0
- package/dist/LimitscolumnWidget-CcLs_443.js +66 -0
- package/dist/LimitscolumnWidget-CcLs_443.js.map +1 -0
- package/dist/LinegraphWidget-BSVYLFo1.js +39 -0
- package/dist/LinegraphWidget-BSVYLFo1.js.map +1 -0
- package/dist/LinegraphWidget-Bf8DIwEn.cjs +2 -0
- package/dist/LinegraphWidget-Bf8DIwEn.cjs.map +1 -0
- package/dist/MatrixbycolumnsWidget-DXFpZTre.js +56 -0
- package/dist/MatrixbycolumnsWidget-DXFpZTre.js.map +1 -0
- package/dist/MatrixbycolumnsWidget-DpdFzNeP.cjs +2 -0
- package/dist/MatrixbycolumnsWidget-DpdFzNeP.cjs.map +1 -0
- package/dist/MicroservicesTab-B5n-mN8G.cjs +2 -0
- package/dist/MicroservicesTab-B5n-mN8G.cjs.map +1 -0
- package/dist/MicroservicesTab-mCdS0v39.js +264 -0
- 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-DXoL9VPw.cjs +2 -0
- package/dist/OutputDialog-DXoL9VPw.cjs.map +1 -0
- package/dist/OutputDialog-zVPZiZay.js +242 -0
- package/dist/OutputDialog-zVPZiZay.js.map +1 -0
- package/dist/PackagesTab-CvT2JyMA.cjs +2 -0
- package/dist/PackagesTab-CvT2JyMA.cjs.map +1 -0
- package/dist/PackagesTab-SWcXumpK.js +332 -0
- package/dist/PackagesTab-SWcXumpK.js.map +1 -0
- package/dist/PluginsTab-B64OvayB.js +599 -0
- package/dist/PluginsTab-B64OvayB.js.map +1 -0
- package/dist/PluginsTab-CfpwWsqv.cjs +6 -0
- package/dist/PluginsTab-CfpwWsqv.cjs.map +1 -0
- package/dist/ProgressbarWidget-fGWa6ipm.cjs +2 -0
- package/dist/ProgressbarWidget-fGWa6ipm.cjs.map +1 -0
- package/dist/ProgressbarWidget-iYGw8-Dc.js +46 -0
- package/dist/ProgressbarWidget-iYGw8-Dc.js.map +1 -0
- package/dist/RadiobuttonWidget-ZEPJbOp_.cjs +2 -0
- package/dist/RadiobuttonWidget-ZEPJbOp_.cjs.map +1 -0
- package/dist/RadiobuttonWidget-ytmoVZ3u.js +34 -0
- package/dist/RadiobuttonWidget-ytmoVZ3u.js.map +1 -0
- package/dist/RadiogroupWidget-CusMBhKH.js +48 -0
- package/dist/RadiogroupWidget-CusMBhKH.js.map +1 -0
- package/dist/RadiogroupWidget-EK4rEGUC.cjs +2 -0
- package/dist/RadiogroupWidget-EK4rEGUC.cjs.map +1 -0
- package/dist/RangebarWidget-D_zGTtCa.js +67 -0
- package/dist/RangebarWidget-D_zGTtCa.js.map +1 -0
- package/dist/RangebarWidget-DwIs-L5k.cjs +2 -0
- package/dist/RangebarWidget-DwIs-L5k.cjs.map +1 -0
- package/dist/RedisTab-67UcKoPf.cjs +2 -0
- package/dist/RedisTab-67UcKoPf.cjs.map +1 -0
- package/dist/RedisTab-CyPo6ADN.js +135 -0
- package/dist/RedisTab-CyPo6ADN.js.map +1 -0
- package/dist/RollupWidget-DC3OIP6G.cjs +2 -0
- package/dist/RollupWidget-DC3OIP6G.cjs.map +1 -0
- package/dist/RollupWidget-Dolsixyt.js +83 -0
- package/dist/RollupWidget-Dolsixyt.js.map +1 -0
- package/dist/RoutersTab-BBPlFi_z.cjs +2 -0
- package/dist/RoutersTab-BBPlFi_z.cjs.map +1 -0
- package/dist/RoutersTab-Cs2dFVNA.js +95 -0
- package/dist/RoutersTab-Cs2dFVNA.js.map +1 -0
- package/dist/ScriptChooser-EV65rbWx.js +199 -0
- package/dist/ScriptChooser-EV65rbWx.js.map +1 -0
- package/dist/ScriptChooser-vyZwngrz.cjs +2 -0
- package/dist/ScriptChooser-vyZwngrz.cjs.map +1 -0
- package/dist/ScrollwindowWidget-BWeqSUPc.cjs +2 -0
- package/dist/ScrollwindowWidget-BWeqSUPc.cjs.map +1 -0
- package/dist/ScrollwindowWidget-DV2nZuNi.js +45 -0
- package/dist/ScrollwindowWidget-DV2nZuNi.js.map +1 -0
- package/dist/SecretsTab-0IFqUxNJ.cjs +2 -0
- package/dist/SecretsTab-0IFqUxNJ.cjs.map +1 -0
- package/dist/SecretsTab-DVyyyGlG.js +202 -0
- package/dist/SecretsTab-DVyyyGlG.js.map +1 -0
- package/dist/SettingsTab-B1LvOLG2.cjs +3 -0
- package/dist/SettingsTab-B1LvOLG2.cjs.map +1 -0
- package/dist/SettingsTab-g29K6FyC.js +1445 -0
- package/dist/SettingsTab-g29K6FyC.js.map +1 -0
- package/dist/SignalWidget-RvRwpE8T.cjs +2 -0
- package/dist/SignalWidget-RvRwpE8T.cjs.map +1 -0
- package/dist/SignalWidget-d9-6h85k.js +66 -0
- package/dist/SignalWidget-d9-6h85k.js.map +1 -0
- package/dist/SimpleTextDialog-Cpbt7Q-8.cjs +2 -0
- package/dist/SimpleTextDialog-Cpbt7Q-8.cjs.map +1 -0
- package/dist/SimpleTextDialog-pwN8oRy1.js +107 -0
- package/dist/SimpleTextDialog-pwN8oRy1.js.map +1 -0
- package/dist/SpacerWidget-7_8bpLCb.cjs +2 -0
- package/dist/SpacerWidget-7_8bpLCb.cjs.map +1 -0
- package/dist/SpacerWidget-BH0p2OLi.js +19 -0
- package/dist/SpacerWidget-BH0p2OLi.js.map +1 -0
- package/dist/SparklineWidget-60jVlbHA.cjs +2 -0
- package/dist/SparklineWidget-60jVlbHA.cjs.map +1 -0
- package/dist/SparklineWidget-coxi9r2g.js +48 -0
- package/dist/SparklineWidget-coxi9r2g.js.map +1 -0
- package/dist/TabbookWidget-B1XKplGH.js +66 -0
- package/dist/TabbookWidget-B1XKplGH.js.map +1 -0
- package/dist/TabbookWidget-D1CVT9IK.cjs +2 -0
- package/dist/TabbookWidget-D1CVT9IK.cjs.map +1 -0
- package/dist/TargetsTab-BkBkXn9A.js +129 -0
- package/dist/TargetsTab-BkBkXn9A.js.map +1 -0
- package/dist/TargetsTab-C-m26Eqq.cjs +2 -0
- package/dist/TargetsTab-C-m26Eqq.cjs.map +1 -0
- package/dist/TextBoxDialog-DOJ5d2RM.js +110 -0
- package/dist/TextBoxDialog-DOJ5d2RM.js.map +1 -0
- package/dist/TextBoxDialog-DfMXg_5C.cjs +2 -0
- package/dist/TextBoxDialog-DfMXg_5C.cjs.map +1 -0
- package/dist/TextboxWidget-BDG4NxRw.cjs +2 -0
- package/dist/TextboxWidget-BDG4NxRw.cjs.map +1 -0
- package/dist/TextboxWidget-C-_M2M4l.js +93 -0
- package/dist/TextboxWidget-C-_M2M4l.js.map +1 -0
- package/dist/TextfieldWidget-BGJv9Lox.cjs +2 -0
- package/dist/TextfieldWidget-BGJv9Lox.cjs.map +1 -0
- package/dist/TextfieldWidget-C08N4JE8.js +37 -0
- package/dist/TextfieldWidget-C08N4JE8.js.map +1 -0
- package/dist/TimeWidget-CGCOIouj.cjs +2 -0
- package/dist/TimeWidget-CGCOIouj.cjs.map +1 -0
- package/dist/TimeWidget-DtwdEcFg.js +40 -0
- package/dist/TimeWidget-DtwdEcFg.js.map +1 -0
- package/dist/TitleWidget-BljFH9RB.cjs +2 -0
- package/dist/TitleWidget-BljFH9RB.cjs.map +1 -0
- package/dist/TitleWidget-CT-aLcNb.js +26 -0
- package/dist/TitleWidget-CT-aLcNb.js.map +1 -0
- package/dist/ToolsTab-NveeVXz2.js +1521 -0
- package/dist/ToolsTab-NveeVXz2.js.map +1 -0
- package/dist/ToolsTab-RMTst_Sy.cjs +7 -0
- package/dist/ToolsTab-RMTst_Sy.cjs.map +1 -0
- package/dist/TopBar-CnJNNJlV.js +278 -0
- 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-BvfgoNB1.js +94 -0
- package/dist/UpgradeToEnterpriseDialog-BvfgoNB1.js.map +1 -0
- package/dist/UpgradeToEnterpriseDialog-sUipOVpB.cjs +2 -0
- package/dist/UpgradeToEnterpriseDialog-sUipOVpB.cjs.map +1 -0
- package/dist/VWidget-2N2cOosI.cjs +2 -0
- package/dist/VWidget-2N2cOosI.cjs.map +1 -0
- package/dist/VWidget-DQqb7NVW.js +323 -0
- package/dist/VWidget-DQqb7NVW.js.map +1 -0
- package/dist/ValueWidget-C6RanBj3.js +116 -0
- package/dist/ValueWidget-C6RanBj3.js.map +1 -0
- package/dist/ValueWidget-Cu7hgKja.cjs +2 -0
- package/dist/ValueWidget-Cu7hgKja.cjs.map +1 -0
- package/dist/ValuelimitsbarWidget-B3bvjfxc.js +41 -0
- package/dist/ValuelimitsbarWidget-B3bvjfxc.js.map +1 -0
- package/dist/ValuelimitsbarWidget-C0HROxrb.cjs +2 -0
- package/dist/ValuelimitsbarWidget-C0HROxrb.cjs.map +1 -0
- package/dist/ValuelimitscolumnWidget-CWvLfg8u.cjs +2 -0
- package/dist/ValuelimitscolumnWidget-CWvLfg8u.cjs.map +1 -0
- package/dist/ValuelimitscolumnWidget-QvhI6EcE.js +40 -0
- package/dist/ValuelimitscolumnWidget-QvhI6EcE.js.map +1 -0
- package/dist/ValuerangebarWidget-Dt3K9BnC.js +65 -0
- package/dist/ValuerangebarWidget-Dt3K9BnC.js.map +1 -0
- package/dist/ValuerangebarWidget-DyN78cQl.cjs +2 -0
- package/dist/ValuerangebarWidget-DyN78cQl.cjs.map +1 -0
- package/dist/VerticalWidget-BIIViZgI.js +40 -0
- package/dist/VerticalWidget-BIIViZgI.js.map +1 -0
- package/dist/VerticalWidget-CFTOu4H8.cjs +2 -0
- package/dist/VerticalWidget-CFTOu4H8.cjs.map +1 -0
- 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-ChoIB2dd.cjs.map +1 -0
- package/dist/Widget-oyqWpFXJ.js +197 -0
- package/dist/Widget-oyqWpFXJ.js.map +1 -0
- 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/addMonths-BtG7uZLJ.js +19 -0
- package/dist/addMonths-BtG7uZLJ.js.map +1 -0
- package/dist/addMonths-n1tnl3ab.cjs +2 -0
- package/dist/addMonths-n1tnl3ab.cjs.map +1 -0
- package/dist/components.cjs +4 -0
- package/dist/components.cjs.map +1 -0
- package/dist/components.js +1379 -0
- package/dist/components.js.map +1 -0
- package/dist/fileIcon-BduOQcTc.cjs +2 -0
- package/dist/fileIcon-BduOQcTc.cjs.map +1 -0
- package/dist/fileIcon-DqRHb1_Z.js +22 -0
- package/dist/fileIcon-DqRHb1_Z.js.map +1 -0
- package/dist/format-B22VpiOS.cjs +2 -0
- package/dist/format-B22VpiOS.cjs.map +1 -0
- package/dist/format-CVeawcIv.js +1295 -0
- package/dist/format-CVeawcIv.js.map +1 -0
- package/dist/getDefaultOptions-Batab9o8.cjs +2 -0
- package/dist/getDefaultOptions-Batab9o8.cjs.map +1 -0
- package/dist/getDefaultOptions-BhSDk-Jo.js +8 -0
- package/dist/getDefaultOptions-BhSDk-Jo.js.map +1 -0
- package/dist/icons/status-dark.png +0 -0
- package/dist/icons/status-dark.xcf +0 -0
- package/dist/icons/status-light.png +0 -0
- package/dist/icons.cjs +2 -0
- package/dist/icons.cjs.map +1 -0
- package/dist/icons.js +164 -0
- package/dist/icons.js.map +1 -0
- package/dist/index-BX05anye.cjs +7 -0
- package/dist/index-BX05anye.cjs.map +1 -0
- package/dist/index-DwP8ryNM.js +1694 -0
- package/dist/index-DwP8ryNM.js.map +1 -0
- package/dist/parse-DnkEsW-3.js +1603 -0
- package/dist/parse-DnkEsW-3.js.map +1 -0
- package/dist/parse-DwfgQboe.cjs +2 -0
- package/dist/parse-DwfgQboe.cjs.map +1 -0
- package/dist/plugins.cjs +9 -0
- package/dist/plugins.cjs.map +1 -0
- package/dist/plugins.js +776 -0
- package/dist/plugins.js.map +1 -0
- package/dist/timeFilters-8SaYvcH0.cjs +2 -0
- package/dist/timeFilters-8SaYvcH0.cjs.map +1 -0
- package/dist/timeFilters-CRYpYDdf.js +622 -0
- package/dist/timeFilters-CRYpYDdf.js.map +1 -0
- package/dist/tools/admin.cjs +13 -0
- package/dist/tools/admin.cjs.map +1 -0
- package/dist/tools/admin.js +2024 -0
- package/dist/tools/admin.js.map +1 -0
- package/dist/tools/base.cjs +2 -0
- package/dist/tools/base.cjs.map +1 -0
- package/dist/tools/base.js +1677 -0
- package/dist/tools/base.js.map +1 -0
- package/dist/tools/calendar.cjs +2 -0
- package/dist/tools/calendar.cjs.map +1 -0
- package/dist/tools/calendar.js +12 -0
- package/dist/tools/calendar.js.map +1 -0
- 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/util.cjs +2 -0
- package/dist/util.cjs.map +1 -0
- package/dist/util.js +9 -0
- package/dist/util.js.map +1 -0
- package/dist/vue-common.css +1 -0
- package/dist/widgets.cjs +2 -0
- package/dist/widgets.cjs.map +1 -0
- package/dist/widgets.js +132 -0
- package/dist/widgets.js.map +1 -0
- package/package.json +20 -15
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeFilters-CRYpYDdf.js","sources":["../../../node_modules/date-fns/addMinutes.js","../../../node_modules/date-fns/parseISO.js","../../../node_modules/date-fns/subMinutes.js","../../../node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js","../../../node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js","../../../node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js","../../../node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js","../../../node_modules/date-fns-tz/dist/esm/format/formatters/index.js","../../../node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js","../../../node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js","../../../node_modules/date-fns-tz/dist/esm/toDate/index.js","../../../node_modules/date-fns-tz/dist/esm/format/index.js","../../../node_modules/date-fns-tz/dist/esm/toZonedTime/index.js","../../../node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.js","../src/util/timeFilters.js"],"sourcesContent":["import { millisecondsInMinute } from \"./constants.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMinutes} function options.\n */\n\n/**\n * @name addMinutes\n * @category Minute Helpers\n * @summary Add the specified number of minutes to the given date.\n *\n * @description\n * Add the specified number of minutes to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of minutes to be added.\n * @param options - An object with options\n *\n * @returns The new date with the minutes added\n *\n * @example\n * // Add 30 minutes to 10 July 2014 12:00:00:\n * const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30)\n * //=> Thu Jul 10 2014 12:30:00\n */\nexport function addMinutes(date, amount, options) {\n const _date = toDate(date, options?.in);\n _date.setTime(_date.getTime() + amount * millisecondsInMinute);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addMinutes;\n","import {\n millisecondsInHour,\n millisecondsInMinute,\n} from \"./constants.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link parseISO} function options.\n */\n\n/**\n * @name parseISO\n * @category Common Helpers\n * @summary Parse ISO string\n *\n * @description\n * Parse the given string in ISO 8601 format and return an instance of Date.\n *\n * Function accepts complete ISO 8601 formats as well as partial implementations.\n * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601\n *\n * If the argument isn't a string, the function cannot parse the string or\n * the values are invalid, it returns Invalid Date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n * @param options - An object with options\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Convert string '2014-02-11T11:30:30' to date:\n * const result = parseISO('2014-02-11T11:30:30')\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert string '+02014101' to date,\n * // if the additional number of digits in the extended year format is 1:\n * const result = parseISO('+02014101', { additionalDigits: 1 })\n * //=> Fri Apr 11 2014 00:00:00\n */\nexport function parseISO(argument, options) {\n const invalidDate = () => constructFrom(options?.in, NaN);\n\n const additionalDigits = options?.additionalDigits ?? 2;\n const dateStrings = splitDateString(argument);\n\n let date;\n if (dateStrings.date) {\n const parseYearResult = parseYear(dateStrings.date, additionalDigits);\n date = parseDate(parseYearResult.restDateString, parseYearResult.year);\n }\n\n if (!date || isNaN(+date)) return invalidDate();\n\n const timestamp = +date;\n let time = 0;\n let offset;\n\n if (dateStrings.time) {\n time = parseTime(dateStrings.time);\n if (isNaN(time)) return invalidDate();\n }\n\n if (dateStrings.timezone) {\n offset = parseTimezone(dateStrings.timezone);\n if (isNaN(offset)) return invalidDate();\n } else {\n const tmpDate = new Date(timestamp + time);\n const result = toDate(0, options?.in);\n result.setFullYear(\n tmpDate.getUTCFullYear(),\n tmpDate.getUTCMonth(),\n tmpDate.getUTCDate(),\n );\n result.setHours(\n tmpDate.getUTCHours(),\n tmpDate.getUTCMinutes(),\n tmpDate.getUTCSeconds(),\n tmpDate.getUTCMilliseconds(),\n );\n return result;\n }\n\n return toDate(timestamp + time + offset, options?.in);\n}\n\nconst patterns = {\n dateTimeDelimiter: /[T ]/,\n timeZoneDelimiter: /[Z ]/i,\n timezone: /([Z+-].*)$/,\n};\n\nconst dateRegex =\n /^-?(?:(\\d{3})|(\\d{2})(?:-?(\\d{2}))?|W(\\d{2})(?:-?(\\d{1}))?|)$/;\nconst timeRegex =\n /^(\\d{2}(?:[.,]\\d*)?)(?::?(\\d{2}(?:[.,]\\d*)?))?(?::?(\\d{2}(?:[.,]\\d*)?))?$/;\nconst timezoneRegex = /^([+-])(\\d{2})(?::?(\\d{2}))?$/;\n\nfunction splitDateString(dateString) {\n const dateStrings = {};\n const array = dateString.split(patterns.dateTimeDelimiter);\n let timeString;\n\n // The regex match should only return at maximum two array elements.\n // [date], [time], or [date, time].\n if (array.length > 2) {\n return dateStrings;\n }\n\n if (/:/.test(array[0])) {\n timeString = array[0];\n } else {\n dateStrings.date = array[0];\n timeString = array[1];\n if (patterns.timeZoneDelimiter.test(dateStrings.date)) {\n dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0];\n timeString = dateString.substr(\n dateStrings.date.length,\n dateString.length,\n );\n }\n }\n\n if (timeString) {\n const token = patterns.timezone.exec(timeString);\n if (token) {\n dateStrings.time = timeString.replace(token[1], \"\");\n dateStrings.timezone = token[1];\n } else {\n dateStrings.time = timeString;\n }\n }\n\n return dateStrings;\n}\n\nfunction parseYear(dateString, additionalDigits) {\n const regex = new RegExp(\n \"^(?:(\\\\d{4}|[+-]\\\\d{\" +\n (4 + additionalDigits) +\n \"})|(\\\\d{2}|[+-]\\\\d{\" +\n (2 + additionalDigits) +\n \"})$)\",\n );\n\n const captures = dateString.match(regex);\n // Invalid ISO-formatted year\n if (!captures) return { year: NaN, restDateString: \"\" };\n\n const year = captures[1] ? parseInt(captures[1]) : null;\n const century = captures[2] ? parseInt(captures[2]) : null;\n\n // either year or century is null, not both\n return {\n year: century === null ? year : century * 100,\n restDateString: dateString.slice((captures[1] || captures[2]).length),\n };\n}\n\nfunction parseDate(dateString, year) {\n // Invalid ISO-formatted year\n if (year === null) return new Date(NaN);\n\n const captures = dateString.match(dateRegex);\n // Invalid ISO-formatted string\n if (!captures) return new Date(NaN);\n\n const isWeekDate = !!captures[4];\n const dayOfYear = parseDateUnit(captures[1]);\n const month = parseDateUnit(captures[2]) - 1;\n const day = parseDateUnit(captures[3]);\n const week = parseDateUnit(captures[4]);\n const dayOfWeek = parseDateUnit(captures[5]) - 1;\n\n if (isWeekDate) {\n if (!validateWeekDate(year, week, dayOfWeek)) {\n return new Date(NaN);\n }\n return dayOfISOWeekYear(year, week, dayOfWeek);\n } else {\n const date = new Date(0);\n if (\n !validateDate(year, month, day) ||\n !validateDayOfYearDate(year, dayOfYear)\n ) {\n return new Date(NaN);\n }\n date.setUTCFullYear(year, month, Math.max(dayOfYear, day));\n return date;\n }\n}\n\nfunction parseDateUnit(value) {\n return value ? parseInt(value) : 1;\n}\n\nfunction parseTime(timeString) {\n const captures = timeString.match(timeRegex);\n if (!captures) return NaN; // Invalid ISO-formatted time\n\n const hours = parseTimeUnit(captures[1]);\n const minutes = parseTimeUnit(captures[2]);\n const seconds = parseTimeUnit(captures[3]);\n\n if (!validateTime(hours, minutes, seconds)) {\n return NaN;\n }\n\n return (\n hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1000\n );\n}\n\nfunction parseTimeUnit(value) {\n return (value && parseFloat(value.replace(\",\", \".\"))) || 0;\n}\n\nfunction parseTimezone(timezoneString) {\n if (timezoneString === \"Z\") return 0;\n\n const captures = timezoneString.match(timezoneRegex);\n if (!captures) return 0;\n\n const sign = captures[1] === \"+\" ? -1 : 1;\n const hours = parseInt(captures[2]);\n const minutes = (captures[3] && parseInt(captures[3])) || 0;\n\n if (!validateTimezone(hours, minutes)) {\n return NaN;\n }\n\n return sign * (hours * millisecondsInHour + minutes * millisecondsInMinute);\n}\n\nfunction dayOfISOWeekYear(isoWeekYear, week, day) {\n const date = new Date(0);\n date.setUTCFullYear(isoWeekYear, 0, 4);\n const fourthOfJanuaryDay = date.getUTCDay() || 7;\n const diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}\n\n// Validation functions\n\n// February is null to handle the leap year (using ||)\nconst daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\nfunction isLeapYearIndex(year) {\n return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);\n}\n\nfunction validateDate(year, month, date) {\n return (\n month >= 0 &&\n month <= 11 &&\n date >= 1 &&\n date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28))\n );\n}\n\nfunction validateDayOfYearDate(year, dayOfYear) {\n return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365);\n}\n\nfunction validateWeekDate(_year, week, day) {\n return week >= 1 && week <= 53 && day >= 0 && day <= 6;\n}\n\nfunction validateTime(hours, minutes, seconds) {\n if (hours === 24) {\n return minutes === 0 && seconds === 0;\n }\n\n return (\n seconds >= 0 &&\n seconds < 60 &&\n minutes >= 0 &&\n minutes < 60 &&\n hours >= 0 &&\n hours < 25\n );\n}\n\nfunction validateTimezone(_hours, minutes) {\n return minutes >= 0 && minutes <= 59;\n}\n\n// Fallback for modularized imports:\nexport default parseISO;\n","import { addMinutes } from \"./addMinutes.js\";\n\n/**\n * The {@link subMinutes} function options.\n */\n\n/**\n * @name subMinutes\n * @category Minute Helpers\n * @summary Subtract the specified number of minutes from the given date.\n *\n * @description\n * Subtract the specified number of minutes from the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of minutes to be subtracted.\n * @param options - An object with options\n *\n * @returns The new date with the minutes subtracted\n *\n * @example\n * // Subtract 30 minutes from 10 July 2014 12:00:00:\n * const result = subMinutes(new Date(2014, 6, 10, 12, 0), 30)\n * //=> Thu Jul 10 2014 11:30:00\n */\nexport function subMinutes(date, amount, options) {\n return addMinutes(date, -amount, options);\n}\n\n// Fallback for modularized imports:\nexport default subMinutes;\n","import { getDefaultOptions } from 'date-fns';\n/**\n * Returns the formatted time zone name of the provided `timeZone` or the current\n * system time zone if omitted, accounting for DST according to the UTC value of\n * the date.\n */\nexport function tzIntlTimeZoneName(length, date, options) {\n const defaultOptions = getDefaultOptions();\n const dtf = getDTF(length, options.timeZone, options.locale ?? defaultOptions.locale);\n return 'formatToParts' in dtf ? partsTimeZone(dtf, date) : hackyTimeZone(dtf, date);\n}\nfunction partsTimeZone(dtf, date) {\n const formatted = dtf.formatToParts(date);\n for (let i = formatted.length - 1; i >= 0; --i) {\n if (formatted[i].type === 'timeZoneName') {\n return formatted[i].value;\n }\n }\n return undefined;\n}\nfunction hackyTimeZone(dtf, date) {\n const formatted = dtf.format(date).replace(/\\u200E/g, '');\n const tzNameMatch = / [\\w-+ ]+$/.exec(formatted);\n return tzNameMatch ? tzNameMatch[0].substr(1) : '';\n}\n// If a locale has been provided `en-US` is used as a fallback in case it is an\n// invalid locale, otherwise the locale is left undefined to use the system locale.\nfunction getDTF(length, timeZone, locale) {\n return new Intl.DateTimeFormat(locale ? [locale.code, 'en-US'] : undefined, {\n timeZone: timeZone,\n timeZoneName: length,\n });\n}\n","/**\n * Returns the [year, month, day, hour, minute, seconds] tokens of the provided\n * `date` as it will be rendered in the `timeZone`.\n */\nexport function tzTokenizeDate(date, timeZone) {\n const dtf = getDateTimeFormat(timeZone);\n return 'formatToParts' in dtf ? partsOffset(dtf, date) : hackyOffset(dtf, date);\n}\nconst typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n hour: 3,\n minute: 4,\n second: 5,\n};\nfunction partsOffset(dtf, date) {\n try {\n const formatted = dtf.formatToParts(date);\n const filled = [];\n for (let i = 0; i < formatted.length; i++) {\n const pos = typeToPos[formatted[i].type];\n if (pos !== undefined) {\n filled[pos] = parseInt(formatted[i].value, 10);\n }\n }\n return filled;\n }\n catch (error) {\n if (error instanceof RangeError) {\n return [NaN];\n }\n throw error;\n }\n}\nfunction hackyOffset(dtf, date) {\n const formatted = dtf.format(date);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const parsed = /(\\d+)\\/(\\d+)\\/(\\d+),? (\\d+):(\\d+):(\\d+)/.exec(formatted);\n // const [, fMonth, fDay, fYear, fHour, fMinute, fSecond] = parsed\n // return [fYear, fMonth, fDay, fHour, fMinute, fSecond]\n return [\n parseInt(parsed[3], 10),\n parseInt(parsed[1], 10),\n parseInt(parsed[2], 10),\n parseInt(parsed[4], 10),\n parseInt(parsed[5], 10),\n parseInt(parsed[6], 10),\n ];\n}\n// Get a cached Intl.DateTimeFormat instance for the IANA `timeZone`. This can be used\n// to get deterministic local date/time output according to the `en-US` locale which\n// can be used to extract local time parts as necessary.\nconst dtfCache = {};\n// New browsers use `hourCycle`, IE and Chrome <73 does not support it and uses `hour12`\nconst testDateFormatted = new Intl.DateTimeFormat('en-US', {\n hourCycle: 'h23',\n timeZone: 'America/New_York',\n year: 'numeric',\n month: '2-digit',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n}).format(new Date('2014-06-25T04:00:00.123Z'));\nconst hourCycleSupported = testDateFormatted === '06/25/2014, 00:00:00' ||\n testDateFormatted === '06/25/2014 00:00:00';\nfunction getDateTimeFormat(timeZone) {\n if (!dtfCache[timeZone]) {\n dtfCache[timeZone] = hourCycleSupported\n ? new Intl.DateTimeFormat('en-US', {\n hourCycle: 'h23',\n timeZone: timeZone,\n year: 'numeric',\n month: 'numeric',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n })\n : new Intl.DateTimeFormat('en-US', {\n hour12: false,\n timeZone: timeZone,\n year: 'numeric',\n month: 'numeric',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n });\n }\n return dtfCache[timeZone];\n}\n","/**\n * Use instead of `new Date(Date.UTC(...))` to support years below 100 which doesn't work\n * otherwise due to the nature of the\n * [`Date` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years.\n *\n * For `Date.UTC(...)`, use `newDateUTC(...).getTime()`.\n */\nexport function newDateUTC(fullYear, month, day, hour, minute, second, millisecond) {\n const utcDate = new Date(0);\n utcDate.setUTCFullYear(fullYear, month, day);\n utcDate.setUTCHours(hour, minute, second, millisecond);\n return utcDate;\n}\n","import { tzTokenizeDate } from '../tzTokenizeDate/index.js';\nimport { newDateUTC } from '../newDateUTC/index.js';\nconst MILLISECONDS_IN_HOUR = 3600000;\nconst MILLISECONDS_IN_MINUTE = 60000;\nconst patterns = {\n timezone: /([Z+-].*)$/,\n timezoneZ: /^(Z)$/,\n timezoneHH: /^([+-]\\d{2})$/,\n timezoneHHMM: /^([+-])(\\d{2}):?(\\d{2})$/,\n};\n// Parse constious time zone offset formats to an offset in milliseconds\nexport function tzParseTimezone(timezoneString, date, isUtcDate) {\n // Empty string\n if (!timezoneString) {\n return 0;\n }\n // Z\n let token = patterns.timezoneZ.exec(timezoneString);\n if (token) {\n return 0;\n }\n let hours;\n let absoluteOffset;\n // ±hh\n token = patterns.timezoneHH.exec(timezoneString);\n if (token) {\n hours = parseInt(token[1], 10);\n if (!validateTimezone(hours)) {\n return NaN;\n }\n return -(hours * MILLISECONDS_IN_HOUR);\n }\n // ±hh:mm or ±hhmm\n token = patterns.timezoneHHMM.exec(timezoneString);\n if (token) {\n hours = parseInt(token[2], 10);\n const minutes = parseInt(token[3], 10);\n if (!validateTimezone(hours, minutes)) {\n return NaN;\n }\n absoluteOffset = Math.abs(hours) * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE;\n return token[1] === '+' ? -absoluteOffset : absoluteOffset;\n }\n // IANA time zone\n if (isValidTimezoneIANAString(timezoneString)) {\n date = new Date(date || Date.now());\n const utcDate = isUtcDate ? date : toUtcDate(date);\n const offset = calcOffset(utcDate, timezoneString);\n const fixedOffset = isUtcDate ? offset : fixOffset(date, offset, timezoneString);\n return -fixedOffset;\n }\n return NaN;\n}\nfunction toUtcDate(date) {\n return newDateUTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());\n}\nfunction calcOffset(date, timezoneString) {\n const tokens = tzTokenizeDate(date, timezoneString);\n // ms dropped because it's not provided by tzTokenizeDate\n const asUTC = newDateUTC(tokens[0], tokens[1] - 1, tokens[2], tokens[3] % 24, tokens[4], tokens[5], 0).getTime();\n let asTS = date.getTime();\n const over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return asUTC - asTS;\n}\nfunction fixOffset(date, offset, timezoneString) {\n const localTS = date.getTime();\n // Our UTC time is just a guess because our offset is just a guess\n let utcGuess = localTS - offset;\n // Test whether the zone matches the offset for this ts\n const o2 = calcOffset(new Date(utcGuess), timezoneString);\n // If so, offset didn't change, and we're done\n if (offset === o2) {\n return offset;\n }\n // If not, change the ts by the difference in the offset\n utcGuess -= o2 - offset;\n // If that gives us the local time we want, we're done\n const o3 = calcOffset(new Date(utcGuess), timezoneString);\n if (o2 === o3) {\n return o2;\n }\n // If it's different, we're in a hole time. The offset has changed, but we don't adjust the time\n return Math.max(o2, o3);\n}\nfunction validateTimezone(hours, minutes) {\n return -23 <= hours && hours <= 23 && (minutes == null || (0 <= minutes && minutes <= 59));\n}\nconst validIANATimezoneCache = {};\nfunction isValidTimezoneIANAString(timeZoneString) {\n if (validIANATimezoneCache[timeZoneString])\n return true;\n try {\n new Intl.DateTimeFormat(undefined, { timeZone: timeZoneString });\n validIANATimezoneCache[timeZoneString] = true;\n return true;\n }\n catch (error) {\n return false;\n }\n}\n","import { tzIntlTimeZoneName } from '../../_lib/tzIntlTimeZoneName/index.js';\nimport { tzParseTimezone } from '../../_lib/tzParseTimezone/index.js';\nconst MILLISECONDS_IN_MINUTE = 60 * 1000;\nexport const formatters = {\n // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n X: function (date, token, options) {\n const timezoneOffset = getTimeZoneOffset(options.timeZone, date);\n if (timezoneOffset === 0) {\n return 'Z';\n }\n switch (token) {\n // Hours and optional minutes\n case 'X':\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n // Hours, minutes and optional seconds without `:` delimeter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XX`\n case 'XXXX':\n case 'XX': // Hours and minutes without `:` delimeter\n return formatTimezone(timezoneOffset);\n // Hours, minutes and optional seconds with `:` delimeter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XXX`\n case 'XXXXX':\n case 'XXX': // Hours and minutes with `:` delimeter\n default:\n return formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n x: function (date, token, options) {\n const timezoneOffset = getTimeZoneOffset(options.timeZone, date);\n switch (token) {\n // Hours and optional minutes\n case 'x':\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n // Hours, minutes and optional seconds without `:` delimeter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xx`\n case 'xxxx':\n case 'xx': // Hours and minutes without `:` delimeter\n return formatTimezone(timezoneOffset);\n // Hours, minutes and optional seconds with `:` delimeter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xxx`\n case 'xxxxx':\n case 'xxx': // Hours and minutes with `:` delimeter\n default:\n return formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (GMT)\n O: function (date, token, options) {\n const timezoneOffset = getTimeZoneOffset(options.timeZone, date);\n switch (token) {\n // Short\n case 'O':\n case 'OO':\n case 'OOO':\n return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\n // Long\n case 'OOOO':\n default:\n return 'GMT' + formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (specific non-location)\n z: function (date, token, options) {\n switch (token) {\n // Short\n case 'z':\n case 'zz':\n case 'zzz':\n return tzIntlTimeZoneName('short', date, options);\n // Long\n case 'zzzz':\n default:\n return tzIntlTimeZoneName('long', date, options);\n }\n },\n};\nfunction getTimeZoneOffset(timeZone, originalDate) {\n const timeZoneOffset = timeZone\n ? tzParseTimezone(timeZone, originalDate, true) / MILLISECONDS_IN_MINUTE\n : originalDate?.getTimezoneOffset() ?? 0;\n if (Number.isNaN(timeZoneOffset)) {\n throw new RangeError('Invalid time zone specified: ' + timeZone);\n }\n return timeZoneOffset;\n}\nfunction addLeadingZeros(number, targetLength) {\n const sign = number < 0 ? '-' : '';\n let output = Math.abs(number).toString();\n while (output.length < targetLength) {\n output = '0' + output;\n }\n return sign + output;\n}\nfunction formatTimezone(offset, delimiter = '') {\n const sign = offset > 0 ? '-' : '+';\n const absOffset = Math.abs(offset);\n const hours = addLeadingZeros(Math.floor(absOffset / 60), 2);\n const minutes = addLeadingZeros(Math.floor(absOffset % 60), 2);\n return sign + hours + delimiter + minutes;\n}\nfunction formatTimezoneWithOptionalMinutes(offset, delimiter) {\n if (offset % 60 === 0) {\n const sign = offset > 0 ? '-' : '+';\n return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n }\n return formatTimezone(offset, delimiter);\n}\nfunction formatTimezoneShort(offset, delimiter = '') {\n const sign = offset > 0 ? '-' : '+';\n const absOffset = Math.abs(offset);\n const hours = Math.floor(absOffset / 60);\n const minutes = absOffset % 60;\n if (minutes === 0) {\n return sign + String(hours);\n }\n return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\n","/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport function getTimezoneOffsetInMilliseconds(date) {\n const utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));\n utcDate.setUTCFullYear(date.getFullYear());\n return +date - +utcDate;\n}\n","/** Regex to identify the presence of a time zone specifier in a date string */\nexport const tzPattern = /(Z|[+-]\\d{2}(?::?\\d{2})?| UTC| [a-zA-Z]+\\/[a-zA-Z_]+(?:\\/[a-zA-Z_]+)?)$/;\n","import { getTimezoneOffsetInMilliseconds } from '../_lib/getTimezoneOffsetInMilliseconds/index.js';\nimport { tzParseTimezone } from '../_lib/tzParseTimezone/index.js';\nimport { tzPattern } from '../_lib/tzPattern/index.js';\nconst MILLISECONDS_IN_HOUR = 3600000;\nconst MILLISECONDS_IN_MINUTE = 60000;\nconst DEFAULT_ADDITIONAL_DIGITS = 2;\nconst patterns = {\n dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,\n datePattern: /^([0-9W+-]+)(.*)/,\n plainTime: /:/,\n // year tokens\n YY: /^(\\d{2})$/,\n YYY: [\n /^([+-]\\d{2})$/, // 0 additional digits\n /^([+-]\\d{3})$/, // 1 additional digit\n /^([+-]\\d{4})$/, // 2 additional digits\n ],\n YYYY: /^(\\d{4})/,\n YYYYY: [\n /^([+-]\\d{4})/, // 0 additional digits\n /^([+-]\\d{5})/, // 1 additional digit\n /^([+-]\\d{6})/, // 2 additional digits\n ],\n // date tokens\n MM: /^-(\\d{2})$/,\n DDD: /^-?(\\d{3})$/,\n MMDD: /^-?(\\d{2})-?(\\d{2})$/,\n Www: /^-?W(\\d{2})$/,\n WwwD: /^-?W(\\d{2})-?(\\d{1})$/,\n HH: /^(\\d{2}([.,]\\d*)?)$/,\n HHMM: /^(\\d{2}):?(\\d{2}([.,]\\d*)?)$/,\n HHMMSS: /^(\\d{2}):?(\\d{2}):?(\\d{2}([.,]\\d*)?)$/,\n // time zone tokens (to identify the presence of a tz)\n timeZone: tzPattern,\n};\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If an argument is a string, the function tries to parse it.\n * Function accepts complete ISO 8601 formats as well as partial implementations.\n * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601\n * If the function cannot parse the string or the values are invalid, it returns Invalid Date.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n * All *date-fns* functions will throw `RangeError` if `options.additionalDigits` is not 0, 1, 2 or undefined.\n *\n * @param argument the value to convert\n * @param options the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format\n * @param {string} [options.timeZone=''] - used to specify the IANA time zone offset of a date String.\n *\n * @returns the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Convert string '2014-02-11T11:30:30' to date:\n * const result = toDate('2014-02-11T11:30:30')\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert string '+02014101' to date,\n * // if the additional number of digits in the extended year format is 1:\n * const result = toDate('+02014101', {additionalDigits: 1})\n * //=> Fri Apr 11 2014 00:00:00\n */\nexport function toDate(argument, options = {}) {\n if (arguments.length < 1) {\n throw new TypeError('1 argument required, but only ' + arguments.length + ' present');\n }\n if (argument === null) {\n return new Date(NaN);\n }\n const additionalDigits = options.additionalDigits == null ? DEFAULT_ADDITIONAL_DIGITS : Number(options.additionalDigits);\n if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {\n throw new RangeError('additionalDigits must be 0, 1 or 2');\n }\n // Clone the date\n if (argument instanceof Date ||\n (typeof argument === 'object' && Object.prototype.toString.call(argument) === '[object Date]')) {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n }\n else if (typeof argument === 'number' ||\n Object.prototype.toString.call(argument) === '[object Number]') {\n return new Date(argument);\n }\n else if (!(Object.prototype.toString.call(argument) === '[object String]')) {\n return new Date(NaN);\n }\n const dateStrings = splitDateString(argument);\n const { year, restDateString } = parseYear(dateStrings.date, additionalDigits);\n const date = parseDate(restDateString, year);\n if (date === null || isNaN(date.getTime())) {\n return new Date(NaN);\n }\n if (date) {\n const timestamp = date.getTime();\n let time = 0;\n let offset;\n if (dateStrings.time) {\n time = parseTime(dateStrings.time);\n if (time === null || isNaN(time)) {\n return new Date(NaN);\n }\n }\n if (dateStrings.timeZone || options.timeZone) {\n offset = tzParseTimezone(dateStrings.timeZone || options.timeZone, new Date(timestamp + time));\n if (isNaN(offset)) {\n return new Date(NaN);\n }\n }\n else {\n // get offset accurate to hour in time zones that change offset\n offset = getTimezoneOffsetInMilliseconds(new Date(timestamp + time));\n offset = getTimezoneOffsetInMilliseconds(new Date(timestamp + time + offset));\n }\n return new Date(timestamp + time + offset);\n }\n else {\n return new Date(NaN);\n }\n}\nfunction splitDateString(dateString) {\n const dateStrings = {};\n let parts = patterns.dateTimePattern.exec(dateString);\n let timeString;\n if (!parts) {\n parts = patterns.datePattern.exec(dateString);\n if (parts) {\n dateStrings.date = parts[1];\n timeString = parts[2];\n }\n else {\n dateStrings.date = null;\n timeString = dateString;\n }\n }\n else {\n dateStrings.date = parts[1];\n timeString = parts[3];\n }\n if (timeString) {\n const token = patterns.timeZone.exec(timeString);\n if (token) {\n dateStrings.time = timeString.replace(token[1], '');\n dateStrings.timeZone = token[1].trim();\n }\n else {\n dateStrings.time = timeString;\n }\n }\n return dateStrings;\n}\nfunction parseYear(dateString, additionalDigits) {\n if (dateString) {\n const patternYYY = patterns.YYY[additionalDigits];\n const patternYYYYY = patterns.YYYYY[additionalDigits];\n // YYYY or ±YYYYY\n let token = patterns.YYYY.exec(dateString) || patternYYYYY.exec(dateString);\n if (token) {\n const yearString = token[1];\n return {\n year: parseInt(yearString, 10),\n restDateString: dateString.slice(yearString.length),\n };\n }\n // YY or ±YYY\n token = patterns.YY.exec(dateString) || patternYYY.exec(dateString);\n if (token) {\n const centuryString = token[1];\n return {\n year: parseInt(centuryString, 10) * 100,\n restDateString: dateString.slice(centuryString.length),\n };\n }\n }\n // Invalid ISO-formatted year\n return {\n year: null,\n };\n}\nfunction parseDate(dateString, year) {\n // Invalid ISO-formatted year\n if (year === null) {\n return null;\n }\n let date;\n let month;\n let week;\n // YYYY\n if (!dateString || !dateString.length) {\n date = new Date(0);\n date.setUTCFullYear(year);\n return date;\n }\n // YYYY-MM\n let token = patterns.MM.exec(dateString);\n if (token) {\n date = new Date(0);\n month = parseInt(token[1], 10) - 1;\n if (!validateDate(year, month)) {\n return new Date(NaN);\n }\n date.setUTCFullYear(year, month);\n return date;\n }\n // YYYY-DDD or YYYYDDD\n token = patterns.DDD.exec(dateString);\n if (token) {\n date = new Date(0);\n const dayOfYear = parseInt(token[1], 10);\n if (!validateDayOfYearDate(year, dayOfYear)) {\n return new Date(NaN);\n }\n date.setUTCFullYear(year, 0, dayOfYear);\n return date;\n }\n // yyyy-MM-dd or YYYYMMDD\n token = patterns.MMDD.exec(dateString);\n if (token) {\n date = new Date(0);\n month = parseInt(token[1], 10) - 1;\n const day = parseInt(token[2], 10);\n if (!validateDate(year, month, day)) {\n return new Date(NaN);\n }\n date.setUTCFullYear(year, month, day);\n return date;\n }\n // YYYY-Www or YYYYWww\n token = patterns.Www.exec(dateString);\n if (token) {\n week = parseInt(token[1], 10) - 1;\n if (!validateWeekDate(week)) {\n return new Date(NaN);\n }\n return dayOfISOWeekYear(year, week);\n }\n // YYYY-Www-D or YYYYWwwD\n token = patterns.WwwD.exec(dateString);\n if (token) {\n week = parseInt(token[1], 10) - 1;\n const dayOfWeek = parseInt(token[2], 10) - 1;\n if (!validateWeekDate(week, dayOfWeek)) {\n return new Date(NaN);\n }\n return dayOfISOWeekYear(year, week, dayOfWeek);\n }\n // Invalid ISO-formatted date\n return null;\n}\nfunction parseTime(timeString) {\n let hours;\n let minutes;\n // hh\n let token = patterns.HH.exec(timeString);\n if (token) {\n hours = parseFloat(token[1].replace(',', '.'));\n if (!validateTime(hours)) {\n return NaN;\n }\n return (hours % 24) * MILLISECONDS_IN_HOUR;\n }\n // hh:mm or hhmm\n token = patterns.HHMM.exec(timeString);\n if (token) {\n hours = parseInt(token[1], 10);\n minutes = parseFloat(token[2].replace(',', '.'));\n if (!validateTime(hours, minutes)) {\n return NaN;\n }\n return (hours % 24) * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE;\n }\n // hh:mm:ss or hhmmss\n token = patterns.HHMMSS.exec(timeString);\n if (token) {\n hours = parseInt(token[1], 10);\n minutes = parseInt(token[2], 10);\n const seconds = parseFloat(token[3].replace(',', '.'));\n if (!validateTime(hours, minutes, seconds)) {\n return NaN;\n }\n return (hours % 24) * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * 1000;\n }\n // Invalid ISO-formatted time\n return null;\n}\nfunction dayOfISOWeekYear(isoWeekYear, week, day) {\n week = week || 0;\n day = day || 0;\n const date = new Date(0);\n date.setUTCFullYear(isoWeekYear, 0, 4);\n const fourthOfJanuaryDay = date.getUTCDay() || 7;\n const diff = week * 7 + day + 1 - fourthOfJanuaryDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}\n// Validation functions\nconst DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nconst DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nfunction isLeapYearIndex(year) {\n return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);\n}\nfunction validateDate(year, month, date) {\n if (month < 0 || month > 11) {\n return false;\n }\n if (date != null) {\n if (date < 1) {\n return false;\n }\n const isLeapYear = isLeapYearIndex(year);\n if (isLeapYear && date > DAYS_IN_MONTH_LEAP_YEAR[month]) {\n return false;\n }\n if (!isLeapYear && date > DAYS_IN_MONTH[month]) {\n return false;\n }\n }\n return true;\n}\nfunction validateDayOfYearDate(year, dayOfYear) {\n if (dayOfYear < 1) {\n return false;\n }\n const isLeapYear = isLeapYearIndex(year);\n if (isLeapYear && dayOfYear > 366) {\n return false;\n }\n if (!isLeapYear && dayOfYear > 365) {\n return false;\n }\n return true;\n}\nfunction validateWeekDate(week, day) {\n if (week < 0 || week > 52) {\n return false;\n }\n if (day != null && (day < 0 || day > 6)) {\n return false;\n }\n return true;\n}\nfunction validateTime(hours, minutes, seconds) {\n if (hours < 0 || hours >= 25) {\n return false;\n }\n if (minutes != null && (minutes < 0 || minutes >= 60)) {\n return false;\n }\n if (seconds != null && (seconds < 0 || seconds >= 60)) {\n return false;\n }\n return true;\n}\n","import { format as dateFnsFormat } from 'date-fns/format';\nimport { formatters } from './formatters/index.js';\nimport { toDate } from '../toDate/index.js';\nconst tzFormattingTokensRegExp = /([xXOz]+)|''|'(''|[^'])+('|$)/g;\n/**\n * @name format\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may consty by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://git.io/fxCyr\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 8 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 8 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Su | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Su | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Su | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Su | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | AM, PM | a..aaa | AM, PM | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bbb | AM, PM, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 1, 2, ..., 11, 0 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 0001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | PDT, EST, CEST | 6 |\n * | | zzzz | Pacific Daylight Time | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 05/29/1453 | 7 |\n * | | PP | May 29, 1453 | 7 |\n * | | PPP | May 29th, 1453 | 7 |\n * | | PPPP | Sunday, May 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 05/29/1453, 12:00 AM | 7 |\n * | | PPpp | May 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | May 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Sunday, May 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}\n * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).\n *\n * 6. Specific non-location timezones are created using the Intl browser API. The output is determined by the\n * preferred standard of the current locale (en-US by default) which may not always give the expected result.\n * For this reason it is recommended to supply a `locale` in the format options when formatting a time zone name.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. These tokens are often confused with others. See: https://git.io/fxCyr\n *\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole\n * library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The second argument is now required for the sake of explicitness.\n *\n * ```javascript\n * // Before v2.0.0\n * format(new Date(2016, 0, 1))\n *\n * // v2.0.0 onward\n * format(new Date(2016, 0, 1), \"yyyy-MM-dd'T'HH:mm:ss.SSSxxx\")\n * ```\n *\n * - New format string API for `format` function\n * which is based on [Unicode Technical Standard\n * #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table). See [this\n * post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details.\n *\n * - Characters are now escaped using single quote symbols (`'`) instead of square brackets.\n *\n * @param date the original date\n * @param formatStr the string of tokens\n * @param options the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link\n * https://date-fns.org/docs/toDate}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See\n * [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {Boolean} [options.awareOfUnicodeTokens=false] - if true, allows usage of Unicode tokens causes confusion:\n * - Some of the day of year tokens (`D`, `DD`) that are confused with the day of month tokens (`d`, `dd`).\n * - Some of the local week-numbering year tokens (`YY`, `YYYY`) that are confused with the calendar year tokens\n * (`yy`, `yyyy`). See: https://git.io/fxCyr\n * @param {String} [options.timeZone=''] - used to specify the IANA time zone offset of a date String.\n * @param {Date|Number} [options.originalDate] - can be used to pass the original unmodified date to `format` to\n * improve correctness of the replaced timezone token close to the DST threshold.\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n * @throws {RangeError} `options.locale` must contain `localize` property\n * @throws {RangeError} `options.locale` must contain `formatLong` property\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n * @throws {RangeError} `options.awareOfUnicodeTokens` must be set to `true` to use `XX` token; see:\n * https://git.io/fxCyr\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options = {}) {\n formatStr = String(formatStr);\n const matches = formatStr.match(tzFormattingTokensRegExp);\n if (matches) {\n const d = toDate(options.originalDate || date, options);\n // Work through each match and replace the tz token in the format string with the quoted\n // formatted time zone so the remaining tokens can be filled in by date-fns#format.\n formatStr = matches.reduce(function (result, token) {\n if (token[0] === \"'\") {\n return result; // This is a quoted portion, matched only to ensure we don't match inside it\n }\n const pos = result.indexOf(token);\n const precededByQuotedSection = result[pos - 1] === \"'\";\n const replaced = result.replace(token, \"'\" + formatters[token[0]](d, token, options) + \"'\");\n // If the replacement results in two adjoining quoted strings, the back to back quotes\n // are removed, so it doesn't look like an escaped quote.\n return precededByQuotedSection\n ? replaced.substring(0, pos - 1) + replaced.substring(pos + 1)\n : replaced;\n }, formatStr);\n }\n return dateFnsFormat(date, formatStr, options);\n}\n","import { tzParseTimezone } from '../_lib/tzParseTimezone/index.js';\nimport { toDate } from '../toDate/index.js';\n/**\n * @name toZonedTime\n * @category Time Zone Helpers\n * @summary Get a date/time representing local time in a given time zone from the UTC date\n *\n * @description\n * Returns a date instance with values representing the local time in the time zone\n * specified of the UTC time from the date provided. In other words, when the new date\n * is formatted it will show the equivalent hours in the target time zone regardless\n * of the current system time zone.\n *\n * @param date the date with the relevant UTC time\n * @param timeZone the time zone to get local time for, can be an offset or IANA time zone\n * @param options the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n *\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // In June 10am UTC is 6am in New York (-04:00)\n * const result = toZonedTime('2014-06-25T10:00:00.000Z', 'America/New_York')\n * //=> Jun 25 2014 06:00:00\n */\nexport function toZonedTime(date, timeZone, options) {\n date = toDate(date, options);\n const offsetMilliseconds = tzParseTimezone(timeZone, date, true);\n const d = new Date(date.getTime() - offsetMilliseconds);\n const resultDate = new Date(0);\n resultDate.setFullYear(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate());\n resultDate.setHours(d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), d.getUTCMilliseconds());\n return resultDate;\n}\n","import { format } from '../format/index.js';\nimport { toZonedTime } from '../toZonedTime/index.js';\n/**\n * @name formatInTimeZone\n * @category Time Zone Helpers\n * @summary Gets the offset in milliseconds between the time zone and Universal Coordinated Time (UTC)\n *\n * @param date the date representing the local time / real UTC time\n * @param timeZone the time zone this date should be formatted for; can be an offset or IANA time zone\n * @param formatStr the string of tokens\n * @param options the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link\n * https://date-fns.org/docs/toDate}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See\n * [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {Boolean} [options.awareOfUnicodeTokens=false] - if true, allows usage of Unicode tokens causes confusion:\n * - Some of the day of year tokens (`D`, `DD`) that are confused with the day of month tokens (`d`, `dd`).\n * - Some of the local week-numbering year tokens (`YY`, `YYYY`) that are confused with the calendar year tokens\n * (`yy`, `yyyy`). See: https://git.io/fxCyr\n * @param {String} [options.timeZone=''] - used to specify the IANA time zone offset of a date String.\n */\nexport function formatInTimeZone(date, timeZone, formatStr, options) {\n options = {\n ...options,\n timeZone,\n originalDate: date,\n };\n return format(toZonedTime(date, timeZone, { timeZone: options.timeZone }), formatStr, options);\n}\n","/*\n# Copyright 2024 OpenC3, Inc.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport { format, parseISO, subMinutes } from 'date-fns'\nimport { formatInTimeZone } from 'date-fns-tz'\n\nconst dateFormat = 'yyyy-MM-dd'\nconst timeFormat = 'HH:mm:ss.SSS'\nconst timeFormatHMS = 'HH:mm:ss'\nconst dateTimeFormat = `${dateFormat} ${timeFormat}`\nexport default {\n methods: {\n parseDateTime(dateString, timeZone) {\n if (dateString.includes(' ')) {\n dateString = dateString.replace(' ', 'T')\n }\n if (timeZone && timeZone === 'UTC') {\n dateString += 'Z'\n }\n return Date.parse(dateString)\n },\n // Convert a UTC stamp into a local time\n formatUtcToLocal(date, timeZone) {\n // Default to local time if the timezone isn't set\n if (!timeZone || timeZone === 'local') {\n // subtrack off the timezone offset to get it back to local time\n return format(\n subMinutes(date, date.getTimezoneOffset()),\n dateTimeFormat,\n )\n } else {\n return format(date, dateTimeFormat)\n }\n },\n formatDateTime(date, timeZone) {\n // Default to local time if the timezone isn't set\n if (!timeZone || timeZone === 'local') {\n return format(date, dateTimeFormat)\n } else {\n return formatInTimeZone(date, timeZone, dateTimeFormat)\n }\n },\n formatDate: function (date, timeZone) {\n // Default to local time if the timezone isn't set\n if (!timeZone || timeZone === 'local') {\n return format(date, dateFormat)\n } else {\n return formatInTimeZone(date, this.timeZone, dateFormat)\n }\n },\n formatTime: function (date, timeZone, formatString = timeFormat) {\n // Default to local time if the timezone isn't set\n if (!timeZone || timeZone === 'local') {\n return format(date, formatString)\n } else {\n return formatInTimeZone(date, this.timeZone, formatString)\n }\n },\n formatTimeHMS: function (date, timeZone) {\n return this.formatTime(date, timeZone, timeFormatHMS)\n },\n formatTimestamp(timestamp, timeZone) {\n return this.formatDateTime(parseISO(timestamp), timeZone)\n },\n formatSeconds(secs, timeZone) {\n return this.formatDateTime(new Date(secs * 1000), timeZone)\n },\n formatNanoseconds(nanoSecs, timeZone) {\n return this.formatDateTime(\n new Date(parseInt(nanoSecs) / 1000000),\n timeZone,\n )\n },\n },\n}\n"],"names":["addMinutes","date","amount","options","_date","toDate","millisecondsInMinute","parseISO","argument","invalidDate","constructFrom","dateStrings","splitDateString","parseYearResult","parseYear","parseDate","timestamp","time","offset","parseTime","parseTimezone","tmpDate","result","patterns","dateRegex","timeRegex","timezoneRegex","dateString","array","timeString","token","additionalDigits","regex","captures","year","century","isWeekDate","dayOfYear","parseDateUnit","month","day","week","dayOfWeek","validateWeekDate","dayOfISOWeekYear","validateDate","validateDayOfYearDate","value","hours","parseTimeUnit","minutes","seconds","validateTime","millisecondsInHour","timezoneString","sign","validateTimezone","isoWeekYear","fourthOfJanuaryDay","diff","daysInMonths","isLeapYearIndex","_year","_hours","subMinutes","tzIntlTimeZoneName","length","defaultOptions","getDefaultOptions","dtf","getDTF","partsTimeZone","hackyTimeZone","formatted","i","tzNameMatch","timeZone","locale","tzTokenizeDate","getDateTimeFormat","partsOffset","hackyOffset","typeToPos","filled","pos","error","parsed","dtfCache","testDateFormatted","hourCycleSupported","newDateUTC","fullYear","hour","minute","second","millisecond","utcDate","MILLISECONDS_IN_HOUR","MILLISECONDS_IN_MINUTE","tzParseTimezone","isUtcDate","absoluteOffset","isValidTimezoneIANAString","toUtcDate","calcOffset","fixOffset","tokens","asUTC","asTS","over","utcGuess","o2","o3","validIANATimezoneCache","timeZoneString","formatters","timezoneOffset","getTimeZoneOffset","formatTimezoneWithOptionalMinutes","formatTimezone","formatTimezoneShort","originalDate","timeZoneOffset","addLeadingZeros","number","targetLength","output","delimiter","absOffset","getTimezoneOffsetInMilliseconds","tzPattern","DEFAULT_ADDITIONAL_DIGITS","restDateString","parts","patternYYY","patternYYYYY","yearString","centuryString","DAYS_IN_MONTH","DAYS_IN_MONTH_LEAP_YEAR","isLeapYear","tzFormattingTokensRegExp","format","formatStr","matches","d","precededByQuotedSection","replaced","dateFnsFormat","toZonedTime","offsetMilliseconds","resultDate","formatInTimeZone","dateFormat","timeFormat","timeFormatHMS","dateTimeFormat","TimeFilters","formatString","secs","nanoSecs"],"mappings":";;AA6BO,SAASA,EAAWC,GAAMC,GAAQC,GAAS;AAChD,QAAMC,IAAQC,EAAOJ,GAAME,KAAA,gBAAAA,EAAS,EAAE;AACtC,SAAAC,EAAM,QAAQA,EAAM,QAAO,IAAKF,IAASI,CAAoB,GACtDF;A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AACH;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("../index-BX05anye.cjs"),n=require("vue"),I=require("../CustomIcon-Bop2mEnu.cjs"),E=require("../WidgetComponents-utpQ592X.cjs"),T=require("../TopBar-Cnmb6DyC.cjs");require("single-spa");const ce={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const e=/\w+.gem/;return this.response.tree.filter(t=>e.exec(t.path)).map(t=>({name:t.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${t.path}`}))},getResponse:function(){this.disableSearch=!0,ae.axios.get(this.url).then(e=>{this.response=e.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(e){const t=document.createElement("a");t.href=e.url,t.setAttribute("download",e.name),t.click(),t.remove()}}},de={class:"pa-3"},fe={class:"px-2"},he={key:0,class:"mt-4"},ue={key:1,class:"mt-4"},ge={key:0},pe={key:1};function me(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-icon"),u=n.resolveComponent("v-btn"),f=n.resolveComponent("v-col"),g=n.resolveComponent("v-list-item-title"),p=n.resolveComponent("v-progress-circular"),_=n.resolveComponent("v-tooltip"),x=n.resolveComponent("v-list-item"),b=n.resolveComponent("v-divider"),m=n.resolveComponent("v-card-text"),v=n.resolveComponent("v-card"),C=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(C,{modelValue:o.show,"onUpdate:modelValue":t[0]||(t[0]=w=>o.show=w),width:"600"},{default:n.withCtx(()=>[n.createVNode(v,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[1]||(t[1]=n.createElementVNode("span",null," Download Gems ",-1)),n.createVNode(s)]),_:1}),n.createVNode(m,null,{default:n.withCtx(()=>[n.createElementVNode("div",de,[n.createVNode(c,{class:"my-2"},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode(" Select a download option ")])),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(f,null,{default:n.withCtx(()=>[n.createElementVNode("div",fe,[n.createVNode(u,{onClick:o.searchGithub,block:"","data-test":"searchGithub",color:"primary",disabled:l.disableSearch},{default:n.withCtx(()=>[t[4]||(t[4]=n.createTextVNode(" Github ")),n.createVNode(d,{end:"",theme:"dark"},{default:n.withCtx(()=>t[3]||(t[3]=[n.createTextVNode(" mdi-github ")])),_:1})]),_:1},8,["onClick","disabled"])])]),_:1})]),_:1}),n.createVNode(c,{class:"mt-5"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Community Gems ")])),_:1}),o.listData.length<1?(n.openBlock(),n.createElementBlock("div",he,[n.createVNode(c,{class:"mx-2"},{default:n.withCtx(()=>t[6]||(t[6]=[n.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(n.openBlock(),n.createElementBlock("div",ue,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.listData,(w,V)=>(n.openBlock(),n.createElementBlock("div",{key:V},[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(w.name),1)]),_:2},1024),n.createVNode(x,{icon:""},{default:n.withCtx(()=>[l.activeDownload?(n.openBlock(),n.createElementBlock("div",ge,[n.createVNode(p,{indeterminate:"",color:"primary"})])):(n.openBlock(),n.createElementBlock("div",pe,[n.createVNode(_,{location:"top"},{activator:n.withCtx(({props:k})=>[n.createVNode(d,n.mergeProps({ref_for:!0},k,{onClick:S=>o.downloadGem(w),disabled:l.activeDownload}),{default:n.withCtx(()=>t[7]||(t[7]=[n.createTextVNode(" mdi-cloud-download ")])),_:2},1040,["onClick","disabled"])]),default:n.withCtx(()=>[t[8]||(t[8]=n.createElementVNode("span",null,"Download Gem",-1))]),_:2},1024)]))]),_:2},1024)]),_:2},1024),V<o.listData.length-1?(n.openBlock(),n.createBlock(b,{key:V})):n.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const _e=I._export_sfc(ce,[["render",me]]),be={props:{content:{type:String,required:!0},type:String,name:String,modelValue:Boolean,readonly:Boolean},data(){return{editor:null,contextMenu:!1,menuX:0,menuY:0}},mounted(){const e=this.buildPluginMode();this.editor=E.aceExports.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(),T.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},title:function(){return`${this.type}: ${this.name}`},error:function(){return this.editor&&this.editor.getValue()===""&&!this.file?"Input can not be blank.":null}},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){const e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`),t.click()},buildPluginMode(){let e=E.aceExports.require("ace/lib/oop"),t=E.aceExports.require("ace/mode/json_highlight_rules").JsonHighlightRules,i=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,r=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,l=E.aceExports.require("ace/mode/folding/ruby").FoldMode,o=function(){this.HighlightRules=t,this.$outdent=new i,this.$behaviour=new r,this.foldingRules=new l,this.indentKeywords=this.foldingRules.indentKeywords},s=E.aceExports.require("ace/mode/ruby").Mode;return e.inherits(o,s),(function(){this.$id="ace/mode/openc3"}).call(o.prototype),o},showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;let t=this.editor.getCursorPosition(),i=this.editor.session.getTokenAt(t.row,t.column);if(i){let r=i.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},toggleVimMode:function(){T.AceEditorUtils.toggleVimMode(this.editor)}}},we=["textContent"],Ce={class:"mx-2"},xe={class:"pa-3"},ve={key:0},ye=["textContent"];function Ve(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-icon"),c=n.resolveComponent("v-tooltip"),d=n.resolveComponent("v-toolbar"),u=n.resolveComponent("v-row"),f=n.resolveComponent("v-btn"),g=n.resolveComponent("v-col"),p=n.resolveComponent("v-file-input"),_=n.resolveComponent("v-list-item"),x=n.resolveComponent("v-list"),b=n.resolveComponent("v-menu"),m=n.resolveComponent("v-card-text"),v=n.resolveComponent("v-card"),C=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(C,{persistent:!i.readonly,modelValue:o.show,"onUpdate:modelValue":t[4]||(t[4]=w=>o.show=w),width:"80vw"},{default:n.withCtx(()=>[n.createVNode(v,null,{default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:t[3]||(t[3]=n.withModifiers((...w)=>o.submit&&o.submit(...w),["prevent"]))},[n.createVNode(d,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),n.createElementVNode("span",{textContent:n.toDisplayString(o.title)},null,8,we),n.createVNode(s),n.createElementVNode("div",Ce,[n.createVNode(c,{location:"top"},{activator:n.withCtx(({props:w})=>[n.createElementVNode("div",n.normalizeProps(n.guardReactiveProps(w)),[n.createVNode(a,{"data-test":"downloadIcon",onClick:o.download},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:n.withCtx(()=>[t[6]||(t[6]=n.createElementVNode("span",null," Download ",-1))]),_:1})])]),_:1}),n.createVNode(m,null,{default:n.withCtx(()=>[n.createElementVNode("div",xe,[i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",ve,[n.createVNode(u,{class:"mt-3"},{default:n.withCtx(()=>t[7]||(t[7]=[n.createTextVNode(" Upload a file. ")])),_:1}),n.createVNode(u,{"no-gutters":"",align:"center"},{default:n.withCtx(()=>[n.createVNode(g,{cols:"3"},{default:n.withCtx(()=>[n.createVNode(f,{block:"",color:"success",onClick:e.loadFile,disabled:!e.file||e.loadingFile||i.readonly,loading:e.loadingFile,"data-test":"editScreenLoadBtn"},{loader:n.withCtx(()=>t[8]||(t[8]=[n.createElementVNode("span",null,"Loading...",-1)])),default:n.withCtx(()=>[t[9]||(t[9]=n.createTextVNode(" Load "))]),_:1},8,["onClick","disabled","loading"])]),_:1}),n.createVNode(g,{cols:"9"},{default:n.withCtx(()=>[n.createVNode(p,{modelValue:e.file,"onUpdate:modelValue":t[0]||(t[0]=w=>e.file=w),accept:".json",label:"Click to select .json file.",disabled:i.readonly},null,8,["modelValue","disabled"])]),_:1})]),_:1})])),n.createVNode(u,{"no-gutters":""},{default:n.withCtx(()=>[n.createElementVNode("pre",{class:"editor",ref:"editor",onContextmenu:t[1]||(t[1]=n.withModifiers((...w)=>o.showContextMenu&&o.showContextMenu(...w),["prevent"]))},null,544),n.createVNode(b,{modelValue:l.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=w=>l.contextMenu=w),target:[l.menuX,l.menuY]},{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(_,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:o.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),n.createVNode(u,{class:"my-3"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",{class:"text-red",textContent:n.toDisplayString(o.error)},null,8,ye),[[n.vShow,o.error]])]),_:1}),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(f,{onClick:n.withModifiers(o.close,["prevent"]),variant:"outlined",class:"mx-2","data-test":"editCancelBtn"},{default:n.withCtx(()=>t[10]||(t[10]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(f,{key:0,class:"mx-2",color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!o.error||i.readonly},{default:n.withCtx(()=>t[11]||(t[11]=[n.createTextVNode(" Save ")])),_:1},8,["disabled"]))]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["persistent","modelValue"])}const Ee=I._export_sfc(be,[["render",Ve],["__scopeId","data-v-4b6b190e"]]),ke={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},created(){for(const e of this.targets)E.oi.get(`/openc3-api/targets/${e.name}/modified_files`).then(t=>{t.data.length!==0&&this.modifiedTargets.push({name:e.name,files:t.data})})}};function Ne(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-list-item-title"),d=n.resolveComponent("v-list-item-subtitle"),u=n.resolveComponent("v-list-item"),f=n.resolveComponent("v-checkbox"),g=n.resolveComponent("v-card-text"),p=n.resolveComponent("v-btn"),_=n.resolveComponent("v-card-actions"),x=n.resolveComponent("v-card"),b=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(b,{modelValue:o.show,"onUpdate:modelValue":t[3]||(t[3]=m=>o.show=m),width:"600"},{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[4]||(t[4]=n.createElementVNode("span",null," Modified Plugin ",-1)),n.createVNode(s)]),_:1}),n.createVNode(g,{class:"pa-3"},{default:n.withCtx(()=>[n.createElementVNode("div",null," Plugin "+n.toDisplayString(i.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.modifiedTargets,(m,v)=>(n.openBlock(),n.createBlock(u,{lines:"two",key:v},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.name),1)]),_:2},1024),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.files,(C,w)=>(n.openBlock(),n.createBlock(d,{key:w},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C),1)]),_:2},1024))),128))]),_:2},1024))),128)),n.createVNode(f,{modelValue:l.deleteModified,"onUpdate:modelValue":t[0]||(t[0]=m=>l.deleteModified=m),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),n.createVNode(_,{class:"px-2"},{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(p,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:t[1]||(t[1]=()=>{o.show=!1,e.$emit("cancel")})},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Cancel ")])),_:1}),n.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:t[2]||(t[2]=()=>{o.show=!1,e.$emit("submit",l.deleteModified)})},{default:n.withCtx(()=>t[6]||(t[6]=[n.createTextVNode(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Se=I._export_sfc(ke,[["render",Ne]]),te=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-CfpwWsqv.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-C-m26Eqq.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-Co1Kd6Fa.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-BBPlFi_z.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-B5n-mN8G.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-CvT2JyMA.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-RMTst_Sy.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-67UcKoPf.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-0IFqUxNJ.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-B1LvOLG2.cjs"))}],Te={components:{TopBar:T.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return te.map(e=>({displayName:e.displayName,path:{name:e.name}}))}}};function Le(e,t,i,r,l,o){const s=n.resolveComponent("top-bar"),a=n.resolveComponent("v-tab"),c=n.resolveComponent("v-tabs"),d=n.resolveComponent("router-view"),u=n.resolveComponent("v-card");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(s,{title:l.title},null,8,["title"]),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{modelValue:l.curTab,"onUpdate:modelValue":t[0]||(t[0]=f=>l.curTab=f),"fixed-tabs":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.tabs,(f,g)=>(n.openBlock(),n.createBlock(a,{key:g,to:f.path},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),n.createVNode(d)]),_:1})])}const De=I._export_sfc(Te,[["render",Le]]),h=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};h.Diff=function(e,t){this[0]=e,this[1]=t};h.Diff.prototype.length=2;h.Diff.prototype.toString=function(){return this[0]+","+this[1]};h.prototype.diff_main=function(e,t,i,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);let l=r;if(e==null||t==null)throw new Error("Null input. (diff_main)");if(e==t)return e?[new h.Diff(0,e)]:[];typeof i>"u"&&(i=!0);let o=i,s=this.diff_commonPrefix(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);let c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);let d=this.diff_compute_(e,t,o,l);return a&&d.unshift(new h.Diff(0,a)),c&&d.push(new h.Diff(0,c)),this.diff_cleanupMerge(d),d};h.prototype.diff_compute_=function(e,t,i,r){let l;if(!e)return[new h.Diff(1,t)];if(!t)return[new h.Diff(-1,e)];let o=e.length>t.length?e:t,s=e.length>t.length?t:e,a=o.indexOf(s);return a!=-1?(l=[new h.Diff(1,o.substring(0,a)),new h.Diff(0,s),new h.Diff(1,o.substring(a+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)]:i&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)};h.prototype.diff_lineMode_=function(e,t,i){let r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2;let l=r.lineArray,o=this.diff_main(e,t,!1,i);this.diff_charsToLines_(o,l),this.diff_cleanupSemantic(o),o.push(new h.Diff(0,""));let s=0,a=0,c=0,d="",u="";for(;s<o.length;){switch(o[s][0]){case 1:c++,u+=o[s][1];break;case-1:a++,d+=o[s][1];break;case 0:if(a>=1&&c>=1){o.splice(s-a-c,a+c),s=s-a-c;let f=this.diff_main(d,u,!1,i);for(let g=f.length-1;g>=0;g--)o.splice(s,0,f[g]);s=s+f.length}c=0,a=0,d="",u="";break}s++}return o.pop(),o};h.prototype.diff_bisect_=function(e,t,i){let r=e.length,l=t.length,o=Math.ceil((r+l)/2),s=o,a=2*o,c=new Array(a),d=new Array(a);for(let b=0;b<a;b++)c[b]=-1,d[b]=-1;c[s+1]=0,d[s+1]=0;let u=r-l,f=u%2!=0,g=0,p=0,_=0,x=0;for(let b=0;b<o&&!(new Date().getTime()>i);b++){for(let m=-b+g;m<=b-p;m+=2){let v=s+m,C;m==-b||m!=b&&c[v-1]<c[v+1]?C=c[v+1]:C=c[v-1]+1;let w=C-m;for(;C<r&&w<l&&e.charAt(C)==t.charAt(w);)C++,w++;if(c[v]=C,C>r)p+=2;else if(w>l)g+=2;else if(f){let V=s+u-m;if(V>=0&&V<a&&d[V]!=-1){let k=r-d[V];if(C>=k)return this.diff_bisectSplit_(e,t,C,w,i)}}}for(let m=-b+_;m<=b-x;m+=2){let v=s+m,C;m==-b||m!=b&&d[v-1]<d[v+1]?C=d[v+1]:C=d[v-1]+1;let w=C-m;for(;C<r&&w<l&&e.charAt(r-C-1)==t.charAt(l-w-1);)C++,w++;if(d[v]=C,C>r)x+=2;else if(w>l)_+=2;else if(!f){let V=s+u-m;if(V>=0&&V<a&&c[V]!=-1){let k=c[V],S=s+k-V;if(C=r-C,k>=C)return this.diff_bisectSplit_(e,t,k,S,i)}}}}return[new h.Diff(-1,e),new h.Diff(1,t)]};h.prototype.diff_bisectSplit_=function(e,t,i,r,l){let o=e.substring(0,i),s=t.substring(0,r),a=e.substring(i),c=t.substring(r),d=this.diff_main(o,s,!1,l),u=this.diff_main(a,c,!1,l);return d.concat(u)};h.prototype.diff_linesToChars_=function(e,t){let i=[],r={};i[0]="";function l(c){let d="",u=0,f=-1,g=i.length;for(;f<c.length-1;){f=c.indexOf(`
|
|
2
|
+
`,u),f==-1&&(f=c.length-1);let p=c.substring(u,f+1);(r.hasOwnProperty?r.hasOwnProperty(p):r[p]!==void 0)?d+=String.fromCharCode(r[p]):(g==o&&(p=c.substring(u),f=c.length),d+=String.fromCharCode(g),r[p]=g,i[g++]=p),u=f+1}return d}let o=4e4,s=l(e);o=65535;let a=l(t);return{chars1:s,chars2:a,lineArray:i}};h.prototype.diff_charsToLines_=function(e,t){for(let i=0;i<e.length;i++){let r=e[i][1],l=[];for(let o=0;o<r.length;o++)l[o]=t[r.charCodeAt(o)];e[i][1]=l.join("")}};h.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;let i=0,r=Math.min(e.length,t.length),l=r,o=0;for(;i<l;)e.substring(o,l)==t.substring(o,l)?(i=l,o=i):r=l,l=Math.floor((r-i)/2+i);return l};h.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;let i=0,r=Math.min(e.length,t.length),l=r,o=0;for(;i<l;)e.substring(e.length-l,e.length-o)==t.substring(t.length-l,t.length-o)?(i=l,o=i):r=l,l=Math.floor((r-i)/2+i);return l};h.prototype.diff_commonOverlap_=function(e,t){let i=e.length,r=t.length;if(i==0||r==0)return 0;i>r?e=e.substring(i-r):i<r&&(t=t.substring(0,i));let l=Math.min(i,r);if(e==t)return l;let o=0,s=1;for(;;){let a=e.substring(l-s),c=t.indexOf(a);if(c==-1)return o;s+=c,(c==0||e.substring(l-s)==t.substring(0,s))&&(o=s,s++)}};h.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;let i=e.length>t.length?e:t,r=e.length>t.length?t:e;if(i.length<4||r.length*2<i.length)return null;let l=this;function o(_,x,b){let m=_.substring(b,b+Math.floor(_.length/4)),v=-1,C="",w,V,k,S;for(;(v=x.indexOf(m,v+1))!=-1;){let L=l.diff_commonPrefix(_.substring(b),x.substring(v)),D=l.diff_commonSuffix(_.substring(0,b),x.substring(0,v));C.length<D+L&&(C=x.substring(v-D,v)+x.substring(v,v+L),w=_.substring(0,b-D),V=_.substring(b+L),k=x.substring(0,v-D),S=x.substring(v+L))}return C.length*2>=_.length?[w,V,k,S,C]:null}let s=o(i,r,Math.ceil(i.length/4)),a=o(i,r,Math.ceil(i.length/2)),c;if(!s&&!a)return null;a?s?c=s[4].length>a[4].length?s:a:c=a:c=s;let d,u,f,g;e.length>t.length?(d=c[0],u=c[1],f=c[2],g=c[3]):(f=c[0],g=c[1],d=c[2],u=c[3]);let p=c[4];return[d,u,f,g,p]};h.prototype.diff_cleanupSemantic=function(e){let t=!1,i=[],r=0,l=null,o=0,s=0,a=0,c=0,d=0;for(;o<e.length;)e[o][0]==0?(i[r++]=o,s=c,a=d,c=0,d=0,l=e[o][1]):(e[o][0]==1?c+=e[o][1].length:d+=e[o][1].length,l&&l.length<=Math.max(s,a)&&l.length<=Math.max(c,d)&&(e.splice(i[r-1],0,new h.Diff(-1,l)),e[i[r-1]+1][0]=1,r--,r--,o=r>0?i[r-1]:-1,s=0,a=0,c=0,d=0,l=null,t=!0)),o++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o<e.length;){if(e[o-1][0]==-1&&e[o][0]==1){let u=e[o-1][1],f=e[o][1],g=this.diff_commonOverlap_(u,f),p=this.diff_commonOverlap_(f,u);g>=p?(g>=u.length/2||g>=f.length/2)&&(e.splice(o,0,new h.Diff(0,f.substring(0,g))),e[o-1][1]=u.substring(0,u.length-g),e[o+1][1]=f.substring(g),o++):(p>=u.length/2||p>=f.length/2)&&(e.splice(o,0,new h.Diff(0,u.substring(0,p))),e[o-1][0]=1,e[o-1][1]=f.substring(0,f.length-p),e[o+1][0]=-1,e[o+1][1]=u.substring(p),o++),o++}o++}};h.prototype.diff_cleanupSemanticLossless=function(e){function t(r,l){if(!r||!l)return 6;let o=r.charAt(r.length-1),s=l.charAt(0),a=o.match(h.nonAlphaNumericRegex_),c=s.match(h.nonAlphaNumericRegex_),d=a&&o.match(h.whitespaceRegex_),u=c&&s.match(h.whitespaceRegex_),f=d&&o.match(h.linebreakRegex_),g=u&&s.match(h.linebreakRegex_),p=f&&r.match(h.blanklineEndRegex_),_=g&&l.match(h.blanklineStartRegex_);return p||_?5:f||g?4:a&&!d&&u?3:d||u?2:a||c?1:0}let i=1;for(;i<e.length-1;){if(e[i-1][0]==0&&e[i+1][0]==0){let r=e[i-1][1],l=e[i][1],o=e[i+1][1],s=this.diff_commonSuffix(r,l);if(s){r[r.length-s]===`
|
|
3
|
+
`&&(s-=1);let f=l.substring(l.length-s);r=r.substring(0,r.length-s),l=f+l.substring(0,l.length-s),o=f+o}let a=r,c=l,d=o,u=t(r,l)+t(l,o);for(;l.charAt(0)===o.charAt(0);){r+=l.charAt(0),l=l.substring(1)+o.charAt(0),o=o.substring(1);let f=t(r,l)+t(l,o);f>=u&&(u=f,a=r,c=l,d=o)}e[i-1][1]!=a&&(a?e[i-1][1]=a:(e.splice(i-1,1),i--),e[i][1]=c,d?e[i+1][1]=d:(e.splice(i+1,1),i--))}i++}};h.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;h.whitespaceRegex_=/\s/;h.linebreakRegex_=/[\r\n]/;h.blanklineEndRegex_=/\n\r?\n$/;h.blanklineStartRegex_=/^\r?\n\r?\n/;h.prototype.diff_cleanupEfficiency=function(e){let t=!1,i=[],r=0,l=null,o=0,s=!1,a=!1,c=!1,d=!1;for(;o<e.length;)e[o][0]==0?(e[o][1].length<this.Diff_EditCost&&(c||d)?(i[r++]=o,s=c,a=d,l=e[o][1]):(r=0,l=null),c=d=!1):(e[o][0]==-1?d=!0:c=!0,l&&(s&&a&&c&&d||l.length<this.Diff_EditCost/2&&s+a+c+d==3)&&(e.splice(i[r-1],0,new h.Diff(-1,l)),e[i[r-1]+1][0]=1,r--,l=null,s&&a?(c=d=!0,r=0):(r--,o=r>0?i[r-1]:-1,c=d=!1),t=!0)),o++;t&&this.diff_cleanupMerge(e)};h.prototype.diff_cleanupMerge=function(e){e.push(new h.Diff(0,""));let t=0,i=0,r=0,l="",o="",s;for(;t<e.length;)switch(e[t][0]){case 1:r++,o+=e[t][1],t++;break;case-1:i++,l+=e[t][1],t++;break;case 0:i+r>1?(i!==0&&r!==0&&(s=this.diff_commonPrefix(o,l),s!==0&&(t-i-r>0&&e[t-i-r-1][0]==0?e[t-i-r-1][1]+=o.substring(0,s):(e.splice(0,0,new h.Diff(0,o.substring(0,s))),t++),o=o.substring(s),l=l.substring(s)),s=this.diff_commonSuffix(o,l),s!==0&&(e[t][1]=o.substring(o.length-s)+e[t][1],o=o.substring(0,o.length-s),l=l.substring(0,l.length-s))),t-=i+r,e.splice(t,i+r),l.length&&(e.splice(t,0,new h.Diff(-1,l)),t++),o.length&&(e.splice(t,0,new h.Diff(1,o)),t++),t++):t!==0&&e[t-1][0]==0?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,i=0,l="",o="";break}e[e.length-1][1]===""&&e.pop();let a=!1;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),a=!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),a=!0)),t++;a&&this.diff_cleanupMerge(e)};h.prototype.diff_cleanupSplitSurrogates=function(e){let t;for(let i=0;i<e.length;i++){let r=e[i],l=r[1][0],o=r[1][r[1].length-1];if(r[1].length===0){e.splice(i--,1);continue}if(o&&this.isHighSurrogate(o)&&(t=o,r[1]=r[1].slice(0,-1)),t&&l&&this.isHighSurrogate(t)&&this.isLowSurrogate(l)&&(r[1]=t+r[1]),r[1].length===0){e.splice(i--,1);continue}}return e};h.prototype.isHighSurrogate=function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319};h.prototype.isLowSurrogate=function(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343};h.prototype.digit16=function(e){switch(e){case"0":return 0;case"1":return 1;case"2":return 2;case"3":return 3;case"4":return 4;case"5":return 5;case"6":return 6;case"7":return 7;case"8":return 8;case"9":return 9;case"A":case"a":return 10;case"B":case"b":return 11;case"C":case"c":return 12;case"D":case"d":return 13;case"E":case"e":return 14;case"F":case"f":return 15;default:throw new Error("Invalid hex-code")}};h.prototype.decodeURI=function(e){try{return decodeURI(e)}catch{let t=0,i="";for(;t<e.length;){if(e[t]!=="%"){i+=e[t++];continue}let r=(this.digit16(e[t+1])<<4)+this.digit16(e[t+2]);if((r&128)===0){i+=String.fromCharCode(r),t+=3;continue}if(e[t+3]!=="%")throw new URIError("URI malformed");let l=(this.digit16(e[t+4])<<4)+this.digit16(e[t+5]);if((l&192)!==128)throw new URIError("URI malformed");if(l=l&63,(r&224)===192){i+=String.fromCharCode((r&31)<<6|l),t+=6;continue}if(e[t+6]!=="%")throw new URIError("URI malformed");let o=(this.digit16(e[t+7])<<4)+this.digit16(e[t+8]);if((o&192)!==128)throw new URIError("URI malformed");if(o=o&63,(r&240)===224){i+=String.fromCharCode((r&15)<<12|l<<6|o),t+=9;continue}if(e[t+9]!=="%")throw new URIError("URI malformed");let s=(this.digit16(e[t+10])<<4)+this.digit16(e[t+11]);if((s&192)!==128)throw new URIError("URI malformed");if(s=s&63,(r&248)===240){let a=(r&7)<<18|l<<12|o<<6|s;if(a>=65536&&a<=1114111){i+=String.fromCharCode((a&65535)>>>10&1023|55296),i+=String.fromCharCode(56320|a&65535&1023),t+=12;continue}}throw new URIError("URI malformed")}return i}};h.prototype.diff_xIndex=function(e,t){let i=0,r=0,l=0,o=0,s;for(s=0;s<e.length&&(e[s][0]!==1&&(i+=e[s][1].length),e[s][0]!==-1&&(r+=e[s][1].length),!(i>t));s++)l=i,o=r;return e.length!=s&&e[s][0]===-1?o:o+(t-l)};h.prototype.diff_prettyHtml=function(e){e=this.diff_cleanupSplitSurrogates(e);let t=[],i=/&/g,r=/</g,l=/>/g,o=/\n/g;for(let s=0;s<e.length;s++){let a=e[s][0],c=e[s][1].replace(i,"&").replace(r,"<").replace(l,">").replace(o,"¶<br>");switch(a){case 1:t[s]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:t[s]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[s]="<span>"+c+"</span>";break}}return t.join("")};h.prototype.diff_text1=function(e){let t=[];for(let i=0;i<e.length;i++)e[i][0]!==1&&(t[i]=e[i][1]);return t.join("")};h.prototype.diff_text2=function(e){let t=[];for(let i=0;i<e.length;i++)e[i][0]!==-1&&(t[i]=e[i][1]);return t.join("")};h.prototype.diff_levenshtein=function(e){let t=0,i=0,r=0;for(let l=0;l<e.length;l++){let o=e[l][0],s=e[l][1];switch(o){case 1:i+=s.length;break;case-1:r+=s.length;break;case 0:t+=Math.max(i,r),i=0,r=0;break}}return t+=Math.max(i,r),t};h.prototype.diff_toDelta=function(e){e=this.diff_cleanupSplitSurrogates(e);let t=[];for(let i=0;i<e.length;i++)switch(e[i][0]){case 1:t[i]="+"+encodeURI(e[i][1]);break;case-1:t[i]="-"+e[i][1].length;break;case 0:t[i]="="+e[i][1].length;break}return t.join(" ").replace(/%20/g," ")};h.prototype.diff_fromDelta=function(e,t){let i=0,r="",l=[],o=0,s=0,a=t.split(/\t/g);for(let c=0;c<a.length;c++){let d=a[c].substring(1);switch(a[c].charAt(0)){case"+":try{l[o++]=new h.Diff(1,this.decodeURI(d))}catch{throw new Error("Illegal escape in diff_fromDelta: "+d)}break;case"-":case"=":if(i=parseInt(d,10),isNaN(i)||i<0)throw new Error("Invalid number in diff_fromDelta: "+d);r=e.substring(s,s+=i),a[c].charAt(0)=="="?l[o++]=new h.Diff(0,r):l[o++]=new h.Diff(-1,r);break;default:if(a[c])throw new Error("Invalid diff operation in diff_fromDelta: "+a[c])}}if(s!=e.length)throw new Error("Delta length ("+s+") does not equal source text length ("+e.length+").");return l};h.prototype.match_main=function(e,t,i){if(e==null||t==null||i==null)throw new Error("Null input. (match_main)");return i=Math.max(0,Math.min(i,e.length)),e==t?0:e.length?e.substring(i,i+t.length)==t?i:this.match_bitap_(e,t,i):-1};h.prototype.match_bitap_=function(e,t,i){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");let r=this.match_alphabet_(t),l=this;function o(p,_){let x=p/t.length,b=Math.abs(i-_);return l.Match_Distance?x+b/l.Match_Distance:b?1:x}let s=this.Match_Threshold,a=e.indexOf(t,i);a!=-1&&(s=Math.min(o(0,a),s),a=e.lastIndexOf(t,i+t.length),a!=-1&&(s=Math.min(o(0,a),s)));let c=1<<t.length-1;a=-1;let d,u,f=t.length+e.length,g;for(let p=0;p<t.length;p++){for(d=0,u=f;d<u;)o(p,i+u)<=s?d=u:f=u,u=Math.floor((f-d)/2+d);f=u;let _=Math.max(1,i-u+1),x=Math.min(i+u,e.length)+t.length,b=Array(x+2);b[x+1]=(1<<p)-1;for(let m=x;m>=_;m--){let v=r[e.charAt(m-1)];if(p===0?b[m]=(b[m+1]<<1|1)&v:b[m]=(b[m+1]<<1|1)&v|((g[m+1]|g[m])<<1|1)|g[m+1],b[m]&c){let C=o(p,m-1);if(C<=s)if(s=C,a=m-1,a>i)_=Math.max(1,2*i-a);else break}}if(o(p+1,i)>s)break;g=b}return a};h.prototype.match_alphabet_=function(e){let t={};for(let i=0;i<e.length;i++)t[e.charAt(i)]=0;for(let i=0;i<e.length;i++)t[e.charAt(i)]|=1<<e.length-i-1;return t};h.prototype.patch_addContext_=function(e,t){if(t.length==0)return;if(e.start2===null)throw Error("patch not initialized");let i=t.substring(e.start2,e.start2+e.length1),r=0;for(;t.indexOf(i)!=t.lastIndexOf(i)&&i.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,i=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin,e.start2-r>0&&h.prototype.isLowSurrogate(t[e.start2-r])&&r++;let l=t.substring(e.start2-r,e.start2);l&&e.diffs.unshift(new h.Diff(0,l)),e.start2+e.length1+r<t.length&&h.prototype.isHighSurrogate(t[e.start2+e.length1+r])&&r++;let o=t.substring(e.start2+e.length1,e.start2+e.length1+r);o&&e.diffs.push(new h.Diff(0,o)),e.start1-=l.length,e.start2-=l.length,e.length1+=l.length+o.length,e.length2+=l.length+o.length};h.prototype.patch_make=function(e,t,i){let r,l;if(typeof e=="string"&&typeof t=="string"&&typeof i>"u")r=e,l=this.diff_main(r,t,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(e&&typeof e=="object"&&typeof t>"u"&&typeof i>"u")l=e,r=this.diff_text1(l);else if(typeof e=="string"&&t&&typeof t=="object"&&typeof i>"u")r=e,l=t;else if(typeof e=="string"&&typeof t=="string"&&i&&typeof i=="object")r=e,l=i;else throw new Error("Unknown call format to patch_make.");if(l.length===0)return[];l=this.diff_cleanupSplitSurrogates(l);let o=[],s=new h.patch_obj,a=0,c=0,d=0,u=r,f=r;for(let g=0;g<l.length;g++){let p=l[g][0],_=l[g][1];switch(!a&&p!==0&&(s.start1=c,s.start2=d),p){case 1:s.diffs[a++]=l[g],s.length2+=_.length,f=f.substring(0,d)+_+f.substring(d);break;case-1:s.length1+=_.length,s.diffs[a++]=l[g],f=f.substring(0,d)+f.substring(d+_.length);break;case 0:_.length<=2*this.Patch_Margin&&a&&l.length!=g+1?(s.diffs[a++]=l[g],s.length1+=_.length,s.length2+=_.length):_.length>=2*this.Patch_Margin&&a&&(this.patch_addContext_(s,u),o.push(s),s=new h.patch_obj,a=0,u=f,c=d);break}p!==1&&(c+=_.length),p!==-1&&(d+=_.length)}return a&&(this.patch_addContext_(s,u),o.push(s)),o};h.prototype.patch_deepCopy=function(e){let t=[];for(let i=0;i<e.length;i++){let r=e[i],l=new h.patch_obj;l.diffs=[];for(let o=0;o<r.diffs.length;o++)l.diffs[o]=new h.Diff(r.diffs[o][0],r.diffs[o][1]);l.start1=r.start1,l.start2=r.start2,l.length1=r.length1,l.length2=r.length2,t[i]=l}return t};h.prototype.patch_apply=function(e,t){if(e.length==0)return[t,[]];e=this.patch_deepCopy(e);let i=this.patch_addPadding(e);t=i+t+i,this.patch_splitMax(e);let r=0,l=[];for(let o=0;o<e.length;o++){let s=e[o].start2+r,a=this.diff_text1(e[o].diffs),c,d=-1;if(a.length>this.Match_MaxBits?(c=this.match_main(t,a.substring(0,this.Match_MaxBits),s),c!=-1&&(d=this.match_main(t,a.substring(a.length-this.Match_MaxBits),s+a.length-this.Match_MaxBits),(d==-1||c>=d)&&(c=-1))):c=this.match_main(t,a,s),c==-1)l[o]=!1,r-=e[o].length2-e[o].length1;else{l[o]=!0,r=c-s;let u;if(d==-1?u=t.substring(c,c+a.length):u=t.substring(c,d+this.Match_MaxBits),a==u)t=t.substring(0,c)+this.diff_text2(e[o].diffs)+t.substring(c+a.length);else{let f=this.diff_main(a,u,!1);if(a.length>this.Match_MaxBits&&this.diff_levenshtein(f)/a.length>this.Patch_DeleteThreshold)l[o]=!1;else{this.diff_cleanupSemanticLossless(f);let g=0,p;for(let _=0;_<e[o].diffs.length;_++){let x=e[o].diffs[_];x[0]!==0&&(p=this.diff_xIndex(f,g)),x[0]===1?t=t.substring(0,c+p)+x[1]+t.substring(c+p):x[0]===-1&&(t=t.substring(0,c+p)+t.substring(c+this.diff_xIndex(f,g+x[1].length))),x[0]!==-1&&(g+=x[1].length)}}}}}return t=t.substring(i.length,t.length-i.length),[t,l]};h.prototype.patch_addPadding=function(e){let t=this.Patch_Margin,i="";for(let o=1;o<=t;o++)i+=String.fromCharCode(o);for(let o=0;o<e.length;o++)e[o].start1+=t,e[o].start2+=t;let r=e[0],l=r.diffs;if(l.length==0||l[0][0]!=0)l.unshift(new h.Diff(0,i)),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>l[0][1].length){let o=t-l[0][1].length;l[0][1]=i.substring(l[0][1].length)+l[0][1],r.start1-=o,r.start2-=o,r.length1+=o,r.length2+=o}if(r=e[e.length-1],l=r.diffs,l.length==0||l[l.length-1][0]!=0)l.push(new h.Diff(0,i)),r.length1+=t,r.length2+=t;else if(t>l[l.length-1][1].length){let o=t-l[l.length-1][1].length;l[l.length-1][1]+=i.substring(0,o),r.length1+=o,r.length2+=o}return i};h.prototype.patch_splitMax=function(e){let t=this.Match_MaxBits;for(let i=0;i<e.length;i++){if(e[i].length1<=t)continue;let r=e[i];e.splice(i--,1);let l=r.start1,o=r.start2,s="";for(;r.diffs.length!==0;){let a=new h.patch_obj,c=!0;for(a.start1=l-s.length,a.start2=o-s.length,s!==""&&(a.length1=a.length2=s.length,a.diffs.push(new h.Diff(0,s)));r.diffs.length!==0&&a.length1<t-this.Patch_Margin;){let u=r.diffs[0][0],f=r.diffs[0][1];u===1?(a.length2+=f.length,o+=f.length,a.diffs.push(r.diffs.shift()),c=!1):u===-1&&a.diffs.length==1&&a.diffs[0][0]==0&&f.length>2*t?(a.length1+=f.length,l+=f.length,c=!1,a.diffs.push(new h.Diff(u,f)),r.diffs.shift()):(f=f.substring(0,t-a.length1-this.Patch_Margin),a.length1+=f.length,l+=f.length,u===0?(a.length2+=f.length,o+=f.length):c=!1,a.diffs.push(new h.Diff(u,f)),f==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(f.length))}s=this.diff_text2(a.diffs),s=s.substring(s.length-this.Patch_Margin);let d=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);d!==""&&(a.length1+=d.length,a.length2+=d.length,a.diffs.length!==0&&a.diffs[a.diffs.length-1][0]===0?a.diffs[a.diffs.length-1][1]+=d:a.diffs.push(new h.Diff(0,d))),c||e.splice(++i,0,a)}}};h.prototype.patch_toText=function(e){let t=[];for(let i=0;i<e.length;i++)t[i]=e[i];return t.join("")};h.prototype.patch_fromText=function(e){let t=[];if(!e)return t;let i=e.split(`
|
|
4
|
+
`),r=0,l=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;for(;r<i.length;){let o=i[r].match(l);if(!o)throw new Error("Invalid patch string: "+i[r]);let s=new h.patch_obj;for(t.push(s),s.start1=parseInt(o[1],10),o[2]===""?(s.start1--,s.length1=1):o[2]=="0"?s.length1=0:(s.start1--,s.length1=parseInt(o[2],10)),s.start2=parseInt(o[3],10),o[4]===""?(s.start2--,s.length2=1):o[4]=="0"?s.length2=0:(s.start2--,s.length2=parseInt(o[4],10)),r++;r<i.length;){let a=i[r].charAt(0),c="";try{c=decodeURI(i[r].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+c)}if(a=="-")s.diffs.push(new h.Diff(-1,c));else if(a=="+")s.diffs.push(new h.Diff(1,c));else if(a==" ")s.diffs.push(new h.Diff(0,c));else{if(a=="@")break;if(a!=="")throw new Error('Invalid patch mode "'+a+'" in: '+c)}r++}}return t};h.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0};h.patch_obj.prototype.toString=function(){let e,t;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;let i=["@@ -"+e+" +"+t+` @@
|
|
5
|
+
`],r;h.prototype.diff_cleanupSplitSurrogates(this.diffs);for(let l=0;l<this.diffs.length;l++){switch(this.diffs[l][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" ";break}i[l+1]=r+encodeURI(this.diffs[l][1])+`
|
|
6
|
+
`}return i.join("").replace(/%20/g," ")};function B(e){return e&&typeof e=="object"&&!Array.isArray(e)&&e!==null}function U(e,t){return B(e)&&B(t)&&Object.keys(t).forEach(i=>{i==="__proto__"||i==="constructor"||(B(t[i])?((!e[i]||!B(e[i]))&&(e[i]=t[i]),U(e[i],t[i])):Object.assign(e,{[i]:t[i]}))}),e}function F(e,t,i=!1){let r=null,l=!0;return(...o)=>{const s=i&&l,a=()=>{e.apply(this,o),r=null};s&&(l=!1,a()),r||(r=setTimeout(a,t))}}function Me(e,t){let i;return(...r)=>{const l=this;clearTimeout(i),i=setTimeout(()=>e.apply(l,r),t)}}function H(e=""){return e.replace(/\r\n/g,`
|
|
7
|
+
`)}function q(e,t,i,r){const l=i-e,o=e+l/2;return`M ${e} ${t} C ${o},${t} ${o},${r} ${i},${r}`}const y={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"};function G(e,t){let{mode:i}=e.options;return t===y.EDITOR_LEFT&&e.options.left.mode!==null&&(i=e.options.left.mode),t===y.EDITOR_RIGHT&&e.options.right.mode!==null&&(i=e.options.right.mode),i}function $(e,t){let{theme:i}=e.options;return t===y.EDITOR_LEFT&&e.options.left.theme!==null&&(i=e.options.left.theme),t===y.EDITOR_RIGHT&&e.options.right.theme!==null&&(i=e.options.right.theme),i}function ne(e,t){return e.ace.getSession().doc.getLine(t)}function Ie(e){return document.getElementById(e.options.left.id).offsetHeight}function j(e){const t=document.createElement("div"),i={class:e.className,style:`top:${e.topOffset}px`,title:e.tooltip,"data-diff-index":e.diffIndex};for(const r in i)t.setAttribute(r,i[r]);return t.innerHTML=e.arrowContent,t}function O(e,t){const i=Math.random().toString(36).substr(2,5),r=`js-${t}-${i}`,l=e.querySelector(`.${t}`);if(l)return l.id=l.id||r,l.id;const o=document.createElement("div");return e.appendChild(o),o.className=t,o.id=r,o.id}function Y(e,t,i,r){const l=e==="document"?document:document.querySelector(e);l.addEventListener(t,o=>{const s=l.querySelectorAll(i),{target:a}=o;for(let c=0,d=s.length;c<d;c+=1){let u=a;const f=s[c];for(;u&&u!==l;)u===f&&r.call(f,o),u=u.parentNode}})}let A;function Re(e){if(e.Range)return e.Range;const t=e.acequire||e.require;return t?t("ace/range"):!1}function P(e={}){if(!(this instanceof P))return new P(e);const t=this,i=()=>window?window.ace:void 0;t.options=U({ace:i(),mode:null,theme:null,element:null,diffGranularity:y.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);const{ace:r}=t.options;if(!r){const l="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(l),new Error(l)}if(A=Re(r),!A){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";return console.error(l),new Error(l)}if(t.options.element===null){const l="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(l),new Error(l)}if(t.options.element instanceof HTMLElement?t.el=t.options.element:t.el=document.body.querySelector(t.options.element),!t.el){const l=`Can't find the specified element ${t.options.element}`;return console.error(l),new Error(l)}t.options.left.id=O(t.el,"acediff__left"),t.options.classes.gutterID=O(t.el,"acediff__gutter"),t.options.right.id=O(t.el,"acediff__right"),t.el.innerHTML=`<div class="acediff__wrap">${t.el.innerHTML}</div>`,t.editors={left:{ace:r.edit(t.options.left.id),markers:[],lineLengths:[]},right:{ace:r.edit(t.options.right.id),markers:[],lineLengths:[]},editorHeight:null},t.editors.left.ace.getSession().setMode(G(t,y.EDITOR_LEFT)),t.editors.right.ace.getSession().setMode(G(t,y.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($(t,y.EDITOR_LEFT)),t.editors.right.ace.setTheme($(t,y.EDITOR_RIGHT)),t.editors.left.ace.setValue(H(t.options.left.content),-1),t.editors.right.ace.setValue(H(t.options.right.content),-1),t.editors.editorHeight=Ie(t),setTimeout(()=>{t.lineHeight=t.editors.left.ace.renderer.lineHeight,Be(t),Ue(t),re(t),t.diff()},1)}P.prototype={setOptions(e){U(this.options,e),this.diff()},getNumDiffs(){return this.diffs.length},getEditors(){return{left:this.editors.left.ace,right:this.editors.right.ace}},diff(){const e=new h,t=this.editors.left.ace.getSession().getValue(),i=this.editors.right.ace.getSession().getValue(),r=e.diff_main(i,t);e.diff_cleanupSemantic(r),this.editors.left.lineLengths=K(this.editors.left),this.editors.right.lineLengths=K(this.editors.right);const l=[],o={left:0,right:0};r.forEach(s=>{const a=s[0];let c=s[1];c.length!==0&&(a===y.DIFF_EQUAL?(o.left+=c.length,o.right+=c.length):a===y.DIFF_DELETE?(l.push(J(this,y.DIFF_DELETE,o.left,o.right,c)),o.right+=c.length):a===y.DIFF_INSERT&&(l.push(J(this,y.DIFF_INSERT,o.left,o.right,c)),o.left+=c.length))},this),this.diffs=qe(this,l),!(this.diffs.length>this.options.maxDiffs)&&(oe(this),le(this))},destroy(){const e=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let t=this.editors.left.ace.container,i=t.cloneNode(!1);i.textContent=e,t.parentNode.replaceChild(i,t);const r=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),t=this.editors.right.ace.container,i=t.cloneNode(!1),i.textContent=r,t.parentNode.replaceChild(i,t),document.getElementById(this.options.classes.gutterID).innerHTML="",ie()}};let ie=()=>{};function Be(e){e.editors.left.ace.getSession().on("changeScrollTop",F(()=>{X(e)},16)),e.editors.right.ace.getSession().on("changeScrollTop",F(()=>{X(e)},16));const t=e.diff.bind(e);e.editors.left.ace.on("change",t),e.editors.right.ace.on("change",t),e.options.left.copyLinkEnabled&&Y(`#${e.options.classes.gutterID}`,"click",`.${e.options.classes.newCodeConnectorLink}`,r=>{z(e,r,y.LTR)}),e.options.right.copyLinkEnabled&&Y(`#${e.options.classes.gutterID}`,"click",`.${e.options.classes.deletedCodeConnectorLink}`,r=>{z(e,r,y.RTL)});const i=Me(()=>{e.editors.availableHeight=document.getElementById(e.options.left.id).offsetHeight,e.diff()},250);window.addEventListener("resize",i),ie=()=>{window.removeEventListener("resize",i)}}function z(e,t,i){const r=parseInt(t.target.getAttribute("data-diff-index"),10),l=e.diffs[r];let o,s,a,c,d,u;i===y.LTR?(o=e.editors.left,s=e.editors.right,a=l.leftStartLine,c=l.leftEndLine,d=l.rightStartLine,u=l.rightEndLine):(o=e.editors.right,s=e.editors.left,a=l.rightStartLine,c=l.rightEndLine,d=l.leftStartLine,u=l.leftEndLine);let f="";for(let p=a;p<c;p+=1)f+=ne(o,p),p===a&&f===""&&d!=0&&(f+=`
|
|
8
|
+
`),p<o.ace.getSession().getLength()-1&&(f+=`
|
|
9
|
+
`);const g=s.ace.getSession().getScrollTop();s.ace.getSession().replace(new A(d,0,u,0),f),s.ace.getSession().setScrollTop(parseInt(g,10)),e.diff()}function K(e){const t=e.ace.getSession().doc.getAllLines(),i=[];return t.forEach(r=>{i.push(r.length+1)}),i}function W(e,t,i,r,l){const o=e.editors[t];r<i&&(r=i);const s=`${l} ${r>i?"lines":"targetOnly"}`;r>i&&(r-=1),o.markers.push(o.ace.session.addMarker(new A(i,0,r,1),s,"fullLine"))}function X(e){oe(e),le(e),Oe(e)}function oe(e){e.editors.left.markers.forEach(t=>{e.editors.left.ace.getSession().removeMarker(t)},e),e.editors.right.markers.forEach(t=>{e.editors.right.ace.getSession().removeMarker(t)},e)}function Ae(e,t,i,r,l){const o=e.editors.left.ace.getSession().getScrollTop(),s=e.editors.right.ace.getSession().getScrollTop();e.connectorYOffset=1;const a=-1,c=t*e.lineHeight-o+.5,d=e.gutterWidth+1,u=r*e.lineHeight-s+.5,f=-1,g=i*e.lineHeight-o+e.connectorYOffset+.5,p=e.gutterWidth+1,_=l*e.lineHeight-s+e.connectorYOffset+.5,x=q(a,c,d,u),b=q(p,_,f,g),m=`L${d},${u} ${p},${_}`,v=`L${f},${g} ${a},${c}`,C=`${x} ${m} ${b} ${v}`,w=document.createElementNS(y.SVG_NS,"path");w.setAttribute("d",C),w.setAttribute("class",e.options.classes.connector),e.gutterSVG.appendChild(w)}function Pe(e,t,i){if(t.leftEndLine>t.leftStartLine&&e.options.left.copyLinkEnabled){const r=j({className:e.options.classes.newCodeConnectorLink,topOffset:t.leftStartLine*e.lineHeight,tooltip:"Copy to right",diffIndex:i,arrowContent:e.options.classes.newCodeConnectorLinkContent});e.copyRightContainer.appendChild(r)}if(t.rightEndLine>t.rightStartLine&&e.options.right.copyLinkEnabled){const r=j({className:e.options.classes.deletedCodeConnectorLink,topOffset:t.rightStartLine*e.lineHeight,tooltip:"Copy to left",diffIndex:i,arrowContent:e.options.classes.deletedCodeConnectorLinkContent});e.copyLeftContainer.appendChild(r)}}function Oe(e){const t=e.editors.left.ace.getSession().getScrollTop(),i=e.editors.right.ace.getSession().getScrollTop();e.copyRightContainer.style.cssText=`top: ${-t}px`,e.copyLeftContainer.style.cssText=`top: ${-i}px`}function J(e,t,i,r,l){let o={};if(t===y.DIFF_INSERT){let s=Q(e.editors.left,i,l),a=Z(e.editors.right,r),c=M(e.editors.right,a);const d=M(e.editors.left,s.startLine);let u=a,f=s.startLine===s.endLine,g=0;(s.startChar>0||f&&l.length<d)&&c>0&&s.startChar<d&&g++,o={leftStartLine:s.startLine,leftEndLine:s.endLine+1,rightStartLine:u,rightEndLine:u+g}}else{let s=Q(e.editors.right,r,l),a=Z(e.editors.left,i),c=M(e.editors.left,a);const d=M(e.editors.right,s.startLine);let u=a,f=s.startLine===s.endLine,g=0;(s.startChar>0||f&&l.length<d)&&c>0&&s.startChar<d&&g++,o={leftStartLine:u,leftEndLine:u+g,rightStartLine:s.startLine,rightEndLine:s.endLine+1}}return o}function Q(e,t,i){const r={startLine:0,startChar:0,endLine:0,endChar:0},l=t+i.length;let o=0,s=!1,a=!1;e.lineLengths.forEach((d,u)=>{o+=d,!s&&t<o&&(r.startLine=u,r.startChar=t-o+d,s=!0),!a&&l<=o&&(r.endLine=u,r.endChar=l-o+d,a=!0)}),r.startChar>0&&M(e,r.startLine)===r.startChar&&(r.startLine++,r.startChar=0),r.endChar===0&&r.endLine--;const c=/\n$/.test(i);return r.startChar>0&&c&&r.endLine++,r}function M(e,t){return ne(e,t).length}function Z(e,t){const i=e.ace.getSession().doc.getAllLines();let r=0,l=0;for(let o=0;o<i.length;o+=1)if(l+=i[o].length+1,t<l){r=o;break}return l>e.ace.getSession().getValue().length&&(r+=1),r}function re(e){e.gutterHeight=document.getElementById(e.options.classes.gutterID).clientHeight,e.gutterWidth=document.getElementById(e.options.classes.gutterID).clientWidth;const t=ee(e,y.EDITOR_LEFT),i=ee(e,y.EDITOR_RIGHT),r=Math.max(t,i,e.gutterHeight);e.gutterSVG=document.createElementNS(y.SVG_NS,"svg"),e.gutterSVG.setAttribute("width",e.gutterWidth),e.gutterSVG.setAttribute("height",r),document.getElementById(e.options.classes.gutterID).appendChild(e.gutterSVG)}function ee(e,t){return(t===y.EDITOR_LEFT?e.editors.left:e.editors.right).ace.getSession().getLength()*e.lineHeight}function Ue(e){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)}function Fe(e){document.getElementById(e.options.classes.gutterID).removeChild(e.gutterSVG),re(e)}function He(e){e.copyLeftContainer.innerHTML="",e.copyRightContainer.innerHTML=""}function qe(e,t){const i=[];function r(o){return e.options.diffGranularity===y.DIFF_GRANULARITY_SPECIFIC?o<1:o<=1}t.forEach((o,s)=>{if(s===0){i.push(o);return}let a=!1;for(let c=0;c<i.length;c+=1)if(r(Math.abs(o.leftStartLine-i[c].leftEndLine))&&r(Math.abs(o.rightStartLine-i[c].rightEndLine))){i[c].leftStartLine=Math.min(o.leftStartLine,i[c].leftStartLine),i[c].rightStartLine=Math.min(o.rightStartLine,i[c].rightStartLine),i[c].leftEndLine=Math.max(o.leftEndLine,i[c].leftEndLine),i[c].rightEndLine=Math.max(o.rightEndLine,i[c].rightEndLine),a=!0;break}a||i.push(o)});const l=[];return i.forEach(o=>{o.leftStartLine===o.leftEndLine&&o.rightStartLine===o.rightEndLine||l.push(o)}),l}function le(e){Fe(e),He(e),e.diffs.forEach((t,i)=>{e.options.showDiffs&&(W(e,y.EDITOR_LEFT,t.leftStartLine,t.leftEndLine,e.options.classes.diff),W(e,y.EDITOR_RIGHT,t.rightStartLine,t.rightEndLine,e.options.classes.diff),e.options.showConnectors&&Ae(e,t.leftStartLine,t.leftEndLine,t.rightStartLine,t.rightEndLine),Pe(e,t,i))},e)}const Ge={props:{pluginName:{type:String,required:!0},variables:{type:Object,required:!0},pluginTxt:{type:String,required:!0},existingPluginTxt:{type:String,required:!1},modelValue:Boolean},data(){return{tab:0,localVariables:[],localPluginTxt:"",localExistingPluginTxt:null,editor:null,differ:null,contextMenu:!1,menuX:0,menuY:0}},mounted(){const e=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=E.aceExports.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(),T.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus()):(this.tab=1,this.differ=new P({element:this.$refs.editor,mode:new e,theme:"ace/theme/twilight",left:{content:this.localExistingPluginTxt,copyLinkEnabled:!1},right:{content:this.localPluginTxt,editable:!1}}),this.differ.getEditors().left.setFontSize(16),this.differ.getEditors().right.setFontSize(16),T.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().left),T.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().right),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},watch:{value:{immediate:!0,handler:function(){this.localVariables=JSON.parse(JSON.stringify(this.variables)),this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},methods:{previousDiff(){this.curDiff--,this.curDiff<0&&(this.curDiff=this.differ.diffs.length-1),this.scrollToCurDiff()},nextDiff(){this.curDiff++,this.curDiff>=this.differ.diffs.length&&(this.curDiff=0),this.scrollToCurDiff()},scrollToCurDiff(){if(this.differ.diffs.length===0)return;let e=this.differ.diffs[this.curDiff].leftStartLine,t=this.differ.diffs[this.curDiff].rightStartLine;e>5&&(e-=5),t>5&&(t-=5),this.differ.getEditors().left.scrollToLine(e),this.differ.getEditors().right.scrollToLine(t)},buildPluginMode(){let e=E.aceExports.require("ace/lib/oop"),t=E.aceExports.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,i=["VARIABLE"],r=new RegExp(`(\\b${i.join("\\b|\\b")}\\b)`),l=function(){t.call(this);for(let u in this.$rules)this.$rules[u].unshift({regex:r,token:"support.function"})};e.inherits(l,t);let o=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,s=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,a=E.aceExports.require("ace/mode/folding/ruby").FoldMode,c=function(){this.HighlightRules=l,this.$outdent=new o,this.$behaviour=new s,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords},d=E.aceExports.require("ace/mode/ruby").Mode;return e.inherits(c,d),(function(){this.$id="ace/mode/openc3"}).call(c.prototype),c},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
|
|
10
|
+
`)):this.differ.diffs.length===0?this.emitSubmit(this.differ.getEditors().left.getValue().split(`
|
|
11
|
+
`)):this.$dialog.confirm("Diffs still detected! Install using 'Existing plugin.txt' (left) and ignore additional changes in the new plugin.txt (right)?",{okText:"Install",cancelText:"Cancel"}).then(e=>{this.emitSubmit(this.differ.getEditors().left.getValue().split(`
|
|
12
|
+
`))}).catch(e=>{})},emitSubmit(e){let t={name:this.pluginName,variables:n.toRaw(this.localVariables),plugin_txt_lines:e};this.$emit("callback",t)},close:function(){this.show=!this.show},showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;let t=this.editor.getCursorPosition(),i=this.editor.session.getTokenAt(t.row,t.column);if(i){let r=i.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},toggleVimMode:function(){this.editor&&T.AceEditorUtils.toggleVimMode(this.editor)}}},$e={style:{flex:"1"}},je={class:"pa-3"},Ye={ref:"editor",class:"editor"},ze={key:0};function Ke(e,t,i,r,l,o){const s=n.resolveComponent("v-card-title"),a=n.resolveComponent("v-icon"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-tab"),u=n.resolveComponent("v-tabs"),f=n.resolveComponent("v-text-field"),g=n.resolveComponent("v-col"),p=n.resolveComponent("v-window-item"),_=n.resolveComponent("v-list-item-title"),x=n.resolveComponent("v-list-item"),b=n.resolveComponent("v-divider"),m=n.resolveComponent("v-list"),v=n.resolveComponent("v-menu"),C=n.resolveComponent("v-window"),w=n.resolveComponent("v-btn"),V=n.resolveComponent("v-spacer"),k=n.resolveComponent("v-card-actions"),S=n.resolveComponent("v-card-text"),L=n.resolveComponent("v-card"),D=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(D,{persistent:"",modelValue:o.show,"onUpdate:modelValue":t[5]||(t[5]=N=>o.show=N),width:"80vw"},{default:n.withCtx(()=>[n.createVNode(L,null,{default:n.withCtx(()=>[n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(s,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.pluginName),1)]),_:1}),i.existingPluginTxt!==null?(n.openBlock(),n.createBlock(c,{key:0,class:"notice d-flex flex-row"},{default:n.withCtx(()=>[n.createVNode(a,{size:"x-large",start:"",color:"yellow"},{default:n.withCtx(()=>t[6]||(t[6]=[n.createTextVNode(" mdi-alert-box ")])),_:1}),n.createElementVNode("div",$e," The existing plugin.txt is different from the "+n.toDisplayString(i.pluginName)+"'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update "+n.toDisplayString(i.pluginName)+"'s plugin.txt going forward. ",1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(c,{class:"pb-3 pr-3"},{default:n.withCtx(()=>[n.createVNode(u,{modelValue:l.tab,"onUpdate:modelValue":t[0]||(t[0]=N=>l.tab=N),class:"ml-3"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>t[7]||(t[7]=[n.createTextVNode(" Variables ")])),_:1})),(n.openBlock(),n.createBlock(d,{key:1},{default:n.withCtx(()=>t[8]||(t[8]=[n.createTextVNode(" plugin.txt ")])),_:1}))]),_:1},8,["modelValue"])]),_:1}),n.createElementVNode("form",{onSubmit:t[4]||(t[4]=n.withModifiers((...N)=>e.onSubmit&&e.onSubmit(...N),["prevent"]))},[n.createVNode(C,{modelValue:l.tab,"onUpdate:modelValue":t[3]||(t[3]=N=>l.tab=N)},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(p,{key:0,eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createElementVNode("div",je,[n.createVNode(c,{class:"mt-3"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.localVariables,(N,R)=>(n.openBlock(),n.createElementBlock("div",{key:R},[n.createVNode(g,{style:{width:"220px"}},{default:n.withCtx(()=>[n.createVNode(f,{clearable:"",type:"text",label:R,modelValue:l.localVariables[R],"onUpdate:modelValue":se=>l.localVariables[R]=se},null,8,["label","modelValue","onUpdate:modelValue"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),i.existingPluginTxt===null?(n.openBlock(),n.createBlock(p,{key:"1-new",eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createVNode(c,{class:"pa-3"},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>t[9]||(t[9]=[n.createTextVNode(" This can be edited before installation. ")])),_:1})]),_:1}),n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:t[1]||(t[1]=n.withModifiers((...N)=>o.showContextMenu&&o.showContextMenu(...N),["prevent"]))},null,544),n.createVNode(v,{modelValue:l.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=N=>l.contextMenu=N),target:[l.menuX,l.menuY]},{default:n.withCtx(()=>[n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(x,{link:""},{default:n.withCtx(()=>[n.createVNode(_,{onClick:e.openDocumentation},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.docsKeyword)+" documentation ",1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(b),n.createVNode(x,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:o.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1})):(n.openBlock(),n.createBlock(p,{key:"1-existing",eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createVNode(c,{class:"pa-3"},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>t[10]||(t[10]=[n.createTextVNode(" Existing plugin.txt. This can be edited before installation. ")])),_:1}),n.createVNode(g,{class:"ml-6"},{default:n.withCtx(()=>t[11]||(t[11]=[n.createTextVNode(" Uneditable plugin.txt from the new plugin. ")])),_:1})]),_:1}),n.createElementVNode("pre",Ye,null,512)]),_:1}))]),_:1},8,["modelValue"]),n.createVNode(k,{class:"px-2 mt-2"},{default:n.withCtx(()=>[i.existingPluginTxt!==null?(n.openBlock(),n.createElementBlock("div",ze,[n.createVNode(w,{variant:"text",onClick:o.nextDiff},{default:n.withCtx(()=>t[12]||(t[12]=[n.createTextVNode(" Next Diff ")])),_:1},8,["onClick"]),n.createVNode(w,{variant:"text",onClick:o.previousDiff},{default:n.withCtx(()=>t[13]||(t[13]=[n.createTextVNode(" Previous Diff ")])),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(V),n.createVNode(w,{variant:"outlined",onClick:n.withModifiers(o.close,["prevent"]),"data-test":"edit-cancel"},{default:n.withCtx(()=>t[14]||(t[14]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),n.createVNode(w,{variant:"flat",onClick:o.submit,"data-test":"edit-submit"},{default:n.withCtx(()=>t[15]||(t[15]=[n.createTextVNode(" Install ")])),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const We=I._export_sfc(Ge,[["render",Ke],["__scopeId","data-v-0c2b3caa"]]);exports.DownloadDialog=_e;exports.EditDialog=Ee;exports.ModifiedPluginDialog=Se;exports.OpenC3Admin=De;exports.PluginDialog=We;exports.TabsList=te;
|
|
13
|
+
//# sourceMappingURL=admin.cjs.map
|