@openc3/vue-common 7.0.1 → 7.1.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-BHjh3qLF.cjs → ArrayWidget-CQCphADm.cjs} +3 -3
- package/dist/{ArrayWidget-BHjh3qLF.cjs.map → ArrayWidget-CQCphADm.cjs.map} +1 -1
- package/dist/{ArrayWidget-Dh6zDiC7.js → ArrayWidget-CcQFJGCA.js} +7 -6
- package/dist/{ArrayWidget-Dh6zDiC7.js.map → ArrayWidget-CcQFJGCA.js.map} +1 -1
- package/dist/{ArrayplotWidget-CSc_TqNm.js → ArrayplotWidget-DGJEXAY0.js} +6 -5
- package/dist/{ArrayplotWidget-CSc_TqNm.js.map → ArrayplotWidget-DGJEXAY0.js.map} +1 -1
- package/dist/ArrayplotWidget-J0xWFYsb.cjs +2 -0
- package/dist/{ArrayplotWidget-BHD-TGQO.cjs.map → ArrayplotWidget-J0xWFYsb.cjs.map} +1 -1
- package/dist/BarColumn-DrvHLEts.cjs +2 -0
- package/dist/BarColumn-DrvHLEts.cjs.map +1 -0
- package/dist/{BarColumn-DmjMnw5l.js → BarColumn-DwZmAe8g.js} +11 -9
- package/dist/BarColumn-DwZmAe8g.js.map +1 -0
- package/dist/{BlockWidget-BdR_HCVc.js → BlockWidget-BHtugveV.js} +14 -13
- package/dist/{BlockWidget-BdR_HCVc.js.map → BlockWidget-BHtugveV.js.map} +1 -1
- package/dist/{BlockWidget-Bi1PfS1k.cjs → BlockWidget-_HTXwzGu.cjs} +2 -2
- package/dist/{BlockWidget-Bi1PfS1k.cjs.map → BlockWidget-_HTXwzGu.cjs.map} +1 -1
- package/dist/ButtonWidget-C_4jUjbD.cjs +3 -0
- package/dist/ButtonWidget-C_4jUjbD.cjs.map +1 -0
- package/dist/{ButtonWidget-DZ4VCNWU.js → ButtonWidget-Cc9cYsg8.js} +7 -6
- package/dist/ButtonWidget-Cc9cYsg8.js.map +1 -0
- package/dist/{CanvasWidget-DTEx-DpZ.cjs → CanvasWidget-98hvMkWl.cjs} +2 -2
- package/dist/{CanvasWidget-DTEx-DpZ.cjs.map → CanvasWidget-98hvMkWl.cjs.map} +1 -1
- package/dist/{CanvasWidget-DuXOo3jG.js → CanvasWidget-Bn70gBcc.js} +2 -2
- package/dist/{CanvasWidget-DuXOo3jG.js.map → CanvasWidget-Bn70gBcc.js.map} +1 -1
- package/dist/{CanvasdotWidget-bbOquK8B.cjs → CanvasdotWidget-6s1Kzzoj.cjs} +2 -2
- package/dist/{CanvasdotWidget-bbOquK8B.cjs.map → CanvasdotWidget-6s1Kzzoj.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-WoLpxI1u.js → CanvasdotWidget-CMROfW3O.js} +2 -2
- package/dist/{CanvasdotWidget-WoLpxI1u.js.map → CanvasdotWidget-CMROfW3O.js.map} +1 -1
- package/dist/{CanvasimageWidget-tWpK5rsv.js → CanvasimageWidget-BpM05v_m.js} +3 -3
- package/dist/{CanvasimageWidget-tWpK5rsv.js.map → CanvasimageWidget-BpM05v_m.js.map} +1 -1
- package/dist/{CanvasimageWidget-D2EqsK7w.cjs → CanvasimageWidget-Du_TULyr.cjs} +2 -2
- package/dist/{CanvasimageWidget-D2EqsK7w.cjs.map → CanvasimageWidget-Du_TULyr.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-By_DiQ75.cjs → CanvasimagevalueWidget-DUiZEzwq.cjs} +2 -2
- package/dist/{CanvasimagevalueWidget-By_DiQ75.cjs.map → CanvasimagevalueWidget-DUiZEzwq.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-BVzJYz3l.js → CanvasimagevalueWidget-E6G93iGc.js} +3 -3
- package/dist/{CanvasimagevalueWidget-BVzJYz3l.js.map → CanvasimagevalueWidget-E6G93iGc.js.map} +1 -1
- package/dist/{CanvaslabelWidget-CDFf8Vll.js → CanvaslabelWidget-C074R2Fy.js} +2 -2
- package/dist/{CanvaslabelWidget-CDFf8Vll.js.map → CanvaslabelWidget-C074R2Fy.js.map} +1 -1
- package/dist/{CanvaslabelWidget-DiPxyXoX.cjs → CanvaslabelWidget-C7K2dtNN.cjs} +2 -2
- package/dist/{CanvaslabelWidget-DiPxyXoX.cjs.map → CanvaslabelWidget-C7K2dtNN.cjs.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-DzJKD6qs.js → CanvaslabelvalueWidget-B0nJeS4X.js} +2 -2
- package/dist/{CanvaslabelvalueWidget-DzJKD6qs.js.map → CanvaslabelvalueWidget-B0nJeS4X.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-Cw5CCQTi.cjs → CanvaslabelvalueWidget-BuayHPZu.cjs} +2 -2
- package/dist/{CanvaslabelvalueWidget-Cw5CCQTi.cjs.map → CanvaslabelvalueWidget-BuayHPZu.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-BttTXCZq.js → CanvaslineWidget-CxnNAqOX.js} +2 -2
- package/dist/{CanvaslineWidget-BttTXCZq.js.map → CanvaslineWidget-CxnNAqOX.js.map} +1 -1
- package/dist/{CanvaslineWidget-BECtKTPL.cjs → CanvaslineWidget-DaBwCmSV.cjs} +2 -2
- package/dist/{CanvaslineWidget-BECtKTPL.cjs.map → CanvaslineWidget-DaBwCmSV.cjs.map} +1 -1
- package/dist/{CanvaslinevalueWidget-i6G0JfnZ.js → CanvaslinevalueWidget-BwfFyCwH.js} +2 -2
- package/dist/{CanvaslinevalueWidget-i6G0JfnZ.js.map → CanvaslinevalueWidget-BwfFyCwH.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-5duJ98qu.cjs → CanvaslinevalueWidget-xSHdgNCO.cjs} +2 -2
- package/dist/{CanvaslinevalueWidget-5duJ98qu.cjs.map → CanvaslinevalueWidget-xSHdgNCO.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-CTMObPhX.cjs → CheckbuttonWidget-Bey7tHx-.cjs} +2 -2
- package/dist/{CheckbuttonWidget-CTMObPhX.cjs.map → CheckbuttonWidget-Bey7tHx-.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-18jtf7sh.js → CheckbuttonWidget-yAm10oX0.js} +2 -2
- package/dist/{CheckbuttonWidget-18jtf7sh.js.map → CheckbuttonWidget-yAm10oX0.js.map} +1 -1
- package/dist/{ClassificationBanners-BmnQODLn.js → ClassificationBanners-DxpE_iPX.js} +2 -2
- package/dist/{ClassificationBanners-BmnQODLn.js.map → ClassificationBanners-DxpE_iPX.js.map} +1 -1
- package/dist/ClassificationBanners-xG4DOlqJ.cjs +2 -0
- package/dist/{ClassificationBanners-DjGCuH-4.cjs.map → ClassificationBanners-xG4DOlqJ.cjs.map} +1 -1
- package/dist/{ComboboxWidget-BjaVFbD4.js → ComboboxWidget-BnWksnnp.js} +2 -2
- package/dist/{ComboboxWidget-BjaVFbD4.js.map → ComboboxWidget-BnWksnnp.js.map} +1 -1
- package/dist/{ComboboxWidget-Cc0Acq9q.cjs → ComboboxWidget-Mh6axKMv.cjs} +2 -2
- package/dist/{ComboboxWidget-Cc0Acq9q.cjs.map → ComboboxWidget-Mh6axKMv.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-CO-nvphS.js → CriticalCmdDialog-D0fIp8Tq.js} +24 -23
- package/dist/{CriticalCmdDialog-CO-nvphS.js.map → CriticalCmdDialog-D0fIp8Tq.js.map} +1 -1
- package/dist/CriticalCmdDialog-DJ3FWL0_.cjs +2 -0
- package/dist/{CriticalCmdDialog-eytxCQto.cjs.map → CriticalCmdDialog-DJ3FWL0_.cjs.map} +1 -1
- package/dist/{DateWidget-DkFAFlc8.js → DateWidget-CAiG2FIl.js} +9 -8
- package/dist/{DateWidget-DkFAFlc8.js.map → DateWidget-CAiG2FIl.js.map} +1 -1
- package/dist/DateWidget-DUYYp-Yx.cjs +2 -0
- package/dist/{DateWidget-Cle8FY8Q.cjs.map → DateWidget-DUYYp-Yx.cjs.map} +1 -1
- package/dist/DetailsDialog-D3iPUi8b.cjs +2 -0
- package/dist/{DetailsDialog-BcMaTfuQ.cjs.map → DetailsDialog-D3iPUi8b.cjs.map} +1 -1
- package/dist/{DetailsDialog-sqja4Lzq.js → DetailsDialog-q5SDzw3R.js} +72 -71
- package/dist/{DetailsDialog-sqja4Lzq.js.map → DetailsDialog-q5SDzw3R.js.map} +1 -1
- package/dist/EventListDialog-1RsuuLHZ.cjs +2 -0
- package/dist/EventListDialog-1RsuuLHZ.cjs.map +1 -0
- package/dist/{EventListDialog-DjCQAwGl.js → EventListDialog-HuEtOu3k.js} +61 -58
- package/dist/EventListDialog-HuEtOu3k.js.map +1 -0
- package/dist/FilechecksumWidget-ByVrYgzI.cjs +2 -0
- package/dist/{FilechecksumWidget-2ta-UvLp.cjs.map → FilechecksumWidget-ByVrYgzI.cjs.map} +1 -1
- package/dist/{FilechecksumWidget-DqJ_hvN4.js → FilechecksumWidget-DeW9wy5d.js} +9 -9
- package/dist/{FilechecksumWidget-DqJ_hvN4.js.map → FilechecksumWidget-DeW9wy5d.js.map} +1 -1
- package/dist/{FiledisplayWidget-CYznG_tf.js → FiledisplayWidget-C_zPFu2E.js} +7 -6
- package/dist/{FiledisplayWidget-CYznG_tf.js.map → FiledisplayWidget-C_zPFu2E.js.map} +1 -1
- package/dist/FiledisplayWidget-hYmg981k.cjs +2 -0
- package/dist/{FiledisplayWidget-BUKXIQir.cjs.map → FiledisplayWidget-hYmg981k.cjs.map} +1 -1
- package/dist/{FormatvalueWidget-BpFXnA_U.cjs → FormatvalueWidget-7VD_kwxB.cjs} +2 -2
- package/dist/{FormatvalueWidget-BpFXnA_U.cjs.map → FormatvalueWidget-7VD_kwxB.cjs.map} +1 -1
- package/dist/{FormatvalueWidget-BnVu4YGx.js → FormatvalueWidget-BrvPWwfN.js} +3 -3
- package/dist/{FormatvalueWidget-BnVu4YGx.js.map → FormatvalueWidget-BrvPWwfN.js.map} +1 -1
- package/dist/{Graph-CUFzx8Ti.js → Graph-BCvaO4yI.js} +45 -38
- package/dist/Graph-BCvaO4yI.js.map +1 -0
- package/dist/Graph-BUqdz6gu.cjs +2 -0
- package/dist/Graph-BUqdz6gu.cjs.map +1 -0
- package/dist/GraphWidget-BdP0xM_P.cjs +2 -0
- package/dist/{GraphWidget-BvCQHVxQ.cjs.map → GraphWidget-BdP0xM_P.cjs.map} +1 -1
- package/dist/{GraphWidget-DO5XbOGy.js → GraphWidget-QS-VJoes.js} +26 -31
- package/dist/{GraphWidget-DO5XbOGy.js.map → GraphWidget-QS-VJoes.js.map} +1 -1
- package/dist/{HorizontalWidget-BBQE-dP-.cjs → HorizontalWidget-B9j7DG2Q.cjs} +2 -2
- package/dist/{HorizontalWidget-BBQE-dP-.cjs.map → HorizontalWidget-B9j7DG2Q.cjs.map} +1 -1
- package/dist/{HorizontalWidget-BA9PiP3d.js → HorizontalWidget-cFSsdChw.js} +2 -2
- package/dist/{HorizontalWidget-BA9PiP3d.js.map → HorizontalWidget-cFSsdChw.js.map} +1 -1
- package/dist/{HorizontalboxWidget-CX7J8RdA.cjs → HorizontalboxWidget-C3zHRO9h.cjs} +2 -2
- package/dist/{HorizontalboxWidget-CX7J8RdA.cjs.map → HorizontalboxWidget-C3zHRO9h.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-B-7HOqgl.js → HorizontalboxWidget-CKA7rLGd.js} +5 -5
- package/dist/{HorizontalboxWidget-B-7HOqgl.js.map → HorizontalboxWidget-CKA7rLGd.js.map} +1 -1
- package/dist/{HorizontallineWidget-D-o9MGo0.js → HorizontallineWidget-BqbLK0zc.js} +2 -2
- package/dist/{HorizontallineWidget-D-o9MGo0.js.map → HorizontallineWidget-BqbLK0zc.js.map} +1 -1
- package/dist/{HorizontallineWidget-odTFoB8u.cjs → HorizontallineWidget-GGNFIo1N.cjs} +2 -2
- package/dist/{HorizontallineWidget-odTFoB8u.cjs.map → HorizontallineWidget-GGNFIo1N.cjs.map} +1 -1
- package/dist/{IframeWidget-BzOka-fX.js → IframeWidget-CITX8Es1.js} +2 -2
- package/dist/{IframeWidget-BzOka-fX.js.map → IframeWidget-CITX8Es1.js.map} +1 -1
- package/dist/{IframeWidget-cTHu_Rmp.cjs → IframeWidget-lK6Cw1Pp.cjs} +2 -2
- package/dist/{IframeWidget-cTHu_Rmp.cjs.map → IframeWidget-lK6Cw1Pp.cjs.map} +1 -1
- package/dist/ImageLoader-CkTaGfCC.cjs +2 -0
- package/dist/{ImageLoader-BTEOukIw.cjs.map → ImageLoader-CkTaGfCC.cjs.map} +1 -1
- package/dist/{ImageLoader-CstmWFM4.js → ImageLoader-DQV_11Vd.js} +2 -2
- package/dist/{ImageLoader-CstmWFM4.js.map → ImageLoader-DQV_11Vd.js.map} +1 -1
- package/dist/{ImageviewerWidget-BA9uOM1q.js → ImageviewerWidget-BIsSA7KD.js} +2 -2
- package/dist/{ImageviewerWidget-BA9uOM1q.js.map → ImageviewerWidget-BIsSA7KD.js.map} +1 -1
- package/dist/{ImageviewerWidget-CLAFwmaB.cjs → ImageviewerWidget-CvbsaXCd.cjs} +2 -2
- package/dist/{ImageviewerWidget-CLAFwmaB.cjs.map → ImageviewerWidget-CvbsaXCd.cjs.map} +1 -1
- package/dist/InterfacesTab-Cfvks-ms.cjs +2 -0
- package/dist/{InterfacesTab-CM0CGFVS.cjs.map → InterfacesTab-Cfvks-ms.cjs.map} +1 -1
- package/dist/{InterfacesTab-C3mDLkGC.js → InterfacesTab-twne_Qp4.js} +11 -10
- package/dist/{InterfacesTab-C3mDLkGC.js.map → InterfacesTab-twne_Qp4.js.map} +1 -1
- package/dist/{LabelWidget-CMmVq1mx.cjs → LabelWidget-BFWd6Vgh.cjs} +2 -2
- package/dist/{LabelWidget-CMmVq1mx.cjs.map → LabelWidget-BFWd6Vgh.cjs.map} +1 -1
- package/dist/{LabelWidget-Da2howZF.js → LabelWidget-FQI-cH_A.js} +2 -2
- package/dist/{LabelWidget-Da2howZF.js.map → LabelWidget-FQI-cH_A.js.map} +1 -1
- package/dist/{LabelledWidget-CAqH0oWs.cjs → LabelledWidget-AZifUp-f.cjs} +2 -2
- package/dist/{LabelledWidget-CAqH0oWs.cjs.map → LabelledWidget-AZifUp-f.cjs.map} +1 -1
- package/dist/{LabelledWidget-BH8y3OXT.js → LabelledWidget-KGXtQ4Zb.js} +4 -4
- package/dist/{LabelledWidget-BH8y3OXT.js.map → LabelledWidget-KGXtQ4Zb.js.map} +1 -1
- package/dist/{LabelprogressbarWidget-Brl24F4c.js → LabelprogressbarWidget-72WyzD_Q.js} +4 -4
- package/dist/{LabelprogressbarWidget-Brl24F4c.js.map → LabelprogressbarWidget-72WyzD_Q.js.map} +1 -1
- package/dist/{LabelprogressbarWidget-BxLGmW9T.cjs → LabelprogressbarWidget-Bd2E9G7V.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-BxLGmW9T.cjs.map → LabelprogressbarWidget-Bd2E9G7V.cjs.map} +1 -1
- package/dist/{LabelsparklineWidget-D22MB7-4.js → LabelsparklineWidget-DtWNf4mK.js} +4 -4
- package/dist/{LabelsparklineWidget-D22MB7-4.js.map → LabelsparklineWidget-DtWNf4mK.js.map} +1 -1
- package/dist/{LabelsparklineWidget-BUXOpBeB.cjs → LabelsparklineWidget-__3CB0T-.cjs} +2 -2
- package/dist/{LabelsparklineWidget-BUXOpBeB.cjs.map → LabelsparklineWidget-__3CB0T-.cjs.map} +1 -1
- package/dist/LabelvalueWidget-B681T0uR.cjs +2 -0
- package/dist/LabelvalueWidget-B681T0uR.cjs.map +1 -0
- package/dist/{LabelvalueWidget-_1JPbK-K.js → LabelvalueWidget-D_JLdY7r.js} +11 -12
- package/dist/LabelvalueWidget-D_JLdY7r.js.map +1 -0
- package/dist/LabelvaluedescWidget-BppM5vGp.js +64 -0
- package/dist/LabelvaluedescWidget-BppM5vGp.js.map +1 -0
- package/dist/LabelvaluedescWidget-CiGIPdMG.cjs +2 -0
- package/dist/LabelvaluedescWidget-CiGIPdMG.cjs.map +1 -0
- package/dist/{LabelvaluelimitsbarWidget-C9PlEhWo.js → LabelvaluelimitsbarWidget-B69ogLif.js} +4 -4
- package/dist/{LabelvaluelimitsbarWidget-C9PlEhWo.js.map → LabelvaluelimitsbarWidget-B69ogLif.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-BGag8V6k.cjs → LabelvaluelimitsbarWidget-Cmb4kGcv.cjs} +2 -2
- package/dist/{LabelvaluelimitsbarWidget-BGag8V6k.cjs.map → LabelvaluelimitsbarWidget-Cmb4kGcv.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-SHVJIgGJ.cjs → LabelvaluelimitscolumnWidget-BXdmh9So.cjs} +2 -2
- package/dist/{LabelvaluelimitscolumnWidget-SHVJIgGJ.cjs.map → LabelvaluelimitscolumnWidget-BXdmh9So.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-Cay6AhoZ.js → LabelvaluelimitscolumnWidget-DPYwFdgq.js} +5 -5
- package/dist/{LabelvaluelimitscolumnWidget-Cay6AhoZ.js.map → LabelvaluelimitscolumnWidget-DPYwFdgq.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-s_8IgY-C.js → LabelvaluerangebarWidget-BT0BcOoK.js} +4 -4
- package/dist/{LabelvaluerangebarWidget-s_8IgY-C.js.map → LabelvaluerangebarWidget-BT0BcOoK.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-Dbibpimv.cjs → LabelvaluerangebarWidget-cavgscEk.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-Dbibpimv.cjs.map → LabelvaluerangebarWidget-cavgscEk.cjs.map} +1 -1
- package/dist/{Layout-DwWEea79.cjs → Layout-D1ukrMwN.cjs} +2 -2
- package/dist/{Layout-DwWEea79.cjs.map → Layout-D1ukrMwN.cjs.map} +1 -1
- package/dist/{Layout-D7RGn0Fe.js → Layout-d-vb0okO.js} +2 -2
- package/dist/{Layout-D7RGn0Fe.js.map → Layout-d-vb0okO.js.map} +1 -1
- package/dist/{LedWidget-DgMtvsiv.js → LedWidget-Cmr6eVG2.js} +7 -6
- package/dist/{LedWidget-DgMtvsiv.js.map → LedWidget-Cmr6eVG2.js.map} +1 -1
- package/dist/LedWidget-Dwrm6hTX.cjs +2 -0
- package/dist/{LedWidget-BaiKDozd.cjs.map → LedWidget-Dwrm6hTX.cjs.map} +1 -1
- package/dist/{LimitsBar-BFM38vQL.cjs → LimitsBar-Dz1lZ_81.cjs} +2 -2
- package/dist/{LimitsBar-BFM38vQL.cjs.map → LimitsBar-Dz1lZ_81.cjs.map} +1 -1
- package/dist/{LimitsBar-CcOaAw0C.js → LimitsBar-qMynDHYT.js} +2 -2
- package/dist/{LimitsBar-CcOaAw0C.js.map → LimitsBar-qMynDHYT.js.map} +1 -1
- package/dist/{LimitsbarWidget-DpmJn1Lo.js → LimitsbarWidget-CMvcwa-m.js} +3 -3
- package/dist/{LimitsbarWidget-DpmJn1Lo.js.map → LimitsbarWidget-CMvcwa-m.js.map} +1 -1
- package/dist/{LimitsbarWidget-ConP3qI5.cjs → LimitsbarWidget-vIP9AUk4.cjs} +2 -2
- package/dist/{LimitsbarWidget-ConP3qI5.cjs.map → LimitsbarWidget-vIP9AUk4.cjs.map} +1 -1
- package/dist/LimitscolorWidget-CPuknJPk.cjs +2 -0
- package/dist/{LimitscolorWidget-veWQ4NXl.cjs.map → LimitscolorWidget-CPuknJPk.cjs.map} +1 -1
- package/dist/{LimitscolorWidget-BMXiEaDm.js → LimitscolorWidget-CZ9wMtcI.js} +7 -6
- package/dist/{LimitscolorWidget-BMXiEaDm.js.map → LimitscolorWidget-CZ9wMtcI.js.map} +1 -1
- package/dist/{LimitscolumnWidget-CJABAor8.cjs → LimitscolumnWidget-r-nOETY5.cjs} +2 -2
- package/dist/{LimitscolumnWidget-CJABAor8.cjs.map → LimitscolumnWidget-r-nOETY5.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-ufFMz6R-.js → LimitscolumnWidget-r84KJGU-.js} +2 -2
- package/dist/{LimitscolumnWidget-ufFMz6R-.js.map → LimitscolumnWidget-r84KJGU-.js.map} +1 -1
- package/dist/LinegraphWidget-BMUI8q6Q.cjs +2 -0
- package/dist/{LinegraphWidget-3E8L5CvM.cjs.map → LinegraphWidget-BMUI8q6Q.cjs.map} +1 -1
- package/dist/{LinegraphWidget-BC2wVOny.js → LinegraphWidget-COGBGOjF.js} +10 -9
- package/dist/{LinegraphWidget-BC2wVOny.js.map → LinegraphWidget-COGBGOjF.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-DICgiNQo.cjs → MatrixbycolumnsWidget-BoNbbrEi.cjs} +2 -2
- package/dist/{MatrixbycolumnsWidget-DICgiNQo.cjs.map → MatrixbycolumnsWidget-BoNbbrEi.cjs.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-DfUAeBnO.js → MatrixbycolumnsWidget-Dx2iz0YF.js} +3 -3
- package/dist/{MatrixbycolumnsWidget-DfUAeBnO.js.map → MatrixbycolumnsWidget-Dx2iz0YF.js.map} +1 -1
- package/dist/{MicroservicesTab-B0SZVty3.js → MicroservicesTab-Bhsf1soi.js} +12 -11
- package/dist/{MicroservicesTab-B0SZVty3.js.map → MicroservicesTab-Bhsf1soi.js.map} +1 -1
- package/dist/{MicroservicesTab-snXJDoYq.cjs → MicroservicesTab-Cuj56g8-.cjs} +3 -3
- package/dist/{MicroservicesTab-snXJDoYq.cjs.map → MicroservicesTab-Cuj56g8-.cjs.map} +1 -1
- package/dist/{OpenC3TimePicker-DpkbfbgC.js → OpenC3TimePicker-C3vCnk72.js} +20 -24
- package/dist/OpenC3TimePicker-C3vCnk72.js.map +1 -0
- package/dist/OpenC3TimePicker-CVUV2cK4.cjs +2 -0
- package/dist/OpenC3TimePicker-CVUV2cK4.cjs.map +1 -0
- package/dist/Openc3Screen-Bi6NOEQM.cjs +6 -0
- package/dist/{Openc3Screen-D1RLlBgQ.cjs.map → Openc3Screen-Bi6NOEQM.cjs.map} +1 -1
- package/dist/{Openc3Screen-DbUvz-3B.js → Openc3Screen-DkhDra2o.js} +67 -66
- package/dist/{Openc3Screen-DbUvz-3B.js.map → Openc3Screen-DkhDra2o.js.map} +1 -1
- package/dist/{OutputDialog-Ds-GdGyI.js → OutputDialog-D0ifesTw.js} +11 -10
- package/dist/{OutputDialog-Ds-GdGyI.js.map → OutputDialog-D0ifesTw.js.map} +1 -1
- package/dist/OutputDialog-DR9cJem2.cjs +2 -0
- package/dist/{OutputDialog-ChPCaQAE.cjs.map → OutputDialog-DR9cJem2.cjs.map} +1 -1
- package/dist/PackagesTab-B4sG5tHo.cjs +2 -0
- package/dist/{PackagesTab-BgQsbXRo.cjs.map → PackagesTab-B4sG5tHo.cjs.map} +1 -1
- package/dist/{PackagesTab-CWplBp_I.js → PackagesTab-Bb221-aM.js} +19 -18
- package/dist/{PackagesTab-CWplBp_I.js.map → PackagesTab-Bb221-aM.js.map} +1 -1
- package/dist/PluginsTab-Cbi_R9jL.cjs +6 -0
- package/dist/PluginsTab-Cbi_R9jL.cjs.map +1 -0
- package/dist/{PluginsTab-BiiL622n.js → PluginsTab-nWngR5kY.js} +275 -234
- package/dist/PluginsTab-nWngR5kY.js.map +1 -0
- package/dist/{ProgressbarWidget-D3ndYnq_.js → ProgressbarWidget-DPbAVjdC.js} +2 -2
- package/dist/{ProgressbarWidget-D3ndYnq_.js.map → ProgressbarWidget-DPbAVjdC.js.map} +1 -1
- package/dist/{ProgressbarWidget-DludJVUf.cjs → ProgressbarWidget-cPr3o6Nv.cjs} +2 -2
- package/dist/{ProgressbarWidget-DludJVUf.cjs.map → ProgressbarWidget-cPr3o6Nv.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-DX4h94p1.cjs → RadiobuttonWidget-BQZkRFa-.cjs} +2 -2
- package/dist/{RadiobuttonWidget-DX4h94p1.cjs.map → RadiobuttonWidget-BQZkRFa-.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-CP0S9nWW.js → RadiobuttonWidget-iXI9yCDk.js} +2 -2
- package/dist/{RadiobuttonWidget-CP0S9nWW.js.map → RadiobuttonWidget-iXI9yCDk.js.map} +1 -1
- package/dist/{RadiogroupWidget-BXHfA21T.js → RadiogroupWidget-CMM_p1eA.js} +2 -2
- package/dist/{RadiogroupWidget-BXHfA21T.js.map → RadiogroupWidget-CMM_p1eA.js.map} +1 -1
- package/dist/{RadiogroupWidget-NqjBNUH6.cjs → RadiogroupWidget-D2iIQ5RU.cjs} +2 -2
- package/dist/{RadiogroupWidget-NqjBNUH6.cjs.map → RadiogroupWidget-D2iIQ5RU.cjs.map} +1 -1
- package/dist/{RangebarWidget-Bv2DqkPo.js → RangebarWidget-DJXGUHAc.js} +2 -2
- package/dist/{RangebarWidget-Bv2DqkPo.js.map → RangebarWidget-DJXGUHAc.js.map} +1 -1
- package/dist/{RangebarWidget-CRq2zpvw.cjs → RangebarWidget-DsphX-jB.cjs} +2 -2
- package/dist/{RangebarWidget-CRq2zpvw.cjs.map → RangebarWidget-DsphX-jB.cjs.map} +1 -1
- package/dist/RedisTab-BZtfqEcP.js +186 -0
- package/dist/RedisTab-BZtfqEcP.js.map +1 -0
- package/dist/RedisTab-KhsG2CCO.cjs +2 -0
- package/dist/RedisTab-KhsG2CCO.cjs.map +1 -0
- package/dist/{RollupWidget-o_huYU0x.js → RollupWidget-BbWLSsTT.js} +2 -2
- package/dist/{RollupWidget-o_huYU0x.js.map → RollupWidget-BbWLSsTT.js.map} +1 -1
- package/dist/{RollupWidget-B7_Q_boi.cjs → RollupWidget-w-SF3f-X.cjs} +2 -2
- package/dist/{RollupWidget-B7_Q_boi.cjs.map → RollupWidget-w-SF3f-X.cjs.map} +1 -1
- package/dist/{RoutersTab-DN17iBBi.js → RoutersTab-CLKIJ5cm.js} +13 -12
- package/dist/{RoutersTab-DN17iBBi.js.map → RoutersTab-CLKIJ5cm.js.map} +1 -1
- package/dist/RoutersTab-DUvOfNhU.cjs +2 -0
- package/dist/{RoutersTab-CAbnSGHy.cjs.map → RoutersTab-DUvOfNhU.cjs.map} +1 -1
- package/dist/{ScriptChooser-CzzUJ1Zj.js → ScriptChooser-BxTJKTVu.js} +20 -19
- package/dist/{ScriptChooser-CzzUJ1Zj.js.map → ScriptChooser-BxTJKTVu.js.map} +1 -1
- package/dist/ScriptChooser-YC_FfCLd.cjs +2 -0
- package/dist/{ScriptChooser-CggwstfT.cjs.map → ScriptChooser-YC_FfCLd.cjs.map} +1 -1
- package/dist/{ScrollwindowWidget-kS5QjP-v.cjs → ScrollwindowWidget-D1mtHFMa.cjs} +2 -2
- package/dist/{ScrollwindowWidget-kS5QjP-v.cjs.map → ScrollwindowWidget-D1mtHFMa.cjs.map} +1 -1
- package/dist/{ScrollwindowWidget-DdjaML6D.js → ScrollwindowWidget-Dxhp7yKn.js} +2 -2
- package/dist/{ScrollwindowWidget-DdjaML6D.js.map → ScrollwindowWidget-Dxhp7yKn.js.map} +1 -1
- package/dist/SecretsTab-B7oZb354.cjs +2 -0
- package/dist/{SecretsTab-Cn6-o85L.cjs.map → SecretsTab-B7oZb354.cjs.map} +1 -1
- package/dist/{SecretsTab-Cu3sx2OA.js → SecretsTab-BoBmTh63.js} +5 -5
- package/dist/{SecretsTab-Cu3sx2OA.js.map → SecretsTab-BoBmTh63.js.map} +1 -1
- package/dist/SettingsTab-2EMyS-3_.cjs +3 -0
- package/dist/{SettingsTab-C6zIL2D6.cjs.map → SettingsTab-2EMyS-3_.cjs.map} +1 -1
- package/dist/{SettingsTab-B_vvSLvt.js → SettingsTab-BL7gkaO9.js} +7 -6
- package/dist/{SettingsTab-B_vvSLvt.js.map → SettingsTab-BL7gkaO9.js.map} +1 -1
- package/dist/{SignalWidget-Dd54y28I.js → SignalWidget-65q0tiuo.js} +2 -2
- package/dist/{SignalWidget-Dd54y28I.js.map → SignalWidget-65q0tiuo.js.map} +1 -1
- package/dist/{SignalWidget-BagcB92r.cjs → SignalWidget-Cld2lVyc.cjs} +2 -2
- package/dist/{SignalWidget-BagcB92r.cjs.map → SignalWidget-Cld2lVyc.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-DZv9n_kJ.js → SimpleTextDialog-ChmFtdVw.js} +2 -2
- package/dist/{SimpleTextDialog-DZv9n_kJ.js.map → SimpleTextDialog-ChmFtdVw.js.map} +1 -1
- package/dist/{SimpleTextDialog-BJ50TbWh.cjs → SimpleTextDialog-DVlqwD8O.cjs} +2 -2
- package/dist/{SimpleTextDialog-BJ50TbWh.cjs.map → SimpleTextDialog-DVlqwD8O.cjs.map} +1 -1
- package/dist/{SpacerWidget-GPFYtIG1.js → SpacerWidget-DFzbojmX.js} +2 -2
- package/dist/{SpacerWidget-GPFYtIG1.js.map → SpacerWidget-DFzbojmX.js.map} +1 -1
- package/dist/{SpacerWidget-DWjBns9r.cjs → SpacerWidget-DV0-ZfEm.cjs} +2 -2
- package/dist/{SpacerWidget-DWjBns9r.cjs.map → SpacerWidget-DV0-ZfEm.cjs.map} +1 -1
- package/dist/SparklineWidget-B1RfTxEp.cjs +2 -0
- package/dist/{SparklineWidget-xdPgolp3.cjs.map → SparklineWidget-B1RfTxEp.cjs.map} +1 -1
- package/dist/{SparklineWidget-f11nrlLS.js → SparklineWidget-Bu4I8zY0.js} +10 -9
- package/dist/{SparklineWidget-f11nrlLS.js.map → SparklineWidget-Bu4I8zY0.js.map} +1 -1
- package/dist/{TabbookWidget-DeaC27yC.js → TabbookWidget-CELMWyx7.js} +2 -2
- package/dist/{TabbookWidget-DeaC27yC.js.map → TabbookWidget-CELMWyx7.js.map} +1 -1
- package/dist/{TabbookWidget-CUIYWHRH.cjs → TabbookWidget-CLpx5e5Q.cjs} +2 -2
- package/dist/{TabbookWidget-CUIYWHRH.cjs.map → TabbookWidget-CLpx5e5Q.cjs.map} +1 -1
- package/dist/{TargetPacketItemChooser-BoBqvs3T.js → TargetPacketItemChooser-BOdVLVbe.js} +177 -153
- package/dist/TargetPacketItemChooser-BOdVLVbe.js.map +1 -0
- package/dist/TargetPacketItemChooser-xoRA3b9K.cjs +2 -0
- package/dist/TargetPacketItemChooser-xoRA3b9K.cjs.map +1 -0
- package/dist/{TargetsTab-CjVaBN9O.js → TargetsTab-BJZEtKY4.js} +11 -10
- package/dist/{TargetsTab-CjVaBN9O.js.map → TargetsTab-BJZEtKY4.js.map} +1 -1
- package/dist/TargetsTab-Dkp4VoK6.cjs +2 -0
- package/dist/{TargetsTab-BMcWjrZ_.cjs.map → TargetsTab-Dkp4VoK6.cjs.map} +1 -1
- package/dist/{TextboxWidget-tL41zWUX.js → TextboxWidget-DYsqXntS.js} +7 -6
- package/dist/{TextboxWidget-tL41zWUX.js.map → TextboxWidget-DYsqXntS.js.map} +1 -1
- package/dist/TextboxWidget-DuNmhz89.cjs +2 -0
- package/dist/{TextboxWidget-CXA9rR02.cjs.map → TextboxWidget-DuNmhz89.cjs.map} +1 -1
- package/dist/{TextfieldWidget-D1qj14Qi.js → TextfieldWidget-BIUgV9Q4.js} +2 -2
- package/dist/{TextfieldWidget-D1qj14Qi.js.map → TextfieldWidget-BIUgV9Q4.js.map} +1 -1
- package/dist/{TextfieldWidget-D-H2fOZG.cjs → TextfieldWidget-BlW-rSVv.cjs} +2 -2
- package/dist/{TextfieldWidget-D-H2fOZG.cjs.map → TextfieldWidget-BlW-rSVv.cjs.map} +1 -1
- package/dist/{TimeWidget-CSVGNong.js → TimeWidget-BPXcY1Wy.js} +7 -6
- package/dist/{TimeWidget-CSVGNong.js.map → TimeWidget-BPXcY1Wy.js.map} +1 -1
- package/dist/TimeWidget-BddmbQgt.cjs +2 -0
- package/dist/{TimeWidget-CGk8Ze_I.cjs.map → TimeWidget-BddmbQgt.cjs.map} +1 -1
- package/dist/{TitleWidget-ClhWhUf3.cjs → TitleWidget-CPqwZKUx.cjs} +2 -2
- package/dist/{TitleWidget-ClhWhUf3.cjs.map → TitleWidget-CPqwZKUx.cjs.map} +1 -1
- package/dist/{TitleWidget-CLx-tuYT.js → TitleWidget-DJ9mHRLE.js} +2 -2
- package/dist/{TitleWidget-CLx-tuYT.js.map → TitleWidget-DJ9mHRLE.js.map} +1 -1
- package/dist/ToolsTab-B4CURni4.cjs +2 -0
- package/dist/{ToolsTab-DTHap-Nq.cjs.map → ToolsTab-B4CURni4.cjs.map} +1 -1
- package/dist/{ToolsTab-lBB_KhmA.js → ToolsTab-VSCWDywf.js} +62 -61
- package/dist/{ToolsTab-lBB_KhmA.js.map → ToolsTab-VSCWDywf.js.map} +1 -1
- package/dist/{TopBar-C810rP_B.js → TopBar-B4oz2FsN.js} +2 -2
- package/dist/{TopBar-C810rP_B.js.map → TopBar-B4oz2FsN.js.map} +1 -1
- package/dist/{TopBar-Ctzx7o2k.cjs → TopBar-lcB6jpd_.cjs} +2 -2
- package/dist/{TopBar-Ctzx7o2k.cjs.map → TopBar-lcB6jpd_.cjs.map} +1 -1
- package/dist/TsdbTab-Cv8GjpoJ.js +1164 -0
- package/dist/TsdbTab-Cv8GjpoJ.js.map +1 -0
- package/dist/TsdbTab-OOO451j0.cjs +5 -0
- package/dist/TsdbTab-OOO451j0.cjs.map +1 -0
- package/dist/{UpgradeToEnterpriseDialog-D_S574Zb.js → UpgradeToEnterpriseDialog-BUuXsGPY.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-D_S574Zb.js.map → UpgradeToEnterpriseDialog-BUuXsGPY.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-XJb6gVCY.cjs → UpgradeToEnterpriseDialog-DHLK6v6f.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-XJb6gVCY.cjs.map → UpgradeToEnterpriseDialog-DHLK6v6f.cjs.map} +1 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-CTNR19Zt.cjs +1477 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-CTNR19Zt.cjs.map +1 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-DskbVSHX.js +26306 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-DskbVSHX.js.map +1 -0
- package/dist/VWidget-B6WHN0_z.cjs +2 -0
- package/dist/VWidget-B6WHN0_z.cjs.map +1 -0
- package/dist/{VWidget-CxnaMF0w.js → VWidget-BDy0211S.js} +17 -20
- package/dist/VWidget-BDy0211S.js.map +1 -0
- package/dist/{ValueWidget-BYgpXfDo.js → ValueWidget-DzOSy7lp.js} +7 -6
- package/dist/{ValueWidget-BYgpXfDo.js.map → ValueWidget-DzOSy7lp.js.map} +1 -1
- package/dist/ValueWidget-QWzoEFXc.cjs +2 -0
- package/dist/{ValueWidget-Bws1qOEI.cjs.map → ValueWidget-QWzoEFXc.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-BoZSJvuq.cjs → ValuelimitsbarWidget-5AkAljK-.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-BoZSJvuq.cjs.map → ValuelimitsbarWidget-5AkAljK-.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-Dc9-VNZ3.js → ValuelimitsbarWidget-D5dSlW6D.js} +4 -4
- package/dist/{ValuelimitsbarWidget-Dc9-VNZ3.js.map → ValuelimitsbarWidget-D5dSlW6D.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-b7W8K3mR.js → ValuelimitscolumnWidget-7DXCsVW_.js} +4 -4
- package/dist/{ValuelimitscolumnWidget-b7W8K3mR.js.map → ValuelimitscolumnWidget-7DXCsVW_.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-ta9i_tiy.cjs → ValuelimitscolumnWidget-zNx9i1v7.cjs} +2 -2
- package/dist/{ValuelimitscolumnWidget-ta9i_tiy.cjs.map → ValuelimitscolumnWidget-zNx9i1v7.cjs.map} +1 -1
- package/dist/{ValuerangebarWidget-DmhczZQb.js → ValuerangebarWidget-BWjnpmyy.js} +4 -4
- package/dist/{ValuerangebarWidget-DmhczZQb.js.map → ValuerangebarWidget-BWjnpmyy.js.map} +1 -1
- package/dist/{ValuerangebarWidget-Ips-beG6.cjs → ValuerangebarWidget-EsdIz4oP.cjs} +2 -2
- package/dist/{ValuerangebarWidget-Ips-beG6.cjs.map → ValuerangebarWidget-EsdIz4oP.cjs.map} +1 -1
- package/dist/{VerticalWidget-BvsVh0Ob.js → VerticalWidget-BOtXAhxt.js} +2 -2
- package/dist/{VerticalWidget-BvsVh0Ob.js.map → VerticalWidget-BOtXAhxt.js.map} +1 -1
- package/dist/{VerticalWidget-BVt7QPjO.cjs → VerticalWidget-DVskS6fx.cjs} +2 -2
- package/dist/{VerticalWidget-BVt7QPjO.cjs.map → VerticalWidget-DVskS6fx.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-CNoXT3YW.cjs → VerticalboxWidget-Bu4oHN2K.cjs} +2 -2
- package/dist/{VerticalboxWidget-CNoXT3YW.cjs.map → VerticalboxWidget-Bu4oHN2K.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-ClTCDCQN.js → VerticalboxWidget-RAsXfGdI.js} +5 -5
- package/dist/{VerticalboxWidget-ClTCDCQN.js.map → VerticalboxWidget-RAsXfGdI.js.map} +1 -1
- package/dist/{Widget-DRhVdCLP.js → Widget-BDsgRxuV.js} +37 -14
- package/dist/{Widget-DRhVdCLP.js.map → Widget-BDsgRxuV.js.map} +1 -1
- package/dist/Widget-Ddu_kuTL.cjs +2 -0
- package/dist/{Widget-CB_BtOFw.cjs.map → Widget-Ddu_kuTL.cjs.map} +1 -1
- package/dist/{addMonths-Zggd7y6j.js → addMonths-BiRF9eDT.js} +2 -2
- package/dist/{addMonths-Zggd7y6j.js.map → addMonths-BiRF9eDT.js.map} +1 -1
- package/dist/{addMonths-BhOW2mOW.cjs → addMonths-Ds2ObZwt.cjs} +2 -2
- package/dist/{addMonths-BhOW2mOW.cjs.map → addMonths-Ds2ObZwt.cjs.map} +1 -1
- package/dist/components.cjs +2 -2
- package/dist/components.js +28 -28
- package/dist/format-D2pYLAIF.js +5896 -0
- package/dist/format-D2pYLAIF.js.map +1 -0
- package/dist/format-qjtPogBb.cjs +13 -0
- package/dist/format-qjtPogBb.cjs.map +1 -0
- package/dist/getDefaultOptions-DSMQojSA.cjs +2 -0
- package/dist/{getDefaultOptions-Cek5kGzE.cjs.map → getDefaultOptions-DSMQojSA.cjs.map} +1 -1
- package/dist/getDefaultOptions-v3X-F5jM.js +8 -0
- package/dist/{getDefaultOptions-xjgn1r-_.js.map → getDefaultOptions-v3X-F5jM.js.map} +1 -1
- package/dist/{index-GYAZJDxn.js → index-BJCQaZ7q.js} +63 -62
- package/dist/{index-GYAZJDxn.js.map → index-BJCQaZ7q.js.map} +1 -1
- package/dist/{index-CJcL4_a4.js → index-BjcgyMLV.js} +691 -633
- package/dist/index-BjcgyMLV.js.map +1 -0
- package/dist/{index-3sXOEKCU.cjs → index-CctPeecq.cjs} +5 -5
- package/dist/{index-3sXOEKCU.cjs.map → index-CctPeecq.cjs.map} +1 -1
- package/dist/index-_a-NnvKv.cjs +10 -0
- package/dist/index-_a-NnvKv.cjs.map +1 -0
- package/dist/{parse-BKTTGw2p.js → parse-Br4M7sX4.js} +3 -3
- package/dist/{parse-BKTTGw2p.js.map → parse-Br4M7sX4.js.map} +1 -1
- package/dist/{parse-DgZTYocC.cjs → parse-D8syXcjd.cjs} +2 -2
- package/dist/{parse-DgZTYocC.cjs.map → parse-D8syXcjd.cjs.map} +1 -1
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.js +1 -1
- package/dist/plugins.js.map +1 -1
- package/dist/purify.es-CehoGjrR.cjs +3 -0
- package/dist/purify.es-CehoGjrR.cjs.map +1 -0
- package/dist/purify.es-exIQuqhb.js +596 -0
- package/dist/purify.es-exIQuqhb.js.map +1 -0
- package/dist/settings-CWvCIKI4.cjs +2 -0
- package/dist/{settings-B0AhztTk.cjs.map → settings-CWvCIKI4.cjs.map} +1 -1
- package/dist/{settings-C2auUQwX.js → settings-Dvmurty6.js} +2 -2
- package/dist/{settings-C2auUQwX.js.map → settings-Dvmurty6.js.map} +1 -1
- package/dist/settingsCache-CGgEjlw3.js +28 -0
- package/dist/settingsCache-CGgEjlw3.js.map +1 -0
- package/dist/settingsCache-Dg7OMDJK.cjs +2 -0
- package/dist/settingsCache-Dg7OMDJK.cjs.map +1 -0
- package/dist/{timeFilters-CRNRsUsb.cjs → timeFilters-BtN2a5-O.cjs} +2 -2
- package/dist/{timeFilters-CRNRsUsb.cjs.map → timeFilters-BtN2a5-O.cjs.map} +1 -1
- package/dist/{timeFilters-DTOZtBlG.js → timeFilters-C1beMtAQ.js} +3 -3
- package/dist/{timeFilters-DTOZtBlG.js.map → timeFilters-C1beMtAQ.js.map} +1 -1
- package/dist/tools/admin.cjs +1 -1
- package/dist/tools/admin.js +1 -1
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.cjs.map +1 -1
- package/dist/tools/base.js +51 -51
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.js +1 -1
- package/dist/tools/scriptrunner.cjs +8 -8
- package/dist/tools/scriptrunner.cjs.map +1 -1
- package/dist/tools/scriptrunner.js +17 -17
- package/dist/tools/scriptrunner.js.map +1 -1
- package/dist/util.cjs +1 -1
- package/dist/util.js +11 -7
- package/dist/util.js.map +1 -1
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +64 -64
- package/package.json +7 -7
- package/dist/ArrayplotWidget-BHD-TGQO.cjs +0 -2
- package/dist/BarColumn-DmjMnw5l.js.map +0 -1
- package/dist/BarColumn-Ym4P8YHC.cjs +0 -2
- package/dist/BarColumn-Ym4P8YHC.cjs.map +0 -1
- package/dist/ButtonWidget-70hNWuEy.cjs +0 -3
- package/dist/ButtonWidget-70hNWuEy.cjs.map +0 -1
- package/dist/ButtonWidget-DZ4VCNWU.js.map +0 -1
- package/dist/ClassificationBanners-DjGCuH-4.cjs +0 -2
- package/dist/CriticalCmdDialog-eytxCQto.cjs +0 -2
- package/dist/DateWidget-Cle8FY8Q.cjs +0 -2
- package/dist/DetailsDialog-BcMaTfuQ.cjs +0 -2
- package/dist/EventListDialog-DjCQAwGl.js.map +0 -1
- package/dist/EventListDialog-EmC7YW60.cjs +0 -2
- package/dist/EventListDialog-EmC7YW60.cjs.map +0 -1
- package/dist/FilechecksumWidget-2ta-UvLp.cjs +0 -2
- package/dist/FiledisplayWidget-BUKXIQir.cjs +0 -2
- package/dist/Graph-CUFzx8Ti.js.map +0 -1
- package/dist/Graph-qxF4224c.cjs +0 -2
- package/dist/Graph-qxF4224c.cjs.map +0 -1
- package/dist/GraphWidget-BvCQHVxQ.cjs +0 -2
- package/dist/ImageLoader-BTEOukIw.cjs +0 -2
- package/dist/InterfacesTab-CM0CGFVS.cjs +0 -2
- package/dist/LabelvalueWidget-_1JPbK-K.js.map +0 -1
- package/dist/LabelvalueWidget-bYqqgIGE.cjs +0 -2
- package/dist/LabelvalueWidget-bYqqgIGE.cjs.map +0 -1
- package/dist/LabelvaluedescWidget-B2dFZoDE.cjs +0 -2
- package/dist/LabelvaluedescWidget-B2dFZoDE.cjs.map +0 -1
- package/dist/LabelvaluedescWidget-BgduSJJb.js +0 -59
- package/dist/LabelvaluedescWidget-BgduSJJb.js.map +0 -1
- package/dist/LedWidget-BaiKDozd.cjs +0 -2
- package/dist/LimitscolorWidget-veWQ4NXl.cjs +0 -2
- package/dist/LinegraphWidget-3E8L5CvM.cjs +0 -2
- package/dist/OpenC3TimePicker-DpkbfbgC.js.map +0 -1
- package/dist/OpenC3TimePicker-Yl1jVi7p.cjs +0 -2
- package/dist/OpenC3TimePicker-Yl1jVi7p.cjs.map +0 -1
- package/dist/Openc3Screen-D1RLlBgQ.cjs +0 -6
- package/dist/OutputDialog-ChPCaQAE.cjs +0 -2
- package/dist/PackagesTab-BgQsbXRo.cjs +0 -2
- package/dist/PluginsTab-BiiL622n.js.map +0 -1
- package/dist/PluginsTab-RgIMk-F7.cjs +0 -6
- package/dist/PluginsTab-RgIMk-F7.cjs.map +0 -1
- package/dist/RedisTab-7TbOXFA_.js +0 -171
- package/dist/RedisTab-7TbOXFA_.js.map +0 -1
- package/dist/RedisTab-DpWPY1P0.cjs +0 -2
- package/dist/RedisTab-DpWPY1P0.cjs.map +0 -1
- package/dist/RoutersTab-CAbnSGHy.cjs +0 -2
- package/dist/ScriptChooser-CggwstfT.cjs +0 -2
- package/dist/SecretsTab-Cn6-o85L.cjs +0 -2
- package/dist/SettingsTab-C6zIL2D6.cjs +0 -3
- package/dist/SparklineWidget-xdPgolp3.cjs +0 -2
- package/dist/TargetPacketItemChooser-BoBqvs3T.js.map +0 -1
- package/dist/TargetPacketItemChooser-C0Z90rss.cjs +0 -2
- package/dist/TargetPacketItemChooser-C0Z90rss.cjs.map +0 -1
- package/dist/TargetsTab-BMcWjrZ_.cjs +0 -2
- package/dist/TextboxWidget-CXA9rR02.cjs +0 -2
- package/dist/TimeWidget-CGk8Ze_I.cjs +0 -2
- package/dist/ToolsTab-DTHap-Nq.cjs +0 -2
- package/dist/TsdbTab-7F4mRKDo.js +0 -125
- package/dist/TsdbTab-7F4mRKDo.js.map +0 -1
- package/dist/TsdbTab-DVF6n9mq.cjs +0 -2
- package/dist/TsdbTab-DVF6n9mq.cjs.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-BJxLUZhh.js +0 -30891
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-BJxLUZhh.js.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-eKtA_EtD.cjs +0 -1485
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-eKtA_EtD.cjs.map +0 -1
- package/dist/VWidget-CxnaMF0w.js.map +0 -1
- package/dist/VWidget-dEHSEvZx.cjs +0 -2
- package/dist/VWidget-dEHSEvZx.cjs.map +0 -1
- package/dist/ValueWidget-Bws1qOEI.cjs +0 -2
- package/dist/Widget-CB_BtOFw.cjs +0 -2
- package/dist/format-CJYjW-xx.js +0 -1252
- package/dist/format-CJYjW-xx.js.map +0 -1
- package/dist/format-DOZQNf-X.cjs +0 -2
- package/dist/format-DOZQNf-X.cjs.map +0 -1
- package/dist/getDefaultOptions-Cek5kGzE.cjs +0 -2
- package/dist/getDefaultOptions-xjgn1r-_.js +0 -8
- package/dist/index-B34azWgs.cjs +0 -7
- package/dist/index-B34azWgs.cjs.map +0 -1
- package/dist/index-CJcL4_a4.js.map +0 -1
- package/dist/purify.es-4pyphLiB.cjs +0 -3
- package/dist/purify.es-4pyphLiB.cjs.map +0 -1
- package/dist/purify.es-BPDBzHtc.js +0 -553
- package/dist/purify.es-BPDBzHtc.js.map +0 -1
- package/dist/settings-B0AhztTk.cjs +0 -2
package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-CTNR19Zt.cjs
ADDED
|
@@ -0,0 +1,1477 @@
|
|
|
1
|
+
"use strict";const je=require("vue"),s0=require("./CustomIcon-8F08upeg.cjs"),a0=require("./format-qjtPogBb.cjs");var to=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wa(F){return F&&F.__esModule&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F}var Cl={exports:{}},Oh;function l0(){return Oh||(Oh=1,(function(F,V){(function(){var f="ace",b=(function(){return this})();!b&&typeof window<"u"&&(b=window);var z=function(s,o,i){if(typeof s!="string"){z.original?z.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(i=o),z.modules[s]||(z.payloads[s]=i,z.modules[s]=null)};z.modules={},z.payloads={};var R=function(s,o,i){if(typeof o=="string"){var r=u(s,o);if(r!=null)return i&&i(),r}else if(Object.prototype.toString.call(o)==="[object Array]"){for(var t=[],n=0,a=o.length;n<a;++n){var d=u(s,o[n]);if(d==null&&_.original)return;t.push(d)}return i&&i.apply(null,t)||!0}},_=function(s,o){var i=R("",s,o);return i==null&&_.original?_.original.apply(this,arguments):i},S=function(s,o){if(o.indexOf("!")!==-1){var i=o.split("!");return S(s,i[0])+"!"+S(s,i[1])}if(o.charAt(0)=="."){var r=s.split("/").slice(0,-1).join("/");for(o=r+"/"+o;o.indexOf(".")!==-1&&t!=o;){var t=o;o=o.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return o},u=function(s,o){o=S(s,o);var i=z.modules[o];if(!i){if(i=z.payloads[o],typeof i=="function"){var r={},t={id:o,uri:"",exports:r,packaged:!0},n=function(d,g){return R(o,d,g)},a=i(n,r,t);r=a||t.exports,z.modules[o]=r,delete z.payloads[o]}i=z.modules[o]=r||i}return i};function h(s){var o=b;b[s]||(b[s]={}),o=b[s],(!o.define||!o.define.packaged)&&(z.original=o.define,o.define=z,o.define.packaged=!0),(!o.require||!o.require.packaged)&&(_.original=o.require,o.require=_,o.require.packaged=!0)}h(f)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(f,b,z){function R(_,S,u){Object.defineProperty(_,S,{value:u,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||R(String.prototype,"startsWith",function(_,S){return S=S||0,this.lastIndexOf(_,S)===S}),String.prototype.endsWith||R(String.prototype,"endsWith",function(_,S){var u=this;(S===void 0||S>u.length)&&(S=u.length),S-=_.length;var h=u.indexOf(_,S);return h!==-1&&h===S}),String.prototype.repeat||R(String.prototype,"repeat",function(_){for(var S="",u=this;_>0;)_&1&&(S+=u),(_>>=1)&&(u+=u);return S}),String.prototype.includes||R(String.prototype,"includes",function(_,S){return this.indexOf(_,S)!=-1}),Object.assign||(Object.assign=function(_){if(_==null)throw new TypeError("Cannot convert undefined or null to object");for(var S=Object(_),u=1;u<arguments.length;u++){var h=arguments[u];h!=null&&Object.keys(h).forEach(function(s){S[s]=h[s]})}return S}),Object.values||(Object.values=function(_){return Object.keys(_).map(function(S){return _[S]})}),Array.prototype.find||R(Array.prototype,"find",function(_){for(var S=this.length,u=arguments[1],h=0;h<S;h++){var s=this[h];if(_.call(u,s,h,this))return s}}),Array.prototype.findIndex||R(Array.prototype,"findIndex",function(_){for(var S=this.length,u=arguments[1],h=0;h<S;h++){var s=this[h];if(_.call(u,s,h,this))return h}}),Array.prototype.includes||R(Array.prototype,"includes",function(_,S){return this.indexOf(_,S)!=-1}),Array.prototype.fill||R(Array.prototype,"fill",function(_){for(var S=this,u=S.length>>>0,h=arguments[1],s=h>>0,o=s<0?Math.max(u+s,0):Math.min(s,u),i=arguments[2],r=i===void 0?u:i>>0,t=r<0?Math.max(u+r,0):Math.min(r,u);o<t;)S[o]=_,o++;return S}),Array.of||R(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(f,b,z){f("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(f,b,z){b.deepCopy=function R(_){if(typeof _!="object"||!_)return _;var S;if(Array.isArray(_)){S=[];for(var u=0;u<_.length;u++)S[u]=R(_[u]);return S}if(Object.prototype.toString.call(_)!=="[object Object]")return _;S={};for(var u in _)S[u]=R(_[u]);return S}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(f,b,z){b.last=function(S){return S[S.length-1]},b.stringReverse=function(S){return S.split("").reverse().join("")},b.stringRepeat=function(S,u){for(var h="";u>0;)u&1&&(h+=S),(u>>=1)&&(S+=S);return h};var R=/^\s\s*/,_=/\s\s*$/;b.stringTrimLeft=function(S){return S.replace(R,"")},b.stringTrimRight=function(S){return S.replace(_,"")},b.copyObject=function(S){var u={};for(var h in S)u[h]=S[h];return u},b.copyArray=function(S){for(var u=[],h=0,s=S.length;h<s;h++)S[h]&&typeof S[h]=="object"?u[h]=this.copyObject(S[h]):u[h]=S[h];return u},b.deepCopy=f("./deep_copy").deepCopy,b.arrayToMap=function(S){for(var u={},h=0;h<S.length;h++)u[S[h]]=1;return u},b.createMap=function(S){var u=Object.create(null);for(var h in S)u[h]=S[h];return u},b.arrayRemove=function(S,u){for(var h=0;h<=S.length;h++)u===S[h]&&S.splice(h,1)},b.escapeRegExp=function(S){return S.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},b.escapeHTML=function(S){return(""+S).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},b.getMatchOffsets=function(S,u){var h=[];return S.replace(u,function(s){h.push({offset:arguments[arguments.length-2],length:s.length})}),h},b.deferredCall=function(S){var u=null,h=function(){u=null,S()},s=function(o){return s.cancel(),u=setTimeout(h,o||0),s};return s.schedule=s,s.call=function(){return this.cancel(),S(),s},s.cancel=function(){return clearTimeout(u),u=null,s},s.isPending=function(){return u},s},b.delayedCall=function(S,u){var h=null,s=function(){h=null,S()},o=function(i){h==null&&(h=setTimeout(s,i||u))};return o.delay=function(i){h&&clearTimeout(h),h=setTimeout(s,i||u)},o.schedule=o,o.call=function(){this.cancel(),S()},o.cancel=function(){h&&clearTimeout(h),h=null},o.isPending=function(){return h},o},b.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},b.skipEmptyMatch=function(S,u,h){return h&&S.codePointAt(u)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(f,b,z){b.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},b.getOS=function(){return b.isMac?b.OS.MAC:b.isLinux?b.OS.LINUX:b.OS.WINDOWS};var R=typeof navigator=="object"?navigator:{},_=(/mac|win|linux/i.exec(R.platform)||["other"])[0].toLowerCase(),S=R.userAgent||"",u=R.appName||"";b.isWin=_=="win",b.isMac=_=="mac",b.isLinux=_=="linux",b.isIE=u=="Microsoft Internet Explorer"||u.indexOf("MSAppHost")>=0?parseFloat((S.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((S.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),b.isOldIE=b.isIE&&b.isIE<9,b.isGecko=b.isMozilla=S.match(/ Gecko\/\d+/),b.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",b.isWebKit=parseFloat(S.split("WebKit/")[1])||void 0,b.isChrome=parseFloat(S.split(" Chrome/")[1])||void 0,b.isSafari=parseFloat(S.split(" Safari/")[1])&&!b.isChrome||void 0,b.isEdge=parseFloat(S.split(" Edge/")[1])||void 0,b.isAIR=S.indexOf("AdobeAIR")>=0,b.isAndroid=S.indexOf("Android")>=0,b.isChromeOS=S.indexOf(" CrOS ")>=0,b.isIOS=/iPad|iPhone|iPod/.test(S)&&!window.MSStream,b.isIOS&&(b.isMac=!0),b.isMobile=b.isIOS||b.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(f,b,z){var R=f("./useragent"),_="http://www.w3.org/1999/xhtml";b.buildDom=function i(r,t,n){if(typeof r=="string"&&r){var a=document.createTextNode(r);return t&&t.appendChild(a),a}if(!Array.isArray(r))return r&&r.appendChild&&t&&t.appendChild(r),r;if(typeof r[0]!="string"||!r[0]){for(var d=[],g=0;g<r.length;g++){var L=i(r[g],t,n);L&&d.push(L)}return d}var C=document.createElement(r[0]),y=r[1],p=1;y&&typeof y=="object"&&!Array.isArray(y)&&(p=2);for(var g=p;g<r.length;g++)i(r[g],C,n);return p==2&&Object.keys(y).forEach(function($){var I=y[$];$==="class"?C.className=Array.isArray(I)?I.join(" "):I:typeof I=="function"||$=="value"||$[0]=="$"?C[$]=I:$==="ref"?n&&(n[I]=C):$==="style"?typeof I=="string"&&(C.style.cssText=I):I!=null&&C.setAttribute($,I)}),t&&t.appendChild(C),C},b.getDocumentHead=function(i){return i||(i=document),i.head||i.getElementsByTagName("head")[0]||i.documentElement},b.createElement=function(i,r){return document.createElementNS?document.createElementNS(r||_,i):document.createElement(i)},b.removeChildren=function(i){i.innerHTML=""},b.createTextNode=function(i,r){var t=r?r.ownerDocument:document;return t.createTextNode(i)},b.createFragment=function(i){var r=i?i.ownerDocument:document;return r.createDocumentFragment()},b.hasCssClass=function(i,r){var t=(i.className+"").split(/\s+/g);return t.indexOf(r)!==-1},b.addCssClass=function(i,r){b.hasCssClass(i,r)||(i.className+=" "+r)},b.removeCssClass=function(i,r){for(var t=i.className.split(/\s+/g);;){var n=t.indexOf(r);if(n==-1)break;t.splice(n,1)}i.className=t.join(" ")},b.toggleCssClass=function(i,r){for(var t=i.className.split(/\s+/g),n=!0;;){var a=t.indexOf(r);if(a==-1)break;n=!1,t.splice(a,1)}return n&&t.push(r),i.className=t.join(" "),n},b.setCssClass=function(i,r,t){t?b.addCssClass(i,r):b.removeCssClass(i,r)},b.hasCssString=function(i,r){var t=0,n;if(r=r||document,n=r.querySelectorAll("style")){for(;t<n.length;)if(n[t++].id===i)return!0}},b.removeElementById=function(i,r){r=r||document,r.getElementById(i)&&r.getElementById(i).remove()};var S,u=[];b.useStrictCSP=function(i){S=i,i==!1?h():u||(u=[])};function h(){var i=u;u=null,i&&i.forEach(function(r){s(r[0],r[1])})}function s(i,r,t){if(!(typeof document>"u")){if(u){if(t)h();else if(t===!1)return u.push([i,r])}if(!S){var n=t;!t||!t.getRootNode?n=document:(n=t.getRootNode(),(!n||n==t)&&(n=document));var a=n.ownerDocument||n;if(r&&b.hasCssString(r,n))return null;r&&(i+=`
|
|
2
|
+
/*# sourceURL=ace/css/`+r+" */");var d=b.createElement("style");d.appendChild(a.createTextNode(i)),r&&(d.id=r),n==a&&(n=b.getDocumentHead(a)),n.insertBefore(d,n.firstChild)}}}if(b.importCssString=s,b.importCssStylsheet=function(i,r){b.buildDom(["link",{rel:"stylesheet",href:i}],b.getDocumentHead(r))},b.$fixPositionBug=function(i){var r=i.getBoundingClientRect();if(i.style.left){var t=parseFloat(i.style.left),n=+r.left;Math.abs(t-n)>1&&(i.style.left=2*t-n+"px")}if(i.style.right){var t=parseFloat(i.style.right),n=window.innerWidth-r.right;Math.abs(t-n)>1&&(i.style.right=2*t-n+"px")}if(i.style.top){var t=parseFloat(i.style.top),n=+r.top;Math.abs(t-n)>1&&(i.style.top=2*t-n+"px")}if(i.style.bottom){var t=parseFloat(i.style.bottom),n=window.innerHeight-r.bottom;Math.abs(t-n)>1&&(i.style.bottom=2*t-n+"px")}},b.scrollbarWidth=function(i){var r=b.createElement("ace_inner");r.style.width="100%",r.style.minWidth="0px",r.style.height="200px",r.style.display="block";var t=b.createElement("ace_outer"),n=t.style;n.position="absolute",n.left="-10000px",n.overflow="hidden",n.width="200px",n.minWidth="0px",n.height="150px",n.display="block",t.appendChild(r);var a=i&&i.documentElement||document&&document.documentElement;if(!a)return 0;a.appendChild(t);var d=r.offsetWidth;n.overflow="scroll";var g=r.offsetWidth;return d===g&&(g=t.clientWidth),a.removeChild(t),d-g},b.computedStyle=function(i,r){return window.getComputedStyle(i,"")||{}},b.setStyle=function(i,r,t){i[r]!==t&&(i[r]=t)},b.HAS_CSS_ANIMATION=!1,b.HAS_CSS_TRANSFORMS=!1,b.HI_DPI=R.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,R.isChromeOS&&(b.HI_DPI=!1),typeof document<"u"){var o=document.createElement("div");b.HI_DPI&&o.style.transform!==void 0&&(b.HAS_CSS_TRANSFORMS=!0),!R.isEdge&&typeof o.style.animationName<"u"&&(b.HAS_CSS_ANIMATION=!0),o=null}b.HAS_CSS_TRANSFORMS?b.translate=function(i,r,t){i.style.transform="translate("+Math.round(r)+"px, "+Math.round(t)+"px)"}:b.translate=function(i,r,t){i.style.top=Math.round(t)+"px",i.style.left=Math.round(r)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(f,b,z){var R=f("./dom");b.get=function(_,S){var u=new XMLHttpRequest;u.open("GET",_,!0),u.onreadystatechange=function(){u.readyState===4&&S(u.responseText)},u.send(null)},b.loadScript=function(_,S){var u=R.getDocumentHead(),h=document.createElement("script");h.src=_,u.appendChild(h),h.onload=h.onreadystatechange=function(s,o){(o||!h.readyState||h.readyState=="loaded"||h.readyState=="complete")&&(h=h.onload=h.onreadystatechange=null,o||S())}},b.qualifyURL=function(_){var S=document.createElement("a");return S.href=_,S.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(f,b,z){b.inherits=function(R,_){R.super_=_,R.prototype=Object.create(_.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}})},b.mixin=function(R,_){for(var S in _)R[S]=_[S];return R},b.implement=function(R,_){b.mixin(R,_)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(f,b,z){var R={},_=function(){this.propagationStopped=!0},S=function(){this.defaultPrevented=!0};R._emit=R._dispatchEvent=function(u,h){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[u]||[],o=this._defaultHandlers[u];if(!(!s.length&&!o)){(typeof h!="object"||!h)&&(h={}),h.type||(h.type=u),h.stopPropagation||(h.stopPropagation=_),h.preventDefault||(h.preventDefault=S),s=s.slice();for(var i=0;i<s.length&&(s[i](h,this),!h.propagationStopped);i++);if(o&&!h.defaultPrevented)return o(h,this)}},R._signal=function(u,h){var s=(this._eventRegistry||{})[u];if(s){s=s.slice();for(var o=0;o<s.length;o++)s[o](h,this)}},R.once=function(u,h){var s=this;if(this.on(u,function o(){s.off(u,o),h.apply(null,arguments)}),!h)return new Promise(function(o){h=o})},R.setDefaultHandler=function(u,h){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[u]){var o=s[u],i=s._disabled_[u];i||(s._disabled_[u]=i=[]),i.push(o);var r=i.indexOf(h);r!=-1&&i.splice(r,1)}s[u]=h},R.removeDefaultHandler=function(u,h){var s=this._defaultHandlers;if(s){var o=s._disabled_[u];if(s[u]==h)o&&this.setDefaultHandler(u,o.pop());else if(o){var i=o.indexOf(h);i!=-1&&o.splice(i,1)}}},R.on=R.addEventListener=function(u,h,s){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[u];return o||(o=this._eventRegistry[u]=[]),o.indexOf(h)==-1&&o[s?"unshift":"push"](h),h},R.off=R.removeListener=R.removeEventListener=function(u,h){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[u];if(s){var o=s.indexOf(h);o!==-1&&s.splice(o,1)}},R.removeAllListeners=function(u){u||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[u]=void 0),this._defaultHandlers&&(this._defaultHandlers[u]=void 0)},b.EventEmitter=R}),ace.define("ace/lib/report_error",["require","exports","module"],function(f,b,z){b.reportError=function(_,S){var u=new Error(_);u.data=S,typeof console=="object"&&console.error&&console.error(u),setTimeout(function(){throw u})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(f,b,z){var R={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"};b.defaultEnglishMessages=R}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(f,b,z){"no use strict";var R=f("./oop"),_=f("./event_emitter").EventEmitter,S=f("./report_error").reportError,u=f("./default_english_messages").defaultEnglishMessages,h={setOptions:function(t){Object.keys(t).forEach(function(n){this.setOption(n,t[n])},this)},getOptions:function(t){var n={};if(t)Array.isArray(t)||(t=Object.keys(t));else{var a=this.$options;t=Object.keys(a).filter(function(d){return!a[d].hidden})}return t.forEach(function(d){n[d]=this.getOption(d)},this),n},setOption:function(t,n){if(this["$"+t]!==n){var a=this.$options[t];if(!a)return s('misspelled option "'+t+'"');if(a.forwardTo)return this[a.forwardTo]&&this[a.forwardTo].setOption(t,n);a.handlesSet||(this["$"+t]=n),a&&a.set&&a.set.call(this,n)}},getOption:function(t){var n=this.$options[t];return n?n.forwardTo?this[n.forwardTo]&&this[n.forwardTo].getOption(t):n&&n.get?n.get.call(this):this["$"+t]:s('misspelled option "'+t+'"')}};function s(t){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var o,i,r=(function(){function t(){this.$defaultOptions={},o=u,i="dollarSigns"}return t.prototype.defineOptions=function(n,a,d){return n.$options||(this.$defaultOptions[a]=n.$options={}),Object.keys(d).forEach(function(g){var L=d[g];typeof L=="string"&&(L={forwardTo:L}),L.name||(L.name=g),n.$options[L.name]=L,"initialValue"in L&&(n["$"+L.name]=L.initialValue)}),R.implement(n,h),this},t.prototype.resetOptions=function(n){Object.keys(n.$options).forEach(function(a){var d=n.$options[a];"value"in d&&n.setOption(a,d.value)})},t.prototype.setDefaultValue=function(n,a,d){if(!n){for(n in this.$defaultOptions)if(this.$defaultOptions[n][a])break;if(!this.$defaultOptions[n][a])return!1}var g=this.$defaultOptions[n]||(this.$defaultOptions[n]={});g[a]&&(g.forwardTo?this.setDefaultValue(g.forwardTo,a,d):g[a].value=d)},t.prototype.setDefaultValues=function(n,a){Object.keys(a).forEach(function(d){this.setDefaultValue(n,d,a[d])},this)},t.prototype.setMessages=function(n,a){o=n,a&&a.placeholders&&(i=a.placeholders)},t.prototype.nls=function(n,a,d){o[n]||(s("No message found for the key '"+n+"' in messages with id "+o.$id+", trying to find a translation for the default string '"+a+"'."),o[a]||s("No message found for the default string '"+a+"' in the provided messages. Falling back to the default English message."));var g=o[n]||o[a]||a;return d&&(i==="dollarSigns"&&(g=g.replace(/\$(\$|[\d]+)/g,function(L,C){return C=="$"?"$":d[C]})),i==="curlyBrackets"&&(g=g.replace(/\{([^\}]+)\}/g,function(L,C){return d[C]}))),g},t})();r.prototype.warn=s,r.prototype.reportError=S,R.implement(r.prototype,_),b.AppConfig=r}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(f,b,z){z.exports=`.ace-tm .ace_gutter {
|
|
3
|
+
background: #f0f0f0;
|
|
4
|
+
color: #333;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.ace-tm .ace_print-margin {
|
|
8
|
+
width: 1px;
|
|
9
|
+
background: #e8e8e8;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ace-tm .ace_fold {
|
|
13
|
+
background-color: #6B72E6;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ace-tm {
|
|
17
|
+
background-color: #FFFFFF;
|
|
18
|
+
color: black;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ace-tm .ace_cursor {
|
|
22
|
+
color: black;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ace-tm .ace_invisible {
|
|
26
|
+
color: rgb(191, 191, 191);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ace-tm .ace_storage,
|
|
30
|
+
.ace-tm .ace_keyword {
|
|
31
|
+
color: blue;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ace-tm .ace_constant {
|
|
35
|
+
color: rgb(197, 6, 11);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ace-tm .ace_constant.ace_buildin {
|
|
39
|
+
color: rgb(88, 72, 246);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ace-tm .ace_constant.ace_language {
|
|
43
|
+
color: rgb(88, 92, 246);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ace-tm .ace_constant.ace_library {
|
|
47
|
+
color: rgb(6, 150, 14);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ace-tm .ace_invalid {
|
|
51
|
+
background-color: rgba(255, 0, 0, 0.1);
|
|
52
|
+
color: red;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ace-tm .ace_support.ace_function {
|
|
56
|
+
color: rgb(60, 76, 114);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ace-tm .ace_support.ace_constant {
|
|
60
|
+
color: rgb(6, 150, 14);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ace-tm .ace_support.ace_type,
|
|
64
|
+
.ace-tm .ace_support.ace_class {
|
|
65
|
+
color: rgb(109, 121, 222);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ace-tm .ace_keyword.ace_operator {
|
|
69
|
+
color: rgb(104, 118, 135);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ace-tm .ace_string {
|
|
73
|
+
color: rgb(3, 106, 7);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ace-tm .ace_comment {
|
|
77
|
+
color: rgb(76, 136, 107);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ace-tm .ace_comment.ace_doc {
|
|
81
|
+
color: rgb(0, 102, 255);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ace-tm .ace_comment.ace_doc.ace_tag {
|
|
85
|
+
color: rgb(128, 159, 191);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ace-tm .ace_constant.ace_numeric {
|
|
89
|
+
color: rgb(0, 0, 205);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ace-tm .ace_variable {
|
|
93
|
+
color: rgb(49, 132, 149);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ace-tm .ace_xml-pe {
|
|
97
|
+
color: rgb(104, 104, 91);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ace-tm .ace_entity.ace_name.ace_function {
|
|
101
|
+
color: #0000A2;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
.ace-tm .ace_heading {
|
|
106
|
+
color: rgb(12, 7, 255);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ace-tm .ace_list {
|
|
110
|
+
color:rgb(185, 6, 144);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ace-tm .ace_meta.ace_tag {
|
|
114
|
+
color:rgb(0, 22, 142);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ace-tm .ace_string.ace_regex {
|
|
118
|
+
color: rgb(255, 0, 0)
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ace-tm .ace_marker-layer .ace_selection {
|
|
122
|
+
background: rgb(181, 213, 255);
|
|
123
|
+
}
|
|
124
|
+
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
|
125
|
+
box-shadow: 0 0 3px 0px white;
|
|
126
|
+
}
|
|
127
|
+
.ace-tm .ace_marker-layer .ace_step {
|
|
128
|
+
background: rgb(252, 255, 0);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.ace-tm .ace_marker-layer .ace_stack {
|
|
132
|
+
background: rgb(164, 229, 101);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.ace-tm .ace_marker-layer .ace_bracket {
|
|
136
|
+
margin: -1px 0 0 -1px;
|
|
137
|
+
border: 1px solid rgb(192, 192, 192);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.ace-tm .ace_marker-layer .ace_active-line {
|
|
141
|
+
background: rgba(0, 0, 0, 0.07);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.ace-tm .ace_gutter-active-line {
|
|
145
|
+
background-color : #dcdcdc;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.ace-tm .ace_marker-layer .ace_selected-word {
|
|
149
|
+
background: rgb(250, 250, 255);
|
|
150
|
+
border: 1px solid rgb(200, 200, 250);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.ace-tm .ace_indent-guide {
|
|
154
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ace-tm .ace_indent-guide-active {
|
|
158
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
159
|
+
}
|
|
160
|
+
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(f,b,z){b.isDark=!1,b.cssClass="ace-tm",b.cssText=f("./textmate-css"),b.$id="ace/theme/textmate";var R=f("../lib/dom");R.importCssString(b.cssText,b.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(f,b,z){"no use strict";var R=f("./lib/lang"),_=f("./lib/net"),S=f("./lib/dom"),u=f("./lib/app_config").AppConfig;z.exports=b=new u;var h={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};b.get=function(r){if(!h.hasOwnProperty(r))throw new Error("Unknown config key: "+r);return h[r]},b.set=function(r,t){if(h.hasOwnProperty(r))h[r]=t;else if(this.setDefaultValue("",r,t)==!1)throw new Error("Unknown config key: "+r);r=="useStrictCSP"&&S.useStrictCSP(t)},b.all=function(){return R.copyObject(h)},b.$modes={},b.moduleUrl=function(r,t){if(h.$moduleUrls[r])return h.$moduleUrls[r];var n=r.split("/");t=t||n[n.length-2]||"";var a=t=="snippets"?"/":"-",d=n[n.length-1];if(t=="worker"&&a=="-"){var g=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");d=d.replace(g,"")}(!d||d==t)&&n.length>1&&(d=n[n.length-2]);var L=h[t+"Path"];return L==null?L=h.basePath:a=="/"&&(t=a=""),L&&L.slice(-1)!="/"&&(L+="/"),L+t+a+d+this.get("suffix")},b.setModuleUrl=function(r,t){return h.$moduleUrls[r]=t};var s=function(r,t){if(r==="ace/theme/textmate"||r==="./theme/textmate")return t(null,f("./theme/textmate"));if(o)return o(r,t);console.error("loader is not configured")},o;b.setLoader=function(r){o=r},b.dynamicModules=Object.create(null),b.$loading={},b.$loaded={},b.loadModule=function(r,t){var n;if(Array.isArray(r))var a=r[0],d=r[1];else if(typeof r=="string")var d=r;var g=function(L){if(L&&!b.$loading[d])return t&&t(L);if(b.$loading[d]||(b.$loading[d]=[]),b.$loading[d].push(t),!(b.$loading[d].length>1)){var C=function(){s(d,function(y,p){p&&(b.$loaded[d]=p),b._emit("load.module",{name:d,module:p});var $=b.$loading[d];b.$loading[d]=null,$.forEach(function(I){I&&I(p)})})};if(!b.get("packaged"))return C();_.loadScript(b.moduleUrl(d,a),C),i()}};if(b.dynamicModules[d])b.dynamicModules[d]().then(function(L){L.default?g(L.default):g(L)});else{try{n=this.$require(d)}catch{}g(n||b.$loaded[d])}},b.$require=function(r){if(typeof z.require=="function"){var t="require";return z[t](r)}},b.setModuleLoader=function(r,t){b.dynamicModules[r]=t};var i=function(){!h.basePath&&!h.workerPath&&!h.modePath&&!h.themePath&&!Object.keys(h.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),i=function(){})};b.version="1.43.6"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(f,b,z){f("./lib/fixoldbrowsers");var R=f("./config");R.setLoader(function(h,s){f([h],function(o){s(null,o)})});var _=(function(){return this||typeof window<"u"&&window})();z.exports=function(h){R.init=S,R.$require=f,h.require=f},S(!0);function S(h){if(!(!_||!_.document)){R.set("packaged",h||f.packaged||z.packaged||_.define&&(void 0).packaged);var s={},o="",i=document.currentScript||document._currentScript,r=i&&i.ownerDocument||document;i&&i.src&&(o=i.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var t=r.getElementsByTagName("script"),n=0;n<t.length;n++){var a=t[n],d=a.src||a.getAttribute("src");if(d){for(var g=a.attributes,L=0,C=g.length;L<C;L++){var y=g[L];y.name.indexOf("data-ace-")===0&&(s[u(y.name.replace(/^data-ace-/,""))]=y.value)}var p=d.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);p&&(o=p[1])}}o&&(s.base=s.base||o,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var $ in s)typeof s[$]<"u"&&R.set($,s[$])}}function u(h){return h.replace(/-(.)/g,function(s,o){return o.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(f,b,z){var R=(function(){function _(S,u,h,s){this.start={row:S,column:u},this.end={row:h,column:s}}return _.prototype.isEqual=function(S){return this.start.row===S.start.row&&this.end.row===S.end.row&&this.start.column===S.start.column&&this.end.column===S.end.column},_.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},_.prototype.contains=function(S,u){return this.compare(S,u)==0},_.prototype.compareRange=function(S){var u,h=S.end,s=S.start;return u=this.compare(h.row,h.column),u==1?(u=this.compare(s.row,s.column),u==1?2:u==0?1:0):u==-1?-2:(u=this.compare(s.row,s.column),u==-1?-1:u==1?42:0)},_.prototype.comparePoint=function(S){return this.compare(S.row,S.column)},_.prototype.containsRange=function(S){return this.comparePoint(S.start)==0&&this.comparePoint(S.end)==0},_.prototype.intersects=function(S){var u=this.compareRange(S);return u==-1||u==0||u==1},_.prototype.isEnd=function(S,u){return this.end.row==S&&this.end.column==u},_.prototype.isStart=function(S,u){return this.start.row==S&&this.start.column==u},_.prototype.setStart=function(S,u){typeof S=="object"?(this.start.column=S.column,this.start.row=S.row):(this.start.row=S,this.start.column=u)},_.prototype.setEnd=function(S,u){typeof S=="object"?(this.end.column=S.column,this.end.row=S.row):(this.end.row=S,this.end.column=u)},_.prototype.inside=function(S,u){return this.compare(S,u)==0?!(this.isEnd(S,u)||this.isStart(S,u)):!1},_.prototype.insideStart=function(S,u){return this.compare(S,u)==0?!this.isEnd(S,u):!1},_.prototype.insideEnd=function(S,u){return this.compare(S,u)==0?!this.isStart(S,u):!1},_.prototype.compare=function(S,u){return!this.isMultiLine()&&S===this.start.row?u<this.start.column?-1:u>this.end.column?1:0:S<this.start.row?-1:S>this.end.row?1:this.start.row===S?u>=this.start.column?0:-1:this.end.row===S?u<=this.end.column?0:1:0},_.prototype.compareStart=function(S,u){return this.start.row==S&&this.start.column==u?-1:this.compare(S,u)},_.prototype.compareEnd=function(S,u){return this.end.row==S&&this.end.column==u?1:this.compare(S,u)},_.prototype.compareInside=function(S,u){return this.end.row==S&&this.end.column==u?1:this.start.row==S&&this.start.column==u?-1:this.compare(S,u)},_.prototype.clipRows=function(S,u){if(this.end.row>u)var h={row:u+1,column:0};else if(this.end.row<S)var h={row:S,column:0};if(this.start.row>u)var s={row:u+1,column:0};else if(this.start.row<S)var s={row:S,column:0};return _.fromPoints(s||this.start,h||this.end)},_.prototype.extend=function(S,u){var h=this.compare(S,u);if(h==0)return this;if(h==-1)var s={row:S,column:u};else var o={row:S,column:u};return _.fromPoints(s||this.start,o||this.end)},_.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},_.prototype.isMultiLine=function(){return this.start.row!==this.end.row},_.prototype.clone=function(){return _.fromPoints(this.start,this.end)},_.prototype.collapseRows=function(){return this.end.column==0?new _(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new _(this.start.row,0,this.end.row,0)},_.prototype.toScreenRange=function(S){var u=S.documentToScreenPosition(this.start),h=S.documentToScreenPosition(this.end);return new _(u.row,u.column,h.row,h.column)},_.prototype.moveBy=function(S,u){this.start.row+=S,this.start.column+=u,this.end.row+=S,this.end.column+=u},_})();R.fromPoints=function(_,S){return new R(_.row,_.column,S.row,S.column)},R.comparePoints=function(_,S){return _.row-S.row||_.column-S.column},b.Range=R}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(f,b,z){for(var R=f("./oop"),_={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},S={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},u=0;u<10;u++)S["Digit"+u]=48+u,S["Numpad"+u]=96+u,_.PRINTABLE_KEYS[48+u]=""+u,_.FUNCTION_KEYS[96+u]="Numpad"+u;for(var u=65;u<91;u++){var h=String.fromCharCode(u+32);S["Key"+h.toUpperCase()]=u,_.PRINTABLE_KEYS[u]=h}for(var u=1;u<13;u++)S["F"+u]=111+u,_.FUNCTION_KEYS[111+u]="F"+u;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var o in s)S[o]=S[o+"Left"]=S[o+"Right"]=s[o];b.$codeToKeyCode=S,_.PRINTABLE_KEYS[173]="-";for(var i in _.FUNCTION_KEYS){var r=_.FUNCTION_KEYS[i].toLowerCase();_[r]=parseInt(i,10)}for(var i in _.PRINTABLE_KEYS){var r=_.PRINTABLE_KEYS[i].toLowerCase();_[r]=parseInt(i,10)}R.mixin(_,_.MODIFIER_KEYS),R.mixin(_,_.PRINTABLE_KEYS),R.mixin(_,_.FUNCTION_KEYS),_.enter=_.return,_.escape=_.esc,_.del=_.delete,(function(){for(var t=["cmd","ctrl","alt","shift"],n=Math.pow(2,t.length);n--;)_.KEY_MODS[n]=t.filter(function(a){return n&_.KEY_MODS[a]}).join("-")+"-"})(),_.KEY_MODS[0]="",_.KEY_MODS[-1]="input-",R.mixin(b,_),b.default=b,b.keyCodeToString=function(t){var n=_[t];return typeof n!="string"&&(n=String.fromCharCode(t)),n.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(f,b,z){var R=f("./keys"),_=f("./useragent"),S=null,u=0,h;function s(){h=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return h={passive:!1},!0}})}catch{}}function o(){return h==null&&s(),h}function i(L,C,y){this.elem=L,this.type=C,this.callback=y}i.prototype.destroy=function(){t(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var r=b.addListener=function(L,C,y,p){L.addEventListener(C,y,o()),p&&p.$toDestroy.push(new i(L,C,y))},t=b.removeListener=function(L,C,y){L.removeEventListener(C,y,o())};b.stopEvent=function(L){return b.stopPropagation(L),b.preventDefault(L),!1},b.stopPropagation=function(L){L.stopPropagation&&L.stopPropagation()},b.preventDefault=function(L){L.preventDefault&&L.preventDefault()},b.getButton=function(L){return L.type=="dblclick"?0:L.type=="contextmenu"||_.isMac&&L.ctrlKey&&!L.altKey&&!L.shiftKey?2:L.button},b.capture=function(L,C,y){var p=L&&L.ownerDocument||document;function $(I){C&&C(I),y&&y(I),t(p,"mousemove",C),t(p,"mouseup",$),t(p,"dragstart",$)}return r(p,"mousemove",C),r(p,"mouseup",$),r(p,"dragstart",$),$},b.addMouseWheelListener=function(L,C,y){r(L,"wheel",function(p){var $=.15,I=p.deltaX||0,M=p.deltaY||0;switch(p.deltaMode){case p.DOM_DELTA_PIXEL:p.wheelX=I*$,p.wheelY=M*$;break;case p.DOM_DELTA_LINE:var A=15;p.wheelX=I*A,p.wheelY=M*A;break;case p.DOM_DELTA_PAGE:var H=150;p.wheelX=I*H,p.wheelY=M*H;break}C(p)},y)},b.addMultiMouseDownListener=function(L,C,y,p,$){var I=0,M,A,H,D={2:"dblclick",3:"tripleclick",4:"quadclick"};function T(x){if(b.getButton(x)!==0?I=0:x.detail>1?(I++,I>4&&(I=1)):I=1,_.isIE){var m=Math.abs(x.clientX-M)>5||Math.abs(x.clientY-A)>5;(!H||m)&&(I=1),H&&clearTimeout(H),H=setTimeout(function(){H=null},C[I-1]||600),I==1&&(M=x.clientX,A=x.clientY)}if(x._clicks=I,y[p]("mousedown",x),I>4)I=0;else if(I>1)return y[p](D[I],x)}Array.isArray(L)||(L=[L]),L.forEach(function(x){r(x,"mousedown",T,$)})};function n(L){return 0|(L.ctrlKey?1:0)|(L.altKey?2:0)|(L.shiftKey?4:0)|(L.metaKey?8:0)}b.getModifierString=function(L){return R.KEY_MODS[n(L)]};function a(L,C,y){var p=n(C);if(!y&&C.code&&(y=R.$codeToKeyCode[C.code]||y),!_.isMac&&S){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&(p|=8),S.altGr)if((3&p)!=3)S.altGr=0;else return;if(y===18||y===17){var $=C.location;if(y===17&&$===1)S[y]==1&&(u=C.timeStamp);else if(y===18&&p===3&&$===2){var I=C.timeStamp-u;I<50&&(S.altGr=!0)}}}if(y in R.MODIFIER_KEYS&&(y=-1),!(!p&&y===13&&C.location===3&&(L(C,p,-y),C.defaultPrevented))){if(_.isChromeOS&&p&8){if(L(C,p,y),C.defaultPrevented)return;p&=-9}return!p&&!(y in R.FUNCTION_KEYS)&&!(y in R.PRINTABLE_KEYS)?!1:L(C,p,y)}}b.addCommandKeyListener=function(L,C,y){var p=null;r(L,"keydown",function($){S[$.keyCode]=(S[$.keyCode]||0)+1;var I=a(C,$,$.keyCode);return p=$.defaultPrevented,I},y),r(L,"keypress",function($){p&&($.ctrlKey||$.altKey||$.shiftKey||$.metaKey)&&(b.stopEvent($),p=null)},y),r(L,"keyup",function($){S[$.keyCode]=null},y),S||(d(),r(window,"focus",d))};function d(){S=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!_.isOldIE){var g=1;b.nextTick=function(L,C){C=C||window;var y="zero-timeout-message-"+g++,p=function($){$.data==y&&(b.stopPropagation($),t(C,"message",p),L())};r(C,"message",p),C.postMessage(y,"*")}}b.$idleBlocked=!1,b.onIdle=function(L,C){return setTimeout(function y(){b.$idleBlocked?setTimeout(y,100):L()},C)},b.$idleBlockId=null,b.blockIdle=function(L){b.$idleBlockId&&clearTimeout(b.$idleBlockId),b.$idleBlocked=!0,b.$idleBlockId=setTimeout(function(){b.$idleBlocked=!1},L||100)},b.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),b.nextFrame?b.nextFrame=b.nextFrame.bind(window):b.nextFrame=function(L){setTimeout(L,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(f,b,z){var R;z.exports={lineMode:!1,pasteCancelled:function(){return R&&R>Date.now()-50?!0:R=!1},cancel:function(){R=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(f,b,z){var R=f("../lib/event"),_=f("../config").nls,S=f("../lib/useragent"),u=f("../lib/dom"),h=f("../lib/lang"),s=f("../clipboard"),o=S.isChrome<18,i=S.isIE,r=S.isChrome>63,t=400,n=f("../lib/keys"),a=n.KEY_MODS,d=S.isIOS,g=d?/\s/:/\n/,L=S.isMobile,C=(function(){function y(p,$){var I=this;this.host=$,this.text=u.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",p.insertBefore(this.text,p.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",L||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),R.addListener(this.text,"blur",function(M){I.ignoreFocusEvents||($.onBlur(M),I.$isFocused=!1)},$),R.addListener(this.text,"focus",function(M){if(!I.ignoreFocusEvents){if(I.$isFocused=!0,S.isEdge)try{if(!document.hasFocus())return}catch{}$.onFocus(M),S.isEdge?setTimeout(I.resetSelection.bind(I)):I.resetSelection()}},$),this.$focusScroll=!1,$.on("beforeEndOperation",function(){var M=$.curOp,A=M&&M.command&&M.command.name;if(A!="insertstring"){var H=A&&(M.docChanged||M.selectionChanged);I.inComposition&&H&&(I.lastValue=I.text.value="",I.onCompositionEnd()),I.resetSelection()}}),$.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=d?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&$.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,R.addCommandKeyListener(this.text,function(M,A,H){if(!I.inComposition)return $.onCommandKey(M,A,H)},$),R.addListener(this.text,"select",this.onSelect.bind(this),$),R.addListener(this.text,"input",this.onInput.bind(this),$),R.addListener(this.text,"cut",this.onCut.bind(this),$),R.addListener(this.text,"copy",this.onCopy.bind(this),$),R.addListener(this.text,"paste",this.onPaste.bind(this),$),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&R.addListener(p,"keydown",function(M){if(!(S.isMac&&!M.metaKey||!M.ctrlKey))switch(M.keyCode){case 67:I.onCopy(M);break;case 86:I.onPaste(M);break;case 88:I.onCut(M);break}},$),this.syncComposition=h.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),R.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),$),R.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),$),R.addListener(this.text,"keyup",this.onKeyup.bind(this),$),R.addListener(this.text,"keydown",this.syncComposition.bind(this),$),R.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),$),this.closeTimeout,R.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),$),R.addListener(this.text,"mousedown",function(M){M.preventDefault(),I.onContextMenuClose()},$),R.addListener($.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),$),R.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),$),d&&this.addIosSelectionHandler(p,$,this.text)}return y.prototype.addIosSelectionHandler=function(p,$,I){var M=this,A=null,H=!1;I.addEventListener("keydown",function(T){A&&clearTimeout(A),H=!0},!0),I.addEventListener("keyup",function(T){A=setTimeout(function(){H=!1},100)},!0);var D=function(T){if(document.activeElement===I&&!(H||M.inComposition||$.$mouseHandler.isMousePressed)&&!M.copied){var x=I.selectionStart,m=I.selectionEnd,E=null,W=0;if(x==0?E=n.up:x==1?E=n.home:m>M.lastSelectionEnd&&M.lastValue[m]==`
|
|
161
|
+
`?E=n.end:x<M.lastSelectionStart&&M.lastValue[x-1]==" "?(E=n.left,W=a.option):x<M.lastSelectionStart||x==M.lastSelectionStart&&M.lastSelectionEnd!=M.lastSelectionStart&&x==m?E=n.left:m>M.lastSelectionEnd&&M.lastValue.slice(0,m).split(`
|
|
162
|
+
`).length>2?E=n.down:m>M.lastSelectionEnd&&M.lastValue[m-1]==" "?(E=n.right,W=a.option):(m>M.lastSelectionEnd||m==M.lastSelectionEnd&&M.lastSelectionEnd!=M.lastSelectionStart&&x==m)&&(E=n.right),x!==m&&(W|=a.shift),E){var U=$.onCommandKey({},W,E);if(!U&&$.commands){E=n.keyCodeToString(E);var q=$.commands.findKeyCommand(W,E);q&&$.execCommand(q)}M.lastSelectionStart=x,M.lastSelectionEnd=m,M.resetSelection("")}}};document.addEventListener("selectionchange",D),$.on("destroy",function(){document.removeEventListener("selectionchange",D)})},y.prototype.onContextMenuClose=function(){var p=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){p.tempStyle&&(p.text.style.cssText=p.tempStyle,p.tempStyle=""),p.host.renderer.$isMousePressed=!1,p.host.renderer.$keepTextAreaAtCursor&&p.host.renderer.$moveTextAreaToCursor()},0)},y.prototype.$onContextMenu=function(p){this.host.textInput.onContextMenu(p),this.onContextMenuClose()},y.prototype.onKeyup=function(p){p.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},y.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},y.prototype.onCompositionStart=function(p){if(!(this.inComposition||!this.host.onCompositionStart||this.host.$readOnly)&&(this.inComposition={},!this.commandMode)){p.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var $=this.host.getSelectionRange();$.end.row=$.start.row,$.end.column=$.start.column,this.inComposition.markerRange=$,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},y.prototype.onCompositionUpdate=function(){if(!(!this.inComposition||!this.host.onCompositionUpdate||this.host.$readOnly)){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var p=this.text.value;this.sendText(p),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},y.prototype.onCompositionEnd=function(p){!this.host.onCompositionEnd||this.host.$readOnly||(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),p&&this.onInput())},y.prototype.onCut=function(p){this.doCopy(p,!0)},y.prototype.onCopy=function(p){this.doCopy(p,!1)},y.prototype.onPaste=function(p){var $=this.handleClipboardData(p);s.pasteCancelled()||(typeof $=="string"?($&&this.host.onPaste($,p),S.isIE&&setTimeout(this.resetSelection),R.preventDefault(p)):(this.text.value="",this.pasted=!0))},y.prototype.doCopy=function(p,$){var I=this,M=this.host.getCopyText();if(!M)return R.preventDefault(p);this.handleClipboardData(p,M)?(d&&(this.resetSelection(M),this.copied=M,setTimeout(function(){I.copied=!1},10)),$?this.host.onCut():this.host.onCopy(),R.preventDefault(p)):(this.copied=!0,this.text.value=M,this.text.select(),setTimeout(function(){I.copied=!1,I.resetSelection(),$?I.host.onCut():I.host.onCopy()}))},y.prototype.handleClipboardData=function(p,$,I){var M=p.clipboardData||window.clipboardData;if(!(!M||o)){var A=i||I?"Text":"text/plain";try{return $?M.setData(A,$)!==!1:M.getData(A)}catch(H){if(!I)return this.handleClipboardData(H,$,!0)}}},y.prototype.onInput=function(p){if(this.inComposition)return this.onCompositionUpdate();if(p&&p.inputType){if(p.inputType=="historyUndo")return this.host.execCommand("undo");if(p.inputType=="historyRedo")return this.host.execCommand("redo")}var $=this.text.value,I=this.sendText($,!0);($.length>t+100||g.test(I)||L&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},y.prototype.sendText=function(p,$){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),p&&this.host.onPaste(p),this.pasted=!1,"";for(var I=this.text.selectionStart,M=this.text.selectionEnd,A=this.lastSelectionStart,H=this.lastValue.length-this.lastSelectionEnd,D=p,T=p.length-I,x=p.length-M,m=0;A>0&&this.lastValue[m]==p[m];)m++,A--;for(D=D.slice(m),m=1;H>0&&this.lastValue.length-m>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-m]==p[p.length-m];)m++,H--;T-=m-1,x-=m-1;var E=D.length-m+1;if(E<0&&(A=-E,E=0),D=D.slice(0,E),!$&&!D&&!T&&!A&&!H&&!x)return"";this.sendingText=!0;var W=!1;return S.isAndroid&&D==". "&&(D=" ",W=!0),D&&!A&&!H&&!T&&!x||this.commandMode?this.host.onTextInput(D):this.host.onTextInput(D,{extendLeft:A,extendRight:H,restoreStart:T,restoreEnd:x}),this.sendingText=!1,this.lastValue=p,this.lastSelectionStart=I,this.lastSelectionEnd=M,this.lastRestoreEnd=x,W?`
|
|
163
|
+
`:D},y.prototype.onSelect=function(p){var $=this;if(!this.inComposition){var I=function(M){return M.selectionStart===0&&M.selectionEnd>=$.lastValue.length&&M.value===$.lastValue&&$.lastValue&&M.selectionEnd!==$.lastSelectionEnd};this.copied?this.copied=!1:I(this.text)?(this.host.selectAll(),this.resetSelection()):L&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},y.prototype.$resetSelectionIOS=function(p){if(!(!this.$isFocused||this.copied&&!p||this.sendingText)){p||(p="");var $=`
|
|
164
|
+
ab`+p+`cde fg
|
|
165
|
+
`;$!=this.text.value&&(this.text.value=this.lastValue=$);var I=4,M=4+(p.length||(this.host.selection.isEmpty()?0:1));(this.lastSelectionStart!=I||this.lastSelectionEnd!=M)&&this.text.setSelectionRange(I,M),this.lastSelectionStart=I,this.lastSelectionEnd=M}},y.prototype.$resetSelection=function(){var p=this;if(!(this.inComposition||this.sendingText)&&!(!this.$isFocused&&!this.afterContextMenu)){this.inComposition=!0;var $=0,I=0,M="",A=function(q,Q){for(var te=Q,ce=1;ce<=q-p.rowStart&&ce<2*p.numberOfExtraLines+1;ce++)te+=p.host.session.getLine(q-ce).length+1;return te};if(this.host.session){var H=this.host.selection,D=H.getRange(),T=H.cursor.row;T===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):T===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):(T<this.rowStart-1||T>this.rowEnd+1)&&(this.rowStart=T>this.numberOfExtraLines?T-this.numberOfExtraLines:0,this.rowEnd=T>this.numberOfExtraLines?T+this.numberOfExtraLines:2*this.numberOfExtraLines);for(var x=[],m=this.rowStart;m<=this.rowEnd;m++)x.push(this.host.session.getLine(m));if(M=x.join(`
|
|
166
|
+
`),$=A(D.start.row,D.start.column),I=A(D.end.row,D.end.column),D.start.row<this.rowStart){var E=this.host.session.getLine(this.rowStart-1);$=D.start.row<this.rowStart-1?0:$,I+=E.length+1,M=E+`
|
|
167
|
+
`+M}else if(D.end.row>this.rowEnd){var W=this.host.session.getLine(this.rowEnd+1);I=D.end.row>this.rowEnd+1?W.length:D.end.column,I+=M.length+1,M=M+`
|
|
168
|
+
`+W}else L&&T>0&&(M=`
|
|
169
|
+
`+M,I+=1,$+=1);M.length>t&&($<t&&I<t?M=M.slice(0,t):(M=`
|
|
170
|
+
`,$==I?$=I=0:($=0,I=1)));var U=M+`
|
|
171
|
+
|
|
172
|
+
`;U!=this.lastValue&&(this.text.value=this.lastValue=U,this.lastSelectionStart=this.lastSelectionEnd=U.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=I||this.lastSelectionStart!=$||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange($,I),this.lastSelectionStart=$,this.lastSelectionEnd=I}catch{}this.inComposition=!1}},y.prototype.setHost=function(p){this.host=p},y.prototype.setNumberOfExtraLines=function(p){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,p<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=p},y.prototype.setAriaLabel=function(){var p="";if(this.host.$textInputAriaLabel&&(p+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var $=this.host.session.selection.cursor.row;p+=_("text-input.aria-label","Cursor at row $0",[$+1])}this.text.setAttribute("aria-label",p)},y.prototype.setAriaOptions=function(p){p.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",p.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",p.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),p.role&&this.text.setAttribute("role",p.role),p.setLabel&&(this.text.setAttribute("aria-roledescription",_("text-input.aria-roledescription","editor")),this.setAriaLabel())},y.prototype.focus=function(){var p=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||r||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var $=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var I=this.text.getBoundingClientRect().top!=0}catch{return}var M=[];if(I)for(var A=this.text.parentElement;A&&A.nodeType==1;)M.push(A),A.setAttribute("ace_nocontext","true"),!A.parentElement&&A.getRootNode?A=A.getRootNode().host:A=A.parentElement;this.text.focus({preventScroll:!0}),I&&M.forEach(function(H){H.removeAttribute("ace_nocontext")}),setTimeout(function(){p.text.style.position="",p.text.style.top=="0px"&&(p.text.style.top=$)},0)},y.prototype.blur=function(){this.text.blur()},y.prototype.isFocused=function(){return this.$isFocused},y.prototype.setInputHandler=function(p){this.inputHandler=p},y.prototype.getInputHandler=function(){return this.inputHandler},y.prototype.getElement=function(){return this.text},y.prototype.setCommandMode=function(p){this.commandMode=p,this.text.readOnly=!1},y.prototype.setReadOnly=function(p){this.commandMode||(this.text.readOnly=p)},y.prototype.setCopyWithEmptySelection=function(p){},y.prototype.onContextMenu=function(p){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:p}),this.moveToMouse(p,!0)},y.prototype.moveToMouse=function(p,$){var I=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=($?"z-index:100000;":"")+(S.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var M=this.host.container.getBoundingClientRect(),A=u.computedStyle(this.host.container),H=M.top+(parseInt(A.borderTopWidth)||0),D=M.left+(parseInt(A.borderLeftWidth)||0),T=M.bottom-H-this.text.clientHeight-2,x=function(m){u.translate(I.text,m.clientX-D-2,Math.min(m.clientY-H-2,T))};x(p),p.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),S.isWin&&R.capture(this.host.container,x,this.onContextMenuClose.bind(this)))},y.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},y})();b.TextInput=C,b.$setUserAgentForTests=function(y,p){L=y,d=p}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(f,b,z){var R=f("../lib/useragent"),_=0,S=550,u=(function(){function o(i){i.$clickSelection=null;var r=i.editor;r.setDefaultHandler("mousedown",this.onMouseDown.bind(i)),r.setDefaultHandler("dblclick",this.onDoubleClick.bind(i)),r.setDefaultHandler("tripleclick",this.onTripleClick.bind(i)),r.setDefaultHandler("quadclick",this.onQuadClick.bind(i)),r.setDefaultHandler("mousewheel",this.onMouseWheel.bind(i));var t=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];t.forEach(function(n){i[n]=this[n]},this),i.selectByLines=this.extendSelectionBy.bind(i,"getLineRange"),i.selectByWords=this.extendSelectionBy.bind(i,"getWordRange")}return o.prototype.onMouseDown=function(i){var r=i.inSelection(),t=i.getDocumentPosition();this.mousedownEvent=i;var n=this.editor,a=i.getButton();if(a!==0){var d=n.getSelectionRange(),g=d.isEmpty();(g||a==1)&&n.selection.moveToPosition(t),a==2&&(n.textInput.onContextMenu(i.domEvent),R.isMozilla||i.preventDefault());return}if(this.mousedownEvent.time=Date.now(),r&&!n.isFocused()&&(n.focus(),this.$focusTimeout&&!this.$clickSelection&&!n.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(i);return}return this.captureMouse(i),this.startSelect(t,i.domEvent._clicks>1),i.preventDefault()},o.prototype.startSelect=function(i,r){i=i||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var t=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?t.selection.selectToPosition(i):r||t.selection.moveToPosition(i),r||this.select(),t.setStyle("ace_selecting"),this.setState("select"))},o.prototype.select=function(){var i,r=this.editor,t=r.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var n=this.$clickSelection.comparePoint(t);if(n==-1)i=this.$clickSelection.end;else if(n==1)i=this.$clickSelection.start;else{var a=s(this.$clickSelection,t,r.session);t=a.cursor,i=a.anchor}r.selection.setSelectionAnchor(i.row,i.column)}r.selection.selectToPosition(t),r.renderer.scrollCursorIntoView()},o.prototype.extendSelectionBy=function(i){var r,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y),a=t.selection[i](n.row,n.column);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(a.start),g=this.$clickSelection.comparePoint(a.end);if(d==-1&&g<=0)r=this.$clickSelection.end,(a.end.row!=n.row||a.end.column!=n.column)&&(n=a.start);else if(g==1&&d>=0)r=this.$clickSelection.start,(a.start.row!=n.row||a.start.column!=n.column)&&(n=a.end);else if(d==-1&&g==1)n=a.end,r=a.start;else{var L=s(this.$clickSelection,n,t.session);n=L.cursor,r=L.anchor}t.selection.setSelectionAnchor(r.row,r.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},o.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},o.prototype.focusWait=function(){var i=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),r=Date.now();(i>_||r-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},o.prototype.onDoubleClick=function(i){var r=i.getDocumentPosition(),t=this.editor,n=t.session,a=n.getBracketRange(r);a?(a.isEmpty()&&(a.start.column--,a.end.column++),this.setState("select")):(a=t.selection.getWordRange(r.row,r.column),this.setState("selectByWords")),this.$clickSelection=a,this.select()},o.prototype.onTripleClick=function(i){var r=i.getDocumentPosition(),t=this.editor;this.setState("selectByLines");var n=t.getSelectionRange();n.isMultiLine()&&n.contains(r.row,r.column)?(this.$clickSelection=t.selection.getLineRange(n.start.row),this.$clickSelection.end=t.selection.getLineRange(n.end.row).end):this.$clickSelection=t.selection.getLineRange(r.row),this.select()},o.prototype.onQuadClick=function(i){var r=this.editor;r.selectAll(),this.$clickSelection=r.getSelectionRange(),this.setState("selectAll")},o.prototype.onMouseWheel=function(i){if(!i.getAccelKey()){i.getShiftKey()&&i.wheelY&&!i.wheelX&&(i.wheelX=i.wheelY,i.wheelY=0);var r=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var t=this.$lastScroll,n=i.domEvent.timeStamp,a=n-t.t,d=a?i.wheelX/a:t.vx,g=a?i.wheelY/a:t.vy;a<S&&(d=(d+t.vx)/2,g=(g+t.vy)/2);var L=Math.abs(d/g),C=!1;if(L>=1&&r.renderer.isScrollableBy(i.wheelX*i.speed,0)&&(C=!0),L<=1&&r.renderer.isScrollableBy(0,i.wheelY*i.speed)&&(C=!0),C)t.allowed=n;else if(n-t.allowed<S){var y=Math.abs(d)<=1.5*Math.abs(t.vx)&&Math.abs(g)<=1.5*Math.abs(t.vy);y?(C=!0,t.allowed=n):t.allowed=0}if(t.t=n,t.vx=d,t.vy=g,C)return r.renderer.scrollBy(i.wheelX*i.speed,i.wheelY*i.speed),i.stop()}},o})();u.prototype.selectEnd=u.prototype.selectByLinesEnd,u.prototype.selectAllEnd=u.prototype.selectByLinesEnd,u.prototype.selectByWordsEnd=u.prototype.selectByLinesEnd,b.DefaultHandlers=u;function h(o,i,r,t){return Math.sqrt(Math.pow(r-o,2)+Math.pow(t-i,2))}function s(o,i,r){if(o.start.row==o.end.row)var t=2*i.column-o.start.column-o.end.column;else if(o.start.row==o.end.row-1&&!o.start.column&&!o.end.column)var t=3*i.column-2*r.getLine(o.start.row).length;else var t=2*i.row-o.start.row-o.end.row;return t<0?{cursor:o.start,anchor:o.end}:{cursor:o.end,anchor:o.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(f,b,z){var R=f("../lib/event"),_=f("../lib/useragent"),S=(function(){function u(h,s){this.speed,this.wheelX,this.wheelY,this.domEvent=h,this.editor=s,this.x=this.clientX=h.clientX,this.y=this.clientY=h.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return u.prototype.stopPropagation=function(){R.stopPropagation(this.domEvent),this.propagationStopped=!0},u.prototype.preventDefault=function(){R.preventDefault(this.domEvent),this.defaultPrevented=!0},u.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},u.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},u.prototype.getGutterRow=function(){var h=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(h,0),o=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-o},u.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var h=this.editor,s=h.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var o=this.getDocumentPosition();this.$inSelection=s.contains(o.row,o.column)}return this.$inSelection},u.prototype.getButton=function(){return R.getButton(this.domEvent)},u.prototype.getShiftKey=function(){return this.domEvent.shiftKey},u.prototype.getAccelKey=function(){return _.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},u})();b.MouseEvent=S}),ace.define("ace/lib/scroll",["require","exports","module"],function(f,b,z){b.preventParentScroll=function(_){_.stopPropagation();var S=_.currentTarget,u=S.scrollHeight>S.clientHeight;u||_.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(f,b,z){var R=this&&this.__extends||(function(){var n=function(a,d){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,L){g.__proto__=L}||function(g,L){for(var C in L)Object.prototype.hasOwnProperty.call(L,C)&&(g[C]=L[C])},n(a,d)};return function(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");n(a,d);function g(){this.constructor=a}a.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}})(),_=this&&this.__values||function(n){var a=typeof Symbol=="function"&&Symbol.iterator,d=a&&n[a],g=0;if(d)return d.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&g>=n.length&&(n=void 0),{value:n&&n[g++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},S=f("./lib/dom");f("./lib/event");var u=f("./range").Range,h=f("./lib/scroll").preventParentScroll,s="ace_tooltip",o=(function(){function n(a){this.isOpen=!1,this.$element=null,this.$parentNode=a}return n.prototype.$init=function(){return this.$element=S.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},n.prototype.getElement=function(){return this.$element||this.$init()},n.prototype.setText=function(a){this.getElement().textContent=a},n.prototype.setHtml=function(a){this.getElement().innerHTML=a},n.prototype.setPosition=function(a,d){this.getElement().style.left=a+"px",this.getElement().style.top=d+"px"},n.prototype.setClassName=function(a){S.addCssClass(this.getElement(),a)},n.prototype.setTheme=function(a){this.theme&&(this.theme.isDark&&S.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&S.removeCssClass(this.getElement(),this.theme.cssClass)),a.isDark&&S.addCssClass(this.getElement(),"ace_dark"),a.cssClass&&S.addCssClass(this.getElement(),a.cssClass),this.theme={isDark:a.isDark,cssClass:a.cssClass}},n.prototype.show=function(a,d,g){a!=null&&this.setText(a),d!=null&&g!=null&&this.setPosition(d,g),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},n.prototype.hide=function(a){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},n.prototype.getHeight=function(){return this.getElement().offsetHeight},n.prototype.getWidth=function(){return this.getElement().offsetWidth},n.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},n})(),i=(function(){function n(){this.popups=[]}return n.prototype.addPopup=function(a){this.popups.push(a),this.updatePopups()},n.prototype.removePopup=function(a){var d=this.popups.indexOf(a);d!==-1&&(this.popups.splice(d,1),this.updatePopups())},n.prototype.updatePopups=function(){var a,d,g,L;this.popups.sort(function(D,T){return T.priority-D.priority});var C=[];try{for(var y=_(this.popups),p=y.next();!p.done;p=y.next()){var $=p.value,I=!0;try{for(var M=(g=void 0,_(C)),A=M.next();!A.done;A=M.next()){var H=A.value;if(this.doPopupsOverlap(H,$)){I=!1;break}}}catch(D){g={error:D}}finally{try{A&&!A.done&&(L=M.return)&&L.call(M)}finally{if(g)throw g.error}}I?C.push($):$.hide()}}catch(D){a={error:D}}finally{try{p&&!p.done&&(d=y.return)&&d.call(y)}finally{if(a)throw a.error}}},n.prototype.doPopupsOverlap=function(a,d){var g=a.getElement().getBoundingClientRect(),L=d.getElement().getBoundingClientRect();return g.left<L.right&&g.right>L.left&&g.top<L.bottom&&g.bottom>L.top},n})(),r=new i;b.popupManager=r,b.Tooltip=o;var t=(function(n){R(a,n);function a(d){d===void 0&&(d=document.body);var g=n.call(this,d)||this;g.timeout=void 0,g.lastT=0,g.idleTime=350,g.lastEvent=void 0,g.onMouseOut=g.onMouseOut.bind(g),g.onMouseMove=g.onMouseMove.bind(g),g.waitForHover=g.waitForHover.bind(g),g.hide=g.hide.bind(g);var L=g.getElement();return L.style.whiteSpace="pre-wrap",L.style.pointerEvents="auto",L.addEventListener("mouseout",g.onMouseOut),L.tabIndex=-1,L.addEventListener("blur",(function(){L.contains(document.activeElement)||this.hide()}).bind(g)),L.addEventListener("wheel",h),g}return a.prototype.addToEditor=function(d){d.on("mousemove",this.onMouseMove),d.on("mousedown",this.hide);var g=d.renderer.getMouseEventTarget();g&&typeof g.removeEventListener=="function"&&g.addEventListener("mouseout",this.onMouseOut,!0)},a.prototype.removeFromEditor=function(d){d.off("mousemove",this.onMouseMove),d.off("mousedown",this.hide);var g=d.renderer.getMouseEventTarget();g&&typeof g.removeEventListener=="function"&&g.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},a.prototype.onMouseMove=function(d,g){this.lastEvent=d,this.lastT=Date.now();var L=g.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||L||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||L||(this.lastEvent=d,this.timeout=setTimeout(this.waitForHover,this.idleTime))},a.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var d=Date.now()-this.lastT;if(this.idleTime-d>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-d);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},a.prototype.isOutsideOfText=function(d){var g=d.editor,L=d.getDocumentPosition(),C=g.session.getLine(L.row);if(L.column==C.length){var y=g.renderer.pixelToScreenCoordinates(d.clientX,d.clientY),p=g.session.documentToScreenPosition(L.row,L.column);if(p.column!=y.column||p.row!=y.row)return!0}return!1},a.prototype.setDataProvider=function(d){this.$gatherData=d},a.prototype.showForRange=function(d,g,L,C){if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var y=d.renderer;this.isOpen||(r.addPopup(this),this.$registerCloseEvents(),this.setTheme(y.theme)),this.isOpen=!0,this.range=u.fromPoints(g.start,g.end);var p=y.textToScreenCoordinates(g.start.row,g.start.column),$=y.scroller.getBoundingClientRect();p.pageX<$.left&&(p.pageX=$.left);var I=this.getElement();I.innerHTML="",I.appendChild(L),I.style.maxHeight="",I.style.display="block",this.$setPosition(d,p,!0,g),S.$fixPositionBug(I)}},a.prototype.$setPosition=function(d,g,L,C){var y=10;L&&this.addMarker(C,d.session);var p=d.renderer,$=this.getElement(),I=$.offsetHeight,M=$.offsetWidth,A=g.pageY,H=g.pageX,D=window.innerHeight-A-p.lineHeight,T=this.$shouldPlaceAbove(I,A,D-y);$.style.maxHeight=(T?A:D)-y+"px",$.style.top=T?"":A+p.lineHeight+"px",$.style.bottom=T?window.innerHeight-A+"px":"",$.style.left=Math.min(H,window.innerWidth-M-y)+"px"},a.prototype.$shouldPlaceAbove=function(d,g,L){return!(g-d<0&&g<L)},a.prototype.addMarker=function(d,g){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=g,this.marker=g&&g.addMarker(d,"ace_highlight-marker","text")},a.prototype.hide=function(d){d&&this.$fromKeyboard&&d.type=="keydown"&&d.code=="Escape"||!d&&document.activeElement==this.getElement()||d&&d.target&&(d.type!="keydown"||d.ctrlKey||d.metaKey)&&this.$element.contains(d.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,r.removePopup(this)))},a.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},a.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},a.prototype.onMouseOut=function(d){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!d.relatedTarget||this.getElement().contains(d.relatedTarget)||d&&d.currentTarget.contains(d.relatedTarget)||d.relatedTarget.classList.contains("ace_content")||this.hide())},a})(o);b.HoverTooltip=t}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(f,b,z){var R=this&&this.__extends||(function(){var t=function(n,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var L in g)Object.prototype.hasOwnProperty.call(g,L)&&(d[L]=g[L])},t(n,a)};return function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");t(n,a);function d(){this.constructor=n}n.prototype=a===null?Object.create(a):(d.prototype=a.prototype,new d)}})(),_=this&&this.__values||function(t){var n=typeof Symbol=="function"&&Symbol.iterator,a=n&&t[n],d=0;if(a)return a.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&d>=t.length&&(t=void 0),{value:t&&t[d++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},S=f("../lib/dom"),u=f("./mouse_event").MouseEvent,h=f("../tooltip").HoverTooltip,s=f("../config").nls,o=f("../range").Range;function i(t){var n=t.editor,a=n.renderer.$gutterLayer;t.$tooltip=new r(n),t.$tooltip.addToEditor(n),t.$tooltip.setDataProvider(function(d,g){var L=d.getDocumentPosition().row;t.$tooltip.showTooltip(L)}),t.editor.setDefaultHandler("guttermousedown",function(d){if(!(!n.isFocused()||d.getButton()!=0)){var g=a.getRegion(d);if(g!="foldWidgets"){var L=d.getDocumentPosition().row,C=n.session.selection;if(d.getShiftKey())C.selectTo(L,0);else{if(d.domEvent.detail==2)return n.selectAll(),d.preventDefault();t.$clickSelection=n.selection.getLineRange(L)}return t.setState("selectByLines"),t.captureMouse(d),d.preventDefault()}}})}b.GutterHandler=i;var r=(function(t){R(n,t);function n(a){var d=t.call(this,a.container)||this;d.id="gt"+ ++n.$uid,d.editor=a,d.visibleTooltipRow;var g=d.getElement();return g.setAttribute("role","tooltip"),g.setAttribute("id",d.id),g.style.pointerEvents="auto",d.idleTime=50,d.onDomMouseMove=d.onDomMouseMove.bind(d),d.onDomMouseOut=d.onDomMouseOut.bind(d),d.setClassName("ace_gutter-tooltip"),d}return n.prototype.onDomMouseMove=function(a){var d=new u(a,this.editor);this.onMouseMove(d,this.editor)},n.prototype.onDomMouseOut=function(a){var d=new u(a,this.editor);this.onMouseOut(d)},n.prototype.addToEditor=function(a){var d=a.renderer.$gutter;d.addEventListener("mousemove",this.onDomMouseMove),d.addEventListener("mouseout",this.onDomMouseOut),t.prototype.addToEditor.call(this,a)},n.prototype.removeFromEditor=function(a){var d=a.renderer.$gutter;d.removeEventListener("mousemove",this.onDomMouseMove),d.removeEventListener("mouseout",this.onDomMouseOut),t.prototype.removeFromEditor.call(this,a)},n.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),t.prototype.destroy.call(this)},Object.defineProperty(n,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),n.prototype.showTooltip=function(a){var d,g=this.editor.renderer.$gutterLayer,L=g.$annotations[a],C;L?C={displayText:Array.from(L.displayText),type:Array.from(L.type)}:C={displayText:[],type:[]};var y=g.session.getFoldLine(a);if(y&&g.$showFoldedAnnotations){for(var p={error:[],security:[],warning:[],info:[],hint:[]},$={error:1,security:2,warning:3,info:4,hint:5},I,M=a+1;M<=y.end.row;M++)if(g.$annotations[M])for(var A=0;A<g.$annotations[M].text.length;A++){var H=g.$annotations[M].type[A];p[H].push(g.$annotations[M].text[A]),(!I||$[H]<$[I])&&(I=H)}if(["error","security","warning"].includes(I)){var D="".concat(n.annotationsToSummaryString(p)," in folded code.");C.displayText.push(D),C.type.push(I+"_fold")}}if(C.displayText.length===0)return this.hide();for(var T={error:[],security:[],warning:[],info:[],hint:[]},x=g.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",M=0;M<C.displayText.length;M++){var m=S.createElement("span"),E=S.createElement("span");(d=E.classList).add.apply(d,["ace_".concat(C.type[M]),x]),E.setAttribute("aria-label","".concat(n.annotationLabels[C.type[M].replace("_fold","")].singular)),E.setAttribute("role","img"),E.appendChild(S.createTextNode(" ")),m.appendChild(E),m.appendChild(S.createTextNode(C.displayText[M])),m.appendChild(S.createElement("br")),T[C.type[M].replace("_fold","")].push(m)}var W=S.createElement("span");T.error.forEach(function(Q){return W.appendChild(Q)}),T.security.forEach(function(Q){return W.appendChild(Q)}),T.warning.forEach(function(Q){return W.appendChild(Q)}),T.info.forEach(function(Q){return W.appendChild(Q)}),T.hint.forEach(function(Q){return W.appendChild(Q)}),W.setAttribute("aria-live","polite");var U=this.$findLinkedAnnotationNode(a);U&&U.setAttribute("aria-describedby",this.id);var q=o.fromPoints({row:a,column:0},{row:a,column:0});this.showForRange(this.editor,q,W),this.visibleTooltipRow=a,this.editor._signal("showGutterTooltip",this)},n.prototype.$setPosition=function(a,d,g,L){var C=this.$findCellByRow(L.start.row);if(C){var y=C&&C.element,p=y&&y.querySelector(".ace_gutter_annotation");if(p){var $=p.getBoundingClientRect();if($){var I={pageX:$.right,pageY:$.top};return t.prototype.$setPosition.call(this,a,I,!1,L)}}}},n.prototype.$shouldPlaceAbove=function(a,d,g){return g<a},n.prototype.$findLinkedAnnotationNode=function(a){var d=this.$findCellByRow(a);if(d){var g=d.element;if(g.childNodes.length>2)return g.childNodes[2]}},n.prototype.$findCellByRow=function(a){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(d){return d.row===a})},n.prototype.hide=function(a){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var d=this.$findLinkedAnnotationNode(this.visibleTooltipRow);d&&d.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),t.prototype.hide.call(this,a)}},n.annotationsToSummaryString=function(a){var d,g,L=[],C=["error","security","warning","info","hint"];try{for(var y=_(C),p=y.next();!p.done;p=y.next()){var $=p.value;if(a[$].length){var I=a[$].length===1?n.annotationLabels[$].singular:n.annotationLabels[$].plural;L.push("".concat(a[$].length," ").concat(I))}}}catch(M){d={error:M}}finally{try{p&&!p.done&&(g=y.return)&&g.call(y)}finally{if(d)throw d.error}}return L.join(", ")},n.prototype.isOutsideOfText=function(a){var d=a.editor,g=d.renderer.$gutter.getBoundingClientRect();return!(a.clientX>=g.left&&a.clientX<=g.right&&a.clientY>=g.top&&a.clientY<=g.bottom)},n})(h);r.$uid=0,b.GutterTooltip=r}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(f,b,z){var R=f("../lib/dom"),_=f("../lib/event"),S=f("../lib/useragent"),u=200,h=200,s=5;function o(r){var t=r.editor,n=R.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent=" ";var a=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];a.forEach(function(ne){r[ne]=this[ne]},this),t.on("mousedown",this.onMouseDown.bind(r));var d=t.container,g,L,C,y,p,$,I=0,M,A,H,D,T;this.onDragStart=function(ne){if(this.cancelDrag||!d.draggable){var he=this;return setTimeout(function(){he.startSelect(),he.captureMouse(ne)},0),ne.preventDefault()}p=t.getSelectionRange();var ue=ne.dataTransfer;ue.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(n),ue.setDragImage&&ue.setDragImage(n,0,0),setTimeout(function(){t.container.removeChild(n)}),ue.clearData(),ue.setData("Text",t.session.getTextRange()),A=!0,this.setState("drag")},this.onDragEnd=function(ne){if(d.draggable=!1,A=!1,this.setState(null),!t.getReadOnly()){var he=ne.dataTransfer.dropEffect;!M&&he=="move"&&t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(t.getReadOnly()||!te(ne.dataTransfer)))return L=ne.clientX,C=ne.clientY,g||W(),I++,ne.dataTransfer.dropEffect=M=ce(ne),_.preventDefault(ne)},this.onDragOver=function(ne){if(!(t.getReadOnly()||!te(ne.dataTransfer)))return L=ne.clientX,C=ne.clientY,g||(W(),I++),q!==null&&(q=null),ne.dataTransfer.dropEffect=M=ce(ne),_.preventDefault(ne)},this.onDragLeave=function(ne){if(I--,I<=0&&g)return U(),M=null,_.preventDefault(ne)},this.onDrop=function(ne){if($){var he=ne.dataTransfer;if(A)switch(M){case"move":p.contains($.row,$.column)?p={start:$,end:$}:p=t.moveText(p,$);break;case"copy":p=t.moveText(p,$,!0);break}else{var ue=he.getData("Text");p={start:$,end:t.session.insert($,ue)},t.focus(),M=null}return U(),_.preventDefault(ne)}},_.addListener(d,"dragstart",this.onDragStart.bind(r),t),_.addListener(d,"dragend",this.onDragEnd.bind(r),t),_.addListener(d,"dragenter",this.onDragEnter.bind(r),t),_.addListener(d,"dragover",this.onDragOver.bind(r),t),_.addListener(d,"dragleave",this.onDragLeave.bind(r),t),_.addListener(d,"drop",this.onDrop.bind(r),t);function x(ne,he){var ue=Date.now(),le=!he||ne.row!=he.row,me=!he||ne.column!=he.column;if(!D||le||me)t.moveCursorToPosition(ne),D=ue,T={x:L,y:C};else{var Se=i(T.x,T.y,L,C);Se>s?D=null:ue-D>=h&&(t.renderer.scrollCursorIntoView(),D=null)}}function m(ne,he){var ue=Date.now(),le=t.renderer.layerConfig.lineHeight,me=t.renderer.layerConfig.characterWidth,Se=t.renderer.scroller.getBoundingClientRect(),_e={x:{left:L-Se.left,right:Se.right-L},y:{top:C-Se.top,bottom:Se.bottom-C}},Ae=Math.min(_e.x.left,_e.x.right),qe=Math.min(_e.y.top,_e.y.bottom),Ue={row:ne.row,column:ne.column};Ae/me<=2&&(Ue.column+=_e.x.left<_e.x.right?-3:2),qe/le<=1&&(Ue.row+=_e.y.top<_e.y.bottom?-1:1);var nt=ne.row!=Ue.row,at=ne.column!=Ue.column,tt=!he||ne.row!=he.row;nt||at&&!tt?H?ue-H>=u&&t.renderer.scrollCursorIntoView(Ue):H=ue:H=null}function E(){var ne=$;$=t.renderer.screenToTextCoordinates(L,C),x($,ne),m($,ne)}function W(){p=t.selection.toOrientedRange(),g=t.session.addMarker(p,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(y),E(),y=setInterval(E,20),I=0,_.addListener(document,"mousemove",Q)}function U(){clearInterval(y),t.session.removeMarker(g),g=null,t.selection.fromOrientedRange(p),t.isFocused()&&!A&&t.$resetCursorStyle(),p=null,$=null,I=0,H=null,D=null,_.removeListener(document,"mousemove",Q)}var q=null;function Q(){q==null&&(q=setTimeout(function(){q!=null&&g&&U()},20))}function te(ne){var he=ne.types;return!he||Array.prototype.some.call(he,function(ue){return ue=="text/plain"||ue=="Text"})}function ce(ne){var he=["copy","copymove","all","uninitialized"],ue=["move","copymove","linkmove","all","uninitialized"],le=S.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var Se="none";return le&&he.indexOf(me)>=0?Se="copy":ue.indexOf(me)>=0?Se="move":he.indexOf(me)>=0&&(Se="copy"),Se}}(function(){this.dragWait=function(){var r=Date.now()-this.mousedownEvent.time;r>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var r=this.editor.container;r.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(r){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var r=this.editor,t=r.container;t.draggable=!0,r.renderer.$cursorLayer.setBlinking(!1),r.setStyle("ace_dragging");var n=S.isWin?"default":"move";r.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(r){var t=this.editor.container;if(S.isIE&&this.state=="dragReady"){var n=i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}if(this.state==="dragWait"){var n=i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(r){if(this.$dragEnabled){this.mousedownEvent=r;var t=this.editor,n=r.inSelection(),a=r.getButton(),d=r.domEvent.detail||1;if(d===1&&a===0&&n){if(r.editor.inMultiSelectMode&&(r.getAccelKey()||r.getShiftKey()))return;this.mousedownEvent.time=Date.now();var g=r.domEvent.target||r.domEvent.srcElement;if("unselectable"in g&&(g.unselectable="on"),t.getDragDelay()){if(S.isWebKit){this.cancelDrag=!0;var L=t.container;L.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(r,this.onMouseDrag.bind(this)),r.defaultPrevented=!0}}}}).call(o.prototype);function i(r,t,n,a){return Math.sqrt(Math.pow(n-r,2)+Math.pow(a-t,2))}b.DragdropHandler=o}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(f,b,z){var R=f("./mouse_event").MouseEvent,_=f("../lib/event"),S=f("../lib/dom");b.addTouchListeners=function(u,h){var s="scroll",o,i,r,t,n,a,d=0,g,L=0,C=0,y=0,p,$;function I(){var x=window.navigator&&window.navigator.clipboard,m=!1,E=function(){var q=h.getCopyText(),Q=h.session.getUndoManager().hasUndo();$.replaceChild(S.buildDom(m?["span",!q&&W("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],q&&W("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],q&&W("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],x&&W("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Q&&W("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],W("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],W("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),$.firstChild)},W=function(q){return h.commands.canExecute(q,h)},U=function(q){var Q=q.target.getAttribute("action");if(Q=="more"||!m)return m=!m,E();Q=="paste"?x.readText().then(function(te){h.execCommand(Q,te)}):Q&&((Q=="cut"||Q=="copy")&&(x?x.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(Q)),$.firstChild.style.display="none",m=!1,Q!="openCommandPalette"&&h.focus()};$=S.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(q){s="menu",q.stopPropagation(),q.preventDefault(),h.textInput.focus()},ontouchend:function(q){q.stopPropagation(),q.preventDefault(),U(q)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}function M(){if(!h.getOption("enableMobileMenu")){$&&A();return}$||I();var x=h.selection.cursor,m=h.renderer.textToScreenCoordinates(x.row,x.column),E=h.renderer.textToScreenCoordinates(0,0).pageX,W=h.renderer.scrollLeft,U=h.container.getBoundingClientRect();$.style.top=m.pageY-U.top-3+"px",m.pageX-U.left<U.width-70?($.style.left="",$.style.right="10px"):($.style.right="",$.style.left=E+W-U.left+"px"),$.style.display="",$.firstChild.style.display="none",h.on("input",A)}function A(x){$&&($.style.display="none"),h.off("input",A)}function H(){n=null,clearTimeout(n);var x=h.selection.getRange(),m=x.contains(g.row,g.column);(x.isEmpty()||!m)&&(h.selection.moveToPosition(g),h.selection.selectWord()),s="wait",M()}function D(){n=null,clearTimeout(n),h.selection.moveToPosition(g);var x=L>=2?h.selection.getLineRange(g.row):h.session.getBracketRange(g);x&&!x.isEmpty()?h.selection.setRange(x):h.selection.selectWord(),s="wait"}_.addListener(u,"contextmenu",function(x){if(p){var m=h.textInput.getElement();m.focus()}},h),_.addListener(u,"touchstart",function(x){var m=x.touches;if(n||m.length>1){clearTimeout(n),n=null,r=-1,s="zoom";return}p=h.$mouseHandler.isMousePressed=!0;var E=h.renderer.layerConfig.lineHeight,W=h.renderer.layerConfig.lineHeight,U=x.timeStamp;t=U;var q=m[0],Q=q.clientX,te=q.clientY;Math.abs(o-Q)+Math.abs(i-te)>E&&(r=-1),o=x.clientX=Q,i=x.clientY=te,C=y=0;var ce=new R(x,h);if(g=ce.getDocumentPosition(),U-r<500&&m.length==1&&!d)L++,x.preventDefault(),x.button=0,D();else{L=0;var ne=h.selection.cursor,he=h.selection.isEmpty()?ne:h.selection.anchor,ue=h.renderer.$cursorLayer.getPixelPosition(ne,!0),le=h.renderer.$cursorLayer.getPixelPosition(he,!0),me=h.renderer.scroller.getBoundingClientRect(),Se=h.renderer.layerConfig.offset,_e=h.renderer.scrollLeft,Ae=function(nt,at){return nt=nt/W,at=at/E-.75,nt*nt+at*at};if(x.clientX<me.left){s="zoom";return}var qe=Ae(x.clientX-me.left-ue.left+_e,x.clientY-me.top-ue.top+Se),Ue=Ae(x.clientX-me.left-le.left+_e,x.clientY-me.top-le.top+Se);qe<3.5&&Ue<3.5&&(s=qe>Ue?"cursor":"anchor"),Ue<3.5?s="anchor":qe<3.5?s="cursor":s="scroll",n=setTimeout(H,450)}r=U},h),_.addListener(u,"touchend",function(x){p=h.$mouseHandler.isMousePressed=!1,a&&clearInterval(a),s=="zoom"?(s="",d=0):n?(h.selection.moveToPosition(g),d=0,M()):s=="scroll"?(T(),A()):M(),clearTimeout(n),n=null},h),_.addListener(u,"touchmove",function(x){n&&(clearTimeout(n),n=null);var m=x.touches;if(!(m.length>1||s=="zoom")){var E=m[0],W=o-E.clientX,U=i-E.clientY;if(s=="wait")if(W*W+U*U>4)s="cursor";else return x.preventDefault();o=E.clientX,i=E.clientY,x.clientX=E.clientX,x.clientY=E.clientY;var q=x.timeStamp,Q=q-t;if(t=q,s=="scroll"){var te=new R(x,h);te.speed=1,te.wheelX=W,te.wheelY=U,10*Math.abs(W)<Math.abs(U)&&(W=0),10*Math.abs(U)<Math.abs(W)&&(U=0),Q!=0&&(C=W/Q,y=U/Q),h._emit("mousewheel",te),te.propagationStopped||(C=y=0)}else{var ce=new R(x,h),ne=ce.getDocumentPosition();s=="cursor"?h.selection.moveCursorToPosition(ne):s=="anchor"&&h.selection.setSelectionAnchor(ne.row,ne.column),h.renderer.scrollCursorIntoView(ne),x.preventDefault()}}},h);function T(){d+=60,a=setInterval(function(){d--<=0&&(clearInterval(a),a=null),Math.abs(C)<.01&&(C=0),Math.abs(y)<.01&&(y=0),d<20&&(C=.9*C),d<20&&(y=.9*y);var x=h.session.getScrollTop();h.renderer.scrollBy(10*C,10*y),x==h.session.getScrollTop()&&(d=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(f,b,z){var R=f("../lib/event"),_=f("../lib/useragent"),S=f("./default_handlers").DefaultHandlers,u=f("./default_gutter_handler").GutterHandler,h=f("./mouse_event").MouseEvent,s=f("./dragdrop_handler").DragdropHandler,o=f("./touch_handler").addTouchListeners,i=f("../config"),r=(function(){function t(n){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var a=this;this.editor=n,new S(this),new u(this),new s(this);var d=function(C){var y=!document.hasFocus||!document.hasFocus()||!n.isFocused()&&document.activeElement==(n.textInput&&n.textInput.getElement());y&&window.focus(),n.focus(),setTimeout(function(){n.isFocused()||n.focus()})},g=n.renderer.getMouseEventTarget();R.addListener(g,"click",this.onMouseEvent.bind(this,"click"),n),R.addListener(g,"mousemove",this.onMouseMove.bind(this,"mousemove"),n),R.addMultiMouseDownListener([g,n.renderer.scrollBarV&&n.renderer.scrollBarV.inner,n.renderer.scrollBarH&&n.renderer.scrollBarH.inner,n.textInput&&n.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",n),R.addMouseWheelListener(n.container,this.onMouseWheel.bind(this,"mousewheel"),n),o(n.container,n);var L=n.renderer.$gutter;R.addListener(L,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),n),R.addListener(L,"click",this.onMouseEvent.bind(this,"gutterclick"),n),R.addListener(L,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),n),R.addListener(L,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),n),R.addListener(g,"mousedown",d,n),R.addListener(L,"mousedown",d,n),_.isIE&&n.renderer.scrollBarV&&(R.addListener(n.renderer.scrollBarV.element,"mousedown",d,n),R.addListener(n.renderer.scrollBarH.element,"mousedown",d,n)),n.on("mousemove",function(C){if(!(a.state||a.$dragDelay||!a.$dragEnabled)){var y=n.renderer.screenToTextCoordinates(C.x,C.y),p=n.session.selection.getRange(),$=n.renderer;!p.isEmpty()&&p.insideStart(y.row,y.column)?$.setCursorStyle("default"):$.setCursorStyle("")}},n)}return t.prototype.onMouseEvent=function(n,a){this.editor.session&&this.editor._emit(n,new h(a,this.editor))},t.prototype.onMouseMove=function(n,a){var d=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!d||!d.length||this.editor._emit(n,new h(a,this.editor))},t.prototype.onMouseWheel=function(n,a){var d=new h(a,this.editor);d.speed=this.$scrollSpeed*2,d.wheelX=a.wheelX,d.wheelY=a.wheelY,this.editor._emit(n,d)},t.prototype.setState=function(n){this.state=n},t.prototype.captureMouse=function(n,a){this.x=n.x,this.y=n.y,this.isMousePressed=!0;var d=this.editor,g=this.editor.renderer;g.$isMousePressed=!0;var L=this,C=!0,y=function(A){if(A){if(_.isWebKit&&!A.which&&L.releaseMouse)return L.releaseMouse();L.x=A.clientX,L.y=A.clientY,a&&a(A),L.mouseEvent=new h(A,L.editor),L.$mouseMoved=!0}},p=function(A){d.off("beforeEndOperation",M),C=!1,d.session&&$(),L[L.state+"End"]&&L[L.state+"End"](A),L.state="",L.isMousePressed=g.$isMousePressed=!1,g.$keepTextAreaAtCursor&&g.$moveTextAreaToCursor(),L.$onCaptureMouseMove=L.releaseMouse=null,A&&L.onMouseEvent("mouseup",A),d.endOperation()},$=function(){L[L.state]&&L[L.state](),L.$mouseMoved=!1},I=function(){C&&($(),R.nextFrame(I))};if(_.isOldIE&&n.domEvent.type=="dblclick")return setTimeout(function(){p(n)});var M=function(A){L.releaseMouse&&d.curOp.command.name&&d.curOp.selectionChanged&&(L[L.state+"End"]&&L[L.state+"End"](),L.state="",L.releaseMouse())};d.on("beforeEndOperation",M),d.startOperation({command:{name:"mouse"}}),L.$onCaptureMouseMove=y,L.releaseMouse=R.capture(this.editor.container,y,p),I()},t.prototype.cancelContextMenu=function(){var n=(function(a){a&&a.domEvent&&a.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",n),a&&a.domEvent&&R.stopEvent(a.domEvent))}).bind(this);setTimeout(n,10),this.editor.on("nativecontextmenu",n)},t.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},t})();r.prototype.releaseMouse=null,i.defineOptions(r.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:_.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),b.MouseHandler=r}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(f,b,z){var R=f("../lib/dom"),_=(function(){function S(u){u.on("click",function(h){var s=h.getDocumentPosition(),o=u.session,i=o.getFoldAt(s.row,s.column,1);i&&(h.getAccelKey()?o.removeFold(i):o.expandFold(i),h.stop());var r=h.domEvent&&h.domEvent.target;r&&R.hasCssClass(r,"ace_inline_button")&&R.hasCssClass(r,"ace_toggle_wrap")&&(o.setOption("wrap",!o.getUseWrapMode()),u.renderer.scrollCursorIntoView())}),u.on("gutterclick",function(h){var s=u.renderer.$gutterLayer.getRegion(h);if(s=="foldWidgets"){var o=h.getDocumentPosition().row,i=u.session;i.foldWidgets&&i.foldWidgets[o]&&u.session.onFoldWidgetClick(o,h),u.isFocused()||u.focus(),h.stop()}}),u.on("gutterdblclick",function(h){var s=u.renderer.$gutterLayer.getRegion(h);if(s=="foldWidgets"){var o=h.getDocumentPosition().row,i=u.session,r=i.getParentFoldRangeData(o,!0),t=r.range||r.firstRange;if(t){o=t.start.row;var n=i.getFoldAt(o,i.getLine(o).length,1);n?i.removeFold(n):(i.addFold("...",t),u.renderer.scrollCursorIntoView({row:t.start.row,column:0}))}h.stop()}})}return S})();b.FoldHandler=_}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(f,b,z){var R=f("../lib/keys"),_=f("../lib/event"),S=(function(){function u(h){this.$editor=h,this.$data={editor:h},this.$handlers=[],this.setDefaultHandler(h.commands)}return u.prototype.setDefaultHandler=function(h){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=h,this.addKeyboardHandler(h,0)},u.prototype.setKeyboardHandler=function(h){var s=this.$handlers;if(s[s.length-1]!=h){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(h,1)}},u.prototype.addKeyboardHandler=function(h,s){if(h){typeof h=="function"&&!h.handleKeyboard&&(h.handleKeyboard=h);var o=this.$handlers.indexOf(h);o!=-1&&this.$handlers.splice(o,1),s==null?this.$handlers.push(h):this.$handlers.splice(s,0,h),o==-1&&h.attach&&h.attach(this.$editor)}},u.prototype.removeKeyboardHandler=function(h){var s=this.$handlers.indexOf(h);return s==-1?!1:(this.$handlers.splice(s,1),h.detach&&h.detach(this.$editor),!0)},u.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},u.prototype.getStatusText=function(){var h=this.$data,s=h.editor;return this.$handlers.map(function(o){return o.getStatusText&&o.getStatusText(s,h)||""}).filter(Boolean).join(" ")},u.prototype.$callKeyboardHandlers=function(h,s,o,i){for(var r,t=!1,n=this.$editor.commands,a=this.$handlers.length;a--&&(r=this.$handlers[a].handleKeyboard(this.$data,h,s,o,i),!(!(!r||!r.command)&&(r.command=="null"?t=!0:t=n.exec(r.command,this.$editor,r.args,i),t&&i&&h!=-1&&r.passEvent!=!0&&r.command.passEvent!=!0&&_.stopEvent(i),t))););return!t&&h==-1&&(r={command:"insertstring"},t=n.exec("insertstring",this.$editor,s)),t&&this.$editor._signal&&this.$editor._signal("keyboardActivity",r),t},u.prototype.onCommandKey=function(h,s,o){var i=R.keyCodeToString(o);return this.$callKeyboardHandlers(s,i,o,h)},u.prototype.onTextInput=function(h){return this.$callKeyboardHandlers(-1,h)},u})();b.KeyBinding=S}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(f,b,z){var R=0,_=0,S=!1,u=!1,h=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],o=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],i=0,r=1,t=0,n=1,a=2,d=3,g=4,L=5,C=6,y=7,p=8,$=9,I=10,M=11,A=12,H=13,D=14,T=15,x=16,m=17,E=18,W=[E,E,E,E,E,E,E,E,E,C,L,C,p,L,E,E,E,E,E,E,E,E,E,E,E,E,E,E,L,L,L,C,p,g,g,M,M,M,g,g,g,g,g,I,$,I,$,$,a,a,a,a,a,a,a,a,a,a,$,g,g,g,g,g,g,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,g,g,g,g,g,g,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,g,g,g,g,E,E,E,E,E,E,L,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,$,g,M,M,M,M,g,g,g,g,t,g,g,E,g,g,M,M,a,a,g,t,g,g,g,a,t,g,g,g,g,g],U=[p,p,p,p,p,p,p,p,p,p,p,E,E,E,t,n,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,p,L,H,D,T,x,m,$,M,M,M,M,M,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,$,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,p];function q(ne,he,ue,le){var me=R?o:s,Se=null,_e=null,Ae=null,qe=0,Ue=null,nt=null,at=-1,tt=null,Rt=null,pi=[];if(!le)for(tt=0,le=[];tt<ue;tt++)le[tt]=ce(ne[tt]);for(_=R,S=!1,u=!1,h=!1,Rt=0;Rt<ue;Rt++){if(Se=qe,pi[Rt]=_e=te(ne,le,pi,Rt),qe=me[Se][_e],Ue=qe&240,qe&=15,he[Rt]=Ae=me[qe][5],Ue>0)if(Ue==16){for(tt=at;tt<Rt;tt++)he[tt]=1;at=-1}else at=-1;if(nt=me[qe][6],nt)at==-1&&(at=Rt);else if(at>-1){for(tt=at;tt<Rt;tt++)he[tt]=Ae;at=-1}le[Rt]==L&&(he[Rt]=0),_|=Ae}if(h){for(tt=0;tt<ue;tt++)if(le[tt]==C){he[tt]=R;for(var kt=tt-1;kt>=0&&le[kt]==p;kt--)he[kt]=R}}}function Q(ne,he,ue){if(!(_<ne)){if(ne==1&&R==r&&!u){ue.reverse();return}for(var le=ue.length,me=0,Se,_e,Ae,qe;me<le;){if(he[me]>=ne){for(Se=me+1;Se<le&&he[Se]>=ne;)Se++;for(_e=me,Ae=Se-1;_e<Ae;_e++,Ae--)qe=ue[_e],ue[_e]=ue[Ae],ue[Ae]=qe;me=Se}me++}}}function te(ne,he,ue,le){var me=he[le],Se,_e,Ae,qe;switch(me){case t:case n:S=!1;case g:case d:return me;case a:return S?d:a;case y:return S=!0,n;case p:return g;case $:return le<1||le+1>=he.length||(Se=ue[le-1])!=a&&Se!=d||(_e=he[le+1])!=a&&_e!=d?g:(S&&(_e=d),_e==Se?_e:g);case I:return Se=le>0?ue[le-1]:L,Se==a&&le+1<he.length&&he[le+1]==a?a:g;case M:if(le>0&&ue[le-1]==a)return a;if(S)return g;for(qe=le+1,Ae=he.length;qe<Ae&&he[qe]==M;)qe++;return qe<Ae&&he[qe]==a?a:g;case A:for(Ae=he.length,qe=le+1;qe<Ae&&he[qe]==A;)qe++;if(qe<Ae){var Ue=ne[le],nt=Ue>=1425&&Ue<=2303||Ue==64286;if(Se=he[qe],nt&&(Se==n||Se==y))return n}return le<1||(Se=he[le-1])==L?g:ue[le-1];case L:return S=!1,u=!0,R;case C:return h=!0,g;case H:case D:case x:case m:case T:S=!1;case E:return g}}function ce(ne){var he=ne.charCodeAt(0),ue=he>>8;return ue==0?he>191?t:W[he]:ue==5?/[\u0591-\u05f4]/.test(ne)?n:t:ue==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?A:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?d:he==1642?M:/[\u06f0-\u06f9]/.test(ne)?a:y:ue==32&&he<=8287?U[he&255]:ue==254&&he>=65136?y:g}b.L=t,b.R=n,b.EN=a,b.ON_R=3,b.AN=4,b.R_H=5,b.B=6,b.RLE=7,b.DOT="·",b.doBidiReorder=function(ne,he,ue){if(ne.length<2)return{};var le=ne.split(""),me=new Array(le.length),Se=new Array(le.length),_e=[];R=ue?r:i,q(le,_e,le.length,he);for(var Ae=0;Ae<me.length;me[Ae]=Ae,Ae++);Q(2,_e,me),Q(1,_e,me);for(var Ae=0;Ae<me.length-1;Ae++)he[Ae]===d?_e[Ae]=b.AN:_e[Ae]===n&&(he[Ae]>y&&he[Ae]<H||he[Ae]===g||he[Ae]===E)?_e[Ae]=b.ON_R:Ae>0&&le[Ae-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(le[Ae])&&(_e[Ae-1]=_e[Ae]=b.R_H,Ae++);le[le.length-1]===b.DOT&&(_e[le.length-1]=b.B),le[0]===""&&(_e[0]=b.RLE);for(var Ae=0;Ae<me.length;Ae++)Se[Ae]=_e[me[Ae]];return{logicalFromVisual:me,bidiLevels:Se}},b.hasBidiCharacters=function(ne,he){for(var ue=!1,le=0;le<ne.length;le++)he[le]=ce(ne.charAt(le)),!ue&&(he[le]==n||he[le]==y||he[le]==d)&&(ue=!0);return ue},b.getVisualFromLogicalIdx=function(ne,he){for(var ue=0;ue<he.logicalFromVisual.length;ue++)if(he.logicalFromVisual[ue]==ne)return ue;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(f,b,z){var R=f("./lib/bidiutil"),_=f("./lib/lang"),S=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,u=(function(){function h(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=R,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=S.test(s.getValue())}return h.prototype.isBidiRow=function(s,o,i){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(o,i),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},h.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&S.test(s.lines.join(`
|
|
173
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},h.prototype.getDocumentRow=function(){var s=0,o=this.session.$screenRowCache;if(o.length){var i=this.session.$getRowCacheIndex(o,this.currentRow);i>=0&&(s=this.session.$docRowCache[i])}return s},h.prototype.getSplitIndex=function(){var s=0,o=this.session.$screenRowCache;if(o.length)for(var i,r=this.session.$getRowCacheIndex(o,this.currentRow);this.currentRow-s>0&&(i=this.session.$getRowCacheIndex(o,this.currentRow-s-1),i===r);)r=i,s++;else s=this.currentRow;return s},h.prototype.updateRowLine=function(s,o){s===void 0&&(s=this.getDocumentRow());var i=s===this.session.getLength()-1,r=i?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var t=this.session.$wrapData[s];t&&(o===void 0&&(o=this.getSplitIndex()),o>0&&t.length?(this.wrapIndent=t.indent,this.wrapOffset=this.wrapIndent*this.charWidths[R.L],this.line=o<t.length?this.line.substring(t[o-1],t[o]):this.line.substring(t[t.length-1])):this.line=this.line.substring(0,t[o]),o==t.length&&(this.line+=this.showInvisibles?r:R.DOT))}else this.line+=this.showInvisibles?r:R.DOT;var n=this.session,a=0,d;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(g,L){return g===" "||n.isFullWidth(g.charCodeAt(0))?(d=g===" "?n.getScreenTabSize(L+a):2,a+=d-1,_.stringRepeat(R.DOT,d)):g}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==R.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},h.prototype.updateBidiMap=function(){var s=[];R.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=R.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},h.prototype.markAsDirty=function(){this.currentRow=null},h.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var o=this.characterWidth=s.$characterSize.width,i=s.$measureCharWidth("ה");this.charWidths[R.L]=this.charWidths[R.EN]=this.charWidths[R.ON_R]=o,this.charWidths[R.R]=this.charWidths[R.AN]=i,this.charWidths[R.R_H]=i*.45,this.charWidths[R.B]=this.charWidths[R.RLE]=0,this.currentRow=null}},h.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},h.prototype.setEolChar=function(s){this.EOL=s},h.prototype.setContentWidth=function(s){this.contentWidth=s},h.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},h.prototype.setRtlDirection=function(s,o){for(var i=s.getCursorPosition(),r=s.selection.getSelectionAnchor().row;r<=i.row;r++)!o&&s.session.getLine(r).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(r,0,1):o&&s.session.getLine(r).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:r},s.session.$bidiHandler.RLE)},h.prototype.getPosLeft=function(s){s-=this.wrapIndent;var o=this.line.charAt(0)===this.RLE?1:0,i=s>o?this.session.getOverwrite()?s:s-1:o,r=R.getVisualFromLogicalIdx(i,this.bidiMap),t=this.bidiMap.bidiLevels,n=0;!this.session.getOverwrite()&&s<=o&&t[r]%2!==0&&r++;for(var a=0;a<r;a++)n+=this.charWidths[t[a]];return!this.session.getOverwrite()&&s>o&&t[r]%2===0&&(n+=this.charWidths[t[r]]),this.wrapIndent&&(n+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(n+=this.rtlLineOffset),n},h.prototype.getSelections=function(s,o){var i=this.bidiMap,r=i.bidiLevels,t,n=[],a=0,d=Math.min(s,o)-this.wrapIndent,g=Math.max(s,o)-this.wrapIndent,L=!1,C=!1,y=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var p,$=0;$<r.length;$++)p=i.logicalFromVisual[$],t=r[$],L=p>=d&&p<g,L&&!C?y=a:!L&&C&&n.push({left:y,width:a-y}),a+=this.charWidths[t],C=L;if(L&&$===r.length&&n.push({left:y,width:a-y}),this.isRtlDir)for(var I=0;I<n.length;I++)n[I].left+=this.rtlLineOffset;return n},h.prototype.offsetToCol=function(i){this.isRtlDir&&(i-=this.rtlLineOffset);var o=0,i=Math.max(i,0),r=0,t=0,n=this.bidiMap.bidiLevels,a=this.charWidths[n[t]];for(this.wrapIndent&&(i-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);i>r+a/2;){if(r+=a,t===n.length-1){a=0;break}a=this.charWidths[n[++t]]}return t>0&&n[t-1]%2!==0&&n[t]%2===0?(i<r&&t--,o=this.bidiMap.logicalFromVisual[t]):t>0&&n[t-1]%2===0&&n[t]%2!==0?o=1+(i>r?this.bidiMap.logicalFromVisual[t]:this.bidiMap.logicalFromVisual[t-1]):this.isRtlDir&&t===n.length-1&&a===0&&n[t-1]%2===0||!this.isRtlDir&&t===0&&n[t]%2!==0?o=1+this.bidiMap.logicalFromVisual[t]:(t>0&&n[t-1]%2!==0&&a!==0&&t--,o=this.bidiMap.logicalFromVisual[t]),o===0&&this.isRtlDir&&o++,o+this.wrapIndent},h})();b.BidiHandler=u}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(f,b,z){var R=f("./lib/oop"),_=f("./lib/lang"),S=f("./lib/event_emitter").EventEmitter,u=f("./range").Range,h=(function(){function s(o){this.session=o,this.doc=o.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var i=this;this.cursor.on("change",function(r){i.$cursorChanged=!0,i.$silent||i._emit("changeCursor"),!i.$isEmpty&&!i.$silent&&i._emit("changeSelection"),!i.$keepDesiredColumnOnChange&&r.old.column!=r.value.column&&(i.$desiredColumn=null)}),this.anchor.on("change",function(){i.$anchorChanged=!0,!i.$isEmpty&&!i.$silent&&i._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(o,i){this.$isEmpty=!1,this.anchor.setPosition(o,i)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var o=this.anchor,i=this.lead;return o.row>i.row||o.row==i.row&&o.column>i.column},s.prototype.getRange=function(){var o=this.anchor,i=this.lead;return this.$isEmpty?u.fromPoints(i,i):this.isBackwards()?u.fromPoints(i,o):u.fromPoints(o,i)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(o,i){var r=i?o.end:o.start,t=i?o.start:o.end;this.$setSelection(r.row,r.column,t.row,t.column)},s.prototype.$setSelection=function(o,i,r,t){if(!this.$silent){var n=this.$isEmpty,a=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(o,i),this.cursor.setPosition(r,t),this.$isEmpty=!u.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||n!=this.$isEmpty||a)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(o){var i=this.lead;this.$isEmpty&&this.setSelectionAnchor(i.row,i.column),o.call(this)},s.prototype.selectTo=function(o,i){this.$moveSelection(function(){this.moveCursorTo(o,i)})},s.prototype.selectToPosition=function(o){this.$moveSelection(function(){this.moveCursorToPosition(o)})},s.prototype.moveTo=function(o,i){this.clearSelection(),this.moveCursorTo(o,i)},s.prototype.moveToPosition=function(o){this.clearSelection(),this.moveCursorToPosition(o)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(o,i){if(typeof i>"u"){var r=o||this.lead;o=r.row,i=r.column}return this.session.getWordRange(o,i)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var o=this.getCursor(),i=this.session.getAWordRange(o.row,o.column);this.setSelectionRange(i)},s.prototype.getLineRange=function(o,i){var r=typeof o=="number"?o:this.lead.row,t,n=this.session.getFoldLine(r);return n?(r=n.start.row,t=n.end.row):t=r,i===!0?new u(r,0,t,this.session.getLine(t).length):new u(r,0,t+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(o,i,r){var t=o.column,n=o.column+i;return r<0&&(t=o.column-i,n=o.column),this.session.isTabStop(o)&&this.doc.getLine(o.row).slice(t,n).split(" ").length-1==i},s.prototype.moveCursorLeft=function(){var o=this.lead.getPosition(),i;if(i=this.session.getFoldAt(o.row,o.column,-1))this.moveCursorTo(i.start.row,i.start.column);else if(o.column===0)o.row>0&&this.moveCursorTo(o.row-1,this.doc.getLine(o.row-1).length);else{var r=this.session.getTabSize();this.wouldMoveIntoSoftTab(o,r,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-r):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var o=this.lead.getPosition(),i;if(i=this.session.getFoldAt(o.row,o.column,1))this.moveCursorTo(i.end.row,i.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var r=this.session.getTabSize(),o=this.lead;this.wouldMoveIntoSoftTab(o,r,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,r):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var o=this.lead.row,i=this.lead.column,r=this.session.documentToScreenRow(o,i),t=this.session.screenToDocumentPosition(r,0),n=this.session.getDisplayLine(o,null,t.row,t.column),a=n.match(/^\s*/);a[0].length!=i&&!this.session.$useEmacsStyleLineStart&&(t.column+=a[0].length),this.moveCursorToPosition(t)},s.prototype.moveCursorLineEnd=function(){var o=this.lead,i=this.session.getDocumentLastRowColumnPosition(o.row,o.column);if(this.lead.column==i.column){var r=this.session.getLine(i.row);if(i.column==r.length){var t=r.search(/\s+$/);t>0&&(i.column=t)}}this.moveCursorTo(i.row,i.column)},s.prototype.moveCursorFileEnd=function(){var o=this.doc.getLength()-1,i=this.doc.getLine(o).length;this.moveCursorTo(o,i)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var o=this.lead.row,i=this.lead.column,r=this.doc.getLine(o),t=r.substring(i);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var n=this.session.getFoldAt(o,i,1);if(n){this.moveCursorTo(n.end.row,n.end.column);return}if(this.session.nonTokenRe.exec(t)&&(i+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,t=r.substring(i)),i>=r.length){this.moveCursorTo(o,r.length),this.moveCursorRight(),o<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(t)&&(i+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(o,i)},s.prototype.moveCursorLongWordLeft=function(){var o=this.lead.row,i=this.lead.column,r;if(r=this.session.getFoldAt(o,i,-1)){this.moveCursorTo(r.start.row,r.start.column);return}var t=this.session.getFoldStringAt(o,i,-1);t==null&&(t=this.doc.getLine(o).substring(0,i));var n=_.stringReverse(t);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(n)&&(i-=this.session.nonTokenRe.lastIndex,n=n.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),i<=0){this.moveCursorTo(o,0),this.moveCursorLeft(),o>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(n)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(o,i)},s.prototype.$shortWordEndIndex=function(o){var i=0,r,t=/\s/,n=this.session.tokenRe;if(n.lastIndex=0,this.session.tokenRe.exec(o))i=this.session.tokenRe.lastIndex;else{for(;(r=o[i])&&t.test(r);)i++;if(i<1){for(n.lastIndex=0;(r=o[i])&&!n.test(r);)if(n.lastIndex=0,i++,t.test(r))if(i>2){i--;break}else{for(;(r=o[i])&&t.test(r);)i++;if(i>2)break}}}return n.lastIndex=0,i},s.prototype.moveCursorShortWordRight=function(){var o=this.lead.row,i=this.lead.column,r=this.doc.getLine(o),t=r.substring(i),n=this.session.getFoldAt(o,i,1);if(n)return this.moveCursorTo(n.end.row,n.end.column);if(i==r.length){var a=this.doc.getLength();do o++,t=this.doc.getLine(o);while(o<a&&/^\s*$/.test(t));/^\s+/.test(t)||(t=""),i=0}var d=this.$shortWordEndIndex(t);this.moveCursorTo(o,i+d)},s.prototype.moveCursorShortWordLeft=function(){var o=this.lead.row,i=this.lead.column,r;if(r=this.session.getFoldAt(o,i,-1))return this.moveCursorTo(r.start.row,r.start.column);var t=this.session.getLine(o).substring(0,i);if(i===0){do o--,t=this.doc.getLine(o);while(o>0&&/^\s*$/.test(t));i=t.length,/\s+$/.test(t)||(t="")}var n=_.stringReverse(t),a=this.$shortWordEndIndex(n);return this.moveCursorTo(o,i-a)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(o,i){var r=this.session.documentToScreenPosition(this.lead.row,this.lead.column),t;if(i===0&&(o!==0&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(t=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(t/this.session.$bidiHandler.charWidths[0])):t=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),o!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var n=this.session.lineWidgets[this.lead.row];o<0?o-=n.rowsAbove||0:o>0&&(o+=n.rowCount-(n.rowsAbove||0))}var a=this.session.screenToDocumentPosition(r.row+o,r.column,t);o!==0&&i===0&&a.row===this.lead.row&&(a.column,this.lead.column),this.moveCursorTo(a.row,a.column+i,i===0)},s.prototype.moveCursorToPosition=function(o){this.moveCursorTo(o.row,o.column)},s.prototype.moveCursorTo=function(o,i,r){var t=this.session.getFoldAt(o,i,1);t&&(o=t.start.row,i=t.start.column),this.$keepDesiredColumnOnChange=!0;var n=this.session.getLine(o);/[\uDC00-\uDFFF]/.test(n.charAt(i))&&n.charAt(i-1)&&(this.lead.row==o&&this.lead.column==i+1?i=i-1:i=i+1),this.lead.setPosition(o,i),this.$keepDesiredColumnOnChange=!1,r||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(o,i,r){var t=this.session.screenToDocumentPosition(o,i);this.moveCursorTo(t.row,t.column,r)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(o){this.setSelectionRange(o,o.cursor==o.start),this.$desiredColumn=o.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(o){var i=this.getRange();return o?(o.start.column=i.start.column,o.start.row=i.start.row,o.end.column=i.end.column,o.end.row=i.end.row):o=i,o.cursor=this.isBackwards()?o.start:o.end,o.desiredColumn=this.$desiredColumn,o},s.prototype.getRangeOfMovements=function(o){var i=this.getCursor();try{o(this);var r=this.getCursor();return u.fromPoints(i,r)}catch{return u.fromPoints(i,i)}finally{this.moveCursorToPosition(i)}},s.prototype.toJSON=function(){if(this.rangeCount)var o=this.ranges.map(function(i){var r=i.clone();return r.isBackwards=i.cursor==i.start,r});else{var o=this.getRange();o.isBackwards=this.isBackwards()}return o},s.prototype.fromJSON=function(o){if(o.start==null)if(this.rangeList&&o.length>1){this.toSingleRange(o[0]);for(var i=o.length;i--;){var r=u.fromPoints(o[i].start,o[i].end);o[i].isBackwards&&(r.cursor=r.start),this.addRange(r,!0)}return}else o=o[0];this.rangeList&&this.toSingleRange(o),this.setSelectionRange(o,o.isBackwards)},s.prototype.isEqual=function(o){if((o.length||this.rangeCount)&&o.length!=this.rangeCount)return!1;if(!o.length||!this.ranges)return this.getRange().isEqual(o);for(var i=this.ranges.length;i--;)if(!this.ranges[i].isEqual(o[i]))return!1;return!0},s})();h.prototype.setSelectionAnchor=h.prototype.setAnchor,h.prototype.getSelectionAnchor=h.prototype.getAnchor,h.prototype.setSelectionRange=h.prototype.setRange,R.implement(h.prototype,S),b.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(f,b,z){var R=f("./lib/report_error").reportError,_=2e3,S=(function(){function u(h){this.splitRegex,this.states=h,this.regExps={},this.matchMappings={};for(var s in this.states){for(var o=this.states[s],i=[],r=0,t=this.matchMappings[s]={defaultToken:"text"},n="g",a=[],d=0;d<o.length;d++){var g=o[d];if(g.defaultToken&&(t.defaultToken=g.defaultToken),g.caseInsensitive&&n.indexOf("i")===-1&&(n+="i"),g.unicode&&n.indexOf("u")===-1&&(n+="u"),g.regex!=null){g.regex instanceof RegExp&&(g.regex=g.regex.toString().slice(1,-1));var L=g.regex,C=new RegExp("(?:("+L+")|(.))").exec("a").length-2;Array.isArray(g.token)?g.token.length==1||C==1?g.token=g.token[0]:C-1!=g.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:g,groupCount:C-1}),g.token=g.token[0]):(g.tokenArray=g.token,g.token=null,g.onMatch=this.$arrayTokens):typeof g.token=="function"&&!g.onMatch&&(C>1?g.onMatch=this.$applyToken:g.onMatch=g.token),C>1&&(/\\\d/.test(g.regex)?L=g.regex.replace(/\\([0-9]+)/g,function(y,p){return"\\"+(parseInt(p,10)+r+1)}):(C=1,L=this.removeCapturingGroups(g.regex)),!g.splitRegex&&typeof g.token!="string"&&a.push(g)),t[r]=d,r+=C,i.push(L),g.onMatch||(g.onMatch=null)}}i.length||(t[0]=0,i.push("$")),a.forEach(function(y){y.splitRegex=this.createSplitterRegexp(y.regex,n)},this),this.regExps[s]=new RegExp("("+i.join(")|(")+")|($)",n)}}return u.prototype.$setMaxTokenCount=function(h){_=h|0},u.prototype.$applyToken=function(h){var s=this.splitRegex.exec(h).slice(1),o=this.token.apply(this,s);if(typeof o=="string")return[{type:o,value:h}];for(var i=[],r=0,t=o.length;r<t;r++)s[r]&&(i[i.length]={type:o[r],value:s[r]});return i},u.prototype.$arrayTokens=function(h){if(!h)return[];var s=this.splitRegex.exec(h);if(!s)return"text";for(var o=[],i=this.tokenArray,r=0,t=i.length;r<t;r++)s[r+1]&&(o[o.length]={type:i[r],value:s[r+1]});return o},u.prototype.removeCapturingGroups=function(h){var s=h.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(o,i){return i?"(?:":o});return s},u.prototype.createSplitterRegexp=function(h,s){if(h.indexOf("(?=")!=-1){var o=0,i=!1,r={};h.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(t,n,a,d,g,L){return i?i=g!="]":g?i=!0:d?(o==r.stack&&(r.end=L+1,r.stack=-1),o--):a&&(o++,a.length!=1&&(r.stack=o,r.start=L)),t}),r.end!=null&&/^\)*$/.test(h.substr(r.end))&&(h=h.substring(0,r.start)+h.substr(r.end))}return h.charAt(0)!="^"&&(h="^"+h),h.charAt(h.length-1)!="$"&&(h+="$"),new RegExp(h,(s||"").replace("g",""))},u.prototype.getLineTokens=function(h,s){if(s&&typeof s!="string"){var o=s.slice(0);s=o[0],s==="#tmp"&&(o.shift(),s=o.shift())}else var o=[];var i=s||"start",r=this.states[i];r||(i="start",r=this.states[i]);var t=this.matchMappings[i],n=this.regExps[i];n.lastIndex=0;for(var a,d=[],g=0,L=0,C={type:null,value:""};a=n.exec(h);){var y=t.defaultToken,p=null,$=a[0],I=n.lastIndex;if(I-$.length>g){var M=h.substring(g,I-$.length);C.type==y?C.value+=M:(C.type&&d.push(C),C={type:y,value:M})}for(var A=0;A<a.length-2;A++)if(a[A+1]!==void 0){p=r[t[A]],p.onMatch?y=p.onMatch($,i,o,h):y=p.token,p.next&&(typeof p.next=="string"?i=p.next:i=p.next(i,o),r=this.states[i],r||(this.reportError("state doesn't exist",i),i="start",r=this.states[i]),t=this.matchMappings[i],g=I,n=this.regExps[i],n.lastIndex=I),p.consumeLineEnd&&(g=I);break}if($){if(typeof y=="string")(!p||p.merge!==!1)&&C.type===y?C.value+=$:(C.type&&d.push(C),C={type:y,value:$});else if(y){C.type&&d.push(C),C={type:null,value:""};for(var A=0;A<y.length;A++)d.push(y[A])}}if(g==h.length)break;if(g=I,L++>_){for(L>2*h.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:h});g<h.length;)C.type&&d.push(C),C={value:h.substring(g,g+=500),type:"overflow"};i="start",o=[];break}}return C.type&&d.push(C),o.length>1&&o[0]!==i&&o.unshift("#tmp",i),{tokens:d,state:o.length?o:i}},u})();S.prototype.reportError=R,b.Tokenizer=S}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(f,b,z){var R=f("../lib/deep_copy").deepCopy,_;_=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(h,s){if(!s){for(var o in h)this.$rules[o]=h[o];return}for(var o in h){for(var i=h[o],r=0;r<i.length;r++){var t=i[r];(t.next||t.onMatch)&&(typeof t.next=="string"&&t.next.indexOf(s)!==0&&(t.next=s+t.next),t.nextState&&t.nextState.indexOf(s)!==0&&(t.nextState=s+t.nextState))}this.$rules[s+o]=i}},this.getRules=function(){return this.$rules},this.embedRules=function(h,s,o,i,r){var t=typeof h=="function"?new h().getRules():h;if(i)for(var n=0;n<i.length;n++)i[n]=s+i[n];else{i=[];for(var a in t)i.push(s+a)}if(this.addRules(t,s),o)for(var d=Array.prototype[r?"push":"unshift"],n=0;n<i.length;n++)d.apply(this.$rules[i[n]],R(o));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var S=function(h,s){return(h!="start"||s.length)&&s.unshift(this.nextState,h),this.nextState},u=function(h,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var h=0,s=this.$rules;function o(i){var r=s[i];r.processed=!0;for(var t=0;t<r.length;t++){var n=r[t],a=null;Array.isArray(n)&&(a=n,n={}),!n.regex&&n.start&&(n.regex=n.start,n.next||(n.next=[]),n.next.push({defaultToken:n.token},{token:n.token+".end",regex:n.end||n.start,next:"pop"}),n.token=n.token+".start",n.push=!0);var d=n.next||n.push;if(d&&Array.isArray(d)){var g=n.stateName;g||(g=n.token,typeof g!="string"&&(g=g[0]||""),s[g]&&(g+=h++)),s[g]=d,n.next=g,o(g)}else d=="pop"&&(n.next=u);if(n.push&&(n.nextState=n.next||n.push,n.next=S,delete n.push),n.rules)for(var L in n.rules)s[L]?s[L].push&&s[L].push.apply(s[L],n.rules[L]):s[L]=n.rules[L];var C=typeof n=="string"?n:n.include;if(C&&(C==="$self"&&(C="start"),Array.isArray(C)?a=C.map(function(p){return s[p]}):a=s[C]),a){var y=[t,1].concat(a);n.noEscape&&(y=y.filter(function(p){return!p.next})),r.splice.apply(r,y),t--}n.keywordMap&&(n.token=this.createKeywordMapper(n.keywordMap,n.defaultToken||"text",n.caseInsensitive),delete n.defaultToken)}}Object.keys(s).forEach(o,this)},this.createKeywordMapper=function(h,s,o,i){var r=Object.create(null);return this.$keywordList=[],Object.keys(h).forEach(function(t){for(var n=h[t],a=n.split(i||"|"),d=a.length;d--;){var g=a[d];this.$keywordList.push(g),o&&(g=g.toLowerCase()),r[g]=t}},this),h=null,o?function(t){return r[t.toLowerCase()]||s}:function(t){return r[t]||s}},this.getKeywords=function(){return this.$keywords}}).call(_.prototype),b.TextHighlightRules=_}),ace.define("ace/mode/behaviour",["require","exports","module"],function(f,b,z){var R;R=function(){this.$behaviours={}},(function(){this.add=function(_,S,u){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[_]:this.$behaviours[_]={}}this.$behaviours[_][S]=u},this.addBehaviours=function(_){for(var S in _)for(var u in _[S])this.add(S,u,_[S][u])},this.remove=function(_){this.$behaviours&&this.$behaviours[_]&&delete this.$behaviours[_]},this.inherit=function(_,S){if(typeof _=="function")var u=new _().getBehaviours(S);else var u=_.getBehaviours(S);this.addBehaviours(u)},this.getBehaviours=function(_){if(_){for(var S={},u=0;u<_.length;u++)this.$behaviours[_[u]]&&(S[_[u]]=this.$behaviours[_[u]]);return S}else return this.$behaviours}}).call(R.prototype),b.Behaviour=R}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(f,b,z){var R=f("./range").Range,_=(function(){function S(u,h,s){this.$session=u,this.$row=h,this.$rowTokens=u.getTokens(h);var o=u.getTokenAt(h,s);this.$tokenIndex=o?o.index:-1}return S.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},S.prototype.stepForward=function(){this.$tokenIndex+=1;for(var u;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,u||(u=this.$session.getLength()),this.$row>=u)return this.$row=u-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},S.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},S.prototype.getCurrentTokenRow=function(){return this.$row},S.prototype.getCurrentTokenColumn=function(){var u=this.$rowTokens,h=this.$tokenIndex,s=u[h].start;if(s!==void 0)return s;for(s=0;h>0;)h-=1,s+=u[h].value.length;return s},S.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},S.prototype.getCurrentTokenRange=function(){var u=this.$rowTokens[this.$tokenIndex],h=this.getCurrentTokenColumn();return new R(this.$row,h,this.$row,h+u.value.length)},S})();b.TokenIterator=_}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(f,b,z){var R=f("../../lib/oop"),_=f("../behaviour").Behaviour,S=f("../../token_iterator").TokenIterator,u=f("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],o,i={},r={'"':'"',"'":"'"},t=function(d){var g=-1;if(d.multiSelect&&(g=d.selection.index,i.rangeCount!=d.multiSelect.rangeCount&&(i={rangeCount:d.multiSelect.rangeCount})),i[g])return o=i[g];o=i[g]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},n=function(d,g,L,C){var y=d.end.row-d.start.row;return{text:L+g+C,selection:[0,d.start.column+1,y,d.end.column+(y?0:1)]}},a;a=function(d){d=d||{},this.add("braces","insertion",function(g,L,C,y,p){var $=C.getCursorPosition(),I=y.doc.getLine($.row);if(p=="{"){t(C);var M=C.getSelectionRange(),A=y.doc.getTextRange(M),H=y.getTokenAt($.row,$.column);if(A!==""&&A!=="{"&&C.getWrapBehavioursEnabled())return n(M,A,"{","}");if(H&&/(?:string)\.quasi|\.xml/.test(H.type)){var D=[/tag\-(?:open|name)/,/attribute\-name/];return D.some(function(q){return q.test(H.type)})||/(string)\.quasi/.test(H.type)&&H.value[$.column-H.start-1]!=="$"?void 0:(a.recordAutoInsert(C,y,"}"),{text:"{}",selection:[1,1]})}else if(a.isSaneInsertion(C,y))return/[\]\}\)]/.test(I[$.column])||C.inMultiSelectMode||d.braces?(a.recordAutoInsert(C,y,"}"),{text:"{}",selection:[1,1]}):(a.recordMaybeInsert(C,y,"{"),{text:"{",selection:[1,1]})}else if(p=="}"){t(C);var T=I.substring($.column,$.column+1);if(T=="}"){var x=y.$findOpeningBracket("}",{column:$.column+1,row:$.row});if(x!==null&&a.isAutoInsertedClosing($,I,p))return a.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(p==`
|
|
174
|
+
`||p==`\r
|
|
175
|
+
`){t(C);var m="";a.isMaybeInsertedClosing($,I)&&(m=u.stringRepeat("}",o.maybeInsertedBrackets),a.clearMaybeInsertedClosing());var T=I.substring($.column,$.column+1);if(T==="}"){var E=y.findMatchingBracket({row:$.row,column:$.column+1},"}");if(!E)return null;var W=this.$getIndent(y.getLine(E.row))}else if(m)var W=this.$getIndent(I);else{a.clearMaybeInsertedClosing();return}var U=W+y.getTabString();return{text:`
|
|
176
|
+
`+U+`
|
|
177
|
+
`+W+m,selection:[1,U.length,1,U.length]}}else a.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(g,L,C,y,p){var $=y.doc.getTextRange(p);if(!p.isMultiLine()&&$=="{"){t(C);var I=y.doc.getLine(p.start.row),M=I.substring(p.end.column,p.end.column+1);if(M=="}")return p.end.column++,p;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(g,L,C,y,p){if(p=="("){t(C);var $=C.getSelectionRange(),I=y.doc.getTextRange($);if(I!==""&&C.getWrapBehavioursEnabled())return n($,I,"(",")");if(a.isSaneInsertion(C,y))return a.recordAutoInsert(C,y,")"),{text:"()",selection:[1,1]}}else if(p==")"){t(C);var M=C.getCursorPosition(),A=y.doc.getLine(M.row),H=A.substring(M.column,M.column+1);if(H==")"){var D=y.$findOpeningBracket(")",{column:M.column+1,row:M.row});if(D!==null&&a.isAutoInsertedClosing(M,A,p))return a.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(g,L,C,y,p){var $=y.doc.getTextRange(p);if(!p.isMultiLine()&&$=="("){t(C);var I=y.doc.getLine(p.start.row),M=I.substring(p.start.column+1,p.start.column+2);if(M==")")return p.end.column++,p}}),this.add("brackets","insertion",function(g,L,C,y,p){if(p=="["){t(C);var $=C.getSelectionRange(),I=y.doc.getTextRange($);if(I!==""&&C.getWrapBehavioursEnabled())return n($,I,"[","]");if(a.isSaneInsertion(C,y))return a.recordAutoInsert(C,y,"]"),{text:"[]",selection:[1,1]}}else if(p=="]"){t(C);var M=C.getCursorPosition(),A=y.doc.getLine(M.row),H=A.substring(M.column,M.column+1);if(H=="]"){var D=y.$findOpeningBracket("]",{column:M.column+1,row:M.row});if(D!==null&&a.isAutoInsertedClosing(M,A,p))return a.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(g,L,C,y,p){var $=y.doc.getTextRange(p);if(!p.isMultiLine()&&$=="["){t(C);var I=y.doc.getLine(p.start.row),M=I.substring(p.start.column+1,p.start.column+2);if(M=="]")return p.end.column++,p}}),this.add("string_dquotes","insertion",function(g,L,C,y,p){var $=y.$mode.$quotes||r;if(p.length==1&&$[p]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(p)!=-1)return;t(C);var I=p,M=C.getSelectionRange(),A=y.doc.getTextRange(M);if(A!==""&&(A.length!=1||!$[A])&&C.getWrapBehavioursEnabled())return n(M,A,I,I);if(!A){var H=C.getCursorPosition(),D=y.doc.getLine(H.row),T=D.substring(H.column-1,H.column),x=D.substring(H.column,H.column+1),m=y.getTokenAt(H.row,H.column),E=y.getTokenAt(H.row,H.column+1);if(T=="\\"&&m&&/escape/.test(m.type))return null;var W=m&&/string|escape/.test(m.type),U=!E||/string|escape/.test(E.type),q;if(x==I)q=W!==U,q&&/string\.end/.test(E.type)&&(q=!1);else{if(W&&!U||W&&U)return null;var Q=y.$mode.tokenRe;Q.lastIndex=0;var te=Q.test(T);Q.lastIndex=0;var ce=Q.test(x),ne=y.$mode.$pairQuotesAfter,he=ne&&ne[I]&&ne[I].test(T);if(!he&&te||ce||x&&!/[\s;,.})\]\\]/.test(x))return null;var ue=D[H.column-2];if(T==I&&(ue==I||Q.test(ue)))return null;q=!0}return{text:q?I+I:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(g,L,C,y,p){var $=y.$mode.$quotes||r,I=y.doc.getTextRange(p);if(!p.isMultiLine()&&$.hasOwnProperty(I)){t(C);var M=y.doc.getLine(p.start.row),A=M.substring(p.start.column+1,p.start.column+2);if(A==I)return p.end.column++,p}}),d.closeDocComment!==!1&&this.add("doc comment end","insertion",function(g,L,C,y,p){if(g==="doc-start"&&(p===`
|
|
178
|
+
`||p===`\r
|
|
179
|
+
`)&&C.selection.isEmpty()){var $=C.getCursorPosition();if($.column===0)return;for(var I=y.doc.getLine($.row),M=y.doc.getLine($.row+1),A=y.getTokens($.row),H=0,D=0;D<A.length;D++){H+=A[D].value.length;var T=A[D];if(H>=$.column){if(H===$.column){if(!/\.doc/.test(T.type))return;if(/\*\//.test(T.value)){var x=A[D+1];if(!x||!/\.doc/.test(x.type))return}}var m=$.column-(H-T.value.length),E=T.value.indexOf("*/"),W=T.value.indexOf("/**",E>-1?E+2:0);if(W!==-1&&m>W&&m<W+3||E!==-1&&W!==-1&&m>=E&&m<=W||!/\.doc/.test(T.type))return;break}}var U=this.$getIndent(I);if(/\s*\*/.test(M))return/^\s*\*/.test(I)?{text:p+U+"* ",selection:[1,2+U.length,1,2+U.length]}:{text:p+U+" * ",selection:[1,3+U.length,1,3+U.length]};if(/\/\*\*/.test(I.substring(0,$.column)))return{text:p+U+" * "+p+" "+U+"*/",selection:[1,4+U.length,1,4+U.length]}}})},a.isSaneInsertion=function(d,g){var L=d.getCursorPosition(),C=new S(g,L.row,L.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",h)){if(/[)}\]]/.test(d.session.getLine(L.row)[L.column]))return!0;var y=new S(g,L.row,L.column+1);if(!this.$matchTokenType(y.getCurrentToken()||"text",h))return!1}return C.stepForward(),C.getCurrentTokenRow()!==L.row||this.$matchTokenType(C.getCurrentToken()||"text",s)},a.$matchTokenType=function(d,g){return g.indexOf(d.type||d)>-1},a.recordAutoInsert=function(d,g,L){var C=d.getCursorPosition(),y=g.doc.getLine(C.row);this.isAutoInsertedClosing(C,y,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=C.row,o.autoInsertedLineEnd=L+y.substr(C.column),o.autoInsertedBrackets++},a.recordMaybeInsert=function(d,g,L){var C=d.getCursorPosition(),y=g.doc.getLine(C.row);this.isMaybeInsertedClosing(C,y)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=C.row,o.maybeInsertedLineStart=y.substr(0,C.column)+L,o.maybeInsertedLineEnd=y.substr(C.column),o.maybeInsertedBrackets++},a.isAutoInsertedClosing=function(d,g,L){return o.autoInsertedBrackets>0&&d.row===o.autoInsertedRow&&L===o.autoInsertedLineEnd[0]&&g.substr(d.column)===o.autoInsertedLineEnd},a.isMaybeInsertedClosing=function(d,g){return o.maybeInsertedBrackets>0&&d.row===o.maybeInsertedRow&&g.substr(d.column)===o.maybeInsertedLineEnd&&g.substr(0,d.column)==o.maybeInsertedLineStart},a.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},a.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},R.inherits(a,_),b.CstyleBehaviour=a}),ace.define("ace/unicode",["require","exports","module"],function(f,b,z){for(var R=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],_=0,S=[],u=0;u<R.length;u+=2)S.push(_+=R[u]),R[u+1]&&S.push(45,_+=R[u+1]);b.wordChars=String.fromCharCode.apply(null,S)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(f,b,z){var R=f("../config"),_=f("../tokenizer").Tokenizer,S=f("./text_highlight_rules").TextHighlightRules,u=f("./behaviour/cstyle").CstyleBehaviour,h=f("../unicode"),s=f("../lib/lang"),o=f("../token_iterator").TokenIterator,i=f("../range").Range,r;r=function(){this.HighlightRules=S},(function(){this.$defaultBehaviour=new u,this.tokenRe=new RegExp("^["+h.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+h.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new _(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(t,n,a,d){var g=n.doc,L=!0,C=!0,y=1/0,p=n.getTabSize(),$=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var A=this.lineCommentStart.map(s.escapeRegExp).join("|"),I=this.lineCommentStart[0];else var A=s.escapeRegExp(this.lineCommentStart),I=this.lineCommentStart;A=new RegExp("^(\\s*)(?:"+A+") ?"),$=n.getUseSoftTabs();var T=function(ce,ne){var he=ce.match(A);if(he){var ue=he[1].length,le=he[0].length;!E(ce,ue,le)&&he[0][le-1]==" "&&le--,g.removeInLine(ne,ue,le)}},m=I+" ",D=function(ce,ne){(!L||/\S/.test(ce))&&(E(ce,y,y)?g.insertInLine({row:ne,column:y},m):g.insertInLine({row:ne,column:y},I))},x=function(ce,ne){return A.test(ce)},E=function(ce,ne,he){for(var ue=0;ne--&&ce.charAt(ne)==" ";)ue++;if(ue%p!=0)return!1;for(var ue=0;ce.charAt(he++)==" ";)ue++;return p>2?ue%p!=p-1:ue%p==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,M=this.blockComment.end,A=new RegExp("^(\\s*)(?:"+s.escapeRegExp(I)+")"),H=new RegExp("(?:"+s.escapeRegExp(M)+")\\s*$"),D=function(q,Q){x(q,Q)||(!L||/\S/.test(q))&&(g.insertInLine({row:Q,column:q.length},M),g.insertInLine({row:Q,column:y},I))},T=function(q,Q){var te;(te=q.match(H))&&g.removeInLine(Q,q.length-te[0].length,q.length),(te=q.match(A))&&g.removeInLine(Q,te[1].length,te[0].length)},x=function(q,Q){if(A.test(q))return!0;for(var te=n.getTokens(Q),ce=0;ce<te.length;ce++)if(te[ce].type==="comment")return!0}}function W(q){for(var Q=a;Q<=d;Q++)q(g.getLine(Q),Q)}var U=1/0;W(function(q,Q){var te=q.search(/\S/);te!==-1?(te<y&&(y=te),C&&!x(q,Q)&&(C=!1)):U>q.length&&(U=q.length)}),y==1/0&&(y=U,L=!1,C=!1),$&&y%p!=0&&(y=Math.floor(y/p)*p),W(C?T:D)},this.toggleBlockComment=function(t,n,a,d){var g=this.blockComment;if(g){!g.start&&g[0]&&(g=g[0]);var L=new o(n,d.row,d.column),C=L.getCurrentToken();n.selection;var y=n.selection.toOrientedRange(),p,$;if(C&&/comment/.test(C.type)){for(var I,M;C&&/comment/.test(C.type);){var A=C.value.indexOf(g.start);if(A!=-1){var H=L.getCurrentTokenRow(),D=L.getCurrentTokenColumn()+A;I=new i(H,D,H,D+g.start.length);break}C=L.stepBackward()}for(var L=new o(n,d.row,d.column),C=L.getCurrentToken();C&&/comment/.test(C.type);){var A=C.value.indexOf(g.end);if(A!=-1){var H=L.getCurrentTokenRow(),D=L.getCurrentTokenColumn()+A;M=new i(H,D,H,D+g.end.length);break}C=L.stepForward()}M&&n.remove(M),I&&(n.remove(I),p=I.start.row,$=-g.start.length)}else $=g.start.length,p=a.start.row,n.insert(a.end,g.end),n.insert(a.start,g.start);y.start.row==p&&(y.start.column+=$),y.end.row==p&&(y.end.column+=$),n.selection.fromOrientedRange(y)}},this.getNextLineIndent=function(t,n,a){return this.$getIndent(n)},this.checkOutdent=function(t,n,a){return!1},this.autoOutdent=function(t,n,a){},this.$getIndent=function(t){return t.match(/^\s*/)[0]},this.createWorker=function(t){return null},this.createModeDelegates=function(t){this.$embeds=[],this.$modes={};for(var n in t)if(t[n]){var a=t[n],d=a.prototype.$id,g=R.$modes[d];g||(R.$modes[d]=g=new a),R.$modes[n]||(R.$modes[n]=g),this.$embeds.push(n),this.$modes[n]=g}for(var L=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],C=function(p){(function($){var I=L[p],M=$[I];$[L[p]]=function(){return this.$delegator(I,arguments,M)}})(y)},y=this,n=0;n<L.length;n++)C(n)},this.$delegator=function(t,n,a){var d=n[0]||"start";if(typeof d!="string"){if(Array.isArray(d[2])){var g=d[2][d[2].length-1],L=this.$modes[g];if(L)return L[t].apply(L,[d[1]].concat([].slice.call(n,1)))}d=d[0]||"start"}for(var C=0;C<this.$embeds.length;C++)if(this.$modes[this.$embeds[C]]){var y=d.split(this.$embeds[C]);if(!y[0]&&y[1]){n[0]=y[1];var L=this.$modes[this.$embeds[C]];return L[t].apply(L,n)}}var p=a.apply(this,n);return a?p:void 0},this.transformAction=function(t,n,a,d,g){if(this.$behaviour){var L=this.$behaviour.getBehaviours();for(var C in L)if(L[C][n]){var y=L[C][n].apply(this,arguments);if(y)return y}}},this.getKeywords=function(t){if(!this.completionKeywords){var n=this.$tokenizer.rules,a=[];for(var d in n)for(var g=n[d],L=0,C=g.length;L<C;L++)if(typeof g[L].token=="string")/keyword|support|storage/.test(g[L].token)&&a.push(g[L].regex);else if(typeof g[L].token=="object"){for(var y=0,p=g[L].token.length;y<p;y++)if(/keyword|support|storage/.test(g[L].token[y])){var d=g[L].regex.match(/\(.+?\)/g)[y];a.push(d.substr(1,d.length-2))}}this.completionKeywords=a}return t?a.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(t,n,a,d){var g=this.$keywordList||this.$createKeywordList();return g.map(function(L){return{name:L,value:L,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(r.prototype),b.Mode=r}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(f,b,z){var R=f("./lib/dom"),_=(function(){function S(u){this.session=u,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return S.prototype.getRowLength=function(u){var h;return this.lineWidgets?h=this.lineWidgets[u]&&this.lineWidgets[u].rowCount||0:h=0,!this.$useWrapMode||!this.$wrapData[u]?1+h:this.$wrapData[u].length+1+h},S.prototype.$getWidgetScreenLength=function(){var u=0;return this.lineWidgets.forEach(function(h){h&&h.rowCount&&!h.hidden&&(u+=h.rowCount)}),u},S.prototype.$onChangeEditor=function(u){this.attach(u.editor)},S.prototype.attach=function(u){u&&u.widgetManager&&u.widgetManager!=this&&u.widgetManager.detach(),this.editor!=u&&(this.detach(),this.editor=u,u&&(u.widgetManager=this,u.renderer.on("beforeRender",this.measureWidgets),u.renderer.on("afterRender",this.renderWidgets)))},S.prototype.detach=function(u){var h=this.editor;if(h){this.editor=null,h.widgetManager=null,h.renderer.off("beforeRender",this.measureWidgets),h.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(o){o&&o.el&&o.el.parentNode&&(o._inDocument=!1,o.el.parentNode.removeChild(o.el))})}},S.prototype.updateOnFold=function(u,h){var s=h.lineWidgets;if(!(!s||!u.action)){for(var o=u.data,i=o.start.row,r=o.end.row,t=u.action=="add",n=i+1;n<r;n++)s[n]&&(s[n].hidden=t);s[r]&&(t?s[i]?s[r].hidden=t:s[i]=s[r]:(s[i]==s[r]&&(s[i]=void 0),s[r].hidden=t))}},S.prototype.updateOnChange=function(u){var h=this.session.lineWidgets;if(h){var s=u.start.row,o=u.end.row-s;if(o!==0)if(u.action=="remove"){var i=h.splice(s+1,o);!h[s]&&i[i.length-1]&&(h[s]=i.pop()),i.forEach(function(t){t&&this.removeLineWidget(t)},this),this.$updateRows()}else{var r=new Array(o);h[s]&&h[s].column!=null&&u.start.column>h[s].column&&s++,r.unshift(s,0),h.splice.apply(h,r),this.$updateRows()}}},S.prototype.$updateRows=function(){var u=this.session.lineWidgets;if(u){var h=!0;u.forEach(function(s,o){if(s)for(h=!1,s.row=o;s.$oldWidget;)s.$oldWidget.row=o,s=s.$oldWidget}),h&&(this.session.lineWidgets=null)}},S.prototype.$registerLineWidget=function(u){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var h=this.session.lineWidgets[u.row];return h&&(u.$oldWidget=h,h.el&&h.el.parentNode&&(h.el.parentNode.removeChild(h.el),h._inDocument=!1)),this.session.lineWidgets[u.row]=u,u},S.prototype.addLineWidget=function(u){if(this.$registerLineWidget(u),u.session=this.session,!this.editor)return u;var h=this.editor.renderer;u.html&&!u.el&&(u.el=R.createElement("div"),u.el.innerHTML=u.html),u.text&&!u.el&&(u.el=R.createElement("div"),u.el.textContent=u.text),u.el&&(R.addCssClass(u.el,"ace_lineWidgetContainer"),u.className&&R.addCssClass(u.el,u.className),u.el.style.position="absolute",u.el.style.zIndex="5",h.container.appendChild(u.el),u._inDocument=!0,u.coverGutter||(u.el.style.zIndex="3"),u.pixelHeight==null&&(u.pixelHeight=u.el.offsetHeight)),u.rowCount==null&&(u.rowCount=u.pixelHeight/h.layerConfig.lineHeight);var s=this.session.getFoldAt(u.row,0);if(u.$fold=s,s){var o=this.session.lineWidgets;u.row==s.end.row&&!o[s.start.row]?o[s.start.row]=u:u.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:u.row}}}),this.$updateRows(),this.renderWidgets(null,h),this.onWidgetChanged(u),u},S.prototype.removeLineWidget=function(u){if(u._inDocument=!1,u.session=null,u.el&&u.el.parentNode&&u.el.parentNode.removeChild(u.el),u.editor&&u.editor.destroy)try{u.editor.destroy()}catch{}if(this.session.lineWidgets){var h=this.session.lineWidgets[u.row];if(h==u)this.session.lineWidgets[u.row]=u.$oldWidget,u.$oldWidget&&this.onWidgetChanged(u.$oldWidget);else for(;h;){if(h.$oldWidget==u){h.$oldWidget=u.$oldWidget;break}h=h.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:u.row}}}),this.$updateRows()},S.prototype.getWidgetsAtRow=function(u){for(var h=this.session.lineWidgets,s=h&&h[u],o=[];s;)o.push(s),s=s.$oldWidget;return o},S.prototype.onWidgetChanged=function(u){this.session._changedWidgets.push(u),this.editor&&this.editor.renderer.updateFull()},S.prototype.measureWidgets=function(u,h){var s=this.session._changedWidgets,o=h.layerConfig;if(!(!s||!s.length)){for(var i=1/0,r=0;r<s.length;r++){var t=s[r];if(!(!t||!t.el)&&t.session==this.session){if(!t._inDocument){if(this.session.lineWidgets[t.row]!=t)continue;t._inDocument=!0,h.container.appendChild(t.el)}t.h=t.el.offsetHeight,t.fixedWidth||(t.w=t.el.offsetWidth,t.screenWidth=Math.ceil(t.w/o.characterWidth));var n=t.h/o.lineHeight;t.coverLine&&(n-=this.session.getRowLineCount(t.row),n<0&&(n=0)),t.rowCount!=n&&(t.rowCount=n,t.row<i&&(i=t.row))}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},S.prototype.renderWidgets=function(u,h){var s=h.layerConfig,o=this.session.lineWidgets;if(o){for(var i=Math.min(this.firstRow,s.firstRow),r=Math.max(this.lastRow,s.lastRow,o.length);i>0&&!o[i];)i--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,h.$cursorLayer.config=s;for(var t=i;t<=r;t++){var n=o[t];if(!(!n||!n.el)){if(n.hidden){n.el.style.top=-100-(n.pixelHeight||0)+"px";continue}n._inDocument||(n._inDocument=!0,h.container.appendChild(n.el));var a=h.$cursorLayer.getPixelPosition({row:t,column:0},!0).top;n.coverLine||(a+=s.lineHeight*this.session.getRowLineCount(n.row)),n.el.style.top=a-s.offset+"px";var d=n.coverGutter?0:h.gutterWidth;n.fixedWidth||(d-=h.scrollLeft),n.el.style.left=d+"px",n.fullWidth&&n.screenWidth&&(n.el.style.minWidth=s.width+2*s.padding+"px"),n.fixedWidth?n.el.style.right=h.scrollBar.getWidth()+"px":n.el.style.right=""}}}},S})();b.LineWidgets=_}),ace.define("ace/apply_delta",["require","exports","module"],function(f,b,z){b.applyDelta=function(R,_,S){var u=_.start.row,h=_.start.column,s=R[u]||"";switch(_.action){case"insert":var o=_.lines;if(o.length===1)R[u]=s.substring(0,h)+_.lines[0]+s.substring(h);else{var i=[u,1].concat(_.lines);R.splice.apply(R,i),R[u]=s.substring(0,h)+R[u],R[u+_.lines.length-1]+=s.substring(h)}break;case"remove":var r=_.end.column,t=_.end.row;u===t?R[u]=s.substring(0,h)+s.substring(r):R.splice(u,t-u+1,s.substring(0,h)+R[t].substring(r));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(f,b,z){var R=f("./lib/oop"),_=f("./lib/event_emitter").EventEmitter,S=(function(){function s(o,i,r){this.$onChange=this.onChange.bind(this),this.attach(o),typeof i!="number"?this.setPosition(i.row,i.column):this.setPosition(i,r)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(o){if(!(o.start.row==o.end.row&&o.start.row!=this.row)&&!(o.start.row>this.row)){var i=h(o,{row:this.row,column:this.column},this.$insertRight);this.setPosition(i.row,i.column,!0)}},s.prototype.setPosition=function(o,i,r){var t;if(r?t={row:o,column:i}:t=this.$clipPositionToDocument(o,i),!(this.row==t.row&&this.column==t.column)){var n={row:this.row,column:this.column};this.row=t.row,this.column=t.column,this._signal("change",{old:n,value:t})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(o){this.document=o||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(o,i){var r={};return o>=this.document.getLength()?(r.row=Math.max(0,this.document.getLength()-1),r.column=this.document.getLine(r.row).length):o<0?(r.row=0,r.column=0):(r.row=o,r.column=Math.min(this.document.getLine(r.row).length,Math.max(0,i))),i<0&&(r.column=0),r},s})();S.prototype.$insertRight=!1,R.implement(S.prototype,_);function u(s,o,i){var r=i?s.column<=o.column:s.column<o.column;return s.row<o.row||s.row==o.row&&r}function h(s,o,i){var r=s.action=="insert",t=(r?1:-1)*(s.end.row-s.start.row),n=(r?1:-1)*(s.end.column-s.start.column),a=s.start,d=r?a:s.end;return u(o,a,i)?{row:o.row,column:o.column}:u(d,o,!i)?{row:o.row+t,column:o.column+(o.row==d.row?n:0)}:{row:a.row,column:a.column}}b.Anchor=S}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(f,b,z){var R=f("./lib/oop"),_=f("./apply_delta").applyDelta,S=f("./lib/event_emitter").EventEmitter,u=f("./range").Range,h=f("./anchor").Anchor,s=(function(){function o(i){this.$lines=[""],i.length===0?this.$lines=[""]:Array.isArray(i)?this.insertMergedLines({row:0,column:0},i):this.insert({row:0,column:0},i)}return o.prototype.setValue=function(i){var r=this.getLength()-1;this.remove(new u(0,0,r,this.getLine(r).length)),this.insert({row:0,column:0},i||"")},o.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},o.prototype.createAnchor=function(i,r){return new h(this,i,r)},o.prototype.$detectNewLine=function(i){var r=i.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=r?r[1]:`
|
|
180
|
+
`,this._signal("changeNewLineMode")},o.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
181
|
+
`;case"unix":return`
|
|
182
|
+
`;default:return this.$autoNewLine||`
|
|
183
|
+
`}},o.prototype.setNewLineMode=function(i){this.$newLineMode!==i&&(this.$newLineMode=i,this._signal("changeNewLineMode"))},o.prototype.getNewLineMode=function(){return this.$newLineMode},o.prototype.isNewLine=function(i){return i==`\r
|
|
184
|
+
`||i=="\r"||i==`
|
|
185
|
+
`},o.prototype.getLine=function(i){return this.$lines[i]||""},o.prototype.getLines=function(i,r){return this.$lines.slice(i,r+1)},o.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},o.prototype.getLength=function(){return this.$lines.length},o.prototype.getTextRange=function(i){return this.getLinesForRange(i).join(this.getNewLineCharacter())},o.prototype.getLinesForRange=function(i){var r;if(i.start.row===i.end.row)r=[this.getLine(i.start.row).substring(i.start.column,i.end.column)];else{r=this.getLines(i.start.row,i.end.row),r[0]=(r[0]||"").substring(i.start.column);var t=r.length-1;i.end.row-i.start.row==t&&(r[t]=r[t].substring(0,i.end.column))}return r},o.prototype.insertLines=function(i,r){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(i,r)},o.prototype.removeLines=function(i,r){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(i,r)},o.prototype.insertNewLine=function(i){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(i,["",""])},o.prototype.insert=function(i,r){return this.getLength()<=1&&this.$detectNewLine(r),this.insertMergedLines(i,this.$split(r))},o.prototype.insertInLine=function(i,r){var t=this.clippedPos(i.row,i.column),n=this.pos(i.row,i.column+r.length);return this.applyDelta({start:t,end:n,action:"insert",lines:[r]},!0),this.clonePos(n)},o.prototype.clippedPos=function(i,r){var t=this.getLength();i===void 0?i=t:i<0?i=0:i>=t&&(i=t-1,r=void 0);var n=this.getLine(i);return r==null&&(r=n.length),r=Math.min(Math.max(r,0),n.length),{row:i,column:r}},o.prototype.clonePos=function(i){return{row:i.row,column:i.column}},o.prototype.pos=function(i,r){return{row:i,column:r}},o.prototype.$clipPosition=function(i){var r=this.getLength();return i.row>=r?(i.row=Math.max(0,r-1),i.column=this.getLine(r-1).length):(i.row=Math.max(0,i.row),i.column=Math.min(Math.max(i.column,0),this.getLine(i.row).length)),i},o.prototype.insertFullLines=function(i,r){i=Math.min(Math.max(i,0),this.getLength());var t=0;i<this.getLength()?(r=r.concat([""]),t=0):(r=[""].concat(r),i--,t=this.$lines[i].length),this.insertMergedLines({row:i,column:t},r)},o.prototype.insertMergedLines=function(i,r){var t=this.clippedPos(i.row,i.column),n={row:t.row+r.length-1,column:(r.length==1?t.column:0)+r[r.length-1].length};return this.applyDelta({start:t,end:n,action:"insert",lines:r}),this.clonePos(n)},o.prototype.remove=function(i){var r=this.clippedPos(i.start.row,i.start.column),t=this.clippedPos(i.end.row,i.end.column);return this.applyDelta({start:r,end:t,action:"remove",lines:this.getLinesForRange({start:r,end:t})}),this.clonePos(r)},o.prototype.removeInLine=function(i,r,t){var n=this.clippedPos(i,r),a=this.clippedPos(i,t);return this.applyDelta({start:n,end:a,action:"remove",lines:this.getLinesForRange({start:n,end:a})},!0),this.clonePos(n)},o.prototype.removeFullLines=function(i,r){i=Math.min(Math.max(0,i),this.getLength()-1),r=Math.min(Math.max(0,r),this.getLength()-1);var t=r==this.getLength()-1&&i>0,n=r<this.getLength()-1,a=t?i-1:i,d=t?this.getLine(a).length:0,g=n?r+1:r,L=n?0:this.getLine(g).length,C=new u(a,d,g,L),y=this.$lines.slice(i,r+1);return this.applyDelta({start:C.start,end:C.end,action:"remove",lines:this.getLinesForRange(C)}),y},o.prototype.removeNewLine=function(i){i<this.getLength()-1&&i>=0&&this.applyDelta({start:this.pos(i,this.getLine(i).length),end:this.pos(i+1,0),action:"remove",lines:["",""]})},o.prototype.replace=function(i,r){if(i instanceof u||(i=u.fromPoints(i.start,i.end)),r.length===0&&i.isEmpty())return i.start;if(r==this.getTextRange(i))return i.end;this.remove(i);var t;return r?t=this.insert(i.start,r):t=i.start,t},o.prototype.applyDeltas=function(i){for(var r=0;r<i.length;r++)this.applyDelta(i[r])},o.prototype.revertDeltas=function(i){for(var r=i.length-1;r>=0;r--)this.revertDelta(i[r])},o.prototype.applyDelta=function(i,r){var t=i.action=="insert";(t?i.lines.length<=1&&!i.lines[0]:!u.comparePoints(i.start,i.end))||(t&&i.lines.length>2e4?this.$splitAndapplyLargeDelta(i,2e4):(_(this.$lines,i,r),this._signal("change",i)))},o.prototype.$safeApplyDelta=function(i){var r=this.$lines.length;(i.action=="remove"&&i.start.row<r&&i.end.row<r||i.action=="insert"&&i.start.row<=r)&&this.applyDelta(i)},o.prototype.$splitAndapplyLargeDelta=function(i,r){for(var t=i.lines,n=t.length-r+1,a=i.start.row,d=i.start.column,g=0,L=0;g<n;g=L){L+=r-1;var C=t.slice(g,L);C.push(""),this.applyDelta({start:this.pos(a+g,d),end:this.pos(a+L,d=0),action:i.action,lines:C},!0)}i.lines=t.slice(g),i.start.row=a+g,i.start.column=d,this.applyDelta(i,!0)},o.prototype.revertDelta=function(i){this.$safeApplyDelta({start:this.clonePos(i.start),end:this.clonePos(i.end),action:i.action=="insert"?"remove":"insert",lines:i.lines.slice()})},o.prototype.indexToPosition=function(i,r){for(var t=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,a=r||0,d=t.length;a<d;a++)if(i-=t[a].length+n,i<0)return{row:a,column:i+t[a].length+n};return{row:d-1,column:i+t[d-1].length+n}},o.prototype.positionToIndex=function(i,r){for(var t=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,a=0,d=Math.min(i.row,t.length),g=r||0;g<d;++g)a+=t[g].length+n;return a+i.column},o.prototype.$split=function(i){return i.split(/\r\n|\r|\n/)},o})();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",R.implement(s.prototype,S),b.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(f,b,z){var R=f("./lib/oop"),_=f("./lib/event_emitter").EventEmitter,S=(function(){function u(h,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=h;var o=this;this.$worker=function(){if(o.running){for(var i=new Date,r=o.currentLine,t=-1,n=o.doc,a=r;o.lines[r];)r++;var d=n.getLength(),g=0;for(o.running=!1;r<d;){o.$tokenizeRow(r),t=r;do r++;while(o.lines[r]);if(g++,g%5===0&&new Date-i>20){o.running=setTimeout(o.$worker,20);break}}o.currentLine=r,t==-1&&(t=r),a<=t&&o.fireUpdateEvent(a,t)}}}return u.prototype.setTokenizer=function(h){this.tokenizer=h,this.lines=[],this.states=[],this.start(0)},u.prototype.setDocument=function(h){this.doc=h,this.lines=[],this.states=[],this.stop()},u.prototype.fireUpdateEvent=function(h,s){var o={first:h,last:s};this._signal("update",{data:o})},u.prototype.start=function(h){this.currentLine=Math.min(h||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},u.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},u.prototype.$updateOnChange=function(h){var s=h.start.row,o=h.end.row-s;if(o===0)this.lines[s]=null;else if(h.action=="remove")this.lines.splice(s,o+1,null),this.states.splice(s,o+1,null);else{var i=Array(o+1);i.unshift(s,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},u.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},u.prototype.getTokens=function(h){return this.lines[h]||this.$tokenizeRow(h)},u.prototype.getState=function(h){return this.currentLine==h&&this.$tokenizeRow(h),this.states[h]||"start"},u.prototype.$tokenizeRow=function(h){var s=this.doc.getLine(h),o=this.states[h-1],i=this.tokenizer.getLineTokens(s,o,h);return this.states[h]+""!=i.state+""?(this.states[h]=i.state,this.lines[h+1]=null,this.currentLine>h+1&&(this.currentLine=h+1)):this.currentLine==h&&(this.currentLine=h+1),this.lines[h]=i.tokens},u.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},u})();R.implement(S.prototype,_),b.BackgroundTokenizer=S}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(f,b,z){var R=f("./lib/lang"),_=f("./range").Range,S=(function(){function u(h,s,o){o===void 0&&(o="text"),this.setRegexp(h),this.clazz=s,this.type=o,this.docLen=0}return u.prototype.setRegexp=function(h){this.regExp+""!=h+""&&(this.regExp=h,this.cache=[])},u.prototype.update=function(h,s,o,i){if(this.regExp){for(var r=i.firstRow,t=i.lastRow,n={},a=o.$editor&&o.$editor.$search,d=a&&a.$isMultilineSearch(o.$editor.getLastSearchOptions()),g=r;g<=t;g++){var L=this.cache[g];if(L==null||o.getValue().length!=this.docLen){if(d){L=[];var C=a.$multiLineForward(o,this.regExp,g,t);if(C){var y=C.endRow<=t?C.endRow-1:t;y>g&&(g=y),L.push(new _(C.startRow,C.startCol,C.endRow,C.endCol))}L.length>this.MAX_RANGES&&(L=L.slice(0,this.MAX_RANGES))}else L=R.getMatchOffsets(o.getLine(g),this.regExp),L.length>this.MAX_RANGES&&(L=L.slice(0,this.MAX_RANGES)),L=L.map(function(M){return new _(g,M.offset,g,M.offset+M.length)});this.cache[g]=L.length?L:""}if(L.length!==0)for(var p=L.length;p--;){var $=L[p].toScreenRange(o),I=$.toString();n[I]||(n[I]=!0,s.drawSingleLineMarker(h,$,this.clazz,i))}}this.docLen=o.getValue().length}},u})();S.prototype.MAX_RANGES=500,b.SearchHighlight=S}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(f,b,z){var R=(function(){function y(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return y.prototype.addSession=function(p){this.$session=p},y.prototype.add=function(p,$,I){if(!this.$fromUndo&&p!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),$===!1||!this.lastDeltas){this.lastDeltas=[];var M=this.$undoStack.length;M>this.$undoDepth-1&&this.$undoStack.splice(0,M-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),p.id=this.$rev=++this.$maxRev}(p.action=="remove"||p.action=="insert")&&(this.$lastDelta=p),this.lastDeltas.push(p)}},y.prototype.addSelection=function(p,$){this.selections.push({value:p,rev:$||this.$rev})},y.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},y.prototype.markIgnored=function(p,$){$==null&&($=this.$rev+1);for(var I=this.$undoStack,M=I.length;M--;){var A=I[M][0];if(A.id<=p)break;A.id<$&&(A.ignore=!0)}this.lastDeltas=null},y.prototype.getSelection=function(p,$){for(var I=this.selections,M=I.length;M--;){var A=I[M];if(A.rev<p)return $&&(A=I[M+1]),A}},y.prototype.getRevision=function(){return this.$rev},y.prototype.getDeltas=function(p,$){$==null&&($=this.$rev+1);for(var I=this.$undoStack,M=null,A=0,H=I.length;H--;){var D=I[H][0];if(D.id<$&&!M&&(M=H+1),D.id<=p){A=H+1;break}}return I.slice(A,M)},y.prototype.getChangedRanges=function(p,$){$==null&&($=this.$rev+1)},y.prototype.getChangedLines=function(p,$){$==null&&($=this.$rev+1)},y.prototype.undo=function(p,$){this.lastDeltas=null;var I=this.$undoStack;if(_(I,I.length)){p||(p=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var M=I.pop(),A=null;return M&&(A=p.undoChanges(M,$),this.$redoStack.push(M),this.$syncRev()),this.$fromUndo=!1,A}},y.prototype.redo=function(p,$){if(this.lastDeltas=null,p||(p=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var I=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);C(this.$redoStack,I),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(H){H[0].id=++this.$maxRev},this)}var M=this.$redoStack.pop(),A=null;return M&&(A=p.redoChanges(M,$),this.$undoStack.push(M),this.$syncRev()),this.$fromUndo=!1,A},y.prototype.$syncRev=function(){var p=this.$undoStack,$=p[p.length-1],I=$&&$[0].id||0;this.$redoStackBaseRev=I,this.$rev=I},y.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},y.prototype.canUndo=function(){return this.$undoStack.length>0},y.prototype.canRedo=function(){return this.$redoStack.length>0},y.prototype.bookmark=function(p){p==null&&(p=this.$rev),this.mark=p},y.prototype.isAtBookmark=function(){return this.$rev===this.mark},y.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},y.prototype.fromJSON=function(p){this.reset(),this.$undoStack=p.$undoStack,this.$redoStack=p.$redoStack},y.prototype.$prettyPrint=function(p){return p?o(p):o(this.$undoStack)+`
|
|
186
|
+
---
|
|
187
|
+
`+o(this.$redoStack)},y})();R.prototype.hasUndo=R.prototype.canUndo,R.prototype.hasRedo=R.prototype.canRedo,R.prototype.isClean=R.prototype.isAtBookmark,R.prototype.markClean=R.prototype.bookmark;function _(y,p){for(var $=p;$--;){var I=y[$];if(I&&!I[0].ignore){for(;$<p-1;){var M=t(y[$],y[$+1]);y[$]=M[0],y[$+1]=M[1],$++}return!0}}}var S=f("./range").Range,u=S.comparePoints;S.comparePoints;function h(y){return{row:y.row,column:y.column}}function s(y){return{start:h(y.start),end:h(y.end),action:y.action,lines:y.lines.slice()}}function o(y){if(y=y||this,Array.isArray(y))return y.map(o).join(`
|
|
188
|
+
`);var p="";return y.action?(p=y.action=="insert"?"+":"-",p+="["+y.lines+"]"):y.value&&(Array.isArray(y.value)?p=y.value.map(i).join(`
|
|
189
|
+
`):p=i(y.value)),y.start&&(p+=i(y)),(y.id||y.rev)&&(p+=" ("+(y.id||y.rev)+")"),p}function i(y){return y.start.row+":"+y.start.column+"=>"+y.end.row+":"+y.end.column}function r(y,p){var $=y.action=="insert",I=p.action=="insert";if($&&I)if(u(p.start,y.end)>=0)a(p,y,-1);else if(u(p.start,y.start)<=0)a(y,p,1);else return null;else if($&&!I)if(u(p.start,y.end)>=0)a(p,y,-1);else if(u(p.end,y.start)<=0)a(y,p,-1);else return null;else if(!$&&I)if(u(p.start,y.start)>=0)a(p,y,1);else if(u(p.start,y.start)<=0)a(y,p,1);else return null;else if(!$&&!I)if(u(p.start,y.start)>=0)a(p,y,1);else if(u(p.end,y.start)<=0)a(y,p,-1);else return null;return[p,y]}function t(y,p){for(var $=y.length;$--;)for(var I=0;I<p.length;I++)if(!r(y[$],p[I])){for(;$<y.length;){for(;I--;)r(p[I],y[$]);I=p.length,$++}return[y,p]}return y.selectionBefore=p.selectionBefore=y.selectionAfter=p.selectionAfter=null,[p,y]}function n(y,p){var $=y.action=="insert",I=p.action=="insert";if($&&I)u(y.start,p.start)<0?a(p,y,1):a(y,p,1);else if($&&!I)u(y.start,p.end)>=0?a(y,p,-1):(u(y.start,p.start)<=0||a(y,S.fromPoints(p.start,y.start),-1),a(p,y,1));else if(!$&&I)u(p.start,y.end)>=0?a(p,y,-1):(u(p.start,y.start)<=0||a(p,S.fromPoints(y.start,p.start),-1),a(y,p,1));else if(!$&&!I)if(u(p.start,y.end)>=0)a(p,y,-1);else if(u(p.end,y.start)<=0)a(y,p,-1);else{var M,A;return u(y.start,p.start)<0&&(M=y,y=g(y,p.start)),u(y.end,p.end)>0&&(A=g(y,p.end)),d(p.end,y.start,y.end,-1),A&&!M&&(y.lines=A.lines,y.start=A.start,y.end=A.end,A=y),[p,M,A].filter(Boolean)}return[p,y]}function a(y,p,$){d(y.start,p.start,p.end,$),d(y.end,p.start,p.end,$)}function d(y,p,$,I){y.row==(I==1?p:$).row&&(y.column+=I*($.column-p.column)),y.row+=I*($.row-p.row)}function g(y,p){var $=y.lines,I=y.end;y.end=h(p);var M=y.end.row-y.start.row,A=$.splice(M,$.length),H=M?p.column:p.column-y.start.column;$.push(A[0].substring(0,H)),A[0]=A[0].substr(H);var D={start:h(p),end:I,lines:A,action:y.action};return D}function L(y,p){p=s(p);for(var $=y.length;$--;){for(var I=y[$],M=0;M<I.length;M++){var A=I[M],H=n(A,p);p=H[0],H.length!=2&&(H[2]?(I.splice(M+1,1,H[1],H[2]),M++):H[1]||(I.splice(M,1),M--))}I.length||y.splice($,1)}return y}function C(y,p){for(var $=0;$<p.length;$++)for(var I=p[$],M=0;M<I.length;M++)L(y,I[M])}b.UndoManager=R}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(f,b,z){var R=f("../range").Range,_=(function(){function S(u,h){this.foldData=u,Array.isArray(h)?this.folds=h:h=this.folds=[h];var s=h[h.length-1];this.range=new R(h[0].start.row,h[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(o){o.setFoldLine(this)},this)}return S.prototype.shiftRow=function(u){this.start.row+=u,this.end.row+=u,this.folds.forEach(function(h){h.start.row+=u,h.end.row+=u})},S.prototype.addFold=function(u){if(u.sameRow){if(u.start.row<this.startRow||u.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(u),this.folds.sort(function(h,s){return-h.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(u.start.row,u.start.column)>0?(this.end.row=u.end.row,this.end.column=u.end.column):this.range.compareStart(u.end.row,u.end.column)<0&&(this.start.row=u.start.row,this.start.column=u.start.column)}else if(u.start.row==this.end.row)this.folds.push(u),this.end.row=u.end.row,this.end.column=u.end.column;else if(u.end.row==this.start.row)this.folds.unshift(u),this.start.row=u.start.row,this.start.column=u.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");u.foldLine=this},S.prototype.containsRow=function(u){return u>=this.start.row&&u<=this.end.row},S.prototype.walk=function(u,h,s){var o=0,i=this.folds,r,t,n,a=!0;h==null&&(h=this.end.row,s=this.end.column);for(var d=0;d<i.length;d++){if(r=i[d],t=r.range.compareStart(h,s),t==-1){u(null,h,s,o,a);return}if(n=u(null,r.start.row,r.start.column,o,a),n=!n&&u(r.placeholder,r.start.row,r.start.column,o),n||t===0)return;a=!r.sameRow,o=r.end.column}u(null,h,s,o,a)},S.prototype.getNextFoldTo=function(u,h){for(var s,o,i=0;i<this.folds.length;i++){if(s=this.folds[i],o=s.range.compareEnd(u,h),o==-1)return{fold:s,kind:"after"};if(o===0)return{fold:s,kind:"inside"}}return null},S.prototype.addRemoveChars=function(u,h,s){var o=this.getNextFoldTo(u,h),i,r;if(o){if(i=o.fold,o.kind=="inside"&&i.start.column!=h&&i.start.row!=u)window.console&&window.console.log(u,h,i);else if(i.start.row==u){r=this.folds;var t=r.indexOf(i);for(t===0&&(this.start.column+=s),t;t<r.length;t++){if(i=r[t],i.start.column+=s,!i.sameRow)return;i.end.column+=s}this.end.column+=s}}},S.prototype.split=function(u,h){var s=this.getNextFoldTo(u,h);if(!s||s.kind=="inside")return null;var o=s.fold,i=this.folds,r=this.foldData,t=i.indexOf(o),n=i[t-1];this.end.row=n.end.row,this.end.column=n.end.column,i=i.splice(t,i.length-t);var a=new S(r,i);return r.splice(r.indexOf(this)+1,0,a),a},S.prototype.merge=function(u){for(var h=u.folds,s=0;s<h.length;s++)this.addFold(h[s]);var o=this.foldData;o.splice(o.indexOf(u),1)},S.prototype.toString=function(){var u=[this.range.toString()+": ["];return this.folds.forEach(function(h){u.push(" "+h.toString())}),u.push("]"),u.join(`
|
|
190
|
+
`)},S.prototype.idxToPosition=function(u){for(var h=0,s=0;s<this.folds.length;s++){var o=this.folds[s];if(u-=o.start.column-h,u<0)return{row:o.start.row,column:o.start.column+u};if(u-=o.placeholder.length,u<0)return o.start;h=o.end.column}return{row:this.end.row,column:this.end.column+u}},S})();b.FoldLine=_}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(f,b,z){var R=f("./range").Range,_=R.comparePoints,S=(function(){function u(){this.ranges=[],this.$bias=1}return u.prototype.pointIndex=function(h,s,o){for(var i=this.ranges,r=o||0;r<i.length;r++){var t=i[r],n=_(h,t.end);if(!(n>0)){var a=_(h,t.start);return n===0?s&&a!==0?-r-2:r:a>0||a===0&&!s?r:-r-1}}return-r-1},u.prototype.add=function(h){var s=!h.isEmpty(),o=this.pointIndex(h.start,s);o<0&&(o=-o-1);var i=this.pointIndex(h.end,s,o);return i<0?i=-i-1:i++,this.ranges.splice(o,i-o,h)},u.prototype.addList=function(h){for(var s=[],o=h.length;o--;)s.push.apply(s,this.add(h[o]));return s},u.prototype.substractPoint=function(h){var s=this.pointIndex(h);if(s>=0)return this.ranges.splice(s,1)},u.prototype.merge=function(){var h=[],s=this.ranges;s=s.sort(function(n,a){return _(n.start,a.start)});for(var o=s[0],i,r=1;r<s.length;r++){i=o,o=s[r];var t=_(i.end,o.start);t<0||t==0&&!i.isEmpty()&&!o.isEmpty()||(_(i.end,o.end)<0&&(i.end.row=o.end.row,i.end.column=o.end.column),s.splice(r,1),h.push(o),o=i,r--)}return this.ranges=s,h},u.prototype.contains=function(h,s){return this.pointIndex({row:h,column:s})>=0},u.prototype.containsPoint=function(h){return this.pointIndex(h)>=0},u.prototype.rangeAtPoint=function(h){var s=this.pointIndex(h);if(s>=0)return this.ranges[s]},u.prototype.clipRows=function(h,s){var o=this.ranges;if(o[0].start.row>s||o[o.length-1].start.row<h)return[];var i=this.pointIndex({row:h,column:0});i<0&&(i=-i-1);var r=this.pointIndex({row:s,column:0},i);r<0&&(r=-r-1);for(var t=[],n=i;n<r;n++)t.push(o[n]);return t},u.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},u.prototype.attach=function(h){this.session&&this.detach(),this.session=h,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},u.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},u.prototype.$onChange=function(h){for(var s=h.start,o=h.end,i=s.row,r=o.row,t=this.ranges,n=0,a=t.length;n<a;n++){var d=t[n];if(d.end.row>=i)break}if(h.action=="insert")for(var g=r-i,L=-s.column+o.column;n<a;n++){var d=t[n];if(d.start.row>i)break;if(d.start.row==i&&d.start.column>=s.column&&(d.start.column==s.column&&this.$bias<=0||(d.start.column+=L,d.start.row+=g)),d.end.row==i&&d.end.column>=s.column){if(d.end.column==s.column&&this.$bias<0)continue;d.end.column==s.column&&L>0&&n<a-1&&d.end.column>d.start.column&&d.end.column==t[n+1].start.column&&(d.end.column-=L),d.end.column+=L,d.end.row+=g}}else for(var g=i-r,L=s.column-o.column;n<a;n++){var d=t[n];if(d.start.row>r)break;d.end.row<r&&(i<d.end.row||i==d.end.row&&s.column<d.end.column)?(d.end.row=i,d.end.column=s.column):d.end.row==r?d.end.column<=o.column?(g||d.end.column>s.column)&&(d.end.column=s.column,d.end.row=s.row):(d.end.column+=L,d.end.row+=g):d.end.row>r&&(d.end.row+=g),d.start.row<r&&(i<d.start.row||i==d.start.row&&s.column<d.start.column)?(d.start.row=i,d.start.column=s.column):d.start.row==r?d.start.column<=o.column?(g||d.start.column>s.column)&&(d.start.column=s.column,d.start.row=s.row):(d.start.column+=L,d.start.row+=g):d.start.row>r&&(d.start.row+=g)}if(g!=0&&n<a)for(;n<a;n++){var d=t[n];d.start.row+=g,d.end.row+=g}},u})();S.prototype.comparePoints=_,b.RangeList=S}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(f,b,z){var R=this&&this.__extends||(function(){var i=function(r,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(n[d]=a[d])},i(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),_=f("../range_list").RangeList,S=(function(i){R(r,i);function r(t,n){var a=i.call(this)||this;return a.foldLine=null,a.placeholder=n,a.range=t,a.start=t.start,a.end=t.end,a.sameRow=t.start.row==t.end.row,a.subFolds=a.ranges=[],a}return r.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},r.prototype.setFoldLine=function(t){this.foldLine=t,this.subFolds.forEach(function(n){n.setFoldLine(t)})},r.prototype.clone=function(){var t=this.range.clone(),n=new r(t,this.placeholder);return this.subFolds.forEach(function(a){n.subFolds.push(a.clone())}),n.collapseChildren=this.collapseChildren,n},r.prototype.addSubFold=function(t){if(!this.range.isEqual(t)){h(t,this.start);for(var L=t.start.row,C=t.start.column,n=0,a=-1;n<this.subFolds.length&&(a=this.subFolds[n].range.compare(L,C),a==1);n++);var d=this.subFolds[n],g=0;if(a==0){if(d.range.containsRange(t))return d.addSubFold(t);g=1}for(var L=t.range.end.row,C=t.range.end.column,y=n,a=-1;y<this.subFolds.length&&(a=this.subFolds[y].range.compare(L,C),a==1);y++);a==0&&y++;for(var p=this.subFolds.splice(n,y-n,t),$=a==0?p.length-1:p.length,I=g;I<$;I++)t.addSubFold(p[I]);return t.setFoldLine(this.foldLine),t}},r.prototype.restoreRange=function(t){return o(t,this.start)},r})(_);function u(i,r){i.row-=r.row,i.row==0&&(i.column-=r.column)}function h(i,r){u(i.start,r),u(i.end,r)}function s(i,r){i.row==0&&(i.column+=r.column),i.row+=r.row}function o(i,r){s(i.start,r),s(i.end,r)}b.Fold=S}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(f,b,z){var R=f("../range").Range,_=f("./fold_line").FoldLine,S=f("./fold").Fold,u=f("../token_iterator").TokenIterator,h=f("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(o,i,r){var t=this.getFoldLine(o);if(!t)return null;for(var n=t.folds,a=0;a<n.length;a++){var d=n[a].range;if(d.contains(o,i)){if(r==1&&d.isEnd(o,i)&&!d.isEmpty())continue;if(r==-1&&d.isStart(o,i)&&!d.isEmpty())continue;return n[a]}}},this.getFoldsInRange=function(o){var i=o.start,r=o.end,t=this.$foldData,n=[];i.column+=1,r.column-=1;for(var a=0;a<t.length;a++){var d=t[a].range.compareRange(o);if(d!=2){if(d==-2)break;for(var g=t[a].folds,L=0;L<g.length;L++){var C=g[L];if(d=C.range.compareRange(o),d==-2)break;if(d==2)continue;if(d==42)break;n.push(C)}}}return i.column-=1,r.column+=1,n},this.getFoldsInRangeList=function(o){if(Array.isArray(o)){var i=[];o.forEach(function(r){i=i.concat(this.getFoldsInRange(r))},this)}else var i=this.getFoldsInRange(o);return i},this.getAllFolds=function(){for(var o=[],i=this.$foldData,r=0;r<i.length;r++)for(var t=0;t<i[r].folds.length;t++)o.push(i[r].folds[t]);return o},this.getFoldStringAt=function(o,i,r,t){if(t=t||this.getFoldLine(o),!t)return null;for(var n={end:{column:0}},a,d,g=0;g<t.folds.length;g++){d=t.folds[g];var L=d.range.compareEnd(o,i);if(L==-1){a=this.getLine(d.start.row).substring(n.end.column,d.start.column);break}else if(L===0)return null;n=d}return a||(a=this.getLine(d.start.row).substring(n.end.column)),r==-1?a.substring(0,i-n.end.column):r==1?a.substring(i-n.end.column):a},this.getFoldLine=function(o,i){var r=this.$foldData,t=0;for(i&&(t=r.indexOf(i)),t==-1&&(t=0),t;t<r.length;t++){var n=r[t];if(n.start.row<=o&&n.end.row>=o)return n;if(n.end.row>o)return null}return null},this.getNextFoldLine=function(o,i){var r=this.$foldData,t=0;for(i&&(t=r.indexOf(i)),t==-1&&(t=0),t;t<r.length;t++){var n=r[t];if(n.end.row>=o)return n}return null},this.getFoldedRowCount=function(o,i){for(var r=this.$foldData,t=i-o+1,n=0;n<r.length;n++){var a=r[n],d=a.end.row,g=a.start.row;if(d>=i){g<i&&(g>=o?t-=i-g:t=0);break}else d>=o&&(g>=o?t-=d-g:t-=d-o+1)}return t},this.$addFoldLine=function(o){return this.$foldData.push(o),this.$foldData.sort(function(i,r){return i.start.row-r.start.row}),o},this.addFold=function(o,i){var r=this.$foldData,t=!1,n;o instanceof S?n=o:(n=new S(i,o),n.collapseChildren=i.collapseChildren),this.$clipRangeToDocument(n.range);var a=n.start.row,d=n.start.column,g=n.end.row,L=n.end.column,C=this.getFoldAt(a,d,1),y=this.getFoldAt(g,L,-1);if(C&&y==C)return C.addSubFold(n);C&&!C.range.isStart(a,d)&&this.removeFold(C),y&&!y.range.isEnd(g,L)&&this.removeFold(y);var p=this.getFoldsInRange(n.range);p.length>0&&(this.removeFolds(p),n.collapseChildren||p.forEach(function(A){n.addSubFold(A)}));for(var $=0;$<r.length;$++){var I=r[$];if(g==I.start.row){I.addFold(n),t=!0;break}else if(a==I.end.row){if(I.addFold(n),t=!0,!n.sameRow){var M=r[$+1];if(M&&M.start.row==g){I.merge(M);break}}break}else if(g<=I.start.row)break}return t||(I=this.$addFoldLine(new _(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(I.start.row,I.start.row):this.$updateRowLengthCache(I.start.row,I.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(o){o.forEach(function(i){this.addFold(i)},this)},this.removeFold=function(o){var i=o.foldLine,r=i.start.row,t=i.end.row,n=this.$foldData,a=i.folds;if(a.length==1)n.splice(n.indexOf(i),1);else if(i.range.isEnd(o.end.row,o.end.column))a.pop(),i.end.row=a[a.length-1].end.row,i.end.column=a[a.length-1].end.column;else if(i.range.isStart(o.start.row,o.start.column))a.shift(),i.start.row=a[0].start.row,i.start.column=a[0].start.column;else if(o.sameRow)a.splice(a.indexOf(o),1);else{var d=i.split(o.start.row,o.start.column);a=d.folds,a.shift(),d.start.row=a[0].start.row,d.start.column=a[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(r,t):this.$updateRowLengthCache(r,t)),this.$modified=!0,this._signal("changeFold",{data:o,action:"remove"})},this.removeFolds=function(o){for(var i=[],r=0;r<o.length;r++)i.push(o[r]);i.forEach(function(t){this.removeFold(t)},this),this.$modified=!0},this.expandFold=function(o){this.removeFold(o),o.subFolds.forEach(function(i){o.restoreRange(i),this.addFold(i)},this),o.collapseChildren>0&&this.foldAll(o.start.row+1,o.end.row,o.collapseChildren-1),o.subFolds=[]},this.expandFolds=function(o){o.forEach(function(i){this.expandFold(i)},this)},this.unfold=function(o,i){var r,t;if(o==null)r=new R(0,0,this.getLength(),0),i==null&&(i=!0);else if(typeof o=="number")r=new R(o,0,o,this.getLine(o).length);else if("row"in o)r=R.fromPoints(o,o);else{if(Array.isArray(o))return t=[],o.forEach(function(a){t=t.concat(this.unfold(a))},this),t;r=o}t=this.getFoldsInRangeList(r);for(var n=t;t.length==1&&R.comparePoints(t[0].start,r.start)<0&&R.comparePoints(t[0].end,r.end)>0;)this.expandFolds(t),t=this.getFoldsInRangeList(r);if(i!=!1?this.removeFolds(t):this.expandFolds(t),n.length)return n},this.isRowFolded=function(o,i){return!!this.getFoldLine(o,i)},this.getRowFoldEnd=function(o,i){var r=this.getFoldLine(o,i);return r?r.end.row:o},this.getRowFoldStart=function(o,i){var r=this.getFoldLine(o,i);return r?r.start.row:o},this.getFoldDisplayLine=function(o,i,r,t,n){t==null&&(t=o.start.row),n==null&&(n=0),i==null&&(i=o.end.row),r==null&&(r=this.getLine(i).length);var a=this.doc,d="";return o.walk(function(g,L,C,y){if(!(L<t)){if(L==t){if(C<n)return;y=Math.max(n,y)}g!=null?d+=g:d+=a.getLine(L).substring(y,C)}},i,r),d},this.getDisplayLine=function(o,i,r,t){var n=this.getFoldLine(o);if(n)return this.getFoldDisplayLine(n,o,i,r,t);var a;return a=this.doc.getLine(o),a.substring(t||0,i||a.length)},this.$cloneFoldData=function(){var o=[];return o=this.$foldData.map(function(i){var r=i.folds.map(function(t){return t.clone()});return new _(o,r)}),o},this.toggleFold=function(o){var i=this.selection,r=i.getRange(),t,n;if(r.isEmpty()){var a=r.start;if(t=this.getFoldAt(a.row,a.column),t){this.expandFold(t);return}else if(o){var d=this.getFoldLine(a.row);d&&this.expandFolds(d.folds);return}else(n=this.findMatchingBracket(a))?r.comparePoint(n)==1?r.end=n:(r.start=n,r.start.column++,r.end.column--):(n=this.findMatchingBracket({row:a.row,column:a.column+1}))?(r.comparePoint(n)==1?r.end=n:r.start=n,r.start.column++):r=this.getCommentFoldRange(a.row,a.column)||r}else{var g=this.getFoldsInRange(r);if(o&&g.length){this.expandFolds(g);return}else g.length==1&&(t=g[0])}if(t||(t=this.getFoldAt(r.start.row,r.start.column)),t&&t.range.toString()==r.toString()){this.expandFold(t);return}var L="...";if(!r.isMultiLine()){if(L=this.getTextRange(r),L.length<4)return;L=L.trim().substring(0,2)+".."}this.addFold(L,r)},this.getCommentFoldRange=function(o,i,r){var t=new u(this,o,i),n=t.getCurrentToken(),a=n&&n.type;if(n&&/^comment|string/.test(a)){a=a.match(/comment|string/)[0],a=="comment"&&(a+="|doc-start|\\.doc");var d=new RegExp(a),g=new R;if(r!=1){do n=t.stepBackward();while(n&&d.test(n.type));n=t.stepForward()}g.start.row=t.getCurrentTokenRow(),g.start.column=t.getCurrentTokenColumn()+n.value.length,t=new u(this,o,i);var L=this.getState(t.$row);if(r!=-1){var C=-1;do if(n=t.stepForward(),C==-1){var y=this.getState(t.$row);L.toString()!==y.toString()&&(C=t.$row)}else if(t.$row>C)break;while(n&&d.test(n.type));n=t.stepBackward()}else n=t.getCurrentToken();return g.end.row=t.getCurrentTokenRow(),g.end.column=t.getCurrentTokenColumn(),g.start.row==g.end.row&&g.start.column>g.end.column?void 0:g}},this.foldAll=function(o,i,r,t){r==null&&(r=1e5);var n=this.foldWidgets;if(n){i=i||this.getLength(),o=o||0;for(var a=o;a<i;a++)if(n[a]==null&&(n[a]=this.getFoldWidget(a)),n[a]=="start"&&!(t&&!t(a))){var d=this.getFoldWidgetRange(a);d&&d.isMultiLine()&&d.end.row<=i&&d.start.row>=o&&(a=d.end.row,d.collapseChildren=r,this.addFold("...",d))}}},this.foldToLevel=function(o){for(this.foldAll();o-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var o=this;this.foldAll(null,null,null,function(i){for(var r=o.getTokens(i),t=0;t<r.length;t++){var n=r[t];if(!(n.type=="text"&&/^\s+$/.test(n.value)))return!!/comment/.test(n.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(o){if(!this.$foldStyles[o])throw new Error("invalid fold style: "+o+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=o){this.$foldStyle=o,o=="manual"&&this.unfold();var i=this.$foldMode;this.$setFolding(null),this.$setFolding(i)}},this.$setFolding=function(o){if(this.$foldMode!=o){if(this.$foldMode=o,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!o||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=o.getFoldWidget.bind(o,this,this.$foldStyle),this.getFoldWidgetRange=o.getFoldWidgetRange.bind(o,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(o,i){var r=this.foldWidgets;if(!r||i&&r[o])return{};for(var t=o-1,n;t>=0;){var a=r[t];if(a==null&&(a=r[t]=this.getFoldWidget(t)),a=="start"){var d=this.getFoldWidgetRange(t);if(n||(n=d),d&&d.end.row>=o)break}t--}return{range:t!==-1&&d,firstRange:n}},this.onFoldWidgetClick=function(o,i){i instanceof h&&(i=i.domEvent);var r={children:i.shiftKey,all:i.ctrlKey||i.metaKey,siblings:i.altKey},t=this.$toggleFoldWidget(o,r);if(!t){var n=i.target||i.srcElement;n&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")}},this.$toggleFoldWidget=function(o,i){if(this.getFoldWidget){var r=this.getFoldWidget(o),t=this.getLine(o),n=r==="end"?-1:1,a=this.getFoldAt(o,n===-1?0:t.length,n);if(a)return i.children||i.all?this.removeFold(a):this.expandFold(a),a;var d=this.getFoldWidgetRange(o,!0);if(d&&!d.isMultiLine()&&(a=this.getFoldAt(d.start.row,d.start.column,1),a&&d.isEqual(a.range)))return this.removeFold(a),a;if(i.siblings){var g=this.getParentFoldRangeData(o);if(g.range)var L=g.range.start.row+1,C=g.range.end.row;this.foldAll(L,C,i.all?1e4:0)}else i.children?(C=d?d.end.row:this.getLength(),this.foldAll(o+1,C,i.all?1e4:0)):d&&(i.all&&(d.collapseChildren=1e4),this.addFold("...",d));return d}},this.toggleFoldWidget=function(o){var i=this.selection.getCursor().row;i=this.getRowFoldStart(i);var r=this.$toggleFoldWidget(i,{});if(!r){var t=this.getParentFoldRangeData(i,!0);if(r=t.range||t.firstRange,r){i=r.start.row;var n=this.getFoldAt(i,this.getLine(i).length,1);n?this.removeFold(n):this.addFold("...",r)}}},this.updateFoldWidgets=function(o){var i=o.start.row,r=o.end.row-i;if(r===0)this.foldWidgets[i]=null;else if(o.action=="remove")this.foldWidgets.splice(i,r+1,null);else{var t=Array(r+1);t.unshift(i,1),this.foldWidgets.splice.apply(this.foldWidgets,t)}},this.tokenizerUpdateFoldWidgets=function(o){var i=o.data;i.first!=i.last&&this.foldWidgets.length>i.first&&this.foldWidgets.splice(i.first,this.foldWidgets.length)}}b.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(f,b,z){var R=f("../token_iterator").TokenIterator,_=f("../range").Range;function S(){this.findMatchingBracket=function(u,h){if(u.column==0)return null;var s=h||this.getLine(u.row).charAt(u.column-1);if(s=="")return null;var o=s.match(/([\(\[\{])|([\)\]\}])/);return o?o[1]?this.$findClosingBracket(o[1],u):this.$findOpeningBracket(o[2],u):null},this.getBracketRange=function(u){var h=this.getLine(u.row),s=!0,o,i=h.charAt(u.column-1),r=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(r||(i=h.charAt(u.column),u={row:u.row,column:u.column+1},r=i&&i.match(/([\(\[\{])|([\)\]\}])/),s=!1),!r)return null;if(r[1]){var t=this.$findClosingBracket(r[1],u);if(!t)return null;o=_.fromPoints(u,t),s||(o.end.column++,o.start.column--),o.cursor=o.end}else{var t=this.$findOpeningBracket(r[2],u);if(!t)return null;o=_.fromPoints(t,u),s||(o.start.column++,o.end.column--),o.cursor=o.start}return o},this.getMatchingBracketRanges=function(u,h){var s=this.getLine(u.row),o=/([\(\[\{])|([\)\]\}])/,i=!h&&s.charAt(u.column-1),r=i&&i.match(o);if(r||(i=(h===void 0||h)&&s.charAt(u.column),u={row:u.row,column:u.column+1},r=i&&i.match(o)),!r)return null;var t=new _(u.row,u.column-1,u.row,u.column),n=r[1]?this.$findClosingBracket(r[1],u):this.$findOpeningBracket(r[2],u);if(!n)return[t];var a=new _(n.row,n.column,n.row,n.column+1);return[t,a]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(u,h,s){var o=this.$brackets[u],i=1,r=new R(this,h.row,h.column),t=r.getCurrentToken();if(t||(t=r.stepForward()),!!t){s||(s=new RegExp("(\\.?"+t.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var n=h.column-r.getCurrentTokenColumn()-2,a=t.value;;){for(;n>=0;){var d=a.charAt(n);if(d==o){if(i-=1,i==0)return{row:r.getCurrentTokenRow(),column:n+r.getCurrentTokenColumn()}}else d==u&&(i+=1);n-=1}do t=r.stepBackward();while(t&&!s.test(t.type));if(t==null)break;a=t.value,n=a.length-1}return null}},this.$findClosingBracket=function(u,h,s){var o=this.$brackets[u],i=1,r=new R(this,h.row,h.column),t=r.getCurrentToken();if(t||(t=r.stepForward()),!!t){s||(s=new RegExp("(\\.?"+t.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var n=h.column-r.getCurrentTokenColumn();;){for(var a=t.value,d=a.length;n<d;){var g=a.charAt(n);if(g==o){if(i-=1,i==0)return{row:r.getCurrentTokenRow(),column:n+r.getCurrentTokenColumn()}}else g==u&&(i+=1);n+=1}do t=r.stepForward();while(t&&!s.test(t.type));if(t==null)break;n=0}return null}},this.getMatchingTags=function(u){var h=new R(this,u.row,u.column),s=this.$findTagName(h);if(s){var o=h.stepBackward();return o.value==="<"?this.$findClosingTag(h,s):this.$findOpeningTag(h,s)}},this.$findTagName=function(u){var h=u.getCurrentToken(),s=!1,o=!1;if(h&&h.type.indexOf("tag-name")===-1)do o?h=u.stepBackward():h=u.stepForward(),h&&(h.value==="/>"?o=!0:h.type.indexOf("tag-name")!==-1&&(s=!0));while(h&&!s);return h},this.$findClosingTag=function(u,h){var s,o=h.value,i=h.value,r=0,t=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);h=u.stepForward();var n=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+h.value.length),a=!1;do{if(s=h,s.type.indexOf("tag-close")!==-1&&!a){var d=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);a=!0}if(h=u.stepForward(),h){if(h.value===">"&&!a){var d=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);a=!0}if(h.type.indexOf("tag-name")!==-1){if(o=h.value,i===o){if(s.value==="<")r++;else if(s.value==="</"&&(r--,r<0)){u.stepBackward();var g=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+2);h=u.stepForward();var L=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+h.value.length);if(h.type.indexOf("tag-close")===-1&&(h=u.stepForward()),h&&h.value===">")var C=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);else return}}}else if(i===o&&h.value==="/>"&&(r--,r<0))var g=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+2),L=g,C=L,d=new _(n.end.row,n.end.column,n.end.row,n.end.column+1)}}while(h&&r>=0);if(t&&d&&g&&C&&n&&L)return{openTag:new _(t.start.row,t.start.column,d.end.row,d.end.column),closeTag:new _(g.start.row,g.start.column,C.end.row,C.end.column),openTagName:n,closeTagName:L}},this.$findOpeningTag=function(u,h){var s=u.getCurrentToken(),o=h.value,i=0,r=u.getCurrentTokenRow(),t=u.getCurrentTokenColumn(),n=t+2,a=new _(r,t,r,n);u.stepForward();var d=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+h.value.length);if(h.type.indexOf("tag-close")===-1&&(h=u.stepForward()),!(!h||h.value!==">")){var g=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);u.stepBackward(),u.stepBackward();do if(h=s,r=u.getCurrentTokenRow(),t=u.getCurrentTokenColumn(),n=t+h.value.length,s=u.stepBackward(),h){if(h.type.indexOf("tag-name")!==-1){if(o===h.value)if(s.value==="<"){if(i++,i>0){var L=new _(r,t,r,n),C=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);do h=u.stepForward();while(h&&h.value!==">");var y=new _(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1)}}else s.value==="</"&&i--}else if(h.value==="/>"){for(var p=0,$=s;$;){if($.type.indexOf("tag-name")!==-1&&$.value===o){i--;break}else if($.value==="<")break;$=u.stepBackward(),p++}for(var I=0;I<p;I++)u.stepForward()}}while(s&&i<=0);if(C&&y&&a&&g&&L&&d)return{openTag:new _(C.start.row,C.start.column,y.end.row,y.end.column),closeTag:new _(a.start.row,a.start.column,g.end.row,g.end.column),openTagName:L,closeTagName:d}}}}b.BracketMatch=S}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(f,b,z){var R=f("./lib/oop"),_=f("./lib/lang"),S=f("./bidihandler").BidiHandler,u=f("./config"),h=f("./lib/event_emitter").EventEmitter,s=f("./selection").Selection,o=f("./mode/text").Mode,i=f("./range").Range,r=f("./line_widgets").LineWidgets,t=f("./document").Document,n=f("./background_tokenizer").BackgroundTokenizer,a=f("./search_highlight").SearchHighlight,d=f("./undomanager").UndoManager,g=(function(){function D(T,x){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++D.$uid,this.$foldData.toString=function(){return this.join(`
|
|
191
|
+
`)},this.$gutterCustomWidgets={},this.bgTokenizer=new n(new o().getTokenizer(),this);var m=this;this.bgTokenizer.on("update",function(E){m._signal("tokenizerUpdate",E)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof T!="object"||!T.getLine)&&(T=new t(T)),this.setDocument(T),this.selection=new s(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new S(this),u.resetOptions(this),this.setMode(x),u._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return D.prototype.$initOperationListeners=function(){var T=this;this.curOp=null,this.on("change",function(){T.curOp||(T.startOperation(),T.curOp.selectionBefore=T.$lastSel),T.curOp.docChanged=!0},!0),this.on("changeSelection",function(){T.curOp||(T.startOperation(),T.curOp.selectionBefore=T.$lastSel),T.curOp.selectionChanged=!0},!0),this.$operationResetTimer=_.delayedCall(this.endOperation.bind(this,!0))},D.prototype.startOperation=function(T){if(this.curOp){if(!T||this.curOp.command)return;this.prevOp=this.curOp}T||(T={}),this.$operationResetTimer.schedule(),this.curOp={command:T.command||{},args:T.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",T)},D.prototype.endOperation=function(T){if(this.curOp){if(T&&T.returnValue===!1){this.curOp=null,this._signal("endOperation",T);return}if(T==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var x=this.selection.toJSON();this.curOp.selectionAfter=x,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(x),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",T)}},D.prototype.setDocument=function(T){this.doc&&this.doc.off("change",this.$onChange),this.doc=T,T.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},D.prototype.getDocument=function(){return this.doc},Object.defineProperty(D.prototype,"widgetManager",{get:function(){var T=new r(this);return this.widgetManager=T,this.$editor&&T.attach(this.$editor),T},set:function(T){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:T})},enumerable:!1,configurable:!0}),D.prototype.$resetRowCache=function(T){if(!T){this.$docRowCache=[],this.$screenRowCache=[];return}var x=this.$docRowCache.length,m=this.$getRowCacheIndex(this.$docRowCache,T)+1;x>m&&(this.$docRowCache.splice(m,x),this.$screenRowCache.splice(m,x))},D.prototype.$getRowCacheIndex=function(T,x){for(var m=0,E=T.length-1;m<=E;){var W=m+E>>1,U=T[W];if(x>U)m=W+1;else if(x<U)E=W-1;else return W}return m-1},D.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},D.prototype.onChangeFold=function(T){var x=T.data;this.$resetRowCache(x.start.row)},D.prototype.onChange=function(T){this.$modified=!0,this.$bidiHandler.onChange(T),this.$resetRowCache(T.start.row);var x=this.$updateInternalDataOnChange(T);!this.$fromUndo&&this.$undoManager&&(x&&x.length&&(this.$undoManager.add({action:"removeFolds",folds:x},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(T,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(T),this._signal("change",T)},D.prototype.onSelectionChange=function(){this._signal("changeSelection")},D.prototype.setValue=function(T){this.doc.setValue(T),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},D.fromJSON=function(T){typeof T=="string"&&(T=JSON.parse(T));var x=new d;x.$undoStack=T.history.undo,x.$redoStack=T.history.redo,x.mark=T.history.mark,x.$rev=T.history.rev;var m=new D(T.value);return T.folds.forEach(function(E){m.addFold("...",i.fromPoints(E.start,E.end))}),m.setAnnotations(T.annotations),m.setBreakpoints(T.breakpoints),m.setMode(T.mode),m.setScrollLeft(T.scrollLeft),m.setScrollTop(T.scrollTop),m.setUndoManager(x),m.selection.fromJSON(T.selection),m},D.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(T){return T.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},D.prototype.toString=function(){return this.doc.getValue()},D.prototype.getSelection=function(){return this.selection},D.prototype.getState=function(T){return this.bgTokenizer.getState(T)},D.prototype.getTokens=function(T){return this.bgTokenizer.getTokens(T)},D.prototype.getTokenAt=function(T,x){var m=this.bgTokenizer.getTokens(T),E,W=0;if(x==null){var U=m.length-1;W=this.getLine(T).length}else for(var U=0;U<m.length&&(W+=m[U].value.length,!(W>=x));U++);return E=m[U],E?(E.index=U,E.start=W-E.value.length,E):null},D.prototype.setUndoManager=function(T){if(this.$undoManager=T,this.$informUndoManager&&this.$informUndoManager.cancel(),T){var x=this;T.addSession(this),this.$syncInformUndoManager=function(){x.$informUndoManager.cancel(),x.mergeUndoDeltas=!1},this.$informUndoManager=_.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},D.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},D.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},D.prototype.getTabString=function(){return this.getUseSoftTabs()?_.stringRepeat(" ",this.getTabSize()):" "},D.prototype.setUseSoftTabs=function(T){this.setOption("useSoftTabs",T)},D.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},D.prototype.setTabSize=function(T){this.setOption("tabSize",T)},D.prototype.getTabSize=function(){return this.$tabSize},D.prototype.isTabStop=function(T){return this.$useSoftTabs&&T.column%this.$tabSize===0},D.prototype.setNavigateWithinSoftTabs=function(T){this.setOption("navigateWithinSoftTabs",T)},D.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},D.prototype.setOverwrite=function(T){this.setOption("overwrite",T)},D.prototype.getOverwrite=function(){return this.$overwrite},D.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},D.prototype.addGutterDecoration=function(T,x){this.$decorations[T]||(this.$decorations[T]=""),this.$decorations[T]+=" "+x,this._signal("changeBreakpoint",{})},D.prototype.removeGutterCustomWidget=function(T){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(T)},D.prototype.addGutterCustomWidget=function(T,x){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(T,x)},D.prototype.removeGutterDecoration=function(T,x){this.$decorations[T]=(this.$decorations[T]||"").replace(" "+x,""),this._signal("changeBreakpoint",{})},D.prototype.getBreakpoints=function(){return this.$breakpoints},D.prototype.setBreakpoints=function(T){this.$breakpoints=[];for(var x=0;x<T.length;x++)this.$breakpoints[T[x]]="ace_breakpoint";this._signal("changeBreakpoint",{})},D.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},D.prototype.setBreakpoint=function(T,x){x===void 0&&(x="ace_breakpoint"),x?this.$breakpoints[T]=x:delete this.$breakpoints[T],this._signal("changeBreakpoint",{})},D.prototype.clearBreakpoint=function(T){delete this.$breakpoints[T],this._signal("changeBreakpoint",{})},D.prototype.addMarker=function(T,x,m,E){var W=this.$markerId++,U={range:T,type:m||"line",renderer:typeof m=="function"?m:null,clazz:x,inFront:!!E,id:W};return E?(this.$frontMarkers[W]=U,this._signal("changeFrontMarker")):(this.$backMarkers[W]=U,this._signal("changeBackMarker")),W},D.prototype.addDynamicMarker=function(T,x){if(T.update){var m=this.$markerId++;return T.id=m,T.inFront=!!x,x?(this.$frontMarkers[m]=T,this._signal("changeFrontMarker")):(this.$backMarkers[m]=T,this._signal("changeBackMarker")),T}},D.prototype.removeMarker=function(T){var x=this.$frontMarkers[T]||this.$backMarkers[T];if(x){var m=x.inFront?this.$frontMarkers:this.$backMarkers;delete m[T],this._signal(x.inFront?"changeFrontMarker":"changeBackMarker")}},D.prototype.getMarkers=function(T){return T?this.$frontMarkers:this.$backMarkers},D.prototype.highlight=function(T){if(!this.$searchHighlight){var x=new a(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(x)}this.$searchHighlight.setRegexp(T)},D.prototype.highlightLines=function(T,x,m,E){typeof x!="number"&&(m=x,x=T),m||(m="ace_step");var W=new i(T,0,x,1/0);return W.id=this.addMarker(W,m,"fullLine",E),W},D.prototype.setAnnotations=function(T){this.$annotations=T,this._signal("changeAnnotation",{})},D.prototype.getAnnotations=function(){return this.$annotations||[]},D.prototype.clearAnnotations=function(){this.setAnnotations([])},D.prototype.$detectNewLine=function(T){var x=T.match(/^.*?(\r?\n)/m);x?this.$autoNewLine=x[1]:this.$autoNewLine=`
|
|
192
|
+
`},D.prototype.getWordRange=function(T,x){var m=this.getLine(T),E=!1;if(x>0&&(E=!!m.charAt(x-1).match(this.tokenRe)),E||(E=!!m.charAt(x).match(this.tokenRe)),E)var W=this.tokenRe;else if(/^\s+$/.test(m.slice(x-1,x+1)))var W=/\s/;else var W=this.nonTokenRe;var U=x;if(U>0){do U--;while(U>=0&&m.charAt(U).match(W));U++}for(var q=x;q<m.length&&m.charAt(q).match(W);)q++;return new i(T,U,T,q)},D.prototype.getAWordRange=function(T,x){for(var m=this.getWordRange(T,x),E=this.getLine(m.end.row);E.charAt(m.end.column).match(/[ \t]/);)m.end.column+=1;return m},D.prototype.setNewLineMode=function(T){this.doc.setNewLineMode(T)},D.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},D.prototype.setUseWorker=function(T){this.setOption("useWorker",T)},D.prototype.getUseWorker=function(){return this.$useWorker},D.prototype.onReloadTokenizer=function(T){var x=T.data;this.bgTokenizer.start(x.first),this._signal("tokenizerUpdate",T)},D.prototype.setMode=function(T,x){if(T&&typeof T=="object"){if(T.getTokenizer)return this.$onChangeMode(T);var m=T,E=m.path}else E=T||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new o),this.$modes[E]&&!m){this.$onChangeMode(this.$modes[E]),x&&x();return}this.$modeId=E,u.loadModule(["mode",E],(function(W){if(!this.destroyed){if(this.$modeId!==E)return x&&x();this.$modes[E]&&!m?this.$onChangeMode(this.$modes[E]):W&&W.Mode&&(W=new W.Mode(m),m||(this.$modes[E]=W,W.$id=E),this.$onChangeMode(W)),x&&x()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},D.prototype.$onChangeMode=function(T,x){if(x||(this.$modeId=T.$id),this.$mode!==T){var m=this.$mode;this.$mode=T,this.$stopWorker(),this.$useWorker&&this.$startWorker();var E=T.getTokenizer();if(E.on!==void 0){var W=this.onReloadTokenizer.bind(this);E.on("update",W)}this.bgTokenizer.setTokenizer(E),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=T.tokenRe,this.nonTokenRe=T.nonTokenRe,x||(T.attachToSession&&T.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(T.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:m,mode:T}))}},D.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},D.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(T){u.warn("Could not load worker",T),this.$worker=null}},D.prototype.getMode=function(){return this.$mode},D.prototype.setScrollTop=function(T){this.$scrollTop===T||isNaN(T)||(this.$scrollTop=T,this._signal("changeScrollTop",T))},D.prototype.getScrollTop=function(){return this.$scrollTop},D.prototype.setScrollLeft=function(T){this.$scrollLeft===T||isNaN(T)||(this.$scrollLeft=T,this._signal("changeScrollLeft",T))},D.prototype.getScrollLeft=function(){return this.$scrollLeft},D.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},D.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var T=0;return this.lineWidgets.forEach(function(x){x&&x.screenWidth>T&&(T=x.screenWidth)}),this.lineWidgetWidth=T},D.prototype.$computeWidth=function(T){if(this.$modified||T){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var x=this.doc.getAllLines(),m=this.$rowLengthCache,E=0,W=0,U=this.$foldData[W],q=U?U.start.row:1/0,Q=x.length,te=0;te<Q;te++){if(te>q){if(te=U.end.row+1,te>=Q)break;U=this.$foldData[W++],q=U?U.start.row:1/0}m[te]==null&&(m[te]=this.$getStringScreenWidth(x[te])[0]),m[te]>E&&(E=m[te])}this.screenWidth=E}},D.prototype.getLine=function(T){return this.doc.getLine(T)},D.prototype.getLines=function(T,x){return this.doc.getLines(T,x)},D.prototype.getLength=function(){return this.doc.getLength()},D.prototype.getTextRange=function(T){return this.doc.getTextRange(T||this.selection.getRange())},D.prototype.insert=function(T,x){return this.doc.insert(T,x)},D.prototype.remove=function(T){return this.doc.remove(T)},D.prototype.removeFullLines=function(T,x){return this.doc.removeFullLines(T,x)},D.prototype.undoChanges=function(T,x){if(T.length){this.$fromUndo=!0;for(var m=T.length-1;m!=-1;m--){var E=T[m];E.action=="insert"||E.action=="remove"?this.doc.revertDelta(E):E.folds&&this.addFolds(E.folds)}!x&&this.$undoSelect&&(T.selectionBefore?this.selection.fromJSON(T.selectionBefore):this.selection.setRange(this.$getUndoSelection(T,!0))),this.$fromUndo=!1}},D.prototype.redoChanges=function(T,x){if(T.length){this.$fromUndo=!0;for(var m=0;m<T.length;m++){var E=T[m];(E.action=="insert"||E.action=="remove")&&this.doc.$safeApplyDelta(E)}!x&&this.$undoSelect&&(T.selectionAfter?this.selection.fromJSON(T.selectionAfter):this.selection.setRange(this.$getUndoSelection(T,!1))),this.$fromUndo=!1}},D.prototype.setUndoSelect=function(T){this.$undoSelect=T},D.prototype.$getUndoSelection=function(T,x){function m(Q){return x?Q.action!=="insert":Q.action==="insert"}for(var E,W,U=0;U<T.length;U++){var q=T[U];if(q.start){if(!E){m(q)?E=i.fromPoints(q.start,q.end):E=i.fromPoints(q.start,q.start);continue}m(q)?(W=q.start,E.compare(W.row,W.column)==-1&&E.setStart(W),W=q.end,E.compare(W.row,W.column)==1&&E.setEnd(W)):(W=q.start,E.compare(W.row,W.column)==-1&&(E=i.fromPoints(q.start,q.start)))}}return E},D.prototype.replace=function(T,x){return this.doc.replace(T,x)},D.prototype.moveText=function(T,x,m){var E=this.getTextRange(T),W=this.getFoldsInRange(T),U=i.fromPoints(x,x);if(!m){this.remove(T);var q=T.start.row-T.end.row,Q=q?-T.end.column:T.start.column-T.end.column;Q&&(U.start.row==T.end.row&&U.start.column>T.end.column&&(U.start.column+=Q),U.end.row==T.end.row&&U.end.column>T.end.column&&(U.end.column+=Q)),q&&U.start.row>=T.end.row&&(U.start.row+=q,U.end.row+=q)}if(U.end=this.insert(U.start,E),W.length){var te=T.start,ce=U.start,q=ce.row-te.row,Q=ce.column-te.column;this.addFolds(W.map(function(ue){return ue=ue.clone(),ue.start.row==te.row&&(ue.start.column+=Q),ue.end.row==te.row&&(ue.end.column+=Q),ue.start.row+=q,ue.end.row+=q,ue}))}return U},D.prototype.indentRows=function(T,x,m){m=m.replace(/\t/g,this.getTabString());for(var E=T;E<=x;E++)this.doc.insertInLine({row:E,column:0},m)},D.prototype.outdentRows=function(T){for(var x=T.collapseRows(),m=new i(0,0,0,0),E=this.getTabSize(),W=x.start.row;W<=x.end.row;++W){var U=this.getLine(W);m.start.row=W,m.end.row=W;for(var q=0;q<E&&U.charAt(q)==" ";++q);q<E&&U.charAt(q)==" "?(m.start.column=q,m.end.column=q+1):(m.start.column=0,m.end.column=q),this.remove(m)}},D.prototype.$moveLines=function(T,x,m){if(T=this.getRowFoldStart(T),x=this.getRowFoldEnd(x),m<0){var E=this.getRowFoldStart(T+m);if(E<0)return 0;var W=E-T}else if(m>0){var E=this.getRowFoldEnd(x+m);if(E>this.doc.getLength()-1)return 0;var W=E-x}else{T=this.$clipRowToDocument(T),x=this.$clipRowToDocument(x);var W=x-T+1}var U=new i(T,0,x,Number.MAX_VALUE),q=this.getFoldsInRange(U).map(function(te){return te=te.clone(),te.start.row+=W,te.end.row+=W,te}),Q=m==0?this.doc.getLines(T,x):this.doc.removeFullLines(T,x);return this.doc.insertFullLines(T+W,Q),q.length&&this.addFolds(q),W},D.prototype.moveLinesUp=function(T,x){return this.$moveLines(T,x,-1)},D.prototype.moveLinesDown=function(T,x){return this.$moveLines(T,x,1)},D.prototype.duplicateLines=function(T,x){return this.$moveLines(T,x,0)},D.prototype.$clipRowToDocument=function(T){return Math.max(0,Math.min(T,this.doc.getLength()-1))},D.prototype.$clipColumnToRow=function(T,x){return x<0?0:Math.min(this.doc.getLine(T).length,x)},D.prototype.$clipPositionToDocument=function(T,x){if(x=Math.max(0,x),T<0)T=0,x=0;else{var m=this.doc.getLength();T>=m?(T=m-1,x=this.doc.getLine(m-1).length):x=Math.min(this.doc.getLine(T).length,x)}return{row:T,column:x}},D.prototype.$clipRangeToDocument=function(T){T.start.row<0?(T.start.row=0,T.start.column=0):T.start.column=this.$clipColumnToRow(T.start.row,T.start.column);var x=this.doc.getLength()-1;return T.end.row>x?(T.end.row=x,T.end.column=this.doc.getLine(x).length):T.end.column=this.$clipColumnToRow(T.end.row,T.end.column),T},D.prototype.setUseWrapMode=function(T){if(T!=this.$useWrapMode){if(this.$useWrapMode=T,this.$modified=!0,this.$resetRowCache(0),T){var x=this.getLength();this.$wrapData=Array(x),this.$updateWrapData(0,x-1)}this._signal("changeWrapMode")}},D.prototype.getUseWrapMode=function(){return this.$useWrapMode},D.prototype.setWrapLimitRange=function(T,x){(this.$wrapLimitRange.min!==T||this.$wrapLimitRange.max!==x)&&(this.$wrapLimitRange={min:T,max:x},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},D.prototype.adjustWrapLimit=function(T,x){var m=this.$wrapLimitRange;m.max<0&&(m={min:x,max:x});var E=this.$constrainWrapLimit(T,m.min,m.max);return E!=this.$wrapLimit&&E>1?(this.$wrapLimit=E,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},D.prototype.$constrainWrapLimit=function(T,x,m){return x&&(T=Math.max(x,T)),m&&(T=Math.min(m,T)),T},D.prototype.getWrapLimit=function(){return this.$wrapLimit},D.prototype.setWrapLimit=function(T){this.setWrapLimitRange(T,T)},D.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},D.prototype.$updateInternalDataOnChange=function(T){var x=this.$useWrapMode,m=T.action,E=T.start,W=T.end,U=E.row,q=W.row,Q=q-U,te=null;if(this.$updating=!0,Q!=0)if(m==="remove"){this[x?"$wrapData":"$rowLengthCache"].splice(U,Q);var ce=this.$foldData;te=this.getFoldsInRange(T),this.removeFolds(te);var ne=this.getFoldLine(W.row),he=0;if(ne){ne.addRemoveChars(W.row,W.column,E.column-W.column),ne.shiftRow(-Q);var ue=this.getFoldLine(U);ue&&ue!==ne&&(ue.merge(ne),ne=ue),he=ce.indexOf(ne)+1}for(he;he<ce.length;he++){var ne=ce[he];ne.start.row>=W.row&&ne.shiftRow(-Q)}q=U}else{var le=Array(Q);le.unshift(U,0);var me=x?this.$wrapData:this.$rowLengthCache;me.splice.apply(me,le);var ce=this.$foldData,ne=this.getFoldLine(U),he=0;if(ne){var Se=ne.range.compareInside(E.row,E.column);Se==0?(ne=ne.split(E.row,E.column),ne&&(ne.shiftRow(Q),ne.addRemoveChars(q,0,W.column-E.column))):Se==-1&&(ne.addRemoveChars(U,0,W.column-E.column),ne.shiftRow(Q)),he=ce.indexOf(ne)+1}for(he;he<ce.length;he++){var ne=ce[he];ne.start.row>=U&&ne.shiftRow(Q)}}else{Q=Math.abs(T.start.column-T.end.column),m==="remove"&&(te=this.getFoldsInRange(T),this.removeFolds(te),Q=-Q);var ne=this.getFoldLine(U);ne&&ne.addRemoveChars(U,E.column,Q)}return x&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,x?this.$updateWrapData(U,q):this.$updateRowLengthCache(U,q),te},D.prototype.$updateRowLengthCache=function(T,x){this.$rowLengthCache[T]=null,this.$rowLengthCache[x]=null},D.prototype.$updateWrapData=function(T,x){var m=this.doc.getAllLines(),E=this.getTabSize(),W=this.$wrapData,U=this.$wrapLimit,q,Q,te=T;for(x=Math.min(x,m.length-1);te<=x;)Q=this.getFoldLine(te,Q),Q?(q=[],Q.walk((function(ce,ne,he,ue){var le;if(ce!=null){le=this.$getDisplayTokens(ce,q.length),le[0]=y;for(var me=1;me<le.length;me++)le[me]=p}else le=this.$getDisplayTokens(m[ne].substring(ue,he),q.length);q=q.concat(le)}).bind(this),Q.end.row,m[Q.end.row].length+1),W[Q.start.row]=this.$computeWrapSplits(q,U,E),te=Q.end.row+1):(q=this.$getDisplayTokens(m[te]),W[te]=this.$computeWrapSplits(q,U,E),te++)},D.prototype.$computeWrapSplits=function(T,x,m){if(T.length==0)return[];var E=[],W=T.length,U=0,q=0,Q=this.$wrapAsCode,te=this.$indentedSoftWrap,ce=x<=Math.max(2*m,8)||te===!1?0:Math.floor(x/2);function ne(){var Se=0;if(ce===0)return Se;if(te)for(var _e=0;_e<T.length;_e++){var Ae=T[_e];if(Ae==I)Se+=1;else if(Ae==M)Se+=m;else{if(Ae==A)continue;break}}return Q&&te!==!1&&(Se+=m),Math.min(Se,ce)}function he(Se){for(var _e=Se-U,Ae=U;Ae<Se;Ae++){var qe=T[Ae];(qe===12||qe===2)&&(_e-=1)}E.length||(ue=ne(),E.indent=ue),q+=_e,E.push(q),U=Se}for(var ue=0;W-U>x-ue;){var le=U+x-ue;if(T[le-1]>=I&&T[le]>=I){he(le);continue}if(T[le]==y||T[le]==p){for(le;le!=U-1&&T[le]!=y;le--);if(le>U){he(le);continue}for(le=U+x,le;le<T.length&&T[le]==p;le++);if(le==T.length)break;he(le);continue}for(var me=Math.max(le-(x-(x>>2)),U-1);le>me&&T[le]<y;)le--;if(Q){for(;le>me&&T[le]<y;)le--;for(;le>me&&T[le]==$;)le--}else for(;le>me&&T[le]<I;)le--;if(le>me){he(++le);continue}le=U+x,T[le]==C&&le--,he(le-ue)}return E},D.prototype.$getDisplayTokens=function(T,x){var m=[],E;x=x||0;for(var W=0;W<T.length;W++){var U=T.charCodeAt(W);if(U==9){E=this.getScreenTabSize(m.length+x),m.push(M);for(var q=1;q<E;q++)m.push(A)}else U==32?m.push(I):U>39&&U<48||U>57&&U<64?m.push($):U>=4352&&H(U)?m.push(L,C):m.push(L)}return m},D.prototype.$getStringScreenWidth=function(T,x,m){if(x==0)return[0,0];x==null&&(x=1/0),m=m||0;var E,W;for(W=0;W<T.length&&(E=T.charCodeAt(W),E==9?m+=this.getScreenTabSize(m):E>=4352&&H(E)?m+=2:m+=1,!(m>x));W++);return[m,W]},D.prototype.getRowLength=function(T){var x=1;return this.lineWidgets&&(x+=this.lineWidgets[T]&&this.lineWidgets[T].rowCount||0),!this.$useWrapMode||!this.$wrapData[T]?x:this.$wrapData[T].length+x},D.prototype.getRowLineCount=function(T){return!this.$useWrapMode||!this.$wrapData[T]?1:this.$wrapData[T].length+1},D.prototype.getRowWrapIndent=function(T){if(this.$useWrapMode){var x=this.screenToDocumentPosition(T,Number.MAX_VALUE),m=this.$wrapData[x.row];return m.length&&m[0]<x.column?m.indent:0}else return 0},D.prototype.getScreenLastRowColumn=function(T){var x=this.screenToDocumentPosition(T,Number.MAX_VALUE);return this.documentToScreenColumn(x.row,x.column)},D.prototype.getDocumentLastRowColumn=function(T,x){var m=this.documentToScreenRow(T,x);return this.getScreenLastRowColumn(m)},D.prototype.getDocumentLastRowColumnPosition=function(T,x){var m=this.documentToScreenRow(T,x);return this.screenToDocumentPosition(m,Number.MAX_VALUE/10)},D.prototype.getRowSplitData=function(T){if(this.$useWrapMode)return this.$wrapData[T]},D.prototype.getScreenTabSize=function(T){return this.$tabSize-(T%this.$tabSize|0)},D.prototype.screenToDocumentRow=function(T,x){return this.screenToDocumentPosition(T,x).row},D.prototype.screenToDocumentColumn=function(T,x){return this.screenToDocumentPosition(T,x).column},D.prototype.screenToDocumentPosition=function(T,x,m){if(T<0)return{row:0,column:0};var E,W=0,U=0,q,Q=0,te=0,ce=this.$screenRowCache,ne=this.$getRowCacheIndex(ce,T),he=ce.length;if(he&&ne>=0)var Q=ce[ne],W=this.$docRowCache[ne],ue=T>ce[he-1];else var ue=!he;for(var le=this.getLength()-1,me=this.getNextFoldLine(W),Se=me?me.start.row:1/0;Q<=T&&(te=this.getRowLength(W),!(Q+te>T||W>=le));)Q+=te,W++,W>Se&&(W=me.end.row+1,me=this.getNextFoldLine(W,me),Se=me?me.start.row:1/0),ue&&(this.$docRowCache.push(W),this.$screenRowCache.push(Q));if(me&&me.start.row<=W)E=this.getFoldDisplayLine(me),W=me.start.row;else{if(Q+te<=T||W>le)return{row:le,column:this.getLine(le).length};E=this.getLine(W),me=null}var _e=0,Ae=Math.floor(T-Q);if(this.$useWrapMode){var qe=this.$wrapData[W];qe&&(q=qe[Ae],Ae>0&&qe.length&&(_e=qe.indent,U=qe[Ae-1]||qe[qe.length-1],E=E.substring(U)))}return m!==void 0&&this.$bidiHandler.isBidiRow(Q+Ae,W,Ae)&&(x=this.$bidiHandler.offsetToCol(m)),U+=this.$getStringScreenWidth(E,x-_e)[1],this.$useWrapMode&&U>=q&&(U=q-1),me?me.idxToPosition(U):{row:W,column:U}},D.prototype.documentToScreenPosition=function(T,x){if(typeof x>"u")var m=this.$clipPositionToDocument(T.row,T.column);else m=this.$clipPositionToDocument(T,x);T=m.row,x=m.column;var E=0,W=null,U=null;U=this.getFoldAt(T,x,1),U&&(T=U.start.row,x=U.start.column);var q,Q=0,te=this.$docRowCache,ce=this.$getRowCacheIndex(te,T),ne=te.length;if(ne&&ce>=0)var Q=te[ce],E=this.$screenRowCache[ce],he=T>te[ne-1];else var he=!ne;for(var ue=this.getNextFoldLine(Q),le=ue?ue.start.row:1/0;Q<T;){if(Q>=le){if(q=ue.end.row+1,q>T)break;ue=this.getNextFoldLine(q,ue),le=ue?ue.start.row:1/0}else q=Q+1;E+=this.getRowLength(Q),Q=q,he&&(this.$docRowCache.push(Q),this.$screenRowCache.push(E))}var me="";ue&&Q>=le?(me=this.getFoldDisplayLine(ue,T,x),W=ue.start.row):(me=this.getLine(T).substring(0,x),W=T);var Se=0;if(this.$useWrapMode){var _e=this.$wrapData[W];if(_e){for(var Ae=0;me.length>=_e[Ae];)E++,Ae++;me=me.substring(_e[Ae-1]||0,me.length),Se=Ae>0?_e.indent:0}}return this.lineWidgets&&this.lineWidgets[Q]&&this.lineWidgets[Q].rowsAbove&&(E+=this.lineWidgets[Q].rowsAbove),{row:E,column:Se+this.$getStringScreenWidth(me)[0]}},D.prototype.documentToScreenColumn=function(T,x){return this.documentToScreenPosition(T,x).column},D.prototype.documentToScreenRow=function(T,x){return this.documentToScreenPosition(T,x).row},D.prototype.getScreenLength=function(){var T=0,x=null;if(this.$useWrapMode)for(var W=this.$wrapData.length,U=0,E=0,x=this.$foldData[E++],q=x?x.start.row:1/0;U<W;){var Q=this.$wrapData[U];T+=Q?Q.length+1:1,U++,U>q&&(U=x.end.row+1,x=this.$foldData[E++],q=x?x.start.row:1/0)}else{T=this.getLength();for(var m=this.$foldData,E=0;E<m.length;E++)x=m[E],T-=x.end.row-x.start.row}return this.lineWidgets&&(T+=this.$getWidgetScreenLength()),T},D.prototype.$setFontMetrics=function(T){this.$enableVarChar&&(this.$getStringScreenWidth=function(x,m,E){if(m===0)return[0,0];m||(m=1/0),E=E||0;var W,U;for(U=0;U<x.length&&(W=x.charAt(U),W===" "?E+=this.getScreenTabSize(E):E+=T.getCharacterWidth(W),!(E>m));U++);return[E,U]})},D.prototype.getPrecedingCharacter=function(){var T=this.selection.getCursor();if(T.column===0)return T.row===0?"":this.doc.getNewLineCharacter();var x=this.getLine(T.row);return x[T.column-1]},D.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},D})();g.$uid=0,g.prototype.$modes=u.$modes,g.prototype.getValue=g.prototype.toString,g.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},g.prototype.$overwrite=!1,g.prototype.$mode=null,g.prototype.$modeId=null,g.prototype.$scrollTop=0,g.prototype.$scrollLeft=0,g.prototype.$wrapLimit=80,g.prototype.$useWrapMode=!1,g.prototype.$wrapLimitRange={min:null,max:null},g.prototype.lineWidgets=null,g.prototype.isFullWidth=H,R.implement(g.prototype,h);var L=1,C=2,y=3,p=4,$=9,I=10,M=11,A=12;function H(D){return D<4352?!1:D>=4352&&D<=4447||D>=4515&&D<=4519||D>=4602&&D<=4607||D>=9001&&D<=9002||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12283||D>=12288&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12589||D>=12593&&D<=12686||D>=12688&&D<=12730||D>=12736&&D<=12771||D>=12784&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=13054||D>=13056&&D<=19903||D>=19968&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=55216&&D<=55238||D>=55243&&D<=55291||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=65281&&D<=65376||D>=65504&&D<=65510}f("./edit_session/folding").Folding.call(g.prototype),f("./edit_session/bracket_match").BracketMatch.call(g.prototype),u.defineOptions(g.prototype,"session",{wrap:{set:function(D){if(!D||D=="off"?D=!1:D=="free"?D=!0:D=="printMargin"?D=-1:typeof D=="string"&&(D=parseInt(D,10)||!1),this.$wrap!=D)if(this.$wrap=D,!D)this.setUseWrapMode(!1);else{var T=typeof D=="number"?D:null;this.setWrapLimitRange(T,T),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(D){D=D=="auto"?this.$mode.type!="text":D!="text",D!=this.$wrapAsCode&&(this.$wrapAsCode=D,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(D){this.$useWorker=D,this.$stopWorker(),D&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(D){D=parseInt(D),D>0&&this.$tabSize!==D&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=D,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(D){this.setFoldStyle(D)},handlesSet:!0},overwrite:{set:function(D){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(D){this.doc.setNewLineMode(D)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(D){this.setMode(D)},get:function(){return this.$modeId},handlesSet:!0}}),b.EditSession=g}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(f,b,z){var R=f("./lib/lang"),_=f("./lib/oop"),S=f("./range").Range,u=(function(){function i(){this.$options={}}return i.prototype.set=function(r){return _.mixin(this.$options,r),this},i.prototype.getOptions=function(){return R.copyObject(this.$options)},i.prototype.setOptions=function(r){this.$options=r},i.prototype.find=function(r){var t=this.$options,n=this.$matchIterator(r,t);if(!n)return!1;var a=null;return n.forEach(function(d,g,L,C){return a=new S(d,g,L,C),g==C&&t.start&&t.start.start&&t.skipCurrent!=!1&&a.isEqual(t.start)?(a=null,!1):!0}),a},i.prototype.findAll=function(r){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,a=n?r.getLines(n.start.row,n.end.row):r.doc.getAllLines(),d=[],g=t.re;if(t.$isMultiLine){var L=g.length,C=a.length-L,y;e:for(var p=g.offset||0;p<=C;p++){for(var $=0;$<L;$++)if(a[p+$].search(g[$])==-1)continue e;var I=a[p],M=a[p+L-1],A=I.length-I.match(g[0])[0].length,H=M.match(g[L-1])[0].length;y&&y.end.row===p&&y.end.column>A||(d.push(y=new S(p,A,p+L-1,H)),L>2&&(p=p+L-2))}}else for(var D,T=0;T<a.length;T++)if(this.$isMultilineSearch(t)){var x=a.length-1;if(D=this.$multiLineForward(r,g,T,x),D){var m=D.endRow<=x?D.endRow-1:x;m>T&&(T=m),d.push(new S(D.startRow,D.startCol,D.endRow,D.endCol))}}else{D=R.getMatchOffsets(a[T],g);for(var $=0;$<D.length;$++){var E=D[$];d.push(new S(T,E.offset,T,E.offset+E.length))}}if(n){for(var W=n.start.column,U=n.end.column,T=0,$=d.length-1;T<$&&d[T].start.column<W&&d[T].start.row==0;)T++;for(var q=n.end.row-n.start.row;T<$&&d[$].end.column>U&&d[$].end.row==q;)$--;for(d=d.slice(T,$+1),T=0,$=d.length;T<$;T++)d[T].start.row+=n.start.row,d[T].end.row+=n.start.row}return d},i.prototype.parseReplaceString=function(r){for(var t={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},n="",a=0,d=r.length;a<d;a++){var g=r.charCodeAt(a);if(g===t.Backslash){if(a++,a>=d){n+="\\";break}var L=r.charCodeAt(a);switch(L){case t.Backslash:n+="\\";break;case t.n:n+=`
|
|
193
|
+
`;break;case t.t:n+=" ";break}continue}if(g===t.DollarSign){if(a++,a>=d){n+="$";break}var C=r.charCodeAt(a);if(C===t.DollarSign){n+="$$";continue}if(C===t.Digit0||C===t.Ampersand){n+="$&";continue}if(t.Digit1<=C&&C<=t.Digit9){n+="$"+r[a];continue}}n+=r[a]}return n||r},i.prototype.replace=function(r,t){var n=this.$options,a=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(a){var d=this.$isMultilineSearch(n);d&&(r=r.replace(/\r\n|\r|\n/g,`
|
|
194
|
+
`));var g=a.exec(r);if(!g||!d&&g[0].length!=r.length)return null;if(t=n.regExp?this.parseReplaceString(t):t.replace(/\$/g,"$$$$"),t=r.replace(a,t),n.preserveCase){t=t.split("");for(var L=Math.min(r.length,r.length);L--;){var C=r[L];C&&C.toLowerCase()!=C?t[L]=t[L].toUpperCase():t[L]=t[L].toLowerCase()}t=t.join("")}return t}},i.prototype.$assembleRegExp=function(r,t){if(r.needle instanceof RegExp)return r.re=r.needle;var n=r.needle;if(!r.needle)return r.re=!1;r.regExp||(n=R.escapeRegExp(n));var a=r.caseSensitive?"gm":"gmi";try{new RegExp(n,"u"),r.$supportsUnicodeFlag=!0,a+="u"}catch{r.$supportsUnicodeFlag=!1}if(r.wholeWord&&(n=h(n,r)),r.$isMultiLine=!t&&/[\n\r]/.test(n),r.$isMultiLine)return r.re=this.$assembleMultilineRegExp(n,a);try{var d=new RegExp(n,a)}catch{d=!1}return r.re=d},i.prototype.$assembleMultilineRegExp=function(r,t){for(var n=r.replace(/\r\n|\r|\n/g,`$
|
|
195
|
+
^`).split(`
|
|
196
|
+
`),a=[],d=0;d<n.length;d++)try{a.push(new RegExp(n[d],t))}catch{return!1}return a},i.prototype.$isMultilineSearch=function(r){return r.re&&/\\r\\n|\\r|\\n/.test(r.re.source)&&r.regExp&&!r.$isMultiLine},i.prototype.$multiLineForward=function(r,t,n,a){for(var d,g=o(r,n),L=n;L<=a;){for(var C=0;C<g&&!(L>a);C++){var y=r.getLine(L++);d=d==null?y:d+`
|
|
197
|
+
`+y}var p=t.exec(d);if(t.lastIndex=0,p){var $=d.slice(0,p.index).split(`
|
|
198
|
+
`),I=p[0].split(`
|
|
199
|
+
`),M=n+$.length-1,A=$[$.length-1].length,H=M+I.length-1,D=I.length==1?A+I[0].length:I[I.length-1].length;return{startRow:M,startCol:A,endRow:H,endCol:D}}}return null},i.prototype.$multiLineBackward=function(r,t,n,a,d){for(var g,L=o(r,a),C=r.getLine(a).length-n,y=a;y>=d;){for(var p=0;p<L&&y>=d;p++){var $=r.getLine(y--);g=g==null?$:$+`
|
|
200
|
+
`+g}var I=s(g,t,C);if(I){var M=g.slice(0,I.index).split(`
|
|
201
|
+
`),A=I[0].split(`
|
|
202
|
+
`),H=y+M.length,D=M[M.length-1].length,T=H+A.length-1,x=A.length==1?D+A[0].length:A[A.length-1].length;return{startRow:H,startCol:D,endRow:T,endCol:x}}}return null},i.prototype.$matchIterator=function(r,t){var n=this.$assembleRegExp(t);if(!n)return!1;var a=this.$isMultilineSearch(t),d=this.$multiLineForward,g=this.$multiLineBackward,L=t.backwards==!0,C=t.skipCurrent!=!1,y=n.unicode,p=t.range,$=t.start;$||($=p?p[L?"end":"start"]:r.selection.getRange()),$.start&&($=$[C!=L?"end":"start"]);var I=p?p.start.row:0,M=p?p.end.row:r.getLength()-1;if(L)var A=function(T){var x=$.row;if(!D(x,$.column,T)){for(x--;x>=I;x--)if(D(x,Number.MAX_VALUE,T))return;if(t.wrap!=!1){for(x=M,I=$.row;x>=I;x--)if(D(x,Number.MAX_VALUE,T))return}}};else var A=function(x){var m=$.row;if(!D(m,$.column,x)){for(m=m+1;m<=M;m++)if(D(m,0,x))return;if(t.wrap!=!1){for(m=I,M=$.row;m<=M;m++)if(D(m,0,x))return}}};if(t.$isMultiLine)var H=n.length,D=function(T,x,m){var E=L?T-H+1:T;if(!(E<0||E+H>r.getLength())){var W=r.getLine(E),U=W.search(n[0]);if(!(!L&&U<x||U===-1)){for(var q=1;q<H;q++)if(W=r.getLine(E+q),W.search(n[q])==-1)return;var Q=W.match(n[H-1])[0].length;if(!(L&&Q>x)&&m(E,U,E+H-1,Q))return!0}}};else if(L)var D=function(x,m,E){if(a){var W=g(r,n,m,x,I);if(!W)return!1;if(E(W.startRow,W.startCol,W.endRow,W.endCol))return!0}else{var U=r.getLine(x),q=[],Q,te=0;for(n.lastIndex=0;Q=n.exec(U);){var ce=Q[0].length;if(te=Q.index,!ce){if(te>=U.length)break;n.lastIndex=te+=R.skipEmptyMatch(U,te,y)}if(Q.index+ce>m)break;q.push(Q.index,ce)}for(var ne=q.length-1;ne>=0;ne-=2){var he=q[ne-1],ce=q[ne];if(E(x,he,x,he+ce))return!0}}};else var D=function(x,m,E){if(n.lastIndex=m,a){var W=d(r,n,x,M);if(W){var U=W.endRow<=M?W.endRow-1:M;U>x&&(x=U)}if(!W)return!1;if(E(W.startRow,W.startCol,W.endRow,W.endCol))return!0}else for(var q=r.getLine(x),Q,te;te=n.exec(q);){var ce=te[0].length;if(Q=te.index,E(x,Q,x,Q+ce))return!0;if(!ce&&(n.lastIndex=Q+=R.skipEmptyMatch(q,Q,y),Q>=q.length))return!1}};return{forEach:A}},i})();function h(i,r){var t=R.supportsLookbehind();function n(L,C){C===void 0&&(C=!0);var y=t&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return y.test(L)||r.regExp?t&&r.$supportsUnicodeFlag?C?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var a=Array.from(i),d=a[0],g=a[a.length-1];return n(d)+i+n(g,!1)}function s(i,r,t){for(var n=null,a=0;a<=i.length;){r.lastIndex=a;var d=r.exec(i);if(!d)break;var g=d.index+d[0].length;if(g>i.length-t)break;(!n||g>n.index+n[0].length)&&(n=d),a=d.index+1}return n}function o(i,r){var t=5e3,n={row:r,column:0},a=i.doc.positionToIndex(n),d=a+t,g=i.doc.indexToPosition(d),L=g.row;return L+1}b.Search=u}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(f,b,z){var R=this&&this.__extends||(function(){var i=function(r,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(n[d]=a[d])},i(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),_=f("../lib/keys"),S=f("../lib/useragent"),u=_.KEY_MODS,h=(function(){function i(r,t){this.$init(r,t,!1)}return i.prototype.$init=function(r,t,n){this.platform=t||(S.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(r),this.$singleCommand=n},i.prototype.addCommand=function(r){this.commands[r.name]&&this.removeCommand(r),this.commands[r.name]=r,r.bindKey&&this._buildKeyHash(r)},i.prototype.removeCommand=function(r,t){var n=r&&(typeof r=="string"?r:r.name);r=this.commands[n],t||delete this.commands[n];var a=this.commandKeyBinding;for(var d in a){var g=a[d];if(g==r)delete a[d];else if(Array.isArray(g)){var L=g.indexOf(r);L!=-1&&(g.splice(L,1),g.length==1&&(a[d]=g[0]))}}},i.prototype.bindKey=function(r,t,n){if(typeof r=="object"&&r&&(n==null&&(n=r.position),r=r[this.platform]),!!r){if(typeof t=="function")return this.addCommand({exec:t,bindKey:r,name:t.name||r});r.split("|").forEach(function(a){var d="";if(a.indexOf(" ")!=-1){var g=a.split(/\s+/);a=g.pop(),g.forEach(function(y){var p=this.parseKeys(y),$=u[p.hashId]+p.key;d+=(d?" ":"")+$,this._addCommandToBinding(d,"chainKeys")},this),d+=" "}var L=this.parseKeys(a),C=u[L.hashId]+L.key;this._addCommandToBinding(d+C,t,n)},this)}},i.prototype._addCommandToBinding=function(r,t,n){var a=this.commandKeyBinding,d;if(!t)delete a[r];else if(!a[r]||this.$singleCommand)a[r]=t;else{Array.isArray(a[r])?(d=a[r].indexOf(t))!=-1&&a[r].splice(d,1):a[r]=[a[r]],typeof n!="number"&&(n=s(t));var g=a[r];for(d=0;d<g.length;d++){var L=g[d],C=s(L);if(C>n)break}g.splice(d,0,t)}},i.prototype.addCommands=function(r){r&&Object.keys(r).forEach(function(t){var n=r[t];if(n){if(typeof n=="string")return this.bindKey(n,t);typeof n=="function"&&(n={exec:n}),typeof n=="object"&&(n.name||(n.name=t),this.addCommand(n))}},this)},i.prototype.removeCommands=function(r){Object.keys(r).forEach(function(t){this.removeCommand(r[t])},this)},i.prototype.bindKeys=function(r){Object.keys(r).forEach(function(t){this.bindKey(t,r[t])},this)},i.prototype._buildKeyHash=function(r){this.bindKey(r.bindKey,r)},i.prototype.parseKeys=function(r){var t=r.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),n=t.pop(),a=_[n];if(_.FUNCTION_KEYS[a])n=_.FUNCTION_KEYS[a].toLowerCase();else if(t.length){if(t.length==1&&t[0]=="shift")return{key:n.toUpperCase(),hashId:-1}}else return{key:n,hashId:-1};for(var d=0,g=t.length;g--;){var L=_.KEY_MODS[t[g]];if(L==null)return typeof console<"u"&&console.error("invalid modifier "+t[g]+" in "+r),!1;d|=L}return{key:n,hashId:d}},i.prototype.findKeyCommand=function(r,t){var n=u[r]+t;return this.commandKeyBinding[n]},i.prototype.handleKeyboard=function(r,t,n,a){if(!(a<0)){var d=u[t]+n,g=this.commandKeyBinding[d];return r.$keyChain&&(r.$keyChain+=" "+d,g=this.commandKeyBinding[r.$keyChain]||g),g&&(g=="chainKeys"||g[g.length-1]=="chainKeys")?(r.$keyChain=r.$keyChain||d,{command:"null"}):(r.$keyChain&&((!t||t==4)&&n.length==1?r.$keyChain=r.$keyChain.slice(0,-d.length-1):(t==-1||a>0)&&(r.$keyChain="")),{command:g})}},i.prototype.getStatusText=function(r,t){return t.$keyChain||""},i})();function s(i){return typeof i=="object"&&i.bindKey&&i.bindKey.position||(i.isDefault?-100:0)}var o=(function(i){R(r,i);function r(t,n){var a=i.call(this,t,n)||this;return a.$singleCommand=!0,a}return r})(h);o.call=function(i,r,t){h.prototype.$init.call(i,r,t,!0)},h.call=function(i,r,t){h.prototype.$init.call(i,r,t,!1)},b.HashHandler=o,b.MultiHashHandler=h}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(f,b,z){var R=this&&this.__extends||(function(){var s=function(o,i){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},s(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");s(o,i);function r(){this.constructor=o}o.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}})(),_=f("../lib/oop"),S=f("../keyboard/hash_handler").MultiHashHandler,u=f("../lib/event_emitter").EventEmitter,h=(function(s){R(o,s);function o(i,r){var t=s.call(this,r,i)||this;return t.byName=t.commands,t.setDefaultHandler("exec",function(n){return n.args?n.command.exec(n.editor,n.args,n.event,!1):n.command.exec(n.editor,{},n.event,!0)}),t}return o.prototype.exec=function(i,r,t){if(Array.isArray(i)){for(var n=i.length;n--;)if(this.exec(i[n],r,t))return!0;return!1}typeof i=="string"&&(i=this.commands[i]);var a={editor:r,command:i,args:t};return this.canExecute(i,r)?(a.returnValue=this._emit("exec",a),this._signal("afterExec",a),a.returnValue!==!1):(this._signal("commandUnavailable",a),!1)},o.prototype.canExecute=function(i,r){return typeof i=="string"&&(i=this.commands[i]),!(!i||r&&r.$readOnly&&!i.readOnly||this.$checkCommandState!=!1&&i.isAvailable&&!i.isAvailable(r))},o.prototype.toggleRecording=function(i){if(!this.$inReplay)return i&&i._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(r){this.macro.push([r.command,r.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},o.prototype.replay=function(i){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(i);try{this.$inReplay=!0,this.macro.forEach(function(r){typeof r=="string"?this.exec(r,i):this.exec(r[0],i,r[1])},this)}finally{this.$inReplay=!1}}},o.prototype.trimMacro=function(i){return i.map(function(r){return typeof r[0]!="string"&&(r[0]=r[0].name),r[1]||(r=r[0]),r})},o})(S);_.implement(h.prototype,u),b.CommandManager=h}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(f,b,z){var R=f("../lib/lang"),_=f("../config"),S=f("../range").Range;function u(s,o){return{win:s,mac:o}}b.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:u("Ctrl-,","Command-,"),exec:function(s){_.loadModule("ace/ext/settings_menu",function(o){o.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:u("Alt-E","F4"),exec:function(s){_.loadModule("ace/ext/error_marker",function(o){o.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:u("Alt-Shift-E","Shift-F4"),exec:function(s){_.loadModule("ace/ext/error_marker",function(o){o.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:u("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:u(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:u("Ctrl-L","Command-L"),exec:function(s,o){typeof o=="number"&&!isNaN(o)&&s.gotoLine(o),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:u("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:u("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:u("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:u("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:u(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:u(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:u("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:u("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:u("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:u("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:u("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:u("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:u("Ctrl-F","Command-F"),exec:function(s){_.loadModule("ace/ext/searchbox",function(o){o.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:u("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:u("Ctrl-Home","Command-Home|Command-Up"),exec:function(s){s.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:u("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:u("Up","Up|Ctrl-P"),exec:function(s,o){s.navigateUp(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:u("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:u("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:u("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:u("Down","Down|Ctrl-N"),exec:function(s,o){s.navigateDown(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:u("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:u("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:u("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:u("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:u("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:u("Left","Left|Ctrl-B"),exec:function(s,o){s.navigateLeft(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:u("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:u("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:u("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:u("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:u("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:u("Right","Right|Ctrl-F"),exec:function(s,o){s.navigateRight(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:u(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:u("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:u(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:u("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:u("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:u("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:u("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:u("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:u("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:u("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:u(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var o=s.$copyWithEmptySelection&&s.selection.isEmpty(),i=o?s.selection.getLineRange():s.selection.getRange();s._emit("cut",i),i.isEmpty()||s.session.remove(i),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,o){s.$handlePaste(o)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:u("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:u("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:u("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:u("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:u("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:u("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:u("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:u("Ctrl-H","Command-Option-F"),exec:function(s){_.loadModule("ace/ext/searchbox",function(o){o.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:u("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:u("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:u("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:u("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:u("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:u("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:u("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:u("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:u("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:u("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:u("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:u("Ctrl-Shift-Backspace",null),exec:function(s){var o=s.selection.getRange();o.start.column=0,s.session.remove(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:u("Ctrl-Shift-Delete",null),exec:function(s){var o=s.selection.getRange();o.end.column=Number.MAX_VALUE,s.session.remove(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:u("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:u("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:u("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:u("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:u("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:u("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,o){s.insert(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,o){s.insert(R.stringRepeat(o.text||"",o.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:u(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:u("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:u("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:u("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:u(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:u("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var o=s.selection.getRange();o.start.column=o.end.column=0,o.end.row++,s.selection.setRange(o,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:u("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:u(null,null),exec:function(s){for(var o=s.selection.isBackwards(),i=o?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),r=o?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),t=s.session.doc.getLine(i.row).length,n=s.session.doc.getTextRange(s.selection.getRange()),a=n.replace(/\n\s*/," ").length,d=s.session.doc.getLine(i.row),g=i.row+1;g<=r.row+1;g++){var L=R.stringTrimLeft(R.stringTrimRight(s.session.doc.getLine(g)));L.length!==0&&(L=" "+L),d+=L}r.row+1<s.session.doc.getLength()-1&&(d+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new S(i.row,0,r.row+2,0),d),a>0?(s.selection.moveCursorTo(i.row,i.column),s.selection.selectTo(i.row,i.column+a)):(t=s.session.doc.getLine(i.row).length>t?t+1:t,s.selection.moveCursorTo(i.row,t))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:u(null,null),exec:function(s){var o=s.session.doc.getLength()-1,i=s.session.doc.getLine(o).length,r=s.selection.rangeList.ranges,t=[];r.length<1&&(r=[s.selection.getRange()]);for(var n=0;n<r.length;n++)n==r.length-1&&(r[n].end.row===o&&r[n].end.column===i||t.push(new S(r[n].end.row,r[n].end.column,o,i))),n===0?r[n].start.row===0&&r[n].start.column===0||t.push(new S(0,0,r[n].start.row,r[n].start.column)):t.push(new S(r[n-1].end.row,r[n-1].end.column,r[n].start.row,r[n].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var n=0;n<t.length;n++)s.selection.addRange(t[n],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(s){s.selection.clearSelection(),s.navigateLineEnd(),s.insert(`
|
|
203
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var o=s.getCursorPosition();s.selection.moveTo(o.row-1,Number.MAX_VALUE),s.insert(`
|
|
204
|
+
`),o.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:u("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:u(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var h=1;h<9;h++)b.commands.push({name:"foldToLevel"+h,description:"Fold To Level "+h,level:h,exec:function(s){s.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys"],function(f,b,z){var R=f("../lib/keys"),_=(function(){function u(h){this.editor=h,this.gutterLayer=h.renderer.$gutterLayer,this.element=h.renderer.$gutter,this.lines=h.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=this.editor.$mouseHandler.$tooltip}return u.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},u.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},u.prototype.$onGutterKeyDown=function(h){if(this.annotationTooltip.isOpen){h.preventDefault(),h.keyCode===R.escape&&this.annotationTooltip.hide();return}if(h.target===this.element){if(h.keyCode!=R.enter)return;h.preventDefault();var s=this.editor.getCursorPosition().row;this.editor.isRowVisible(s)||this.editor.scrollToLine(s,!0,!0),setTimeout((function(){var o=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),i=this.$findNearestFoldLaneWidget(o),r=this.$findNearestAnnotation(o);if(!(i===null&&r===null)){var t=this.$findClosestNumber(i,r,o);if(t===i)if(this.activeLane="fold",this.activeRowIndex=i,this.$isCustomWidgetVisible(i)){this.$focusCustomWidget(this.activeRowIndex);return}else{this.$focusFoldWidget(this.activeRowIndex);return}else{this.activeRowIndex=r,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(h),setTimeout((function(){this.editor._signal("gutterkeydown",new S(h,this))}).bind(this),10)},u.prototype.$handleGutterKeyboardInteraction=function(h){if(h.keyCode===R.tab){h.preventDefault();return}if(h.keyCode===R.escape){h.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(h.keyCode===R.up){switch(h.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(h.keyCode===R.down){switch(h.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(h.keyCode===R.left){h.preventDefault(),this.$switchLane("annotation");return}if(h.keyCode===R.right){h.preventDefault(),this.$switchLane("fold");return}if(h.keyCode===R.enter||h.keyCode===R.space){switch(h.preventDefault(),this.activeLane){case"fold":var s=this.$rowIndexToRow(this.activeRowIndex),o=this.editor.session.$gutterCustomWidgets[s];if(o)o.callbacks&&o.callbacks.onClick&&o.callbacks.onClick(h,s);else if(this.gutterLayer.session.foldWidgets[s]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),h),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==s&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(s),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex)),this.annotationTooltip.$fromKeyboard=!0;break}return}},u.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hide()},u.prototype.$isFoldWidgetVisible=function(h){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(h)),o=this.$getFoldWidget(h).style.display!=="none";return s&&o},u.prototype.$isCustomWidgetVisible=function(h){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(h)),o=!!this.$getCustomWidget(h);return s&&o},u.prototype.$isAnnotationVisible=function(h){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(h)),o=this.$getAnnotation(h).style.display!=="none";return s&&o},u.prototype.$getFoldWidget=function(h){var s=this.lines.get(h),o=s.element;return o.childNodes[1]},u.prototype.$getCustomWidget=function(h){var s=this.lines.get(h),o=s.element;return o.childNodes[3]},u.prototype.$getAnnotation=function(h){var s=this.lines.get(h),o=s.element;return o.childNodes[2]},u.prototype.$findNearestFoldLaneWidget=function(h){if(this.$isCustomWidgetVisible(h)||this.$isFoldWidgetVisible(h))return h;for(var s=0;h-s>0||h+s<this.lines.getLength()-1;){if(s++,h-s>=0&&this.$isCustomWidgetVisible(h-s))return h-s;if(h+s<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(h+s))return h+s;if(h-s>=0&&this.$isFoldWidgetVisible(h-s))return h-s;if(h+s<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(h+s))return h+s}return null},u.prototype.$findNearestAnnotation=function(h){if(this.$isAnnotationVisible(h))return h;for(var s=0;h-s>0||h+s<this.lines.getLength()-1;){if(s++,h-s>=0&&this.$isAnnotationVisible(h-s))return h-s;if(h+s<=this.lines.getLength()-1&&this.$isAnnotationVisible(h+s))return h+s}return null},u.prototype.$focusFoldWidget=function(h){if(h!=null){var s=this.$getFoldWidget(h);s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus()}},u.prototype.$focusCustomWidget=function(h){if(h!=null){var s=this.$getCustomWidget(h);s&&(s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus())}},u.prototype.$focusAnnotation=function(h){if(h!=null){var s=this.$getAnnotation(h);s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus()}},u.prototype.$blurFoldWidget=function(h){var s=this.$getFoldWidget(h);s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur()},u.prototype.$blurCustomWidget=function(h){var s=this.$getCustomWidget(h);s&&(s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur())},u.prototype.$blurAnnotation=function(h){var s=this.$getAnnotation(h);s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur()},u.prototype.$moveFoldWidgetUp=function(){for(var h=this.activeRowIndex;h>0;)if(h--,this.$isFoldWidgetVisible(h)||this.$isCustomWidgetVisible(h)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=h,this.$isFoldWidgetVisible(h)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},u.prototype.$moveFoldWidgetDown=function(){for(var h=this.activeRowIndex;h<this.lines.getLength()-1;)if(h++,this.$isFoldWidgetVisible(h)||this.$isCustomWidgetVisible(h)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=h,this.$isFoldWidgetVisible(h)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},u.prototype.$moveAnnotationUp=function(){for(var h=this.activeRowIndex;h>0;)if(h--,this.$isAnnotationVisible(h)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=h,this.$focusAnnotation(this.activeRowIndex);return}},u.prototype.$moveAnnotationDown=function(){for(var h=this.activeRowIndex;h<this.lines.getLength()-1;)if(h++,this.$isAnnotationVisible(h)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=h,this.$focusAnnotation(this.activeRowIndex);return}},u.prototype.$findClosestNumber=function(h,s,o){return h===null?s:s===null||Math.abs(o-h)<=Math.abs(o-s)?h:s},u.prototype.$switchLane=function(h){switch(h){case"annotation":if(this.activeLane==="annotation")break;var s=this.$findNearestAnnotation(this.activeRowIndex);if(s==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var o=this.$findNearestFoldLaneWidget(this.activeRowIndex);if(o===null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$isCustomWidgetVisible(o)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex);break}},u.prototype.$rowIndexToRow=function(h){var s=this.lines.get(h);return s?s.row:null},u.prototype.$rowToRowIndex=function(h){for(var s=0;s<this.lines.getLength();s++){var o=this.lines.get(s);if(o.row==h)return s}return null},u})();b.GutterKeyboardHandler=_;var S=(function(){function u(h,s){this.gutterKeyboardHandler=s,this.domEvent=h}return u.prototype.getKey=function(){return R.keyCodeToString(this.domEvent.keyCode)},u.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},u.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},u.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},u})();b.GutterKeyboardEvent=S}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(f,b,z){var R=this&&this.__values||function(x){var m=typeof Symbol=="function"&&Symbol.iterator,E=m&&x[m],W=0;if(E)return E.call(x);if(x&&typeof x.length=="number")return{next:function(){return x&&W>=x.length&&(x=void 0),{value:x&&x[W++],done:!x}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},_=f("./lib/oop"),S=f("./lib/dom"),u=f("./lib/lang"),h=f("./lib/useragent"),s=f("./keyboard/textinput").TextInput,o=f("./mouse/mouse_handler").MouseHandler,i=f("./mouse/fold_handler").FoldHandler,r=f("./keyboard/keybinding").KeyBinding,t=f("./edit_session").EditSession,n=f("./search").Search,a=f("./range").Range,d=f("./lib/event_emitter").EventEmitter,g=f("./commands/command_manager").CommandManager,L=f("./commands/default_commands").commands,C=f("./config"),y=f("./token_iterator").TokenIterator,p=f("./keyboard/gutter_handler").GutterKeyboardHandler,$=f("./config").nls,I=f("./clipboard"),M=f("./lib/keys"),A=f("./lib/event"),H=f("./tooltip").HoverTooltip,D=(function(){function x(m,E,W){this.id="editor"+ ++x.$uid,this.session,this.$toDestroy=[];var U=m.getContainerElement();this.container=U,this.renderer=m,this.commands=new g(h.isMac?"mac":"win",L),typeof document=="object"&&(this.textInput=new s(m.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new o(this),new i(this)),this.keyBinding=new r(this),this.$search=new n().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=u.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(q,Q){Q._$emitInputEvent.schedule(31)}),this.setSession(E||W&&W.session||new t("")),C.resetOptions(this),W&&this.setOptions(W),C._signal("editor",this)}return x.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},x.prototype.startOperation=function(m){this.session.startOperation(m)},x.prototype.endOperation=function(m){this.session.endOperation(m)},x.prototype.onStartOperation=function(m){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,m||(this.previousCommand=null)},x.prototype.onEndOperation=function(m){if(this.curOp&&this.session){if(m&&m.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var E=this.curOp.command,W=E&&E.scrollIntoView;if(W){switch(W){case"center-animate":W="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var U=this.selection.getRange(),q=this.renderer.layerConfig;(U.start.row>=q.lastRow||U.end.row<=q.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}W=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},x.prototype.$historyTracker=function(m){if(this.$mergeUndoDeltas){var E=this.prevOp,W=this.$mergeableCommands,U=E.command&&m.command.name==E.command.name;if(m.command.name=="insertstring"){var q=m.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),U=U&&this.mergeNextCommand&&(!/\s/.test(q)||/\s/.test(E.args)),this.mergeNextCommand=!0}else U=U&&W.indexOf(m.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(U=!1),U?this.session.mergeUndoDeltas=!0:W.indexOf(m.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},x.prototype.setKeyboardHandler=function(m,E){if(m&&typeof m=="string"&&m!="ace"){this.$keybindingId=m;var W=this;C.loadModule(["keybinding",m],function(U){W.$keybindingId==m&&W.keyBinding.setKeyboardHandler(U&&U.handler),E&&E()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(m),E&&E()},x.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},x.prototype.setSession=function(m){if(this.session!=m){this.curOp&&this.endOperation(),this.curOp={};var E=this.session;if(E){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var W=this.session.getSelection();W.off("changeCursor",this.$onCursorChange),W.off("changeSelection",this.$onSelectionChange)}this.session=m,m?(this.$onDocumentChange=this.onDocumentChange.bind(this),m.on("change",this.$onDocumentChange),this.renderer.setSession(m),this.$onChangeMode=this.onChangeMode.bind(this),m.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),m.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),m.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),m.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),m.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),m.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=m.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(m)),this._signal("changeSession",{session:m,oldSession:E}),this.curOp=null,E&&E._signal("changeEditor",{oldEditor:this}),E&&(E.$editor=null),m&&m._signal("changeEditor",{editor:this}),m&&(m.$editor=this),m&&!m.destroyed&&m.bgTokenizer.scheduleStart()}},x.prototype.getSession=function(){return this.session},x.prototype.setValue=function(m,E){return this.session.doc.setValue(m),E?E==1?this.navigateFileEnd():E==-1&&this.navigateFileStart():this.selectAll(),m},x.prototype.getValue=function(){return this.session.getValue()},x.prototype.getSelection=function(){return this.selection},x.prototype.resize=function(m){this.renderer.onResize(m)},x.prototype.setTheme=function(m,E){this.renderer.setTheme(m,E)},x.prototype.getTheme=function(){return this.renderer.getTheme()},x.prototype.setStyle=function(m,E){this.renderer.setStyle(m,E)},x.prototype.unsetStyle=function(m){this.renderer.unsetStyle(m)},x.prototype.getFontSize=function(){return this.getOption("fontSize")||S.computedStyle(this.container).fontSize},x.prototype.setFontSize=function(m){this.setOption("fontSize",m)},x.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var m=this;this.$highlightPending=!0,setTimeout(function(){m.$highlightPending=!1;var E=m.session;if(!(!E||E.destroyed)){E.$bracketHighlight&&(E.$bracketHighlight.markerIds.forEach(function(ue){E.removeMarker(ue)}),E.$bracketHighlight=null);var W=m.getCursorPosition(),U=m.getKeyboardHandler(),q=U&&U.$getDirectionForHighlight&&U.$getDirectionForHighlight(m),Q=E.getMatchingBracketRanges(W,q);if(!Q){var te=new y(E,W.row,W.column),ce=te.getCurrentToken();if(ce&&/\b(?:tag-open|tag-name)/.test(ce.type)){var ne=E.getMatchingTags(W);ne&&(Q=[ne.openTagName.isEmpty()?ne.openTag:ne.openTagName,ne.closeTagName.isEmpty()?ne.closeTag:ne.closeTagName])}}if(!Q&&E.$mode.getMatching&&(Q=E.$mode.getMatching(m.session)),!Q){m.getHighlightIndentGuides()&&m.renderer.$textLayer.$highlightIndentGuide();return}var he="ace_bracket";Array.isArray(Q)?Q.length==1&&(he="ace_error_bracket"):Q=[Q],Q.length==2&&(a.comparePoints(Q[0].end,Q[1].start)==0?Q=[a.fromPoints(Q[0].start,Q[1].end)]:a.comparePoints(Q[0].start,Q[1].end)==0&&(Q=[a.fromPoints(Q[1].start,Q[0].end)])),E.$bracketHighlight={ranges:Q,markerIds:Q.map(function(ue){return E.addMarker(ue,he,"text")})},m.getHighlightIndentGuides()&&m.renderer.$textLayer.$highlightIndentGuide()}},50)}},x.prototype.focus=function(){this.textInput.focus()},x.prototype.isFocused=function(){return this.textInput.isFocused()},x.prototype.blur=function(){this.textInput.blur()},x.prototype.onFocus=function(m){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",m))},x.prototype.onBlur=function(m){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",m))},x.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},x.prototype.onDocumentChange=function(m){var E=this.session.$useWrapMode,W=m.start.row==m.end.row?m.end.row:1/0;this.renderer.updateLines(m.start.row,W,E),this._signal("change",m),this.$cursorChange()},x.prototype.onTokenizerUpdate=function(m){var E=m.data;this.renderer.updateLines(E.first,E.last)},x.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},x.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},x.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},x.prototype.$updateHighlightActiveLine=function(){var m=this.getSession(),E;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(E=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(E=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(E=!1)),m.$highlightLineMarker&&!E)m.removeMarker(m.$highlightLineMarker.id),m.$highlightLineMarker=null;else if(!m.$highlightLineMarker&&E){var W=new a(E.row,E.column,E.row,1/0);W.id=m.addMarker(W,"ace_active-line","screenLine"),m.$highlightLineMarker=W}else E&&(m.$highlightLineMarker.start.row=E.row,m.$highlightLineMarker.end.row=E.row,m.$highlightLineMarker.start.column=E.column,m._signal("changeBackMarker"))},x.prototype.onSelectionChange=function(m){var E=this.session;if(E.$selectionMarker&&E.removeMarker(E.$selectionMarker),E.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var W=this.selection.getRange(),U=this.getSelectionStyle();E.$selectionMarker=E.addMarker(W,"ace_selection",U)}var q=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(q),this._signal("changeSelection")},x.prototype.$getSelectionHighLightRegexp=function(){var m=this.session,E=this.getSelectionRange();if(!(E.isEmpty()||E.isMultiLine())){var W=E.start.column,U=E.end.column,q=m.getLine(E.start.row),Q=q.substring(W,U);if(!(Q.length>5e3||!/[\w\d]/.test(Q))){var te=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Q}),ce=q.substring(W-1,U+1);if(te.test(ce))return te}}},x.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},x.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},x.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},x.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},x.prototype.onChangeMode=function(m){this.renderer.updateText(),this._emit("changeMode",m)},x.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},x.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},x.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},x.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},x.prototype.getCopyText=function(){var m=this.getSelectedText(),E=this.session.doc.getNewLineCharacter(),W=!1;if(!m&&this.$copyWithEmptySelection){W=!0;for(var U=this.selection.getAllRanges(),q=0;q<U.length;q++){var Q=U[q];q&&U[q-1].start.row==Q.start.row||(m+=this.session.getLine(Q.start.row)+E)}}var te={text:m};return this._signal("copy",te),I.lineMode=W?te.text:!1,te.text},x.prototype.onCopy=function(){this.commands.exec("copy",this)},x.prototype.onCut=function(){this.commands.exec("cut",this)},x.prototype.onPaste=function(m,E){var W={text:m,event:E};this.commands.exec("paste",this,W)},x.prototype.$handlePaste=function(m){typeof m=="string"&&(m={text:m}),this._signal("paste",m);var E=m.text,W=E===I.lineMode,U=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)W?U.insert({row:this.selection.lead.row,column:0},E):this.insert(E);else if(W)this.selection.rangeList.ranges.forEach(function(he){U.insert({row:he.start.row,column:0},E)});else{var q=E.split(/\r\n|\r|\n/),Q=this.selection.rangeList.ranges,te=q.length==2&&(!q[0]||!q[1]);if(q.length!=Q.length||te)return this.commands.exec("insertstring",this,E);for(var ce=Q.length;ce--;){var ne=Q[ce];ne.isEmpty()||U.remove(ne),U.insert(ne.start,q[ce])}}},x.prototype.execCommand=function(m,E){return this.commands.exec(m,this,E)},x.prototype.insert=function(m,E){var W=this.session,U=W.getMode(),q=this.getCursorPosition();if(this.getBehavioursEnabled()&&!E){var Q=U.transformAction(W.getState(q.row),"insertion",this,W,m);Q&&(m!==Q.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),m=Q.text)}if(m==" "&&(m=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&m.indexOf(`
|
|
205
|
+
`)==-1){var te=a.fromPoints(q,q);te.end.column+=m.length,this.session.remove(te)}}else{var te=this.getSelectionRange();q=this.session.remove(te),this.clearSelection()}if(m==`
|
|
206
|
+
`||m==`\r
|
|
207
|
+
`){var ue=W.getLine(q.row);if(q.column>ue.search(/\S|$/)){var ce=ue.substr(q.column).search(/\S|$/);W.doc.removeInLine(q.row,q.column,q.column+ce)}}this.clearSelection();var ne=q.column,he=W.getState(q.row),ue=W.getLine(q.row),le=U.checkOutdent(he,ue,m);if(W.insert(q,m),Q&&Q.selection&&(Q.selection.length==2?this.selection.setSelectionRange(new a(q.row,ne+Q.selection[0],q.row,ne+Q.selection[1])):this.selection.setSelectionRange(new a(q.row+Q.selection[0],Q.selection[1],q.row+Q.selection[2],Q.selection[3]))),this.$enableAutoIndent){if(W.getDocument().isNewLine(m)){var me=U.getNextLineIndent(he,ue.slice(0,q.column),W.getTabString());W.insert({row:q.row+1,column:0},me)}le&&U.autoOutdent(he,W,q.row)}},x.prototype.autoIndent=function(){for(var m=this.session,E=m.getMode(),W=this.selection.isEmpty()?[new a(0,0,m.doc.getLength()-1,0)]:this.selection.getAllRanges(),U="",q="",Q="",te=m.getTabString(),ce=0;ce<W.length;ce++)for(var ne=W[ce].start.row,he=W[ce].end.row,ue=ne;ue<=he;ue++){ue>0&&(U=m.getState(ue-1),q=m.getLine(ue-1),Q=E.getNextLineIndent(U,q,te));var le=m.getLine(ue),me=E.$getIndent(le);if(Q!==me){if(me.length>0){var Se=new a(ue,0,ue,me.length);m.remove(Se)}Q.length>0&&m.insert({row:ue,column:0},Q)}E.autoOutdent(U,m,ue)}},x.prototype.onTextInput=function(m,E){if(!E)return this.keyBinding.onTextInput(m);this.startOperation({command:{name:"insertstring"}});var W=this.applyComposition.bind(this,m,E);this.selection.rangeCount?this.forEachSelection(W):W(),this.endOperation()},x.prototype.applyComposition=function(m,E){if(E.extendLeft||E.extendRight){var W=this.selection.getRange();W.start.column-=E.extendLeft,W.end.column+=E.extendRight,W.start.column<0&&(W.start.row--,W.start.column+=this.session.getLine(W.start.row).length+1),this.selection.setRange(W),!m&&!W.isEmpty()&&this.remove()}if((m||!this.selection.isEmpty())&&this.insert(m,!0),E.restoreStart||E.restoreEnd){var W=this.selection.getRange();W.start.column-=E.restoreStart,W.end.column-=E.restoreEnd,this.selection.setRange(W)}},x.prototype.onCommandKey=function(m,E,W){return this.keyBinding.onCommandKey(m,E,W)},x.prototype.setOverwrite=function(m){this.session.setOverwrite(m)},x.prototype.getOverwrite=function(){return this.session.getOverwrite()},x.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},x.prototype.setScrollSpeed=function(m){this.setOption("scrollSpeed",m)},x.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},x.prototype.setDragDelay=function(m){this.setOption("dragDelay",m)},x.prototype.getDragDelay=function(){return this.getOption("dragDelay")},x.prototype.setSelectionStyle=function(m){this.setOption("selectionStyle",m)},x.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},x.prototype.setHighlightActiveLine=function(m){this.setOption("highlightActiveLine",m)},x.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},x.prototype.setHighlightGutterLine=function(m){this.setOption("highlightGutterLine",m)},x.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},x.prototype.setHighlightSelectedWord=function(m){this.setOption("highlightSelectedWord",m)},x.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},x.prototype.setAnimatedScroll=function(m){this.renderer.setAnimatedScroll(m)},x.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},x.prototype.setShowInvisibles=function(m){this.renderer.setShowInvisibles(m)},x.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},x.prototype.setDisplayIndentGuides=function(m){this.renderer.setDisplayIndentGuides(m)},x.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},x.prototype.setHighlightIndentGuides=function(m){this.renderer.setHighlightIndentGuides(m)},x.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},x.prototype.setShowPrintMargin=function(m){this.renderer.setShowPrintMargin(m)},x.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},x.prototype.setPrintMarginColumn=function(m){this.renderer.setPrintMarginColumn(m)},x.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},x.prototype.setReadOnly=function(m){this.setOption("readOnly",m)},x.prototype.getReadOnly=function(){return this.getOption("readOnly")},x.prototype.setBehavioursEnabled=function(m){this.setOption("behavioursEnabled",m)},x.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},x.prototype.setWrapBehavioursEnabled=function(m){this.setOption("wrapBehavioursEnabled",m)},x.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},x.prototype.setShowFoldWidgets=function(m){this.setOption("showFoldWidgets",m)},x.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},x.prototype.setFadeFoldWidgets=function(m){this.setOption("fadeFoldWidgets",m)},x.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},x.prototype.remove=function(m){this.selection.isEmpty()&&(m=="left"?this.selection.selectLeft():this.selection.selectRight());var E=this.getSelectionRange();if(this.getBehavioursEnabled()){var W=this.session,U=W.getState(E.start.row),q=W.getMode().transformAction(U,"deletion",this,W,E);if(E.end.column===0){var Q=W.getTextRange(E);if(Q[Q.length-1]==`
|
|
208
|
+
`){var te=W.getLine(E.end.row);/^\s+$/.test(te)&&(E.end.column=te.length)}}q&&(E=q)}this.session.remove(E),this.clearSelection()},x.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},x.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},x.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},x.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var m=this.getSelectionRange();m.start.column==m.end.column&&m.start.row==m.end.row&&(m.end.column=0,m.end.row++),this.session.remove(m),this.clearSelection()},x.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var m=this.getCursorPosition();this.insert(`
|
|
209
|
+
`),this.moveCursorToPosition(m)},x.prototype.setGhostText=function(m,E){this.renderer.setGhostText(m,E)},x.prototype.removeGhostText=function(){this.renderer.removeGhostText()},x.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var m=this.getCursorPosition(),E=m.column;if(E!==0){var W=this.session.getLine(m.row),U,q;E<W.length?(U=W.charAt(E)+W.charAt(E-1),q=new a(m.row,E-1,m.row,E+1)):(U=W.charAt(E-1)+W.charAt(E-2),q=new a(m.row,E-2,m.row,E)),this.session.replace(q,U),this.session.selection.moveToPosition(q.end)}}},x.prototype.toLowerCase=function(){var m=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),W=this.session.getTextRange(E);this.session.replace(E,W.toLowerCase()),this.selection.setSelectionRange(m)},x.prototype.toUpperCase=function(){var m=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var E=this.getSelectionRange(),W=this.session.getTextRange(E);this.session.replace(E,W.toUpperCase()),this.selection.setSelectionRange(m)},x.prototype.indent=function(){var m=this.session,E=this.getSelectionRange();if(E.start.row<E.end.row){var W=this.$getSelectedRows();m.indentRows(W.first,W.last," ");return}else if(E.start.column<E.end.column){var U=m.getTextRange(E);if(!/^\s+$/.test(U)){var W=this.$getSelectedRows();m.indentRows(W.first,W.last," ");return}}var q=m.getLine(E.start.row),Q=E.start,te=m.getTabSize(),ce=m.documentToScreenColumn(Q.row,Q.column);if(this.session.getUseSoftTabs())var ne=te-ce%te,he=u.stringRepeat(" ",ne);else{for(var ne=ce%te;q[E.start.column-1]==" "&≠)E.start.column--,ne--;this.selection.setSelectionRange(E),he=" "}return this.insert(he)},x.prototype.blockIndent=function(){var m=this.$getSelectedRows();this.session.indentRows(m.first,m.last," ")},x.prototype.blockOutdent=function(){var m=this.session.getSelection();this.session.outdentRows(m.getRange())},x.prototype.sortLines=function(){for(var m=this.$getSelectedRows(),E=this.session,W=[],U=m.first;U<=m.last;U++)W.push(E.getLine(U));W.sort(function(te,ce){return te.toLowerCase()<ce.toLowerCase()?-1:te.toLowerCase()>ce.toLowerCase()?1:0});for(var q=new a(0,0,0,0),U=m.first;U<=m.last;U++){var Q=E.getLine(U);q.start.row=U,q.end.row=U,q.end.column=Q.length,E.replace(q,W[U-m.first])}},x.prototype.toggleCommentLines=function(){var m=this.session.getState(this.getCursorPosition().row),E=this.$getSelectedRows();this.session.getMode().toggleCommentLines(m,this.session,E.first,E.last)},x.prototype.toggleBlockComment=function(){var m=this.getCursorPosition(),E=this.session.getState(m.row),W=this.getSelectionRange();this.session.getMode().toggleBlockComment(E,this.session,W,m)},x.prototype.getNumberAt=function(m,E){var W=/[\-]?[0-9]+(?:\.[0-9]+)?/g;W.lastIndex=0;for(var U=this.session.getLine(m);W.lastIndex<E;){var q=W.exec(U);if(q.index<=E&&q.index+q[0].length>=E){var Q={value:q[0],start:q.index,end:q.index+q[0].length};return Q}}return null},x.prototype.modifyNumber=function(m){var E=this.selection.getCursor().row,W=this.selection.getCursor().column,U=new a(E,W-1,E,W),q=this.session.getTextRange(U);if(!isNaN(parseFloat(q))&&isFinite(q)){var Q=this.getNumberAt(E,W);if(Q){var te=Q.value.indexOf(".")>=0?Q.start+Q.value.indexOf(".")+1:Q.end,ce=Q.start+Q.value.length-te,ne=parseFloat(Q.value);ne*=Math.pow(10,ce),te!==Q.end&&W<te?m*=Math.pow(10,Q.end-W-1):m*=Math.pow(10,Q.end-W),ne+=m,ne/=Math.pow(10,ce);var he=ne.toFixed(ce),ue=new a(E,Q.start,E,Q.end);this.session.replace(ue,he),this.moveCursorTo(E,Math.max(Q.start+1,W+he.length-Q.value.length))}}else this.toggleWord()},x.prototype.toggleWord=function(){var m=this.selection.getCursor().row,E=this.selection.getCursor().column;this.selection.selectWord();var W=this.getSelectedText(),U=this.selection.getWordRange().start.column,q=W.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Q=E-U-1;Q<0&&(Q=0);var te=0,ce=0,ne=this;W.match(/[A-Za-z0-9_]+/)&&q.forEach(function(Ue,nt){ce=te+Ue.length,Q>=te&&Q<=ce&&(W=Ue,ne.selection.clearSelection(),ne.moveCursorTo(m,te+U),ne.selection.selectTo(m,ce+U)),te=ce});for(var he=this.$toggleWordPairs,ue,le=0;le<he.length;le++)for(var me=he[le],Se=0;Se<=1;Se++){var _e=+!Se,Ae=W.match(new RegExp("^\\s?_?("+u.escapeRegExp(me[Se])+")\\s?$","i"));if(Ae){var qe=W.match(new RegExp("([_]|^|\\s)("+u.escapeRegExp(Ae[1])+")($|\\s)","g"));qe&&(ue=W.replace(new RegExp(u.escapeRegExp(me[Se]),"i"),function(Ue){var nt=me[_e];return Ue.toUpperCase()==Ue?nt=nt.toUpperCase():Ue.charAt(0).toUpperCase()==Ue.charAt(0)&&(nt=nt.substr(0,0)+me[_e].charAt(0).toUpperCase()+nt.substr(1)),nt}),this.insert(ue),ue="")}}},x.prototype.findLinkAt=function(m,E){var W,U,q=this.session.getLine(m),Q=q.split(/((?:https?|ftp):\/\/[\S]+)/),te=E;te<0&&(te=0);var ce=0,ne=0,he;try{for(var ue=R(Q),le=ue.next();!le.done;le=ue.next()){var me=le.value;if(ne=ce+me.length,te>=ce&&te<=ne&&me.match(/((?:https?|ftp):\/\/[\S]+)/)){he=me.replace(/[\s:.,'";}\]]+$/,"");break}ce=ne}}catch(Se){W={error:Se}}finally{try{le&&!le.done&&(U=ue.return)&&U.call(ue)}finally{if(W)throw W.error}}return he},x.prototype.openLink=function(){var m=this.selection.getCursor(),E=this.findLinkAt(m.row,m.column);return E&&window.open(E,"_blank"),E!=null},x.prototype.removeLines=function(){var m=this.$getSelectedRows();this.session.removeFullLines(m.first,m.last),this.clearSelection()},x.prototype.duplicateSelection=function(){var m=this.selection,E=this.session,W=m.getRange(),U=m.isBackwards();if(W.isEmpty()){var q=W.start.row;E.duplicateLines(q,q)}else{var Q=U?W.start:W.end,te=E.insert(Q,E.getTextRange(W));W.start=Q,W.end=te,m.setSelectionRange(W,U)}},x.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},x.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},x.prototype.moveText=function(m,E,W){return this.session.moveText(m,E,W)},x.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},x.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},x.prototype.$moveLines=function(m,E){var W,U,q=this.selection;if(!q.inMultiSelectMode||this.inVirtualSelectionMode){var Q=q.toOrientedRange();W=this.$getSelectedRows(Q),U=this.session.$moveLines(W.first,W.last,E?0:m),E&&m==-1&&(U=0),Q.moveBy(U,0),q.fromOrientedRange(Q)}else{var te=q.rangeList.ranges;q.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var ce=0,ne=0,he=te.length,ue=0;ue<he;ue++){var le=ue;te[ue].moveBy(ce,0),W=this.$getSelectedRows(te[ue]);for(var me=W.first,Se=W.last;++ue<he;){ne&&te[ue].moveBy(ne,0);var _e=this.$getSelectedRows(te[ue]);if(E&&_e.first!=Se)break;if(!E&&_e.first>Se+1)break;Se=_e.last}for(ue--,ce=this.session.$moveLines(me,Se,E?0:m),E&&m==-1&&(le=ue+1);le<=ue;)te[le].moveBy(ce,0),le++;E||(ce=0),ne+=ce}q.fromOrientedRange(q.ranges[0]),q.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},x.prototype.$getSelectedRows=function(m){return m=(m||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(m.start.row),last:this.session.getRowFoldEnd(m.end.row)}},x.prototype.onCompositionStart=function(m){this.renderer.showComposition(m)},x.prototype.onCompositionUpdate=function(m){this.renderer.setCompositionText(m)},x.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},x.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},x.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},x.prototype.isRowVisible=function(m){return m>=this.getFirstVisibleRow()&&m<=this.getLastVisibleRow()},x.prototype.isRowFullyVisible=function(m){return m>=this.renderer.getFirstFullyVisibleRow()&&m<=this.renderer.getLastFullyVisibleRow()},x.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},x.prototype.$moveByPage=function(m,E){var W=this.renderer,U=this.renderer.layerConfig,q=m*Math.floor(U.height/U.lineHeight);E===!0?this.selection.$moveSelection(function(){this.moveCursorBy(q,0)}):E===!1&&(this.selection.moveCursorBy(q,0),this.selection.clearSelection());var Q=W.scrollTop;W.scrollBy(0,q*U.lineHeight),E!=null&&W.scrollCursorIntoView(null,.5),W.animateScrolling(Q)},x.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},x.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},x.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},x.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},x.prototype.scrollPageDown=function(){this.$moveByPage(1)},x.prototype.scrollPageUp=function(){this.$moveByPage(-1)},x.prototype.scrollToRow=function(m){this.renderer.scrollToRow(m)},x.prototype.scrollToLine=function(m,E,W,U){this.renderer.scrollToLine(m,E,W,U)},x.prototype.centerSelection=function(){var m=this.getSelectionRange(),E={row:Math.floor(m.start.row+(m.end.row-m.start.row)/2),column:Math.floor(m.start.column+(m.end.column-m.start.column)/2)};this.renderer.alignCursor(E,.5)},x.prototype.getCursorPosition=function(){return this.selection.getCursor()},x.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},x.prototype.getSelectionRange=function(){return this.selection.getRange()},x.prototype.selectAll=function(){this.selection.selectAll()},x.prototype.clearSelection=function(){this.selection.clearSelection()},x.prototype.moveCursorTo=function(m,E){this.selection.moveCursorTo(m,E)},x.prototype.moveCursorToPosition=function(m){this.selection.moveCursorToPosition(m)},x.prototype.jumpToMatching=function(m,E){var W=this.getCursorPosition(),U=new y(this.session,W.row,W.column),q=U.getCurrentToken(),Q=0;q&&q.type.indexOf("tag-name")!==-1&&(q=U.stepBackward());var te=q||U.stepForward();if(te){var ce,ne=!1,he={},ue=W.column-te.start,le,me={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(te.value.match(/[{}()\[\]]/g)){for(;ue<te.value.length&&!ne;ue++)if(me[te.value[ue]])switch(le=me[te.value[ue]]+"."+te.type.replace("rparen","lparen"),isNaN(he[le])&&(he[le]=0),te.value[ue]){case"(":case"[":case"{":he[le]++;break;case")":case"]":case"}":he[le]--,he[le]===-1&&(ce="bracket",ne=!0);break}}else te.type.indexOf("tag-name")!==-1&&(isNaN(he[te.value])&&(he[te.value]=0),q.value==="<"&&Q>1?he[te.value]++:q.value==="</"&&he[te.value]--,he[te.value]===-1&&(ce="tag",ne=!0));ne||(q=te,Q++,te=U.stepForward(),ue=0)}while(te&&!ne);if(ce){var Se,_e;if(ce==="bracket")Se=this.session.getBracketRange(W),Se||(Se=new a(U.getCurrentTokenRow(),U.getCurrentTokenColumn()+ue-1,U.getCurrentTokenRow(),U.getCurrentTokenColumn()+ue-1),_e=Se.start,(E||_e.row===W.row&&Math.abs(_e.column-W.column)<2)&&(Se=this.session.getBracketRange(_e)));else if(ce==="tag"){if(!te||te.type.indexOf("tag-name")===-1)return;if(Se=new a(U.getCurrentTokenRow(),U.getCurrentTokenColumn()-2,U.getCurrentTokenRow(),U.getCurrentTokenColumn()-2),Se.compare(W.row,W.column)===0){var Ae=this.session.getMatchingTags(W);Ae&&(Ae.openTag.contains(W.row,W.column)?(Se=Ae.closeTag,_e=Se.start):(Se=Ae.openTag,Ae.closeTag.start.row===W.row&&Ae.closeTag.start.column===W.column?_e=Se.end:_e=Se.start))}_e=_e||Se.start}_e=Se&&Se.cursor||_e,_e&&(m?Se&&E?this.selection.setRange(Se):Se&&Se.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(_e.row,_e.column):this.selection.moveTo(_e.row,_e.column))}}},x.prototype.gotoLine=function(m,E,W){this.selection.clearSelection(),this.session.unfold({row:m-1,column:E||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(m-1,E||0),this.isRowFullyVisible(m-1)||this.scrollToLine(m-1,!0,W)},x.prototype.navigateTo=function(m,E){this.selection.moveTo(m,E)},x.prototype.navigateUp=function(m){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(-m||-1,0)},x.prototype.navigateDown=function(m){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var E=this.selection.anchor.getPosition();return this.moveCursorToPosition(E)}this.selection.clearSelection(),this.selection.moveCursorBy(m||1,0)},x.prototype.navigateLeft=function(m){if(this.selection.isEmpty())for(m=m||1;m--;)this.selection.moveCursorLeft();else{var E=this.getSelectionRange().start;this.moveCursorToPosition(E)}this.clearSelection()},x.prototype.navigateRight=function(m){if(this.selection.isEmpty())for(m=m||1;m--;)this.selection.moveCursorRight();else{var E=this.getSelectionRange().end;this.moveCursorToPosition(E)}this.clearSelection()},x.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},x.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},x.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},x.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},x.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},x.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},x.prototype.replace=function(m,E){E&&this.$search.set(E);var W=this.$search.find(this.session),U=0;return W&&(this.$tryReplace(W,m)&&(U=1),this.selection.setSelectionRange(W),this.renderer.scrollSelectionIntoView(W.start,W.end)),U},x.prototype.replaceAll=function(m,E){E&&this.$search.set(E);var W=this.$search.findAll(this.session),U=0;if(!W.length)return U;var q=this.getSelectionRange();this.selection.moveTo(0,0);for(var Q=W.length-1;Q>=0;--Q)this.$tryReplace(W[Q],m)&&U++;return this.selection.setSelectionRange(q),U},x.prototype.$tryReplace=function(m,E){var W=this.session.getTextRange(m);return E=this.$search.replace(W,E),E!==null?(m.end=this.session.replace(m,E),m):null},x.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},x.prototype.find=function(m,E,W){E||(E={}),typeof m=="string"||m instanceof RegExp?E.needle=m:typeof m=="object"&&_.mixin(E,m);var U=this.selection.getRange();E.needle==null&&(m=this.session.getTextRange(U)||this.$search.$options.needle,m||(U=this.session.getWordRange(U.start.row,U.start.column),m=this.session.getTextRange(U)),this.$search.set({needle:m})),this.$search.set(E),E.start||this.$search.set({start:U});var q=this.$search.find(this.session);if(E.preventScroll)return q;if(q)return this.revealRange(q,W),q;E.backwards?U.start=U.end:U.end=U.start,this.selection.setRange(U)},x.prototype.findNext=function(m,E){this.find({skipCurrent:!0,backwards:!1},m,E)},x.prototype.findPrevious=function(m,E){this.find(m,{skipCurrent:!0,backwards:!0},E)},x.prototype.revealRange=function(m,E){this.session.unfold(m),this.selection.setSelectionRange(m);var W=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(m.start,m.end,.5),E!==!1&&this.renderer.animateScrolling(W)},x.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},x.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},x.prototype.destroy=function(){this.destroyed=!0,this.$toDestroy&&(this.$toDestroy.forEach(function(m){m.destroy()}),this.$toDestroy=[]),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},x.prototype.setAutoScrollEditorIntoView=function(m){if(m){var E,W=this,U=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var q=this.$scrollAnchor;q.style.cssText="position:absolute",this.container.insertBefore(q,this.container.firstChild);var Q=this.on("changeSelection",function(){U=!0}),te=this.renderer.on("beforeRender",function(){U&&(E=W.renderer.container.getBoundingClientRect())}),ce=this.renderer.on("afterRender",function(){if(U&&E&&(W.isFocused()||W.searchBox&&W.searchBox.isFocused())){var ne=W.renderer,he=ne.$cursorLayer.$pixelPos,ue=ne.layerConfig,le=he.top-ue.offset;he.top>=0&&le+E.top<0?U=!0:he.top<ue.height&&he.top+E.top+ue.lineHeight>window.innerHeight?U=!1:U=null,U!=null&&(q.style.top=le+"px",q.style.left=he.left+"px",q.style.height=ue.lineHeight+"px",q.scrollIntoView(U)),U=E=null}});this.setAutoScrollEditorIntoView=function(ne){ne||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Q),this.renderer.off("afterRender",ce),this.renderer.off("beforeRender",te))}}},x.prototype.$resetCursorStyle=function(){var m=this.$cursorStyle||"ace",E=this.renderer.$cursorLayer;E&&(E.setSmoothBlinking(/smooth/.test(m)),E.isBlinking=!this.$readOnly&&m!="wide",S.setCssClass(E.element,"ace_slim-cursors",/slim/.test(m)))},x.prototype.prompt=function(m,E,W){var U=this;C.loadModule("ace/ext/prompt",function(q){q.prompt(U,m,E,W)})},Object.defineProperty(x.prototype,"hoverTooltip",{get:function(){return this.$hoverTooltip||(this.$hoverTooltip=new H(this.container))},set:function(m){this.$hoverTooltip&&this.$hoverTooltip.destroy(),this.$hoverTooltip=m},enumerable:!1,configurable:!0}),x})();D.$uid=0,D.prototype.curOp=null,D.prototype.prevOp={},D.prototype.$mergeableCommands=["backspace","del","insertstring"],D.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],_.implement(D.prototype,d),C.defineOptions(D.prototype,"editor",{selectionStyle:{set:function(x){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:x})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(x){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(x){var m=this;if(this.textInput.setReadOnly(x),!this.destroyed){this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(W){var U=!1;if(W&&W.type=="keydown"){if(W&&W.key&&!W.ctrlKey&&!W.metaKey&&(W.key==" "&&W.preventDefault(),U=W.key.length==1),!U)return}else W&&W.type!=="exec"&&(U=!0);if(U){var q=S.createElement("div");q.textContent=$("editor.tooltip.disable-editing","Editing is disabled"),m.hoverTooltip.isOpen||m.hoverTooltip.showForRange(m,m.getSelectionRange(),q)}else m.hoverTooltip&&m.hoverTooltip.isOpen&&m.hoverTooltip.hide()});var E=this.textInput.getElement();x?(A.addListener(E,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(A.removeListener(E,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback))}},initialValue:!1},copyWithEmptySelection:{set:function(x){this.textInput.setCopyWithEmptySelection(x)},initialValue:!1},cursorStyle:{set:function(x){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(x){this.setAutoScrollEditorIntoView(x)}},keyboardHandler:{set:function(x){this.setKeyboardHandler(x)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(x){this.session.setValue(x)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(x){this.setSession(x)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(x){this.renderer.$gutterLayer.setShowLineNumbers(x),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),x&&this.$relativeLineNumbers?T.attach(this):T.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(x){this.$showLineNumbers&&x?T.attach(this):T.detach(this)}},placeholder:{set:function(x){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var m=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(m&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),S.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!m&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),S.addCssClass(this.container,"ace_hasPlaceholder");var E=S.createElement("div");E.className="ace_placeholder",E.textContent=this.$placeholder||"",this.renderer.placeholderNode=E,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!m&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(x){var m={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(U){U.blur(),U.renderer.scroller.focus()},readOnly:!0},E=function(U){if(U.target==this.renderer.scroller&&U.keyCode===M.enter){U.preventDefault();var q=this.getCursorPosition().row;this.isRowVisible(q)||this.scrollToLine(q,!0,!0),this.focus()}},W;x?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(h.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",$("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",$("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",E.bind(this)),this.commands.addCommand(m),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",$("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",$("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),W||(W=new p(this)),W.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",E.bind(this)),this.commands.removeCommand(m),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),W&&W.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(x){this.$textInputAriaLabel=x},initialValue:""},enableMobileMenu:{set:function(x){this.$enableMobileMenu=x},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var T={getText:function(x,m){return(Math.abs(x.selection.lead.row-m)||m+1+(m<9?"·":""))+""},getWidth:function(x,m,E){return Math.max(m.toString().length,(E.lastRow+1).toString().length,2)*E.characterWidth},update:function(x,m){m.renderer.$loop.schedule(m.renderer.CHANGE_GUTTER)},attach:function(x){x.renderer.$gutterLayer.$renderer=this,x.on("changeSelection",this.update),this.update(null,x)},detach:function(x){x.renderer.$gutterLayer.$renderer==this&&(x.renderer.$gutterLayer.$renderer=null),x.off("changeSelection",this.update),this.update(null,x)}};b.Editor=D}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(f,b,z){var R=f("../lib/dom"),_=(function(){function S(u,h){this.element=u,this.canvasHeight=h||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return S.prototype.moveContainer=function(u){R.translate(this.element,0,-(u.firstRowScreen*u.lineHeight%this.canvasHeight)-u.offset*this.$offsetCoefficient)},S.prototype.pageChanged=function(u,h){return Math.floor(u.firstRowScreen*u.lineHeight/this.canvasHeight)!==Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)},S.prototype.computeLineTop=function(u,h,s){var o=h.firstRowScreen*h.lineHeight,i=Math.floor(o/this.canvasHeight),r=s.documentToScreenRow(u,0)*h.lineHeight;return r-i*this.canvasHeight},S.prototype.computeLineHeight=function(u,h,s){return h.lineHeight*s.getRowLineCount(u)},S.prototype.getLength=function(){return this.cells.length},S.prototype.get=function(u){return this.cells[u]},S.prototype.shift=function(){this.$cacheCell(this.cells.shift())},S.prototype.pop=function(){this.$cacheCell(this.cells.pop())},S.prototype.push=function(u){if(Array.isArray(u)){this.cells.push.apply(this.cells,u);for(var h=R.createFragment(this.element),s=0;s<u.length;s++)h.appendChild(u[s].element);this.element.appendChild(h)}else this.cells.push(u),this.element.appendChild(u.element)},S.prototype.unshift=function(u){if(Array.isArray(u)){this.cells.unshift.apply(this.cells,u);for(var h=R.createFragment(this.element),s=0;s<u.length;s++)h.appendChild(u[s].element);this.element.firstChild?this.element.insertBefore(h,this.element.firstChild):this.element.appendChild(h)}else this.cells.unshift(u),this.element.insertAdjacentElement("afterbegin",u.element)},S.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},S.prototype.$cacheCell=function(u){u&&(u.element.remove(),this.cellCache.push(u))},S.prototype.createCell=function(u,h,s,o){var i=this.cellCache.pop();if(!i){var r=R.createElement("div");o&&o(r),this.element.appendChild(r),i={element:r,text:"",row:u}}return i.row=u,i},S})();b.Lines=_}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(f,b,z){var R=f("../lib/dom"),_=f("../lib/oop"),S=f("../lib/lang"),u=f("../lib/event_emitter").EventEmitter,h=f("./lines").Lines,s=f("../config").nls,o=(function(){function r(t){this.$showCursorMarker=null,this.element=R.createElement("div"),this.element.className="ace_layer ace_gutter-layer",t.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new h(this.element),this.$lines.$offsetCoefficient=1}return r.prototype.setSession=function(t){this.session&&this.session.off("change",this.$updateAnnotations),this.session=t,t&&t.on("change",this.$updateAnnotations)},r.prototype.addGutterDecoration=function(t,n){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(t,n)},r.prototype.removeGutterDecoration=function(t,n){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(t,n)},r.prototype.setAnnotations=function(t){this.$annotations=[];for(var n=0;n<t.length;n++){var a=t[n],d=a.row,g=this.$annotations[d];g||(g=this.$annotations[d]={text:[],type:[],displayText:[]});var L=a.text,C=a.text,y=a.type;L=L?S.escapeHTML(L):a.html||"",C=C||a.html||"",g.text.indexOf(L)===-1&&(g.text.push(L),g.type.push(y),g.displayText.push(C));var p=a.className;p?g.className=p:y==="error"?g.className=" ace_error":y==="security"&&!/\bace_error\b/.test(g.className)?g.className=" ace_security":y==="warning"&&!/\bace_(error|security)\b/.test(g.className)?g.className=" ace_warning":y==="info"&&!g.className?g.className=" ace_info":y==="hint"&&!g.className&&(g.className=" ace_hint")}},r.prototype.$updateAnnotations=function(t){if(this.$annotations.length){var n=t.start.row,a=t.end.row-n;if(a!==0)if(t.action=="remove")this.$annotations.splice(n,a+1,null);else{var d=new Array(a+1);d.unshift(n,1),this.$annotations.splice.apply(this.$annotations,d)}}},r.prototype.update=function(t){this.config=t;var n=this.session,a=t.firstRow,d=Math.min(t.lastRow+t.gutterOffset,n.getLength()-1);this.oldLastRow=d,this.config=t,this.$lines.moveContainer(t),this.$updateCursorRow();for(var g=n.getNextFoldLine(a),L=g?g.start.row:1/0,C=null,y=-1,p=a;;){if(p>L&&(p=g.end.row+1,g=n.getNextFoldLine(p,g),L=g?g.start.row:1/0),p>d){for(;this.$lines.getLength()>y+1;)this.$lines.pop();break}C=this.$lines.get(++y),C?C.row=p:(C=this.$lines.createCell(p,t,this.session,i),this.$lines.push(C)),this.$renderCell(C,t,g,p),p++}this._signal("afterRender"),this.$updateGutterWidth(t),this.$showCursorMarker&&this.$highlightGutterLine&&this.$updateCursorMarker()},r.prototype.$updateGutterWidth=function(t){var n=this.session,a=n.gutterRenderer||this.$renderer,d=n.$firstLineNumber,g=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||n.$useWrapMode)&&(g=n.getLength()+d-1);var L=a?a.getWidth(n,g,t):g.toString().length*t.characterWidth,C=this.$padding||this.$computePadding();L+=C.left+C.right,L!==this.gutterWidth&&!isNaN(L)&&(this.gutterWidth=L,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",L))},r.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var t=this.session.selection.getCursor();this.$cursorRow!==t.row&&(this.$cursorRow=t.row)}},r.prototype.updateLineHighlight=function(){if(this.$showCursorMarker&&this.$updateCursorMarker(),!!this.$highlightGutterLine){var t=this.session.selection.cursor.row;if(this.$cursorRow=t,!(this.$cursorCell&&this.$cursorCell.row==t)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var n=this.$lines.cells;this.$cursorCell=null;for(var a=0;a<n.length;a++){var d=n[a];if(d.row>=this.$cursorRow){if(d.row>this.$cursorRow){var g=this.session.getFoldLine(this.$cursorRow);if(a>0&&g&&g.start.row==n[a-1].row)d=n[a-1];else break}d.element.className="ace_gutter-active-line "+d.element.className,this.$cursorCell=d;break}}}}},r.prototype.$updateCursorMarker=function(){if(this.session){var t=this.session;this.$highlightElement||(this.$highlightElement=R.createElement("div"),this.$highlightElement.className="ace_gutter-cursor",this.$highlightElement.style.pointerEvents="none",this.element.appendChild(this.$highlightElement));var n=t.selection.cursor,a=this.config,d=this.$lines,g=a.firstRowScreen*a.lineHeight,L=Math.floor(g/d.canvasHeight),C=t.documentToScreenRow(n)*a.lineHeight,y=C-L*d.canvasHeight;R.setStyle(this.$highlightElement.style,"height",a.lineHeight+"px"),R.setStyle(this.$highlightElement.style,"top",y+"px")}},r.prototype.scrollLines=function(t){var n=this.config;if(this.config=t,this.$updateCursorRow(),this.$lines.pageChanged(n,t))return this.update(t);this.$lines.moveContainer(t);var a=Math.min(t.lastRow+t.gutterOffset,this.session.getLength()-1),d=this.oldLastRow;if(this.oldLastRow=a,!n||d<t.firstRow)return this.update(t);if(a<n.firstRow)return this.update(t);if(n.firstRow<t.firstRow)for(var g=this.session.getFoldedRowCount(n.firstRow,t.firstRow-1);g>0;g--)this.$lines.shift();if(d>a)for(var g=this.session.getFoldedRowCount(a+1,d);g>0;g--)this.$lines.pop();t.firstRow<n.firstRow&&this.$lines.unshift(this.$renderLines(t,t.firstRow,n.firstRow-1)),a>d&&this.$lines.push(this.$renderLines(t,d+1,a)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(t)},r.prototype.$renderLines=function(t,n,a){for(var d=[],g=n,L=this.session.getNextFoldLine(g),C=L?L.start.row:1/0;g>C&&(g=L.end.row+1,L=this.session.getNextFoldLine(g,L),C=L?L.start.row:1/0),!(g>a);){var y=this.$lines.createCell(g,t,this.session,i);this.$renderCell(y,t,L,g),d.push(y),g++}return d},r.prototype.$renderCell=function(t,n,a,d){var g=t.element,L=this.session,C=g.childNodes[0],y=g.childNodes[1],p=g.childNodes[2],$=g.childNodes[3],I=p.firstChild,M=L.$firstLineNumber,A=L.$breakpoints,H=L.$decorations,D=L.gutterRenderer||this.$renderer,T=this.$showFoldWidgets&&L.foldWidgets,x=a?a.start.row:Number.MAX_VALUE,m=n.lineHeight+"px",E=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",W=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",U=(D?D.getText(L,d):d+M).toString();if(this.$highlightGutterLine&&(d==this.$cursorRow||a&&d<this.$cursorRow&&d>=x&&this.$cursorRow<=a.end.row)&&(E+="ace_gutter-active-line ",this.$cursorCell!=t&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=t)),A[d]&&(E+=A[d]),H[d]&&(E+=H[d]),this.$annotations[d]&&d!==x&&(E+=this.$annotations[d].className),T){var q=T[d];q==null&&(q=T[d]=L.getFoldWidget(d))}if(q){var Q="ace_fold-widget ace_"+q,te=q=="start"&&d==x&&d<a.end.row;if(te){Q+=" ace_closed";for(var ce="",ne=!1,he=d+1;he<=a.end.row;he++)if(this.$annotations[he]){if(this.$annotations[he].className===" ace_error"){ne=!0,ce=" ace_error_fold";break}this.$annotations[he].className===" ace_security"?(ne=!0,ce=" ace_security_fold"):this.$annotations[he].className===" ace_warning"&&ce!==" ace_security_fold"&&(ne=!0,ce=" ace_warning_fold")}E+=ce}else Q+=" ace_open";y.className!=Q&&(y.className=Q),R.setStyle(y.style,"height",m),R.setStyle(y.style,"display","inline-block"),y.setAttribute("role","button"),y.setAttribute("tabindex","-1");var ue=L.getFoldWidgetRange(d);ue?y.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[ue.start.row+1,ue.end.row+1])):a?y.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[a.start.row+1,a.end.row+1])):y.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[d+1])),te?(y.setAttribute("aria-expanded","false"),y.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(y.setAttribute("aria-expanded","true"),y.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else y&&(R.setStyle(y.style,"display","none"),y.setAttribute("tabindex","0"),y.removeAttribute("role"),y.removeAttribute("aria-label"));var le=this.session.$gutterCustomWidgets[d];if(le?this.$addCustomWidget(d,le,t):$&&this.$removeCustomWidget(d,t),ne&&this.$showFoldedAnnotations){p.className="ace_gutter_annotation",I.className=W,I.className+=ce,R.setStyle(I.style,"height",m),R.setStyle(p.style,"display","block"),R.setStyle(p.style,"height",m);var me;switch(ce){case" ace_error_fold":me=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[U]);break;case" ace_security_fold":me=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[U]);break;case" ace_warning_fold":me=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[U]);break}p.setAttribute("aria-label",me),p.setAttribute("tabindex","-1"),p.setAttribute("role","button")}else if(this.$annotations[d]){p.className="ace_gutter_annotation",I.className=W,this.$useSvgGutterIcons?I.className+=this.$annotations[d].className:g.classList.add(this.$annotations[d].className.replace(" ","")),R.setStyle(I.style,"height",m),R.setStyle(p.style,"display","block"),R.setStyle(p.style,"height",m);var me;switch(this.$annotations[d].className){case" ace_error":me=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[U]);break;case" ace_security":me=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[U]);break;case" ace_warning":me=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[U]);break;case" ace_info":me=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[U]);break;case" ace_hint":me=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[U]);break}p.setAttribute("aria-label",me),p.setAttribute("tabindex","-1"),p.setAttribute("role","button")}else R.setStyle(p.style,"display","none"),p.removeAttribute("aria-label"),p.removeAttribute("role"),p.setAttribute("tabindex","0");return U!==C.data&&(C.data=U),g.className!=E&&(g.className=E),R.setStyle(t.element.style,"height",this.$lines.computeLineHeight(d,n,L)+"px"),R.setStyle(t.element.style,"top",this.$lines.computeLineTop(d,n,L)+"px"),t.text=U,p.style.display==="none"&&y.style.display==="none"&&!le?t.element.setAttribute("aria-hidden",!0):t.element.setAttribute("aria-hidden",!1),t},r.prototype.setHighlightGutterLine=function(t){this.$highlightGutterLine=t,!t&&this.$highlightElement&&(this.$highlightElement.remove(),this.$highlightElement=null)},r.prototype.setShowLineNumbers=function(t){this.$renderer=!t&&{getWidth:function(){return 0},getText:function(){return""}}},r.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},r.prototype.setShowFoldWidgets=function(t){t?R.addCssClass(this.element,"ace_folding-enabled"):R.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=t,this.$padding=null},r.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},r.prototype.$hideFoldWidget=function(t,n){var a=n||this.$getGutterCell(t);if(a&&a.element){var d=a.element.childNodes[1];d&&R.setStyle(d.style,"display","none")}},r.prototype.$showFoldWidget=function(t,n){var a=n||this.$getGutterCell(t);if(a&&a.element){var d=a.element.childNodes[1];d&&this.session.foldWidgets&&this.session.foldWidgets[a.row]&&R.setStyle(d.style,"display","inline-block")}},r.prototype.$getGutterCell=function(t){var n=this.$lines.cells,a=0,d=n.length-1;if(!(t<n[0].row||t>n[d].row)){for(;a<=d;){var g=Math.floor((a+d)/2),L=n[g];if(L.row>t)d=g-1;else if(L.row<t)a=g+1;else return L}return L}},r.prototype.$addCustomWidget=function(t,n,a){var d=n.className,g=n.label,L=n.title,C=n.callbacks;this.session.$gutterCustomWidgets[t]={className:d,label:g,title:L,callbacks:C},this.$hideFoldWidget(t,a);var y=a||this.$getGutterCell(t);if(y&&y.element){var p=y.element.querySelector(".ace_custom-widget");p&&p.remove(),p=R.createElement("span"),p.className="ace_custom-widget ".concat(d),p.setAttribute("tabindex","-1"),p.setAttribute("role","button"),p.setAttribute("aria-label",g),p.setAttribute("title",L),R.setStyle(p.style,"display","inline-block"),R.setStyle(p.style,"height","inherit"),C&&C.onClick&&p.addEventListener("click",function($){C.onClick($,t),$.stopPropagation()}),y.element.appendChild(p)}},r.prototype.$removeCustomWidget=function(t,n){delete this.session.$gutterCustomWidgets[t],this.$showFoldWidget(t,n);var a=n||this.$getGutterCell(t);if(a&&a.element){var d=a.element.querySelector(".ace_custom-widget");d&&a.element.removeChild(d)}},r.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var t=R.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(t.borderLeftWidth)||0)+(parseInt(t.paddingLeft)||0)+1,this.$padding.right=(parseInt(t.borderRightWidth)||0)+(parseInt(t.paddingRight)||0),this.$padding},r.prototype.getRegion=function(t){var n=this.$padding||this.$computePadding(),a=this.element.getBoundingClientRect();if(t.x<n.left+a.left)return"markers";if(this.$showFoldWidgets&&t.x>a.right-n.right)return"foldWidgets"},r})();o.prototype.$fixedWidth=!1,o.prototype.$highlightGutterLine=!0,o.prototype.$renderer=void 0,o.prototype.$showLineNumbers=!0,o.prototype.$showFoldWidgets=!0,_.implement(o.prototype,u);function i(r){var t=document.createTextNode("");r.appendChild(t);var n=R.createElement("span");r.appendChild(n);var a=R.createElement("span");r.appendChild(a);var d=R.createElement("span");return a.appendChild(d),r}b.Gutter=o}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(f,b,z){var R=f("../range").Range,_=f("../lib/dom"),S=(function(){function h(s){this.element=_.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return h.prototype.setPadding=function(s){this.$padding=s},h.prototype.setSession=function(s){this.session=s},h.prototype.setMarkers=function(s){this.markers=s},h.prototype.elt=function(s,o){var i=this.i!=-1&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=o,i.className=s},h.prototype.update=function(s){if(s){this.config=s,this.i=0;var o;for(var i in this.markers){var r=this.markers[i];if(!r.range){r.update(o,this,this.session,s);continue}var t=r.range.clipRows(s.firstRow,s.lastRow);if(!t.isEmpty())if(t=t.toScreenRange(this.session),r.renderer){var n=this.$getTop(t.start.row,s),a=this.$padding+t.start.column*s.characterWidth;r.renderer(o,t,a,n,s)}else r.type=="fullLine"?this.drawFullLineMarker(o,t,r.clazz,s):r.type=="screenLine"?this.drawScreenLineMarker(o,t,r.clazz,s):t.isMultiLine()?r.type=="text"?this.drawTextMarker(o,t,r.clazz,s):this.drawMultiLineMarker(o,t,r.clazz,s):this.drawSingleLineMarker(o,t,r.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},h.prototype.$getTop=function(s,o){return(s-o.firstRowScreen)*o.lineHeight},h.prototype.drawTextMarker=function(s,o,i,r,t){for(var n=this.session,a=o.start.row,d=o.end.row,g=a,L=0,C=0,y=n.getScreenLastRowColumn(g),p=new R(g,o.start.column,g,C);g<=d;g++)p.start.row=p.end.row=g,p.start.column=g==a?o.start.column:n.getRowWrapIndent(g),p.end.column=y,L=C,C=y,y=g+1<d?n.getScreenLastRowColumn(g+1):g==d?0:o.end.column,this.drawSingleLineMarker(s,p,i+(g==a?" ace_start":"")+" ace_br"+u(g==a||g==a+1&&o.start.column,L<C,C>y,g==d),r,g==d?0:1,t)},h.prototype.drawMultiLineMarker=function(s,o,i,r,t){var n=this.$padding,a=r.lineHeight,d=this.$getTop(o.start.row,r),g=n+o.start.column*r.characterWidth;if(t=t||"",this.session.$bidiHandler.isBidiRow(o.start.row)){var L=o.clone();L.end.row=L.start.row,L.end.column=this.session.getLine(L.start.row).length,this.drawBidiSingleLineMarker(s,L,i+" ace_br1 ace_start",r,null,t)}else this.elt(i+" ace_br1 ace_start","height:"+a+"px;right:"+n+"px;top:"+d+"px;left:"+g+"px;"+(t||""));if(this.session.$bidiHandler.isBidiRow(o.end.row)){var L=o.clone();L.start.row=L.end.row,L.start.column=0,this.drawBidiSingleLineMarker(s,L,i+" ace_br12",r,null,t)}else{d=this.$getTop(o.end.row,r);var C=o.end.column*r.characterWidth;this.elt(i+" ace_br12","height:"+a+"px;width:"+C+"px;top:"+d+"px;left:"+n+"px;"+(t||""))}if(a=(o.end.row-o.start.row-1)*r.lineHeight,!(a<=0)){d=this.$getTop(o.start.row+1,r);var y=(o.start.column?1:0)|(o.end.column?0:8);this.elt(i+(y?" ace_br"+y:""),"height:"+a+"px;right:"+n+"px;top:"+d+"px;left:"+n+"px;"+(t||""))}},h.prototype.drawSingleLineMarker=function(s,o,i,r,t,n){if(this.session.$bidiHandler.isBidiRow(o.start.row))return this.drawBidiSingleLineMarker(s,o,i,r,t,n);var a=r.lineHeight,d=(o.end.column+(t||0)-o.start.column)*r.characterWidth,g=this.$getTop(o.start.row,r),L=this.$padding+o.start.column*r.characterWidth;this.elt(i,"height:"+a+"px;width:"+d+"px;top:"+g+"px;left:"+L+"px;"+(n||""))},h.prototype.drawBidiSingleLineMarker=function(s,o,i,r,t,n){var a=r.lineHeight,d=this.$getTop(o.start.row,r),g=this.$padding,L=this.session.$bidiHandler.getSelections(o.start.column,o.end.column);L.forEach(function(C){this.elt(i,"height:"+a+"px;width:"+(C.width+(t||0))+"px;top:"+d+"px;left:"+(g+C.left)+"px;"+(n||""))},this)},h.prototype.drawFullLineMarker=function(s,o,i,r,t){var n=this.$getTop(o.start.row,r),a=r.lineHeight;o.start.row!=o.end.row&&(a+=this.$getTop(o.end.row,r)-n),this.elt(i,"height:"+a+"px;top:"+n+"px;left:0;right:0;"+(t||""))},h.prototype.drawScreenLineMarker=function(s,o,i,r,t){var n=this.$getTop(o.start.row,r),a=r.lineHeight;this.elt(i,"height:"+a+"px;top:"+n+"px;left:0;right:0;"+(t||""))},h})();S.prototype.$padding=0;function u(h,s,o,i){return(h?1:0)|(s?2:0)|(o?4:0)|(i?8:0)}b.Marker=S}),ace.define("ace/layer/text_util",["require","exports","module"],function(f,b,z){var R=new Set(["text","rparen","lparen"]);b.isTextToken=function(_){return R.has(_)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(f,b,z){var R=f("../lib/oop"),_=f("../lib/dom"),S=f("../lib/lang"),u=f("./lines").Lines,h=f("../lib/event_emitter").EventEmitter,s=f("../config").nls,o=f("./text_util").isTextToken,i=(function(){function r(t){this.dom=_,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",t.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new u(this.element)}return r.prototype.$updateEolChar=function(){var t=this.session.doc,n=t.getNewLineCharacter()==`
|
|
210
|
+
`&&t.getNewLineMode()!="windows",a=n?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=a)return this.EOL_CHAR=a,!0},r.prototype.setPadding=function(t){this.$padding=t,this.element.style.margin="0 "+t+"px"},r.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},r.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},r.prototype.$setFontMetrics=function(t){this.$fontMetrics=t,this.$fontMetrics.on("changeCharacterSize",(function(n){this._signal("changeCharacterSize",n)}).bind(this)),this.$pollSizeChanges()},r.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},r.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},r.prototype.setSession=function(t){this.session=t,t&&this.$computeTabString()},r.prototype.setShowInvisibles=function(t){return this.showInvisibles==t?!1:(this.showInvisibles=t,typeof t=="string"?(this.showSpaces=/tab/i.test(t),this.showTabs=/space/i.test(t),this.showEOL=/eol/i.test(t)):this.showSpaces=this.showTabs=this.showEOL=t,this.$computeTabString(),!0)},r.prototype.setDisplayIndentGuides=function(t){return this.displayIndentGuides==t?!1:(this.displayIndentGuides=t,this.$computeTabString(),!0)},r.prototype.setHighlightIndentGuides=function(t){return this.$highlightIndentGuides===t?!1:(this.$highlightIndentGuides=t,t)},r.prototype.$computeTabString=function(){var t=this.session.getTabSize();this.tabSize=t;for(var n=this.$tabStrings=[0],a=1;a<t+1;a++)if(this.showTabs){var d=this.dom.createElement("span");d.className="ace_invisible ace_invisible_tab",d.textContent=S.stringRepeat(this.TAB_CHAR,a),n.push(d)}else n.push(this.dom.createTextNode(S.stringRepeat(" ",a),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var g="ace_indent-guide",L=this.showSpaces?" ace_invisible ace_invisible_space":"",C=this.showSpaces?S.stringRepeat(this.SPACE_CHAR,this.tabSize):S.stringRepeat(" ",this.tabSize),y=this.showTabs?" ace_invisible ace_invisible_tab":"",p=this.showTabs?S.stringRepeat(this.TAB_CHAR,this.tabSize):C,d=this.dom.createElement("span");d.className=g+L,d.textContent=C,this.$tabStrings[" "]=d;var d=this.dom.createElement("span");d.className=g+y,d.textContent=p,this.$tabStrings[" "]=d}},r.prototype.updateLines=function(t,n,a){if(this.config.lastRow!=t.lastRow||this.config.firstRow!=t.firstRow)return this.update(t);this.config=t;for(var d=Math.max(n,t.firstRow),g=Math.min(a,t.lastRow),L=this.element.childNodes,C=0,p=t.firstRow;p<d;p++){var $=this.session.getFoldLine(p);if($)if($.containsRow(d)){d=$.start.row;break}else p=$.end.row;C++}for(var y=!1,p=d,$=this.session.getNextFoldLine(p),I=$?$.start.row:1/0;p>I&&(p=$.end.row+1,$=this.session.getNextFoldLine(p,$),I=$?$.start.row:1/0),!(p>g);){var M=L[C++];if(M){this.dom.removeChildren(M),this.$renderLine(M,p,p==I?$:!1),y&&(M.style.top=this.$lines.computeLineTop(p,t,this.session)+"px");var A=t.lineHeight*this.session.getRowLength(p)+"px";M.style.height!=A&&(y=!0,M.style.height=A)}p++}if(y)for(;C<this.$lines.cells.length;){var H=this.$lines.cells[C++];H.element.style.top=this.$lines.computeLineTop(H.row,t,this.session)+"px"}},r.prototype.scrollLines=function(t){var n=this.config;if(this.config=t,this.$lines.pageChanged(n,t))return this.update(t);this.$lines.moveContainer(t);var a=t.lastRow,d=n?n.lastRow:-1;if(!n||d<t.firstRow)return this.update(t);if(a<n.firstRow)return this.update(t);if(!n||n.lastRow<t.firstRow)return this.update(t);if(t.lastRow<n.firstRow)return this.update(t);if(n.firstRow<t.firstRow)for(var g=this.session.getFoldedRowCount(n.firstRow,t.firstRow-1);g>0;g--)this.$lines.shift();if(n.lastRow>t.lastRow)for(var g=this.session.getFoldedRowCount(t.lastRow+1,n.lastRow);g>0;g--)this.$lines.pop();t.firstRow<n.firstRow&&this.$lines.unshift(this.$renderLinesFragment(t,t.firstRow,n.firstRow-1)),t.lastRow>n.lastRow&&this.$lines.push(this.$renderLinesFragment(t,n.lastRow+1,t.lastRow)),this.$highlightIndentGuide()},r.prototype.$renderLinesFragment=function(t,n,a){for(var d=[],g=n,L=this.session.getNextFoldLine(g),C=L?L.start.row:1/0;g>C&&(g=L.end.row+1,L=this.session.getNextFoldLine(g,L),C=L?L.start.row:1/0),!(g>a);){var y=this.$lines.createCell(g,t,this.session),p=y.element;this.dom.removeChildren(p),_.setStyle(p.style,"height",this.$lines.computeLineHeight(g,t,this.session)+"px"),_.setStyle(p.style,"top",this.$lines.computeLineTop(g,t,this.session)+"px"),this.$renderLine(p,g,g==C?L:!1),this.$useLineGroups()?p.className="ace_line_group":p.className="ace_line",d.push(y),g++}return d},r.prototype.update=function(t){this.$lines.moveContainer(t),this.config=t;for(var n=t.firstRow,a=t.lastRow,d=this.$lines;d.getLength();)d.pop();d.push(this.$renderLinesFragment(t,n,a))},r.prototype.$renderToken=function(t,n,a,d){for(var g=this,L=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,C=this.dom.createFragment(this.element),y,p=0;y=L.exec(d);){var $=y[1],I=y[2],M=y[3],A=y[4],H=y[5];if(!(!g.showSpaces&&I)){var D=p!=y.index?d.slice(p,y.index):"";if(p=y.index+y[0].length,D&&C.appendChild(this.dom.createTextNode(D,this.element)),$){var T=g.session.getScreenTabSize(n+y.index),x=g.$tabStrings[T].cloneNode(!0);x.charCount=1,C.appendChild(x),n+=T-1}else if(I)if(g.showSpaces){var m=this.dom.createElement("span");m.className="ace_invisible ace_invisible_space",m.textContent=S.stringRepeat(g.SPACE_CHAR,I.length),C.appendChild(m)}else C.appendChild(this.dom.createTextNode(I,this.element));else if(M){var m=this.dom.createElement("span");m.className="ace_invisible ace_invisible_space ace_invalid",m.textContent=S.stringRepeat(g.SPACE_CHAR,M.length),C.appendChild(m)}else if(A){n+=1;var m=this.dom.createElement("span");m.style.width=g.config.characterWidth*2+"px",m.className=g.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",m.textContent=g.showSpaces?g.SPACE_CHAR:A,C.appendChild(m)}else if(H){n+=1;var m=this.dom.createElement("span");m.style.width=g.config.characterWidth*2+"px",m.className="ace_cjk",m.textContent=H,C.appendChild(m)}}}if(C.appendChild(this.dom.createTextNode(p?d.slice(p):d,this.element)),o(a.type))t.appendChild(C);else{var E="ace_"+a.type.replace(/\./g," ace_"),m=this.dom.createElement("span");a.type=="fold"&&(m.style.width=a.value.length*this.config.characterWidth+"px",m.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),m.className=E,m.appendChild(C),t.appendChild(m)}return n+d.length},r.prototype.renderIndentGuide=function(t,n,a){var d=n.search(this.$indentGuideRe);if(d<=0||d>=a)return n;if(n[0]==" "){d-=d%this.tabSize;for(var g=d/this.tabSize,L=0;L<g;L++)t.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),n.substr(d)}else if(n[0]==" "){for(var L=0;L<d;L++)t.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),n.substr(d)}return this.$highlightIndentGuide(),n},r.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var t=this.session.doc.$lines;if(t){var n=this.session.selection.getCursor(),a=/^\s*/.exec(this.session.doc.getLine(n.row))[0].length,d=Math.floor(a/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:d,start:n.row};var g=this.session.$bracketHighlight;if(g){for(var L=this.session.$bracketHighlight.ranges,C=0;C<L.length;C++)if(n.row!==L[C].start.row){this.$highlightIndentGuideMarker.end=L[C].start.row+1,n.row>L[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&t[n.row]!==""&&n.column===t[n.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=n.row+1;C<t.length;C++){var y=t[C],p=/^\s*/.exec(y)[0].length;if(y!==""&&(this.$highlightIndentGuideMarker.end=C,p<=a))break}}this.$renderHighlightIndentGuide()}}},r.prototype.$clearActiveIndentGuide=function(){for(var t=this.element.querySelectorAll(".ace_indent-guide-active"),n=0;n<t.length;n++)t[n].classList.remove("ace_indent-guide-active")},r.prototype.$setIndentGuideActive=function(t,n){var a=this.session.doc.getLine(t.row);if(a!==""){var d=t.element;if(t.element.classList&&t.element.classList.contains("ace_line_group"))if(t.element.childNodes.length>0)d=t.element.childNodes[0];else return;var g=d.childNodes;if(g){var L=g[n-1];L&&L.classList&&L.classList.contains("ace_indent-guide")&&L.classList.add("ace_indent-guide-active")}}},r.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var t=this.$lines.cells;this.$clearActiveIndentGuide();var n=this.$highlightIndentGuideMarker.indentLevel;if(n!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var a=0;a<t.length;a++){var d=t[a];if(this.$highlightIndentGuideMarker.end&&d.row>=this.$highlightIndentGuideMarker.start+1){if(d.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(d,n)}}else for(var a=t.length-1;a>=0;a--){var d=t[a];if(this.$highlightIndentGuideMarker.end&&d.row<this.$highlightIndentGuideMarker.start){if(d.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(d,n)}}}},r.prototype.$createLineElement=function(t){var n=this.dom.createElement("div");return n.className="ace_line",n.style.height=this.config.lineHeight+"px",n},r.prototype.$renderWrappedLine=function(t,n,a){var d=0,g=0,L=a[0],C=0,y=this.$createLineElement();t.appendChild(y);for(var p=0;p<n.length;p++){var $=n[p],I=$.value;if(p==0&&this.displayIndentGuides){if(d=I.length,I=this.renderIndentGuide(y,I,L),!I)continue;d-=I.length}if(d+I.length<L)C=this.$renderToken(y,C,$,I),d+=I.length;else{for(;d+I.length>=L;){C=this.$renderToken(y,C,$,I.substring(0,L-d)),I=I.substring(L-d),d=L,y=this.$createLineElement(),t.appendChild(y);var M=this.dom.createTextNode(S.stringRepeat(" ",a.indent),this.element);M.charCount=0,y.appendChild(M),g++,C=0,L=a[g]||Number.MAX_VALUE}I.length!=0&&(d+=I.length,C=this.$renderToken(y,C,$,I))}}a[a.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(y,C,null,"",!0)},r.prototype.$renderSimpleLine=function(t,n){for(var a=0,d=0;d<n.length;d++){var g=n[d],L=g.value;if(!(d==0&&this.displayIndentGuides&&(L=this.renderIndentGuide(t,L),!L))){if(a+L.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(t,a,g,L);a=this.$renderToken(t,a,g,L)}}},r.prototype.$renderOverflowMessage=function(t,n,a,d,g){a&&this.$renderToken(t,n,a,d.slice(0,this.MAX_LINE_LENGTH-n));var L=this.dom.createElement("span");L.className="ace_inline_button ace_keyword ace_toggle_wrap",L.textContent=g?"<hide>":"<click to see more...>",t.appendChild(L)},r.prototype.$renderLine=function(t,n,a){if(!a&&a!=!1&&(a=this.session.getFoldLine(n)),a)var d=this.$getFoldLineTokens(n,a);else var d=this.session.getTokens(n);var g=t;if(d.length){var L=this.session.getRowSplitData(n);if(L&&L.length){this.$renderWrappedLine(t,d,L);var g=t.lastChild}else{var g=t;this.$useLineGroups()&&(g=this.$createLineElement(),t.appendChild(g)),this.$renderSimpleLine(g,d)}}else this.$useLineGroups()&&(g=this.$createLineElement(),t.appendChild(g));if(this.showEOL&&g){a&&(n=a.end.row);var C=this.dom.createElement("span");C.className="ace_invisible ace_invisible_eol",C.textContent=n==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,g.appendChild(C)}},r.prototype.$getFoldLineTokens=function(t,n){var a=this.session,d=[];function g(C,y,p){for(var $=0,I=0;I+C[$].value.length<y;)if(I+=C[$].value.length,$++,$==C.length)return;if(I!=y){var M=C[$].value.substring(y-I);M.length>p-y&&(M=M.substring(0,p-y)),d.push({type:C[$].type,value:M}),I=y+M.length,$+=1}for(;I<p&&$<C.length;){var M=C[$].value;M.length+I>p?d.push({type:C[$].type,value:M.substring(0,p-I)}):d.push(C[$]),I+=M.length,$+=1}}var L=a.getTokens(t);return n.walk(function(C,y,p,$,I){C!=null?d.push({type:"fold",value:C}):(I&&(L=a.getTokens(y)),L.length&&g(L,$,p))},n.end.row,this.session.getLine(n.end.row).length),d},r.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},r})();i.prototype.EOF_CHAR="¶",i.prototype.EOL_CHAR_LF="¬",i.prototype.EOL_CHAR_CRLF="¤",i.prototype.EOL_CHAR=i.prototype.EOL_CHAR_LF,i.prototype.TAB_CHAR="—",i.prototype.SPACE_CHAR="·",i.prototype.$padding=0,i.prototype.MAX_LINE_LENGTH=1e4,i.prototype.showInvisibles=!1,i.prototype.showSpaces=!1,i.prototype.showTabs=!1,i.prototype.showEOL=!1,i.prototype.displayIndentGuides=!0,i.prototype.$highlightIndentGuides=!0,i.prototype.$tabStrings=[],i.prototype.destroy={},i.prototype.onChangeTabSize=i.prototype.$computeTabString,R.implement(i.prototype,h),b.Text=i}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(f,b,z){var R=f("../lib/dom"),_=(function(){function S(u){this.element=R.createElement("div"),this.element.className="ace_layer ace_cursor-layer",u.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),R.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return S.prototype.$updateOpacity=function(u){for(var h=this.cursors,s=h.length;s--;)R.setStyle(h[s].style,"opacity",u?"":"0")},S.prototype.$startCssAnimation=function(){for(var u=this.cursors,h=u.length;h--;)u[h].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&R.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},S.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,R.removeCssClass(this.element,"ace_animate-blinking")},S.prototype.setPadding=function(u){this.$padding=u},S.prototype.setSession=function(u){this.session=u},S.prototype.setBlinking=function(u){u!=this.isBlinking&&(this.isBlinking=u,this.restartTimer())},S.prototype.setBlinkInterval=function(u){u!=this.blinkInterval&&(this.blinkInterval=u,this.restartTimer())},S.prototype.setSmoothBlinking=function(u){u!=this.smoothBlinking&&(this.smoothBlinking=u,R.setCssClass(this.element,"ace_smooth-blinking",u),this.$updateCursors(!0),this.restartTimer())},S.prototype.addCursor=function(){var u=R.createElement("div");return u.className="ace_cursor",this.element.appendChild(u),this.cursors.push(u),u},S.prototype.removeCursor=function(){if(this.cursors.length>1){var u=this.cursors.pop();return u.parentNode.removeChild(u),u}},S.prototype.hideCursor=function(){this.isVisible=!1,R.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},S.prototype.showCursor=function(){this.isVisible=!0,R.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},S.prototype.restartTimer=function(){var u=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,R.removeCssClass(this.element,"ace_smooth-blinking")),u(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&R.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),R.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var h=(function(){this.timeoutId=setTimeout(function(){u(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){u(!0),h()},this.blinkInterval),h()}},S.prototype.getPixelPosition=function(u,h){if(!this.config||!this.session)return{left:0,top:0};u||(u=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(u),o=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,u.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),i=(s.row-(h?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:o,top:i}},S.prototype.isCursorInView=function(u,h){return u.top>=0&&u.top<h.maxHeight},S.prototype.update=function(u){this.config=u;var h=this.session.$selectionMarkers,s=0,o=0;(h===void 0||h.length===0)&&(h=[{cursor:null}]);for(var s=0,i=h.length;s<i;s++){var r=this.getPixelPosition(h[s].cursor,!0);if(!((r.top>u.height+u.offset||r.top<0)&&s>1)){var t=this.cursors[o++]||this.addCursor(),n=t.style;this.drawCursor?this.drawCursor(t,r,u,h[s],this.session):this.isCursorInView(r,u)?(R.setStyle(n,"display","block"),R.translate(t,r.left,r.top),R.setStyle(n,"width",Math.round(u.characterWidth)+"px"),R.setStyle(n,"height",u.lineHeight+"px")):R.setStyle(n,"display","none")}}for(;this.cursors.length>o;)this.removeCursor();var a=this.session.getOverwrite();this.$setOverwrite(a),this.$pixelPos=r,this.restartTimer()},S.prototype.$setOverwrite=function(u){u!=this.overwrite&&(this.overwrite=u,u?R.addCssClass(this.element,"ace_overwrite-cursors"):R.removeCssClass(this.element,"ace_overwrite-cursors"))},S.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},S})();_.prototype.$padding=0,_.prototype.drawCursor=null,b.Cursor=_}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(f,b,z){var R=this&&this.__extends||(function(){var t=function(n,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var L in g)Object.prototype.hasOwnProperty.call(g,L)&&(d[L]=g[L])},t(n,a)};return function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");t(n,a);function d(){this.constructor=n}n.prototype=a===null?Object.create(a):(d.prototype=a.prototype,new d)}})(),_=f("./lib/oop"),S=f("./lib/dom"),u=f("./lib/event"),h=f("./lib/event_emitter").EventEmitter,s=32768,o=(function(){function t(n,a){this.element=S.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+a,this.inner=S.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),n.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,u.addListener(this.element,"scroll",this.onScroll.bind(this)),u.addListener(this.element,"mousedown",u.preventDefault)}return t.prototype.setVisible=function(n){this.element.style.display=n?"":"none",this.isVisible=n,this.coeff=1},t})();_.implement(o.prototype,h);var i=(function(t){R(n,t);function n(a,d){var g=t.call(this,a,"-v")||this;return g.scrollTop=0,g.scrollHeight=0,d.$scrollbarWidth=g.width=S.scrollbarWidth(a.ownerDocument),g.inner.style.width=g.element.style.width=(g.width||15)+5+"px",g.$minWidth=0,g}return n.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var a=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-a)/(this.coeff-a)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},n.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},n.prototype.setHeight=function(a){this.element.style.height=a+"px"},n.prototype.setScrollHeight=function(a){this.scrollHeight=a,a>s?(this.coeff=s/a,a=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=a+"px"},n.prototype.setScrollTop=function(a){this.scrollTop!=a&&(this.skipEvent=!0,this.scrollTop=a,this.element.scrollTop=a*this.coeff)},n})(o);i.prototype.setInnerHeight=i.prototype.setScrollHeight;var r=(function(t){R(n,t);function n(a,d){var g=t.call(this,a,"-h")||this;return g.scrollLeft=0,g.height=d.$scrollbarWidth,g.inner.style.height=g.element.style.height=(g.height||15)+5+"px",g}return n.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},n.prototype.getHeight=function(){return this.isVisible?this.height:0},n.prototype.setWidth=function(a){this.element.style.width=a+"px"},n.prototype.setInnerWidth=function(a){this.inner.style.width=a+"px"},n.prototype.setScrollWidth=function(a){this.inner.style.width=a+"px"},n.prototype.setScrollLeft=function(a){this.scrollLeft!=a&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=a)},n})(o);b.ScrollBar=i,b.ScrollBarV=i,b.ScrollBarH=r,b.VScrollBar=i,b.HScrollBar=r}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(f,b,z){var R=this&&this.__extends||(function(){var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(a[g]=d[g])},r(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}})(),_=f("./lib/oop"),S=f("./lib/dom"),u=f("./lib/event"),h=f("./lib/event_emitter").EventEmitter;S.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
|
211
|
+
position: absolute;
|
|
212
|
+
background: rgba(128, 128, 128, 0.6);
|
|
213
|
+
-moz-box-sizing: border-box;
|
|
214
|
+
box-sizing: border-box;
|
|
215
|
+
border: 1px solid #bbb;
|
|
216
|
+
border-radius: 2px;
|
|
217
|
+
z-index: 8;
|
|
218
|
+
}
|
|
219
|
+
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
|
220
|
+
position: absolute;
|
|
221
|
+
z-index: 6;
|
|
222
|
+
background: none;
|
|
223
|
+
overflow: hidden!important;
|
|
224
|
+
}
|
|
225
|
+
.ace_editor>.ace_sb-v {
|
|
226
|
+
z-index: 6;
|
|
227
|
+
right: 0;
|
|
228
|
+
top: 0;
|
|
229
|
+
width: 12px;
|
|
230
|
+
}
|
|
231
|
+
.ace_editor>.ace_sb-v div {
|
|
232
|
+
z-index: 8;
|
|
233
|
+
right: 0;
|
|
234
|
+
width: 100%;
|
|
235
|
+
}
|
|
236
|
+
.ace_editor>.ace_sb-h {
|
|
237
|
+
bottom: 0;
|
|
238
|
+
left: 0;
|
|
239
|
+
height: 12px;
|
|
240
|
+
}
|
|
241
|
+
.ace_editor>.ace_sb-h div {
|
|
242
|
+
bottom: 0;
|
|
243
|
+
height: 100%;
|
|
244
|
+
}
|
|
245
|
+
.ace_editor>.ace_sb_grabbed {
|
|
246
|
+
z-index: 8;
|
|
247
|
+
background: #000;
|
|
248
|
+
}`,"ace_scrollbar.css",!1);var s=(function(){function r(t,n){this.element=S.createElement("div"),this.element.className="ace_sb"+n,this.inner=S.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,t.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,u.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return r.prototype.setVisible=function(t){this.element.style.display=t?"":"none",this.isVisible=t,this.coeff=1},r})();_.implement(s.prototype,h);var o=(function(r){R(t,r);function t(n,a){var d=r.call(this,n,"-v")||this;return d.scrollTop=0,d.scrollHeight=0,d.parent=n,d.width=d.VScrollWidth,d.renderer=a,d.inner.style.width=d.element.style.width=(d.width||15)+"px",d.$minWidth=0,d}return t.prototype.onMouseDown=function(n,a){if(n==="mousedown"&&!(u.getButton(a)!==0||a.detail===2)){if(a.target===this.inner){var d=this,g=a.clientY,L=function(A){g=A.clientY},C=function(){clearInterval(I)},y=a.clientY,p=this.thumbTop,$=function(){if(g!==void 0){var A=d.scrollTopFromThumbTop(p+g-y);A!==d.scrollTop&&d._emit("scroll",{data:A})}};u.capture(this.inner,L,C);var I=setInterval($,20);return u.preventDefault(a)}var M=a.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(M)}),u.preventDefault(a)}},t.prototype.getHeight=function(){return this.height},t.prototype.scrollTopFromThumbTop=function(n){var a=n*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return a=a>>0,a<0?a=0:a>this.pageHeight-this.viewHeight&&(a=this.pageHeight-this.viewHeight),a},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(n){this.height=Math.max(0,n),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},t.prototype.setScrollHeight=function(n,a){this.pageHeight===n&&!a||(this.pageHeight=n,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},t.prototype.setScrollTop=function(n){this.scrollTop=n,n<0&&(n=0),this.thumbTop=n*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},t})(s);o.prototype.setInnerHeight=o.prototype.setScrollHeight;var i=(function(r){R(t,r);function t(n,a){var d=r.call(this,n,"-h")||this;return d.scrollLeft=0,d.scrollWidth=0,d.height=d.HScrollHeight,d.inner.style.height=d.element.style.height=(d.height||12)+"px",d.renderer=a,d}return t.prototype.onMouseDown=function(n,a){if(n==="mousedown"&&!(u.getButton(a)!==0||a.detail===2)){if(a.target===this.inner){var d=this,g=a.clientX,L=function(A){g=A.clientX},C=function(){clearInterval(I)},y=a.clientX,p=this.thumbLeft,$=function(){if(g!==void 0){var A=d.scrollLeftFromThumbLeft(p+g-y);A!==d.scrollLeft&&d._emit("scroll",{data:A})}};u.capture(this.inner,L,C);var I=setInterval($,20);return u.preventDefault(a)}var M=a.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(M)}),u.preventDefault(a)}},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.scrollLeftFromThumbLeft=function(n){var a=n*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return a=a>>0,a<0?a=0:a>this.pageWidth-this.viewWidth&&(a=this.pageWidth-this.viewWidth),a},t.prototype.setWidth=function(n){this.width=Math.max(0,n),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},t.prototype.setScrollWidth=function(n,a){this.pageWidth===n&&!a||(this.pageWidth=n,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},t.prototype.setScrollLeft=function(n){this.scrollLeft=n,n<0&&(n=0),this.thumbLeft=n*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},t})(s);i.prototype.setInnerWidth=i.prototype.setScrollWidth,b.ScrollBar=o,b.ScrollBarV=o,b.ScrollBarH=i,b.VScrollBar=o,b.HScrollBar=i}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(f,b,z){var R=f("./lib/event"),_=(function(){function S(u,h){this.onRender=u,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=h||window;var s=this;this._flush=function(o){s.pending=!1;var i=s.changes;if(i&&(R.blockIdle(100),s.changes=0,s.onRender(i)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return S.prototype.schedule=function(u){this.changes=this.changes|u,this.changes&&!this.pending&&(R.nextFrame(this._flush),this.pending=!0)},S.prototype.clear=function(u){var h=this.changes;return this.changes=0,h},S})();b.RenderLoop=_}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(f,b,z){var R=f("../lib/oop"),_=f("../lib/dom"),S=f("../lib/lang"),u=f("../lib/event"),h=f("../lib/useragent"),s=f("../lib/event_emitter").EventEmitter,o=512,i=typeof ResizeObserver=="function",r=200,t=(function(){function n(a){this.el=_.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=_.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=_.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),a.appendChild(this.el),this.$measureNode.textContent=S.stringRepeat("X",o),this.$characterSize={width:0,height:0},i?this.$addObserver():this.checkForSizeChanges()}return n.prototype.$setMeasureNodeStyles=function(a,d){a.width=a.height="auto",a.left=a.top="0px",a.visibility="hidden",a.position="absolute",a.whiteSpace="pre",h.isIE<8?a["font-family"]="inherit":a.font="inherit",a.overflow=d?"hidden":"visible"},n.prototype.checkForSizeChanges=function(a){if(a===void 0&&(a=this.$measureSizes()),a&&(this.$characterSize.width!==a.width||this.$characterSize.height!==a.height)){this.$measureNode.style.fontWeight="bold";var d=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=a,this.charSizes=Object.create(null),this.allowBoldFonts=d&&d.width===a.width&&d.height===a.height,this._emit("changeCharacterSize",{data:a})}},n.prototype.$addObserver=function(){var a=this;this.$observer=new window.ResizeObserver(function(d){a.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},n.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var a=this;return this.$pollSizeChangesTimer=u.onIdle(function d(){a.checkForSizeChanges(),u.onIdle(d,500)},500)},n.prototype.setPolling=function(a){a?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},n.prototype.$measureSizes=function(a){var d={height:(a||this.$measureNode).clientHeight,width:(a||this.$measureNode).clientWidth/o};return d.width===0||d.height===0?null:d},n.prototype.$measureCharWidth=function(a){this.$main.textContent=S.stringRepeat(a,o);var d=this.$main.getBoundingClientRect();return d.width/o},n.prototype.getCharacterWidth=function(a){var d=this.charSizes[a];return d===void 0&&(d=this.charSizes[a]=this.$measureCharWidth(a)/this.$characterSize.width),d},n.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},n.prototype.$getZoom=function(a){return!a||!a.parentElement?1:(Number(window.getComputedStyle(a).zoom)||1)*this.$getZoom(a.parentElement)},n.prototype.$initTransformMeasureNodes=function(){var a=function(d,g){return["div",{style:"position: absolute;top:"+d+"px;left:"+g+"px;"}]};this.els=_.buildDom([a(0,0),a(r,0),a(0,r),a(r,r)],this.el)},n.prototype.transformCoordinates=function(a,d){if(a){var g=this.$getZoom(this.el);a=p(1/g,a)}function L(Q,te,ce){var ne=Q[1]*te[0]-Q[0]*te[1];return[(-te[1]*ce[0]+te[0]*ce[1])/ne,(+Q[1]*ce[0]-Q[0]*ce[1])/ne]}function C(Q,te){return[Q[0]-te[0],Q[1]-te[1]]}function y(Q,te){return[Q[0]+te[0],Q[1]+te[1]]}function p(Q,te){return[Q*te[0],Q*te[1]]}this.els||this.$initTransformMeasureNodes();function $(Q){var te=Q.getBoundingClientRect();return[te.left,te.top]}var I=$(this.els[0]),M=$(this.els[1]),A=$(this.els[2]),H=$(this.els[3]),D=L(C(H,M),C(H,A),C(y(M,A),y(H,I))),T=p(1+D[0],C(M,I)),x=p(1+D[1],C(A,I));if(d){var m=d,E=D[0]*m[0]/r+D[1]*m[1]/r+1,W=y(p(m[0],T),p(m[1],x));return y(p(1/E/r,W),I)}var U=C(a,I),q=L(C(T,p(D[0],U)),C(x,p(D[1],U)),U);return p(r,q)},n})();t.prototype.$characterSize={width:0,height:0},R.implement(t.prototype,s),b.FontMetrics=t}),ace.define("ace/css/editor-css",["require","exports","module"],function(f,b,z){z.exports=`
|
|
249
|
+
.ace_br1 {border-top-left-radius : 3px;}
|
|
250
|
+
.ace_br2 {border-top-right-radius : 3px;}
|
|
251
|
+
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
|
252
|
+
.ace_br4 {border-bottom-right-radius: 3px;}
|
|
253
|
+
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
|
254
|
+
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
|
255
|
+
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
|
256
|
+
.ace_br8 {border-bottom-left-radius : 3px;}
|
|
257
|
+
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
|
258
|
+
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
|
259
|
+
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
260
|
+
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
261
|
+
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
262
|
+
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
263
|
+
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
.ace_editor {
|
|
267
|
+
position: relative;
|
|
268
|
+
overflow: hidden;
|
|
269
|
+
padding: 0;
|
|
270
|
+
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
|
271
|
+
direction: ltr;
|
|
272
|
+
text-align: left;
|
|
273
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
274
|
+
forced-color-adjust: none;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.ace_scroller {
|
|
278
|
+
position: absolute;
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
top: 0;
|
|
281
|
+
bottom: 0;
|
|
282
|
+
background-color: inherit;
|
|
283
|
+
-ms-user-select: none;
|
|
284
|
+
-moz-user-select: none;
|
|
285
|
+
-webkit-user-select: none;
|
|
286
|
+
user-select: none;
|
|
287
|
+
cursor: text;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.ace_content {
|
|
291
|
+
position: absolute;
|
|
292
|
+
box-sizing: border-box;
|
|
293
|
+
min-width: 100%;
|
|
294
|
+
contain: style size layout;
|
|
295
|
+
font-variant-ligatures: no-common-ligatures;
|
|
296
|
+
}
|
|
297
|
+
.ace_invisible {
|
|
298
|
+
font-variant-ligatures: none;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.ace_keyboard-focus:focus {
|
|
302
|
+
box-shadow: inset 0 0 0 2px #5E9ED6;
|
|
303
|
+
outline: none;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.ace_dragging .ace_scroller:before{
|
|
307
|
+
position: absolute;
|
|
308
|
+
top: 0;
|
|
309
|
+
left: 0;
|
|
310
|
+
right: 0;
|
|
311
|
+
bottom: 0;
|
|
312
|
+
content: '';
|
|
313
|
+
background: rgba(250, 250, 250, 0.01);
|
|
314
|
+
z-index: 1000;
|
|
315
|
+
}
|
|
316
|
+
.ace_dragging.ace_dark .ace_scroller:before{
|
|
317
|
+
background: rgba(0, 0, 0, 0.01);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.ace_gutter {
|
|
321
|
+
position: absolute;
|
|
322
|
+
overflow : hidden;
|
|
323
|
+
width: auto;
|
|
324
|
+
top: 0;
|
|
325
|
+
bottom: 0;
|
|
326
|
+
left: 0;
|
|
327
|
+
cursor: default;
|
|
328
|
+
z-index: 4;
|
|
329
|
+
-ms-user-select: none;
|
|
330
|
+
-moz-user-select: none;
|
|
331
|
+
-webkit-user-select: none;
|
|
332
|
+
user-select: none;
|
|
333
|
+
contain: style size layout;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ace_gutter-active-line {
|
|
337
|
+
position: absolute;
|
|
338
|
+
left: 0;
|
|
339
|
+
right: 0;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.ace_scroller.ace_scroll-left:after {
|
|
343
|
+
content: "";
|
|
344
|
+
position: absolute;
|
|
345
|
+
top: 0;
|
|
346
|
+
right: 0;
|
|
347
|
+
bottom: 0;
|
|
348
|
+
left: 0;
|
|
349
|
+
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
|
350
|
+
pointer-events: none;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
|
354
|
+
position: absolute;
|
|
355
|
+
top: 0;
|
|
356
|
+
left: 0;
|
|
357
|
+
right: 0;
|
|
358
|
+
padding-left: 19px;
|
|
359
|
+
padding-right: 6px;
|
|
360
|
+
background-repeat: no-repeat;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
|
364
|
+
margin-left: -14px;
|
|
365
|
+
float: left;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.ace_gutter-cell .ace_gutter_annotation {
|
|
369
|
+
margin-left: -19px;
|
|
370
|
+
float: left;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
|
|
374
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
|
375
|
+
background-repeat: no-repeat;
|
|
376
|
+
background-position: 2px center;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
|
380
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
|
381
|
+
background-repeat: no-repeat;
|
|
382
|
+
background-position: 2px center;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
|
386
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
|
387
|
+
background-repeat: no-repeat;
|
|
388
|
+
background-position: 2px center;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
|
|
392
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.ace_icon_svg.ace_error {
|
|
396
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
|
397
|
+
background-color: crimson;
|
|
398
|
+
}
|
|
399
|
+
.ace_icon_svg.ace_security {
|
|
400
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
|
401
|
+
background-color: crimson;
|
|
402
|
+
}
|
|
403
|
+
.ace_icon_svg.ace_warning {
|
|
404
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
|
405
|
+
background-color: darkorange;
|
|
406
|
+
}
|
|
407
|
+
.ace_icon_svg.ace_info {
|
|
408
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
|
409
|
+
background-color: royalblue;
|
|
410
|
+
}
|
|
411
|
+
.ace_icon_svg.ace_hint {
|
|
412
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
|
413
|
+
background-color: silver;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.ace_icon_svg.ace_error_fold {
|
|
417
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
418
|
+
background-color: crimson;
|
|
419
|
+
}
|
|
420
|
+
.ace_icon_svg.ace_security_fold {
|
|
421
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
422
|
+
background-color: crimson;
|
|
423
|
+
}
|
|
424
|
+
.ace_icon_svg.ace_warning_fold {
|
|
425
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
|
426
|
+
background-color: darkorange;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.ace_scrollbar {
|
|
430
|
+
contain: strict;
|
|
431
|
+
position: absolute;
|
|
432
|
+
right: 0;
|
|
433
|
+
bottom: 0;
|
|
434
|
+
z-index: 6;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.ace_scrollbar-inner {
|
|
438
|
+
position: absolute;
|
|
439
|
+
cursor: text;
|
|
440
|
+
left: 0;
|
|
441
|
+
top: 0;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.ace_scrollbar-v{
|
|
445
|
+
overflow-x: hidden;
|
|
446
|
+
overflow-y: scroll;
|
|
447
|
+
top: 0;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.ace_scrollbar-h {
|
|
451
|
+
overflow-x: scroll;
|
|
452
|
+
overflow-y: hidden;
|
|
453
|
+
left: 0;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.ace_print-margin {
|
|
457
|
+
position: absolute;
|
|
458
|
+
height: 100%;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.ace_text-input {
|
|
462
|
+
position: absolute;
|
|
463
|
+
z-index: 0;
|
|
464
|
+
width: 0.5em;
|
|
465
|
+
height: 1em;
|
|
466
|
+
opacity: 0;
|
|
467
|
+
background: transparent;
|
|
468
|
+
-moz-appearance: none;
|
|
469
|
+
appearance: none;
|
|
470
|
+
border: none;
|
|
471
|
+
resize: none;
|
|
472
|
+
outline: none;
|
|
473
|
+
overflow: hidden;
|
|
474
|
+
font: inherit;
|
|
475
|
+
padding: 0 1px;
|
|
476
|
+
margin: 0 -1px;
|
|
477
|
+
contain: strict;
|
|
478
|
+
-ms-user-select: text;
|
|
479
|
+
-moz-user-select: text;
|
|
480
|
+
-webkit-user-select: text;
|
|
481
|
+
user-select: text;
|
|
482
|
+
/*with \`pre-line\` chrome inserts instead of space*/
|
|
483
|
+
white-space: pre!important;
|
|
484
|
+
}
|
|
485
|
+
.ace_text-input.ace_composition {
|
|
486
|
+
background: transparent;
|
|
487
|
+
color: inherit;
|
|
488
|
+
z-index: 1000;
|
|
489
|
+
opacity: 1;
|
|
490
|
+
}
|
|
491
|
+
.ace_composition_placeholder { color: transparent }
|
|
492
|
+
.ace_composition_marker {
|
|
493
|
+
border-bottom: 1px solid;
|
|
494
|
+
position: absolute;
|
|
495
|
+
border-radius: 0;
|
|
496
|
+
margin-top: 1px;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
[ace_nocontext=true] {
|
|
500
|
+
transform: none!important;
|
|
501
|
+
filter: none!important;
|
|
502
|
+
clip-path: none!important;
|
|
503
|
+
mask : none!important;
|
|
504
|
+
contain: none!important;
|
|
505
|
+
perspective: none!important;
|
|
506
|
+
mix-blend-mode: initial!important;
|
|
507
|
+
z-index: auto;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.ace_layer {
|
|
511
|
+
z-index: 1;
|
|
512
|
+
position: absolute;
|
|
513
|
+
overflow: hidden;
|
|
514
|
+
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
|
515
|
+
word-wrap: normal;
|
|
516
|
+
white-space: pre;
|
|
517
|
+
height: 100%;
|
|
518
|
+
width: 100%;
|
|
519
|
+
box-sizing: border-box;
|
|
520
|
+
/* setting pointer-events: auto; on node under the mouse, which changes
|
|
521
|
+
during scroll, will break mouse wheel scrolling in Safari */
|
|
522
|
+
pointer-events: none;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.ace_gutter-layer {
|
|
526
|
+
position: relative;
|
|
527
|
+
width: auto;
|
|
528
|
+
text-align: right;
|
|
529
|
+
pointer-events: auto;
|
|
530
|
+
height: 1000000px;
|
|
531
|
+
contain: style size layout;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.ace_text-layer {
|
|
535
|
+
font: inherit !important;
|
|
536
|
+
position: absolute;
|
|
537
|
+
height: 1000000px;
|
|
538
|
+
width: 1000000px;
|
|
539
|
+
contain: style size layout;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
|
543
|
+
contain: style size layout;
|
|
544
|
+
position: absolute;
|
|
545
|
+
top: 0;
|
|
546
|
+
left: 0;
|
|
547
|
+
right: 0;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.ace_hidpi .ace_text-layer,
|
|
551
|
+
.ace_hidpi .ace_gutter-layer,
|
|
552
|
+
.ace_hidpi .ace_content,
|
|
553
|
+
.ace_hidpi .ace_gutter {
|
|
554
|
+
contain: strict;
|
|
555
|
+
}
|
|
556
|
+
.ace_hidpi .ace_text-layer > .ace_line,
|
|
557
|
+
.ace_hidpi .ace_text-layer > .ace_line_group {
|
|
558
|
+
contain: strict;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.ace_cjk {
|
|
562
|
+
display: inline-block;
|
|
563
|
+
text-align: center;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.ace_cursor-layer {
|
|
567
|
+
z-index: 4;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.ace_cursor {
|
|
571
|
+
z-index: 4;
|
|
572
|
+
position: absolute;
|
|
573
|
+
box-sizing: border-box;
|
|
574
|
+
border-left: 2px solid;
|
|
575
|
+
/* workaround for smooth cursor repaintng whole screen in chrome */
|
|
576
|
+
transform: translatez(0);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.ace_multiselect .ace_cursor {
|
|
580
|
+
border-left-width: 1px;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.ace_slim-cursors .ace_cursor {
|
|
584
|
+
border-left-width: 1px;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.ace_overwrite-cursors .ace_cursor {
|
|
588
|
+
border-left-width: 0;
|
|
589
|
+
border-bottom: 1px solid;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.ace_hidden-cursors .ace_cursor {
|
|
593
|
+
opacity: 0.2;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
|
597
|
+
opacity: 0;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.ace_smooth-blinking .ace_cursor {
|
|
601
|
+
transition: opacity 0.18s;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.ace_animate-blinking .ace_cursor {
|
|
605
|
+
animation-duration: 1000ms;
|
|
606
|
+
animation-timing-function: step-end;
|
|
607
|
+
animation-name: blink-ace-animate;
|
|
608
|
+
animation-iteration-count: infinite;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
|
612
|
+
animation-duration: 1000ms;
|
|
613
|
+
animation-timing-function: ease-in-out;
|
|
614
|
+
animation-name: blink-ace-animate-smooth;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
@keyframes blink-ace-animate {
|
|
618
|
+
from, to { opacity: 1; }
|
|
619
|
+
60% { opacity: 0; }
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
@keyframes blink-ace-animate-smooth {
|
|
623
|
+
from, to { opacity: 1; }
|
|
624
|
+
45% { opacity: 1; }
|
|
625
|
+
60% { opacity: 0; }
|
|
626
|
+
85% { opacity: 0; }
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
|
630
|
+
position: absolute;
|
|
631
|
+
z-index: 3;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.ace_marker-layer .ace_selection {
|
|
635
|
+
position: absolute;
|
|
636
|
+
z-index: 5;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.ace_marker-layer .ace_bracket {
|
|
640
|
+
position: absolute;
|
|
641
|
+
z-index: 6;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.ace_marker-layer .ace_error_bracket {
|
|
645
|
+
position: absolute;
|
|
646
|
+
border-bottom: 1px solid #DE5555;
|
|
647
|
+
border-radius: 0;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.ace_marker-layer .ace_active-line {
|
|
651
|
+
position: absolute;
|
|
652
|
+
z-index: 2;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.ace_marker-layer .ace_selected-word {
|
|
656
|
+
position: absolute;
|
|
657
|
+
z-index: 4;
|
|
658
|
+
box-sizing: border-box;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.ace_line .ace_fold {
|
|
662
|
+
box-sizing: border-box;
|
|
663
|
+
|
|
664
|
+
display: inline-block;
|
|
665
|
+
height: 11px;
|
|
666
|
+
margin-top: -2px;
|
|
667
|
+
vertical-align: middle;
|
|
668
|
+
|
|
669
|
+
background-image:
|
|
670
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
671
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
|
672
|
+
background-repeat: no-repeat, repeat-x;
|
|
673
|
+
background-position: center center, top left;
|
|
674
|
+
color: transparent;
|
|
675
|
+
|
|
676
|
+
border: 1px solid black;
|
|
677
|
+
border-radius: 2px;
|
|
678
|
+
|
|
679
|
+
cursor: pointer;
|
|
680
|
+
pointer-events: auto;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.ace_dark .ace_fold {
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.ace_fold:hover{
|
|
687
|
+
background-image:
|
|
688
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
689
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.ace_tooltip {
|
|
693
|
+
background-color: #f5f5f5;
|
|
694
|
+
border: 1px solid gray;
|
|
695
|
+
border-radius: 1px;
|
|
696
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
697
|
+
color: black;
|
|
698
|
+
padding: 3px 4px;
|
|
699
|
+
position: fixed;
|
|
700
|
+
z-index: 999999;
|
|
701
|
+
box-sizing: border-box;
|
|
702
|
+
cursor: default;
|
|
703
|
+
white-space: pre-wrap;
|
|
704
|
+
word-wrap: break-word;
|
|
705
|
+
line-height: normal;
|
|
706
|
+
font-style: normal;
|
|
707
|
+
font-weight: normal;
|
|
708
|
+
letter-spacing: normal;
|
|
709
|
+
pointer-events: none;
|
|
710
|
+
overflow: auto;
|
|
711
|
+
max-width: min(33em, 66vw);
|
|
712
|
+
overscroll-behavior: contain;
|
|
713
|
+
}
|
|
714
|
+
.ace_tooltip pre {
|
|
715
|
+
white-space: pre-wrap;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.ace_tooltip.ace_dark {
|
|
719
|
+
background-color: #636363;
|
|
720
|
+
color: #fff;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.ace_tooltip:focus {
|
|
724
|
+
outline: 1px solid #5E9ED6;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.ace_icon {
|
|
728
|
+
display: inline-block;
|
|
729
|
+
width: 18px;
|
|
730
|
+
vertical-align: top;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.ace_icon_svg {
|
|
734
|
+
display: inline-block;
|
|
735
|
+
width: 12px;
|
|
736
|
+
vertical-align: top;
|
|
737
|
+
-webkit-mask-repeat: no-repeat;
|
|
738
|
+
-webkit-mask-size: 12px;
|
|
739
|
+
-webkit-mask-position: center;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
|
743
|
+
padding-right: 13px;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.ace_fold-widget, .ace_custom-widget {
|
|
747
|
+
box-sizing: border-box;
|
|
748
|
+
|
|
749
|
+
margin: 0 -12px 0 1px;
|
|
750
|
+
display: none;
|
|
751
|
+
width: 11px;
|
|
752
|
+
vertical-align: top;
|
|
753
|
+
|
|
754
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
|
755
|
+
background-repeat: no-repeat;
|
|
756
|
+
background-position: center;
|
|
757
|
+
|
|
758
|
+
border-radius: 3px;
|
|
759
|
+
|
|
760
|
+
border: 1px solid transparent;
|
|
761
|
+
cursor: pointer;
|
|
762
|
+
pointer-events: auto;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.ace_custom-widget {
|
|
766
|
+
background: none;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.ace_folding-enabled .ace_fold-widget {
|
|
770
|
+
display: inline-block;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.ace_fold-widget.ace_end {
|
|
774
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.ace_fold-widget.ace_closed {
|
|
778
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.ace_fold-widget:hover {
|
|
782
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
783
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
784
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.ace_fold-widget:active {
|
|
788
|
+
border: 1px solid rgba(0, 0, 0, 0.4);
|
|
789
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
790
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Dark version for fold widgets
|
|
794
|
+
*/
|
|
795
|
+
.ace_dark .ace_fold-widget {
|
|
796
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
|
797
|
+
}
|
|
798
|
+
.ace_dark .ace_fold-widget.ace_end {
|
|
799
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
|
800
|
+
}
|
|
801
|
+
.ace_dark .ace_fold-widget.ace_closed {
|
|
802
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
|
803
|
+
}
|
|
804
|
+
.ace_dark .ace_fold-widget:hover {
|
|
805
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
806
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
807
|
+
}
|
|
808
|
+
.ace_dark .ace_fold-widget:active {
|
|
809
|
+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.ace_inline_button {
|
|
813
|
+
border: 1px solid lightgray;
|
|
814
|
+
display: inline-block;
|
|
815
|
+
margin: -1px 8px;
|
|
816
|
+
padding: 0 5px;
|
|
817
|
+
pointer-events: auto;
|
|
818
|
+
cursor: pointer;
|
|
819
|
+
}
|
|
820
|
+
.ace_inline_button:hover {
|
|
821
|
+
border-color: gray;
|
|
822
|
+
background: rgba(200,200,200,0.2);
|
|
823
|
+
display: inline-block;
|
|
824
|
+
pointer-events: auto;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.ace_fold-widget.ace_invalid {
|
|
828
|
+
background-color: #FFB4B4;
|
|
829
|
+
border-color: #DE5555;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.ace_fade-fold-widgets .ace_fold-widget {
|
|
833
|
+
transition: opacity 0.4s ease 0.05s;
|
|
834
|
+
opacity: 0;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
|
838
|
+
transition: opacity 0.05s ease 0.05s;
|
|
839
|
+
opacity:1;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.ace_underline {
|
|
843
|
+
text-decoration: underline;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.ace_bold {
|
|
847
|
+
font-weight: bold;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.ace_nobold .ace_bold {
|
|
851
|
+
font-weight: normal;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.ace_italic {
|
|
855
|
+
font-style: italic;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
.ace_error-marker {
|
|
860
|
+
background-color: rgba(255, 0, 0,0.2);
|
|
861
|
+
position: absolute;
|
|
862
|
+
z-index: 9;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.ace_highlight-marker {
|
|
866
|
+
background-color: rgba(255, 255, 0,0.2);
|
|
867
|
+
position: absolute;
|
|
868
|
+
z-index: 8;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.ace_mobile-menu {
|
|
872
|
+
position: absolute;
|
|
873
|
+
line-height: 1.5;
|
|
874
|
+
border-radius: 4px;
|
|
875
|
+
-ms-user-select: none;
|
|
876
|
+
-moz-user-select: none;
|
|
877
|
+
-webkit-user-select: none;
|
|
878
|
+
user-select: none;
|
|
879
|
+
background: white;
|
|
880
|
+
box-shadow: 1px 3px 2px grey;
|
|
881
|
+
border: 1px solid #dcdcdc;
|
|
882
|
+
color: black;
|
|
883
|
+
}
|
|
884
|
+
.ace_dark > .ace_mobile-menu {
|
|
885
|
+
background: #333;
|
|
886
|
+
color: #ccc;
|
|
887
|
+
box-shadow: 1px 3px 2px grey;
|
|
888
|
+
border: 1px solid #444;
|
|
889
|
+
|
|
890
|
+
}
|
|
891
|
+
.ace_mobile-button {
|
|
892
|
+
padding: 2px;
|
|
893
|
+
cursor: pointer;
|
|
894
|
+
overflow: hidden;
|
|
895
|
+
}
|
|
896
|
+
.ace_mobile-button:hover {
|
|
897
|
+
background-color: #eee;
|
|
898
|
+
opacity:1;
|
|
899
|
+
}
|
|
900
|
+
.ace_mobile-button:active {
|
|
901
|
+
background-color: #ddd;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.ace_placeholder {
|
|
905
|
+
position: relative;
|
|
906
|
+
font-family: arial;
|
|
907
|
+
transform: scale(0.9);
|
|
908
|
+
transform-origin: left;
|
|
909
|
+
white-space: pre;
|
|
910
|
+
opacity: 0.7;
|
|
911
|
+
margin: 0 10px;
|
|
912
|
+
z-index: 1;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.ace_ghost_text {
|
|
916
|
+
opacity: 0.5;
|
|
917
|
+
font-style: italic;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.ace_ghost_text_container > div {
|
|
921
|
+
white-space: pre;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.ghost_text_line_wrapped::after {
|
|
925
|
+
content: "↩";
|
|
926
|
+
position: absolute;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.ace_lineWidgetContainer.ace_ghost_text {
|
|
930
|
+
margin: 0px 4px
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.ace_screenreader-only {
|
|
934
|
+
position:absolute;
|
|
935
|
+
left:-10000px;
|
|
936
|
+
top:auto;
|
|
937
|
+
width:1px;
|
|
938
|
+
height:1px;
|
|
939
|
+
overflow:hidden;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
.ace_hidden_token {
|
|
943
|
+
display: none;
|
|
944
|
+
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(f,b,z){var R=f("../lib/dom"),_=f("../lib/oop"),S=f("../lib/event_emitter").EventEmitter,u=(function(){function h(s,o){this.renderer=o,this.pixelRatio=1,this.maxHeight=o.layerConfig.maxHeight,this.lineHeight=o.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},this.setScrollBarV(s)}return h.prototype.$createCanvas=function(){this.canvas=R.createElement("canvas"),this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7",this.canvas.style.position="absolute"},h.prototype.setScrollBarV=function(s){this.$createCanvas(),this.scrollbarV=s,s.element.appendChild(this.canvas),this.setDimensions()},h.prototype.$updateDecorators=function(s){if(typeof this.canvas.getContext!="function")return;var o=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;this.setDimensions(s);var i=this.canvas.getContext("2d");function r(T,x){return T.priority<x.priority?-1:T.priority>x.priority?1:0}var t=this.renderer.session.$annotations;if(i.clearRect(0,0,this.canvas.width,this.canvas.height),t){var n={info:1,warning:2,error:3};t.forEach(function(T){T.priority=n[T.type]||null}),t=t.sort(r);for(var a=0;a<t.length;a++){var d=t[a].row,g=this.getVerticalOffsetForRow(d),L=g+this.lineHeight,C=Math.round(this.heightRatio*g),y=Math.round(this.heightRatio*L),p=Math.round((C+y)/2),$=y-p;$<this.halfMinDecorationHeight&&($=this.halfMinDecorationHeight),p-$<0&&(p=$),p+$>this.canvasHeight&&(p=this.canvasHeight-$);var I=p-$,M=p+$,A=M-I;i.fillStyle=o[t[a].type]||null,i.fillRect(0,I,Math.round(this.oneZoneWidth-1),A)}}var H=this.renderer.session.selection.getCursor();if(H){var D=Math.round(this.getVerticalOffsetForRow(H.row)*this.heightRatio);i.fillStyle="rgba(0, 0, 0, 0.5)",i.fillRect(0,D,this.canvasWidth,2)}},h.prototype.getVerticalOffsetForRow=function(s){s=s|0;var o=this.renderer.session.documentToScreenRow(s,0)*this.lineHeight;return o},h.prototype.setDimensions=function(s){s=s||this.renderer.layerConfig,this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height,this.canvasWidth=this.scrollbarV.width||this.canvasWidth,this.setZoneWidth(),this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight},h.prototype.setZoneWidth=function(){this.oneZoneWidth=this.canvasWidth},h.prototype.destroy=function(){this.canvas.parentNode.removeChild(this.canvas)},h})();_.implement(u.prototype,S),b.Decorator=u}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(f,b,z){var R=f("./lib/oop"),_=f("./lib/dom"),S=f("./lib/lang"),u=f("./config"),h=f("./layer/gutter").Gutter,s=f("./layer/marker").Marker,o=f("./layer/text").Text,i=f("./layer/cursor").Cursor,r=f("./scrollbar").HScrollBar,t=f("./scrollbar").VScrollBar,n=f("./scrollbar_custom").HScrollBar,a=f("./scrollbar_custom").VScrollBar,d=f("./renderloop").RenderLoop,g=f("./layer/font_metrics").FontMetrics,L=f("./lib/event_emitter").EventEmitter,C=f("./css/editor-css"),y=f("./layer/decorators").Decorator,p=f("./lib/useragent"),$=f("./layer/text_util").isTextToken;_.importCssString(C,"ace_editor.css",!1);var I=(function(){function M(A,H){var D=this;this.container=A||_.createElement("div"),_.addCssClass(this.container,"ace_editor"),_.HI_DPI&&_.addCssClass(this.container,"ace_hidpi"),this.setTheme(H),u.get("useStrictCSP")==null&&u.set("useStrictCSP",!1),this.$gutter=_.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=_.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=_.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new h(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var T=this.$textLayer=new o(this.content);this.canvas=T.element,this.$markerFront=new s(this.content),this.$cursorLayer=new i(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new t(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.on("scroll",function(x){D.$scrollAnimation||D.session.setScrollTop(x.data-D.scrollMargin.top)}),this.scrollBarH.on("scroll",function(x){D.$scrollAnimation||D.session.setScrollLeft(x.data-D.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(x){D.updateCharacterSize(),D.onResize(!0,D.gutterWidth,D.$size.width,D.$size.height),D._signal("changeCharacterSize",x)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!p.isIOS,this.$loop=new d(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),u.resetOptions(this),u._signal("renderer",this)}return M.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),_.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},M.prototype.setSession=function(A){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=A,A&&this.scrollMargin.top&&A.getScrollTop()<=0&&A.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(A),this.$markerBack.setSession(A),this.$markerFront.setSession(A),this.$gutterLayer.setSession(A),this.$textLayer.setSession(A),A&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},M.prototype.updateLines=function(A,H,D){if(H===void 0&&(H=1/0),this.$changedLines?(this.$changedLines.firstRow>A&&(this.$changedLines.firstRow=A),this.$changedLines.lastRow<H&&(this.$changedLines.lastRow=H)):this.$changedLines={firstRow:A,lastRow:H},this.$changedLines.lastRow<this.layerConfig.firstRow)if(D)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},M.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},M.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},M.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},M.prototype.updateFull=function(A){A?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},M.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},M.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},M.prototype.onResize=function(A,H,D,T){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=A?1:0;var x=this.container;T||(T=x.clientHeight||x.scrollHeight),!T&&this.$maxLines&&this.lineHeight>1&&(!x.style.height||x.style.height=="0px")&&(x.style.height="1px",T=x.clientHeight||x.scrollHeight),D||(D=x.clientWidth||x.scrollWidth);var m=this.$updateCachedSize(A,H,D,T);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!D&&!T)return this.resizing=0;A&&(this.$gutterLayer.$padding=null),A?this.$renderChanges(m|this.$changes,!0):this.$loop.schedule(m|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},M.prototype.$updateCachedSize=function(A,H,D,T){T-=this.$extraHeight||0;var x=0,m=this.$size,E={width:m.width,height:m.height,scrollerHeight:m.scrollerHeight,scrollerWidth:m.scrollerWidth};if(T&&(A||m.height!=T)&&(m.height=T,x|=this.CHANGE_SIZE,m.scrollerHeight=m.height,this.$horizScroll&&(m.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(m.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",x=x|this.CHANGE_SCROLL),D&&(A||m.width!=D)){x|=this.CHANGE_SIZE,m.width=D,H==null&&(H=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=H,_.setStyle(this.scrollBarH.element.style,"left",H+"px"),_.setStyle(this.scroller.style,"left",H+this.margin.left+"px"),m.scrollerWidth=Math.max(0,D-H-this.scrollBarV.getWidth()-this.margin.h),_.setStyle(this.$gutter.style,"left",this.margin.left+"px");var W=this.scrollBarV.getWidth()+"px";_.setStyle(this.scrollBarH.element.style,"right",W),_.setStyle(this.scroller.style,"right",W),_.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(m.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||A)&&(x|=this.CHANGE_FULL)}return m.$dirty=!D||!T,x&&this._signal("resize",E),x},M.prototype.onGutterResize=function(A){var H=this.$showGutter?A:0;H!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,H,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},M.prototype.adjustWrapLimit=function(){var A=this.$size.scrollerWidth-this.$padding*2,H=Math.floor(A/this.characterWidth);return this.session.adjustWrapLimit(H,this.$showPrintMargin&&this.$printMarginColumn)},M.prototype.setAnimatedScroll=function(A){this.setOption("animatedScroll",A)},M.prototype.getAnimatedScroll=function(){return this.$animatedScroll},M.prototype.setShowInvisibles=function(A){this.setOption("showInvisibles",A),this.session.$bidiHandler.setShowInvisibles(A)},M.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},M.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},M.prototype.setDisplayIndentGuides=function(A){this.setOption("displayIndentGuides",A)},M.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},M.prototype.setHighlightIndentGuides=function(A){this.setOption("highlightIndentGuides",A)},M.prototype.setShowPrintMargin=function(A){this.setOption("showPrintMargin",A)},M.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},M.prototype.setPrintMarginColumn=function(A){this.setOption("printMarginColumn",A)},M.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},M.prototype.getShowGutter=function(){return this.getOption("showGutter")},M.prototype.setShowGutter=function(A){return this.setOption("showGutter",A)},M.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},M.prototype.setFadeFoldWidgets=function(A){this.setOption("fadeFoldWidgets",A)},M.prototype.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},M.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},M.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var A=_.createElement("div");A.className="ace_layer ace_print-margin-layer",this.$printMarginEl=_.createElement("div"),this.$printMarginEl.className="ace_print-margin",A.appendChild(this.$printMarginEl),this.content.insertBefore(A,this.content.firstChild)}var H=this.$printMarginEl.style;H.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",H.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},M.prototype.getContainerElement=function(){return this.container},M.prototype.getMouseEventTarget=function(){return this.scroller},M.prototype.getTextAreaContainer=function(){return this.container},M.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var A=this.textarea.style,H=this.$composition;if(!this.$keepTextAreaAtCursor&&!H){_.translate(this.textarea,-100,0);return}var D=this.$cursorLayer.$pixelPos;if(D){H&&H.markerRange&&(D=this.$cursorLayer.getPixelPosition(H.markerRange.start,!0));var T=this.layerConfig,x=D.top,m=D.left;x-=T.offset;var E=H&&H.useTextareaForIME||p.isMobile?this.lineHeight:1;if(x<0||x>T.height-E){_.translate(this.textarea,0,0);return}var W=1,U=this.$size.height-E;if(!H)x+=this.lineHeight;else if(H.useTextareaForIME){var q=this.textarea.value;W=this.characterWidth*this.session.$getStringScreenWidth(q)[0]}else x+=this.lineHeight+2;m-=this.scrollLeft,m>this.$size.scrollerWidth-W&&(m=this.$size.scrollerWidth-W),m+=this.gutterWidth+this.margin.left,_.setStyle(A,"height",E+"px"),_.setStyle(A,"width",W+"px"),_.translate(this.textarea,Math.min(m,this.$size.scrollerWidth-W),Math.min(x,U))}}},M.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},M.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},M.prototype.getLastFullyVisibleRow=function(){var A=this.layerConfig,H=A.lastRow,D=this.session.documentToScreenRow(H,0)*A.lineHeight;return D-this.session.getScrollTop()>A.height-A.lineHeight?H-1:H},M.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},M.prototype.setPadding=function(A){this.$padding=A,this.$textLayer.setPadding(A),this.$cursorLayer.setPadding(A),this.$markerFront.setPadding(A),this.$markerBack.setPadding(A),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},M.prototype.setScrollMargin=function(A,H,D,T){var x=this.scrollMargin;x.top=A|0,x.bottom=H|0,x.right=T|0,x.left=D|0,x.v=x.top+x.bottom,x.h=x.left+x.right,x.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-x.top),this.updateFull()},M.prototype.setMargin=function(A,H,D,T){var x=this.margin;x.top=A|0,x.bottom=H|0,x.right=T|0,x.left=D|0,x.v=x.top+x.bottom,x.h=x.left+x.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},M.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},M.prototype.setHScrollBarAlwaysVisible=function(A){this.setOption("hScrollBarAlwaysVisible",A)},M.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},M.prototype.setVScrollBarAlwaysVisible=function(A){this.setOption("vScrollBarAlwaysVisible",A)},M.prototype.$updateScrollBarV=function(){var A=this.layerConfig.maxHeight,H=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(A-=(H-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>A-H&&(A=this.scrollTop+H,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(A+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},M.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},M.prototype.freeze=function(){this.$frozen=!0},M.prototype.unfreeze=function(){this.$frozen=!1},M.prototype.$renderChanges=function(A,H){if(this.$changes&&(A|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!A&&!H){this.$changes|=A;return}if(this.$size.$dirty)return this.$changes|=A,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",A),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var D=this.layerConfig;if(A&this.CHANGE_FULL||A&this.CHANGE_SIZE||A&this.CHANGE_TEXT||A&this.CHANGE_LINES||A&this.CHANGE_SCROLL||A&this.CHANGE_H_SCROLL){if(A|=this.$computeLayerConfig()|this.$loop.clear(),D.firstRow!=this.layerConfig.firstRow&&D.firstRowScreen==this.layerConfig.firstRowScreen){var T=this.scrollTop+(D.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;T>0&&(this.scrollTop=T,A=A|this.CHANGE_SCROLL,A|=this.$computeLayerConfig()|this.$loop.clear())}D=this.layerConfig,this.$updateScrollBarV(),A&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),_.translate(this.content,-this.scrollLeft,-D.offset);var x=D.width+2*this.$padding+"px",m=D.minHeight+"px";_.setStyle(this.content.style,"width",x),_.setStyle(this.content.style,"height",m)}if(A&this.CHANGE_H_SCROLL&&(_.translate(this.content,-this.scrollLeft,-D.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),A&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(D),this.$showGutter&&this.$gutterLayer.update(D),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(D),this.$markerBack.update(D),this.$markerFront.update(D),this.$cursorLayer.update(D),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}if(A&this.CHANGE_SCROLL){this.$changedLines=null,A&this.CHANGE_TEXT||A&this.CHANGE_LINES?this.$textLayer.update(D):this.$textLayer.scrollLines(D),this.$showGutter&&(A&this.CHANGE_GUTTER||A&this.CHANGE_LINES?this.$gutterLayer.update(D):this.$gutterLayer.scrollLines(D)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(D),this.$markerBack.update(D),this.$markerFront.update(D),this.$cursorLayer.update(D),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}A&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(D),this.$showGutter&&this.$gutterLayer.update(D),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(D)):A&this.CHANGE_LINES?((this.$updateLines()||A&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(D),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(D)):A&this.CHANGE_TEXT||A&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(D),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(D)):A&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(D),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(D)),A&this.CHANGE_CURSOR&&(this.$cursorLayer.update(D),this.$moveTextAreaToCursor()),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(D),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(D),this._signal("afterRender",A)},M.prototype.$autosize=function(){var A=this.session.getScreenLength()*this.lineHeight,H=this.$maxLines*this.lineHeight,D=Math.min(H,Math.max((this.$minLines||1)*this.lineHeight,A))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(D+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&D>this.$maxPixelHeight&&(D=this.$maxPixelHeight);var T=D<=2*this.lineHeight,x=!T&&A>H;if(D!=this.desiredHeight||this.$size.height!=this.desiredHeight||x!=this.$vScroll){x!=this.$vScroll&&(this.$vScroll=x,this.scrollBarV.setVisible(x));var m=this.container.clientWidth;this.container.style.height=D+"px",this.$updateCachedSize(!0,this.$gutterWidth,m,D),this.desiredHeight=D,this._signal("autosize")}},M.prototype.$computeLayerConfig=function(){var A=this.session,H=this.$size,D=H.height<=2*this.lineHeight,T=this.session.getScreenLength(),x=T*this.lineHeight,m=this.$getLongestLine(),E=!D&&(this.$hScrollBarAlwaysVisible||H.scrollerWidth-m-2*this.$padding<0),W=this.$horizScroll!==E;W&&(this.$horizScroll=E,this.scrollBarH.setVisible(E));var U=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),D=H.height<=2*this.lineHeight);var q=H.scrollerHeight+this.lineHeight,Q=!this.$maxLines&&this.$scrollPastEnd?(H.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;x+=Q;var te=this.scrollMargin;this.session.setScrollTop(Math.max(-te.top,Math.min(this.scrollTop,x-H.scrollerHeight+te.bottom))),this.session.setScrollLeft(Math.max(-te.left,Math.min(this.scrollLeft,m+2*this.$padding-H.scrollerWidth+te.right)));var ce=!D&&(this.$vScrollBarAlwaysVisible||H.scrollerHeight-x+Q<0||this.scrollTop>te.top),ne=U!==ce;ne&&(this.$vScroll=ce,this.scrollBarV.setVisible(ce));var he=this.scrollTop%this.lineHeight,ue=Math.ceil(q/this.lineHeight)-1,le=Math.max(0,Math.round((this.scrollTop-he)/this.lineHeight)),me=le+ue,Se,_e,Ae=this.lineHeight;le=A.screenToDocumentRow(le,0);var qe=A.getFoldLine(le);qe&&(le=qe.start.row),Se=A.documentToScreenRow(le,0),_e=A.getRowLength(le)*Ae,me=Math.min(A.screenToDocumentRow(me,0),A.getLength()-1),q=H.scrollerHeight+A.getRowLength(me)*Ae+_e,he=this.scrollTop-Se*Ae,he<0&&Se>0&&(Se=Math.max(0,Se+Math.floor(he/Ae)),he=this.scrollTop-Se*Ae);var Ue=0;return(this.layerConfig.width!=m||W)&&(Ue=this.CHANGE_H_SCROLL),(W||ne)&&(Ue|=this.$updateCachedSize(!0,this.gutterWidth,H.width,H.height),this._signal("scrollbarVisibilityChanged"),ne&&(m=this.$getLongestLine())),this.layerConfig={width:m,padding:this.$padding,firstRow:le,firstRowScreen:Se,lastRow:me,lineHeight:Ae,characterWidth:this.characterWidth,minHeight:q,maxHeight:x,offset:he,gutterOffset:Ae?Math.max(0,Math.ceil((he+H.height-H.scrollerHeight)/Ae)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(m-this.$padding),Ue},M.prototype.$updateLines=function(){if(this.$changedLines){var A=this.$changedLines.firstRow,H=this.$changedLines.lastRow;this.$changedLines=null;var D=this.layerConfig;if(!(A>D.lastRow+1)&&!(H<D.firstRow)){if(H===1/0){this.$showGutter&&this.$gutterLayer.update(D),this.$textLayer.update(D);return}return this.$textLayer.updateLines(D,A,H),!0}}},M.prototype.$getLongestLine=function(){var A=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(A+=1),this.$textLayer&&A>this.$textLayer.MAX_LINE_LENGTH&&(A=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(A*this.characterWidth))},M.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},M.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},M.prototype.addGutterDecoration=function(A,H){this.$gutterLayer.addGutterDecoration(A,H)},M.prototype.removeGutterDecoration=function(A,H){this.$gutterLayer.removeGutterDecoration(A,H)},M.prototype.updateBreakpoints=function(A){this._rows=A,this.$loop.schedule(this.CHANGE_GUTTER)},M.prototype.setAnnotations=function(A){this.$gutterLayer.setAnnotations(A),this.$loop.schedule(this.CHANGE_GUTTER)},M.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},M.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},M.prototype.showCursor=function(){this.$cursorLayer.showCursor()},M.prototype.scrollSelectionIntoView=function(A,H,D){this.scrollCursorIntoView(A,D),this.scrollCursorIntoView(H,D)},M.prototype.scrollCursorIntoView=function(A,H,D){if(this.$size.scrollerHeight!==0){var T=this.$cursorLayer.getPixelPosition(A),x=T.left,m=T.top,E=D&&D.top||0,W=D&&D.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var U=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;U+E>m?(H&&U+E>m+this.lineHeight&&(m-=H*this.$size.scrollerHeight),m===0&&(m=-this.scrollMargin.top),this.session.setScrollTop(m)):U+this.$size.scrollerHeight-W<m+this.lineHeight&&(H&&U+this.$size.scrollerHeight-W<m-this.lineHeight&&(m+=H*this.$size.scrollerHeight),this.session.setScrollTop(m+this.lineHeight+W-this.$size.scrollerHeight));var q=this.scrollLeft,Q=2*this.layerConfig.characterWidth;x-Q<q?(x-=Q,x<this.$padding+Q&&(x=-this.scrollMargin.left),this.session.setScrollLeft(x)):(x+=Q,q+this.$size.scrollerWidth<x+this.characterWidth?this.session.setScrollLeft(Math.round(x+this.characterWidth-this.$size.scrollerWidth)):q<=this.$padding&&x-q<this.characterWidth&&this.session.setScrollLeft(0))}},M.prototype.getScrollTop=function(){return this.session.getScrollTop()},M.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},M.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},M.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},M.prototype.scrollToRow=function(A){this.session.setScrollTop(A*this.lineHeight)},M.prototype.alignCursor=function(A,H){typeof A=="number"&&(A={row:A,column:0});var D=this.$cursorLayer.getPixelPosition(A),T=this.$size.scrollerHeight-this.lineHeight,x=D.top-T*(H||0);return this.session.setScrollTop(x),x},M.prototype.$calcSteps=function(A,H){var D=0,T=this.STEPS,x=[],m=function(E,W,U){return U*(Math.pow(E-1,3)+1)+W};for(D=0;D<T;++D)x.push(m(D/this.STEPS,A,H-A));return x},M.prototype.scrollToLine=function(A,H,D,T){var x=this.$cursorLayer.getPixelPosition({row:A,column:0}),m=x.top;H&&(m-=this.$size.scrollerHeight/2);var E=this.scrollTop;this.session.setScrollTop(m),D!==!1&&this.animateScrolling(E,T)},M.prototype.animateScrolling=function(A,H){var D=this.scrollTop;if(!this.$animatedScroll)return;var T=this;if(A==D)return;if(this.$scrollAnimation){var x=this.$scrollAnimation.steps;if(x.length&&(A=x[0],A==D))return}var m=T.$calcSteps(A,D);this.$scrollAnimation={from:A,to:D,steps:m},clearInterval(this.$timer),T.session.setScrollTop(m.shift()),T.session.$scrollTop=D;function E(){T.$timer=clearInterval(T.$timer),T.$scrollAnimation=null,T.$stopAnimation=!1,H&&H()}this.$timer=setInterval(function(){if(T.$stopAnimation){E();return}if(!T.session)return clearInterval(T.$timer);m.length?(T.session.setScrollTop(m.shift()),T.session.$scrollTop=D):D!=null?(T.session.$scrollTop=-1,T.session.setScrollTop(D),D=null):E()},10)},M.prototype.scrollToY=function(A){this.scrollTop!==A&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=A)},M.prototype.scrollToX=function(A){this.scrollLeft!==A&&(this.scrollLeft=A),this.$loop.schedule(this.CHANGE_H_SCROLL)},M.prototype.scrollTo=function(A,H){this.session.setScrollTop(H),this.session.setScrollLeft(A)},M.prototype.scrollBy=function(A,H){H&&this.session.setScrollTop(this.session.getScrollTop()+H),A&&this.session.setScrollLeft(this.session.getScrollLeft()+A)},M.prototype.isScrollableBy=function(A,H){if(H<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||H>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||A<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||A>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},M.prototype.pixelToScreenCoordinates=function(A,H){var D;if(this.$hasCssTransforms){D={top:0,left:0};var T=this.$fontMetrics.transformCoordinates([A,H]);A=T[1]-this.gutterWidth-this.margin.left,H=T[0]}else D=this.scroller.getBoundingClientRect();var x=A+this.scrollLeft-D.left-this.$padding,m=x/this.characterWidth,E=Math.floor((H+this.scrollTop-D.top)/this.lineHeight),W=this.$blockCursor?Math.floor(m):Math.round(m);return{row:E,column:W,side:m-W>0?1:-1,offsetX:x}},M.prototype.screenToTextCoordinates=function(A,H){var D;if(this.$hasCssTransforms){D={top:0,left:0};var T=this.$fontMetrics.transformCoordinates([A,H]);A=T[1]-this.gutterWidth-this.margin.left,H=T[0]}else D=this.scroller.getBoundingClientRect();var x=A+this.scrollLeft-D.left-this.$padding,m=x/this.characterWidth,E=this.$blockCursor?Math.floor(m):Math.round(m),W=Math.floor((H+this.scrollTop-D.top)/this.lineHeight);return this.session.screenToDocumentPosition(W,Math.max(E,0),x)},M.prototype.textToScreenCoordinates=function(A,H){var D=this.scroller.getBoundingClientRect(),T=this.session.documentToScreenPosition(A,H),x=this.$padding+(this.session.$bidiHandler.isBidiRow(T.row,A)?this.session.$bidiHandler.getPosLeft(T.column):Math.round(T.column*this.characterWidth)),m=T.row*this.lineHeight;return{pageX:D.left+x-this.scrollLeft,pageY:D.top+m-this.scrollTop}},M.prototype.visualizeFocus=function(){_.addCssClass(this.container,"ace_focus")},M.prototype.visualizeBlur=function(){_.removeCssClass(this.container,"ace_focus")},M.prototype.showComposition=function(A){this.$composition=A,A.cssText||(A.cssText=this.textarea.style.cssText),A.useTextareaForIME==null&&(A.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(_.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):A.markerId=this.session.addMarker(A.markerRange,"ace_composition_marker","text")},M.prototype.setCompositionText=function(A){var H=this.session.selection.cursor;this.addToken(A,"composition_placeholder",H.row,H.column),this.$moveTextAreaToCursor()},M.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),_.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var A=this.session.selection.cursor;this.removeExtraToken(A.row,A.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},M.prototype.setGhostText=function(A,H){var D=this.session.selection.cursor,T=H||{row:D.row,column:D.column};this.removeGhostText();var x=this.$calculateWrappedTextChunks(A,T);this.addToken(x[0].text,"ghost_text",T.row,T.column),this.$ghostText={text:A,position:{row:T.row,column:T.column}};var m=_.createElement("div");if(x.length>1){var E=this.hideTokensAfterPosition(T.row,T.column),W;x.slice(1).forEach(function(ne){var he=_.createElement("div"),ue=_.createElement("span");ue.className="ace_ghost_text",ne.wrapped&&(he.className="ghost_text_line_wrapped"),ne.text.length===0&&(ne.text=" "),ue.appendChild(_.createTextNode(ne.text)),he.appendChild(ue),m.appendChild(he),W=he}),E.forEach(function(ne){var he=_.createElement("span");$(ne.type)||(he.className="ace_"+ne.type.replace(/\./g," ace_")),he.appendChild(_.createTextNode(ne.value)),W.appendChild(he)}),this.$ghostTextWidget={el:m,row:T.row,column:T.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var U=this.$cursorLayer.getPixelPosition(T,!0),q=this.container,Q=q.getBoundingClientRect().height,te=x.length*this.lineHeight,ce=te<Q-U.top;if(ce)return;te<Q?this.scrollBy(0,(x.length-1)*this.lineHeight):this.scrollToRow(T.row)}},M.prototype.$calculateWrappedTextChunks=function(A,H){var D=this.$size.scrollerWidth-this.$padding*2,T=Math.floor(D/this.characterWidth)-2;T=T<=0?60:T;for(var x=A.split(/\r?\n/),m=[],E=0;E<x.length;E++){var W=this.session.$getDisplayTokens(x[E],H.column),U=this.session.$computeWrapSplits(W,T,this.session.$tabSize);if(U.length>0){var q=0;U.push(x[E].length);for(var Q=0;Q<U.length;Q++){var te=x[E].slice(q,U[Q]);m.push({text:te,wrapped:!0}),q=U[Q]}}else m.push({text:x[E],wrapped:!1})}return m},M.prototype.removeGhostText=function(){if(this.$ghostText){var A=this.$ghostText.position;this.removeExtraToken(A.row,A.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},M.prototype.addToken=function(A,H,D,T){var x=this.session;x.bgTokenizer.lines[D]=null;var m={type:H,value:A},E=x.getTokens(D);if(T==null||!E.length)E.push(m);else for(var W=0,U=0;U<E.length;U++){var q=E[U];if(W+=q.value.length,T<=W){var Q=q.value.length-(W-T),te=q.value.slice(0,Q),ce=q.value.slice(Q);E.splice(U,1,{type:q.type,value:te},m,{type:q.type,value:ce});break}}this.updateLines(D,D)},M.prototype.hideTokensAfterPosition=function(A,H){for(var D=this.session.getTokens(A),T=0,x=!1,m=[],E=0;E<D.length;E++){var W=D[E];if(T+=W.value.length,W.type!=="ghost_text"){if(x){m.push({type:W.type,value:W.value}),W.type="hidden_token";continue}T===H&&(x=!0)}}return this.updateLines(A,A),m},M.prototype.removeExtraToken=function(A,H){this.session.bgTokenizer.lines[A]=null,this.updateLines(A,A)},M.prototype.setTheme=function(A,H){var D=this;if(this.$themeId=A,D._dispatchEvent("themeChange",{theme:A}),!A||typeof A=="string"){var T=A||this.$options.theme.initialValue;u.loadModule(["theme",T],x)}else x(A);function x(m){if(D.$themeId!=A)return H&&H();if(!m||!m.cssClass)throw new Error("couldn't load module "+A+" or it didn't call define");m.$id&&(D.$themeId=m.$id),_.importCssString(m.cssText,m.cssClass,D.container),D.theme&&_.removeCssClass(D.container,D.theme.cssClass);var E="padding"in m?m.padding:"padding"in(D.theme||{})?4:D.$padding;if(D.$padding&&E!=D.$padding&&D.setPadding(E),D.$gutterLayer){var W=m.$showGutterCursorMarker;W&&!D.$gutterLayer.$showCursorMarker?D.$gutterLayer.$showCursorMarker="theme":!W&&D.$gutterLayer.$showCursorMarker=="theme"&&(D.$gutterLayer.$showCursorMarker=null)}D.$theme=m.cssClass,D.theme=m,_.addCssClass(D.container,m.cssClass),_.setCssClass(D.container,"ace_dark",m.isDark),D.$size&&(D.$size.width=0,D.$updateSizeAsync()),D._dispatchEvent("themeLoaded",{theme:m}),H&&H(),p.isSafari&&D.scroller&&(D.scroller.style.background="red",D.scroller.style.background="")}},M.prototype.getTheme=function(){return this.$themeId},M.prototype.setStyle=function(A,H){_.setCssClass(this.container,A,H!==!1)},M.prototype.unsetStyle=function(A){_.removeCssClass(this.container,A)},M.prototype.setCursorStyle=function(A){_.setStyle(this.scroller.style,"cursor",A)},M.prototype.setMouseCursor=function(A){_.setStyle(this.scroller.style,"cursor",A)},M.prototype.attachToShadowRoot=function(){_.importCssString(C,"ace_editor.css",this.container)},M.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},M.prototype.$updateCustomScrollbar=function(A){var H=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),A===!0?(this.scrollBarV=new a(this.container,this),this.scrollBarH=new n(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(D){H.$scrollAnimation||H.session.setScrollTop(D.data-H.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(D){H.$scrollAnimation||H.session.setScrollLeft(D.data-H.scrollMargin.left)}),this.$scrollDecorator?(this.$scrollDecorator.setScrollBarV(this.scrollBarV),this.$scrollDecorator.$updateDecorators()):(this.$scrollDecorator=new y(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators())):(this.scrollBarV=new t(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.addEventListener("scroll",function(D){H.$scrollAnimation||H.session.setScrollTop(D.data-H.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(D){H.$scrollAnimation||H.session.setScrollLeft(D.data-H.scrollMargin.left)}))},M.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var A=this;this.$resizeTimer=S.delayedCall(function(){A.destroyed||A.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(H){var D=H[0].contentRect.width,T=H[0].contentRect.height;Math.abs(A.$size.width-D)>1||Math.abs(A.$size.height-T)>1?A.$resizeTimer.delay():A.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},M})();I.prototype.CHANGE_CURSOR=1,I.prototype.CHANGE_MARKER=2,I.prototype.CHANGE_GUTTER=4,I.prototype.CHANGE_SCROLL=8,I.prototype.CHANGE_LINES=16,I.prototype.CHANGE_TEXT=32,I.prototype.CHANGE_SIZE=64,I.prototype.CHANGE_MARKER_BACK=128,I.prototype.CHANGE_MARKER_FRONT=256,I.prototype.CHANGE_FULL=512,I.prototype.CHANGE_H_SCROLL=1024,I.prototype.$changes=0,I.prototype.$padding=null,I.prototype.$frozen=!1,I.prototype.STEPS=8,R.implement(I.prototype,L),u.defineOptions(I.prototype,"renderer",{useResizeObserver:{set:function(M){!M&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):M&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(M){this.$textLayer.setShowInvisibles(M)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(M){typeof M=="number"&&(this.$printMarginColumn=M),this.$showPrintMargin=!!M,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(M){this.$gutter.style.display=M?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(M){this.$gutterLayer.$useSvgGutterIcons=M},initialValue:!1},showFoldedAnnotations:{set:function(M){this.$gutterLayer.$showFoldedAnnotations=M},initialValue:!1},fadeFoldWidgets:{set:function(M){_.setCssClass(this.$gutter,"ace_fade-fold-widgets",M)},initialValue:!1},showFoldWidgets:{set:function(M){this.$gutterLayer.setShowFoldWidgets(M),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(M){this.$textLayer.setDisplayIndentGuides(M)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(M){this.$textLayer.setHighlightIndentGuides(M)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(M){this.$gutterLayer.setHighlightGutterLine(M),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(M){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(M){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(M){typeof M=="number"&&(M=M+"px"),this.container.style.fontSize=M,this.updateFontSize()},initialValue:12},fontFamily:{set:function(M){this.container.style.fontFamily=M,this.updateFontSize()}},maxLines:{set:function(M){this.updateFull()}},minLines:{set:function(M){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(M){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(M){M=+M||0,this.$scrollPastEnd!=M&&(this.$scrollPastEnd=M,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(M){this.$gutterLayer.$fixedWidth=!!M,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(M){this.$updateCustomScrollbar(M)},initialValue:!1},theme:{set:function(M){this.setTheme(M)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!p.isMobile&&!p.isIE}}),b.VirtualRenderer=I}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(f,b,z){var R=f("../lib/oop"),_=f("../lib/net"),S=f("../lib/event_emitter").EventEmitter,u=f("../config");function h(r){var t="importScripts('"+_.qualifyURL(r)+"');";try{return new Blob([t],{type:"application/javascript"})}catch{var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,a=new n;return a.append(t),a.getBlob("application/javascript")}}function s(r){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(u.get("loadWorkerFromBlob")){var t=h(r),n=window.URL||window.webkitURL,a=n.createObjectURL(t);return new Worker(a)}return new Worker(r)}var o=function(r){r.postMessage||(r=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=r,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){R.implement(this,S),this.$createWorkerFromOldConfig=function(r,t,n,a,d){if(f.nameToUrl&&!f.toUrl&&(f.toUrl=f.nameToUrl),u.get("packaged")||!f.toUrl)a=a||u.moduleUrl(t,"worker");else{var g=this.$normalizePath;a=a||g(f.toUrl("ace/worker/worker.js",null,"_"));var L={};r.forEach(function(C){L[C]=g(f.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(a),d&&this.send("importScripts",d),this.$worker.postMessage({init:!0,tlns:L,module:t,classname:n}),this.$worker},this.onMessage=function(r){var t=r.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data);break}},this.reportError=function(r){window.console&&console.error&&console.error(r)},this.$normalizePath=function(r){return _.qualifyURL(r)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(r){r.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(r,t){this.$worker.postMessage({command:r,args:t})},this.call=function(r,t,n){if(n){var a=this.callbackId++;this.callbacks[a]=n,t.push(a)}this.send(r,t)},this.emit=function(r,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:r,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(r){this.$doc&&this.terminate(),this.$doc=r,this.call("setValue",[r.getValue()]),r.on("change",this.changeListener,!0)},this.changeListener=function(r){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),r.action=="insert"?this.deltaQueue.push(r.start,r.lines):this.deltaQueue.push(r.start,r.end)},this.$sendDeltaQueue=function(){var r=this.deltaQueue;r&&(this.deltaQueue=null,r.length>50&&r.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:r}))}}).call(o.prototype);var i=function(r,t,n){var a=null,d=!1,g=Object.create(S),L=[],C=new o({messageBuffer:L,terminate:function(){},postMessage:function(p){L.push(p),a&&(d?setTimeout(y):y())}});C.setEmitSync=function(p){d=p};var y=function(){var p=L.shift();p.command?a[p.command].apply(a,p.args):p.event&&g._signal(p.event,p.data)};return g.postMessage=function(p){C.onMessage({data:p})},g.callback=function(p,$){this.postMessage({type:"call",id:$,data:p})},g.emit=function(p,$){this.postMessage({type:"event",name:p,data:$})},u.loadModule(["worker",t],function(p){for(a=new p[n](g);L.length;)y()}),C};b.UIWorkerClient=i,b.WorkerClient=o,b.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(f,b,z){var R=f("./range").Range,_=f("./lib/event_emitter").EventEmitter,S=f("./lib/oop"),u=(function(){function h(s,o,i,r,t,n){var a=this;this.length=o,this.session=s,this.doc=s.getDocument(),this.mainClass=t,this.othersClass=n,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){a.onCursorChange()})},this.$pos=i;var d=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=d.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return h.prototype.setup=function(){var s=this,o=this.doc,i=this.session;this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=o.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=i.addMarker(new R(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(t){var n=o.createAnchor(t.row,t.column);n.$insertRight=!0,n.detach(),s.others.push(n)}),i.setUndoSelect(!1)},h.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,o=this;this.othersActive=!0,this.others.forEach(function(i){i.markerId=s.addMarker(new R(i.row,i.column,i.row,i.column+o.length),o.othersClass,null,!1)})}},h.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s<this.others.length;s++)this.session.removeMarker(this.others[s].markerId)}},h.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var o=s;if(o.start.row===o.end.row&&o.start.row===this.pos.row){this.$updating=!0;var i=s.action==="insert"?o.end.column-o.start.column:o.start.column-o.end.column,r=o.start.column>=this.pos.column&&o.start.column<=this.pos.column+this.length+1,t=o.start.column-this.pos.column;if(this.updateAnchors(s),r&&(this.length+=i),r&&!this.session.$fromUndo){if(s.action==="insert")for(var n=this.others.length-1;n>=0;n--){var a=this.others[n],d={row:a.row,column:a.column+t};this.doc.insertMergedLines(d,s.lines)}else if(s.action==="remove")for(var n=this.others.length-1;n>=0;n--){var a=this.others[n],d={row:a.row,column:a.column+t};this.doc.remove(new R(d.row,d.column,d.row,d.column-i))}}this.$updating=!1,this.updateMarkers()}},h.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var o=this.others.length;o--;)this.others[o].onChange(s);this.updateMarkers()},h.prototype.updateMarkers=function(){if(!this.$updating){var s=this,o=this.session,i=function(t,n){o.removeMarker(t.markerId),t.markerId=o.addMarker(new R(t.row,t.column,t.row,t.column+s.length),n,null,!1)};i(this.pos,this.mainClass);for(var r=this.others.length;r--;)i(this.others[r],this.othersClass)}},h.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var o=this.session.selection.getCursor();o.row===this.pos.row&&o.column>=this.pos.column&&o.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},h.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},h.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),o=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,i=0;i<o;i++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},h})();S.implement(u.prototype,_),b.PlaceHolder=u}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(f,b,z){var R=f("../lib/event"),_=f("../lib/useragent");function S(h,s){return h.row==s.row&&h.column==s.column}function u(h){var s=h.domEvent,o=s.altKey,i=s.shiftKey,r=s.ctrlKey,t=h.getAccelKey(),n=h.getButton();if(r&&_.isMac&&(n=s.button),h.editor.inMultiSelectMode&&n==2){h.editor.textInput.onContextMenu(h.domEvent);return}if(!r&&!o&&!t){n===0&&h.editor.inMultiSelectMode&&h.editor.exitMultiSelectMode();return}if(n===0){var a=h.editor,d=a.selection,g=a.inMultiSelectMode,L=h.getDocumentPosition(),C=d.getCursor(),y=h.inSelection()||d.isEmpty()&&S(L,C),p=h.x,$=h.y,I=function(te){p=te.clientX,$=te.clientY},M=a.session,A=a.renderer.pixelToScreenCoordinates(p,$),H=A,D;if(a.$mouseHandler.$enableJumpToDef)r&&o||t&&o?D=i?"block":"add":o&&a.$blockSelectEnabled&&(D="block");else if(t&&!o){if(D="add",!g&&i)return}else o&&a.$blockSelectEnabled&&(D="block");if(D&&_.isMac&&s.ctrlKey&&a.$mouseHandler.cancelContextMenu(),D=="add"){if(!g&&y)return;if(!g){var T=d.toOrientedRange();a.addSelectionMarker(T)}var x=d.rangeList.rangeAtPoint(L);a.inVirtualSelectionMode=!0,i&&(x=null,T=d.ranges[0]||T,a.removeSelectionMarker(T)),a.once("mouseup",function(){var te=d.toOrientedRange();x&&te.isEmpty()&&S(x.cursor,te.cursor)?d.substractPoint(te.cursor):(i?d.substractPoint(T.cursor):T&&(a.removeSelectionMarker(T),d.addRange(T)),d.addRange(te)),a.inVirtualSelectionMode=!1})}else if(D=="block"){h.stop(),a.inVirtualSelectionMode=!0;var m,E=[],W=function(){var te=a.renderer.pixelToScreenCoordinates(p,$),ce=M.screenToDocumentPosition(te.row,te.column,te.offsetX);S(H,te)&&S(ce,d.lead)||(H=te,a.selection.moveToPosition(ce),a.renderer.scrollCursorIntoView(),a.removeSelectionMarkers(E),E=d.rectangularRangeBlock(H,A),a.$mouseHandler.$clickSelection&&E.length==1&&E[0].isEmpty()&&(E[0]=a.$mouseHandler.$clickSelection.clone()),E.forEach(a.addSelectionMarker,a),a.updateSelectionMarkers())};g&&!t?d.toSingleRange():!g&&t&&(m=d.toOrientedRange(),a.addSelectionMarker(m)),i?A=M.documentToScreenPosition(d.lead):d.moveToPosition(L),H={row:-1,column:-1};var U=function(te){W(),clearInterval(Q),a.removeSelectionMarkers(E),E.length||(E=[d.toOrientedRange()]),m&&(a.removeSelectionMarker(m),d.toSingleRange(m));for(var ce=0;ce<E.length;ce++)d.addRange(E[ce]);a.inVirtualSelectionMode=!1,a.$mouseHandler.$clickSelection=null},q=W;R.capture(a.container,I,U);var Q=setInterval(function(){q()},20);return h.preventDefault()}}}b.onMouseDown=u}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(f,b,z){b.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(_){_.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(_){_.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(_){_.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(_){_.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(_){_.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(_){_.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(_){_.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(_){_.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(_){_.multiSelect.rangeCount>1?_.multiSelect.joinSelections():_.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(_){_.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(_){_.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(_){_.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],b.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(_){_.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(_){return _&&_.inMultiSelectMode}}];var R=f("../keyboard/hash_handler").HashHandler;b.keyboardHandler=new R(b.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(f,b,z){var R=f("./range_list").RangeList,_=f("./range").Range,S=f("./selection").Selection,u=f("./mouse/multi_select_handler").onMouseDown,h=f("./lib/event"),s=f("./lib/lang"),o=f("./commands/multi_select_commands");b.commands=o.defaultCommands.concat(o.multiSelectCommands);var i=f("./search").Search,r=new i;function t(C,y,p){return r.$options.wrap=!0,r.$options.needle=y,r.$options.backwards=p==-1,r.find(C)}var n=f("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(n.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(C,y){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var p=this.toOrientedRange();if(this.rangeList.add(p),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),y||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add(p),this.$onAddRange(p)}C.cursor||(C.cursor=C.end);var $=this.rangeList.add(C);return this.$onAddRange(C),$.length&&this.$onRemoveRange($),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),y||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var y=this.rangeList.removeAll();y.length&&this.$onRemoveRange(y),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){var y=this.rangeList.substractPoint(C);if(y)return this.$onRemoveRange(y),y[0]},this.mergeOverlappingRanges=function(){var C=this.rangeList.merge();C.length&&this.$onRemoveRange(C)},this.$onAddRange=function(C){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(C),this._signal("addRange",{range:C})},this.$onRemoveRange=function(C){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var y=this.rangeList.ranges.pop();C.push(y),this.rangeCount=0}for(var p=C.length;p--;){var $=this.ranges.indexOf(C[p]);this.ranges.splice($,1)}this._signal("removeRange",{ranges:C}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),y=y||this.ranges[0],y&&!y.isEqual(this.getRange())&&this.fromOrientedRange(y)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new R,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var C=this.ranges.length?this.ranges:[this.getRange()],y=[],p=0;p<C.length;p++){var $=C[p],I=$.start.row,M=$.end.row;if(I===M)y.push($.clone());else{for(y.push(new _(I,$.start.column,I,this.session.getLine(I).length));++I<M;)y.push(this.getLineRange(I,!0));y.push(new _(M,0,M,$.end.column))}p==0&&!this.isBackwards()&&(y=y.reverse())}this.toSingleRange();for(var p=y.length;p--;)this.addRange(y[p])},this.joinSelections=function(){var C=this.rangeList.ranges,y=C[C.length-1],p=_.fromPoints(C[0].start,y.end);this.toSingleRange(),this.setSelectionRange(p,y.cursor==y.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var C=this.rangeList.ranges,y=C[C.length-1],p=_.fromPoints(C[0].start,y.end);this.toSingleRange(),this.setSelectionRange(p,y.cursor==y.start)}else{var $=this.session.documentToScreenPosition(this.cursor),I=this.session.documentToScreenPosition(this.anchor),M=this.rectangularRangeBlock($,I);M.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,y,p){var $=[],I=C.column<y.column;if(I)var M=C.column,A=y.column,H=C.offsetX,D=y.offsetX;else var M=y.column,A=C.column,H=y.offsetX,D=C.offsetX;var T=C.row<y.row;if(T)var x=C.row,m=y.row;else var x=y.row,m=C.row;M<0&&(M=0),x<0&&(x=0),x==m&&(p=!0);for(var E,W=x;W<=m;W++){var U=_.fromPoints(this.session.screenToDocumentPosition(W,M,H),this.session.screenToDocumentPosition(W,A,D));if(U.isEmpty()){if(E&&d(U.end,E))break;E=U.end}U.cursor=I?U.start:U.end,$.push(U)}if(T&&$.reverse(),!p){for(var q=$.length-1;$[q].isEmpty()&&q>0;)q--;if(q>0)for(var Q=0;$[Q].isEmpty();)Q++;for(var te=q;te>=Q;te--)$[te].isEmpty()&&$.splice(te,1)}return $}}).call(S.prototype);var a=f("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(C){C.cursor||(C.cursor=C.end);var y=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",y),this.session.$selectionMarkers.push(C),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,C},this.removeSelectionMarker=function(C){if(C.marker){this.session.removeMarker(C.marker);var y=this.session.$selectionMarkers.indexOf(C);y!=-1&&this.session.$selectionMarkers.splice(y,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(C){for(var y=this.session.$selectionMarkers,p=C.length;p--;){var $=C[p];if($.marker){this.session.removeMarker($.marker);var I=y.indexOf($);I!=-1&&y.splice(I,1)}}this.session.selectionMarkerCount=y.length},this.$onAddRange=function(C){this.addSelectionMarker(C.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(C){this.removeSelectionMarkers(C.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(C){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(o.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(C){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(o.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var y=C.command,p=C.editor;if(p.multiSelect){if(y.multiSelectAction)y.multiSelectAction=="forEach"?$=p.forEachSelection(y,C.args):y.multiSelectAction=="forEachLine"?$=p.forEachSelection(y,C.args,!0):y.multiSelectAction=="single"?(p.exitMultiSelectMode(),$=y.exec(p,C.args||{})):$=y.multiSelectAction(p,C.args||{});else{var $=y.exec(p,C.args||{});p.multiSelect.addRange(p.multiSelect.toOrientedRange()),p.multiSelect.mergeOverlappingRanges()}return $}},this.forEachSelection=function(C,y,p){if(!this.inVirtualSelectionMode){var $=p&&p.keepOrder,I=p==!0||p&&p.$byLines,M=this.session,A=this.selection,H=A.rangeList,D=($?A:H).ranges,T;if(!D.length)return C.exec?C.exec(this,y||{}):C(this,y||{});var x=A._eventRegistry;A._eventRegistry={};var m=new S(M);this.inVirtualSelectionMode=!0;for(var E=D.length;E--;){if(I)for(;E>0&&D[E].start.row==D[E-1].end.row;)E--;m.fromOrientedRange(D[E]),m.index=E,this.selection=M.selection=m;var W=C.exec?C.exec(this,y||{}):C(this,y||{});!T&&W!==void 0&&(T=W),m.toOrientedRange(D[E])}m.detach(),this.selection=M.selection=A,this.inVirtualSelectionMode=!1,A._eventRegistry=x,A.mergeOverlappingRanges(),A.ranges[0]&&A.fromOrientedRange(A.ranges[0]);var U=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),U&&U.from==U.to&&this.renderer.animateScrolling(U.from),T}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var C="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var y=this.multiSelect.rangeList.ranges,p=[],$=0;$<y.length;$++)p.push(this.session.getTextRange(y[$]));var I=this.session.getDocument().getNewLineCharacter();C=p.join(I),C.length==(p.length-1)*I.length&&(C="")}else this.selection.isEmpty()||(C=this.session.getTextRange(this.getSelectionRange()));return C},this.$checkMultiselectChange=function(C,y){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var p=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&y==this.multiSelect.anchor)return;var $=y==this.multiSelect.anchor?p.cursor==p.start?p.end:p.start:p.cursor;$.row!=y.row||this.session.$clipPositionToDocument($.row,$.column).column!=y.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(C,y,p){if(y=y||{},y.needle=C||y.needle,y.needle==null){var $=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();y.needle=this.session.getTextRange($)}this.$search.set(y);var I=this.$search.findAll(this.session);if(!I.length)return 0;var M=this.multiSelect;p||M.toSingleRange(I[0]);for(var A=I.length;A--;)M.addRange(I[A],!0);return $&&M.rangeList.rangeAtPoint($.start)&&M.addRange($,!0),I.length},this.selectMoreLines=function(C,y){var p=this.selection.toOrientedRange(),$=p.cursor==p.end,I=this.session.documentToScreenPosition(p.cursor);this.selection.$desiredColumn&&(I.column=this.selection.$desiredColumn);var M=this.session.screenToDocumentPosition(I.row+C,I.column);if(p.isEmpty())var H=M;else var A=this.session.documentToScreenPosition($?p.end:p.start),H=this.session.screenToDocumentPosition(A.row+C,A.column);if($){var D=_.fromPoints(M,H);D.cursor=D.start}else{var D=_.fromPoints(H,M);D.cursor=D.end}if(D.desiredColumn=I.column,!this.selection.inMultiSelectMode)this.selection.addRange(p);else if(y)var T=p.cursor;this.selection.addRange(D),T&&this.selection.substractPoint(T)},this.transposeSelections=function(C){for(var y=this.session,p=y.multiSelect,$=p.ranges,I=$.length;I--;){var M=$[I];if(M.isEmpty()){var A=y.getWordRange(M.start.row,M.start.column);M.start.row=A.start.row,M.start.column=A.start.column,M.end.row=A.end.row,M.end.column=A.end.column}}p.mergeOverlappingRanges();for(var H=[],I=$.length;I--;){var M=$[I];H.unshift(y.getTextRange(M))}C<0?H.unshift(H.pop()):H.push(H.shift());for(var I=$.length;I--;){var M=$[I],D=M.clone();y.replace(M,H[I]),M.start.row=D.start.row,M.start.column=D.start.column}p.fromOrientedRange(p.ranges[0])},this.selectMore=function(C,y,p){var $=this.session,I=$.multiSelect,M=I.toOrientedRange();if(!(M.isEmpty()&&(M=$.getWordRange(M.start.row,M.start.column),M.cursor=C==-1?M.start:M.end,this.multiSelect.addRange(M),p))){var A=$.getTextRange(M),H=t($,A,C);H&&(H.cursor=C==-1?H.start:H.end,this.session.unfold(H),this.multiSelect.addRange(H),this.renderer.scrollCursorIntoView(null,.5)),y&&this.multiSelect.substractPoint(M.cursor)}},this.alignCursors=function(){var C=this.session,y=C.multiSelect,p=y.ranges,$=-1,I=p.filter(function(q){if(q.cursor.row==$)return!0;$=q.cursor.row});if(!p.length||I.length==p.length-1){var M=this.selection.getRange(),A=M.start.row,H=M.end.row,D=A==H;if(D){var T=this.session.getLength(),x;do x=this.session.getLine(H);while(/[=:]/.test(x)&&++H<T);do x=this.session.getLine(A);while(/[=:]/.test(x)&&--A>0);A<0&&(A=0),H>=T&&(H=T-1)}var m=this.session.removeFullLines(A,H);m=this.$reAlignText(m,D),this.session.insert({row:A,column:0},m.join(`
|
|
945
|
+
`)+`
|
|
946
|
+
`),D||(M.start.column=0,M.end.column=m[m.length-1].length),this.selection.setRange(M)}else{I.forEach(function(q){y.substractPoint(q.cursor)});var E=0,W=1/0,U=p.map(function(q){var Q=q.cursor,te=C.getLine(Q.row),ce=te.substr(Q.column).search(/\S/g);return ce==-1&&(ce=0),Q.column>E&&(E=Q.column),ce<W&&(W=ce),ce});p.forEach(function(q,Q){var te=q.cursor,ce=E-te.column,ne=U[Q]-W;ce>ne?C.insert(te,s.stringRepeat(" ",ce-ne)):C.remove(new _(te.row,te.column,te.row,te.column-ce+ne)),q.start.column=q.end.column=E,q.start.row=q.end.row=te.row,q.cursor=q.end}),y.fromOrientedRange(p[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,y){var p=!0,$=!0,I,M,A;return C.map(function(m){var E=m.match(/(\s*)(.*?)(\s*)([=:].*)/);return E?I==null?(I=E[1].length,M=E[2].length,A=E[3].length,E):(I+M+A!=E[1].length+E[2].length+E[3].length&&($=!1),I!=E[1].length&&(p=!1),I>E[1].length&&(I=E[1].length),M<E[2].length&&(M=E[2].length),A>E[3].length&&(A=E[3].length),E):[m]}).map(y?D:p?$?T:D:x);function H(m){return s.stringRepeat(" ",m)}function D(m){return m[2]?H(I)+m[2]+H(M-m[2].length+A)+m[4].replace(/^([=:])\s+/,"$1 "):m[0]}function T(m){return m[2]?H(I+M-m[2].length)+m[2]+H(A)+m[4].replace(/^([=:])\s+/,"$1 "):m[0]}function x(m){return m[2]?H(I)+m[2]+H(A)+m[4].replace(/^([=:])\s+/,"$1 "):m[0]}}}).call(a.prototype);function d(C,y){return C.row==y.row&&C.column==y.column}b.onSessionChange=function(C){var y=C.session;y&&!y.multiSelect&&(y.$selectionMarkers=[],y.selection.$initRangeList(),y.multiSelect=y.selection),this.multiSelect=y&&y.multiSelect;var p=C.oldSession;p&&(p.multiSelect.off("addRange",this.$onAddRange),p.multiSelect.off("removeRange",this.$onRemoveRange),p.multiSelect.off("multiSelect",this.$onMultiSelect),p.multiSelect.off("singleSelect",this.$onSingleSelect),p.multiSelect.lead.off("change",this.$checkMultiselectChange),p.multiSelect.anchor.off("change",this.$checkMultiselectChange)),y&&(y.multiSelect.on("addRange",this.$onAddRange),y.multiSelect.on("removeRange",this.$onRemoveRange),y.multiSelect.on("multiSelect",this.$onMultiSelect),y.multiSelect.on("singleSelect",this.$onSingleSelect),y.multiSelect.lead.on("change",this.$checkMultiselectChange),y.multiSelect.anchor.on("change",this.$checkMultiselectChange)),y&&this.inMultiSelectMode!=y.selection.inMultiSelectMode&&(y.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function g(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=b.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",u),C.commands.addCommands(o.defaultCommands),L(C))}function L(C){if(!C.textInput)return;var y=C.textInput.getElement(),p=!1;h.addListener(y,"keydown",function(I){var M=I.keyCode==18&&!(I.ctrlKey||I.shiftKey||I.metaKey);C.$blockSelectEnabled&&M?p||(C.renderer.setMouseCursor("crosshair"),p=!0):p&&$()},C),h.addListener(y,"keyup",$,C),h.addListener(y,"blur",$,C);function $(I){p&&(C.renderer.setMouseCursor(""),p=!1)}}b.MultiSelect=g,f("./config").defineOptions(a.prototype,"editor",{enableMultiselect:{set:function(C){g(this),C?this.on("mousedown",u):this.off("mousedown",u)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(f,b,z){var R=f("../../range").Range,_=b.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(S,u,h){var s=S.getLine(h);return this.foldingStartMarker.test(s)?"start":u=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(S,u,h){return null},this.indentationBlock=function(S,u,h){var s=/\S/,o=S.getLine(u),i=o.search(s);if(i!=-1){for(var r=h||o.length,t=S.getLength(),n=u,a=u;++u<t;){var d=S.getLine(u).search(s);if(d!=-1){if(d<=i){var g=S.getTokenAt(u,0);if(!g||g.type!=="string")break}a=u}}if(a>n){var L=S.getLine(a).length;return new R(n,r,a,L)}}},this.openingBracketBlock=function(S,u,h,s,o){var i={row:h,column:s+1},r=S.$findClosingBracket(u,i,o);if(r){var t=S.foldWidgets[r.row];return t==null&&(t=S.getFoldWidget(r.row)),t=="start"&&r.row>i.row&&(r.row--,r.column=S.getLine(r.row).length),R.fromPoints(i,r)}},this.closingBracketBlock=function(S,u,h,s,o){var i={row:h,column:s},r=S.$findOpeningBracket(u,i);if(r)return r.column++,i.column--,R.fromPoints(r,i)}}).call(_.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(f,b,z){var R=f("../lib/dom"),_=f("../range").Range,S=f("../config").nls;function u(s,o,i){for(var r=0,t=s.length-1;r<=t;){var n=r+t>>1,a=i(o,s[n]);if(a>0)r=n+1;else if(a<0)t=n-1;else return n}return-(r+1)}function h(s,o,i){var r=s.getAnnotations().sort(_.comparePoints);if(r.length){var t=u(r,{row:o,column:-1},_.comparePoints);t<0&&(t=-t-1),t>=r.length?t=i>0?0:r.length-1:t===0&&i<0&&(t=r.length-1);var n=r[t];if(!(!n||!i)){if(n.row===o){do n=r[t+=i];while(n&&n.row===o);if(!n)return r.slice()}var a=[];o=n.row;do a[i<0?"unshift":"push"](n),n=r[t+=i];while(n&&n.row==o);return a.length&&a}}}b.showErrorMarker=function(s,o){var i=s.session,r=s.getCursorPosition(),t=r.row,n=i.widgetManager.getWidgetsAtRow(t).filter(function(I){return I.type=="errorMarker"})[0];n?n.destroy():t-=o;var a=h(i,t,o),d;if(a){var g=a[0];r.column=(g.pos&&typeof g.column!="number"?g.pos.sc:g.column)||0,r.row=g.row,d=s.renderer.$gutterLayer.$annotations[r.row]}else{if(n)return;d={displayText:[S("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(r.row),s.selection.moveToPosition(r);var L={row:r.row,fixedWidth:!0,coverGutter:!0,el:R.createElement("div"),type:"errorMarker"},C=L.el.appendChild(R.createElement("div")),y=L.el.appendChild(R.createElement("div"));y.className="error_widget_arrow "+d.className;var p=s.renderer.$cursorLayer.getPixelPosition(r).left;y.style.left=p+s.renderer.gutterWidth-5+"px",L.el.className="error_widget_wrapper",C.className="error_widget "+d.className,d.displayText.forEach(function(I,M){C.appendChild(R.createTextNode(I)),M<d.displayText.length-1&&C.appendChild(R.createElement("br"))}),C.appendChild(R.createElement("div"));var $=function(I,M,A){if(M===0&&(A==="esc"||A==="return"))return L.destroy(),{command:"null"}};L.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler($),i.widgetManager.removeLineWidget(L),s.off("changeSelection",L.destroy),s.off("changeSession",L.destroy),s.off("mouseup",L.destroy),s.off("change",L.destroy))},s.keyBinding.addKeyboardHandler($),s.on("changeSelection",L.destroy),s.on("changeSession",L.destroy),s.on("mouseup",L.destroy),s.on("change",L.destroy),s.session.widgetManager.addLineWidget(L),L.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:L.el.offsetHeight})},R.importCssString(`
|
|
947
|
+
.error_widget_wrapper {
|
|
948
|
+
background: inherit;
|
|
949
|
+
color: inherit;
|
|
950
|
+
border:none
|
|
951
|
+
}
|
|
952
|
+
.error_widget {
|
|
953
|
+
border-top: solid 2px;
|
|
954
|
+
border-bottom: solid 2px;
|
|
955
|
+
margin: 5px 0;
|
|
956
|
+
padding: 10px 40px;
|
|
957
|
+
white-space: pre-wrap;
|
|
958
|
+
}
|
|
959
|
+
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
|
960
|
+
border-color: #ff5a5a
|
|
961
|
+
}
|
|
962
|
+
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
|
963
|
+
border-color: #F1D817
|
|
964
|
+
}
|
|
965
|
+
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
|
966
|
+
border-color: #5a5a5a
|
|
967
|
+
}
|
|
968
|
+
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
|
969
|
+
border-color: #5aaa5a
|
|
970
|
+
}
|
|
971
|
+
.error_widget_arrow {
|
|
972
|
+
position: absolute;
|
|
973
|
+
border: solid 5px;
|
|
974
|
+
border-top-color: transparent!important;
|
|
975
|
+
border-right-color: transparent!important;
|
|
976
|
+
border-left-color: transparent!important;
|
|
977
|
+
top: -5px;
|
|
978
|
+
}
|
|
979
|
+
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(f,b,z){f("./loader_build")(b);var R=f("./lib/dom"),_=f("./range").Range,S=f("./editor").Editor,u=f("./edit_session").EditSession,h=f("./undomanager").UndoManager,s=f("./virtual_renderer").VirtualRenderer;f("./worker/worker_client"),f("./keyboard/hash_handler"),f("./placeholder"),f("./multi_select"),f("./mode/folding/fold_mode"),f("./theme/textmate"),f("./ext/error_marker"),b.config=f("./config"),b.edit=function(i,r){if(typeof i=="string"){var t=i;if(i=document.getElementById(t),!i)throw new Error("ace.edit can't find div #"+t)}if(i&&i.env&&i.env.editor instanceof S)return i.env.editor;var n="";if(i&&/input|textarea/i.test(i.tagName)){var a=i;n=a.value,i=R.createElement("pre"),a.parentNode.replaceChild(i,a)}else i&&(n=i.textContent,i.innerHTML="");var d=b.createEditSession(n),g=new S(new s(i),d,r),L={document:d,editor:g,onResize:g.resize.bind(g,null)};return a&&(L.textarea=a),g.on("destroy",function(){L.editor.container.env=null}),g.container.env=g.env=L,g},b.createEditSession=function(i,r){var t=new u(i,r);return t.setUndoManager(new h),t},b.Range=_,b.Editor=S,b.EditSession=u,b.UndoManager=h,b.VirtualRenderer=s;var o=b.config.version;b.version=o}),(function(){ace.require(["ace/ace"],function(f){f&&(f.config.init(!0),f.define=ace.define);var b=(function(){return this})();!b&&typeof window<"u"&&(b=window),!b&&typeof self<"u"&&(b=self),b.ace||(b.ace=f);for(var z in f)f.hasOwnProperty(z)&&(b.ace[z]=f[z]);b.ace.default=b.ace,F&&(F.exports=b.ace)})})()})(Cl)),Cl.exports}var c0=l0(),Sl={exports:{}},Dh;function u0(){return Dh||(Dh=1,(function(F,V){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(f,b,z){var R=f("../lib/oop"),_=f("./text_highlight_rules").TextHighlightRules,S=b.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};b.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},b.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},b.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var u=b.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},h=b.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},s=b.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},o=b.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},i=b.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},r=b.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},t=b.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},n=b.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},a=function(){var d="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",g="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",L="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",C="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",y=this.$keywords=this.createKeywordMapper({keyword:g,"constant.language":L,"variable.language":C,"support.function":d,"invalid.deprecated":"debugger"},"identifier"),p=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,$={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:p},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:p},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(I,M,A){A.length&&(A=[]);var H=I[I.length-1];return A.unshift(H,M),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(I,M,A){A.length&&(A=[]);var H=I[I.length-1];return A.unshift(H,M),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(I,M,A){A.length&&(A=[]);var H=I[I.length-1];return A.unshift(H,M),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(I,M,A){A.length&&(A=[]);var H=I[I.length-1];return A.unshift(H,M),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(I,M,A){A.length&&(A=[]);var H=I[I.length-1];return A.unshift(H,M),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},n,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+p+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},i,r,S,u,t,h,s,o,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:y,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(I,M,A){var H=I[2]=="-"||I[2]=="~"?"indentedHeredoc":"heredoc",D=I.split(this.splitRegex);return A.push(H,D[3]),[{type:"constant",value:D[1]},{type:"string",value:D[2]},{type:"support.class",value:D[3]},{type:"string",value:D[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(I,M,A){return I===A[1]?(A.shift(),A.shift(),this.next=A[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(I,M,A){return I===A[1]?(A.shift(),A.shift(),this.next=A[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(I,M){return M[0]==="heredoc"||M[0]==="indentedHeredoc"?M[0]:I}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(I,M,A){return this.next="",I=="}"&&A.length>1&&A[1]!="start"&&(A.shift(),this.next=A.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(I,M,A){return A.length&&I===A[0]?(A.unshift(I,M),this.token):"string"}},{token:"constant.language.escape",regex:p},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(I,M,A){return A.length&&I===$[A[0]]?(A.shift(),this.next=A.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(I,M,A){return A.length&&I===A[0]?(A.unshift(I,M),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(I,M,A){return A.length&&I===$[A[0]]?(A.shift(),this.next=A.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(I,M,A){return A.length&&I===A[0]?(A.unshift(I,M),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(I,M,A){return A.length&&I===$[A[0]]?(A.shift(),this.next=A.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(I,M,A){return A.length&&I===A[0]?(A.unshift(I,M),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:p},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(I,M,A){return A.length&&I===$[A[0]]?(A.shift(),this.next=A.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(I,M,A){return A.length&&I===A[0]?(A.unshift(I,M),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(I,M,A){return A.length&&I[0]===$[A[0]]?(A.shift(),this.next=A.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};R.inherits(a,_),b.RubyHighlightRules=a}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(f,b,z){var R=f("../range").Range,_=function(){};(function(){this.checkOutdent=function(S,u){return/^\s+$/.test(S)?/^\s*\}/.test(u):!1},this.autoOutdent=function(S,u){var h=S.getLine(u),s=h.match(/^(\s*\})/);if(!s)return 0;var o=s[1].length,i=S.findMatchingBracket({row:u,column:o});if(!i||i.row==u)return 0;var r=this.$getIndent(S.getLine(i.row));S.replace(new R(u,0,u,o-1),r)},this.$getIndent=function(S){return S.match(/^\s*/)[0]}}).call(_.prototype),b.MatchingBraceOutdent=_}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(f,b,z){var R=f("../../lib/oop"),_=f("./fold_mode").FoldMode,S=f("../../range").Range,u=f("../../token_iterator").TokenIterator,h=b.FoldMode=function(){};R.inherits(h,_),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(s,o,i){var r=s.getLine(i),t=this.foldingStartMarker.test(r),n=this.foldingStopMarker.test(r);if(t&&!n){var a=r.match(this.foldingStartMarker);if(a[1]){if((a[1]=="if"||a[1]=="else"||a[1]=="while"||a[1]=="until"||a[1]=="unless")&&(a[1]=="else"&&/^\s*else\s*$/.test(r)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(r)===!1)||a[1]=="when"&&/\sthen\s/.test(r)===!0)return;if(s.getTokenAt(i,a.index+2).type==="keyword")return"start"}else if(!a[3]||s.getTokenAt(i,a.index+1).type==="comment.multiline")return"start"}if(o!="markbeginend"||!n||t&&n)return"";var a=r.match(this.foldingStopMarker);if(a[3]==="end"){if(s.getTokenAt(i,a.index+1).type==="keyword")return"end"}else if(!a[1]||s.getTokenAt(i,a.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(s,o,i){var r=s.doc.getLine(i),t=this.foldingStartMarker.exec(r);if(t)return t[1]||t[3]?this.rubyBlock(s,i,t.index+2):this.openingBracketBlock(s,"{",i,t.index);var t=this.foldingStopMarker.exec(r);if(t)return t[3]==="end"&&s.getTokenAt(i,t.index+1).type==="keyword"?this.rubyBlock(s,i,t.index+1):t[1]==="=end"&&s.getTokenAt(i,t.index+1).type==="comment.multiline"?this.rubyBlock(s,i,t.index+1):this.closingBracketBlock(s,"}",i,t.index+t[0].length)},this.rubyBlock=function(s,D,i,r){var t=new u(s,D,i),n=t.getCurrentToken();if(!(!n||n.type!="keyword"&&n.type!="comment.multiline")){var a=n.value,d=s.getLine(D);switch(n.value){case"if":case"unless":case"while":case"until":var g=new RegExp("^\\s*"+n.value);if(!g.test(d))return;var L=this.indentKeywords[a];break;case"when":if(/\sthen\s/.test(d))return;case"elsif":case"rescue":case"ensure":var L=1;break;case"else":var g=new RegExp("^\\s*"+n.value+"\\s*$");if(!g.test(d))return;var L=1;break;default:var L=this.indentKeywords[a]}var C=[a];if(L){var y=L===-1?s.getLine(D-1).length:s.getLine(D).length,p=D,$=[];if($.push(t.getCurrentTokenRange()),t.step=L===-1?t.stepBackward:t.stepForward,n.type=="comment.multiline"){for(;n=t.step();)if(n.type==="comment.multiline"){if(L==1){if(y=6,n.value=="=end")break}else if(n.value=="=begin")break}}else for(;n=t.step();){var I=!1;if(n.type==="keyword"){var M=L*this.indentKeywords[n.value];switch(d=s.getLine(t.getCurrentTokenRow()),n.value){case"do":for(var A=t.$tokenIndex-1;A>=0;A--){var H=t.$rowTokens[A];if(H&&(H.value=="while"||H.value=="until"||H.value=="for")){M=0;break}}break;case"else":var g=new RegExp("^\\s*"+n.value+"\\s*$");(!g.test(d)||a=="case")&&(M=0,I=!0);break;case"if":case"unless":case"while":case"until":var g=new RegExp("^\\s*"+n.value);g.test(d)||(M=0,I=!0);break;case"when":(/\sthen\s/.test(d)||a=="case")&&(M=0,I=!0)}if(M>0)C.unshift(n.value);else if(M<=0&&I===!1){if(C.shift(),!C.length&&((a=="while"||a=="until"||a=="for")&&n.value!="do"||n.value=="do"&&L==-1&&M!=0||n.value!="do"))break;M===0&&C.unshift(n.value)}}}if(!n)return null;if(r)return $.push(t.getCurrentTokenRange()),$;var D=t.getCurrentTokenRow();if(L===-1){if(n.type==="comment.multiline")var T=6;else var T=s.getLine(D).length;return new S(D,T,p-1,y)}return new S(p,y,D-1,s.getLine(D-1).length)}}}}).call(h.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(f,b,z){var R=f("../lib/oop"),_=f("./text").Mode,S=f("./ruby_highlight_rules").RubyHighlightRules,u=f("./matching_brace_outdent").MatchingBraceOutdent,h=f("../range").Range,s=f("./folding/ruby").FoldMode,o=function(){this.HighlightRules=S,this.$outdent=new u,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s,this.indentKeywords=this.foldingRules.indentKeywords};R.inherits(o,_),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(i,r,t){var n=this.$getIndent(r),a=this.getTokenizer().getLineTokens(r,i),d=a.tokens;if(d.length&&d[d.length-1].type=="comment")return n;if(i=="start"){var g=r.match(/^.*[\{\(\[]\s*$/),L=r.match(/^\s*(class|def|module)\s.*$/),C=r.match(/.*do(\s*|\s+\|.*\|\s*)$/),y=r.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(g||L||C||y)&&(n+=t)}return n},this.checkOutdent=function(i,r,t){return/^\s+(end|else|rescue|ensure)$/.test(r+t)||this.$outdent.checkOutdent(r,t)},this.autoOutdent=function(i,r,t){var n=r.getLine(t);if(/}/.test(n))return this.$outdent.autoOutdent(r,t);var a=this.$getIndent(n),d=r.getLine(t-1),g=this.$getIndent(d),L=r.getTabString();g.length<=a.length&&a.slice(-L.length)==L&&r.remove(new h(t,a.length-L.length,t,a.length))},this.getMatching=function(i,r,t){if(r==null){var n=i.selection.lead;t=n.column,r=n.row}var a=i.getTokenAt(r,t);if(a&&a.value in this.indentKeywords)return this.foldingRules.rubyBlock(i,r,t,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(o.prototype),b.Mode=o}),(function(){ace.require(["ace/mode/ruby"],function(f){F&&(F.exports=f)})})()})(Sl)),Sl.exports}u0();var _l={exports:{}},Nh;function h0(){return Nh||(Nh=1,(function(F,V){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(f,b,z){var R=f("../lib/oop"),_=f("./text_highlight_rules").TextHighlightRules,S=function(){var u="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",h="True|False|None|NotImplemented|Ellipsis|__debug__",s="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",o=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":s,"variable.language":"self|cls","constant.language":h,keyword:u},"identifier"),i="[uU]?",r="[rR]",t="[fF]",n="(?:[rR][fF]|[fF][rR])",a="(?:(?:[1-9]\\d*)|(?:0))",d="(?:0[oO]?[0-7]+)",g="(?:0[xX][\\dA-Fa-f]+)",L="(?:0[bB][01]+)",C="(?:"+a+"|"+d+"|"+g+"|"+L+")",y="(?:[eE][+-]?\\d+)",p="(?:\\.\\d+)",$="(?:\\d+)",I="(?:(?:"+$+"?"+p+")|(?:"+$+"\\.))",M="(?:(?:"+I+"|"+$+")"+y+")",A="(?:"+M+"|"+I+")",H=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:i+'"{3}',next:"qqstring3"},{token:"string",regex:i+'"(?=.)',next:"qqstring"},{token:"string",regex:i+"'{3}",next:"qstring3"},{token:"string",regex:i+"'(?=.)",next:"qstring"},{token:"string",regex:r+'"{3}',next:"rawqqstring3"},{token:"string",regex:r+'"(?=.)',next:"rawqqstring"},{token:"string",regex:r+"'{3}",next:"rawqstring3"},{token:"string",regex:r+"'(?=.)",next:"rawqstring"},{token:"string",regex:t+'"{3}',next:"fqqstring3"},{token:"string",regex:t+'"(?=.)',next:"fqqstring"},{token:"string",regex:t+"'{3}",next:"fqstring3"},{token:"string",regex:t+"'(?=.)",next:"fqstring"},{token:"string",regex:n+'"{3}',next:"rfqqstring3"},{token:"string",regex:n+'"(?=.)',next:"rfqqstring"},{token:"string",regex:n+"'{3}",next:"rfqstring3"},{token:"string",regex:n+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:H},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:H},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:H},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:H},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:H},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:H},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:H},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:H},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+A+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:A},{token:"constant.numeric",regex:C+"[lL]\\b"},{token:"constant.numeric",regex:C+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};R.inherits(S,_),b.PythonHighlightRules=S}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(f,b,z){var R=f("../../lib/oop"),_=f("./fold_mode").FoldMode,S=b.FoldMode=function(u){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+u+")(?:\\s*)(?:#.*)?$")};R.inherits(S,_),(function(){this.getFoldWidgetRange=function(u,h,s){var o=u.getLine(s),i=o.match(this.foldingStartMarker);if(i)return i[1]?this.openingBracketBlock(u,i[1],s,i.index):i[2]?this.indentationBlock(u,s,i.index+i[2].length):this.indentationBlock(u,s)}}).call(S.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(f,b,z){var R=f("../lib/oop"),_=f("./text").Mode,S=f("./python_highlight_rules").PythonHighlightRules,u=f("./folding/pythonic").FoldMode,h=f("../range").Range,s=function(){this.HighlightRules=S,this.foldingRules=new u("\\:"),this.$behaviour=this.$defaultBehaviour};R.inherits(s,_),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(i,r,t){var n=this.$getIndent(r),a=this.getTokenizer().getLineTokens(r,i),d=a.tokens;if(d.length&&d[d.length-1].type=="comment")return n;if(i=="start"){var g=r.match(/^.*[\{\(\[:]\s*$/);g&&(n+=t)}return n};var o={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(i,r,t){if(t!==`\r
|
|
980
|
+
`&&t!=="\r"&&t!==`
|
|
981
|
+
`)return!1;var n=this.getTokenizer().getLineTokens(r.trim(),i).tokens;if(!n)return!1;do var a=n.pop();while(a&&(a.type=="comment"||a.type=="text"&&a.value.match(/^\s+$/)));return a?a.type=="keyword"&&o[a.value]:!1},this.autoOutdent=function(i,r,t){t+=1;var n=this.$getIndent(r.getLine(t)),a=r.getTabString();n.slice(-a.length)==a&&r.remove(new h(t,n.length-a.length,t,n.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(s.prototype),b.Mode=s}),(function(){ace.require(["ace/mode/python"],function(f){F&&(F.exports=f)})})()})(_l)),_l.exports}h0();var Al={exports:{}},Fh;function d0(){return Fh||(Fh=1,(function(F,V){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(f,b,z){var R=f("../lib/oop"),_=f("./text_highlight_rules").TextHighlightRules,S=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};R.inherits(S,_),b.JsonHighlightRules=S}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(f,b,z){var R=f("../range").Range,_=function(){};(function(){this.checkOutdent=function(S,u){return/^\s+$/.test(S)?/^\s*\}/.test(u):!1},this.autoOutdent=function(S,u){var h=S.getLine(u),s=h.match(/^(\s*\})/);if(!s)return 0;var o=s[1].length,i=S.findMatchingBracket({row:u,column:o});if(!i||i.row==u)return 0;var r=this.$getIndent(S.getLine(i.row));S.replace(new R(u,0,u,o-1),r)},this.$getIndent=function(S){return S.match(/^\s*/)[0]}}).call(_.prototype),b.MatchingBraceOutdent=_}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(f,b,z){var R=f("../../lib/oop"),_=f("../../range").Range,S=f("./fold_mode").FoldMode,u=b.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end)))};R.inherits(u,S),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,s,o){var i=h.getLine(o);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var r=this._getFoldWidgetBase(h,s,o);return!r&&this.startRegionRe.test(i)?"start":r},this.getFoldWidgetRange=function(h,s,o,i){var r=h.getLine(o);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(h,r,o);var a=r.match(this.foldingStartMarker);if(a){var t=a.index;if(a[1])return this.openingBracketBlock(h,a[1],o,t);var n=h.getCommentFoldRange(o,t+a[0].length,1);return n&&!n.isMultiLine()&&(i?n=this.getSectionRange(h,o):s!="all"&&(n=null)),n}if(s!=="markbegin"){var a=r.match(this.foldingStopMarker);if(a){var t=a.index+a[0].length;return a[1]?this.closingBracketBlock(h,a[1],o,t):h.getCommentFoldRange(o,t,-1)}}},this.getSectionRange=function(h,s){var o=h.getLine(s),i=o.search(/\S/),r=s,t=o.length;s+=1;for(var n=s,a=h.getLength();++s<a;){o=h.getLine(s);var d=o.search(/\S/);if(d!==-1){if(i>d)break;var g=this.getFoldWidgetRange(h,"all",s);if(g){if(g.start.row<=r)break;if(g.isMultiLine())s=g.end.row;else if(i==d)break}n=s}}return new _(r,t,n,h.getLine(n).length)},this.getCommentRegionBlock=function(h,s,o){for(var i=s.search(/\s*$/),r=h.getLength(),t=o,n=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;++o<r;){s=h.getLine(o);var d=n.exec(s);if(d&&(d[1]?a--:a++,!a))break}var g=o;if(g>t)return new _(t,i,g,s.length)}}).call(u.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(f,b,z){var R=f("../lib/oop"),_=f("./text").Mode,S=f("./json_highlight_rules").JsonHighlightRules,u=f("./matching_brace_outdent").MatchingBraceOutdent,h=f("./folding/cstyle").FoldMode,s=f("../worker/worker_client").WorkerClient,o=function(){this.HighlightRules=S,this.$outdent=new u,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new h};R.inherits(o,_),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(i,r,t){var n=this.$getIndent(r);if(i=="start"){var a=r.match(/^.*[\{\(\[]\s*$/);a&&(n+=t)}return n},this.checkOutdent=function(i,r,t){return this.$outdent.checkOutdent(r,t)},this.autoOutdent=function(i,r,t){this.$outdent.autoOutdent(r,t)},this.createWorker=function(i){var r=new s(["ace"],"ace/mode/json_worker","JsonWorker");return r.attachToDocument(i.getDocument()),r.on("annotate",function(t){i.setAnnotations(t.data)}),r.on("terminate",function(){i.clearAnnotations()}),r},this.$id="ace/mode/json"}).call(o.prototype),b.Mode=o}),(function(){ace.require(["ace/mode/json"],function(f){F&&(F.exports=f)})})()})(Al)),Al.exports}d0();var Ml={exports:{}},Wh;function f0(){return Wh||(Wh=1,(function(F,V){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(f,b,z){var R=f("../lib/oop");f("../lib/lang");var _=f("./text_highlight_rules").TextHighlightRules,S=b.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",u=b.supportFunction="rgb|rgba|url|attr|counter|counters",h=b.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",s=b.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",o=b.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",i=b.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",r=b.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",t=b.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",n=function(){var a=this.createKeywordMapper({"support.function":u,"support.constant":h,"support.type":S,"support.constant.color":s,"support.constant.fonts":o},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:i},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+i+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:i},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:r},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:t},{include:"url"},{token:a,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};R.inherits(n,_),b.CssHighlightRules=n}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(f,b,z){var R=f("../lib/oop"),_=f("./text_highlight_rules").TextHighlightRules,S=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},S.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};R.inherits(S,_),S.getTagRule=function(u){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},S.getStartRule=function(u){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:u}},S.getEndRule=function(u){return{token:"comment.doc",regex:"\\*\\/",next:u}},b.JsDocCommentHighlightRules=S}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(f,b,z){function R(){var i=s.replace("\\d","\\d\\-"),r={onMatch:function(n,a,d){var g=n.charAt(1)=="/"?2:1;return g==1?(a!=this.nextState?d.unshift(this.next,this.nextState,0):d.unshift(this.next),d[2]++):g==2&&a==this.nextState&&(d[1]--,(!d[1]||d[1]<0)&&(d.shift(),d.shift())),[{type:"meta.tag.punctuation."+(g==1?"":"end-")+"tag-open.xml",value:n.slice(0,g)},{type:"meta.tag.tag-name.xml",value:n.substr(g)}]},regex:"</?(?:"+i+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(r);var t={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[t,r,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(n,a,d){return a==d[0]&&d.shift(),n.length==2&&(d[0]==this.nextState&&d[1]--,(!d[1]||d[1]<0)&&d.splice(0,2)),this.next=d[0]||"start",[{type:this.token,value:n}]},nextState:"jsx"},t,_("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:i},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},r],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function _(i){return[{token:"comment",regex:/\/\*/,next:[u.getTagRule(),{token:"comment",regex:"\\*\\/",next:i||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[u.getTagRule(),{token:"comment",regex:"$|^",next:i||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var S=f("../lib/oop"),u=f("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,h=f("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",o=function(i){var r={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},t=this.createKeywordMapper(r,"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",a="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",d="(function)(\\s*)(\\*?)",g={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(r).join("|")+"\\b)"+s+")(\\s*)(\\()"};this.$rules={no_regex:[u.getStartRule("doc-start"),_("no_regex"),g,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)"+d+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)"+d+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+d+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:t,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:d+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[u.getStartRule("doc-start"),_("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[_("function_arguments"),{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:a},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:a},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!i||!i.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(L,C,y){if(this.next=L=="{"?this.nextState:"",L=="{"&&y.length)y.unshift("start",C);else if(L=="}"&&y.length&&(y.shift(),this.next=y.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return L=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:a},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+s+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!i||i.jsx!=0)&&R.call(this)),this.embedRules(u,"doc-",[u.getEndRule("no_regex")]),this.normalizeRules()};S.inherits(o,h),b.JavaScriptHighlightRules=o}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(f,b,z){var R=f("../lib/oop"),_=f("./text_highlight_rules").TextHighlightRules,S=function(u){var h="[_:a-zA-ZÀ-][-_:.a-zA-Z0-9À-]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+h+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:h},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+h+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+h+":)?"+h+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:h},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===S&&this.normalizeRules()};(function(){this.embedTagRules=function(u,h,s){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(<)("+s+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:h+"start"}]}),this.$rules[s+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(o,i,r){return r.splice(0),this.token}}],this.embedRules(u,h,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(</)("+s+"(?=\\s|>|$))",next:s+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(_.prototype),R.inherits(S,_),b.XmlHighlightRules=S}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(f,b,z){var R=f("../lib/oop"),_=f("../lib/lang"),S=f("./css_highlight_rules").CssHighlightRules,u=f("./javascript_highlight_rules").JavaScriptHighlightRules,h=f("./xml_highlight_rules").XmlHighlightRules,s=_.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),o=function(){h.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(i,r){var t=s[r];return["meta.tag.punctuation."+(i=="<"?"":"end-")+"tag-open.xml","meta.tag"+(t?"."+t:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(S,"css-","style"),this.embedTagRules(new u({jsx:!1}).getRules(),"js-","script"),this.constructor===o&&this.normalizeRules()};R.inherits(o,h),b.HtmlHighlightRules=o}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(f,b,z){var R=f("../config").$modes,_=f("../lib/oop"),S=f("../lib/lang"),u=f("./text_highlight_rules").TextHighlightRules,h=f("./html_highlight_rules").HtmlHighlightRules,s=function(i){return"(?:[^"+S.escapeRegExp(i)+"\\\\]|\\\\.)*"},o=function(){h.call(this);var i={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(t,n,a,d){var g=t.match(/^(\s*)([`~]+)(.*)/),L=/[\w-]+|$/.exec(g[3])[0];return R[L]||(L=""),a.unshift("githubblock",[],[g[1],g[2],L],n),this.token},next:"githubblock"},r=[{token:"support.function",regex:".*",onMatch:function(t,n,a,d){var g=a[1],L=a[2][0],C=a[2][1],y=a[2][2],p=/^(\s*)(`+|~+)\s*$/.exec(t);if(p&&p[1].length<L.length+3&&p[2].length>=C.length&&p[2][0]==C[0])return a.splice(0,3),this.next=a.shift(),this.token;if(this.next="",y&&R[y]){var $=R[y].getTokenizer().getLineTokens(t,g.slice(0));return a[1]=$.state,$.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(t){return"markup.heading."+t.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},i,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+s("]")+")(\\]\\s*\\[)("+s("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+s("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+s('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},i,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:r}),this.normalizeRules()};_.inherits(o,u),b.MarkdownHighlightRules=o}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(f,b,z){var R=f("../../lib/oop"),_=f("./fold_mode").FoldMode,S=f("../../range").Range,u=b.FoldMode=function(){};R.inherits(u,_),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(h,s,o){var i=h.getLine(o);return this.foldingStartMarker.test(i)?i[0]=="`"&&h.bgTokenizer.getState(o)=="start"?"end":"start":""},this.getFoldWidgetRange=function(h,s,o){function i(I){return L=h.getTokens(I)[0],L&&L.type.lastIndexOf(C,0)===0}function r(){var I=L.value[0];return I=="="?6:I=="-"?5:7-L.value.search(/[^#]|$/)}var t=h.getLine(o),n=t.length,a=h.getLength(),d=o,g=o;if(t.match(this.foldingStartMarker)){if(t[0]=="`"){if(h.bgTokenizer.getState(o)!=="start"){for(;++o<a&&(t=h.getLine(o),!(t[0]=="`"&t.substring(0,3)=="```")););return new S(d,n,o,0)}for(;o-- >0&&(t=h.getLine(o),!(t[0]=="`"&t.substring(0,3)=="```")););return new S(o,t.length,d,0)}var L,C="markup.heading";if(i(o)){for(var y=r();++o<a;)if(i(o)){var p=r();if(p>=y)break}if(g=o-(!L||["=","-"].indexOf(L.value[0])==-1?1:2),g>d)for(;g>d&&/^\s*$/.test(h.getLine(g));)g--;if(g>d){var $=h.getLine(g).length;return new S(d,n,g,$)}}}}}).call(u.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(f,b,z){var R=f("../range").Range,_=function(){};(function(){this.checkOutdent=function(S,u){return/^\s+$/.test(S)?/^\s*\}/.test(u):!1},this.autoOutdent=function(S,u){var h=S.getLine(u),s=h.match(/^(\s*\})/);if(!s)return 0;var o=s[1].length,i=S.findMatchingBracket({row:u,column:o});if(!i||i.row==u)return 0;var r=this.$getIndent(S.getLine(i.row));S.replace(new R(u,0,u,o-1),r)},this.$getIndent=function(S){return S.match(/^\s*/)[0]}}).call(_.prototype),b.MatchingBraceOutdent=_}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(f,b,z){function R(s,o){return s&&s.type.lastIndexOf(o+".xml")>-1}var _=f("../../lib/oop"),S=f("../behaviour").Behaviour,u=f("../../token_iterator").TokenIterator,h=function(){this.add("string_dquotes","insertion",function(s,o,i,r,t){if(t=='"'||t=="'"){var n=t,a=r.doc.getTextRange(i.getSelectionRange());if(a!==""&&a!=="'"&&a!='"'&&i.getWrapBehavioursEnabled())return{text:n+a+n,selection:!1};var d=i.getCursorPosition(),g=r.doc.getLine(d.row),L=g.substring(d.column,d.column+1),C=new u(r,d.row,d.column),y=C.getCurrentToken();if(L==n&&(R(y,"attribute-value")||R(y,"string")))return{text:"",selection:[1,1]};if(y||(y=C.stepBackward()),!y)return;for(;R(y,"tag-whitespace")||R(y,"whitespace");)y=C.stepBackward();var p=!L||L.match(/\s/);if(R(y,"attribute-equals")&&(p||L==">")||R(y,"decl-attribute-equals")&&(p||L=="?"))return{text:n+n,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(s,o,i,r,t){var n=r.doc.getTextRange(t);if(!t.isMultiLine()&&(n=='"'||n=="'")){var a=r.doc.getLine(t.start.row),d=a.substring(t.start.column+1,t.start.column+2);if(d==n)return t.end.column++,t}}),this.add("autoclosing","insertion",function(s,o,i,r,t){if(t==">"){var n=i.getSelectionRange().start,a=new u(r,n.row,n.column),d=a.getCurrentToken()||a.stepBackward();if(!d||!(R(d,"tag-name")||R(d,"tag-whitespace")||R(d,"attribute-name")||R(d,"attribute-equals")||R(d,"attribute-value"))||R(d,"reference.attribute-value"))return;if(R(d,"attribute-value")){var g=a.getCurrentTokenColumn()+d.value.length;if(n.column<g)return;if(n.column==g){var L=a.stepForward();if(L&&R(L,"attribute-value"))return;a.stepBackward()}}if(/^\s*>/.test(r.getLine(n.row).slice(n.column)))return;for(;!R(d,"tag-name");)if(d=a.stepBackward(),d.value=="<"){d=a.stepForward();break}var C=a.getCurrentTokenRow(),y=a.getCurrentTokenColumn();if(R(a.stepBackward(),"end-tag-open"))return;var p=d.value;return C==n.row&&(p=p.substring(0,n.column-y)),this.voidElements&&this.voidElements.hasOwnProperty(p.toLowerCase())?void 0:{text:"></"+p+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(s,o,i,r,t){if(t==`
|
|
982
|
+
`){var n=i.getCursorPosition(),a=r.getLine(n.row),d=new u(r,n.row,n.column),g=d.getCurrentToken();if(R(g,"")&&g.type.indexOf("tag-close")!==-1){if(g.value=="/>")return;for(;g&&g.type.indexOf("tag-name")===-1;)g=d.stepBackward();if(!g)return;var L=g.value,C=d.getCurrentTokenRow();if(g=d.stepBackward(),!g||g.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[L]||!this.voidElements){var y=r.getTokenAt(n.row,n.column+1),a=r.getLine(C),p=this.$getIndent(a),$=p+r.getTabString();return y&&y.value==="</"?{text:`
|
|
983
|
+
`+$+`
|
|
984
|
+
`+p,selection:[1,$.length,1,$.length]}:{text:`
|
|
985
|
+
`+$}}}}})};_.inherits(h,S),b.XmlBehaviour=h}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(f,b,z){var R=f("../../lib/oop"),_=f("../../token_iterator").TokenIterator,S=f("../behaviour/cstyle").CstyleBehaviour,u=f("../behaviour/xml").XmlBehaviour,h=function(){var s=new u({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(s),this.inherit(S),this.add("autoclosing-fragment","insertion",function(o,i,r,t,n){if(n==">"){var a=r.getSelectionRange().start,d=new _(t,a.row,a.column),g=d.getCurrentToken()||d.stepBackward();if(!g)return;if(g.value=="<")return{text:"></>",selection:[1,1]}}})};R.inherits(h,S),b.JavaScriptBehaviour=h}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(f,b,z){function R(o,i){return o&&o.type&&o.type.lastIndexOf(i+".xml")>-1}var _=f("../../lib/oop"),S=f("../../range").Range,u=f("./fold_mode").FoldMode,h=b.FoldMode=function(o,i){u.call(this),this.voidElements=o||{},this.optionalEndTags=_.mixin({},this.voidElements),i&&_.mixin(this.optionalEndTags,i)};_.inherits(h,u);var s=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(o,i,r){var t=this._getFirstTagInLine(o,r);return t?t.closing||!t.tagName&&t.selfClosing?i==="markbeginend"?"end":"":!t.tagName||t.selfClosing||this.voidElements.hasOwnProperty(t.tagName.toLowerCase())||this._findEndTagInLine(o,r,t.tagName,t.end.column)?"":"start":this.getCommentFoldWidget(o,r)},this.getCommentFoldWidget=function(o,i){return/comment/.test(o.getState(i))&&/<!-/.test(o.getLine(i))?"start":""},this._getFirstTagInLine=function(o,i){for(var r=o.getTokens(i),t=new s,n=0;n<r.length;n++){var a=r[n];if(R(a,"tag-open")){if(t.end.column=t.start.column+a.value.length,t.closing=R(a,"end-tag-open"),a=r[++n],!a)return null;if(t.tagName=a.value,a.value===""){if(a=r[++n],!a)return null;t.tagName=a.value}for(t.end.column+=a.value.length,n++;n<r.length;n++)if(a=r[n],t.end.column+=a.value.length,R(a,"tag-close")){t.selfClosing=a.value=="/>";break}return t}if(R(a,"tag-close"))return t.selfClosing=a.value=="/>",t;t.start.column+=a.value.length}return null},this._findEndTagInLine=function(o,i,r,t){for(var n=o.getTokens(i),a=0,d=0;d<n.length;d++){var g=n[d];if(a+=g.value.length,!(a<t-1)&&R(g,"end-tag-open")&&(g=n[d+1],R(g,"tag-name")&&g.value===""&&(g=n[d+2]),g&&g.value==r))return!0}return!1},this.getFoldWidgetRange=function(o,i,r){var t=this._getFirstTagInLine(o,r);if(!t)return this.getCommentFoldWidget(o,r)&&o.getCommentFoldRange(r,o.getLine(r).length);var n=o.getMatchingTags({row:r,column:0});if(n)return new S(n.openTag.end.row,n.openTag.end.column,n.closeTag.start.row,n.closeTag.start.column)}}).call(h.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(f,b,z){var R=f("../../lib/oop"),_=f("../../range").Range,S=f("./fold_mode").FoldMode,u=b.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end)))};R.inherits(u,S),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,s,o){var i=h.getLine(o);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var r=this._getFoldWidgetBase(h,s,o);return!r&&this.startRegionRe.test(i)?"start":r},this.getFoldWidgetRange=function(h,s,o,i){var r=h.getLine(o);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(h,r,o);var a=r.match(this.foldingStartMarker);if(a){var t=a.index;if(a[1])return this.openingBracketBlock(h,a[1],o,t);var n=h.getCommentFoldRange(o,t+a[0].length,1);return n&&!n.isMultiLine()&&(i?n=this.getSectionRange(h,o):s!="all"&&(n=null)),n}if(s!=="markbegin"){var a=r.match(this.foldingStopMarker);if(a){var t=a.index+a[0].length;return a[1]?this.closingBracketBlock(h,a[1],o,t):h.getCommentFoldRange(o,t,-1)}}},this.getSectionRange=function(h,s){var o=h.getLine(s),i=o.search(/\S/),r=s,t=o.length;s+=1;for(var n=s,a=h.getLength();++s<a;){o=h.getLine(s);var d=o.search(/\S/);if(d!==-1){if(i>d)break;var g=this.getFoldWidgetRange(h,"all",s);if(g){if(g.start.row<=r)break;if(g.isMultiLine())s=g.end.row;else if(i==d)break}n=s}}return new _(r,t,n,h.getLine(n).length)},this.getCommentRegionBlock=function(h,s,o){for(var i=s.search(/\s*$/),r=h.getLength(),t=o,n=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;++o<r;){s=h.getLine(o);var d=n.exec(s);if(d&&(d[1]?a--:a++,!a))break}var g=o;if(g>t)return new _(t,i,g,s.length)}}).call(u.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(f,b,z){var R=f("../../lib/oop"),_=f("./xml").FoldMode,S=f("./cstyle").FoldMode,u=b.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end))),this.xmlFoldMode=new _};R.inherits(u,S),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,s,o){var i=this.getFoldWidgetBase(h,s,o);return i||this.xmlFoldMode.getFoldWidget(h,s,o)},this.getFoldWidgetRange=function(h,s,o,i){var r=this.getFoldWidgetRangeBase(h,s,o,i);return r||this.xmlFoldMode.getFoldWidgetRange(h,s,o)}}).call(u.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(f,b,z){var R=f("../lib/oop"),_=f("./text").Mode,S=f("./javascript_highlight_rules").JavaScriptHighlightRules,u=f("./matching_brace_outdent").MatchingBraceOutdent,h=f("../worker/worker_client").WorkerClient,s=f("./behaviour/javascript").JavaScriptBehaviour,o=f("./folding/javascript").FoldMode,i=function(){this.HighlightRules=S,this.$outdent=new u,this.$behaviour=new s,this.foldingRules=new o};R.inherits(i,_),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(r,t,n){var a=this.$getIndent(t),d=this.getTokenizer().getLineTokens(t,r),g=d.tokens,L=d.state;if(g.length&&g[g.length-1].type=="comment")return a;if(r=="start"||r=="no_regex"){var C=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);C&&(a+=n)}else if(r=="doc-start"&&(L=="start"||L=="no_regex"))return"";return a},this.checkOutdent=function(r,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(r,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(r){var t=new h(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(r.getDocument()),t.on("annotate",function(n){r.setAnnotations(n.data)}),t.on("terminate",function(){r.clearAnnotations()}),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(i.prototype),b.Mode=i}),ace.define("ace/mode/css_completions",["require","exports","module"],function(f,b,z){var R={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},_=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var S=document.createElement("c").style;for(var u in S)if(typeof S[u]=="string"){var h=u.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});R.hasOwnProperty(h)||(R[h]=1)}}this.completionsDefined=!0},this.getCompletions=function(S,u,h,s){if(this.completionsDefined||this.defineCompletions(),S==="ruleset"||u.$mode.$id=="ace/mode/scss"){var o=u.getLine(h.row).substr(0,h.column),i=/\([^)]*$/.test(o);return i&&(o=o.substr(o.lastIndexOf("(")+1)),/:[^;]+$/.test(o)?this.getPropertyValueCompletions(S,u,h,s):this.getPropertyCompletions(S,u,h,s,i)}return[]},this.getPropertyCompletions=function(S,u,h,s,o){o=o||!1;var i=Object.keys(R);return i.map(function(r){return{caption:r,snippet:r+": $0"+(o?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(S,u,h,s){var o=u.getLine(h.row).substr(0,h.column),i=(/([\w\-]+):[^:]*$/.exec(o)||{})[1];if(!i)return[];var r=[];return i in R&&typeof R[i]=="object"&&(r=Object.keys(R[i])),r.map(function(t){return{caption:t,snippet:t,meta:"property value",score:1e6}})}}).call(_.prototype),b.CssCompletions=_}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(f,b,z){var R=f("../../lib/oop");f("../behaviour").Behaviour;var _=f("./cstyle").CstyleBehaviour,S=f("../../token_iterator").TokenIterator,u=function(){this.inherit(_),this.add("colon","insertion",function(h,s,o,i,r){if(r===":"&&o.selection.isEmpty()){var t=o.getCursorPosition(),n=new S(i,t.row,t.column),a=n.getCurrentToken();if(a&&a.value.match(/\s+/)&&(a=n.stepBackward()),a&&a.type==="support.type"){var d=i.doc.getLine(t.row),g=d.substring(t.column,t.column+1);if(g===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(d.substring(t.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(h,s,o,i,r){var t=i.doc.getTextRange(r);if(!r.isMultiLine()&&t===":"){var n=o.getCursorPosition(),a=new S(i,n.row,n.column),d=a.getCurrentToken();if(d&&d.value.match(/\s+/)&&(d=a.stepBackward()),d&&d.type==="support.type"){var g=i.doc.getLine(r.start.row),L=g.substring(r.end.column,r.end.column+1);if(L===";")return r.end.column++,r}}}),this.add("semicolon","insertion",function(h,s,o,i,r){if(r===";"&&o.selection.isEmpty()){var t=o.getCursorPosition(),n=i.doc.getLine(t.row),a=n.substring(t.column,t.column+1);if(a===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(h,s,o,i,r){if(r==="!"&&o.selection.isEmpty()){var t=o.getCursorPosition(),n=i.doc.getLine(t.row);if(/^\s*(;|}|$)/.test(n.substring(t.column)))return{text:"!important",selection:[10,10]}}})};R.inherits(u,_),b.CssBehaviour=u}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(f,b,z){var R=f("../lib/oop"),_=f("./text").Mode,S=f("./css_highlight_rules").CssHighlightRules,u=f("./matching_brace_outdent").MatchingBraceOutdent,h=f("../worker/worker_client").WorkerClient,s=f("./css_completions").CssCompletions,o=f("./behaviour/css").CssBehaviour,i=f("./folding/cstyle").FoldMode,r=function(){this.HighlightRules=S,this.$outdent=new u,this.$behaviour=new o,this.$completer=new s,this.foldingRules=new i};R.inherits(r,_),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(t,n,a){var d=this.$getIndent(n),g=this.getTokenizer().getLineTokens(n,t).tokens;if(g.length&&g[g.length-1].type=="comment")return d;var L=n.match(/^.*\{\s*$/);return L&&(d+=a),d},this.checkOutdent=function(t,n,a){return this.$outdent.checkOutdent(n,a)},this.autoOutdent=function(t,n,a){this.$outdent.autoOutdent(n,a)},this.getCompletions=function(t,n,a,d){return this.$completer.getCompletions(t,n,a,d)},this.createWorker=function(t){var n=new h(["ace"],"ace/mode/css_worker","Worker");return n.attachToDocument(t.getDocument()),n.on("annotate",function(a){t.setAnnotations(a.data)}),n.on("terminate",function(){t.clearAnnotations()}),n},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(r.prototype),b.Mode=r}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(f,b,z){var R=f("../../lib/oop"),_=f("./fold_mode").FoldMode,S=b.FoldMode=function(u,h){this.defaultMode=u,this.subModes=h};R.inherits(S,_),(function(){this.$getMode=function(u){typeof u!="string"&&(u=u[0]);for(var h in this.subModes)if(u.indexOf(h)===0)return this.subModes[h];return null},this.$tryMode=function(u,h,s,o){var i=this.$getMode(u);return i?i.getFoldWidget(h,s,o):""},this.getFoldWidget=function(u,h,s){return this.$tryMode(u.getState(s-1),u,h,s)||this.$tryMode(u.getState(s),u,h,s)||this.defaultMode.getFoldWidget(u,h,s)},this.getFoldWidgetRange=function(u,h,s){var o=this.$getMode(u.getState(s-1));return(!o||!o.getFoldWidget(u,h,s))&&(o=this.$getMode(u.getState(s))),(!o||!o.getFoldWidget(u,h,s))&&(o=this.defaultMode),o.getFoldWidgetRange(u,h,s)}}).call(S.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(f,b,z){var R=f("../../lib/oop"),_=f("./mixed").FoldMode,S=f("./xml").FoldMode,u=f("./cstyle").FoldMode,h=b.FoldMode=function(s,o){_.call(this,new S(s,o),{"js-":new u,"css-":new u})};R.inherits(h,_)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(f,b,z){function R(n,a){return n.type.lastIndexOf(a+".xml")>-1}function _(n,a){for(var d=new u(n,a.row,a.column),g=d.getCurrentToken();g&&!R(g,"tag-name");)g=d.stepBackward();if(g)return g.value}function S(n,a){for(var d=new u(n,a.row,a.column),g=d.getCurrentToken();g&&!R(g,"attribute-name");)g=d.stepBackward();if(g)return g.value}var u=f("../token_iterator").TokenIterator,h=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],s=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],o=h.concat(s),i={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},r=Object.keys(i),t=function(){};(function(){this.getCompletions=function(n,a,d,g){var L=a.getTokenAt(d.row,d.column);if(!L)return[];if(R(L,"tag-name")||R(L,"tag-open")||R(L,"end-tag-open"))return this.getTagCompletions(n,a,d,g);if(R(L,"tag-whitespace")||R(L,"attribute-name"))return this.getAttributeCompletions(n,a,d,g);if(R(L,"attribute-value"))return this.getAttributeValueCompletions(n,a,d,g);var C=a.getLine(d.row).substr(0,d.column);return/&[a-z]*$/i.test(C)?this.getHTMLEntityCompletions(n,a,d,g):[]},this.getTagCompletions=function(n,a,d,g){return r.map(function(L){return{value:L,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(n,a,d,g){var L=_(a,d);if(!L)return[];var C=o;return L in i&&(C=C.concat(Object.keys(i[L]))),C.map(function(y){return{caption:y,snippet:y+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(n,a,d,g){var L=_(a,d),C=S(a,d);if(!L)return[];var y=[];return L in i&&C in i[L]&&typeof i[L][C]=="object"&&(y=Object.keys(i[L][C])),y.map(function(p){return{caption:p,snippet:p,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(n,a,d,g){var L=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return L.map(function(C){return{caption:C,snippet:C,meta:"html entity",score:1e6}})}}).call(t.prototype),b.HtmlCompletions=t}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(f,b,z){var R=f("../lib/oop"),_=f("../lib/lang"),S=f("./text").Mode,u=f("./javascript").Mode,h=f("./css").Mode,s=f("./html_highlight_rules").HtmlHighlightRules,o=f("./behaviour/xml").XmlBehaviour,i=f("./folding/html").FoldMode,r=f("./html_completions").HtmlCompletions,t=f("../worker/worker_client").WorkerClient,n=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],a=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],d=function(g){this.fragmentContext=g&&g.fragmentContext,this.HighlightRules=s,this.$behaviour=new o,this.$completer=new r,this.createModeDelegates({"js-":u,"css-":h}),this.foldingRules=new i(this.voidElements,_.arrayToMap(a))};R.inherits(d,S),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=_.arrayToMap(n),this.getNextLineIndent=function(g,L,C){return this.$getIndent(L)},this.checkOutdent=function(g,L,C){return!1},this.getCompletions=function(g,L,C,y){return this.$completer.getCompletions(g,L,C,y)},this.createWorker=function(g){if(this.constructor==d){var L=new t(["ace"],"ace/mode/html_worker","Worker");return L.attachToDocument(g.getDocument()),this.fragmentContext&&L.call("setOptions",[{context:this.fragmentContext}]),L.on("error",function(C){g.setAnnotations(C.data)}),L.on("terminate",function(){g.clearAnnotations()}),L}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(d.prototype),b.Mode=d}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(f,b,z){var R=f("../lib/oop"),_=f("./text_highlight_rules").TextHighlightRules,S=b.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",u=b.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",h=function(){var s=this.createKeywordMapper({keyword:S,"support.function.builtin":u,"invalid.deprecated":"debugger"},"identifier"),o="(?:(?:[1-9]\\d*)|(?:0))",i="(?:\\.\\d+)",r="(?:\\d+)",t="(?:(?:"+r+"?"+i+")|(?:"+r+"\\.))",n="(?:(?:"+t+"|"+r+"))",a="(?:"+n+"|"+t+")",d="(?:&"+r+")",g="[a-zA-Z_][a-zA-Z0-9_]*",L="(?:"+g+"(?==))",C="(?:\\$(?:SHLVL|\\$|\\!|\\?))",y="(?:"+g+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(p,$,I){var M=p[2]=="-"?"indentedHeredoc":"heredoc",A=p.split(this.splitRegex);return I.push(M,A[4]),[{type:"constant",value:A[1]},{type:"text",value:A[2]},{type:"string",value:A[3]},{type:"support.class",value:A[4]},{type:"string",value:A[5]}]},rules:{heredoc:[{onMatch:function(p,$,I){return p===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(p,$,I){return p===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(p,$){return $[0]==="heredoc"||$[0]==="indentedHeredoc"?$[0]:p}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:C},{token:"variable",regex:L},{include:"variables"},{token:"support.function",regex:y},{token:"support.function",regex:d},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:a},{token:"constant.numeric",regex:o+"\\b"},{token:s,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};R.inherits(h,_),b.ShHighlightRules=h}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(f,b,z){var R=f("../lib/oop"),_=f("./text").Mode,S=f("./sh_highlight_rules").ShHighlightRules,u=f("../range").Range,h=f("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=S,this.foldingRules=new h,this.$behaviour=this.$defaultBehaviour};R.inherits(s,_),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(i,r,t){var n=this.$getIndent(r),a=this.getTokenizer().getLineTokens(r,i),d=a.tokens;if(d.length&&d[d.length-1].type=="comment")return n;if(i=="start"){var g=r.match(/^.*[\{\(\[:]\s*$/);g&&(n+=t)}return n};var o={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(i,r,t){if(t!==`\r
|
|
986
|
+
`&&t!=="\r"&&t!==`
|
|
987
|
+
`)return!1;var n=this.getTokenizer().getLineTokens(r.trim(),i).tokens;if(!n)return!1;do var a=n.pop();while(a&&(a.type=="comment"||a.type=="text"&&a.value.match(/^\s+$/)));return a?a.type=="keyword"&&o[a.value]:!1},this.autoOutdent=function(i,r,t){t+=1;var n=this.$getIndent(r.getLine(t)),a=r.getTabString();n.slice(-a.length)==a&&r.remove(new u(t,n.length-a.length,t,n.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(s.prototype),b.Mode=s}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(f,b,z){var R=f("../lib/oop"),_=f("../lib/lang"),S=f("./text").Mode,u=f("./xml_highlight_rules").XmlHighlightRules,h=f("./behaviour/xml").XmlBehaviour,s=f("./folding/xml").FoldMode,o=f("../worker/worker_client").WorkerClient,i=function(){this.HighlightRules=u,this.$behaviour=new h,this.foldingRules=new s};R.inherits(i,S),(function(){this.voidElements=_.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(r){var t=new o(["ace"],"ace/mode/xml_worker","Worker");return t.attachToDocument(r.getDocument()),t.on("error",function(n){r.setAnnotations(n.data)}),t.on("terminate",function(){r.clearAnnotations()}),t},this.$id="ace/mode/xml"}).call(i.prototype),b.Mode=i}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(f,b,z){var R=f("../lib/oop"),_=f("./behaviour/cstyle").CstyleBehaviour,S=f("./text").Mode,u=f("./markdown_highlight_rules").MarkdownHighlightRules,h=f("./folding/markdown").FoldMode,s=function(){this.HighlightRules=u,this.createModeDelegates({javascript:f("./javascript").Mode,html:f("./html").Mode,bash:f("./sh").Mode,sh:f("./sh").Mode,xml:f("./xml").Mode,css:f("./css").Mode}),this.foldingRules=new h,this.$behaviour=new _({braces:!0})};R.inherits(s,S),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(o,i,r){if(o=="listblock"){var t=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(i);if(!t)return"";var n=t[2];return n||(n=parseInt(t[3],10)+1+"."),t[1]+n+t[4]}return this.$getIndent(i)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(s.prototype),b.Mode=s}),(function(){ace.require(["ace/mode/markdown"],function(f){F&&(F.exports=f)})})()})(Ml)),Ml.exports}f0();var $l={exports:{}},Bh;function p0(){return Bh||(Bh=1,(function(F,V){ace.define("ace/theme/twilight-css",["require","exports","module"],function(f,b,z){z.exports=`.ace-twilight .ace_gutter {
|
|
988
|
+
background: #232323;
|
|
989
|
+
color: #E2E2E2
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
.ace-twilight .ace_print-margin {
|
|
993
|
+
width: 1px;
|
|
994
|
+
background: #232323
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.ace-twilight {
|
|
998
|
+
background-color: #141414;
|
|
999
|
+
color: #F8F8F8
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.ace-twilight .ace_cursor {
|
|
1003
|
+
color: #A7A7A7
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
.ace-twilight .ace_marker-layer .ace_selection {
|
|
1007
|
+
background: rgba(221, 240, 255, 0.20)
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.ace-twilight.ace_multiselect .ace_selection.ace_start {
|
|
1011
|
+
box-shadow: 0 0 3px 0px #141414;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.ace-twilight .ace_marker-layer .ace_step {
|
|
1015
|
+
background: rgb(102, 82, 0)
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.ace-twilight .ace_marker-layer .ace_bracket {
|
|
1019
|
+
margin: -1px 0 0 -1px;
|
|
1020
|
+
border: 1px solid rgba(255, 255, 255, 0.25)
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.ace-twilight .ace_marker-layer .ace_active-line {
|
|
1024
|
+
background: rgba(255, 255, 255, 0.031)
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.ace-twilight .ace_gutter-active-line {
|
|
1028
|
+
background-color: rgba(255, 255, 255, 0.031)
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.ace-twilight .ace_marker-layer .ace_selected-word {
|
|
1032
|
+
border: 1px solid rgba(221, 240, 255, 0.20)
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
.ace-twilight .ace_invisible {
|
|
1036
|
+
color: rgba(255, 255, 255, 0.25)
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
.ace-twilight .ace_keyword,
|
|
1040
|
+
.ace-twilight .ace_meta {
|
|
1041
|
+
color: #CDA869
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.ace-twilight .ace_constant,
|
|
1045
|
+
.ace-twilight .ace_constant.ace_character,
|
|
1046
|
+
.ace-twilight .ace_constant.ace_character.ace_escape,
|
|
1047
|
+
.ace-twilight .ace_constant.ace_other,
|
|
1048
|
+
.ace-twilight .ace_heading,
|
|
1049
|
+
.ace-twilight .ace_markup.ace_heading,
|
|
1050
|
+
.ace-twilight .ace_support.ace_constant {
|
|
1051
|
+
color: #CF6A4C
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.ace-twilight .ace_invalid.ace_illegal {
|
|
1055
|
+
color: #F8F8F8;
|
|
1056
|
+
background-color: rgba(86, 45, 86, 0.75)
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.ace-twilight .ace_invalid.ace_deprecated {
|
|
1060
|
+
text-decoration: underline;
|
|
1061
|
+
font-style: italic;
|
|
1062
|
+
color: #D2A8A1
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.ace-twilight .ace_support {
|
|
1066
|
+
color: #9B859D
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.ace-twilight .ace_fold {
|
|
1070
|
+
background-color: #AC885B;
|
|
1071
|
+
border-color: #F8F8F8
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.ace-twilight .ace_support.ace_function {
|
|
1075
|
+
color: #DAD085
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
.ace-twilight .ace_list,
|
|
1079
|
+
.ace-twilight .ace_markup.ace_list,
|
|
1080
|
+
.ace-twilight .ace_storage {
|
|
1081
|
+
color: #F9EE98
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.ace-twilight .ace_entity.ace_name.ace_function,
|
|
1085
|
+
.ace-twilight .ace_meta.ace_tag {
|
|
1086
|
+
color: #AC885B
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.ace-twilight .ace_string {
|
|
1090
|
+
color: #8F9D6A
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
.ace-twilight .ace_string.ace_regexp {
|
|
1094
|
+
color: #E9C062
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
.ace-twilight .ace_comment {
|
|
1098
|
+
font-style: italic;
|
|
1099
|
+
color: #5F5A60
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
.ace-twilight .ace_variable {
|
|
1103
|
+
color: #7587A6
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.ace-twilight .ace_xml-pe {
|
|
1107
|
+
color: #494949
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.ace-twilight .ace_indent-guide {
|
|
1111
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
.ace-twilight .ace_indent-guide-active {
|
|
1115
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
1116
|
+
}
|
|
1117
|
+
`}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(f,b,z){b.isDark=!0,b.cssClass="ace-twilight",b.cssText=f("./twilight-css");var R=f("../lib/dom");R.importCssString(b.cssText,b.cssClass,!1)}),(function(){ace.require(["ace/theme/twilight"],function(f){F&&(F.exports=f)})})()})($l)),$l.exports}p0();var Ll={exports:{}},Ph;function g0(){return Ph||(Ph=1,(function(F,V){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(f,b,z){function R(p){var $=new Date().toLocaleString("en-us",p);return $.length==1?"0"+$:$}var _=f("./lib/dom"),S=f("./lib/oop"),u=f("./lib/event_emitter").EventEmitter,h=f("./lib/lang"),s=f("./range").Range,o=f("./range_list").RangeList,i=f("./keyboard/hash_handler").HashHandler,r=f("./tokenizer").Tokenizer,t=f("./clipboard"),n={CURRENT_WORD:function(p){return p.session.getTextRange(p.session.getWordRange())},SELECTION:function(p,$,I){var M=p.session.getTextRange();return I?M.replace(/\n\r?([ \t]*\S)/g,`
|
|
1118
|
+
`+I+"$1"):M},CURRENT_LINE:function(p){return p.session.getLine(p.getCursorPosition().row)},PREV_LINE:function(p){return p.session.getLine(p.getCursorPosition().row-1)},LINE_INDEX:function(p){return p.getCursorPosition().row},LINE_NUMBER:function(p){return p.getCursorPosition().row+1},SOFT_TABS:function(p){return p.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(p){return p.session.getTabSize()},CLIPBOARD:function(p){return t.getText&&t.getText()},FILENAME:function(p){return/[^/\\]*$/.exec(this.FILEPATH(p))[0]},FILENAME_BASE:function(p){return/[^/\\]*$/.exec(this.FILEPATH(p))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(p){return this.FILEPATH(p).replace(/[^/\\]*$/,"")},FILEPATH:function(p){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(p){var $=p.session.$mode||{};return $.blockComment&&$.blockComment.start||""},BLOCK_COMMENT_END:function(p){var $=p.session.$mode||{};return $.blockComment&&$.blockComment.end||""},LINE_COMMENT:function(p){var $=p.session.$mode||{};return $.lineCommentStart||""},CURRENT_YEAR:R.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:R.bind(null,{year:"2-digit"}),CURRENT_MONTH:R.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:R.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:R.bind(null,{month:"short"}),CURRENT_DATE:R.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:R.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:R.bind(null,{weekday:"short"}),CURRENT_HOUR:R.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:R.bind(null,{minute:"2-digit"}),CURRENT_SECOND:R.bind(null,{second:"2-digit"})};n.SELECTED_TEXT=n.SELECTION;var a=(function(){function p(){this.snippetMap={},this.snippetNameMap={},this.variables=n}return p.prototype.getTokenizer=function(){return p.$tokenizer||this.createTokenizer()},p.prototype.createTokenizer=function(){function $(A){return A=A.substr(1),/^\d+$/.test(A)?[{tabstopId:parseInt(A,10)}]:[{text:A}]}function I(A){return"(?:[^\\\\"+A+"]|\\\\.)"}var M={regex:"/("+I("/")+"+)/",onMatch:function(A,H,D){var T=D[0];return T.fmtString=!0,T.guard=A.slice(1,-1),T.flag="",""},next:"formatString"};return p.$tokenizer=new r({start:[{regex:/\\./,onMatch:function(A,H,D){var T=A[1];return(T=="}"&&D.length||"`$\\".indexOf(T)!=-1)&&(A=T),[A]}},{regex:/}/,onMatch:function(A,H,D){return[D.length?D.shift():A]}},{regex:/\$(?:\d+|\w+)/,onMatch:$},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(A,H,D){var T=$(A.substr(1));return D.unshift(T[0]),T},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+I("\\|")+"*\\|",onMatch:function(A,H,D){var T=A.slice(1,-1).replace(/\\[,|\\]|,/g,function(x){return x.length==2?x[1]:"\0"}).split("\0").map(function(x){return{value:x}});return D[0].choices=T,[T[0]]},next:"start"},M,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(A,H,D){return D.length&&D[0].expectElse?(D[0].expectElse=!1,D[0].ifEnd={elseEnd:D[0]},[D[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(A,H,D){var T=A[1];return T=="}"&&D.length||"`$\\".indexOf(T)!=-1?A=T:T=="n"?A=`
|
|
1119
|
+
`:T=="t"?A=" ":"ulULE".indexOf(T)!=-1&&(A={changeCase:T,local:T>"a"}),[A]}},{regex:"/\\w*}",onMatch:function(A,H,D){var T=D.shift();return T&&(T.flag=A.slice(1,-1)),this.next=T&&T.tabstopId?"start":"",[T||A]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(A,H,D){return[{text:A.slice(1)}]}},{regex:/\${\w+/,onMatch:function(A,H,D){var T={text:A.slice(2)};return D.unshift(T),[T]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(A,H,D){var T=D.shift();return this.next=T&&T.tabstopId?"start":"",[T||A]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(A,H,D){var T=D[0];return T.formatFunction=A.slice(2,-1),[D.shift()]},next:"formatString"},M,{regex:/:[\?\-+]?/,onMatch:function(A,H,D){A[1]=="+"&&(D[0].ifEnd=D[0]),A[1]=="?"&&(D[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),p.$tokenizer},p.prototype.tokenizeTmSnippet=function($,I){return this.getTokenizer().getLineTokens($,I).tokens.map(function(M){return M.value||M})},p.prototype.getVariableValue=function($,I,M){if(/^\d+$/.test(I))return(this.variables.__||{})[I]||"";if(/^[A-Z]\d+$/.test(I))return(this.variables[I[0]+"__"]||{})[I.substr(1)]||"";if(I=I.replace(/^TM_/,""),!this.variables.hasOwnProperty(I))return"";var A=this.variables[I];return typeof A=="function"&&(A=this.variables[I]($,I,M)),A??""},p.prototype.tmStrFormat=function($,I,M){if(!I.fmt)return $;var A=I.flag||"",H=I.guard;H=new RegExp(H,A.replace(/[^gim]/g,""));var D=typeof I.fmt=="string"?this.tokenizeTmSnippet(I.fmt,"formatString"):I.fmt,T=this,x=$.replace(H,function(){var m=T.variables.__;T.variables.__=[].slice.call(arguments);for(var E=T.resolveVariables(D,M),W="E",U=0;U<E.length;U++){var q=E[U];if(typeof q=="object")if(E[U]="",q.changeCase&&q.local){var Q=E[U+1];Q&&typeof Q=="string"&&(q.changeCase=="u"?E[U]=Q[0].toUpperCase():E[U]=Q[0].toLowerCase(),E[U+1]=Q.substr(1))}else q.changeCase&&(W=q.changeCase);else W=="U"?E[U]=q.toUpperCase():W=="L"&&(E[U]=q.toLowerCase())}return T.variables.__=m,E.join("")});return x},p.prototype.tmFormatFunction=function($,I,M){return I.formatFunction=="upcase"?$.toUpperCase():I.formatFunction=="downcase"?$.toLowerCase():$},p.prototype.resolveVariables=function($,I){function M(W){var U=$.indexOf(W,T+1);U!=-1&&(T=U)}for(var A=[],H="",D=!0,T=0;T<$.length;T++){var x=$[T];if(typeof x=="string"){A.push(x),x==`
|
|
1120
|
+
`?(D=!0,H=""):D&&(H=/^\t*/.exec(x)[0],D=/\S/.test(x));continue}if(x){if(D=!1,x.fmtString){var m=$.indexOf(x,T+1);m==-1&&(m=$.length),x.fmt=$.slice(T+1,m),T=m}if(x.text){var E=this.getVariableValue(I,x.text,H)+"";x.fmtString&&(E=this.tmStrFormat(E,x,I)),x.formatFunction&&(E=this.tmFormatFunction(E,x,I)),E&&!x.ifEnd?(A.push(E),M(x)):!E&&x.ifEnd&&M(x.ifEnd)}else x.elseEnd?M(x.elseEnd):(x.tabstopId!=null||x.changeCase!=null)&&A.push(x)}}return A},p.prototype.getDisplayTextForSnippet=function($,I){var M=d.call(this,$,I);return M.text},p.prototype.insertSnippetForSelection=function($,I,M){M===void 0&&(M={});var A=d.call(this,$,I,M),H=$.getSelectionRange(),D=$.session.replace(H,A.text),T=new g($),x=$.inVirtualSelectionMode&&$.selection.index;T.addTabstops(A.tabstops,H.start,D,x)},p.prototype.insertSnippet=function($,I,M){M===void 0&&(M={});var A=this;if($.inVirtualSelectionMode)return A.insertSnippetForSelection($,I,M);$.forEachSelection(function(){A.insertSnippetForSelection($,I,M)},null,{keepOrder:!0}),$.tabstopManager&&$.tabstopManager.tabNext()},p.prototype.$getScope=function($){var I=$.session.$mode.$id||"";if(I=I.split("/").pop(),I==="html"||I==="php"){I==="php"&&!$.session.$mode.inlinePhp&&(I="html");var M=$.getCursorPosition(),A=$.session.getState(M.row);typeof A=="object"&&(A=A[0]),A.substring&&(A.substring(0,3)=="js-"?I="javascript":A.substring(0,4)=="css-"?I="css":A.substring(0,4)=="php-"&&(I="php"))}return I},p.prototype.getActiveScopes=function($){var I=this.$getScope($),M=[I],A=this.snippetMap;return A[I]&&A[I].includeScopes&&M.push.apply(M,A[I].includeScopes),M.push("_"),M},p.prototype.expandWithTab=function($,I){var M=this,A=$.forEachSelection(function(){return M.expandSnippetForSelection($,I)},null,{keepOrder:!0});return A&&$.tabstopManager&&$.tabstopManager.tabNext(),A},p.prototype.expandSnippetForSelection=function($,I){var M=$.getCursorPosition(),A=$.session.getLine(M.row),H=A.substring(0,M.column),D=A.substr(M.column),T=this.snippetMap,x;return this.getActiveScopes($).some(function(m){var E=T[m];return E&&(x=this.findMatchingSnippet(E,H,D)),!!x},this),x?(I&&I.dryRun||($.session.doc.removeInLine(M.row,M.column-x.replaceBefore.length,M.column+x.replaceAfter.length),this.variables.M__=x.matchBefore,this.variables.T__=x.matchAfter,this.insertSnippetForSelection($,x.content),this.variables.M__=this.variables.T__=null),!0):!1},p.prototype.findMatchingSnippet=function($,I,M){for(var A=$.length;A--;){var H=$[A];if(!(H.startRe&&!H.startRe.test(I))&&!(H.endRe&&!H.endRe.test(M))&&!(!H.startRe&&!H.endRe))return H.matchBefore=H.startRe?H.startRe.exec(I):[""],H.matchAfter=H.endRe?H.endRe.exec(M):[""],H.replaceBefore=H.triggerRe?H.triggerRe.exec(I)[0]:"",H.replaceAfter=H.endTriggerRe?H.endTriggerRe.exec(M)[0]:"",H}},p.prototype.register=function($,I){function M(m){return m&&!/^\^?\(.*\)\$?$|^\\b$/.test(m)&&(m="(?:"+m+")"),m||""}function A(m,E,W){return m=M(m),E=M(E),m=E+m,m&&m[m.length-1]!="$"&&(m+="$"),new RegExp(m)}function H(m){m.scope||(m.scope=I||"_"),I=m.scope,D[I]||(D[I]=[],T[I]={});var E=T[I];if(m.name){var W=E[m.name];W&&x.unregister(W),E[m.name]=m}D[I].push(m),m.prefix&&(m.tabTrigger=m.prefix),!m.content&&m.body&&(m.content=Array.isArray(m.body)?m.body.join(`
|
|
1121
|
+
`):m.body),m.tabTrigger&&!m.trigger&&(!m.guard&&/^\w/.test(m.tabTrigger)&&(m.guard="\\b"),m.trigger=h.escapeRegExp(m.tabTrigger)),!(!m.trigger&&!m.guard&&!m.endTrigger&&!m.endGuard)&&(m.startRe=A(m.trigger,m.guard),m.triggerRe=new RegExp(m.trigger),m.endRe=A(m.endTrigger,m.endGuard),m.endTriggerRe=new RegExp(m.endTrigger))}var D=this.snippetMap,T=this.snippetNameMap,x=this;$||($=[]),Array.isArray($)?$.forEach(H):Object.keys($).forEach(function(m){H($[m])}),this._signal("registerSnippets",{scope:I})},p.prototype.unregister=function($,I){function M(D){var T=H[D.scope||I];if(T&&T[D.name]){delete T[D.name];var x=A[D.scope||I],m=x&&x.indexOf(D);m>=0&&x.splice(m,1)}}var A=this.snippetMap,H=this.snippetNameMap;$.content?M($):Array.isArray($)&&$.forEach(M)},p.prototype.parseSnippetFile=function($){$=$.replace(/\r/g,"");for(var I=[],M={},A=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,H;H=A.exec($);){if(H[1])try{M=JSON.parse(H[1]),I.push(M)}catch{}if(H[4])M.content=H[4].replace(/^\t/gm,""),I.push(M),M={};else{var D=H[2],T=H[3];if(D=="regex"){var x=/\/((?:[^\/\\]|\\.)*)|$/g;M.guard=x.exec(T)[1],M.trigger=x.exec(T)[1],M.endTrigger=x.exec(T)[1],M.endGuard=x.exec(T)[1]}else D=="snippet"?(M.tabTrigger=T.match(/^\S*/)[0],M.name||(M.name=T)):D&&(M[D]=T)}}return I},p.prototype.getSnippetByName=function($,I){var M=this.snippetNameMap,A;return this.getActiveScopes(I).some(function(H){var D=M[H];return D&&(A=D[$]),!!A},this),A},p})();S.implement(a.prototype,u);var d=function(p,$,I){function M(le){for(var me=[],Se=0;Se<le.length;Se++){var _e=le[Se];if(typeof _e=="object"){if(E[_e.tabstopId])continue;var Ae=le.lastIndexOf(_e,Se-1);_e=me[Ae]||{tabstopId:_e.tabstopId}}me[Se]=_e}return me}I===void 0&&(I={});var A=p.getCursorPosition(),H=p.session.getLine(A.row),D=p.session.getTabString(),T=H.match(/^\s*/)[0];A.column<T.length&&(T=T.slice(0,A.column)),$=$.replace(/\r/g,"");var x=this.tokenizeTmSnippet($);x=this.resolveVariables(x,p),x=x.map(function(le){return le==`
|
|
1122
|
+
`&&!I.excludeExtraIndent?le+T:typeof le=="string"?le.replace(/\t/g,D):le});var m=[];x.forEach(function(le,me){if(typeof le=="object"){var Se=le.tabstopId,_e=m[Se];if(_e||(_e=m[Se]=[],_e.index=Se,_e.value="",_e.parents={}),_e.indexOf(le)===-1){le.choices&&!_e.choices&&(_e.choices=le.choices),_e.push(le);var Ae=x.indexOf(le,me+1);if(Ae!==-1){var qe=x.slice(me+1,Ae),Ue=qe.some(function(nt){return typeof nt=="object"});Ue&&!_e.value?_e.value=qe:qe.length&&(!_e.value||typeof _e.value!="string")&&(_e.value=qe.join(""))}}}}),m.forEach(function(le){le.length=0});for(var E={},W=0;W<x.length;W++){var U=x[W];if(typeof U=="object"){var q=U.tabstopId,Q=m[q],te=x.indexOf(U,W+1);if(E[q]){E[q]===U&&(delete E[q],Object.keys(E).forEach(function(le){Q.parents[le]=!0}));continue}E[q]=U;var ce=Q.value;typeof ce!="string"?ce=M(ce):U.fmt&&(ce=this.tmStrFormat(ce,U,p)),x.splice.apply(x,[W+1,Math.max(0,te-W)].concat(ce,U)),Q.indexOf(U)===-1&&Q.push(U)}}var ne=0,he=0,ue="";return x.forEach(function(le){if(typeof le=="string"){var me=le.split(`
|
|
1123
|
+
`);me.length>1?(he=me[me.length-1].length,ne+=me.length-1):he+=le.length,ue+=le}else le&&(le.start?le.end={row:ne,column:he}:le.start={row:ne,column:he})}),{text:ue,tabstops:m,tokens:x}},g=(function(){function p($){if(this.index=0,this.ranges=[],this.tabstops=[],$.tabstopManager)return $.tabstopManager;$.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=h.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach($)}return p.prototype.attach=function($){this.$openTabstops=null,this.selectedTabstop=null,this.editor=$,this.session=$.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},p.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},p.prototype.onChange=function($){for(var I=$.action[0]=="r",M=this.selectedTabstop||{},A=M.parents||{},H=this.tabstops.slice(),D=0;D<H.length;D++){var T=H[D],x=T==M||A[T.index];if(T.rangeList.$bias=x?0:1,$.action=="remove"&&T!==M){var m=T.parents&&T.parents[M.index],E=T.rangeList.pointIndex($.start,m);E=E<0?-E-1:E+1;var W=T.rangeList.pointIndex($.end,m);W=W<0?-W-1:W-1;for(var U=T.rangeList.ranges.slice(E,W),q=0;q<U.length;q++)this.removeRange(U[q])}T.rangeList.$onChange($)}var Q=this.session;!this.$inChange&&I&&Q.getLength()==1&&!Q.getValue()&&this.detach()},p.prototype.updateLinkedFields=function(){var $=this.selectedTabstop;if(!(!$||!$.hasLinkedRanges||!$.firstNonLinked)){this.$inChange=!0;for(var I=this.session,M=I.getTextRange($.firstNonLinked),A=0;A<$.length;A++){var H=$[A];if(H.linked){var D=H.original,T=b.snippetManager.tmStrFormat(M,D,this.editor);I.replace(H,T)}}this.$inChange=!1}},p.prototype.onAfterExec=function($){$.command&&!$.command.readOnly&&this.updateLinkedFields()},p.prototype.onChangeSelection=function(){if(this.editor){for(var $=this.editor.selection.lead,I=this.editor.selection.anchor,M=this.editor.selection.isEmpty(),A=0;A<this.ranges.length;A++)if(!this.ranges[A].linked){var H=this.ranges[A].contains($.row,$.column),D=M||this.ranges[A].contains(I.row,I.column);if(H&&D)return}this.detach()}},p.prototype.onChangeSession=function(){this.detach()},p.prototype.tabNext=function($){var I=this.tabstops.length,M=this.index+($||1);M=Math.min(Math.max(M,1),I),M==I&&(M=0),this.selectTabstop(M),this.updateTabstopMarkers(),M===0&&this.detach()},p.prototype.selectTabstop=function($){this.$openTabstops=null;var I=this.tabstops[this.index];if(I&&this.addTabstopMarkers(I),this.index=$,I=this.tabstops[this.index],!(!I||!I.length)){this.selectedTabstop=I;var M=I.firstNonLinked||I;if(I.choices&&(M.cursor=M.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(M);else{var A=this.editor.multiSelect;A.toSingleRange(M);for(var H=0;H<I.length;H++)I.hasLinkedRanges&&I[H].linked||A.addRange(I[H].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},p.prototype.addTabstops=function($,I,M){var A=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!$[0]){var H=s.fromPoints(M,M);C(H.start,I),C(H.end,I),$[0]=[H],$[0].index=0}var D=this.index,T=[D+1,0],x=this.ranges,m=this.snippetId=(this.snippetId||0)+1;$.forEach(function(E,W){var U=this.$openTabstops[W]||E;U.snippetId=m;for(var q=0;q<E.length;q++){var Q=E[q],te=s.fromPoints(Q.start,Q.end||Q.start);L(te.start,I),L(te.end,I),te.original=Q,te.tabstop=U,x.push(te),U!=E?U.unshift(te):U[q]=te,Q.fmtString||U.firstNonLinked&&A?(te.linked=!0,U.hasLinkedRanges=!0):U.firstNonLinked||(U.firstNonLinked=te)}U.firstNonLinked||(U.hasLinkedRanges=!1),U===E&&(T.push(U),this.$openTabstops[W]=U),this.addTabstopMarkers(U),U.rangeList=U.rangeList||new o,U.rangeList.$bias=0,U.rangeList.addList(U)},this),T.length>2&&(this.tabstops.length&&T.push(T.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,T))},p.prototype.addTabstopMarkers=function($){var I=this.session;$.forEach(function(M){M.markerId||(M.markerId=I.addMarker(M,"ace_snippet-marker","text"))})},p.prototype.removeTabstopMarkers=function($){var I=this.session;$.forEach(function(M){I.removeMarker(M.markerId),M.markerId=null})},p.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var $=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&$--,this.tabstops.forEach(function(I){I.snippetId===$?this.addTabstopMarkers(I):this.removeTabstopMarkers(I)},this)}},p.prototype.removeRange=function($){var I=$.tabstop.indexOf($);I!=-1&&$.tabstop.splice(I,1),I=this.ranges.indexOf($),I!=-1&&this.ranges.splice(I,1),I=$.tabstop.rangeList.ranges.indexOf($),I!=-1&&$.tabstop.splice(I,1),this.session.removeMarker($.markerId),$.tabstop.length||(I=this.tabstops.indexOf($.tabstop),I!=-1&&this.tabstops.splice(I,1),this.tabstops.length||this.detach())},p})();g.prototype.keyboardHandler=new i,g.prototype.keyboardHandler.bindKeys({Tab:function(p){b.snippetManager&&b.snippetManager.expandWithTab(p)||(p.tabstopManager.tabNext(1),p.renderer.scrollCursorIntoView())},"Shift-Tab":function(p){p.tabstopManager.tabNext(-1),p.renderer.scrollCursorIntoView()},Esc:function(p){p.tabstopManager.detach()}});var L=function(p,$){p.row==0&&(p.column+=$.column),p.row+=$.row},C=function(p,$){p.row==$.row&&(p.column-=$.column),p.row-=$.row};_.importCssString(`
|
|
1124
|
+
.ace_snippet-marker {
|
|
1125
|
+
-moz-box-sizing: border-box;
|
|
1126
|
+
box-sizing: border-box;
|
|
1127
|
+
background: rgba(194, 193, 208, 0.09);
|
|
1128
|
+
border: 1px dotted rgba(211, 208, 235, 0.62);
|
|
1129
|
+
position: absolute;
|
|
1130
|
+
}`,"snippets.css",!1),b.snippetManager=new a;var y=f("./editor").Editor;(function(){this.insertSnippet=function(p,$){return b.snippetManager.insertSnippet(this,p,$)},this.expandSnippet=function(p){return b.snippetManager.expandWithTab(this,p)}}).call(y.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(f,b,z){var R=f("../virtual_renderer").VirtualRenderer,_=f("../editor").Editor,S=f("../range").Range,u=f("../lib/event"),h=f("../lib/lang"),s=f("../lib/dom"),o=f("../config").nls,i=f("./../lib/useragent"),r=function(L){return"suggest-aria-id:".concat(L)},t=i.isSafari?"menu":"listbox",n=i.isSafari?"menuitem":"option",a=i.isSafari?"aria-current":"aria-selected",d=function(L){var C=new R(L);C.$maxLines=4;var y=new _(C);return y.setHighlightActiveLine(!1),y.setShowPrintMargin(!1),y.renderer.setShowGutter(!1),y.renderer.setHighlightGutterLine(!1),y.$mouseHandler.$focusTimeout=0,y.$highlightTagPending=!0,y},g=(function(){function L(C){var y=s.createElement("div"),p=d(y);C&&C.appendChild(y),y.style.display="none",p.renderer.content.style.cursor="default",p.renderer.setStyle("ace_autocomplete"),p.renderer.$textLayer.element.setAttribute("role",t),p.renderer.$textLayer.element.setAttribute("aria-roledescription",o("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),p.renderer.$textLayer.element.setAttribute("aria-label",o("autocomplete.popup.aria-label","Autocomplete suggestions")),p.renderer.textarea.setAttribute("aria-hidden","true"),p.setOption("displayIndentGuides",!1),p.setOption("dragDelay",150);var $=function(){};p.focus=$,p.$isFocused=!0,p.renderer.$cursorLayer.restartTimer=$,p.renderer.$cursorLayer.element.style.opacity="0",p.renderer.$maxLines=8,p.renderer.$keepTextAreaAtCursor=!1,p.setHighlightActiveLine(!1),p.session.highlight(""),p.session.$searchHighlight.clazz="ace_highlight-marker",p.on("mousedown",function(x){var m=x.getDocumentPosition();p.selection.moveToPosition(m),A.start.row=A.end.row=m.row,x.stop()});var I,M=new S(-1,0,-1,1/0),A=new S(-1,0,-1,1/0);A.id=p.session.addMarker(A,"ace_active-line","fullLine"),p.setSelectOnHover=function(x){x?M.id&&(p.session.removeMarker(M.id),M.id=null):M.id=p.session.addMarker(M,"ace_line-hover","fullLine")},p.setSelectOnHover(!1),p.on("mousemove",function(x){if(!I){I=x;return}if(!(I.x==x.x&&I.y==x.y)){I=x,I.scrollTop=p.renderer.scrollTop,p.isMouseOver=!0;var m=I.getDocumentPosition().row;M.start.row!=m&&(M.id||p.setRow(m),D(m))}}),p.renderer.on("beforeRender",function(){if(I&&M.start.row!=-1){I.$pos=null;var x=I.getDocumentPosition().row;M.id||p.setRow(x),D(x,!0)}}),p.renderer.on("afterRender",function(){for(var x=p.renderer.$textLayer,m=x.config.firstRow,E=x.config.lastRow;m<=E;m++){var W=x.element.childNodes[m-x.config.firstRow];W.setAttribute("role",n),W.setAttribute("aria-roledescription",o("autocomplete.popup.item.aria-roledescription","item")),W.setAttribute("aria-setsize",p.data.length),W.setAttribute("aria-describedby","doc-tooltip"),W.setAttribute("aria-posinset",m+1);var U=p.getData(m);if(U){var q="".concat(U.caption||U.value).concat(U.meta?", ".concat(U.meta):"");W.setAttribute("aria-label",q)}var Q=W.querySelectorAll(".ace_completion-highlight");Q.forEach(function(te){te.setAttribute("role","mark")})}}),p.renderer.on("afterRender",function(){var x=p.getRow(),m=p.renderer.$textLayer,E=m.element.childNodes[x-m.config.firstRow],W=document.activeElement;if(E!==p.selectedNode&&p.selectedNode&&(s.removeCssClass(p.selectedNode,"ace_selected"),p.selectedNode.removeAttribute(a),p.selectedNode.removeAttribute("id")),W.removeAttribute("aria-activedescendant"),p.selectedNode=E,E){var U=r(x);s.addCssClass(E,"ace_selected"),E.id=U,m.element.setAttribute("aria-activedescendant",U),W.setAttribute("aria-activedescendant",U),E.setAttribute(a,"true")}});var H=function(){D(-1)},D=function(x,m){x!==M.start.row&&(M.start.row=M.end.row=x,m||p.session._emit("changeBackMarker"),p._emit("changeHoverMarker"))};p.getHoveredRow=function(){return M.start.row},u.addListener(p.container,"mouseout",function(){p.isMouseOver=!1,H()}),p.on("hide",H),p.on("changeSelection",H),p.session.doc.getLength=function(){return p.data.length},p.session.doc.getLine=function(x){var m=p.data[x];return typeof m=="string"?m:m&&m.value||""};var T=p.session.bgTokenizer;return T.$tokenizeRow=function(x){function m(le,me){le&&W.push({type:(E.className||"")+(me||""),value:le})}var E=p.data[x],W=[];if(!E)return W;typeof E=="string"&&(E={value:E});for(var U=E.caption||E.value||E.name,q=U.toLowerCase(),Q=(p.filterText||"").toLowerCase(),te=0,ce=0,ne=0;ne<=Q.length;ne++)if(ne!=ce&&(E.matchMask&1<<ne||ne==Q.length)){var he=Q.slice(ce,ne);ce=ne;var ue=q.indexOf(he,te);if(ue==-1)continue;m(U.slice(te,ue),""),te=ue+he.length,m(U.slice(ue,te),"completion-highlight")}return m(U.slice(te,U.length),""),W.push({type:"completion-spacer",value:" "}),E.meta&&W.push({type:"completion-meta",value:E.meta}),E.message&&W.push({type:"completion-message",value:E.message}),W},T.$updateOnChange=$,T.start=$,p.session.$computeWidth=function(){return this.screenWidth=0},p.isOpen=!1,p.isTopdown=!1,p.autoSelect=!0,p.filterText="",p.isMouseOver=!1,p.data=[],p.setData=function(x,m){p.filterText=m||"",p.setValue(h.stringRepeat(`
|
|
1131
|
+
`,x.length),-1),p.data=x||[],p.setRow(0)},p.getData=function(x){return p.data[x]},p.getRow=function(){return A.start.row},p.setRow=function(x){x=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,x)),A.start.row!=x&&(p.selection.clearSelection(),A.start.row=A.end.row=x||0,p.session._emit("changeBackMarker"),p.moveCursorTo(x||0,0),p.isOpen&&p._signal("select"))},p.on("changeSelection",function(){p.isOpen&&p.setRow(p.selection.lead.row),p.renderer.scrollCursorIntoView()}),p.hide=function(){this.container.style.display="none",p.anchorPos=null,p.anchor=null,p.isOpen&&(p.isOpen=!1,this._signal("hide"))},p.tryShow=function(x,m,E,W){if(!W&&p.isOpen&&p.anchorPos&&p.anchor&&p.anchorPos.top===x.top&&p.anchorPos.left===x.left&&p.anchor===E)return!0;var U=this.container,q=this.renderer.scrollBar.width||10,Q=window.innerHeight-q,te=window.innerWidth-q,ce=this.renderer,ne=ce.$maxLines*m*1.4,he={top:0,bottom:0},ue=Q-x.top-3*this.$borderSize-m,le=x.top-3*this.$borderSize;E||(le<=ue||ue>=ne?E="bottom":E="top"),E==="top"?(he.bottom=x.top-this.$borderSize,he.top=he.bottom-ne):E==="bottom"&&(he.top=x.top+m+this.$borderSize,he.bottom=he.top+ne);var me=he.top>=0&&he.bottom<=Q;if(!W&&!me)return!1;me?ce.$maxPixelHeight=null:E==="top"?ce.$maxPixelHeight=le:ce.$maxPixelHeight=ue,E==="top"?(U.style.top="",U.style.bottom=Q+q-he.bottom+"px",p.isTopdown=!1):(U.style.top=he.top+"px",U.style.bottom="",p.isTopdown=!0),U.style.display="";var Se=x.left;return Se+U.offsetWidth>te&&(Se=te-U.offsetWidth),U.style.left=Se+"px",U.style.right="",s.$fixPositionBug(U),p.isOpen||(p.isOpen=!0,this._signal("show"),I=null),p.anchorPos=x,p.anchor=E,!0},p.show=function(x,m,E){this.tryShow(x,m,E?"bottom":void 0,!0)},p.goTo=function(x){var m=this.getRow(),E=this.session.getLength()-1;switch(x){case"up":m=m<=0?E:m-1;break;case"down":m=m>=E?-1:m+1;break;case"start":m=0;break;case"end":m=E}this.setRow(m)},p.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},p.$imageSize=0,p.$borderSize=1,p}return L})();s.importCssString(`
|
|
1132
|
+
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1133
|
+
background-color: #CAD6FA;
|
|
1134
|
+
z-index: 1;
|
|
1135
|
+
}
|
|
1136
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1137
|
+
background-color: #3a674e;
|
|
1138
|
+
}
|
|
1139
|
+
.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1140
|
+
border: 1px solid #abbffe;
|
|
1141
|
+
margin-top: -1px;
|
|
1142
|
+
background: rgba(233,233,253,0.4);
|
|
1143
|
+
position: absolute;
|
|
1144
|
+
z-index: 2;
|
|
1145
|
+
}
|
|
1146
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1147
|
+
border: 1px solid rgba(109, 150, 13, 0.8);
|
|
1148
|
+
background: rgba(58, 103, 78, 0.62);
|
|
1149
|
+
}
|
|
1150
|
+
.ace_completion-meta {
|
|
1151
|
+
opacity: 0.5;
|
|
1152
|
+
margin-left: 0.9em;
|
|
1153
|
+
}
|
|
1154
|
+
.ace_completion-message {
|
|
1155
|
+
margin-left: 0.9em;
|
|
1156
|
+
color: blue;
|
|
1157
|
+
}
|
|
1158
|
+
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1159
|
+
color: #2d69c7;
|
|
1160
|
+
}
|
|
1161
|
+
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1162
|
+
color: #93ca12;
|
|
1163
|
+
}
|
|
1164
|
+
.ace_editor.ace_autocomplete {
|
|
1165
|
+
width: 300px;
|
|
1166
|
+
z-index: 200000;
|
|
1167
|
+
border: 1px lightgray solid;
|
|
1168
|
+
position: fixed;
|
|
1169
|
+
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
1170
|
+
line-height: 1.4;
|
|
1171
|
+
background: #fefefe;
|
|
1172
|
+
color: #111;
|
|
1173
|
+
}
|
|
1174
|
+
.ace_dark.ace_editor.ace_autocomplete {
|
|
1175
|
+
border: 1px #484747 solid;
|
|
1176
|
+
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
|
1177
|
+
line-height: 1.4;
|
|
1178
|
+
background: #25282c;
|
|
1179
|
+
color: #c1c1c1;
|
|
1180
|
+
}
|
|
1181
|
+
.ace_autocomplete .ace_text-layer {
|
|
1182
|
+
width: calc(100% - 8px);
|
|
1183
|
+
}
|
|
1184
|
+
.ace_autocomplete .ace_line {
|
|
1185
|
+
display: flex;
|
|
1186
|
+
align-items: center;
|
|
1187
|
+
}
|
|
1188
|
+
.ace_autocomplete .ace_line > * {
|
|
1189
|
+
min-width: 0;
|
|
1190
|
+
flex: 0 0 auto;
|
|
1191
|
+
}
|
|
1192
|
+
.ace_autocomplete .ace_line .ace_ {
|
|
1193
|
+
flex: 0 1 auto;
|
|
1194
|
+
overflow: hidden;
|
|
1195
|
+
text-overflow: ellipsis;
|
|
1196
|
+
}
|
|
1197
|
+
.ace_autocomplete .ace_completion-spacer {
|
|
1198
|
+
flex: 1;
|
|
1199
|
+
}
|
|
1200
|
+
.ace_autocomplete.ace_loading:after {
|
|
1201
|
+
content: "";
|
|
1202
|
+
position: absolute;
|
|
1203
|
+
top: 0px;
|
|
1204
|
+
height: 2px;
|
|
1205
|
+
width: 8%;
|
|
1206
|
+
background: blue;
|
|
1207
|
+
z-index: 100;
|
|
1208
|
+
animation: ace_progress 3s infinite linear;
|
|
1209
|
+
animation-delay: 300ms;
|
|
1210
|
+
transform: translateX(-100%) scaleX(1);
|
|
1211
|
+
}
|
|
1212
|
+
@keyframes ace_progress {
|
|
1213
|
+
0% { transform: translateX(-100%) scaleX(1) }
|
|
1214
|
+
50% { transform: translateX(625%) scaleX(2) }
|
|
1215
|
+
100% { transform: translateX(1500%) scaleX(3) }
|
|
1216
|
+
}
|
|
1217
|
+
@media (prefers-reduced-motion) {
|
|
1218
|
+
.ace_autocomplete.ace_loading:after {
|
|
1219
|
+
transform: translateX(625%) scaleX(2);
|
|
1220
|
+
animation: none;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
`,"autocompletion.css",!1),b.AcePopup=g,b.$singleLineEditor=d,b.getAriaId=r}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(f,b,z){var R=(function(){function _(S){this.editor=S,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return _.prototype.setScreenReaderContent=function(S){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var h=this.popup.getRow(),s=this.popup.renderer.$textLayer,o=s.element.childNodes[h-s.config.firstRow];if(o){for(var i="doc-tooltip ",r=0;r<this._lines.length;r++)i+="ace-inline-screenreader-line-".concat(r," ");o.setAttribute("aria-describedby",i)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=S.split(/\r\n|\r|\n/);var u=this.createCodeBlock();this.screenReaderDiv.appendChild(u)},_.prototype.destroy=function(){this.screenReaderDiv.remove()},_.prototype.createCodeBlock=function(){var S=document.createElement("pre");S.setAttribute("id","ace-inline-screenreader");for(var u=0;u<this._lines.length;u++){var h=document.createElement("code");h.setAttribute("id","ace-inline-screenreader-line-".concat(u));var s=document.createTextNode(this._lines[u]);h.appendChild(s),S.appendChild(h)}return S},_})();b.AceInlineScreenReader=R}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(f,b,z){var R=f("../snippets").snippetManager,_=f("./inline_screenreader").AceInlineScreenReader,S=(function(){function u(){this.editor=null}return u.prototype.show=function(h,s,o){if(o=o||"",h&&this.editor&&this.editor!==h&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!h||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new _(h));var i=s.snippet?R.getDisplayTextForSnippet(h,s.snippet):s.value;return s.hideInlinePreview||!i||!i.startsWith(o)?!1:(this.editor=h,this.inlineScreenReader.setScreenReaderContent(i),i=i.slice(o.length),i===""?h.removeGhostText():h.setGhostText(i),!0)},u.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},u.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},u.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},u})();b.AceInline=S}),ace.define("ace/autocomplete/util",["require","exports","module"],function(f,b,z){b.parForEach=function(_,S,u){var h=0,s=_.length;s===0&&u();for(var o=0;o<s;o++)S(_[o],function(i,r){h++,h===s&&u(i,r)})};var R=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;b.retrievePrecedingIdentifier=function(_,S,u){u=u||R;for(var h=[],s=S-1;s>=0&&u.test(_[s]);s--)h.push(_[s]);return h.reverse().join("")},b.retrieveFollowingIdentifier=function(_,S,u){u=u||R;for(var h=[],s=S;s<_.length&&u.test(_[s]);s++)h.push(_[s]);return h},b.getCompletionPrefix=function(_){var S=_.getCursorPosition(),u=_.session.getLine(S.row),h;return _.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(o){!h&&o&&(h=this.retrievePrecedingIdentifier(u,S.column,o))}).bind(this))}).bind(this)),h||this.retrievePrecedingIdentifier(u,S.column)},b.triggerAutocomplete=function(_,u){var u=u??_.session.getPrecedingCharacter();return _.completers.some(function(h){if(h.triggerCharacters&&Array.isArray(h.triggerCharacters))return h.triggerCharacters.includes(u)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(f,b,z){var R=f("./keyboard/hash_handler").HashHandler,_=f("./autocomplete/popup").AcePopup,S=f("./autocomplete/inline").AceInline,u=f("./autocomplete/popup").getAriaId,h=f("./autocomplete/util"),s=f("./lib/lang"),o=f("./lib/dom"),i=f("./snippets").snippetManager,r=f("./config"),t=f("./lib/event"),n=f("./lib/scroll").preventParentScroll,a=function(C,y){y.completer&&y.completer.destroy()},d=(function(){function C(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new R,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var y=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!y||this.editor.completers.length===0||(this.completions=new L(C.completionsForLoading),this.openPopup(this.editor,y.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(C,"completionsForLoading",{get:function(){return[{caption:r.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),C.prototype.$init=function(){return this.popup=new _(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(y){this.insertMatch(),y.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),t.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},C.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new S,this.inlineRenderer},C.prototype.getPopup=function(){return this.popup||this.$init()},C.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},C.prototype.$seen=function(y){!this.hasSeen.has(y)&&y&&y.completer&&y.completer.onSeen&&typeof y.completer.onSeen=="function"&&(y.completer.onSeen(this.editor,y),this.hasSeen.add(y))},C.prototype.$onPopupChange=function(y){if(this.inlineRenderer&&this.inlineEnabled){var p=y?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(p),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},C.prototype.$updateGhostText=function(y){var p=this.base.row,$=this.base.column,I=this.editor.getCursorPosition().column,M=this.editor.session.getLine(p).slice($,I);this.inlineRenderer.show(this.editor,y,M)?this.$seen(y):this.inlineRenderer.hide()},C.prototype.$onPopupRender=function(){var y=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var p=this.popup.getFirstVisibleRow();p<=this.popup.getLastVisibleRow();p++){var $=this.popup.getData(p);$&&(!y||$.hideInlinePreview)&&this.$seen($)}},C.prototype.$onPopupShow=function(y){this.$onPopupChange(y),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},C.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var y=this.editor.container.parentNode,p=[];y;)p.push(y),y.addEventListener("scroll",this.onLayoutChange,{passive:!0}),y=y.parentNode;this.$elements=p}},C.prototype.unObserveLayoutChanges=function(){var y=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(p){p.removeEventListener("scroll",y.onLayoutChange,{passive:!0})}),this.$elements=null},C.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},C.prototype.$updatePopupPosition=function(){var y=this.editor,p=y.renderer,$=p.layerConfig.lineHeight,I=p.$cursorLayer.getPixelPosition(this.base,!0);I.left-=this.popup.getTextLeftOffset();var M=y.container.getBoundingClientRect();I.top+=M.top-p.layerConfig.offset,I.left+=M.left-y.renderer.scrollLeft,I.left+=p.gutterWidth;var A={top:I.top,left:I.left};p.$ghostText&&p.$ghostTextWidget&&this.base.row===p.$ghostText.position.row&&(A.top+=p.$ghostTextWidget.el.offsetHeight);var H=y.container.getBoundingClientRect().bottom-$,D=H<A.top?{top:H,left:A.left}:A;this.popup.tryShow(D,$,"bottom")||this.popup.tryShow(I,$,"top")||this.popup.show(I,$)},C.prototype.openPopup=function(y,p,$){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var I=this.popup.getRow(),M=this.popup.data[I];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:u(this.popup.getRow()),inline:this.inlineEnabled}),y.keyBinding.addKeyboardHandler(this.keyboardHandler);var A;this.stickySelection&&(A=this.popup.data.indexOf(M)),(!A||A===-1)&&(A=0),this.popup.setRow(this.autoSelect?A:-1),A===I&&M!==this.completions.filtered[A]&&this.$onPopupChange();var H=this.inlineRenderer&&this.inlineEnabled;if(A===I&&H){var D=this.popup.getData(this.popup.getRow());this.$updateGhostText(D)}$||(this.popup.setTheme(y.getTheme()),this.popup.setFontSize(y.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},C.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},C.prototype.changeListener=function(y){var p=this.editor.selection.lead;(p.row!=this.base.row||p.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},C.prototype.blurListener=function(y){var p=document.activeElement,$=this.editor.textInput.getElement(),I=y.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(y.relatedTarget),M=this.popup&&this.popup.container;p!=$&&p.parentNode!=M&&!I&&p!=this.tooltipNode&&y.relatedTarget!=$&&this.detach()},C.prototype.mousedownListener=function(y){this.detach()},C.prototype.mousewheelListener=function(y){this.popup&&!this.popup.isMouseOver&&this.detach()},C.prototype.mouseOutListener=function(y){this.popup.isOpen&&this.$updatePopupPosition()},C.prototype.goTo=function(y){this.popup.goTo(y)},C.prototype.insertMatch=function(y,p){if(y||(y=this.popup.getData(this.popup.getRow())),!y)return!1;if(y.value==="")return this.detach();var $=this.completions,I=this.getCompletionProvider().insertMatch(this.editor,y,$.filterText,p);return this.completions==$&&this.detach(),I},C.prototype.showPopup=function(y,p){this.editor&&this.detach(),this.activated=!0,this.editor=y,y.completer!=this&&(y.completer&&y.completer.detach(),y.completer=this),y.on("changeSelection",this.changeListener),y.on("blur",this.blurListener),y.on("mousedown",this.mousedownListener),y.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,p)},C.prototype.getCompletionProvider=function(y){return this.completionProvider||(this.completionProvider=new g(y)),this.completionProvider},C.prototype.gatherCompletions=function(y,p){return this.getCompletionProvider().gatherCompletions(y,p)},C.prototype.updateCompletions=function(y,p){if(y&&this.base&&this.completions){var I=this.editor.getCursorPosition(),M=this.editor.session.getTextRange({start:this.base,end:I});if(M==this.completions.filterText)return;if(this.completions.setFilter(M),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==M&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,M,y);return}if(p&&p.matches){var I=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(I.row,I.column),this.base.$insertRight=!0,this.completions=new L(p.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",y)}var $=this.editor.getSession(),I=this.editor.getCursorPosition(),M=h.getCompletionPrefix(this.editor);this.base=$.doc.createAnchor(I.row,I.column-M.length),this.base.$insertRight=!0;var A={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:M,pos:I}).provideCompletions(this.editor,A,(function(H,D,T){var x=D.filtered,m=h.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),T){if(!x.length){var E=!this.autoShown&&this.emptyMessage;if(typeof E=="function"&&(E=this.emptyMessage(m)),E){var W=[{caption:E,value:""}];this.completions=new L(W),this.openPopup(this.editor,m,y),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(x.length==1&&x[0].value==m&&!x[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&x.length==1)return this.insertMatch(x[0])}this.completions=!T&&this.showLoadingState?new L(C.completionsForLoading.concat(x),D.filterText):D,this.openPopup(this.editor,m,y),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!T)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},C.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},C.prototype.updateDocTooltip=function(){var y=this.popup,p=this.completions&&this.completions.filtered,$=p&&(p[y.getHoveredRow()]||p[y.getRow()]),I=null;if(!$||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var M=this.editor.completers.length,A=0;A<M;A++){var H=this.editor.completers[A];if(H.getDocTooltip&&$.completerId===H.id){I=H.getDocTooltip($);break}}if(!I&&typeof $!="string"&&(I=$),typeof I=="string"&&(I={docText:I}),!I||!I.docHTML&&!I.docText)return this.hideDocTooltip();this.showDocTooltip(I)},C.prototype.showDocTooltip=function(y){this.tooltipNode||(this.tooltipNode=o.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",n));var p=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(p.isDark?"ace_dark ":"")+(p.cssClass||"");var $=this.tooltipNode;y.docHTML?$.innerHTML=y.docHTML:y.docText&&($.textContent=y.docText),$.parentNode||this.popup.container.appendChild(this.tooltipNode);var I=this.popup,M=I.container.getBoundingClientRect(),A=400,H=300,D=I.renderer.scrollBar.width||10,T=M.left,x=window.innerWidth-M.right-D,m=I.isTopdown?window.innerHeight-D-M.bottom:M.top,E=[Math.min(x/A,1),Math.min(T/A,1),Math.min(m/H,1)*.9],W=Math.max.apply(Math,E),U=$.style;U.display="block",W==E[0]||E[0]>=1?(U.left=M.right+1+"px",U.right="",U.maxWidth=A*W+"px",U.top=M.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-D-M.top,H)+"px"):W==E[1]||E[1]>=1?(U.right=window.innerWidth-M.left+"px",U.left="",U.maxWidth=A*W+"px",U.top=M.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-D-M.top,H)+"px"):W==E[2]&&(U.left=M.left+"px",U.right="",U.maxWidth=Math.min(A,window.innerWidth-M.left)+"px",I.isTopdown?(U.top=M.bottom+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-D-M.bottom,H)+"px"):(U.top="",U.bottom=window.innerHeight-M.top+"px",U.maxHeight=Math.min(M.top,H)+"px")),o.$fixPositionBug($)},C.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var y=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==y&&this.editor.focus(),this.tooltipNode=null,y.parentNode&&y.parentNode.removeChild(y)}},C.prototype.onTooltipClick=function(y){for(var p=y.target;p&&p!=this.tooltipNode;){if(p.nodeName=="A"&&p.href){p.rel="noreferrer",p.target="_blank";break}p=p.parentNode}},C.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var y=this.popup.container;y&&y.parentNode&&y.parentNode.removeChild(y)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",a),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},C.for=function(y){return y.completer instanceof C||(y.completer&&(y.completer.destroy(),y.completer=null),r.get("sharedPopups")?(C.$sharedInstance||(C.$sharedInstance=new C),y.completer=C.$sharedInstance):(y.completer=new C,y.once("destroy",a))),y.completer},C})();d.prototype.commands={Up:function(C){C.completer.goTo("up")},Down:function(C){C.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(C){C.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(C){C.completer.goTo("end")},Esc:function(C){C.completer.detach()},Return:function(C){return C.completer.insertMatch()},"Shift-Return":function(C){C.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(C){var y=C.completer.insertMatch();if(y||C.tabstopManager)return y;C.completer.goTo("down")},Backspace:function(C){C.execCommand("backspace");var y=h.getCompletionPrefix(C);!y&&C.completer&&C.completer.detach()},PageUp:function(C){C.completer.popup.gotoPageUp()},PageDown:function(C){C.completer.popup.gotoPageDown()}},d.startCommand={name:"startAutocomplete",exec:function(C,y){var p=d.for(C);p.autoInsert=!1,p.autoSelect=!0,p.autoShown=!1,p.showPopup(C,y),p.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var g=(function(){function C(y){this.initialPosition=y,this.active=!0}return C.prototype.insertByIndex=function(y,p,$){return!this.completions||!this.completions.filtered?!1:this.insertMatch(y,this.completions.filtered[p],$)},C.prototype.insertMatch=function(y,p,$){if(!p)return!1;if(y.startOperation({command:{name:"insertMatch"}}),p.completer&&p.completer.insertMatch)p.completer.insertMatch(y,p);else{if(!this.completions)return!1;var I=this.completions.filterText.length,M=0;if(p.range&&p.range.start.row===p.range.end.row&&(I-=this.initialPosition.prefix.length,I+=this.initialPosition.pos.column-p.range.start.column,M+=p.range.end.column-this.initialPosition.pos.column),I||M){var A;y.selection.getAllRanges?A=y.selection.getAllRanges():A=[y.getSelectionRange()];for(var H=0,D;D=A[H];H++)D.start.column-=I,D.end.column+=M,y.session.remove(D)}p.snippet?i.insertSnippet(y,p.snippet):this.$insertString(y,p),p.completer&&p.completer.onInsert&&typeof p.completer.onInsert=="function"&&p.completer.onInsert(y,p),p.command&&p.command==="startAutocomplete"&&y.execCommand(p.command)}return y.endOperation(),!0},C.prototype.$insertString=function(y,p){var $=p.value||p;y.execCommand("insertstring",$)},C.prototype.gatherCompletions=function(y,p){var $=y.getSession(),I=y.getCursorPosition(),M=h.getCompletionPrefix(y),A=[];this.completers=y.completers;var H=y.completers.length;return y.completers.forEach(function(D,T){D.getCompletions(y,$,I,M,function(x,m){D.hideInlinePreview&&(m=m.map(function(E){return Object.assign(E,{hideInlinePreview:D.hideInlinePreview})})),!x&&m&&(A=A.concat(m)),p(null,{prefix:h.getCompletionPrefix(y),matches:A,finished:--H===0})})}),!0},C.prototype.provideCompletions=function(y,p,$){var I=(function(D){var T=D.prefix,x=D.matches;this.completions=new L(x),p.exactMatch&&(this.completions.exactMatch=!0),p.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(T),(D.finished||this.completions.filtered.length)&&$(null,this.completions,D.finished)}).bind(this),M=!0,A=null;if(this.gatherCompletions(y,(function(D,T){if(this.active){D&&($(D,[],!0),this.detach());var x=T.prefix;if(x.indexOf(T.prefix)===0){if(M){A=T;return}I(T)}}}).bind(this)),M=!1,A){var H=A;A=null,I(H)}},C.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(y){typeof y.cancel=="function"&&y.cancel()})},C})(),L=(function(){function C(y,p){this.all=y,this.filtered=y,this.filterText=p||"",this.exactMatch=!1,this.ignoreCaption=!1}return C.prototype.setFilter=function(y){if(y.length>this.filterText&&y.lastIndexOf(this.filterText,0)===0)var p=this.filtered;else var p=this.all;this.filterText=y,p=this.filterCompletions(p,this.filterText),p=p.sort(function(I,M){return M.exactMatch-I.exactMatch||M.$score-I.$score||(I.caption||I.value).localeCompare(M.caption||M.value)});var $=null;p=p.filter(function(I){var M=I.snippet||I.caption||I.value;return M===$?!1:($=M,!0)}),this.filtered=p},C.prototype.filterCompletions=function(y,p){var $=[],I=p.toUpperCase(),M=p.toLowerCase();e:for(var A=0,H;H=y[A];A++){if(H.skipFilter){H.$score=H.score,$.push(H);continue}var D=!this.ignoreCaption&&H.caption||H.value||H.snippet;if(D){var T=-1,x=0,m=0,E,W;if(this.exactMatch){if(p!==D.substr(0,p.length))continue e}else{var U=D.toLowerCase().indexOf(M);if(U>-1)m=U;else for(var q=0;q<p.length;q++){var Q=D.indexOf(M[q],T+1),te=D.indexOf(I[q],T+1);if(E=Q>=0&&(te<0||Q<te)?Q:te,E<0)continue e;W=E-T-1,W>0&&(T===-1&&(m+=10),m+=W,x|=1<<q),T=E}}H.matchMask=x,H.exactMatch=m?0:1,H.$score=(H.score||0)-m,$.push(H)}}return $},C})();b.Autocomplete=d,b.CompletionProvider=g,b.FilteredList=L}),ace.define("ace/marker_group",["require","exports","module"],function(f,b,z){var R=(function(){function _(S,u){u&&(this.markerType=u.markerType),this.markers=[],this.session=S,S.addDynamicMarker(this)}return _.prototype.getMarkerAtPosition=function(S){return this.markers.find(function(u){return u.range.contains(S.row,S.column)})},_.prototype.markersComparator=function(S,u){return S.range.start.row-u.range.start.row},_.prototype.setMarkers=function(S){this.markers=S.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},_.prototype.update=function(S,u,h,s){if(!(!this.markers||!this.markers.length))for(var o=s.firstRow,i=s.lastRow,r,t=0,n=0,a=0;a<this.markers.length;a++){var d=this.markers[a];if(!(d.range.end.row<o)&&!(d.range.start.row>i)&&(d.range.start.row===n?t++:(n=d.range.start.row,t=0),!(t>200))){var g=d.range.clipRows(o,i);if(!(g.start.row===g.end.row&&g.start.column===g.end.column)){var L=g.toScreenRange(h);if(L.isEmpty()){r=h.getNextFoldLine(g.end.row,r),r&&r.end.row>g.end.row&&(o=r.end.row);continue}this.markerType==="fullLine"?u.drawFullLineMarker(S,L,d.className,s):L.isMultiLine()?this.markerType==="line"?u.drawMultiLineMarker(S,L,d.className,s):u.drawTextMarker(S,L,d.className,s):u.drawSingleLineMarker(S,L,d.className+" ace_br15",s)}}}},_})();R.prototype.MAX_MARKERS=1e4,b.MarkerGroup=R}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(f,b,z){function R(h,s){var o=h.getTextRange(S.fromPoints({row:0,column:0},s));return o.split(u).length-1}function _(h,s){var o=R(h,s),i=h.getValue().split(u),r=Object.create(null),t=i[o];return i.forEach(function(n,a){if(!(!n||n===t)){var d=Math.abs(o-a),g=i.length-d;r[n]?r[n]=Math.max(g,r[n]):r[n]=g}}),r}var S=f("../range").Range,u=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;b.id="textCompleter",b.getCompletions=function(h,s,o,i,r){var t=_(s,o),n=Object.keys(t);r(null,n.map(function(a){return{caption:a,value:a,score:t[a],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(f,b,z){var R=f("../snippets").snippetManager,_=f("../autocomplete").Autocomplete,S=f("../config"),u=f("../lib/lang"),h=f("../autocomplete/util"),s=f("../marker_group").MarkerGroup,o=f("../autocomplete/text_completer"),i={getCompletions:function(M,A,H,D,T){if(A.$mode.completer)return A.$mode.completer.getCompletions(M,A,H,D,T);var x=M.session.getState(H.row),m=A.$mode.getCompletions(x,A,H,D);m=m.map(function(E){return E.completerId=i.id,E}),T(null,m)},id:"keywordCompleter"},r=function(M){var A={};return M.replace(/\${(\d+)(:(.*?))?}/g,function(H,D,T,x){return A[D]=x||""}).replace(/\$(\d+?)/g,function(H,D){return A[D]})},t={getCompletions:function(M,A,H,D,T){var x=[],m=A.getTokenAt(H.row,H.column);m&&m.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?x.push("html-tag"):x=R.getActiveScopes(M);var E=R.snippetMap,W=[];x.forEach(function(U){for(var q=E[U]||[],Q=q.length;Q--;){var te=q[Q],ce=te.name||te.tabTrigger;ce&&W.push({caption:ce,snippet:te.content,meta:te.tabTrigger&&!te.name?te.tabTrigger+"⇥ ":"snippet",completerId:t.id})}},this),T(null,W)},getDocTooltip:function(M){M.snippet&&!M.docHTML&&(M.docHTML=["<b>",u.escapeHTML(M.caption),"</b>","<hr></hr>",u.escapeHTML(r(M.snippet))].join(""))},id:"snippetCompleter"},n=[t,o,i];b.setCompleters=function(M){n.length=0,M&&n.push.apply(n,M)},b.addCompleter=function(M){n.push(M)},b.textCompleter=o,b.keyWordCompleter=i,b.snippetCompleter=t;var a={name:"expandSnippet",exec:function(M){return R.expandWithTab(M)},bindKey:"Tab"},d=function(M,A){g(A.session.$mode)},g=function(M){typeof M=="string"&&(M=S.$modes[M]),M&&(R.files||(R.files={}),L(M.$id,M.snippetFileId),M.modes&&M.modes.forEach(g))},L=function(M,A){!A||!M||R.files[M]||(R.files[M]={},S.loadModule(A,function(H){H&&(R.files[M]=H,!H.snippets&&H.snippetText&&(H.snippets=R.parseSnippetFile(H.snippetText)),R.register(H.snippets||[],H.scope),H.includeScopes&&(R.snippetMap[H.scope].includeScopes=H.includeScopes,H.includeScopes.forEach(function(D){g("ace/mode/"+D)})))}))},C=function(M){var A=M.editor,H=A.completer&&A.completer.activated;if(M.command.name==="backspace")H&&!h.getCompletionPrefix(A)&&A.completer.detach();else if(M.command.name==="insertstring"&&!H){y=M;var D=M.editor.$liveAutocompletionDelay;D?p.delay(D):$(M)}},y,p=u.delayedCall(function(){$(y)},0),$=function(M){var A=M.editor,H=h.getCompletionPrefix(A),D=M.args,T=h.triggerAutocomplete(A,D);if(H&&H.length>=A.$liveAutocompletionThreshold||T){var x=_.for(A);x.autoShown=!0,x.showPopup(A)}},I=f("../editor").Editor;f("../config").defineOptions(I.prototype,"editor",{enableBasicAutocompletion:{set:function(M){M?(_.for(this),this.completers||(this.completers=Array.isArray(M)?M:n),this.commands.addCommand(_.startCommand)):this.commands.removeCommand(_.startCommand)},value:!1},enableLiveAutocompletion:{set:function(M){M?(this.completers||(this.completers=Array.isArray(M)?M:n),this.commands.on("afterExec",C)):this.commands.off("afterExec",C)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(M){M?(this.commands.addCommand(a),this.on("changeMode",d),d(null,this)):(this.commands.removeCommand(a),this.off("changeMode",d))},value:!1}}),b.MarkerGroup=s}),(function(){ace.require(["ace/ext/language_tools"],function(f){F&&(F.exports=f)})})()})(Ll)),Ll.exports}g0();var Tl={exports:{}},Hh;function m0(){return Hh||(Hh=1,(function(F,V){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(f,b,z){z.exports=`
|
|
1224
|
+
|
|
1225
|
+
/* ------------------------------------------------------------------------------------------
|
|
1226
|
+
* Editor Search Form
|
|
1227
|
+
* --------------------------------------------------------------------------------------- */
|
|
1228
|
+
.ace_search {
|
|
1229
|
+
background-color: #ddd;
|
|
1230
|
+
color: #666;
|
|
1231
|
+
border: 1px solid #cbcbcb;
|
|
1232
|
+
border-top: 0 none;
|
|
1233
|
+
overflow: hidden;
|
|
1234
|
+
margin: 0;
|
|
1235
|
+
padding: 4px 6px 0 4px;
|
|
1236
|
+
position: absolute;
|
|
1237
|
+
top: 0;
|
|
1238
|
+
z-index: 99;
|
|
1239
|
+
white-space: normal;
|
|
1240
|
+
}
|
|
1241
|
+
.ace_search.left {
|
|
1242
|
+
border-left: 0 none;
|
|
1243
|
+
border-radius: 0px 0px 5px 0px;
|
|
1244
|
+
left: 0;
|
|
1245
|
+
}
|
|
1246
|
+
.ace_search.right {
|
|
1247
|
+
border-radius: 0px 0px 0px 5px;
|
|
1248
|
+
border-right: 0 none;
|
|
1249
|
+
right: 0;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
.ace_search_form, .ace_replace_form {
|
|
1253
|
+
margin: 0 20px 4px 0;
|
|
1254
|
+
overflow: hidden;
|
|
1255
|
+
line-height: 1.9;
|
|
1256
|
+
}
|
|
1257
|
+
.ace_replace_form {
|
|
1258
|
+
margin-right: 0;
|
|
1259
|
+
}
|
|
1260
|
+
.ace_search_form.ace_nomatch {
|
|
1261
|
+
outline: 1px solid red;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.ace_search_field {
|
|
1265
|
+
border-radius: 3px 0 0 3px;
|
|
1266
|
+
background-color: white;
|
|
1267
|
+
color: black;
|
|
1268
|
+
border: 1px solid #cbcbcb;
|
|
1269
|
+
border-right: 0 none;
|
|
1270
|
+
outline: 0;
|
|
1271
|
+
padding: 0;
|
|
1272
|
+
font-size: inherit;
|
|
1273
|
+
margin: 0;
|
|
1274
|
+
line-height: inherit;
|
|
1275
|
+
padding: 0 6px;
|
|
1276
|
+
min-width: 17em;
|
|
1277
|
+
vertical-align: top;
|
|
1278
|
+
min-height: 1.8em;
|
|
1279
|
+
box-sizing: content-box;
|
|
1280
|
+
}
|
|
1281
|
+
.ace_searchbtn {
|
|
1282
|
+
border: 1px solid #cbcbcb;
|
|
1283
|
+
line-height: inherit;
|
|
1284
|
+
display: inline-block;
|
|
1285
|
+
padding: 0 6px;
|
|
1286
|
+
background: #fff;
|
|
1287
|
+
border-right: 0 none;
|
|
1288
|
+
border-left: 1px solid #dcdcdc;
|
|
1289
|
+
cursor: pointer;
|
|
1290
|
+
margin: 0;
|
|
1291
|
+
position: relative;
|
|
1292
|
+
color: #666;
|
|
1293
|
+
}
|
|
1294
|
+
.ace_searchbtn:last-child {
|
|
1295
|
+
border-radius: 0 3px 3px 0;
|
|
1296
|
+
border-right: 1px solid #cbcbcb;
|
|
1297
|
+
}
|
|
1298
|
+
.ace_searchbtn:disabled {
|
|
1299
|
+
background: none;
|
|
1300
|
+
cursor: default;
|
|
1301
|
+
}
|
|
1302
|
+
.ace_searchbtn:hover {
|
|
1303
|
+
background-color: #eef1f6;
|
|
1304
|
+
}
|
|
1305
|
+
.ace_searchbtn.prev, .ace_searchbtn.next {
|
|
1306
|
+
padding: 0px 0.7em
|
|
1307
|
+
}
|
|
1308
|
+
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
|
1309
|
+
content: "";
|
|
1310
|
+
border: solid 2px #888;
|
|
1311
|
+
width: 0.5em;
|
|
1312
|
+
height: 0.5em;
|
|
1313
|
+
border-width: 2px 0 0 2px;
|
|
1314
|
+
display:inline-block;
|
|
1315
|
+
transform: rotate(-45deg);
|
|
1316
|
+
}
|
|
1317
|
+
.ace_searchbtn.next:after {
|
|
1318
|
+
border-width: 0 2px 2px 0 ;
|
|
1319
|
+
}
|
|
1320
|
+
.ace_searchbtn_close {
|
|
1321
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
|
1322
|
+
border-radius: 50%;
|
|
1323
|
+
border: 0 none;
|
|
1324
|
+
color: #656565;
|
|
1325
|
+
cursor: pointer;
|
|
1326
|
+
font: 16px/16px Arial;
|
|
1327
|
+
padding: 0;
|
|
1328
|
+
height: 14px;
|
|
1329
|
+
width: 14px;
|
|
1330
|
+
top: 9px;
|
|
1331
|
+
right: 7px;
|
|
1332
|
+
position: absolute;
|
|
1333
|
+
}
|
|
1334
|
+
.ace_searchbtn_close:hover {
|
|
1335
|
+
background-color: #656565;
|
|
1336
|
+
background-position: 50% 100%;
|
|
1337
|
+
color: white;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
.ace_button {
|
|
1341
|
+
margin-left: 2px;
|
|
1342
|
+
cursor: pointer;
|
|
1343
|
+
-webkit-user-select: none;
|
|
1344
|
+
-moz-user-select: none;
|
|
1345
|
+
-o-user-select: none;
|
|
1346
|
+
-ms-user-select: none;
|
|
1347
|
+
user-select: none;
|
|
1348
|
+
overflow: hidden;
|
|
1349
|
+
opacity: 0.7;
|
|
1350
|
+
border: 1px solid rgba(100,100,100,0.23);
|
|
1351
|
+
padding: 1px;
|
|
1352
|
+
box-sizing: border-box!important;
|
|
1353
|
+
color: black;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.ace_button:hover {
|
|
1357
|
+
background-color: #eee;
|
|
1358
|
+
opacity:1;
|
|
1359
|
+
}
|
|
1360
|
+
.ace_button:active {
|
|
1361
|
+
background-color: #ddd;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
.ace_button.checked {
|
|
1365
|
+
border-color: #3399ff;
|
|
1366
|
+
opacity:1;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.ace_search_options{
|
|
1370
|
+
margin-bottom: 3px;
|
|
1371
|
+
text-align: right;
|
|
1372
|
+
-webkit-user-select: none;
|
|
1373
|
+
-moz-user-select: none;
|
|
1374
|
+
-o-user-select: none;
|
|
1375
|
+
-ms-user-select: none;
|
|
1376
|
+
user-select: none;
|
|
1377
|
+
clear: both;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.ace_search_counter {
|
|
1381
|
+
float: left;
|
|
1382
|
+
font-family: arial;
|
|
1383
|
+
padding: 0 8px;
|
|
1384
|
+
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/ext/searchbox","ace/ext/searchbox","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(f,b,z){var R=f("../lib/dom"),_=f("../lib/lang"),S=f("../lib/event"),u=f("./searchbox-css"),h=f("../keyboard/hash_handler").HashHandler,s=f("../lib/keys"),o=f("../config").nls,i=999;R.importCssString(u,"ace_searchbox",!1);var r=(function(){function a(d,g,L){this.activeInput,this.element=R.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:o("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},o("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:o("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},o("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},o("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:o("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:o("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:o("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:o("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:o("search-box.toggle-in-selection.title","Search In Selection")},"S"]]]),this.setSession=this.setSession.bind(this),this.$onEditorInput=this.onEditorInput.bind(this),this.$init(),this.setEditor(d),R.importCssString(u,"ace_searchbox",d.container),S.addListener(this.element,"touchstart",function(C){C.stopPropagation()},d)}return a.prototype.setEditor=function(d){d.searchBox=this,d.renderer.scroller.appendChild(this.element),this.editor=d},a.prototype.setSession=function(d){this.searchRange=null,this.$syncOptions(!0)},a.prototype.onEditorInput=function(){this.find(!1,!1,!0)},a.prototype.$initElements=function(d){this.searchBox=d.querySelector(".ace_search_form"),this.replaceBox=d.querySelector(".ace_replace_form"),this.searchOption=d.querySelector("[action=searchInSelection]"),this.replaceOption=d.querySelector("[action=toggleReplace]"),this.regExpOption=d.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=d.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=d.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=d.querySelector(".ace_search_counter")},a.prototype.$init=function(){var d=this.element;this.$initElements(d);var g=this;S.addListener(d,"mousedown",function(L){setTimeout(function(){g.activeInput.focus()},0),S.stopPropagation(L)}),S.addListener(d,"click",function(L){var C=L.target||L.srcElement,y=C.getAttribute("action");y&&g[y]?g[y]():g.$searchBarKb.commands[y]&&g.$searchBarKb.commands[y].exec(g),S.stopPropagation(L)}),S.addCommandKeyListener(d,function(L,C,y){var p=s.keyCodeToString(y),$=g.$searchBarKb.findKeyCommand(C,p);$&&$.exec&&($.exec(g),S.stopEvent(L))}),this.$onChange=_.delayedCall(function(){g.find(!1,!1)}),S.addListener(this.searchInput,"input",function(){g.$onChange.schedule(20)}),S.addListener(this.searchInput,"focus",function(){g.activeInput=g.searchInput,g.searchInput.value&&g.highlight()}),S.addListener(this.replaceInput,"focus",function(){g.activeInput=g.replaceInput,g.searchInput.value&&g.highlight()})},a.prototype.setSearchRange=function(d){this.searchRange=d,d?this.searchRangeMarker=this.editor.session.addMarker(d,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},a.prototype.$syncOptions=function(d){R.setCssClass(this.replaceOption,"checked",this.searchRange),R.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",R.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),R.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),R.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var g=this.editor.getReadOnly();this.replaceOption.style.display=g?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!g?"":"none",this.find(!1,!1,d)},a.prototype.highlight=function(d){this.editor.session.highlight(d||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},a.prototype.find=function(d,g,L){if(this.editor.session){var C=this.editor.find(this.searchInput.value,{skipCurrent:d,backwards:g,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:L,range:this.searchRange}),y=!C&&this.searchInput.value;R.setCssClass(this.searchBox,"ace_nomatch",y),this.editor._emit("findSearchBox",{match:!y}),this.highlight(),this.updateCounter()}},a.prototype.updateCounter=function(){var d=this.editor,g=d.$search.$options.re,L=g.unicode,C=0,y=0;if(g){var p=this.searchRange?d.session.getTextRange(this.searchRange):d.getValue();d.$search.$isMultilineSearch(d.getLastSearchOptions())&&(p=p.replace(/\r\n|\r|\n/g,`
|
|
1385
|
+
`),d.session.doc.$autoNewLine=`
|
|
1386
|
+
`);var $=d.session.doc.positionToIndex(d.selection.anchor);this.searchRange&&($-=d.session.doc.positionToIndex(this.searchRange.start));for(var I=g.lastIndex=0,M;(M=g.exec(p))&&(C++,I=M.index,I<=$&&y++,!(C>i||!M[0]&&(g.lastIndex=I+=_.skipEmptyMatch(p,I,L),I>=p.length))););}this.searchCounter.textContent=o("search-box.search-counter","$0 of $1",[y,C>i?i+"+":C])},a.prototype.findNext=function(){this.find(!0,!1)},a.prototype.findPrev=function(){this.find(!0,!0)},a.prototype.findAll=function(){var d=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),g=!d&&this.searchInput.value;R.setCssClass(this.searchBox,"ace_nomatch",g),this.editor._emit("findSearchBox",{match:!g}),this.highlight(),this.hide()},a.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},a.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},a.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},a.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.editor.off("input",this.$onEditorInput),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},a.prototype.show=function(d,g){this.active=!0,this.editor.on("changeSession",this.setSession),this.editor.on("input",this.$onEditorInput),this.element.style.display="",this.replaceOption.checked=g,this.editor.$search.$options.regExp&&(d=_.escapeRegExp(d)),d!=null&&(this.searchInput.value=d),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},a.prototype.isFocused=function(){var d=document.activeElement;return d==this.searchInput||d==this.replaceInput},a})(),t=new h;t.bindKeys({"Ctrl-f|Command-f":function(a){var d=a.isReplace=!a.isReplace;a.replaceBox.style.display=d?"":"none",a.replaceOption.checked=!1,a.$syncOptions(),a.searchInput.focus()},"Ctrl-H|Command-Option-F":function(a){a.editor.getReadOnly()||(a.replaceOption.checked=!0,a.$syncOptions(),a.replaceInput.focus())},"Ctrl-G|Command-G":function(a){a.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(a){a.findPrev()},esc:function(a){setTimeout(function(){a.hide()})},Return:function(a){a.activeInput==a.replaceInput&&a.replace(),a.findNext()},"Shift-Return":function(a){a.activeInput==a.replaceInput&&a.replace(),a.findPrev()},"Alt-Return":function(a){a.activeInput==a.replaceInput&&a.replaceAll(),a.findAll()},Tab:function(a){(a.activeInput==a.replaceInput?a.searchInput:a.replaceInput).focus()}}),t.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(a){a.regExpOption.checked=!a.regExpOption.checked,a.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(a){a.caseSensitiveOption.checked=!a.caseSensitiveOption.checked,a.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(a){a.wholeWordOption.checked=!a.wholeWordOption.checked,a.$syncOptions()}},{name:"toggleReplace",exec:function(a){a.replaceOption.checked=!a.replaceOption.checked,a.$syncOptions()}},{name:"searchInSelection",exec:function(a){a.searchOption.checked=!a.searchRange,a.setSearchRange(a.searchOption.checked&&a.editor.getSelectionRange()),a.$syncOptions()}}]);var n=new h([{bindKey:"Esc",name:"closeSearchBar",exec:function(a){a.searchBox.hide()}}]);r.prototype.$searchBarKb=t,r.prototype.$closeSearchBarKb=n,b.SearchBox=r,b.Search=function(a,d){var g=a.searchBox||new r(a),L=a.session.selection.getRange(),C=L.isMultiLine()?"":a.session.getTextRange(L);g.show(C,d)}}),(function(){ace.require(["ace/ext/searchbox"],function(f){F&&(F.exports=f)})})()})(Tl)),Tl.exports}m0();var El={exports:{}},zh;function v0(){return zh||(zh=1,(function(F,V){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(f,b,z){function R(h,s){function o(M,A,H){if(!(M.length<A)){var D=M.slice(0,A),T=M.slice(A),x=/^(?:(\s+)|(\S+)(\s+))/.exec(T),m=/(?:(\s+)|(\s+)(\S+))$/.exec(D),E=0,W=0;if(m&&!m[2]&&(E=A-m[1].length,W=A),x&&!x[2]&&(E||(E=A),W=A+x[1].length),E)return{start:E,end:W};if(m&&m[2]&&m.index>H)return{start:m.index,end:m.index+m[2].length};if(x&&x[2])return E=A+x[2].length,{start:E,end:E+x[3].length}}}for(var i=s.column||h.getOption("printMarginColumn"),r=s.allowMerge!=0,t=Math.min(s.startRow,s.endRow),n=Math.max(s.startRow,s.endRow),a=h.session;t<=n;){var d=a.getLine(t);if(d.length>i){var g=o(d,i,5);if(g){var L=/^\s*/.exec(d)[0];a.replace(new S(t,g.start,t,g.end),`
|
|
1387
|
+
`+L)}n++}else if(r&&/\S/.test(d)&&t!=n){var C=a.getLine(t+1);if(C&&/\S/.test(C)){var y=d.replace(/\s+$/,""),p=C.replace(/^\s+/,""),$=y+" "+p,g=o($,i,5);if(g&&g.start>y.length||$.length<i){var I=new S(t,y.length,t+1,C.length-p.length);a.replace(I," "),t--,n--}else y.length<d.length&&a.remove(new S(t,y.length,t,d.length))}}t++}}function _(h){if(h.command.name=="insertstring"&&/\S/.test(h.args)){var s=h.editor,o=s.selection.cursor;if(o.column<=s.renderer.$printMarginColumn)return;var i=s.session.$undoManager.$lastDelta;R(s,{startRow:o.row,endRow:o.row,allowMerge:!1}),i!=s.session.$undoManager.$lastDelta&&s.session.markUndoGroup()}}var S=f("../range").Range,u=f("../editor").Editor;f("../config").defineOptions(u.prototype,"editor",{hardWrap:{set:function(h){h?this.commands.on("afterExec",_):this.commands.off("afterExec",_)},value:!1}}),b.hardWrap=R}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/ext/hardwrap","ace/multi_select"],function(f,b,z){function R(c){return{row:c.line,column:c.ch}}function _(c){return new Re(c.row,c.column)}function S(c,w,v){if(w.line===v.line&&w.ch>=v.ch-1){var O=c.getLine(w.line),N=O.charCodeAt(w.ch);55296<=N&&N<=55551&&(v.ch+=1)}return{start:w,end:v}}function u(c){c.setOption("disableInput",!0),c.setOption("showCursorWhenSelecting",!1),De.signal(c,"vim-mode-change",{mode:"normal"}),c.on("cursorActivity",ar),$(c),De.on(c.getInputField(),"paste",s(c))}function h(c){c.setOption("disableInput",!1),c.off("cursorActivity",ar),De.off(c.getInputField(),"paste",s(c)),c.state.vim=null,Wt&&clearTimeout(Wt)}function s(c){var w=c.state.vim;return w.onPasteFn||(w.onPasteFn=function(){w.insertMode||(c.setCursor(me(c.getCursor(),0,1)),hn.enterInsertMode(c,{},w))}),w.onPasteFn}function o(c,w){return w>=c.firstLine()&&w<=c.lastLine()}function i(c){return/^[a-z]$/.test(c)}function r(c){return"()[]{}".indexOf(c)!=-1}function t(c){return Po.test(c)}function n(c){return Je.test(c)}function a(c){return/^\s*$/.test(c)}function d(c){return".?!".indexOf(c)!=-1}function g(c,w){for(var v=0;v<w.length;v++)if(w[v]==c)return!0;return!1}function L(c,w,v,O,N){if(w===void 0&&!N)throw Error("defaultValue is required unless callback is provided");if(v||(v="string"),At[c]={type:v,defaultValue:w,callback:N},O)for(var B=0;B<O.length;B++)At[O[B]]=At[c];w&&C(c,w)}function C(c,w,v,O){var N=At[c];O=O||{};var B=O.scope;if(!N)return new Error("Unknown option: "+c);if(N.type=="boolean"){if(w&&w!==!0)return new Error("Invalid argument: "+c+"="+w);w!==!1&&(w=!0)}N.callback?(B!=="local"&&N.callback(w,void 0),B!=="global"&&v&&N.callback(w,v)):(B!=="local"&&(N.value=N.type=="boolean"?!!w:w),B!=="global"&&v&&(v.state.vim.options[c]={value:w}))}function y(c,w,v){var O=At[c];v=v||{};var N=v.scope;if(!O)return new Error("Unknown option: "+c);if(O.callback){var B=w&&O.callback(void 0,w);return N!=="global"&&B!==void 0?B:N!=="local"?O.callback():void 0}var B=N!=="global"&&w&&w.state.vim.options[c];return(B||N!=="local"&&O||{}).value}function p(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=un()}function $(c){return c.state.vim||(c.state.vim={inputState:new x,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{},expectLiteralNext:!1}),c.state.vim}function I(){Fe={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Ei(),macroModeState:new p,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new q({}),searchHistoryController:new Q,exCommandHistoryController:new Q};for(var c in At){var w=At[c];w.value=w.defaultValue}}function M(c){function w(Y){typeof Y=="string"?yt.value=Y:yt=null}if(c[0]=="<"){var v=c.toLowerCase().slice(1,-1),O=v.split("-");if(v=O.pop()||"",v=="lt")c="<";else if(v=="space")c=" ";else if(v=="cr")c=`
|
|
1388
|
+
`;else if(Qi[v]){var N=yt.value,B={key:Qi[v],target:{value:N,selectionEnd:N.length,selectionStart:N.length}};yt.onKeyDown&&yt.onKeyDown(B,yt.value,w),yt&&yt.onKeyUp&&yt.onKeyUp(B,yt.value,w);return}}if(c==`
|
|
1389
|
+
`){var j=yt;yt=null,j.onClose&&j.onClose(j.value)}else yt.value=(yt.value||"")+c}function A(c,w,v){var O=Ri;if(v){if(Gn.indexOf(v)!=-1)return;Gn.push(v),Ri=v.noremap!=0}try{for(var N=$(c),B=/<(?:[CSMA]-)*\w+>|./gi,j;j=B.exec(w);){var Y=j[0],X=N.insertMode;if(yt){M(Y);continue}var re=ht.handleKey(c,Y,"mapping");if(!re&&X&&N.insertMode){if(Y[0]=="<"){var se=Y.toLowerCase().slice(1,-1),ve=se.split("-");if(se=ve.pop()||"",se=="lt")Y="<";else if(se=="space")Y=" ";else if(se=="cr")Y=`
|
|
1390
|
+
`;else{if(Qi.hasOwnProperty(se)){Y=Qi[se],fo(c,Y);continue}Y=Y[0],B.lastIndex=j.index+1}}c.replaceSelection(Y)}}}finally{if(Gn.pop(),Ri=Gn.length?O:!1,!Gn.length&&yt){var xe=yt;yt=null,jn(c,xe)}}}function H(c,w){var v=c.key;if(!wn[v]){v.length>1&&v[0]=="n"&&(v=v.replace("Numpad","")),v=qn[v]||v;var O="";if(c.ctrlKey&&(O+="C-"),c.altKey&&(O+="A-"),c.metaKey&&(O+="M-"),De.isMac&&c.altKey&&!c.metaKey&&!c.ctrlKey&&(O=O.slice(2)),(O||v.length>1)&&c.shiftKey&&(O+="S-"),w&&!w.expectLiteralNext&&v.length==1){if(an.keymap&&v in an.keymap)(an.remapCtrl!=0||!O)&&(v=an.keymap[v]);else if(v.charCodeAt(0)>255){var N=c.code&&c.code.slice(-1)||"";c.shiftKey||(N=N.toLowerCase()),N&&(v=N)}}return O+=v,O.length>1&&(O="<"+O+">"),O}}function D(c,w){an.string!==c&&(an=T(c)),an.remapCtrl=w}function T(c){function w(O){return O.split(/\\?(.)/).filter(Boolean)}var v={};return c?(c.split(/((?:[^\\,]|\\.)+),/).map(function(O){if(O){var N=O.split(/((?:[^\\;]|\\.)+);/);if(N.length==3){var B=w(N[1]),j=w(N[2]);if(B.length!==j.length)return;for(var Y=0;Y<B.length;++Y)v[B[Y]]=j[Y]}else if(N.length==1){var X=w(O);if(X.length%2!==0)return;for(var Y=0;Y<X.length;Y+=2)v[X[Y]]=X[Y+1]}}}),{keymap:v,string:c}):{keymap:v,string:""}}function x(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null,this.changeQueue=null}function m(c,w){c.state.vim.inputState=new x,c.state.vim.expectLiteralNext=!1,De.signal(c,"vim-command-done",w)}function E(){this.removed=[],this.inserted=""}function W(c,w,v){this.clear(),this.keyBuffer=[c||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!w,this.blockwise=!!v}function U(c,w){var v=Fe.registerController.registers;if(!c||c.length!=1)throw Error("Register name must be 1 character");v[c]=w,mo.push(c)}function q(c){this.registers=c,this.unnamedRegister=c['"']=new W,c["."]=new W,c[":"]=new W,c["/"]=new W,c["+"]=new W}function Q(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function te(c,w){en[c]=w}function ce(c,w){for(var v=[],O=0;O<w;O++)v.push(c);return v}function ne(c,w){Gr[c]=w}function he(c,w){hn[c]=w}function ue(c,w,v){var O=c.state.vim,N=O.insertMode||O.visualMode,B=Math.min(Math.max(c.firstLine(),w.line),c.lastLine()),j=c.getLine(B),Y=j.length-1+ +!!N,X=Math.min(Math.max(0,w.ch),Y),re=j.charCodeAt(X);if(56320<=re&&re<=57343){var se=1;v&&v.line==B&&v.ch>X&&(se=-1),X+=se,X>Y&&(X-=2)}return new Re(B,X)}function le(c){var w={};for(var v in c)c.hasOwnProperty(v)&&(w[v]=c[v]);return w}function me(c,w,v){return typeof w=="object"&&(v=w.ch,w=w.line),new Re(c.line+w,c.ch+v)}function Se(c,w,v,O){O.operator&&(v="operatorPending");for(var N,B=[],j=[],Y=Ri?w.length-Ar:0,X=Y;X<w.length;X++){var re=w[X];v=="insert"&&re.context!="insert"||re.context&&re.context!=v||O.operator&&re.type=="action"||!(N=_e(c,re.keys))||(N=="partial"&&B.push(re),N=="full"&&j.push(re))}return{partial:B.length&&B,full:j.length&&j}}function _e(c,w){var v=w.slice(-11)=="<character>",O=w.slice(-10)=="<register>";if(v||O){var N=w.length-(v?11:10),B=c.slice(0,N),j=w.slice(0,N);return B==j&&c.length>N?"full":j.indexOf(B)==0?"partial":!1}return c==w?"full":w.indexOf(c)==0?"partial":!1}function Ae(c){var w=/^.*(<[^>]+>)$/.exec(c),v=w?w[1]:c.slice(-1);if(v.length>1)switch(v){case"<CR>":v=`
|
|
1391
|
+
`;break;case"<Space>":v=" ";break;default:v=""}return v}function qe(c,w,v){return function(){for(var O=0;O<v;O++)w(c)}}function Ue(c){return new Re(c.line,c.ch)}function nt(c,w){return c.ch==w.ch&&c.line==w.line}function at(c,w){return c.line<w.line?!0:c.line==w.line&&c.ch<w.ch}function tt(c,w){return arguments.length>2&&(w=tt.apply(void 0,Array.prototype.slice.call(arguments,1))),at(c,w)?c:w}function Rt(c,w){return arguments.length>2&&(w=Rt.apply(void 0,Array.prototype.slice.call(arguments,1))),at(c,w)?w:c}function pi(c,w,v){var O=at(c,w),N=at(w,v);return O&&N}function kt(c,w){return c.getLine(w).length}function oi(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function kn(c){return c.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function si(c,w,v){var O=kt(c,w),N=new Array(v-O+1).join(" ");c.setCursor(new Re(w,O)),c.replaceRange(N,c.getCursor())}function Jt(c,w){var v=[],O=c.listSelections(),N=Ue(c.clipPos(w)),B=!nt(w,N),j=c.getCursor("head"),Y=ut(O,j),X=nt(O[Y].head,O[Y].anchor),re=O.length-1,se=re-Y>Y?re:0,ve=O[se].anchor,xe=Math.min(ve.line,N.line),de=Math.max(ve.line,N.line),we=ve.ch,Ee=N.ch,$e=O[se].head.ch-we,We=Ee-we;$e>0&&We<=0?(we++,B||Ee--):$e<0&&We>=0?(we--,X||Ee++):$e<0&&We==-1&&(we--,Ee++);for(var Xe=xe;Xe<=de;Xe++){var Ye={anchor:new Re(Xe,we),head:new Re(Xe,Ee)};v.push(Ye)}return c.setSelections(v),w.ch=Ee,ve.ch=we,ve}function Un(c,w,v){for(var O=[],N=0;N<v;N++){var B=me(w,N,0);O.push({anchor:B,head:B})}c.setSelections(O,0)}function ut(c,w,v){for(var O=0;O<c.length;O++){var N=nt(c[O].anchor,w),B=nt(c[O].head,w);if(N||B)return O}return-1}function Ve(c,w){var v=w.lastSelection,O=function(){var B=c.listSelections(),j=B[0],Y=B[B.length-1],X=at(j.anchor,j.head)?j.anchor:j.head,re=at(Y.anchor,Y.head)?Y.head:Y.anchor;return[X,re]},N=function(){var B=c.getCursor(),j=c.getCursor(),Y=v.visualBlock;if(Y){var X=Y.width,re=Y.height;j=new Re(B.line+re,B.ch+X);for(var se=[],ve=B.line;ve<j.line;ve++){var xe=new Re(ve,B.ch),de=new Re(ve,j.ch),we={anchor:xe,head:de};se.push(we)}c.setSelections(se)}else{var Ee=v.anchorMark.find(),$e=v.headMark.find(),We=$e.line-Ee.line,Xe=$e.ch-Ee.ch;j={line:j.line+We,ch:We?j.ch:Xe+j.ch},v.visualLine&&(B=new Re(B.line,0),j=new Re(j.line,kt(c,j.line))),c.setSelection(B,j)}return[B,j]};return w.visualMode?O():N()}function Lt(c,w){var v=w.sel.anchor,O=w.sel.head;w.lastPastedText&&(O=c.posFromIndex(c.indexFromPos(v)+w.lastPastedText.length),w.lastPastedText=null),w.lastSelection={anchorMark:c.setBookmark(v),headMark:c.setBookmark(O),anchor:Ue(v),head:Ue(O),visualMode:w.visualMode,visualLine:w.visualLine,visualBlock:w.visualBlock}}function rn(c,w,v,O){var N=c.state.vim.sel,B=O?w:N.head,j=O?w:N.anchor,Y;return at(v,w)&&(Y=v,v=w,w=Y),at(B,j)?(B=tt(w,B),j=Rt(j,v)):(j=tt(w,j),B=Rt(B,v),B=me(B,0,-1),B.ch==-1&&B.line!=c.firstLine()&&(B=new Re(B.line-1,kt(c,B.line-1)))),[j,B]}function Cn(c,w,N){var O=c.state.vim;w=w||O.sel;var N=N||O.visualLine?"line":O.visualBlock?"block":"char",B=Dn(c,w,N);c.setSelections(B.ranges,B.primary)}function Dn(c,w,v,O){var N=Ue(w.head),B=Ue(w.anchor);if(v=="char"){var j=!O&&!at(w.head,w.anchor)?1:0,Y=at(w.head,w.anchor)?1:0;return N=me(w.head,0,j),B=me(w.anchor,0,Y),{ranges:[{anchor:B,head:N}],primary:0}}if(v=="line"){if(at(w.head,w.anchor))N.ch=0,B.ch=kt(c,B.line);else{B.ch=0;var X=c.lastLine();N.line>X&&(N.line=X),N.ch=kt(c,N.line)}return{ranges:[{anchor:B,head:N}],primary:0}}if(v=="block"){var re=Math.min(B.line,N.line),se=B.ch,ve=Math.max(B.line,N.line),xe=N.ch;se<xe?xe+=1:se+=1;for(var de=ve-re+1,we=N.line==re?0:de-1,Ee=[],$e=0;$e<de;$e++)Ee.push({anchor:new Re(re+$e,se),head:new Re(re+$e,xe)});return{ranges:Ee,primary:we}}}function Vn(c){var w=c.getCursor("head");return c.getSelection().length==1&&(w=tt(w,c.getCursor("anchor"))),w}function on(c,w){var v=c.state.vim;w!==!1&&c.setCursor(ue(c,v.sel.head)),Lt(c,v),v.visualMode=!1,v.visualLine=!1,v.visualBlock=!1,v.insertMode||De.signal(c,"vim-mode-change",{mode:"normal"})}function Sn(c,w,v){var O=c.getRange(w,v);if(/\n\s*$/.test(O)){var N=O.split(`
|
|
1392
|
+
`);N.pop();for(var B,B=N.pop();N.length>0&&B&&a(B);B=N.pop())v.line--,v.ch=0;B?(v.line--,v.ch=kt(c,v.line)):v.ch=0}}function Nn(c,w,v){w.ch=0,v.ch=0,v.line++}function Ut(c){if(!c)return 0;var w=c.search(/\S/);return w==-1?c.length:w}function _n(c,w,v){var O=w.inclusive,N=w.innerWord,B=w.bigWord,j=w.noSymbol,Y=w.multiline,X=v||Vn(c),re=c.getLine(X.line),se=re,ve=X.line,xe=ve,de=X.ch,we,Ee=j?Mr[0]:Ti[0];if(N&&/\s/.test(re.charAt(de)))Ee=function(Kt){return/\s/.test(Kt)};else{for(;!Ee(re.charAt(de));)if(de++,de>=re.length){if(!Y)return null;de--,we=yr(c,X,!0,B,!0);break}B?Ee=Ti[0]:(Ee=Mr[0],Ee(re.charAt(de))||(Ee=Mr[1]))}for(var $e=de,We=de;Ee(re.charAt(We))&&We>=0;)We--;if(We++,we)$e=we.to,xe=we.line,se=c.getLine(xe),!se&&$e==0&&$e++;else for(;Ee(re.charAt($e))&&$e<re.length;)$e++;if(O){var Xe=$e,Ye=X.ch<=We&&/\s/.test(re.charAt(X.ch));if(!Ye)for(;/\s/.test(se.charAt($e))&&$e<se.length;)$e++;if(Xe==$e||Ye){for(var Ke=We;/\s/.test(re.charAt(We-1))&&We>0;)We--;!We&&!Ye&&(We=Ke)}}return{start:new Re(ve,We),end:new Re(xe,$e)}}function vr(c,w,v){var O=w;if(!De.findMatchingTag||!De.findEnclosingTag)return{start:O,end:O};var N=De.findMatchingTag(c,w)||De.findEnclosingTag(c,w);return!N||!N.open||!N.close?{start:O,end:O}:v?{start:N.open.from,end:N.close.to}:{start:N.open.to,end:N.close.from}}function zi(c,w,v){nt(w,v)||Fe.jumpList.add(c,w,v)}function gi(c,w){Fe.lastCharacterSearch.increment=c,Fe.lastCharacterSearch.forward=w.forward,Fe.lastCharacterSearch.selectedCharacter=w.selectedCharacter}function Ui(c,w,v,O){var N=Ue(c.getCursor()),B=v?1:-1,j=v?c.lineCount():-1,Y=N.ch,X=N.line,re=c.getLine(X),se={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:O,reverseSymb:(v?{")":"(","}":"{"}:{"(":")","{":"}"})[O],forward:v,depth:0,curMoveThrough:!1},ve=bi[O];if(!ve)return N;var xe=xi[ve].init,de=xi[ve].isComplete;for(xe&&xe(se);X!==j&&w;){if(se.index+=B,se.nextCh=se.lineText.charAt(se.index),!se.nextCh){if(X+=B,se.lineText=c.getLine(X)||"",B>0)se.index=0;else{var we=se.lineText.length;se.index=we>0?we-1:0}se.nextCh=se.lineText.charAt(se.index)}de(se)&&(N.line=X,N.ch=se.index,w--)}return se.nextCh||se.curMoveThrough?new Re(X,se.index):N}function yr(c,w,v,O,N){var B=w.line,j=w.ch,Y=c.getLine(B),X=v?1:-1,re=O?Ti:Mr;if(N&&Y==""){if(B+=X,Y=c.getLine(B),!o(c,B))return null;j=v?0:Y.length}for(;;){if(N&&Y=="")return{from:0,to:0,line:B};for(var se=X>0?Y.length:-1,ve=se,xe=se;j!=se;){for(var de=!1,we=0;we<re.length&&!de;++we)if(re[we](Y.charAt(j))){for(ve=j;j!=se&&re[we](Y.charAt(j));)j+=X;if(xe=j,de=ve!=xe,ve==w.ch&&B==w.line&&xe==ve+X)continue;return{from:Math.min(ve,xe+1),to:Math.max(ve,xe),line:B}}de||(j+=X)}if(B+=X,!o(c,B))return null;Y=c.getLine(B),j=X>0?0:Y.length}}function Kn(c,w,v,O,N,B){var j=Ue(w),Y=[];(O&&!N||!O&&N)&&v++;for(var X=!O||!N,re=0;re<v;re++){var se=yr(c,w,O,B,X);if(!se){var ve=kt(c,c.lastLine());Y.push(O?{line:c.lastLine(),from:ve,to:ve}:{line:0,from:0,to:0});break}Y.push(se),w=new Re(se.line,O?se.to-1:se.from)}var xe=Y.length!=v,de=Y[0],we=Y.pop();return O&&!N?(!xe&&(de.from!=j.ch||de.line!=j.line)&&(we=Y.pop()),new Re(we.line,we.from)):O&&N?new Re(we.line,we.to-1):!O&&N?(!xe&&(de.to!=j.ch||de.line!=j.line)&&(we=Y.pop()),new Re(we.line,we.to)):new Re(we.line,we.from)}function wr(c,w,v,O,N){var B=w,j=new Re(B.line+v.repeat-1,1/0),Y=c.clipPos(j);return Y.ch--,N||(O.lastHPos=1/0,O.lastHSPos=c.charCoords(Y,"div").left),j}function br(c,w,v,O,N){for(var B=N||c.getCursor(),j=B.ch,Y,X=0;X<w;X++){var re=c.getLine(B.line);if(Y=as(j,re,O,v),Y==-1)return null;j=Y}return new Re(c.getCursor().line,Y)}function ss(c,w){var v=c.getCursor().line;return ue(c,new Re(v,w-1))}function mi(c,w,v,O){!g(v,hr)&&!Nt.test(v)||(w.marks[v]&&w.marks[v].clear(),w.marks[v]=c.setBookmark(O))}function as(c,w,v,O,N){var B;return O?(B=w.indexOf(v,c+1),B!=-1):(B=w.lastIndexOf(v,c-1),B!=-1),B}function Ro(c,w,v,O,N){function B(We){return!/\S/.test(c.getLine(We))}function j(We,Xe,Ye){return Ye?B(We)!=B(We+Xe):!B(We)&&B(We+Xe)}function Y(We){O=O>0?1:-1;var Xe=c.ace.session.getFoldLine(We);Xe&&We+O>Xe.start.row&&We+O<Xe.end.row&&(O=(O>0?Xe.end.row:Xe.start.row)-We)}var X=w.line,re=c.firstLine(),se=c.lastLine(),ve,xe,de=X;if(O){for(;re<=de&&de<=se&&v>0;)Y(de),j(de,O)&&v--,de+=O;return new Re(de,0)}var we=c.state.vim;if(we.visualLine&&j(X,1,!0)){var Ee=we.sel.anchor;j(Ee.line,-1,!0)&&(!N||Ee.line!=X)&&(X+=1)}var $e=B(X);for(de=X;de<=se&&v;de++)j(de,1,!0)&&(!N||B(de)!=$e)&&v--;for(xe=new Re(de,0),de>se&&!$e?$e=!0:N=!1,de=X;de>re&&!((!N||B(de)==$e||de==X)&&j(de,-1,!0));de--);return ve=new Re(de,0),{start:ve,end:xe}}function io(c,w,v,O,N){function B(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function j(re,se,ve,xe){var de=re.getLine(se),we={line:de,ln:se,pos:ve,dir:xe};if(we.line==="")return{ln:we.ln,pos:we.pos};var Ee=we.pos;for(B(we);we.line!==null;){if(Ee=we.pos,d(we.line[we.pos])){if(!N)return{ln:we.ln,pos:we.pos+1};for(B(we);we.line!==null&&a(we.line[we.pos]);)Ee=we.pos,B(we);return{ln:we.ln,pos:Ee+1}}B(we)}return{ln:we.ln,pos:Ee+1}}function Y(re,se,ve,xe){var de=re.getLine(se),we={line:de,ln:se,pos:ve,dir:xe};if(we.line==="")return{ln:we.ln,pos:we.pos};var Ee=we.pos;for(B(we);we.line!==null;){if(!a(we.line[we.pos])&&!d(we.line[we.pos]))Ee=we.pos;else if(d(we.line[we.pos]))return N?a(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Ee}:{ln:we.ln,pos:Ee};B(we)}return we.line=de,N&&a(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Ee}}for(var X={ln:w.line,pos:w.ch};v>0;)O<0?X=Y(c,X.ln,X.pos,O):X=j(c,X.ln,X.pos,O),v--;return new Re(X.ln,X.pos)}function Vi(c,w,v,O){function N(X,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!o(X,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=X.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function B(X,re,se,ve){var $e=X.getLine(re),xe=$e==="",de={line:$e,ln:re,pos:se,dir:ve},we={ln:de.ln,pos:de.pos},Ee=de.line==="";for(N(X,de);de.line!==null;){if(we.ln=de.ln,we.pos=de.pos,de.line===""&&!Ee)return{ln:de.ln,pos:de.pos};if(xe&&de.line!==""&&!a(de.line[de.pos]))return{ln:de.ln,pos:de.pos};d(de.line[de.pos])&&!xe&&(de.pos===de.line.length-1||a(de.line[de.pos+1]))&&(xe=!0),N(X,de)}var $e=X.getLine(we.ln);we.pos=0;for(var We=$e.length-1;We>=0;--We)if(!a($e[We])){we.pos=We;break}return we}function j(X,re,se,ve){var Ee=X.getLine(re),xe={line:Ee,ln:re,pos:se,dir:ve},de={ln:xe.ln,pos:null},we=xe.line==="";for(N(X,xe);xe.line!==null;){if(xe.line===""&&!we)return de.pos!==null?de:{ln:xe.ln,pos:xe.pos};if(!(!d(xe.line[xe.pos])||de.pos===null||xe.ln===de.ln&&xe.pos+1===de.pos))return de;xe.line!==""&&!a(xe.line[xe.pos])&&(we=!1,de={ln:xe.ln,pos:xe.pos}),N(X,xe)}var Ee=X.getLine(de.ln);de.pos=0;for(var $e=0;$e<Ee.length;++$e)if(!a(Ee[$e])){de.pos=$e;break}return de}for(var Y={ln:w.line,pos:w.ch};v>0;)O<0?Y=j(c,Y.ln,Y.pos,O):Y=B(c,Y.ln,Y.pos,O),v--;return new Re(Y.ln,Y.pos)}function pn(c,w,v,O){var N=w,B,j,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[v],X={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[v],re=c.getLine(N.line).charAt(N.ch),se=re===X?1:0;if(B=c.scanForBracket(new Re(N.line,N.ch+se),-1,void 0,{bracketRegex:Y}),j=c.scanForBracket(new Re(N.line,N.ch+se),1,void 0,{bracketRegex:Y}),!B||!j)return null;if(B=B.pos,j=j.pos,B.line==j.line&&B.ch>j.ch||B.line>j.line){var ve=B;B=j,j=ve}return O?j.ch+=1:B.ch+=1,{start:B,end:j}}function ai(c,w,v,O){var N=Ue(w),B=c.getLine(N.line),j=B.split(""),Y,X,re,se,ve=j.indexOf(v);if(N.ch<ve)N.ch=ve;else if(ve<N.ch&&j[N.ch]==v){var xe=/string/.test(c.getTokenTypeAt(me(w,0,1))),de=/string/.test(c.getTokenTypeAt(w)),we=xe&&!de;we||(X=N.ch,--N.ch)}if(j[N.ch]==v&&!X)Y=N.ch+1;else for(re=N.ch;re>-1&&!Y;re--)j[re]==v&&(Y=re+1);if(Y&&!X)for(re=Y,se=j.length;re<se&&!X;re++)j[re]==v&&(X=re);return!Y||!X?{start:N,end:N}:(O&&(--Y,++X),{start:new Re(N.line,Y),end:new Re(N.line,X)})}function vi(){}function gn(c){var w=c.state.vim;return w.searchState_||(w.searchState_=new vi)}function Fn(c){return Ki(c,"/")}function or(c){return ro(c,"/")}function Ki(c,w){var v=ro(c,w)||[];if(!v.length)return[];var O=[];if(v[0]===0){for(var N=0;N<v.length;N++)typeof v[N]=="number"&&O.push(c.substring(v[N]+1,v[N+1]));return O}}function ro(c,w){w||(w="/");for(var v=!1,O=[],N=0;N<c.length;N++){var B=c.charAt(N);!v&&B==w&&O.push(N),v=!v&&B=="\\"}return O}function Io(c){for(var w="|(){",v="}",O=!1,N=[],B=-1;B<c.length;B++){var j=c.charAt(B)||"",Y=c.charAt(B+1)||"",X=Y&&w.indexOf(Y)!=-1;O?((j!=="\\"||!X)&&N.push(j),O=!1):j==="\\"?(O=!0,Y&&v.indexOf(Y)!=-1&&(X=!0),(!X||Y==="\\")&&N.push(j)):(N.push(j),X&&Y!=="\\"&&N.push("\\"))}return N.join("")}function ls(c){for(var w=!1,v=[],O=-1;O<c.length;O++){var N=c.charAt(O)||"",B=c.charAt(O+1)||"";Ii[N+B]?(v.push(Ii[N+B]),O++):w?(v.push(N),w=!1):N==="\\"?(w=!0,t(B)||B==="$"?v.push("$"):B!=="/"&&B!=="\\"&&v.push("\\")):(N==="$"&&v.push("$"),v.push(N),B==="/"&&v.push("\\"))}return v.join("")}function Oo(c){for(var w=new De.StringStream(c),v=[];!w.eol();){for(;w.peek()&&w.peek()!="\\";)v.push(w.next());var O=!1;for(var N in vo)if(w.match(N,!0)){O=!0,v.push(vo[N]);break}O||v.push(w.next())}return v.join("")}function ji(c,w,v){var O=Fe.registerController.getRegister("/");if(O.setText(c),c instanceof RegExp)return c;var N=or(c),B,j;if(!N.length)B=c;else{B=c.substring(0,N[0]);var Y=c.substring(N[0]);j=Y.indexOf("i")!=-1}if(!B)return null;y("pcre")||(B=Io(B)),v&&(w=/^[^A-Z]*$/.test(B));var X=new RegExp(B,w||j?"im":"m");return X}function Li(c){typeof c=="string"&&(c=document.createElement(c));for(var w,v=1;v<arguments.length;v++)if(w=arguments[v])if(typeof w!="object"&&(w=document.createTextNode(w)),w.nodeType)c.appendChild(w);else for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(O[0]==="$"?c.style[O.slice(1)]=w[O]:c.setAttribute(O,w[O]));return c}function Ct(c,w){var v=Li("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},w);c.openNotification?c.openNotification(v,{bottom:!0,duration:5e3}):alert(v.innerText)}function Do(c,w){return Li("div",{$display:"flex"},Li("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},c,Li("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),w&&Li("span",{$color:"#888"},w))}function jn(c,w){if(Gn.length){w.value||(w.value=""),yt=w;return}var v=Do(w.prefix,w.desc);if(c.openDialog)c.openDialog(v,w.onClose,{onKeyDown:w.onKeyDown,onKeyUp:w.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:w.value});else{var O="";typeof w.prefix!="string"&&w.prefix&&(O+=w.prefix.textContent),w.desc&&(O+=" "+w.desc),w.onClose(prompt(O,""))}}function mn(c,w){if(c instanceof RegExp&&w instanceof RegExp){for(var v=["global","multiline","ignoreCase","source"],O=0;O<v.length;O++){var N=v[O];if(c[N]!==w[N])return!1}return!0}return!1}function Yt(c,w,v,O){if(w){var N=gn(c),B=ji(w,!!v,!!O);if(B)return xr(c,B),mn(B,N.getQuery())||N.setQuery(B),B}}function cn(c){if(c.source.charAt(0)=="^")var w=!0;return{token:function(v){if(w&&!v.sol()){v.skipToEnd();return}var O=v.match(c,!1);if(O)return O[0].length==0?(v.next(),"searching"):!v.sol()&&(v.backUp(1),!c.exec(v.next()+O[0]))?(v.next(),null):(v.match(c),"searching");for(;!v.eol()&&(v.next(),!v.match(c,!1)););},query:c}}function xr(c,w){clearTimeout(Wt);var v=gn(c);v.highlightTimeout=Wt,Wt=setTimeout(function(){if(c.state.vim){var O=gn(c);O.highlightTimeout=null;var N=O.getOverlay();(!N||w!=N.query)&&(N&&c.removeOverlay(N),N=cn(w),c.addOverlay(N),c.showMatchesOnScrollbar&&(O.getScrollbarAnnotate()&&O.getScrollbarAnnotate().clear(),O.setScrollbarAnnotate(c.showMatchesOnScrollbar(w))),O.setOverlay(N))}},50)}function An(c,w,v,O){return O===void 0&&(O=1),c.operation(function(){for(var N=c.getCursor(),B=c.getSearchCursor(v,N),j=0;j<O;j++){var Y=B.find(w);if(j==0&&Y&&nt(B.from(),N)){var X=w?B.from():B.to();Y=B.find(w),Y&&!Y[0]&&nt(B.from(),X)&&c.getLine(X.line).length==X.ch&&(Y=B.find(w))}if(!Y&&(B=c.getSearchCursor(v,w?new Re(c.lastLine()):new Re(c.firstLine(),0)),!B.find(w)))return}return B.from()})}function kr(c,w,v,O,N){return O===void 0&&(O=1),c.operation(function(){var B=c.getCursor(),j=c.getSearchCursor(v,B),Y=j.find(!w);!N.visualMode&&Y&&nt(j.from(),B)&&j.find(!w);for(var X=0;X<O;X++)if(Y=j.find(w),!Y&&(j=c.getSearchCursor(v,w?new Re(c.lastLine()):new Re(c.firstLine(),0)),!j.find(w)))return;return[j.from(),j.to()]})}function Gi(c){var w=gn(c);w.highlightTimeout&&(clearTimeout(w.highlightTimeout),w.highlightTimeout=null),c.removeOverlay(gn(c).getOverlay()),w.setOverlay(null),w.getScrollbarAnnotate()&&(w.getScrollbarAnnotate().clear(),w.setScrollbarAnnotate(null))}function oo(c,w,v){return typeof c!="number"&&(c=c.line),w instanceof Array?g(c,w):typeof v=="number"?c>=w&&c<=v:c==w}function sr(c){var w=c.ace.renderer;return{top:w.getFirstFullyVisibleRow(),bottom:w.getLastFullyVisibleRow()}}function yi(c,w,v){if(v=="'"||v=="`")return Fe.jumpList.find(c,-1)||new Re(0,0);if(v==".")return Cr(c);var O=w.marks[v];return O&&O.find()}function Cr(c){if(c.getLastEditEnd)return c.getLastEditEnd();for(var w=c.doc.history.done,v=w.length;v--;)if(w[v].changes)return Ue(w[v].changes[0].to)}function Br(c,w,v,O,N,B,j,Y,X){function re(){c.operation(function(){for(;!Ee;)se(),xe();de()})}function se(){var Ye=c.getRange(B.from(),B.to()),Ke=Ye.replace(j,Y),Kt=B.to().line;B.replace(Ke),We=B.to().line,N+=We-Kt,Xe=We<Kt}function ve(){var Ye=$e&&Ue(B.to()),Ke=B.findNext();return Ke&&!Ke[0]&&Ye&&nt(B.from(),Ye)&&(Ke=B.findNext()),Ke}function xe(){for(;ve()&&oo(B.from(),O,N);)if(!(!v&&B.from().line==We&&!Xe)){c.scrollIntoView(B.from(),30),c.setSelection(B.from(),B.to()),$e=B.from(),Ee=!1;return}Ee=!0}function de(Ye){if(Ye&&Ye(),c.focus(),$e){c.setCursor($e);var Ke=c.state.vim;Ke.exMode=!1,Ke.lastHPos=Ke.lastHSPos=$e.ch}X&&X()}function we(Ye,Ke,Kt){De.e_stop(Ye);var ft=H(Ye);switch(ft){case"y":se(),xe();break;case"n":xe();break;case"a":var Et=X;X=void 0,c.operation(re),X=Et;break;case"l":se();case"q":case"<Esc>":case"<C-c>":case"<C-[>":de(Kt)}return Ee&&de(Kt),!0}c.state.vim.exMode=!0;var Ee=!1,$e,We,Xe;if(xe(),Ee){Ct(c,"No matches for "+j.source);return}if(!w){re(),X&&X();return}jn(c,{prefix:Li("span","replace with ",Li("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Jn(c,w){var v=c.state.vim,O=Fe.macroModeState,N=Fe.registerController.getRegister("."),B=O.isPlaying,j=O.lastInsertModeChanges;B||(c.off("change",Hr),v.insertEnd&&v.insertEnd.clear(),v.insertEnd=null,De.off(c.getInputField(),"keydown",Sr)),!B&&v.insertModeRepeat>1&&(ho(c,v,v.insertModeRepeat-1,!0),v.lastEditInputState.repeatOverride=v.insertModeRepeat),delete v.insertModeRepeat,v.insertMode=!1,w||c.setCursor(c.getCursor().line,c.getCursor().ch-1),c.setOption("keyMap","vim"),c.setOption("disableInput",!0),c.toggleOverwrite(!1),N.setText(j.changes.join("")),De.signal(c,"vim-mode-change",{mode:"normal"}),O.isRecording&&Mn(O)}function Pr(c){sn.unshift(c)}function so(c,w,v,O,N){var B={keys:c,type:w};B[w]=v,B[w+"Args"]=O;for(var j in N)B[j]=N[j];Pr(B)}function ao(c,w,v,O){var N=Fe.registerController.getRegister(O);if(O==":"){N.keyBuffer[0]&&Yn.processCommand(c,N.keyBuffer[0]),v.isPlaying=!1;return}var B=N.keyBuffer,j=0;v.isPlaying=!0,v.replaySearchQueries=N.searchQueries.slice(0);for(var Y=0;Y<B.length;Y++)for(var X=B[Y],re,se;X;)if(re=/<\w+-.+?>|<\w+>|./.exec(X),se=re[0],X=X.substring(re.index+se.length),ht.handleKey(c,se,"macro"),w.insertMode){var ve=N.insertModeChanges[j++].changes;Fe.macroModeState.lastInsertModeChanges.changes=ve,Ur(c,ve,1),Jn(c)}v.isPlaying=!1}function lo(c,w){if(!c.isPlaying){var v=c.latestRegister,O=Fe.registerController.getRegister(v);O&&O.pushText(w)}}function Mn(c){if(!c.isPlaying){var w=c.latestRegister,v=Fe.registerController.getRegister(w);v&&v.pushInsertModeChanges&&v.pushInsertModeChanges(c.lastInsertModeChanges)}}function co(c,w){if(!c.isPlaying){var v=c.latestRegister,O=Fe.registerController.getRegister(v);O&&O.pushSearchQuery&&O.pushSearchQuery(w)}}function Hr(c,w){var v=Fe.macroModeState,O=v.lastInsertModeChanges;if(!v.isPlaying)for(var N=c.state.vim;w;){if(O.expectCursorActivityForChange=!0,O.ignoreCount>1)O.ignoreCount--;else if(w.origin=="+input"||w.origin=="paste"||w.origin===void 0){var B=c.listSelections().length;B>1&&(O.ignoreCount=B);var j=w.text.join(`
|
|
1393
|
+
`);if(O.maybeReset&&(O.changes=[],O.maybeReset=!1),j)if(c.state.overwrite&&!/\n/.test(j))O.changes.push([j]);else{if(j.length>1){var Y=N&&N.insertEnd&&N.insertEnd.find(),X=c.getCursor();if(Y&&Y.line==X.line){var re=Y.ch-X.ch;re>0&&re<j.length&&(O.changes.push([j,re]),j="")}}j&&O.changes.push(j)}}w=w.next}}function ar(c){var w=c.state.vim;if(w.insertMode){var v=Fe.macroModeState;if(v.isPlaying)return;var O=v.lastInsertModeChanges;O.expectCursorActivityForChange?O.expectCursorActivityForChange=!1:(O.maybeReset=!0,w.insertEnd&&w.insertEnd.clear(),w.insertEnd=c.setBookmark(c.getCursor(),{insertLeft:!0}))}else c.curOp.isVimOp||uo(c,w)}function uo(c,w,v){var O=c.getCursor("anchor"),N=c.getCursor("head");if(w.visualMode&&!c.somethingSelected()?on(c,!1):!w.visualMode&&!w.insertMode&&c.somethingSelected()&&(w.visualMode=!0,w.visualLine=!1,De.signal(c,"vim-mode-change",{mode:"visual"})),w.visualMode){var B=at(N,O)?0:-1,j=at(N,O)?-1:0;N=me(N,0,B),O=me(O,0,j),w.sel={anchor:O,head:N},mi(c,w,"<",tt(N,O)),mi(c,w,">",Rt(N,O))}else!w.insertMode&&!v&&(w.lastHPos=c.getCursor().ch)}function zr(c,w){this.keyName=c,this.key=w.key,this.ctrlKey=w.ctrlKey,this.altKey=w.altKey,this.metaKey=w.metaKey,this.shiftKey=w.shiftKey}function Sr(c){var w=Fe.macroModeState,v=w.lastInsertModeChanges,O=De.keyName?De.keyName(c):c.key;O&&(O.indexOf("Delete")!=-1||O.indexOf("Backspace")!=-1)&&(v.maybeReset&&(v.changes=[],v.maybeReset=!1),v.changes.push(new zr(O,c)))}function ho(c,w,v,O){function N(){Y?wi.processAction(c,w,w.lastEditActionCommand):wi.evalInput(c,w)}function B(se){if(j.lastInsertModeChanges.changes.length>0){se=w.lastEditActionCommand?se:1;var ve=j.lastInsertModeChanges;Ur(c,ve.changes,se)}}var j=Fe.macroModeState;j.isPlaying=!0;var Y=!!w.lastEditActionCommand,X=w.inputState;if(w.inputState=w.lastEditInputState,Y&&w.lastEditActionCommand.interlaceInsertRepeat)for(var re=0;re<v;re++)N(),B(1);else O||N(),B(v);w.inputState=X,w.insertMode&&!O&&Jn(c),j.isPlaying=!1}function fo(c,w){De.lookupKey(w,"vim-insert",function(v){return typeof v=="string"?De.commands[v](c):v(c),!0})}function Ur(c,w,v){var O=c.getCursor("head"),N=Fe.macroModeState.lastInsertModeChanges.visualBlock;N&&(Un(c,O,N+1),v=c.listSelections().length,c.setCursor(O));for(var B=0;B<v;B++){N&&c.setCursor(me(O,B,0));for(var j=0;j<w.length;j++){var Y=w[j];if(Y instanceof zr)fo(c,Y.keyName);else if(typeof Y=="string")c.replaceSelection(Y);else{var X=c.getCursor(),re=me(X,0,Y[0].length-(Y[1]||0));c.replaceRange(Y[0],X,Y[1]?X:re),c.setCursor(re)}}}N&&c.setCursor(me(O,0,1))}function No(c,w,v,O){w.length>1&&w[0]=="n"&&(w=w.replace("numpad","")),w=dr[w]||w;var N="";if(v.ctrlKey&&(N+="C-"),v.altKey&&(N+="A-"),(N||w.length>1)&&v.shiftKey&&(N+="S-"),O&&!O.expectLiteralNext&&w.length==1){if(an.keymap&&w in an.keymap)(an.remapCtrl!==!1||!N)&&(w=an.keymap[w]);else if(w.charCodeAt(0)>255){var B=v.code&&v.code.slice(-1)||"";v.shiftKey||(B=B.toLowerCase()),B&&(w=B)}}return N+=w,N.length>1&&(N="<"+N+">"),N}function lr(c){var w=new c.constructor;return Object.keys(c).forEach(function(v){if(v!="insertEnd"){var O=c[v];Array.isArray(O)?O=O.slice():O&&typeof O=="object"&&O.constructor!=Object&&(O=lr(O)),w[v]=O}}),c.sel&&(w.sel={head:c.sel.head&&Ue(c.sel.head),anchor:c.sel.anchor&&Ue(c.sel.anchor)}),w}function Vr(c,w,v){var O=!1,N=ht.maybeInitVimState_(c),B=N.visualBlock||N.wasInVisualBlock,j=c.ace.inMultiSelectMode;if(N.wasInVisualBlock&&!j?N.wasInVisualBlock=!1:j&&N.visualBlock&&(N.wasInVisualBlock=!0),w=="<Esc>"&&!N.insertMode&&!N.visualMode&&j)c.ace.exitMultiSelectMode();else if(B||!j||c.ace.inVirtualSelectionMode)O=ht.handleKey(c,w,v);else{var Y=lr(N),X=N.inputState.changeQueueList||[];c.operation(function(){c.curOp.isVimOp=!0;var re=0;c.ace.forEachSelection(function(){var se=c.ace.selection;c.state.vim.lastHPos=se.$desiredColumn==null?se.lead.column:se.$desiredColumn,c.state.vim.inputState.changeQueue=X[re];var ve=c.getCursor("head"),xe=c.getCursor("anchor"),de=at(ve,xe)?0:-1,we=at(ve,xe)?-1:0;ve=me(ve,0,de),xe=me(xe,0,we),c.state.vim.sel.head=ve,c.state.vim.sel.anchor=xe,O=Bn(c,w,v),se.$desiredColumn=c.state.vim.lastHPos==-1?null:c.state.vim.lastHPos,c.ace.inVirtualSelectionMode&&(X[re]=c.state.vim.inputState.changeQueue),c.virtualSelectionMode()&&(c.state.vim=lr(Y)),re++}),c.curOp.cursorActivity&&!O&&(c.curOp.cursorActivity=!1),N.status=c.state.vim.status,c.state.vim=N,N.inputState.changeQueueList=X,N.inputState.changeQueue=null},!0)}return O&&!N.visualMode&&!N.insert&&N.visualMode!=c.somethingSelected()&&uo(c,N,!0),O}function qi(c,w){w.off("beforeEndOperation",qi);var v=w.state.cm.vimCmd;v&&w.execCommand(v.exec?v:v.name,v.args),w.curOp=w.prevOp}var $n=f("../range").Range,po=f("../lib/event_emitter").EventEmitter,ei=f("../lib/dom"),Fo=f("../lib/oop"),Wo=f("../lib/keys"),Kr=f("../lib/event"),Yi=f("../search").Search,_r=f("../lib/useragent"),jr=f("../search_highlight").SearchHighlight,cr=f("../commands/multi_select_commands"),Bo=f("../mode/text").Mode.prototype.tokenRe,ur=f("../ext/hardwrap").hardWrap;f("../multi_select");var De=function(c){this.ace=c,this.state={},this.marks={},this.options={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};De.Pos=function(c,w){if(!(this instanceof Re))return new Re(c,w);this.line=c,this.ch=w},De.defineOption=function(c,w,v){},De.commands={redo:function(c){c.ace.redo()},undo:function(c){c.ace.undo()},newlineAndIndent:function(c){c.ace.insert(`
|
|
1394
|
+
`)},goLineLeft:function(c){c.ace.selection.moveCursorLineStart()},goLineRight:function(c){c.ace.selection.moveCursorLineEnd()}},De.keyMap={},De.addClass=De.rmClass=function(){},De.e_stop=De.e_preventDefault=Kr.stopEvent,De.keyName=function(c){var w=Wo[c.keyCode]||c.key||"";return w.length==1&&(w=w.toUpperCase()),w=Kr.getModifierString(c).replace(/(^|-)\w/g,function(v){return v.toUpperCase()})+w,w},De.keyMap.default=function(c){return function(w){var v=w.ace.commands.commandKeyBinding[c.toLowerCase()];return v&&w.ace.execCommand(v)!==!1}},De.lookupKey=function c(w,v,O){v||(v="default"),typeof v=="string"&&(v=De.keyMap[v]||De.keyMap.default);var N=typeof v=="function"?v(w):v[w];if(N===!1)return"nothing";if(N==="...")return"multi";if(N!=null&&O(N))return"handled";if(v.fallthrough){if(!Array.isArray(v.fallthrough))return c(w,v.fallthrough,O);for(var B=0;B<v.fallthrough.length;B++){var j=c(w,v.fallthrough[B],O);if(j)return j}}},De.findMatchingTag=function(c,w){return c.findMatchingTag(w)},De.findEnclosingTag=function(c,w){},De.signal=function(c,w,v){return c._signal(w,v)},De.on=Kr.addListener,De.off=Kr.removeListener,De.isWordChar=function(c){return c<""?/^\w$/.test(c):(Bo.lastIndex=0,Bo.test(c))},(function(){Fo.implement(De.prototype,po),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(v){this.$lineHandleChanges&&this.$lineHandleChanges.push(v);var O={text:v.action[0]=="i"?v.lines:[]},N=this.curOp=this.curOp||{};N.changeHandlers||(N.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),N.lastChange?N.lastChange.next=N.lastChange=O:N.lastChange=N.change=O,this.$updateMarkers(v)},this.onSelectionChange=function(){var v=this.curOp=this.curOp||{};v.cursorActivityHandlers||(v.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(cr.keyboardHandler)},this.operation=function(v,O){if(!O&&this.curOp||O&&this.curOp&&this.curOp.force)return v();if((O||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var N=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var B=this.curOp=this.curOp||{};this.curOp.force=O;var j=v();return this.ace.curOp&&this.ace.curOp.command.name=="vim"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),!B.cursorActivity&&!B.lastChange&&N&&(this.ace.prevOp=N)),(O||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),j},this.onBeforeEndOperation=function(){var v=this.curOp;v&&(v.change&&this.signal("change",v.change,v),v&&v.cursorActivity&&this.signal("cursorActivity",null,v),this.curOp=null)},this.signal=function(v,O,N){var B=N?N[v+"Handlers"]:(this._eventRegistry||{})[v];if(B){B=B.slice();for(var j=0;j<B.length;j++)B[j](this,O)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(v,O){typeof v=="object"&&(O=v.ch,v=v.line);var N=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:v,column:O}),this.ace.selection.moveTo(v,O),N&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(v){var O=this.ace.selection,N=v=="anchor"?O.isEmpty()?O.lead:O.anchor:v=="head"||!v?O.lead:O.getRange()[v];return _(N)},this.listSelections=function(v){var O=this.ace.multiSelect.rangeList.ranges;return!O.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:O.map(function(N){return{anchor:this.clipPos(_(N.cursor==N.end?N.start:N.end)),head:this.clipPos(_(N.cursor))}},this)},this.setSelections=function(v,O){var N=this.ace.multiSelect,B=v.map(function(re){var se=R(re.anchor),ve=R(re.head),xe=$n.comparePoints(se,ve)<0?new $n.fromPoints(se,ve):new $n.fromPoints(ve,se);return xe.cursor=$n.comparePoints(xe.start,ve)?xe.end:xe.start,xe});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(B[0]);return}O?B[O]&&B.push(B.splice(O,1)[0]):B=B.reverse(),N.toSingleRange(B[0].clone());for(var j=this.ace.session,Y=0;Y<B.length;Y++){var X=j.$clipRangeToDocument(B[Y]);N.addRange(X)}},this.setSelection=function(v,O,N){var B=this.ace.selection;B.moveTo(v.line,v.ch),B.selectTo(O.line,O.ch),N&&N.origin=="*mouse"&&this.onBeforeEndOperation()},this.somethingSelected=function(v){return!this.ace.selection.isEmpty()},this.clipPos=function(v){var O=this.ace.session.$clipPositionToDocument(v.line,v.ch);return _(O)},this.foldCode=function(v){this.ace.session.$toggleFoldWidget(v.line,{})},this.markText=function(v){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(v){var O=v.action=="insert",N=v.start,B=v.end,j=(B.row-N.row)*(O?1:-1),Y=(B.column-N.column)*(O?1:-1);O&&(B=N);for(var X in this.marks){var re=this.marks[X],se=$n.comparePoints(re,N);if(!(se<0)){if(se===0&&O)if(!re.$insertRight)se=1;else{if(re.bias!=1){re.bias=-1;continue}se=1}var ve=O?se:$n.comparePoints(re,B);if(ve>0){re.row+=j,re.column+=re.row==B.row?Y:0;continue}!O&&ve<=0&&(re.row=N.row,re.column=N.column,ve===0&&(re.bias=1))}}};var c=function(v,O,N,B){this.cm=v,this.id=O,this.row=N,this.column=B,v.marks[this.id]=this};c.prototype.clear=function(){delete this.cm.marks[this.id]},c.prototype.find=function(){return _(this)},this.setBookmark=function(v,O){var N=new c(this,this.$uid++,v.line,v.ch);return(!O||!O.insertLeft)&&(N.$insertRight=!0),this.marks[N.id]=N,N},this.moveH=function(v,O){if(O=="char"){var N=this.ace.selection;N.clearSelection(),N.moveCursorBy(0,v)}},this.findPosV=function(v,O,N,B){if(N=="page"){var j=this.ace.renderer,Y=j.layerConfig;O*=Math.floor(Y.height/Y.lineHeight),N="line"}if(N=="line"){var X=this.ace.session.documentToScreenPosition(v.line,v.ch);B!=null&&(X.column=B),X.row+=O,X.row=Math.min(Math.max(0,X.row),this.ace.session.getScreenLength()-1);var re=this.ace.session.screenToDocumentPosition(X.row,X.column);return _(re)}debugger},this.charCoords=function(v,O){if(O=="div"||!O){var N=this.ace.session.documentToScreenPosition(v.line,v.ch);return{left:N.column,top:N.row}}if(O=="local"){var B=this.ace.renderer,N=this.ace.session.documentToScreenPosition(v.line,v.ch),j=B.layerConfig.lineHeight,Y=B.layerConfig.characterWidth,X=j*N.row;return{left:N.column*Y,top:X,bottom:X+j}}},this.coordsChar=function(v,O){var N=this.ace.renderer;if(O=="local"){var B=Math.max(0,Math.floor(v.top/N.lineHeight)),j=Math.max(0,Math.floor(v.left/N.characterWidth)),Y=N.session.screenToDocumentPosition(B,j);return _(Y)}if(O=="div")throw"not implemented"},this.getSearchCursor=function(v,O,N){var B=!1,j=!1;v instanceof RegExp&&!v.global&&(B=!v.ignoreCase,v=v.source,j=!0),v=="\\n"&&(v=`
|
|
1395
|
+
`,j=!1);var Y=new Yi;O.ch==null&&(O.ch=Number.MAX_VALUE);var X={row:O.line,column:O.ch},re=this,se=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(ve){Y.setOptions({needle:v,caseSensitive:B,wrap:!1,backwards:ve,regExp:j,start:se||X});var xe=Y.find(re.ace.session);return se=xe,se&&[!se.isEmpty()]},from:function(){return se&&_(se.start)},to:function(){return se&&_(se.end)},replace:function(ve){se&&(se.end=re.ace.session.doc.replace(se,ve))}}},this.scrollTo=function(v,O){var N=this.ace.renderer,B=N.layerConfig,j=B.maxHeight;j-=(N.$size.scrollerHeight-N.lineHeight)*N.$scrollPastEnd,O!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(O,j))),v!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(v,B.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(v,O){if(v){var N=this.ace.renderer,B={top:0,bottom:O};N.scrollCursorIntoView(R(v),N.lineHeight*2/N.$size.scrollerHeight,B)}},this.getLine=function(v){return this.ace.session.getLine(v)},this.getRange=function(v,O){return this.ace.session.getTextRange(new $n(v.line,v.ch,O.line,O.ch))},this.replaceRange=function(v,O,N){N||(N=O);var B=new $n(O.line,O.ch,N.line,N.ch);return this.ace.session.$clipRangeToDocument(B),this.ace.session.replace(B,v)},this.replaceSelection=this.replaceSelections=function(v){var O=Array.isArray(v)&&v,N=this.ace.selection;if(this.ace.inVirtualSelectionMode){this.ace.session.replace(N.getRange(),O?v[0]||"":v);return}N.inVirtualSelectionMode=!0;var B=N.rangeList.ranges;B.length||(B=[this.ace.multiSelect.getRange()]);for(var j=B.length;j--;)this.ace.session.replace(B[j],O?v[j]||"":v);N.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(v){return this.getRange(v.anchor,v.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var w={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(v,O){switch(this.state[v]=O,v){case"indentWithTabs":v=w[v],O=!O;break;case"keyMap":this.state.$keyMap=O;return;default:v=w[v]}v&&this.ace.setOption(v,O)},this.getOption=function(v){var O,N=w[v];switch(N&&(O=this.ace.getOption(N)),v){case"indentWithTabs":return v=w[v],!O;case"keyMap":return this.state.$keyMap||"vim"}return N?O:this.state[v]},this.toggleOverwrite=function(v){return this.state.overwrite=v,this.ace.setOverwrite(v)},this.addOverlay=function(v){if(!this.$searchHighlight||!this.$searchHighlight.session){var O=new jr(null,"ace_highlight-marker","text"),N=this.ace.session.addDynamicMarker(O);O.id=N.id,O.session=this.ace.session,O.destroy=function(j){O.session.off("change",O.updateOnChange),O.session.off("changeEditor",O.destroy),O.session.removeMarker(O.id),O.session=null},O.updateOnChange=function(j){var Y=j.start.row;Y==j.end.row?O.cache[Y]=void 0:O.cache.splice(Y,O.cache.length)},O.session.on("changeEditor",O.destroy),O.session.on("change",O.updateOnChange)}var B=new RegExp(v.query.source,"gmi");this.$searchHighlight=v.highlight=O,this.$searchHighlight.setRegexp(B),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(v){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var v=this.ace.renderer,O=v.layerConfig;return{left:v.scrollLeft,top:v.scrollTop,height:O.maxHeight,width:O.width,clientHeight:O.height,clientWidth:O.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(v){return this.ace.setValue(v,-1)},this.getTokenTypeAt=function(v){var O=this.ace.session.getTokenAt(v.line,v.ch);return O&&/comment|string/.test(O.type)?"string":""},this.findMatchingBracket=function(v){var O=this.ace.session.findMatchingBracket(R(v));return{to:O&&_(O)}},this.findMatchingTag=function(v){var O=this.ace.session.getMatchingTags(R(v));if(O)return{open:{from:_(O.openTag.start),to:_(O.openTag.end)},close:{from:_(O.closeTag.start),to:_(O.closeTag.end)}}},this.indentLine=function(v,O){O===!0?this.ace.session.indentRows(v,v," "):O===!1&&this.ace.session.outdentRows(new $n(v,0,v,0))},this.indexFromPos=function(v){return this.ace.session.doc.positionToIndex(R(v))},this.posFromIndex=function(v){return _(this.ace.session.doc.indexToPosition(v))},this.focus=function(v){return this.ace.textInput.focus()},this.blur=function(v){return this.ace.blur()},this.defaultTextHeight=function(v){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(v,O,N,B){var j=B.bracketRegex.source,Y=/paren|text|operator|tag/;if(O==1)var X=this.ace.session.$findClosingBracket(j.slice(1,2),R(v),Y);else{var X=this.ace.session.$findOpeningBracket(j.slice(-2,-1),{row:v.line,column:v.ch+1},Y);!X&&B.bracketRegex&&B.bracketRegex.test(this.getLine(v.line)[v.ch-1])&&(X={row:v.line,column:v.ch-1})}return X&&{pos:_(X)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(v){if(De.commands.hasOwnProperty(v))return De.commands[v](this);if(v=="indentAuto")return this.ace.execCommand("autoindent");console.log(v+" is not implemented")},this.getLineNumber=function(v){var O=this.$lineHandleChanges;if(!O)return null;for(var N=v.row,B=0;B<O.length;B++){var j=O[B];if(j.start.row!=j.end.row){if(j.action[0]=="i")j.start.row<N&&(N+=j.end.row-j.start.row);else if(j.start.row<N){if(N<j.end.row||N==j.end.row&&j.start.column>0)return null;N-=j.end.row-j.start.row}}}return N},this.getLineHandle=function(v){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{text:this.ace.session.getLine(v),row:v}},this.releaseLineHandles=function(){this.$lineHandleChanges=void 0},this.getLastEditEnd=function(){var v=this.ace.session.$undoManager;if(v&&v.$lastDelta)return _(v.$lastDelta.end)}}).call(De.prototype);var go=De.StringStream=function(c,w){this.pos=this.start=0,this.string=c,this.tabSize=w||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};go.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(c){var w=this.string.charAt(this.pos);if(typeof c=="string")var v=w==c;else var v=w&&(c.test?c.test(w):c(w));if(v)return++this.pos,w},eatWhile:function(c){for(var w=this.pos;this.eat(c););return this.pos>w},eatSpace:function(){for(var c=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>c},skipToEnd:function(){this.pos=this.string.length},skipTo:function(c){var w=this.string.indexOf(c,this.pos);if(w>-1)return this.pos=w,!0},backUp:function(c){this.pos-=c},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(c,w,v){if(typeof c!="string"){var O=this.string.slice(this.pos).match(c);return O&&O.index>0?null:(O&&w!==!1&&(this.pos+=O[0].length),O)}var N=function(j){return v?j.toLowerCase():j},B=this.string.substr(this.pos,c.length);if(N(B)==N(c))return w!==!1&&(this.pos+=c.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(c,w){this.lineStart+=c;try{return w()}finally{this.lineStart-=c}}},De.defineExtension=function(c,w){De.prototype[c]=w},ei.importCssString(`.normal-mode .ace_cursor{
|
|
1396
|
+
border: none;
|
|
1397
|
+
background-color: rgba(255,0,0,0.5);
|
|
1398
|
+
}
|
|
1399
|
+
.normal-mode .ace_hidden-cursors .ace_cursor{
|
|
1400
|
+
background-color: transparent;
|
|
1401
|
+
border: 1px solid red;
|
|
1402
|
+
opacity: 0.7
|
|
1403
|
+
}
|
|
1404
|
+
.ace_dialog {
|
|
1405
|
+
position: absolute;
|
|
1406
|
+
left: 0; right: 0;
|
|
1407
|
+
background: inherit;
|
|
1408
|
+
z-index: 15;
|
|
1409
|
+
padding: .1em .8em;
|
|
1410
|
+
overflow: hidden;
|
|
1411
|
+
color: inherit;
|
|
1412
|
+
}
|
|
1413
|
+
.ace_dialog-top {
|
|
1414
|
+
border-bottom: 1px solid #444;
|
|
1415
|
+
top: 0;
|
|
1416
|
+
}
|
|
1417
|
+
.ace_dialog-bottom {
|
|
1418
|
+
border-top: 1px solid #444;
|
|
1419
|
+
bottom: 0;
|
|
1420
|
+
}
|
|
1421
|
+
.ace_dialog input {
|
|
1422
|
+
border: none;
|
|
1423
|
+
outline: none;
|
|
1424
|
+
background: transparent;
|
|
1425
|
+
width: 20em;
|
|
1426
|
+
color: inherit;
|
|
1427
|
+
font-family: monospace;
|
|
1428
|
+
}`,"vimMode",!1),(function(){function c(v,O,N){var B=v.ace.container,j;return j=B.appendChild(document.createElement("div")),N?j.className="ace_dialog ace_dialog-bottom":j.className="ace_dialog ace_dialog-top",typeof O=="string"?j.innerHTML=O:j.appendChild(O),j}function w(v,O){v.state.currentNotificationClose&&v.state.currentNotificationClose(),v.state.currentNotificationClose=O}De.defineExtension("openDialog",function(v,O,N){function B(ve){if(typeof ve=="string")re.value=ve;else{if(Y||ve&&ve.type=="blur"&&document.activeElement===re)return;X.state.dialog==j&&(X.state.dialog=null,X.focus()),Y=!0,j.remove(),N.onClose&&N.onClose(j);var xe=X;xe.state.vim&&(xe.state.vim.status=null,xe.ace._signal("changeStatus"),xe.ace.renderer.$loop.schedule(xe.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){N||(N={}),w(this,null);var j=c(this,v,N.bottom),Y=!1,X=this;this.state.dialog=j;var re=j.getElementsByTagName("input")[0],se;return re?(N.value&&(re.value=N.value,N.selectValueOnOpen!==!1&&re.select()),N.onInput&&De.on(re,"input",function(ve){N.onInput(ve,re.value,B)}),N.onKeyUp&&De.on(re,"keyup",function(ve){N.onKeyUp(ve,re.value,B)}),De.on(re,"keydown",function(ve){N&&N.onKeyDown&&N.onKeyDown(ve,re.value,B)||(ve.keyCode==13&&O(re.value),(ve.keyCode==27||N.closeOnEnter!==!1&&ve.keyCode==13)&&(De.e_stop(ve),B()))}),N.closeOnBlur!==!1&&De.on(re,"blur",B),re.focus()):(se=j.getElementsByTagName("button")[0])&&(De.on(se,"click",function(){B(),X.focus()}),N.closeOnBlur!==!1&&De.on(se,"blur",B),se.focus()),B}}),De.defineExtension("openNotification",function(v,O){function N(){j||(j=!0,clearTimeout(Y),B.remove())}if(!this.virtualSelectionMode()){w(this,N);var B=c(this,v,O&&O.bottom),j=!1,Y,X=O&&typeof O.duration<"u"?O.duration:5e3;return De.on(B,"click",function(re){De.e_preventDefault(re),N()}),X&&(Y=setTimeout(N,X)),N}})})();var Re=De.Pos,sn=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],Ar=sn.length,Zi=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],an=T(""),Po=/[\d]/,Mr=[De.isWordChar,function(c){return c&&!De.isWordChar(c)&&!/\s/.test(c)}],Ti=[function(c){return/\S/.test(c)}],hr=["<",">"],mo=["-",'"',".",":","_","/","+"],Nt=/^\w$/,Je;try{Je=new RegExp("^[\\p{Lu}]$","u")}catch{Je=/^[A-Z]$/}var At={};L("filetype",void 0,"string",["ft"],function(c,w){if(w!==void 0){if(c===void 0){var v=w.getOption("mode");return v=="null"?"":v}var v=c==""?"null":c;w.setOption("mode",v)}}),L("textwidth",80,"number",["tw"],function(c,w){if(w!==void 0){if(c===void 0){var v=w.getOption("textwidth");return v}var O=Math.round(c);O>1&&w.setOption("textwidth",O)}});var Ei=function(){function c(X,re,se){function ve(Ee){var $e=++N%O,We=Y[$e];We&&We.clear(),Y[$e]=X.setBookmark(Ee)}var xe=N%O,de=Y[xe];if(de){var we=de.find();we&&!nt(we,re)&&ve(re)}else ve(re);ve(se),B=N,j=N-O+1,j<0&&(j=0)}function w(X,re){N+=re,N>B?N=B:N<j&&(N=j);var se=Y[(O+N)%O];if(se&&!se.find()){var ve=re>0?1:-1,xe,de=X.getCursor();do if(N+=ve,se=Y[(O+N)%O],se&&(xe=se.find())&&!nt(de,xe))break;while(N<B&&N>j)}return se}function v(X,re){var se=N,ve=w(X,re);return N=se,ve&&ve.find()}var O=100,N=-1,B=0,j=0,Y=new Array(O);return{cachedCursor:void 0,add:c,find:v,move:w}},un=function(c){return c?{changes:c.changes,expectCursorActivityForChange:c.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};p.prototype={exitMacroRecordMode:function(){var c=Fe.macroModeState;c.onRecordingDone&&c.onRecordingDone(),c.onRecordingDone=void 0,c.isRecording=!1},enterMacroRecordMode:function(c,w){var v=Fe.registerController.getRegister(w);if(v){if(v.clear(),this.latestRegister=w,c.openDialog){var O=Li("span",{class:"cm-vim-message"},"recording @"+w);this.onRecordingDone=c.openDialog(O,null,{bottom:!0})}this.isRecording=!0}}};var Fe,Zt,ht={enterVimMode:u,leaveVimMode:h,buildKeyMap:function(){},getRegisterController:function(){return Fe.registerController},resetVimGlobalState_:I,getVimGlobalState_:function(){return Fe},maybeInitVimState_:$,suppressErrorLogging:!1,InsertModeKey:zr,map:function(c,w,v){Yn.map(c,w,v)},unmap:function(c,w){return Yn.unmap(c,w)},noremap:function(c,w,v){Yn.map(c,w,v,!0)},mapclear:function(c){var w=sn.length,v=Ar,O=sn.slice(0,w-v);if(sn=sn.slice(w-v),c)for(var N=O.length-1;N>=0;N--){var B=O[N];if(c!==B.context)if(B.context)this._mapCommand(B);else{var j=["normal","insert","visual"];for(var Y in j)if(j[Y]!==c){var X={};for(var re in B)X[re]=B[re];X.context=j[Y],this._mapCommand(X)}}}},langmap:D,vimKeyFromEvent:H,setOption:C,getOption:y,defineOption:L,defineEx:function(c,w,v){if(!w)w=c;else if(c.indexOf(w)!==0)throw new Error('(Vim.defineEx) "'+w+'" is not a prefix of "'+c+'", command not registered');Ln[c]=v,Yn.commandMap_[w]={name:c,shortName:w,type:"api"}},handleKey:function(c,w,v){var O=this.findKey(c,w,v);if(typeof O=="function")return O()},multiSelectHandleKey:Vr,findKey:function(c,w,v){function O(){var re=Fe.macroModeState;if(re.isRecording){if(w=="q")return re.exitMacroRecordMode(),m(c),!0;v!="mapping"&&lo(re,w)}}function N(){if(w=="<Esc>"){if(Y.visualMode)on(c);else{if(!Y.insertMode)return;Jn(c)}return m(c),!0}}function B(){if(N())return!0;Y.inputState.keyBuffer.push(w);var re=Y.inputState.keyBuffer.join(""),se=w.length==1,ve=wi.matchCommand(re,sn,Y.inputState,"insert"),xe=Y.inputState.changeQueue;if(ve.type=="none")return m(c),!1;if(ve.type=="partial"){if(ve.expectLiteralNext&&(Y.expectLiteralNext=!0),Zt&&window.clearTimeout(Zt),Zt=se&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&m(c)},y("insertModeEscKeysTimeout")),se){var de=c.listSelections();(!xe||xe.removed.length!=de.length)&&(xe=Y.inputState.changeQueue=new E),xe.inserted+=w;for(var we=0;we<de.length;we++){var Ee=tt(de[we].anchor,de[we].head),$e=Rt(de[we].anchor,de[we].head),We=c.getRange(Ee,c.state.overwrite?me($e,0,1):$e);xe.removed[we]=(xe.removed[we]||"")+We}}return!se}if(Y.expectLiteralNext=!1,Zt&&window.clearTimeout(Zt),ve.command&&xe){for(var de=c.listSelections(),we=0;we<de.length;we++){var Xe=de[we].head;c.replaceRange(xe.removed[we]||"",me(Xe,0,-xe.inserted.length),Xe,"+input")}Fe.macroModeState.lastInsertModeChanges.changes.pop()}return ve.command||m(c),ve.command}function j(){if(O()||N())return!0;Y.inputState.keyBuffer.push(w);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var se=/^(\d*)(.*)$/.exec(re);if(!se)return m(c),!1;var ve=Y.visualMode?"visual":"normal",xe=se[2]||se[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==xe&&(xe=Y.inputState.operatorShortcut);var de=wi.matchCommand(xe,sn,Y.inputState,ve);return de.type=="none"?(m(c),!1):de.type=="partial"?(de.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):de.type=="clear"?(m(c),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,se=/^(\d*)(.*)$/.exec(re),se[1]&&se[1]!="0"&&Y.inputState.pushRepeatDigit(se[1]),de.command)}var Y=$(c),X;return Y.insertMode?X=B():X=j(),X===!1?!Y.insertMode&&w.length===1?function(){return!0}:void 0:X===!0?function(){return!0}:function(){if(!((X.operator||X.isEdit)&&c.getOption("readOnly")))return c.operation(function(){c.curOp.isVimOp=!0;try{X.type=="keyToKey"?A(c,X.toKeys,X):wi.processCommand(c,Y,X)}catch(re){throw c.state.vim=void 0,$(c),ht.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(c,w){Yn.processCommand(c,w)},defineMotion:te,defineAction:he,defineOperator:ne,mapCommand:so,_mapCommand:Pr,defineRegister:U,exitVisualMode:on,exitInsertMode:Jn},Gn=[],Ri=!1,yt,qn={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},wn={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Qi={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(qn)).forEach(function(c){Qi[(qn[c]||"").toLowerCase()]=Qi[c.toLowerCase()]=c}),L("langmap",void 0,"string",["lmap"],function(c,w){if(c===void 0)return an.string;D(c)}),x.prototype.pushRepeatDigit=function(c){this.operator?this.motionRepeat=this.motionRepeat.concat(c):this.prefixRepeat=this.prefixRepeat.concat(c)},x.prototype.getRepeat=function(){var c=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(c=1,this.prefixRepeat.length>0&&(c*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(c*=parseInt(this.motionRepeat.join(""),10))),c},W.prototype={setText:function(c,w,v){this.keyBuffer=[c||""],this.linewise=!!w,this.blockwise=!!v},pushText:function(c,w){w&&(this.linewise||this.keyBuffer.push(`
|
|
1429
|
+
`),this.linewise=!0),this.keyBuffer.push(c)},pushInsertModeChanges:function(c){this.insertModeChanges.push(un(c))},pushSearchQuery:function(c){this.searchQueries.push(c)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},q.prototype={pushText:function(c,w,v,O,N){if(c!=="_"){O&&v.charAt(v.length-1)!==`
|
|
1430
|
+
`&&(v+=`
|
|
1431
|
+
`);var B=this.isValidRegister(c)?this.getRegister(c):null;if(!B){switch(w){case"yank":this.registers[0]=new W(v,O,N);break;case"delete":case"change":v.indexOf(`
|
|
1432
|
+
`)==-1?this.registers["-"]=new W(v,O):(this.shiftNumericRegisters_(),this.registers[1]=new W(v,O))}this.unnamedRegister.setText(v,O,N);return}var j=n(c);j?B.pushText(v,O):B.setText(v,O,N),c==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(v),this.unnamedRegister.setText(B.toString(),O)}},getRegister:function(c){return this.isValidRegister(c)?(c=c.toLowerCase(),this.registers[c]||(this.registers[c]=new W),this.registers[c]):this.unnamedRegister},isValidRegister:function(c){return c&&(g(c,mo)||Nt.test(c))},shiftNumericRegisters_:function(){for(var c=9;c>=2;c--)this.registers[c]=this.getRegister(""+(c-1))}},Q.prototype={nextMatch:function(c,w){var v=this.historyBuffer,O=w?-1:1;this.initialPrefix===null&&(this.initialPrefix=c);for(var N=this.iterator+O;w?N>=0:N<v.length;N+=O)for(var B=v[N],j=0;j<=B.length;j++)if(this.initialPrefix==B.substring(0,j))return this.iterator=N,B;if(N>=v.length)return this.iterator=v.length,this.initialPrefix;if(N<0)return c},pushInput:function(c){var w=this.historyBuffer.indexOf(c);w>-1&&this.historyBuffer.splice(w,1),c.length&&this.historyBuffer.push(c)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var wi={matchCommand:function(c,w,v,O){var N=Se(c,w,O,v);if(!N.full&&!N.partial)return{type:"none"};if(!N.full&&N.partial)return{type:"partial",expectLiteralNext:N.partial.length==1&&N.partial[0].keys.slice(-11)=="<character>"};for(var B,j=0;j<N.full.length;j++){var Y=N.full[j];B||(B=Y)}if(B.keys.slice(-11)=="<character>"||B.keys.slice(-10)=="<register>"){var X=Ae(c);if(!X||X.length>1)return{type:"clear"};v.selectedCharacter=X}return{type:"full",command:B}},processCommand:function(c,w,v){switch(w.inputState.repeatOverride=v.repeatOverride,v.type){case"motion":this.processMotion(c,w,v);break;case"operator":this.processOperator(c,w,v);break;case"operatorMotion":this.processOperatorMotion(c,w,v);break;case"action":this.processAction(c,w,v);break;case"search":this.processSearch(c,w,v);break;case"ex":case"keyToEx":this.processEx(c,w,v);break}},processMotion:function(c,w,v){w.inputState.motion=v.motion,w.inputState.motionArgs=le(v.motionArgs),this.evalInput(c,w)},processOperator:function(c,w,v){var O=w.inputState;if(O.operator){if(O.operator==v.operator){O.motion="expandToLine",O.motionArgs={linewise:!0},this.evalInput(c,w);return}m(c)}O.operator=v.operator,O.operatorArgs=le(v.operatorArgs),v.keys.length>1&&(O.operatorShortcut=v.keys),v.exitVisualBlock&&(w.visualBlock=!1,Cn(c)),w.visualMode&&this.evalInput(c,w)},processOperatorMotion:function(c,w,v){var O=w.visualMode,N=le(v.operatorMotionArgs);N&&O&&N.visualLine&&(w.visualLine=!0),this.processOperator(c,w,v),O||this.processMotion(c,w,v)},processAction:function(c,w,v){var O=w.inputState,N=O.getRepeat(),B=!!N,j=le(v.actionArgs)||{};O.selectedCharacter&&(j.selectedCharacter=O.selectedCharacter),v.operator&&this.processOperator(c,w,v),v.motion&&this.processMotion(c,w,v),(v.motion||v.operator)&&this.evalInput(c,w),j.repeat=N||1,j.repeatIsExplicit=B,j.registerName=O.registerName,m(c),w.lastMotion=null,v.isEdit&&this.recordLastEdit(w,O,v),hn[v.action](c,j,w)},processSearch:function(c,w,v){function O($e,We,Xe){Fe.searchHistoryController.pushInput($e),Fe.searchHistoryController.reset();try{Yt(c,$e,We,Xe)}catch{Ct(c,"Invalid regex: "+$e),m(c);return}wi.processMotion(c,w,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:v.searchArgs.toJumplist}})}function N($e){O($e,!0,!0);var We=Fe.macroModeState;We.isRecording&&co(We,$e)}function B($e,We,Xe){var Ye=H($e),Ke,Kt;Ye=="<Up>"||Ye=="<Down>"?(Ke=Ye=="<Up>",Kt=$e.target?$e.target.selectionEnd:0,We=Fe.searchHistoryController.nextMatch(We,Ke)||"",Xe(We),Kt&&$e.target&&($e.target.selectionEnd=$e.target.selectionStart=Math.min(Kt,$e.target.value.length))):Ye&&Ye!="<Left>"&&Ye!="<Right>"&&Fe.searchHistoryController.reset();var ft;try{ft=Yt(c,We,!0,!0)}catch{}ft?c.scrollIntoView(An(c,!Y,ft),30):(Gi(c),c.scrollTo(ve.left,ve.top))}function j($e,We,Xe){var Ye=H($e);Ye=="<Esc>"||Ye=="<C-c>"||Ye=="<C-[>"||Ye=="<BS>"&&We==""?(Fe.searchHistoryController.pushInput(We),Fe.searchHistoryController.reset(),Yt(c,se),Gi(c),c.scrollTo(ve.left,ve.top),De.e_stop($e),m(c),Xe(),c.focus()):Ye=="<Up>"||Ye=="<Down>"?De.e_stop($e):Ye=="<C-u>"&&(De.e_stop($e),Xe(""))}if(c.getSearchCursor){var Y=v.searchArgs.forward,X=v.searchArgs.wholeWordOnly;gn(c).setReversed(!Y);var re=Y?"/":"?",se=gn(c).getQuery(),ve=c.getScrollInfo();switch(v.searchArgs.querySrc){case"prompt":var xe=Fe.macroModeState;if(xe.isPlaying){var Ee=xe.replaySearchQueries.shift();O(Ee,!0,!1)}else jn(c,{onClose:N,prefix:re,desc:"(JavaScript regexp)",onKeyUp:B,onKeyDown:j});break;case"wordUnderCursor":var de=_n(c,{noSymbol:!0}),we=!0;if(de||(de=_n(c,{noSymbol:!1}),we=!1),!de){Ct(c,"No word under cursor"),m(c);return}var Ee=c.getLine(de.start.line).substring(de.start.ch,de.end.ch);we&&X?Ee="\\b"+Ee+"\\b":Ee=kn(Ee),Fe.jumpList.cachedCursor=c.getCursor(),c.setCursor(de.start),O(Ee,!0,!1)}}},processEx:function(c,w,v){function O(B){Fe.exCommandHistoryController.pushInput(B),Fe.exCommandHistoryController.reset(),Yn.processCommand(c,B),c.state.vim&&m(c)}function N(B,j,Y){var X=H(B),re,se;(X=="<Esc>"||X=="<C-c>"||X=="<C-[>"||X=="<BS>"&&j=="")&&(Fe.exCommandHistoryController.pushInput(j),Fe.exCommandHistoryController.reset(),De.e_stop(B),m(c),Y(),c.focus()),X=="<Up>"||X=="<Down>"?(De.e_stop(B),re=X=="<Up>",se=B.target?B.target.selectionEnd:0,j=Fe.exCommandHistoryController.nextMatch(j,re)||"",Y(j),se&&B.target&&(B.target.selectionEnd=B.target.selectionStart=Math.min(se,B.target.value.length))):X=="<C-u>"?(De.e_stop(B),Y("")):X&&X!="<Left>"&&X!="<Right>"&&Fe.exCommandHistoryController.reset()}v.type=="keyToEx"?Yn.processCommand(c,v.exArgs.input):w.visualMode?jn(c,{onClose:O,prefix:":",value:"'<,'>",onKeyDown:N,selectValueOnOpen:!1}):jn(c,{onClose:O,prefix:":",onKeyDown:N})},evalInput:function(c,w){var v=w.inputState,O=v.motion,N=v.motionArgs||{},B=v.operator,j=v.operatorArgs||{},Y=v.registerName,X=w.sel,re=Ue(w.visualMode?ue(c,X.head):c.getCursor("head")),se=Ue(w.visualMode?ue(c,X.anchor):c.getCursor("anchor")),ve=Ue(re),xe=Ue(se),de,we,Ee;if(B&&this.recordLastEdit(w,v),v.repeatOverride!==void 0?Ee=v.repeatOverride:Ee=v.getRepeat(),Ee>0&&N.explicitRepeat?N.repeatIsExplicit=!0:(N.noRepeat||!N.explicitRepeat&&Ee===0)&&(Ee=1,N.repeatIsExplicit=!1),v.selectedCharacter&&(N.selectedCharacter=j.selectedCharacter=v.selectedCharacter),N.repeat=Ee,m(c),O){var $e=en[O](c,re,N,w,v);if(w.lastMotion=en[O],!$e)return;if(N.toJumplist){!B&&c.ace.curOp!=null&&(c.ace.curOp.command.scrollIntoView="center-animate");var We=Fe.jumpList,Xe=We.cachedCursor;Xe?(zi(c,Xe,$e),delete We.cachedCursor):zi(c,re,$e)}$e instanceof Array?(we=$e[0],de=$e[1]):de=$e,de||(de=Ue(re)),w.visualMode?((!w.visualBlock||de.ch!==1/0)&&(de=ue(c,de,ve)),we&&(we=ue(c,we)),we=we||xe,X.anchor=we,X.head=de,Cn(c),mi(c,w,"<",at(we,de)?we:de),mi(c,w,">",at(we,de)?de:we)):B||(c.ace.curOp&&(c.ace.curOp.vimDialogScroll="center-animate"),de=ue(c,de,ve),c.setCursor(de.line,de.ch))}if(B){if(j.lastSel){we=xe;var Ye=j.lastSel,Ke=Math.abs(Ye.head.line-Ye.anchor.line),Kt=Math.abs(Ye.head.ch-Ye.anchor.ch);Ye.visualLine?de=new Re(xe.line+Ke,xe.ch):Ye.visualBlock?de=new Re(xe.line+Ke,xe.ch+Kt):Ye.head.line==Ye.anchor.line?de=new Re(xe.line,xe.ch+Kt):de=new Re(xe.line+Ke,xe.ch),w.visualMode=!0,w.visualLine=Ye.visualLine,w.visualBlock=Ye.visualBlock,X=w.sel={anchor:we,head:de},Cn(c)}else w.visualMode&&(j.lastSel={anchor:Ue(X.anchor),head:Ue(X.head),visualBlock:w.visualBlock,visualLine:w.visualLine});var ft,Et,St,ot,dn;if(w.visualMode){ft=tt(X.head,X.anchor),Et=Rt(X.head,X.anchor),St=w.visualLine||j.linewise,ot=w.visualBlock?"block":St?"line":"char";var Tn=S(c,ft,Et);if(dn=Dn(c,{anchor:Tn.start,head:Tn.end},ot),St){var tn=dn.ranges;if(ot=="block")for(var K=0;K<tn.length;K++)tn[K].head.ch=kt(c,tn[K].head.line);else ot=="line"&&(tn[0].head=new Re(tn[0].head.line+1,0))}}else{if(ft=Ue(we||xe),Et=Ue(de||ve),at(Et,ft)){var Z=ft;ft=Et,Et=Z}St=N.linewise||j.linewise,St?Nn(c,ft,Et):N.forward&&Sn(c,ft,Et),ot="char";var ie=!N.inclusive||St,Tn=S(c,ft,Et);dn=Dn(c,{anchor:Tn.start,head:Tn.end},ot,ie)}c.setSelections(dn.ranges,dn.primary),w.lastMotion=null,j.repeat=Ee,j.registerName=Y,j.linewise=St;var oe=Gr[B](c,j,dn.ranges,xe,de);w.visualMode&&on(c,oe!=null),oe&&c.setCursor(oe)}},recordLastEdit:function(c,w,v){var O=Fe.macroModeState;O.isPlaying||(c.lastEditInputState=w,c.lastEditActionCommand=v,O.lastInsertModeChanges.changes=[],O.lastInsertModeChanges.expectCursorActivityForChange=!1,O.lastInsertModeChanges.visualBlock=c.visualBlock?c.sel.head.line-c.sel.anchor.line:0)}},en={moveToTopLine:function(c,w,v){var O=sr(c).top+v.repeat-1;return new Re(O,Ut(c.getLine(O)))},moveToMiddleLine:function(c){var w=sr(c),v=Math.floor((w.top+w.bottom)*.5);return new Re(v,Ut(c.getLine(v)))},moveToBottomLine:function(c,w,v){var O=sr(c).bottom-v.repeat+1;return new Re(O,Ut(c.getLine(O)))},expandToLine:function(c,w,v){var O=w;return new Re(O.line+v.repeat-1,1/0)},findNext:function(c,w,v){var O=gn(c),N=O.getQuery();if(N){var B=!v.forward;return B=O.isReversed()?!B:B,xr(c,N),An(c,B,N,v.repeat)}},findAndSelectNextInclusive:function(c,w,v,O,N){var B=gn(c),j=B.getQuery();if(j){var Y=!v.forward;Y=B.isReversed()?!Y:Y;var X=kr(c,Y,j,v.repeat,O);if(X){if(N.operator)return X;var re=X[0],se=new Re(X[1].line,X[1].ch-1);if(O.visualMode){(O.visualLine||O.visualBlock)&&(O.visualLine=!1,O.visualBlock=!1,De.signal(c,"vim-mode-change",{mode:"visual",subMode:""}));var ve=O.sel.anchor;if(ve)return B.isReversed()?v.forward?[ve,re]:[ve,se]:v.forward?[ve,se]:[ve,re]}else O.visualMode=!0,O.visualLine=!1,O.visualBlock=!1,De.signal(c,"vim-mode-change",{mode:"visual",subMode:""});return Y?[se,re]:[re,se]}}},goToMark:function(c,w,v,O){var N=yi(c,O,v.selectedCharacter);return N?v.linewise?{line:N.line,ch:Ut(c.getLine(N.line))}:N:null},moveToOtherHighlightedEnd:function(c,w,v,O){if(O.visualBlock&&v.sameLine){var N=O.sel;return[ue(c,new Re(N.anchor.line,N.head.ch)),ue(c,new Re(N.head.line,N.anchor.ch))]}return[O.sel.head,O.sel.anchor]},jumpToMark:function(c,w,v,O){for(var N=w,B=0;B<v.repeat;B++){var j=N;for(var Y in O.marks)if(i(Y)){var X=O.marks[Y].find(),re=v.forward?at(X,j):at(j,X);if(!re&&!(v.linewise&&X.line==j.line)){var se=nt(j,N),ve=v.forward?pi(j,X,N):pi(N,X,j);(se||ve)&&(N=X)}}}return v.linewise&&(N=new Re(N.line,Ut(c.getLine(N.line)))),N},moveByCharacters:function(c,w,v){var O=w,N=v.repeat,B=v.forward?O.ch+N:O.ch-N;return new Re(O.line,B)},moveByLines:function(c,w,v,O){var N=w,B=N.ch;switch(O.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:B=O.lastHPos;break;default:O.lastHPos=B}var j=v.repeat+(v.repeatOffset||0),Y=v.forward?N.line+j:N.line-j,X=c.firstLine(),re=c.lastLine();if(Y<X&&N.line==X)return this.moveToStartOfLine(c,w,v,O);if(Y>re&&N.line==re)return wr(c,w,v,O,!0);var se=c.ace.session.getFoldLine(Y);return se&&(v.forward?Y>se.start.row&&(Y=se.end.row+1):Y=se.start.row),v.toFirstChar&&(B=Ut(c.getLine(Y)),O.lastHPos=B),O.lastHSPos=c.charCoords(new Re(Y,B),"div").left,new Re(Y,B)},moveByDisplayLines:function(c,w,v,O){var N=w;switch(O.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:O.lastHSPos=c.charCoords(N,"div").left}var B=v.repeat,X=c.findPosV(N,v.forward?B:-B,"line",O.lastHSPos);if(X.hitSide)if(v.forward)var j=c.charCoords(X,"div"),Y={top:j.top+8,left:O.lastHSPos},X=c.coordsChar(Y,"div");else{var re=c.charCoords(new Re(c.firstLine(),0),"div");re.left=O.lastHSPos,X=c.coordsChar(re,"div")}return O.lastHPos=X.ch,X},moveByPage:function(c,w,v){var O=w,N=v.repeat;return c.findPosV(O,v.forward?N:-N,"page")},moveByParagraph:function(c,w,v){var O=v.forward?1:-1;return Ro(c,w,v.repeat,O)},moveBySentence:function(c,w,v){var O=v.forward?1:-1;return Vi(c,w,v.repeat,O)},moveByScroll:function(c,w,v,O){var N=c.getScrollInfo(),B=null,j=v.repeat;j||(j=N.clientHeight/(2*c.defaultTextHeight()));var Y=c.charCoords(w,"local");if(v.repeat=j,B=en.moveByDisplayLines(c,w,v,O),!B)return null;var X=c.charCoords(B,"local");return c.scrollTo(null,N.top+X.top-Y.top),B},moveByWords:function(c,w,v){return Kn(c,w,v.repeat,!!v.forward,!!v.wordEnd,!!v.bigWord)},moveTillCharacter:function(c,w,v){var O=v.repeat,N=br(c,O,v.forward,v.selectedCharacter,w),B=v.forward?-1:1;return gi(B,v),N?(N.ch+=B,N):null},moveToCharacter:function(c,w,v){var O=v.repeat;return gi(0,v),br(c,O,v.forward,v.selectedCharacter,w)||w},moveToSymbol:function(c,w,v){var O=v.repeat;return Ui(c,O,v.forward,v.selectedCharacter)||w},moveToColumn:function(c,w,v,O){var N=v.repeat;return O.lastHPos=N-1,O.lastHSPos=c.charCoords(w,"div").left,ss(c,N)},moveToEol:function(c,w,v,O){return wr(c,w,v,O,!1)},moveToFirstNonWhiteSpaceCharacter:function(c,w){var v=w;return new Re(v.line,Ut(c.getLine(v.line)))},moveToMatchedSymbol:function(c,w){for(var v=w,O=v.line,N=v.ch,B=c.getLine(O),j;N<B.length;N++)if(j=B.charAt(N),j&&r(j)){var Y=c.getTokenTypeAt(new Re(O,N+1));if(Y!=="string"&&Y!=="comment")break}if(N<B.length){var X=/[<>]/.test(B[N])?/[(){}[\]<>]/:/[(){}[\]]/,re=c.findMatchingBracket(new Re(O,N+1),{bracketRegex:X});return re.to}return v},moveToStartOfLine:function(c,w){return new Re(w.line,0)},moveToLineOrEdgeOfDocument:function(c,w,v){var O=v.forward?c.lastLine():c.firstLine();return v.repeatIsExplicit&&(O=v.repeat-c.getOption("firstLineNumber")),new Re(O,Ut(c.getLine(O)))},moveToStartOfDisplayLine:function(c){return c.execCommand("goLineLeft"),c.getCursor()},moveToEndOfDisplayLine:function(c){c.execCommand("goLineRight");var w=c.getCursor();return w.sticky=="before"&&w.ch--,w},textObjectManipulation:function(c,w,v,O){var N={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},B={"'":!0,'"':!0,"`":!0},j=v.selectedCharacter;j=="b"?j="(":j=="B"&&(j="{");var Y=!v.textObjectInner,X,re;if(N[j]){if(re=!0,X=pn(c,w,j,Y),!X){var se=c.getSearchCursor(new RegExp("\\"+j,"g"),w);se.find()&&(X=pn(c,se.from(),j,Y))}}else if(B[j])re=!0,X=ai(c,w,j,Y);else if(j==="W"||j==="w")for(var ve=v.repeat||1;ve-- >0;){var xe=_n(c,{inclusive:Y,innerWord:!Y,bigWord:j==="W",noSymbol:j==="W",multiline:!0},X&&X.end);xe&&(X||(X=xe),X.end=xe.end)}else if(j==="p")if(X=Ro(c,w,v.repeat,0,Y),v.linewise=!0,O.visualMode)O.visualLine||(O.visualLine=!0);else{var de=O.inputState.operatorArgs;de&&(de.linewise=!0),X.end.line--}else if(j==="t")X=vr(c,w,Y);else if(j==="s"){var we=c.getLine(w.line);w.ch>0&&d(we[w.ch])&&(w.ch-=1);var Ee=io(c,w,v.repeat,1,Y),$e=io(c,w,v.repeat,-1,Y);a(c.getLine($e.line)[$e.ch])&&a(c.getLine(Ee.line)[Ee.ch-1])&&($e={line:$e.line,ch:$e.ch+1}),X={start:$e,end:Ee}}return X?c.state.vim.visualMode?rn(c,X.start,X.end,re):[X.start,X.end]:null},repeatLastCharacterSearch:function(c,w,v){var O=Fe.lastCharacterSearch,N=v.repeat,B=v.forward===O.forward,j=(O.increment?1:0)*(B?-1:1);c.moveH(-j,"char"),v.inclusive=!!B;var Y=br(c,N,B,O.selectedCharacter);return Y?(Y.ch+=j,Y):(c.moveH(j,"char"),w)}},Gr={change:function(c,w,v){var O,N,B=c.state.vim,j=v[0].anchor,Y=v[0].head;if(B.visualMode)if(w.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,c.setSelection(j,Y),N=c.getSelection(),c.replaceSelection(""),O=j;else{N=c.getSelection();var se=ce("",v.length);c.replaceSelections(se),O=tt(v[0].head,v[0].anchor)}else{N=c.getRange(j,Y);var X=B.lastEditInputState||{};if(X.motion=="moveByWords"&&!a(N)){var re=/\s+$/.exec(N);re&&X.motionArgs&&X.motionArgs.forward&&(Y=me(Y,0,-re[0].length),N=N.slice(0,-re[0].length))}w.linewise&&(j=new Re(j.line,Ut(c.getLine(j.line))),Y.line>j.line&&(Y=new Re(Y.line-1,Number.MAX_VALUE))),c.replaceRange("",j,Y),O=j}Fe.registerController.pushText(w.registerName,"change",N,w.linewise,v.length>1),hn.enterInsertMode(c,{head:O},c.state.vim)},delete:function(c,w,v){var O,N,B=c.state.vim;if(B.visualBlock){N=c.getSelection();var X=ce("",v.length);c.replaceSelections(X),O=tt(v[0].head,v[0].anchor)}else{var j=v[0].anchor,Y=v[0].head;w.linewise&&Y.line!=c.firstLine()&&j.line==c.lastLine()&&j.line==Y.line-1&&(j.line==c.firstLine()?j.ch=0:j=new Re(j.line-1,kt(c,j.line-1))),N=c.getRange(j,Y),c.replaceRange("",j,Y),O=j,w.linewise&&(O=en.moveToFirstNonWhiteSpaceCharacter(c,j))}return Fe.registerController.pushText(w.registerName,"delete",N,w.linewise,B.visualBlock),ue(c,O)},indent:function(c,w,v){var O=c.state.vim,N=O.visualMode?w.repeat:1;if(O.visualBlock){for(var B=c.getOption("tabSize"),j=c.getOption("indentWithTabs")?" ":" ".repeat(B),Y,X=v.length-1;X>=0;X--)if(Y=tt(v[X].anchor,v[X].head),w.indentRight)c.replaceRange(j.repeat(N),Y,Y);else{for(var re=c.getLine(Y.line),se=0,ve=0;ve<N;ve++){var xe=re[Y.ch+se];if(xe==" ")se++;else{if(xe!=" ")break;se++;for(var de=1;de<j.length&&(xe=re[Y.ch+se],xe===" ");de++)se++}}c.replaceRange("",Y,me(Y,0,se))}return Y}if(c.indentMore)for(var ve=0;ve<N;ve++)w.indentRight?c.indentMore():c.indentLess();else{var we=v[0].anchor.line,Ee=O.visualBlock?v[v.length-1].anchor.line:v[0].head.line;w.linewise&&Ee--;for(var X=we;X<=Ee;X++)for(var ve=0;ve<N;ve++)c.indentLine(X,w.indentRight)}return en.moveToFirstNonWhiteSpaceCharacter(c,v[0].anchor)},indentAuto:function(c,w,v){return c.execCommand("indentAuto"),en.moveToFirstNonWhiteSpaceCharacter(c,v[0].anchor)},hardWrap:function(c,w,v,O,N){if(c.hardWrap){var B=v[0].anchor.line,j=v[0].head.line;w.linewise&&j--;var Y=c.hardWrap({from:B,to:j});return Y>B&&w.linewise&&Y--,w.keepCursor?O:new Re(Y,0)}},changeCase:function(c,w,v,O,N){for(var B=c.getSelections(),j=[],Y=w.toLower,X=0;X<B.length;X++){var re=B[X],se="";if(Y===!0)se=re.toLowerCase();else if(Y===!1)se=re.toUpperCase();else for(var ve=0;ve<re.length;ve++){var xe=re.charAt(ve);se+=n(xe)?xe.toLowerCase():xe.toUpperCase()}j.push(se)}return c.replaceSelections(j),w.shouldMoveCursor?N:!c.state.vim.visualMode&&w.linewise&&v[0].anchor.line+1==v[0].head.line?en.moveToFirstNonWhiteSpaceCharacter(c,O):w.linewise?O:tt(v[0].anchor,v[0].head)},yank:function(c,w,v,O){var N=c.state.vim,B=c.getSelection(),j=N.visualMode?tt(N.sel.anchor,N.sel.head,v[0].head,v[0].anchor):O;return Fe.registerController.pushText(w.registerName,"yank",B,w.linewise,N.visualBlock),j}},hn={jumpListWalk:function(c,w,v){if(!v.visualMode){var O=w.repeat,N=w.forward,B=Fe.jumpList,j=B.move(c,N?O:-O),Y=j?j.find():void 0;Y=Y||c.getCursor(),c.setCursor(Y),c.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(c,w,v){if(!v.visualMode){var O=w.repeat||1,N=c.defaultTextHeight(),B=c.getScrollInfo().top,j=N*O,Y=w.forward?B+j:B-j,X=Ue(c.getCursor()),re=c.charCoords(X,"local");if(w.forward)Y>re.top?(X.line+=(Y-re.top)/N,X.line=Math.ceil(X.line),c.setCursor(X),re=c.charCoords(X,"local"),c.scrollTo(null,re.top)):c.scrollTo(null,Y);else{var se=Y+c.getScrollInfo().clientHeight;se<re.bottom?(X.line-=(re.bottom-se)/N,X.line=Math.floor(X.line),c.setCursor(X),re=c.charCoords(X,"local"),c.scrollTo(null,re.bottom-c.getScrollInfo().clientHeight)):c.scrollTo(null,Y)}}},scrollToCursor:function(c,w){var v=c.getCursor().line,O=c.charCoords(new Re(v,0),"local"),N=c.getScrollInfo().clientHeight,B=O.top;switch(w.position){case"center":B=O.bottom-N/2;break;case"bottom":var j=new Re(v,c.getLine(v).length-1),Y=c.charCoords(j,"local"),X=Y.bottom-B;B=B-N+X}c.scrollTo(null,B)},replayMacro:function(c,w,v){var O=w.selectedCharacter,N=w.repeat,B=Fe.macroModeState;for(O=="@"?O=B.latestRegister:B.latestRegister=O;N--;)ao(c,v,B,O)},enterMacroRecordMode:function(c,w){var v=Fe.macroModeState,O=w.selectedCharacter;Fe.registerController.isValidRegister(O)&&v.enterMacroRecordMode(c,O)},toggleOverwrite:function(c){c.state.overwrite?(c.toggleOverwrite(!1),c.setOption("keyMap","vim-insert"),De.signal(c,"vim-mode-change",{mode:"insert"})):(c.toggleOverwrite(!0),c.setOption("keyMap","vim-replace"),De.signal(c,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(c,w,v){if(!c.getOption("readOnly")){v.insertMode=!0,v.insertModeRepeat=w&&w.repeat||1;var O=w?w.insertAt:null,N=v.sel,B=w.head||c.getCursor("head"),j=c.listSelections().length;if(O=="eol")B=new Re(B.line,kt(c,B.line));else if(O=="bol")B=new Re(B.line,0);else if(O=="charAfter"){var Y=S(c,B,me(B,0,1));B=Y.end}else if(O=="firstNonBlank"){var Y=S(c,B,en.moveToFirstNonWhiteSpaceCharacter(c,B));B=Y.end}else if(O=="startOfSelectedArea"){if(!v.visualMode)return;v.visualBlock?(B=new Re(Math.min(N.head.line,N.anchor.line),Math.min(N.head.ch,N.anchor.ch)),j=Math.abs(N.head.line-N.anchor.line)+1):N.head.line<N.anchor.line?B=N.head:B=new Re(N.anchor.line,0)}else if(O=="endOfSelectedArea"){if(!v.visualMode)return;v.visualBlock?(B=new Re(Math.min(N.head.line,N.anchor.line),Math.max(N.head.ch,N.anchor.ch)+1),j=Math.abs(N.head.line-N.anchor.line)+1):N.head.line>=N.anchor.line?B=me(N.head,0,1):B=new Re(N.anchor.line,0)}else if(O=="inplace"){if(v.visualMode)return}else O=="lastEdit"&&(B=Cr(c)||B);c.setOption("disableInput",!1),w&&w.replace?(c.toggleOverwrite(!0),c.setOption("keyMap","vim-replace"),De.signal(c,"vim-mode-change",{mode:"replace"})):(c.toggleOverwrite(!1),c.setOption("keyMap","vim-insert"),De.signal(c,"vim-mode-change",{mode:"insert"})),Fe.macroModeState.isPlaying||(c.on("change",Hr),v.insertEnd&&v.insertEnd.clear(),v.insertEnd=c.setBookmark(B,{insertLeft:!0}),De.on(c.getInputField(),"keydown",Sr)),v.visualMode&&on(c),Un(c,B,j)}},toggleVisualMode:function(c,w,v){var O=w.repeat,N=c.getCursor(),B;if(v.visualMode)v.visualLine^w.linewise||v.visualBlock^w.blockwise?(v.visualLine=!!w.linewise,v.visualBlock=!!w.blockwise,De.signal(c,"vim-mode-change",{mode:"visual",subMode:v.visualLine?"linewise":v.visualBlock?"blockwise":""}),Cn(c)):on(c);else{v.visualMode=!0,v.visualLine=!!w.linewise,v.visualBlock=!!w.blockwise,B=ue(c,new Re(N.line,N.ch+O-1));var j=S(c,N,B);v.sel={anchor:j.start,head:j.end},De.signal(c,"vim-mode-change",{mode:"visual",subMode:v.visualLine?"linewise":v.visualBlock?"blockwise":""}),Cn(c),mi(c,v,"<",tt(N,B)),mi(c,v,">",Rt(N,B))}},reselectLastSelection:function(c,w,v){var O=v.lastSelection;if(v.visualMode&&Lt(c,v),O){var N=O.anchorMark.find(),B=O.headMark.find();if(!N||!B)return;v.sel={anchor:N,head:B},v.visualMode=!0,v.visualLine=O.visualLine,v.visualBlock=O.visualBlock,Cn(c),mi(c,v,"<",tt(N,B)),mi(c,v,">",Rt(N,B)),De.signal(c,"vim-mode-change",{mode:"visual",subMode:v.visualLine?"linewise":v.visualBlock?"blockwise":""})}},joinLines:function(c,w,v){var O,N;if(v.visualMode){if(O=c.getCursor("anchor"),N=c.getCursor("head"),at(N,O)){var B=N;N=O,O=B}N.ch=kt(c,N.line)-1}else{var j=Math.max(w.repeat,2);O=c.getCursor(),N=ue(c,new Re(O.line+j-1,1/0))}for(var Y=0,X=O.line;X<N.line;X++){Y=kt(c,O.line);var re="",se=0;if(!w.keepSpaces){var ve=c.getLine(O.line+1);se=ve.search(/\S/),se==-1?se=ve.length:re=" "}c.replaceRange(re,new Re(O.line,Y),new Re(O.line+1,se))}var xe=ue(c,new Re(O.line,Y));v.visualMode&&on(c,!1),c.setCursor(xe)},newLineAndEnterInsertMode:function(c,w,v){v.insertMode=!0;var O=Ue(c.getCursor());if(O.line===c.firstLine()&&!w.after)c.replaceRange(`
|
|
1433
|
+
`,new Re(c.firstLine(),0)),c.setCursor(c.firstLine(),0);else{O.line=w.after?O.line:O.line-1,O.ch=kt(c,O.line),c.setCursor(O);var N=De.commands.newlineAndIndentContinueComment||De.commands.newlineAndIndent;N(c)}this.enterInsertMode(c,{repeat:w.repeat},v)},paste:function(c,w,v){var O=this,N=Fe.registerController.getRegister(w.registerName),B=function(){var j=N.toString();O.continuePaste(c,w,v,j,N)};w.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(j){O.continuePaste(c,w,v,j,N)},function(){B()}):B()},continuePaste:function(c,w,v,de,N){var B=Ue(c.getCursor());if(de){if(w.matchIndent){var j=c.getOption("tabSize"),Y=function(tn){var K=tn.split(" ").length-1,Z=tn.split(" ").length-1;return K*j+Z*1},X=c.getLine(c.getCursor().line),re=Y(X.match(/^\s*/)[0]),se=de.replace(/\n$/,""),ve=de!==se,xe=Y(de.match(/^\s*/)[0]),de=se.replace(/^\s*/gm,function(tn){var K=re+(Y(tn)-xe);if(K<0)return"";if(c.getOption("indentWithTabs")){var Z=Math.floor(K/j);return Array(Z+1).join(" ")}return Array(K+1).join(" ")});de+=ve?`
|
|
1434
|
+
`:""}if(w.repeat>1)var de=Array(w.repeat+1).join(de);var we=N.linewise,Ee=N.blockwise;if(Ee){de=de.split(`
|
|
1435
|
+
`),we&&de.pop();for(var $e=0;$e<de.length;$e++)de[$e]=de[$e]==""?" ":de[$e];B.ch+=w.after?1:0,B.ch=Math.min(kt(c,B.line),B.ch)}else we?v.visualMode?de=v.visualLine?de.slice(0,-1):`
|
|
1436
|
+
`+de.slice(0,de.length-1)+`
|
|
1437
|
+
`:w.after?(de=`
|
|
1438
|
+
`+de.slice(0,de.length-1),B.ch=kt(c,B.line)):B.ch=0:B.ch+=w.after?1:0;var We;if(v.visualMode){v.lastPastedText=de;var Xe,Ye=Ve(c,v),Ke=Ye[0],Kt=Ye[1],ft=c.getSelection(),Et=c.listSelections(),St=new Array(Et.length).join("1").split("1");v.lastSelection&&(Xe=v.lastSelection.headMark.find()),Fe.registerController.unnamedRegister.setText(ft),Ee?(c.replaceSelections(St),Kt=new Re(Ke.line+de.length-1,Ke.ch),c.setCursor(Ke),Jt(c,Kt),c.replaceSelections(de),We=Ke):v.visualBlock?(c.replaceSelections(St),c.setCursor(Ke),c.replaceRange(de,Ke,Ke),We=Ke):(c.replaceRange(de,Ke,Kt),We=c.posFromIndex(c.indexFromPos(Ke)+de.length-1)),Xe&&(v.lastSelection.headMark=c.setBookmark(Xe)),we&&(We.ch=0)}else if(Ee){c.setCursor(B);for(var $e=0;$e<de.length;$e++){var ot=B.line+$e;ot>c.lastLine()&&c.replaceRange(`
|
|
1439
|
+
`,new Re(ot,0));var dn=kt(c,ot);dn<B.ch&&si(c,ot,B.ch)}c.setCursor(B),Jt(c,new Re(B.line+de.length-1,B.ch)),c.replaceSelections(de),We=B}else if(c.replaceRange(de,B),we){var ot=w.after?B.line+1:B.line;We=new Re(ot,Ut(c.getLine(ot)))}else We=Ue(B),/\n/.test(de)||(We.ch+=de.length-(w.after?1:0));v.visualMode&&on(c,!1),c.setCursor(We)}},undo:function(c,w){c.operation(function(){qe(c,De.commands.undo,w.repeat)(),c.setCursor(ue(c,c.getCursor("start")))})},redo:function(c,w){qe(c,De.commands.redo,w.repeat)()},setRegister:function(c,w,v){v.inputState.registerName=w.selectedCharacter},insertRegister:function(c,w,v){var O=w.selectedCharacter,N=Fe.registerController.getRegister(O),B=N&&N.toString();B&&c.replaceSelection(B)},oneNormalCommand:function(c,w,v){Jn(c,!0),v.insertModeReturn=!0,De.on(c,"vim-command-done",function O(){v.visualMode||(v.insertModeReturn&&(v.insertModeReturn=!1,v.insertMode||hn.enterInsertMode(c,{},v)),De.off(c,"vim-command-done",O))})},setMark:function(c,w,v){var O=w.selectedCharacter;mi(c,v,O,c.getCursor())},replace:function(c,w,v){var O=w.selectedCharacter,N=c.getCursor(),B,j,Y=c.listSelections();if(v.visualMode)N=c.getCursor("start"),j=c.getCursor("end");else{var X=c.getLine(N.line);B=N.ch+w.repeat,B>X.length&&(B=X.length),j=new Re(N.line,B)}var re=S(c,N,j);if(N=re.start,j=re.end,O==`
|
|
1440
|
+
`)v.visualMode||c.replaceRange("",N,j),(De.commands.newlineAndIndentContinueComment||De.commands.newlineAndIndent)(c);else{var se=c.getRange(N,j);if(se=se.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,O),se=se.replace(/[^\n]/g,O),v.visualBlock){var ve=new Array(c.getOption("tabSize")+1).join(" ");se=c.getSelection(),se=se.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,O),se=se.replace(/\t/g,ve).replace(/[^\n]/g,O).split(`
|
|
1441
|
+
`),c.replaceSelections(se)}else c.replaceRange(se,N,j);v.visualMode?(N=at(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,c.setCursor(N),on(c,!1)):c.setCursor(me(j,0,-1))}},incrementNumberToken:function(c,w){for(var v=c.getCursor(),O=c.getLine(v.line),N=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,B,j,Y,X;(B=N.exec(O))!==null&&(j=B.index,Y=j+B[0].length,!(v.ch<Y)););if(!(!w.backtrack&&Y<=v.ch)&&B){var re=B[2]||B[4],se=B[3]||B[5],ve=w.increase?1:-1,xe={"0b":2,0:8,"":10,"0x":16}[re.toLowerCase()],de=parseInt(B[1]+se,xe)+ve*w.repeat;X=de.toString(xe);var we=re?new Array(se.length-X.length+1+B[1].length).join("0"):"";X.charAt(0)==="-"?X="-"+re+we+X.substr(1):X=re+we+X;var Ee=new Re(v.line,j),$e=new Re(v.line,Y);c.replaceRange(X,Ee,$e),c.setCursor(new Re(v.line,j+X.length-1))}},repeatLastEdit:function(c,w,v){var O=v.lastEditInputState;if(O){var N=w.repeat;N&&w.repeatIsExplicit?v.lastEditInputState.repeatOverride=N:N=v.lastEditInputState.repeatOverride||N,ho(c,v,N,!1)}},indent:function(c,w){c.indentLine(c.getCursor().line,w.indentRight)},exitInsertMode:Jn},bi={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},xi={bracket:{isComplete:function(c){if(c.nextCh===c.symb){if(c.depth++,c.depth>=1)return!0}else c.nextCh===c.reverseSymb&&c.depth--;return!1}},section:{init:function(c){c.curMoveThrough=!0,c.symb=(c.forward?"]":"[")===c.symb?"{":"}"},isComplete:function(c){return c.index===0&&c.nextCh===c.symb}},comment:{isComplete:function(c){var w=c.lastCh==="*"&&c.nextCh==="/";return c.lastCh=c.nextCh,w}},method:{init:function(c){c.symb=c.symb==="m"?"{":"}",c.reverseSymb=c.symb==="{"?"}":"{"},isComplete:function(c){return c.nextCh===c.symb}},preprocess:{init:function(c){c.index=0},isComplete:function(c){if(c.nextCh==="#"){var w=c.lineText.match(/^#(\w+)/)[1];if(w==="endif"){if(c.forward&&c.depth===0)return!0;c.depth++}else if(w==="if"){if(!c.forward&&c.depth===0)return!0;c.depth--}if(w==="else"&&c.depth===0)return!0}return!1}}};L("pcre",!0,"boolean"),vi.prototype={getQuery:function(){return Fe.query},setQuery:function(c){Fe.query=c},getOverlay:function(){return this.searchOverlay},setOverlay:function(c){this.searchOverlay=c},isReversed:function(){return Fe.isReversed},setReversed:function(c){Fe.isReversed=c},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(c){this.annotate=c}};var Ii={"\\n":`
|
|
1442
|
+
`,"\\r":"\r","\\t":" "},vo={"\\/":"/","\\\\":"\\","\\n":`
|
|
1443
|
+
`,"\\r":"\r","\\t":" ","\\&":"&"},Wt=0,Ho=function(){this.buildCommandMap_()};Ho.prototype={processCommand:function(c,w,v){var O=this;c.operation(function(){c.curOp.isVimOp=!0,O._processCommand(c,w,v)})},_processCommand:function(c,w,v){var O=c.state.vim,N=Fe.registerController.getRegister(":"),B=N.toString(),j=new De.StringStream(w);N.setText(w);var Y=v||{};Y.input=w;try{this.parseInput_(c,j,Y)}catch(se){throw Ct(c,se.toString()),se}O.visualMode&&on(c);var X,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(X=this.matchCommand_(Y.commandName),X){if(re=X.name,X.excludeFromCommandHistory&&N.setText(B),this.parseCommandArgs_(j,Y,X),X.type=="exToKey"){A(c,X.toKeys,X);return}if(X.type=="exToEx"){this.processCommand(c,X.toInput);return}}if(!re){Ct(c,'Not an editor command ":'+w+'"');return}try{Ln[re](c,Y),(!X||!X.possiblyAsync)&&Y.callback&&Y.callback()}catch(se){throw Ct(c,se.toString()),se}},parseInput_:function(c,w,v){if(w.eatWhile(":"),w.eat("%")?(v.line=c.firstLine(),v.lineEnd=c.lastLine()):(v.line=this.parseLineSpec_(c,w),v.line!==void 0&&w.eat(",")&&(v.lineEnd=this.parseLineSpec_(c,w))),v.line==null)if(c.state.vim.visualMode){var O=yi(c,c.state.vim,"<");v.selectionLine=O&&O.line,O=yi(c,c.state.vim,">"),v.selectionLineEnd=O&&O.line}else v.selectionLine=c.getCursor().line;else v.selectionLine=v.line,v.selectionLineEnd=v.lineEnd;var N=w.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return N?v.commandName=N[1]:v.commandName=w.match(/.*/)[0],v},parseLineSpec_:function(c,w){var v=w.match(/^(\d+)/);if(v)return parseInt(v[1],10)-1;switch(w.next()){case".":return this.parseLineSpecOffset_(w,c.getCursor().line);case"$":return this.parseLineSpecOffset_(w,c.lastLine());case"'":var O=w.next(),N=yi(c,c.state.vim,O);if(!N)throw new Error("Mark not set");return this.parseLineSpecOffset_(w,N.line);case"-":case"+":return w.backUp(1),this.parseLineSpecOffset_(w,c.getCursor().line);default:return w.backUp(1),void 0}},parseLineSpecOffset_:function(c,w){var v=c.match(/^([+-])?(\d+)/);if(v){var O=parseInt(v[2],10);v[1]=="-"?w-=O:w+=O}return w},parseCommandArgs_:function(c,w,v){if(!c.eol()){w.argString=c.match(/.*/)[0];var O=v.argDelimiter||/\s+/,N=oi(w.argString).split(O);N.length&&N[0]&&(w.args=N)}},matchCommand_:function(c){for(var w=c.length;w>0;w--){var v=c.substring(0,w);if(this.commandMap_[v]){var O=this.commandMap_[v];if(O.name.indexOf(c)===0)return O}}return null},buildCommandMap_:function(){this.commandMap_={};for(var c=0;c<Zi.length;c++){var w=Zi[c],v=w.shortName||w.name;this.commandMap_[v]=w}},map:function(c,w,v,O){if(c!=":"&&c.charAt(0)==":"){if(v)throw Error("Mode not supported for ex mappings");var N=c.substring(1);w!=":"&&w.charAt(0)==":"?this.commandMap_[N]={name:N,type:"exToEx",toInput:w.substring(1),user:!0}:this.commandMap_[N]={name:N,type:"exToKey",toKeys:w,user:!0}}else{var B={keys:c,type:"keyToKey",toKeys:w,noremap:!!O};v&&(B.context=v),sn.unshift(B)}},unmap:function(c,w){if(c!=":"&&c.charAt(0)==":"){if(w)throw Error("Mode not supported for ex mappings");var v=c.substring(1);if(this.commandMap_[v]&&this.commandMap_[v].user)return delete this.commandMap_[v],!0}else for(var O=c,N=0;N<sn.length;N++)if(O==sn[N].keys&&sn[N].context===w)return sn.splice(N,1),!0}};var Ln={colorscheme:function(c,w){if(!w.args||w.args.length<1){Ct(c,c.getOption("theme"));return}c.setOption("theme",w.args[0])},map:function(c,w,v,O){var N=w.args;if(!N||N.length<2){c&&Ct(c,"Invalid mapping: "+w.input);return}Yn.map(N[0],N[1],v,O)},imap:function(c,w){this.map(c,w,"insert")},nmap:function(c,w){this.map(c,w,"normal")},vmap:function(c,w){this.map(c,w,"visual")},omap:function(c,w){this.map(c,w,"operatorPending")},noremap:function(c,w){this.map(c,w,void 0,!0)},inoremap:function(c,w){this.map(c,w,"insert",!0)},nnoremap:function(c,w){this.map(c,w,"normal",!0)},vnoremap:function(c,w){this.map(c,w,"visual",!0)},onoremap:function(c,w){this.map(c,w,"operatorPending",!0)},unmap:function(c,w,v){var O=w.args;(!O||O.length<1||!Yn.unmap(O[0],v))&&c&&Ct(c,"No such mapping: "+w.input)},mapclear:function(c,w){ht.mapclear()},imapclear:function(c,w){ht.mapclear("insert")},nmapclear:function(c,w){ht.mapclear("normal")},vmapclear:function(c,w){ht.mapclear("visual")},omapclear:function(c,w){ht.mapclear("operatorPending")},move:function(c,w){wi.processCommand(c,c.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:w.line+1})},set:function(c,w){var v=w.args,O=w.setCfg||{};if(!v||v.length<1){c&&Ct(c,"Invalid mapping: "+w.input);return}var N=v[0].split("="),B=N[0],j=N[1],Y=!1,X=!1;if(B.charAt(B.length-1)=="?"){if(j)throw Error("Trailing characters: "+w.argString);B=B.substring(0,B.length-1),Y=!0}else B.charAt(B.length-1)=="!"&&(B=B.substring(0,B.length-1),X=!0);j===void 0&&B.substring(0,2)=="no"&&(B=B.substring(2),j=!1);var re=At[B]&&At[B].type=="boolean";if(re&&(X?j=!y(B,c,O):j==null&&(j=!0)),!re&&j===void 0||Y){var se=y(B,c,O);se instanceof Error?Ct(c,se.message):se===!0||se===!1?Ct(c," "+(se?"":"no")+B):Ct(c," "+B+"="+se)}else{var ve=C(B,j,c,O);ve instanceof Error&&Ct(c,ve.message)}},setlocal:function(c,w){w.setCfg={scope:"local"},this.set(c,w)},setglobal:function(c,w){w.setCfg={scope:"global"},this.set(c,w)},registers:function(c,w){var v=w.args,O=Fe.registerController.registers,N=`----------Registers----------
|
|
1444
|
+
|
|
1445
|
+
`;if(v){var B;v=v.join("");for(var Y=0;Y<v.length;Y++)if(B=v.charAt(Y),!!Fe.registerController.isValidRegister(B)){var X=O[B]||new W;N+='"'+B+" "+X.toString()+`
|
|
1446
|
+
`}}else for(var B in O){var j=O[B].toString();j.length&&(N+='"'+B+" "+j+`
|
|
1447
|
+
`)}Ct(c,N)},sort:function(c,w){function v(){if(w.argString){var St=new De.StringStream(w.argString);if(St.eat("!")&&(B=!0),St.eol())return;if(!St.eatSpace())return"Invalid arguments";var ot=St.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!ot&&!St.eol())return"Invalid arguments";if(ot[1]){j=ot[1].indexOf("i")!=-1,Y=ot[1].indexOf("u")!=-1;var dn=ot[1].indexOf("d")!=-1||ot[1].indexOf("n")!=-1&&1,Tn=ot[1].indexOf("x")!=-1&&1,tn=ot[1].indexOf("o")!=-1&&1;if(dn+Tn+tn>1)return"Invalid arguments";X=dn&&"decimal"||Tn&&"hex"||tn&&"octal"}ot[2]&&(re=new RegExp(ot[2].substr(1,ot[2].length-2),j?"i":""))}}function O(St,ot){if(B){var dn;dn=St,St=ot,ot=dn}j&&(St=St.toLowerCase(),ot=ot.toLowerCase());var Tn=X&&$e.exec(St),tn=X&&$e.exec(ot);return Tn?(Tn=parseInt((Tn[1]+Tn[2]).toLowerCase(),We),tn=parseInt((tn[1]+tn[2]).toLowerCase(),We),Tn-tn):St<ot?-1:1}function N(St,ot){if(B){var dn;dn=St,St=ot,ot=dn}return j&&(St[0]=St[0].toLowerCase(),ot[0]=ot[0].toLowerCase()),St[0]<ot[0]?-1:1}var B,j,Y,X,re,se=v();if(se){Ct(c,se+": "+w.argString);return}var ve=w.line||c.firstLine(),xe=w.lineEnd||w.line||c.lastLine();if(ve!=xe){var de=new Re(ve,0),we=new Re(xe,kt(c,xe)),Ee=c.getRange(de,we).split(`
|
|
1448
|
+
`),$e=re||(X=="decimal"?/(-?)([\d]+)/:X=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:X=="octal"?/([0-7]+)/:null),We=X=="decimal"?10:X=="hex"?16:X=="octal"?8:null,Xe=[],Ye=[];if(X||re)for(var Ke=0;Ke<Ee.length;Ke++){var Kt=re?Ee[Ke].match(re):null;Kt&&Kt[0]!=""?Xe.push(Kt):!re&&$e.exec(Ee[Ke])?Xe.push(Ee[Ke]):Ye.push(Ee[Ke])}else Ye=Ee;if(Xe.sort(re?N:O),re)for(var Ke=0;Ke<Xe.length;Ke++)Xe[Ke]=Xe[Ke].input;else X||Ye.sort(O);if(Ee=B?Xe.concat(Ye):Ye.concat(Xe),Y){var ft=Ee,Et;Ee=[];for(var Ke=0;Ke<ft.length;Ke++)ft[Ke]!=Et&&Ee.push(ft[Ke]),Et=ft[Ke]}c.replaceRange(Ee.join(`
|
|
1449
|
+
`),de,we)}},vglobal:function(c,w){this.global(c,w)},normal:function(c,w){var v=w.argString;if(v&&v[0]=="!"&&(v=v.slice(1),Ri=!0),v=v.trimStart(),!v){Ct(c,"Argument is required.");return}var O=w.line;if(typeof O=="number")for(var N=isNaN(w.lineEnd)?O:w.lineEnd,B=O;B<=N;B++)c.setCursor(B,0),A(c,w.argString.trimStart()),c.state.vim.insertMode&&Jn(c,!0);else A(c,w.argString.trimStart()),c.state.vim.insertMode&&Jn(c,!0)},global:function(c,w){var v=w.argString;if(!v){Ct(c,"Regular Expression missing from global");return}var O=w.commandName[0]==="v";v[0]==="!"&&w.commandName[0]==="g"&&(O=!0,v=v.slice(1));var N=w.line!==void 0?w.line:c.firstLine(),B=w.lineEnd||w.line||c.lastLine(),j=Fn(v),Y=v,X;if(j.length&&(Y=j[0],X=j.slice(1,j.length).join("/")),Y)try{Yt(c,Y,!0,!0)}catch{Ct(c,"Invalid regex: "+Y);return}for(var re=gn(c).getQuery(),se=[],ve=N;ve<=B;ve++){var xe=c.getLine(ve),de=re.test(xe);de!==O&&se.push(X?c.getLineHandle(ve):xe)}if(!X){Ct(c,se.join(`
|
|
1450
|
+
`));return}var we=0,Ee=function(){if(we<se.length){var $e=se[we++],We=c.getLineNumber($e);if(We==null){Ee();return}var Xe=We+1+X;Yn.processCommand(c,Xe,{callback:Ee})}else c.releaseLineHandles&&c.releaseLineHandles()};Ee()},substitute:function(c,w){if(!c.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var v=w.argString,O=v?Ki(v,v[0]):[],N,B="",j,Y,X,re=!1,se=!1;if(O.length)N=O[0],y("pcre")&&N!==""&&(N=new RegExp(N).source),B=O[1],B!==void 0&&(y("pcre")?B=Oo(B.replace(/([^\\])&/g,"$1$$&")):B=ls(B),Fe.lastSubstituteReplacePart=B),j=O[2]?O[2].split(" "):[];else if(v&&v.length){Ct(c,"Substitutions should be of the form :s/pattern/replace/");return}if(j&&(Y=j[0],X=parseInt(j[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(se=!0),y("pcre")?N=N+"/"+Y:N=N.replace(/\//g,"\\/")+"/"+Y)),N)try{Yt(c,N,!0,!0)}catch{Ct(c,"Invalid regex: "+N);return}if(B=B||Fe.lastSubstituteReplacePart,B===void 0){Ct(c,"No previous substitute regular expression");return}var ve=gn(c),xe=ve.getQuery(),de=w.line!==void 0?w.line:c.getCursor().line,we=w.lineEnd||de;de==c.firstLine()&&we==c.lastLine()&&(we=1/0),X&&(de=we,we=de+X-1);var Ee=ue(c,new Re(de,0)),$e=c.getSearchCursor(xe,Ee);Br(c,re,se,de,we,$e,xe,B,w.callback)},startinsert:function(c,w){A(c,w.argString=="!"?"A":"i",{})},redo:De.commands.redo,undo:De.commands.undo,write:function(c){De.commands.save?De.commands.save(c):c.save&&c.save()},nohlsearch:function(c){Gi(c)},yank:function(c){var w=Ue(c.getCursor()),v=w.line,O=c.getLine(v);Fe.registerController.pushText("0","yank",O,!0,!0)},delete:function(c,w){var v=w.selectionLine,O=isNaN(w.selectionLineEnd)?v:w.selectionLineEnd;Gr.delete(c,{linewise:!0},[{anchor:new Re(v,0),head:new Re(O+1,0)}])},join:function(c,w){var v=w.selectionLine,O=isNaN(w.selectionLineEnd)?v:w.selectionLineEnd;c.setCursor(new Re(v,0)),hn.joinLines(c,{repeat:O-v},c.state.vim)},delmarks:function(c,w){if(!w.argString||!oi(w.argString)){Ct(c,"Argument required");return}for(var v=c.state.vim,O=new De.StringStream(oi(w.argString));!O.eol();){O.eatSpace();var N=O.pos;if(!O.match(/[a-zA-Z]/,!1)){Ct(c,"Invalid argument: "+w.argString.substring(N));return}var B=O.next();if(O.match("-",!0)){if(!O.match(/[a-zA-Z]/,!1)){Ct(c,"Invalid argument: "+w.argString.substring(N));return}var j=B,Y=O.next();if(!(i(j)&&i(Y)||n(j)&&n(Y))){Ct(c,"Invalid argument: "+j+"-");return}var X=j.charCodeAt(0),re=Y.charCodeAt(0);if(X>=re){Ct(c,"Invalid argument: "+w.argString.substring(N));return}for(var se=0;se<=re-X;se++){var ve=String.fromCharCode(X+se);delete v.marks[ve]}}else delete v.marks[B]}}},Yn=new Ho;L("insertModeEscKeysTimeout",200,"number"),De.Vim=ht;var dr={return:"CR",backspace:"BS",delete:"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",insert:"Ins",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},Bn=ht.handleKey.bind(ht);ht.handleKey=function(c,w,v){return c.operation(function(){return Bn(c,w,v)},!0)},I(),b.CodeMirror=De;var li=ht.maybeInitVimState_;b.handler={$id:"ace/keyboard/vim",drawCursor:function(c,w,v,O,N){var B=this.state.vim||{},j=v.characterWidth,Y=v.lineHeight,X=w.top,re=w.left;if(!B.insertMode){var se=O.cursor?$n.comparePoints(O.cursor,O.start)<=0:N.selection.isBackwards()||N.selection.isEmpty();!se&&re>j&&(re-=j)}!B.insertMode&&B.status&&(Y/=2,X+=Y),ei.translate(c,re,X),ei.setStyle(c.style,"width",j+"px"),ei.setStyle(c.style,"height",Y+"px")},$getDirectionForHighlight:function(c){var w=c.state.cm,v=li(w);if(!v.insertMode)return c.session.selection.isBackwards()||c.session.selection.isEmpty()},handleKeyboard:function(c,w,v,O,N){var B=c.editor,j=B.state.cm,Y=li(j);if(O!=-1){if(Y.insertMode||(w==-1?(v.charCodeAt(0)>255&&c.inputKey&&(v=c.inputKey,v&&c.inputHash==4&&(v=v.toUpperCase())),c.inputChar=v):w==4||w==0?c.inputKey==v&&c.inputHash==w&&c.inputChar?(v=c.inputChar,w=-1):(c.inputChar=null,c.inputKey=v,c.inputHash=w):c.inputChar=c.inputKey=null),j.state.overwrite&&Y.insertMode&&v=="backspace"&&w==0)return{command:"gotoleft"};if(v=="c"&&w==1&&!_r.isMac&&B.getCopyText())return B.once("copy",function(){Y.insertMode?B.selection.clearSelection():j.operation(function(){on(j)})}),{command:"null",passEvent:!0};if(v=="esc"&&!Y.insertMode&&!Y.visualMode&&!j.ace.inMultiSelectMode){var X=gn(j),re=X.getOverlay();re&&j.removeOverlay(re)}if(w==-1||w&1||w===0&&v.length>1){var se=Y.insertMode,ve=No(w,v,N||{},Y);Y.status==null&&(Y.status="");var xe=Vr(j,ve,"user");return Y=li(j),xe&&Y.status!=null?Y.status+=ve:Y.status==null&&(Y.status=""),j._signal("changeStatus"),!xe&&(w!=-1||se)?void 0:{command:"null",passEvent:!xe}}}},attach:function(c){function w(){var O=li(v).insertMode;v.ace.renderer.setStyle("normal-mode",!O),c.textInput.setCommandMode(!O),c.renderer.$keepTextAreaAtCursor=O,c.renderer.$blockCursor=!O}c.state||(c.state={});var v=new De(c);c.state.cm=v,c.$vimModeHandler=this,u(v),li(v).status=null,v.on("vim-command-done",function(){v.virtualSelectionMode()||(li(v).status=null,v.ace._signal("changeStatus"),v.ace.session.markUndoGroup())}),v.on("changeStatus",function(){v.ace.renderer.updateCursor(),v.ace._signal("changeStatus")}),v.on("vim-mode-change",function(){v.virtualSelectionMode()||(w(),v._signal("changeStatus"))}),w(),c.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(v)},detach:function(c){var w=c.state.cm;h(w),w.destroy(),c.state.cm=null,c.$vimModeHandler=null,c.renderer.$cursorLayer.drawCursor=null,c.renderer.setStyle("normal-mode",!1),c.textInput.setCommandMode(!1),c.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(c){var w=c.state.cm,v=li(w);if(v.insertMode)return"INSERT";var O="";return v.visualMode&&(O+="VISUAL",v.visualLine&&(O+=" LINE"),v.visualBlock&&(O+=" BLOCK")),v.status&&(O+=(O?" ":"")+v.status),O}},ht.defineOption({name:"wrap",set:function(c,w){w&&w.ace.setOption("wrap",c)},type:"boolean"},!1),ht.defineEx("write","w",function(){console.log(":write is not implemented")}),sn.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),sn.push({keys:"gq",type:"operator",operator:"hardWrap"}),ht.defineOperator("hardWrap",function(c,w,v,O,N){var B=v[0].anchor.line,j=v[0].head.line;return w.linewise&&j--,ur(c.ace,{startRow:B,endRow:j}),Re(j,0)}),L("textwidth",void 0,"number",["tw"],function(c,w){if(w!==void 0){if(c===void 0){var v=w.ace.getOption("printMarginColumn");return v}var O=Math.round(c);O>1&&w.ace.setOption("printMarginColumn",O)}}),hn.aceCommand=function(c,w,v){c.vimCmd=w,c.ace.inVirtualSelectionMode?c.ace.on("beforeEndOperation",qi):qi(null,c.ace)},hn.fold=function(c,w,v){c.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(w.all?2:0)+(w.open?1:0)])},Ar=sn.length,b.handler.defaultKeymap=sn,b.handler.actions=hn,b.Vim=ht}),(function(){ace.require(["ace/keyboard/vim"],function(f){F&&(F.exports=f)})})()})(El)),El.exports}v0();var Rl={},Uh;function y0(){return Uh||(Uh=1,(function(F){(function(){var V={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function f(S){return z(_(S),arguments)}function b(S,u){return f.apply(null,[S].concat(u||[]))}function z(S,u){var h=1,s=S.length,o,i="",r,t,n,a,d,g,L,C;for(r=0;r<s;r++)if(typeof S[r]=="string")i+=S[r];else if(typeof S[r]=="object"){if(n=S[r],n.keys)for(o=u[h],t=0;t<n.keys.length;t++){if(o==null)throw new Error(f('[sprintf] Cannot access property "%s" of undefined value "%s"',n.keys[t],n.keys[t-1]));o=o[n.keys[t]]}else n.param_no?o=u[n.param_no]:o=u[h++];if(V.not_type.test(n.type)&&V.not_primitive.test(n.type)&&o instanceof Function&&(o=o()),V.numeric_arg.test(n.type)&&typeof o!="number"&&isNaN(o))throw new TypeError(f("[sprintf] expecting number but found %T",o));switch(V.number.test(n.type)&&(L=o>=0),n.type){case"b":o=parseInt(o,10).toString(2);break;case"c":o=String.fromCharCode(parseInt(o,10));break;case"d":case"i":o=parseInt(o,10);break;case"j":o=JSON.stringify(o,null,n.width?parseInt(n.width):0);break;case"e":o=n.precision?parseFloat(o).toExponential(n.precision):parseFloat(o).toExponential();break;case"f":o=n.precision?parseFloat(o).toFixed(n.precision):parseFloat(o);break;case"g":o=n.precision?String(Number(o.toPrecision(n.precision))):parseFloat(o);break;case"o":o=(parseInt(o,10)>>>0).toString(8);break;case"s":o=String(o),o=n.precision?o.substring(0,n.precision):o;break;case"t":o=String(!!o),o=n.precision?o.substring(0,n.precision):o;break;case"T":o=Object.prototype.toString.call(o).slice(8,-1).toLowerCase(),o=n.precision?o.substring(0,n.precision):o;break;case"u":o=parseInt(o,10)>>>0;break;case"v":o=o.valueOf(),o=n.precision?o.substring(0,n.precision):o;break;case"x":o=(parseInt(o,10)>>>0).toString(16);break;case"X":o=(parseInt(o,10)>>>0).toString(16).toUpperCase();break}V.json.test(n.type)?i+=o:(V.number.test(n.type)&&(!L||n.sign)?(C=L?"+":"-",o=o.toString().replace(V.sign,"")):C="",d=n.pad_char?n.pad_char==="0"?"0":n.pad_char.charAt(1):" ",g=n.width-(C+o).length,a=n.width&&g>0?d.repeat(g):"",i+=n.align?C+o+a:d==="0"?C+a+o:a+C+o)}return i}var R=Object.create(null);function _(S){if(R[S])return R[S];for(var u=S,h,s=[],o=0;u;){if((h=V.text.exec(u))!==null)s.push(h[0]);else if((h=V.modulo.exec(u))!==null)s.push("%");else if((h=V.placeholder.exec(u))!==null){if(h[2]){o|=1;var i=[],r=h[2],t=[];if((t=V.key.exec(r))!==null)for(i.push(t[1]);(r=r.substring(t[0].length))!=="";)if((t=V.key_access.exec(r))!==null)i.push(t[1]);else if((t=V.index_access.exec(r))!==null)i.push(t[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");h[2]=i}else o|=2;if(o===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");s.push({placeholder:h[0],param_no:h[1],keys:h[2],sign:h[3],pad_char:h[4],align:h[5],width:h[6],precision:h[7],type:h[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(h[0].length)}return R[S]=s}F.sprintf=f,F.vsprintf=b,typeof window<"u"&&(window.sprintf=f,window.vsprintf=b)})()})(Rl)),Rl}y0();const hf={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let F=0;F<this.currentPackets.length;F++)if(this.currentPackets[F].mode==="RAW")return!0;return!1},hasDecom:function(){for(let F=0;F<this.currentPackets.length;F++)if(this.currentPackets[F].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(F){this.$emit("config",F)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(F){this.latestData=F}}};var _s={exports:{}};var w0=_s.exports,Vh;function b0(){return Vh||(Vh=1,(function(F,V){(function(){var f,b="4.18.1",z=200,R="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",_="Expected a function",S="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",h="__lodash_hash_undefined__",s=500,o="__lodash_placeholder__",i=1,r=2,t=4,n=1,a=2,d=1,g=2,L=4,C=8,y=16,p=32,$=64,I=128,M=256,A=512,H=30,D="...",T=800,x=16,m=1,E=2,W=3,U=1/0,q=9007199254740991,Q=17976931348623157e292,te=NaN,ce=4294967295,ne=ce-1,he=ce>>>1,ue=[["ary",I],["bind",d],["bindKey",g],["curry",C],["curryRight",y],["flip",A],["partial",p],["partialRight",$],["rearg",M]],le="[object Arguments]",me="[object Array]",Se="[object AsyncFunction]",_e="[object Boolean]",Ae="[object Date]",qe="[object DOMException]",Ue="[object Error]",nt="[object Function]",at="[object GeneratorFunction]",tt="[object Map]",Rt="[object Number]",pi="[object Null]",kt="[object Object]",oi="[object Promise]",kn="[object Proxy]",si="[object RegExp]",Jt="[object Set]",Un="[object String]",ut="[object Symbol]",Ve="[object Undefined]",Lt="[object WeakMap]",rn="[object WeakSet]",Cn="[object ArrayBuffer]",Dn="[object DataView]",Vn="[object Float32Array]",on="[object Float64Array]",Sn="[object Int8Array]",Nn="[object Int16Array]",Ut="[object Int32Array]",_n="[object Uint8Array]",vr="[object Uint8ClampedArray]",zi="[object Uint16Array]",gi="[object Uint32Array]",Ui=/\b__p \+= '';/g,yr=/\b(__p \+=) '' \+/g,Kn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wr=/&(?:amp|lt|gt|quot|#39);/g,br=/[&<>"']/g,ss=RegExp(wr.source),mi=RegExp(br.source),as=/<%-([\s\S]+?)%>/g,Ro=/<%([\s\S]+?)%>/g,io=/<%=([\s\S]+?)%>/g,Vi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pn=/^\w*$/,ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vi=/[\\^$.*+?()[\]{}|]/g,gn=RegExp(vi.source),Fn=/^\s+/,or=/\s/,Ki=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ro=/\{\n\/\* \[wrapped with (.+)\] \*/,Io=/,? & /,ls=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Oo=/[()=,{}\[\]\/\s]/,ji=/\\(\\)?/g,Li=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ct=/\w*$/,Do=/^[-+]0x[0-9a-f]+$/i,jn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,Yt=/^0o[0-7]+$/i,cn=/^(?:0|[1-9]\d*)$/,xr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,kr=/['\n\r\u2028\u2029\\]/g,Gi="\\ud800-\\udfff",oo="\\u0300-\\u036f",sr="\\ufe20-\\ufe2f",yi="\\u20d0-\\u20ff",Cr=oo+sr+yi,Br="\\u2700-\\u27bf",Jn="a-z\\xdf-\\xf6\\xf8-\\xff",Pr="\\xac\\xb1\\xd7\\xf7",so="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ao="\\u2000-\\u206f",lo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mn="A-Z\\xc0-\\xd6\\xd8-\\xde",co="\\ufe0e\\ufe0f",Hr=Pr+so+ao+lo,ar="['’]",uo="["+Gi+"]",zr="["+Hr+"]",Sr="["+Cr+"]",ho="\\d+",fo="["+Br+"]",Ur="["+Jn+"]",No="[^"+Gi+Hr+ho+Br+Jn+Mn+"]",lr="\\ud83c[\\udffb-\\udfff]",Vr="(?:"+Sr+"|"+lr+")",qi="[^"+Gi+"]",$n="(?:\\ud83c[\\udde6-\\uddff]){2}",po="[\\ud800-\\udbff][\\udc00-\\udfff]",ei="["+Mn+"]",Fo="\\u200d",Wo="(?:"+Ur+"|"+No+")",Kr="(?:"+ei+"|"+No+")",Yi="(?:"+ar+"(?:d|ll|m|re|s|t|ve))?",_r="(?:"+ar+"(?:D|LL|M|RE|S|T|VE))?",jr=Vr+"?",cr="["+co+"]?",Bo="(?:"+Fo+"(?:"+[qi,$n,po].join("|")+")"+cr+jr+")*",ur="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",go=cr+jr+Bo,Re="(?:"+[fo,$n,po].join("|")+")"+go,sn="(?:"+[qi+Sr+"?",Sr,$n,po,uo].join("|")+")",Ar=RegExp(ar,"g"),Zi=RegExp(Sr,"g"),an=RegExp(lr+"(?="+lr+")|"+sn+go,"g"),Po=RegExp([ei+"?"+Ur+"+"+Yi+"(?="+[zr,ei,"$"].join("|")+")",Kr+"+"+_r+"(?="+[zr,ei+Wo,"$"].join("|")+")",ei+"?"+Wo+"+"+Yi,ei+"+"+_r,De,ur,ho,Re].join("|"),"g"),Mr=RegExp("["+Fo+Gi+Cr+co+"]"),Ti=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],mo=-1,Nt={};Nt[Vn]=Nt[on]=Nt[Sn]=Nt[Nn]=Nt[Ut]=Nt[_n]=Nt[vr]=Nt[zi]=Nt[gi]=!0,Nt[le]=Nt[me]=Nt[Cn]=Nt[_e]=Nt[Dn]=Nt[Ae]=Nt[Ue]=Nt[nt]=Nt[tt]=Nt[Rt]=Nt[kt]=Nt[si]=Nt[Jt]=Nt[Un]=Nt[Lt]=!1;var Je={};Je[le]=Je[me]=Je[Cn]=Je[Dn]=Je[_e]=Je[Ae]=Je[Vn]=Je[on]=Je[Sn]=Je[Nn]=Je[Ut]=Je[tt]=Je[Rt]=Je[kt]=Je[si]=Je[Jt]=Je[Un]=Je[ut]=Je[_n]=Je[vr]=Je[zi]=Je[gi]=!0,Je[Ue]=Je[nt]=Je[Lt]=!1;var At={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ei={"&":"&","<":"<",">":">",'"':""","'":"'"},un={"&":"&","<":"<",">":">",""":'"',"'":"'"},Fe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zt=parseFloat,ht=parseInt,Gn=typeof to=="object"&&to&&to.Object===Object&&to,Ri=typeof self=="object"&&self&&self.Object===Object&&self,yt=Gn||Ri||Function("return this")(),qn=V&&!V.nodeType&&V,wn=qn&&!0&&F&&!F.nodeType&&F,Qi=wn&&wn.exports===qn,wi=Qi&&Gn.process,en=(function(){try{var ge=wn&&wn.require&&wn.require("util").types;return ge||wi&&wi.binding&&wi.binding("util")}catch{}})(),Gr=en&&en.isArrayBuffer,hn=en&&en.isDate,bi=en&&en.isMap,xi=en&&en.isRegExp,Ii=en&&en.isSet,vo=en&&en.isTypedArray;function Wt(ge,Ce,ke){switch(ke.length){case 0:return ge.call(Ce);case 1:return ge.call(Ce,ke[0]);case 2:return ge.call(Ce,ke[0],ke[1]);case 3:return ge.call(Ce,ke[0],ke[1],ke[2])}return ge.apply(Ce,ke)}function Ho(ge,Ce,ke,Pe){for(var et=-1,pt=ge==null?0:ge.length;++et<pt;){var Ot=ge[et];Ce(Pe,Ot,ke(Ot),ge)}return Pe}function Ln(ge,Ce){for(var ke=-1,Pe=ge==null?0:ge.length;++ke<Pe&&Ce(ge[ke],ke,ge)!==!1;);return ge}function Yn(ge,Ce){for(var ke=ge==null?0:ge.length;ke--&&Ce(ge[ke],ke,ge)!==!1;);return ge}function dr(ge,Ce){for(var ke=-1,Pe=ge==null?0:ge.length;++ke<Pe;)if(!Ce(ge[ke],ke,ge))return!1;return!0}function Bn(ge,Ce){for(var ke=-1,Pe=ge==null?0:ge.length,et=0,pt=[];++ke<Pe;){var Ot=ge[ke];Ce(Ot,ke,ge)&&(pt[et++]=Ot)}return pt}function li(ge,Ce){var ke=ge==null?0:ge.length;return!!ke&&ve(ge,Ce,0)>-1}function c(ge,Ce,ke){for(var Pe=-1,et=ge==null?0:ge.length;++Pe<et;)if(ke(Ce,ge[Pe]))return!0;return!1}function w(ge,Ce){for(var ke=-1,Pe=ge==null?0:ge.length,et=Array(Pe);++ke<Pe;)et[ke]=Ce(ge[ke],ke,ge);return et}function v(ge,Ce){for(var ke=-1,Pe=Ce.length,et=ge.length;++ke<Pe;)ge[et+ke]=Ce[ke];return ge}function O(ge,Ce,ke,Pe){var et=-1,pt=ge==null?0:ge.length;for(Pe&&pt&&(ke=ge[++et]);++et<pt;)ke=Ce(ke,ge[et],et,ge);return ke}function N(ge,Ce,ke,Pe){var et=ge==null?0:ge.length;for(Pe&&et&&(ke=ge[--et]);et--;)ke=Ce(ke,ge[et],et,ge);return ke}function B(ge,Ce){for(var ke=-1,Pe=ge==null?0:ge.length;++ke<Pe;)if(Ce(ge[ke],ke,ge))return!0;return!1}var j=Ee("length");function Y(ge){return ge.split("")}function X(ge){return ge.match(ls)||[]}function re(ge,Ce,ke){var Pe;return ke(ge,function(et,pt,Ot){if(Ce(et,pt,Ot))return Pe=pt,!1}),Pe}function se(ge,Ce,ke,Pe){for(var et=ge.length,pt=ke+(Pe?1:-1);Pe?pt--:++pt<et;)if(Ce(ge[pt],pt,ge))return pt;return-1}function ve(ge,Ce,ke){return Ce===Ce?dt(ge,Ce,ke):se(ge,de,ke)}function xe(ge,Ce,ke,Pe){for(var et=ke-1,pt=ge.length;++et<pt;)if(Pe(ge[et],Ce))return et;return-1}function de(ge){return ge!==ge}function we(ge,Ce){var ke=ge==null?0:ge.length;return ke?Ye(ge,Ce)/ke:te}function Ee(ge){return function(Ce){return Ce==null?f:Ce[ge]}}function $e(ge){return function(Ce){return ge==null?f:ge[Ce]}}function We(ge,Ce,ke,Pe,et){return et(ge,function(pt,Ot,bt){ke=Pe?(Pe=!1,pt):Ce(ke,pt,Ot,bt)}),ke}function Xe(ge,Ce){var ke=ge.length;for(ge.sort(Ce);ke--;)ge[ke]=ge[ke].value;return ge}function Ye(ge,Ce){for(var ke,Pe=-1,et=ge.length;++Pe<et;){var pt=Ce(ge[Pe]);pt!==f&&(ke=ke===f?pt:ke+pt)}return ke}function Ke(ge,Ce){for(var ke=-1,Pe=Array(ge);++ke<ge;)Pe[ke]=Ce(ke);return Pe}function Kt(ge,Ce){return w(Ce,function(ke){return[ke,ge[ke]]})}function ft(ge){return ge&&ge.slice(0,it(ge)+1).replace(Fn,"")}function Et(ge){return function(Ce){return ge(Ce)}}function St(ge,Ce){return w(Ce,function(ke){return ge[ke]})}function ot(ge,Ce){return ge.has(Ce)}function dn(ge,Ce){for(var ke=-1,Pe=ge.length;++ke<Pe&&ve(Ce,ge[ke],0)>-1;);return ke}function Tn(ge,Ce){for(var ke=ge.length;ke--&&ve(Ce,ge[ke],0)>-1;);return ke}function tn(ge,Ce){for(var ke=ge.length,Pe=0;ke--;)ge[ke]===Ce&&++Pe;return Pe}var K=$e(At),Z=$e(Ei);function ie(ge){return"\\"+Fe[ge]}function oe(ge,Ce){return ge==null?f:ge[Ce]}function pe(ge){return Mr.test(ge)}function be(ge){return Ti.test(ge)}function Me(ge){for(var Ce,ke=[];!(Ce=ge.next()).done;)ke.push(Ce.value);return ke}function Oe(ge){var Ce=-1,ke=Array(ge.size);return ge.forEach(function(Pe,et){ke[++Ce]=[et,Pe]}),ke}function Ne(ge,Ce){return function(ke){return ge(Ce(ke))}}function Be(ge,Ce){for(var ke=-1,Pe=ge.length,et=0,pt=[];++ke<Pe;){var Ot=ge[ke];(Ot===Ce||Ot===o)&&(ge[ke]=o,pt[et++]=ke)}return pt}function He(ge){var Ce=-1,ke=Array(ge.size);return ge.forEach(function(Pe){ke[++Ce]=Pe}),ke}function Ge(ge){var Ce=-1,ke=Array(ge.size);return ge.forEach(function(Pe){ke[++Ce]=[Pe,Pe]}),ke}function dt(ge,Ce,ke){for(var Pe=ke-1,et=ge.length;++Pe<et;)if(ge[Pe]===Ce)return Pe;return-1}function It(ge,Ce,ke){for(var Pe=ke+1;Pe--;)if(ge[Pe]===Ce)return Pe;return Pe}function wt(ge){return pe(ge)?jt(ge):j(ge)}function ct(ge){return pe(ge)?nn(ge):Y(ge)}function it(ge){for(var Ce=ge.length;Ce--&&or.test(ge.charAt(Ce)););return Ce}var Qe=$e(un);function jt(ge){for(var Ce=an.lastIndex=0;an.test(ge);)++Ce;return Ce}function nn(ge){return ge.match(an)||[]}function bn(ge){return ge.match(Po)||[]}var Bt=(function ge(Ce){Ce=Ce==null?yt:Vt.defaults(yt.Object(),Ce,Vt.pick(yt,hr));var ke=Ce.Array,Pe=Ce.Date,et=Ce.Error,pt=Ce.Function,Ot=Ce.Math,bt=Ce.Object,ci=Ce.RegExp,Pn=Ce.String,Qt=Ce.TypeError,Oi=ke.prototype,Hn=pt.prototype,$r=bt.prototype,Rs=Ce["__core-js_shared__"],Is=Hn.toString,Pt=$r.hasOwnProperty,np=0,Vc=(function(){var e=/[^.]+$/.exec(Rs&&Rs.keys&&Rs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Os=$r.toString,ip=Is.call(bt),rp=yt._,op=ci("^"+Is.call(Pt).replace(vi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ds=Qi?Ce.Buffer:f,qr=Ce.Symbol,Ns=Ce.Uint8Array,Kc=Ds?Ds.allocUnsafe:f,Fs=Ne(bt.getPrototypeOf,bt),jc=bt.create,Gc=$r.propertyIsEnumerable,Ws=Oi.splice,qc=qr?qr.isConcatSpreadable:f,cs=qr?qr.iterator:f,yo=qr?qr.toStringTag:f,Bs=(function(){try{var e=Co(bt,"defineProperty");return e({},"",{}),e}catch{}})(),sp=Ce.clearTimeout!==yt.clearTimeout&&Ce.clearTimeout,ap=Pe&&Pe.now!==yt.Date.now&&Pe.now,lp=Ce.setTimeout!==yt.setTimeout&&Ce.setTimeout,Ps=Ot.ceil,Hs=Ot.floor,La=bt.getOwnPropertySymbols,cp=Ds?Ds.isBuffer:f,Yc=Ce.isFinite,up=Oi.join,hp=Ne(bt.keys,bt),En=Ot.max,Zn=Ot.min,dp=Pe.now,fp=Ce.parseInt,Zc=Ot.random,pp=Oi.reverse,Ta=Co(Ce,"DataView"),us=Co(Ce,"Map"),Ea=Co(Ce,"Promise"),zo=Co(Ce,"Set"),hs=Co(Ce,"WeakMap"),ds=Co(bt,"create"),zs=hs&&new hs,Uo={},gp=So(Ta),mp=So(us),vp=So(Ea),yp=So(zo),wp=So(hs),Us=qr?qr.prototype:f,fs=Us?Us.valueOf:f,Qc=Us?Us.toString:f;function J(e){if(fn(e)&&!gt(e)&&!(e instanceof Mt)){if(e instanceof Di)return e;if(Pt.call(e,"__wrapped__"))return Xu(e)}return new Di(e)}var Vo=(function(){function e(){}return function(l){if(!ln(l))return{};if(jc)return jc(l);e.prototype=l;var k=new e;return e.prototype=f,k}})();function Vs(){}function Di(e,l){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=f}J.templateSettings={escape:as,evaluate:Ro,interpolate:io,variable:"",imports:{_:J}},J.prototype=Vs.prototype,J.prototype.constructor=J,Di.prototype=Vo(Vs.prototype),Di.prototype.constructor=Di;function Mt(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ce,this.__views__=[]}function bp(){var e=new Mt(this.__wrapped__);return e.__actions__=ui(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ui(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ui(this.__views__),e}function xp(){if(this.__filtered__){var e=new Mt(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function kp(){var e=this.__wrapped__.value(),l=this.__dir__,k=gt(e),P=l<0,G=k?e.length:0,ee=Og(0,G,this.__views__),ae=ee.start,fe=ee.end,ye=fe-ae,Le=P?fe:ae-1,Te=this.__iteratees__,Ie=Te.length,ze=0,Ze=Zn(ye,this.__takeCount__);if(!k||!P&&G==ye&&Ze==ye)return xu(e,this.__actions__);var lt=[];e:for(;ye--&&ze<Ze;){Le+=l;for(var vt=-1,rt=e[Le];++vt<Ie;){var _t=Te[vt],Tt=_t.iteratee,Si=_t.type,ii=Tt(rt);if(Si==E)rt=ii;else if(!ii){if(Si==m)continue e;break e}}lt[ze++]=rt}return lt}Mt.prototype=Vo(Vs.prototype),Mt.prototype.constructor=Mt;function wo(e){var l=-1,k=e==null?0:e.length;for(this.clear();++l<k;){var P=e[l];this.set(P[0],P[1])}}function Cp(){this.__data__=ds?ds(null):{},this.size=0}function Sp(e){var l=this.has(e)&&delete this.__data__[e];return this.size-=l?1:0,l}function _p(e){var l=this.__data__;if(ds){var k=l[e];return k===h?f:k}return Pt.call(l,e)?l[e]:f}function Ap(e){var l=this.__data__;return ds?l[e]!==f:Pt.call(l,e)}function Mp(e,l){var k=this.__data__;return this.size+=this.has(e)?0:1,k[e]=ds&&l===f?h:l,this}wo.prototype.clear=Cp,wo.prototype.delete=Sp,wo.prototype.get=_p,wo.prototype.has=Ap,wo.prototype.set=Mp;function Lr(e){var l=-1,k=e==null?0:e.length;for(this.clear();++l<k;){var P=e[l];this.set(P[0],P[1])}}function $p(){this.__data__=[],this.size=0}function Lp(e){var l=this.__data__,k=Ks(l,e);if(k<0)return!1;var P=l.length-1;return k==P?l.pop():Ws.call(l,k,1),--this.size,!0}function Tp(e){var l=this.__data__,k=Ks(l,e);return k<0?f:l[k][1]}function Ep(e){return Ks(this.__data__,e)>-1}function Rp(e,l){var k=this.__data__,P=Ks(k,e);return P<0?(++this.size,k.push([e,l])):k[P][1]=l,this}Lr.prototype.clear=$p,Lr.prototype.delete=Lp,Lr.prototype.get=Tp,Lr.prototype.has=Ep,Lr.prototype.set=Rp;function Tr(e){var l=-1,k=e==null?0:e.length;for(this.clear();++l<k;){var P=e[l];this.set(P[0],P[1])}}function Ip(){this.size=0,this.__data__={hash:new wo,map:new(us||Lr),string:new wo}}function Op(e){var l=ia(this,e).delete(e);return this.size-=l?1:0,l}function Dp(e){return ia(this,e).get(e)}function Np(e){return ia(this,e).has(e)}function Fp(e,l){var k=ia(this,e),P=k.size;return k.set(e,l),this.size+=k.size==P?0:1,this}Tr.prototype.clear=Ip,Tr.prototype.delete=Op,Tr.prototype.get=Dp,Tr.prototype.has=Np,Tr.prototype.set=Fp;function bo(e){var l=-1,k=e==null?0:e.length;for(this.__data__=new Tr;++l<k;)this.add(e[l])}function Wp(e){return this.__data__.set(e,h),this}function Bp(e){return this.__data__.has(e)}bo.prototype.add=bo.prototype.push=Wp,bo.prototype.has=Bp;function Xi(e){var l=this.__data__=new Lr(e);this.size=l.size}function Pp(){this.__data__=new Lr,this.size=0}function Hp(e){var l=this.__data__,k=l.delete(e);return this.size=l.size,k}function zp(e){return this.__data__.get(e)}function Up(e){return this.__data__.has(e)}function Vp(e,l){var k=this.__data__;if(k instanceof Lr){var P=k.__data__;if(!us||P.length<z-1)return P.push([e,l]),this.size=++k.size,this;k=this.__data__=new Tr(P)}return k.set(e,l),this.size=k.size,this}Xi.prototype.clear=Pp,Xi.prototype.delete=Hp,Xi.prototype.get=zp,Xi.prototype.has=Up,Xi.prototype.set=Vp;function Xc(e,l){var k=gt(e),P=!k&&_o(e),G=!k&&!P&&Jr(e),ee=!k&&!P&&!G&&qo(e),ae=k||P||G||ee,fe=ae?Ke(e.length,Pn):[],ye=fe.length;for(var Le in e)(l||Pt.call(e,Le))&&!(ae&&(Le=="length"||G&&(Le=="offset"||Le=="parent")||ee&&(Le=="buffer"||Le=="byteLength"||Le=="byteOffset")||Ir(Le,ye)))&&fe.push(Le);return fe}function Jc(e){var l=e.length;return l?e[za(0,l-1)]:f}function Kp(e,l){return ra(ui(e),xo(l,0,e.length))}function jp(e){return ra(ui(e))}function Ra(e,l,k){(k!==f&&!er(e[l],k)||k===f&&!(l in e))&&fr(e,l,k)}function ps(e,l,k){var P=e[l];(!(Pt.call(e,l)&&er(P,k))||k===f&&!(l in e))&&fr(e,l,k)}function Ks(e,l){for(var k=e.length;k--;)if(er(e[k][0],l))return k;return-1}function Gp(e,l,k,P){return Yr(e,function(G,ee,ae){l(P,G,k(G),ae)}),P}function eu(e,l){return e&&gr(l,Wn(l),e)}function qp(e,l){return e&&gr(l,di(l),e)}function fr(e,l,k){l=="__proto__"&&Bs?Bs(e,l,{configurable:!0,enumerable:!0,value:k,writable:!0}):e[l]=k}function Ia(e,l){for(var k=-1,P=l.length,G=ke(P),ee=e==null;++k<P;)G[k]=ee?f:pl(e,l[k]);return G}function xo(e,l,k){return e===e&&(k!==f&&(e=e<=k?e:k),l!==f&&(e=e>=l?e:l)),e}function Ni(e,l,k,P,G,ee){var ae,fe=l&i,ye=l&r,Le=l&t;if(k&&(ae=G?k(e,P,G,ee):k(e)),ae!==f)return ae;if(!ln(e))return e;var Te=gt(e);if(Te){if(ae=Ng(e),!fe)return ui(e,ae)}else{var Ie=Qn(e),ze=Ie==nt||Ie==at;if(Jr(e))return Su(e,fe);if(Ie==kt||Ie==le||ze&&!G){if(ae=ye||ze?{}:Uu(e),!fe)return ye?_g(e,qp(ae,e)):Sg(e,eu(ae,e))}else{if(!Je[Ie])return G?e:{};ae=Fg(e,Ie,fe)}}ee||(ee=new Xi);var Ze=ee.get(e);if(Ze)return Ze;ee.set(e,ae),yh(e)?e.forEach(function(rt){ae.add(Ni(rt,l,k,rt,e,ee))}):mh(e)&&e.forEach(function(rt,_t){ae.set(_t,Ni(rt,l,k,_t,e,ee))});var lt=Le?ye?Ja:Xa:ye?di:Wn,vt=Te?f:lt(e);return Ln(vt||e,function(rt,_t){vt&&(_t=rt,rt=e[_t]),ps(ae,_t,Ni(rt,l,k,_t,e,ee))}),ae}function Yp(e){var l=Wn(e);return function(k){return tu(k,e,l)}}function tu(e,l,k){var P=k.length;if(e==null)return!P;for(e=bt(e);P--;){var G=k[P],ee=l[G],ae=e[G];if(ae===f&&!(G in e)||!ee(ae))return!1}return!0}function nu(e,l,k){if(typeof e!="function")throw new Qt(_);return xs(function(){e.apply(f,k)},l)}function gs(e,l,k,P){var G=-1,ee=li,ae=!0,fe=e.length,ye=[],Le=l.length;if(!fe)return ye;k&&(l=w(l,Et(k))),P?(ee=c,ae=!1):l.length>=z&&(ee=ot,ae=!1,l=new bo(l));e:for(;++G<fe;){var Te=e[G],Ie=k==null?Te:k(Te);if(Te=P||Te!==0?Te:0,ae&&Ie===Ie){for(var ze=Le;ze--;)if(l[ze]===Ie)continue e;ye.push(Te)}else ee(l,Ie,P)||ye.push(Te)}return ye}var Yr=Lu(pr),iu=Lu(Da,!0);function Zp(e,l){var k=!0;return Yr(e,function(P,G,ee){return k=!!l(P,G,ee),k}),k}function js(e,l,k){for(var P=-1,G=e.length;++P<G;){var ee=e[P],ae=l(ee);if(ae!=null&&(fe===f?ae===ae&&!Ci(ae):k(ae,fe)))var fe=ae,ye=ee}return ye}function Qp(e,l,k,P){var G=e.length;for(k=mt(k),k<0&&(k=-k>G?0:G+k),P=P===f||P>G?G:mt(P),P<0&&(P+=G),P=k>P?0:bh(P);k<P;)e[k++]=l;return e}function ru(e,l){var k=[];return Yr(e,function(P,G,ee){l(P,G,ee)&&k.push(P)}),k}function zn(e,l,k,P,G){var ee=-1,ae=e.length;for(k||(k=Bg),G||(G=[]);++ee<ae;){var fe=e[ee];l>0&&k(fe)?l>1?zn(fe,l-1,k,P,G):v(G,fe):P||(G[G.length]=fe)}return G}var Oa=Tu(),ou=Tu(!0);function pr(e,l){return e&&Oa(e,l,Wn)}function Da(e,l){return e&&ou(e,l,Wn)}function Gs(e,l){return Bn(l,function(k){return Or(e[k])})}function ko(e,l){l=Qr(l,e);for(var k=0,P=l.length;e!=null&&k<P;)e=e[Ji(l[k++])];return k&&k==P?e:f}function su(e,l,k){var P=l(e);return gt(e)?P:v(P,k(e))}function ti(e){return e==null?e===f?Ve:pi:yo&&yo in bt(e)?Ig(e):jg(e)}function Na(e,l){return e>l}function Xp(e,l){return e!=null&&Pt.call(e,l)}function Jp(e,l){return e!=null&&l in bt(e)}function eg(e,l,k){return e>=Zn(l,k)&&e<En(l,k)}function Fa(e,l,k){for(var P=k?c:li,G=e[0].length,ee=e.length,ae=ee,fe=ke(ee),ye=1/0,Le=[];ae--;){var Te=e[ae];ae&&l&&(Te=w(Te,Et(l))),ye=Zn(Te.length,ye),fe[ae]=!k&&(l||G>=120&&Te.length>=120)?new bo(ae&&Te):f}Te=e[0];var Ie=-1,ze=fe[0];e:for(;++Ie<G&&Le.length<ye;){var Ze=Te[Ie],lt=l?l(Ze):Ze;if(Ze=k||Ze!==0?Ze:0,!(ze?ot(ze,lt):P(Le,lt,k))){for(ae=ee;--ae;){var vt=fe[ae];if(!(vt?ot(vt,lt):P(e[ae],lt,k)))continue e}ze&&ze.push(lt),Le.push(Ze)}}return Le}function tg(e,l,k,P){return pr(e,function(G,ee,ae){l(P,k(G),ee,ae)}),P}function ms(e,l,k){l=Qr(l,e),e=Gu(e,l);var P=e==null?e:e[Ji(Wi(l))];return P==null?f:Wt(P,e,k)}function au(e){return fn(e)&&ti(e)==le}function ng(e){return fn(e)&&ti(e)==Cn}function ig(e){return fn(e)&&ti(e)==Ae}function vs(e,l,k,P,G){return e===l?!0:e==null||l==null||!fn(e)&&!fn(l)?e!==e&&l!==l:rg(e,l,k,P,vs,G)}function rg(e,l,k,P,G,ee){var ae=gt(e),fe=gt(l),ye=ae?me:Qn(e),Le=fe?me:Qn(l);ye=ye==le?kt:ye,Le=Le==le?kt:Le;var Te=ye==kt,Ie=Le==kt,ze=ye==Le;if(ze&&Jr(e)){if(!Jr(l))return!1;ae=!0,Te=!1}if(ze&&!Te)return ee||(ee=new Xi),ae||qo(e)?Pu(e,l,k,P,G,ee):Eg(e,l,ye,k,P,G,ee);if(!(k&n)){var Ze=Te&&Pt.call(e,"__wrapped__"),lt=Ie&&Pt.call(l,"__wrapped__");if(Ze||lt){var vt=Ze?e.value():e,rt=lt?l.value():l;return ee||(ee=new Xi),G(vt,rt,k,P,ee)}}return ze?(ee||(ee=new Xi),Rg(e,l,k,P,G,ee)):!1}function og(e){return fn(e)&&Qn(e)==tt}function Wa(e,l,k,P){var G=k.length,ee=G,ae=!P;if(e==null)return!ee;for(e=bt(e);G--;){var fe=k[G];if(ae&&fe[2]?fe[1]!==e[fe[0]]:!(fe[0]in e))return!1}for(;++G<ee;){fe=k[G];var ye=fe[0],Le=e[ye],Te=fe[1];if(ae&&fe[2]){if(Le===f&&!(ye in e))return!1}else{var Ie=new Xi;if(P)var ze=P(Le,Te,ye,e,l,Ie);if(!(ze===f?vs(Te,Le,n|a,P,Ie):ze))return!1}}return!0}function lu(e){if(!ln(e)||Hg(e))return!1;var l=Or(e)?op:mn;return l.test(So(e))}function sg(e){return fn(e)&&ti(e)==si}function ag(e){return fn(e)&&Qn(e)==Jt}function lg(e){return fn(e)&&ua(e.length)&&!!Nt[ti(e)]}function cu(e){return typeof e=="function"?e:e==null?fi:typeof e=="object"?gt(e)?du(e[0],e[1]):hu(e):Rh(e)}function Ba(e){if(!bs(e))return hp(e);var l=[];for(var k in bt(e))Pt.call(e,k)&&k!="constructor"&&l.push(k);return l}function cg(e){if(!ln(e))return Kg(e);var l=bs(e),k=[];for(var P in e)P=="constructor"&&(l||!Pt.call(e,P))||k.push(P);return k}function Pa(e,l){return e<l}function uu(e,l){var k=-1,P=hi(e)?ke(e.length):[];return Yr(e,function(G,ee,ae){P[++k]=l(G,ee,ae)}),P}function hu(e){var l=tl(e);return l.length==1&&l[0][2]?Ku(l[0][0],l[0][1]):function(k){return k===e||Wa(k,e,l)}}function du(e,l){return il(e)&&Vu(l)?Ku(Ji(e),l):function(k){var P=pl(k,e);return P===f&&P===l?gl(k,e):vs(l,P,n|a)}}function qs(e,l,k,P,G){e!==l&&Oa(l,function(ee,ae){if(G||(G=new Xi),ln(ee))ug(e,l,ae,k,qs,P,G);else{var fe=P?P(ol(e,ae),ee,ae+"",e,l,G):f;fe===f&&(fe=ee),Ra(e,ae,fe)}},di)}function ug(e,l,k,P,G,ee,ae){var fe=ol(e,k),ye=ol(l,k),Le=ae.get(ye);if(Le){Ra(e,k,Le);return}var Te=ee?ee(fe,ye,k+"",e,l,ae):f,Ie=Te===f;if(Ie){var ze=gt(ye),Ze=!ze&&Jr(ye),lt=!ze&&!Ze&&qo(ye);Te=ye,ze||Ze||lt?gt(fe)?Te=fe:vn(fe)?Te=ui(fe):Ze?(Ie=!1,Te=Su(ye,!0)):lt?(Ie=!1,Te=_u(ye,!0)):Te=[]:ks(ye)||_o(ye)?(Te=fe,_o(fe)?Te=xh(fe):(!ln(fe)||Or(fe))&&(Te=Uu(ye))):Ie=!1}Ie&&(ae.set(ye,Te),G(Te,ye,P,ee,ae),ae.delete(ye)),Ra(e,k,Te)}function fu(e,l){var k=e.length;if(k)return l+=l<0?k:0,Ir(l,k)?e[l]:f}function pu(e,l,k){l.length?l=w(l,function(ee){return gt(ee)?function(ae){return ko(ae,ee.length===1?ee[0]:ee)}:ee}):l=[fi];var P=-1;l=w(l,Et(st()));var G=uu(e,function(ee,ae,fe){var ye=w(l,function(Le){return Le(ee)});return{criteria:ye,index:++P,value:ee}});return Xe(G,function(ee,ae){return Cg(ee,ae,k)})}function hg(e,l){return gu(e,l,function(k,P){return gl(e,P)})}function gu(e,l,k){for(var P=-1,G=l.length,ee={};++P<G;){var ae=l[P],fe=ko(e,ae);k(fe,ae)&&ys(ee,Qr(ae,e),fe)}return ee}function dg(e){return function(l){return ko(l,e)}}function Ha(e,l,k,P){var G=P?xe:ve,ee=-1,ae=l.length,fe=e;for(e===l&&(l=ui(l)),k&&(fe=w(e,Et(k)));++ee<ae;)for(var ye=0,Le=l[ee],Te=k?k(Le):Le;(ye=G(fe,Te,ye,P))>-1;)fe!==e&&Ws.call(fe,ye,1),Ws.call(e,ye,1);return e}function mu(e,l){for(var k=e?l.length:0,P=k-1;k--;){var G=l[k];if(k==P||G!==ee){var ee=G;Ir(G)?Ws.call(e,G,1):Ka(e,G)}}return e}function za(e,l){return e+Hs(Zc()*(l-e+1))}function fg(e,l,k,P){for(var G=-1,ee=En(Ps((l-e)/(k||1)),0),ae=ke(ee);ee--;)ae[P?ee:++G]=e,e+=k;return ae}function Ua(e,l){var k="";if(!e||l<1||l>q)return k;do l%2&&(k+=e),l=Hs(l/2),l&&(e+=e);while(l);return k}function xt(e,l){return sl(ju(e,l,fi),e+"")}function pg(e){return Jc(Yo(e))}function gg(e,l){var k=Yo(e);return ra(k,xo(l,0,k.length))}function ys(e,l,k,P){if(!ln(e))return e;l=Qr(l,e);for(var G=-1,ee=l.length,ae=ee-1,fe=e;fe!=null&&++G<ee;){var ye=Ji(l[G]),Le=k;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return e;if(G!=ae){var Te=fe[ye];Le=P?P(Te,ye,fe):f,Le===f&&(Le=ln(Te)?Te:Ir(l[G+1])?[]:{})}ps(fe,ye,Le),fe=fe[ye]}return e}var vu=zs?function(e,l){return zs.set(e,l),e}:fi,mg=Bs?function(e,l){return Bs(e,"toString",{configurable:!0,enumerable:!1,value:vl(l),writable:!0})}:fi;function vg(e){return ra(Yo(e))}function Fi(e,l,k){var P=-1,G=e.length;l<0&&(l=-l>G?0:G+l),k=k>G?G:k,k<0&&(k+=G),G=l>k?0:k-l>>>0,l>>>=0;for(var ee=ke(G);++P<G;)ee[P]=e[P+l];return ee}function yg(e,l){var k;return Yr(e,function(P,G,ee){return k=l(P,G,ee),!k}),!!k}function Ys(e,l,k){var P=0,G=e==null?P:e.length;if(typeof l=="number"&&l===l&&G<=he){for(;P<G;){var ee=P+G>>>1,ae=e[ee];ae!==null&&!Ci(ae)&&(k?ae<=l:ae<l)?P=ee+1:G=ee}return G}return Va(e,l,fi,k)}function Va(e,l,k,P){var G=0,ee=e==null?0:e.length;if(ee===0)return 0;l=k(l);for(var ae=l!==l,fe=l===null,ye=Ci(l),Le=l===f;G<ee;){var Te=Hs((G+ee)/2),Ie=k(e[Te]),ze=Ie!==f,Ze=Ie===null,lt=Ie===Ie,vt=Ci(Ie);if(ae)var rt=P||lt;else Le?rt=lt&&(P||ze):fe?rt=lt&&ze&&(P||!Ze):ye?rt=lt&&ze&&!Ze&&(P||!vt):Ze||vt?rt=!1:rt=P?Ie<=l:Ie<l;rt?G=Te+1:ee=Te}return Zn(ee,ne)}function yu(e,l){for(var k=-1,P=e.length,G=0,ee=[];++k<P;){var ae=e[k],fe=l?l(ae):ae;if(!k||!er(fe,ye)){var ye=fe;ee[G++]=ae===0?0:ae}}return ee}function wu(e){return typeof e=="number"?e:Ci(e)?te:+e}function ki(e){if(typeof e=="string")return e;if(gt(e))return w(e,ki)+"";if(Ci(e))return Qc?Qc.call(e):"";var l=e+"";return l=="0"&&1/e==-U?"-0":l}function Zr(e,l,k){var P=-1,G=li,ee=e.length,ae=!0,fe=[],ye=fe;if(k)ae=!1,G=c;else if(ee>=z){var Le=l?null:Lg(e);if(Le)return He(Le);ae=!1,G=ot,ye=new bo}else ye=l?[]:fe;e:for(;++P<ee;){var Te=e[P],Ie=l?l(Te):Te;if(Te=k||Te!==0?Te:0,ae&&Ie===Ie){for(var ze=ye.length;ze--;)if(ye[ze]===Ie)continue e;l&&ye.push(Ie),fe.push(Te)}else G(ye,Ie,k)||(ye!==fe&&ye.push(Ie),fe.push(Te))}return fe}function Ka(e,l){l=Qr(l,e);var k=-1,P=l.length;if(!P)return!0;for(;++k<P;){var G=Ji(l[k]);if(G==="__proto__"&&!Pt.call(e,"__proto__")||(G==="constructor"||G==="prototype")&&k<P-1)return!1}var ee=Gu(e,l);return ee==null||delete ee[Ji(Wi(l))]}function bu(e,l,k,P){return ys(e,l,k(ko(e,l)),P)}function Zs(e,l,k,P){for(var G=e.length,ee=P?G:-1;(P?ee--:++ee<G)&&l(e[ee],ee,e););return k?Fi(e,P?0:ee,P?ee+1:G):Fi(e,P?ee+1:0,P?G:ee)}function xu(e,l){var k=e;return k instanceof Mt&&(k=k.value()),O(l,function(P,G){return G.func.apply(G.thisArg,v([P],G.args))},k)}function ja(e,l,k){var P=e.length;if(P<2)return P?Zr(e[0]):[];for(var G=-1,ee=ke(P);++G<P;)for(var ae=e[G],fe=-1;++fe<P;)fe!=G&&(ee[G]=gs(ee[G]||ae,e[fe],l,k));return Zr(zn(ee,1),l,k)}function ku(e,l,k){for(var P=-1,G=e.length,ee=l.length,ae={};++P<G;){var fe=P<ee?l[P]:f;k(ae,e[P],fe)}return ae}function Ga(e){return vn(e)?e:[]}function qa(e){return typeof e=="function"?e:fi}function Qr(e,l){return gt(e)?e:il(e,l)?[e]:Qu(Ht(e))}var wg=xt;function Xr(e,l,k){var P=e.length;return k=k===f?P:k,!l&&k>=P?e:Fi(e,l,k)}var Cu=sp||function(e){return yt.clearTimeout(e)};function Su(e,l){if(l)return e.slice();var k=e.length,P=Kc?Kc(k):new e.constructor(k);return e.copy(P),P}function Ya(e){var l=new e.constructor(e.byteLength);return new Ns(l).set(new Ns(e)),l}function bg(e,l){var k=l?Ya(e.buffer):e.buffer;return new e.constructor(k,e.byteOffset,e.byteLength)}function xg(e){var l=new e.constructor(e.source,Ct.exec(e));return l.lastIndex=e.lastIndex,l}function kg(e){return fs?bt(fs.call(e)):{}}function _u(e,l){var k=l?Ya(e.buffer):e.buffer;return new e.constructor(k,e.byteOffset,e.length)}function Au(e,l){if(e!==l){var k=e!==f,P=e===null,G=e===e,ee=Ci(e),ae=l!==f,fe=l===null,ye=l===l,Le=Ci(l);if(!fe&&!Le&&!ee&&e>l||ee&&ae&&ye&&!fe&&!Le||P&&ae&&ye||!k&&ye||!G)return 1;if(!P&&!ee&&!Le&&e<l||Le&&k&&G&&!P&&!ee||fe&&k&&G||!ae&&G||!ye)return-1}return 0}function Cg(e,l,k){for(var P=-1,G=e.criteria,ee=l.criteria,ae=G.length,fe=k.length;++P<ae;){var ye=Au(G[P],ee[P]);if(ye){if(P>=fe)return ye;var Le=k[P];return ye*(Le=="desc"?-1:1)}}return e.index-l.index}function Mu(e,l,k,P){for(var G=-1,ee=e.length,ae=k.length,fe=-1,ye=l.length,Le=En(ee-ae,0),Te=ke(ye+Le),Ie=!P;++fe<ye;)Te[fe]=l[fe];for(;++G<ae;)(Ie||G<ee)&&(Te[k[G]]=e[G]);for(;Le--;)Te[fe++]=e[G++];return Te}function $u(e,l,k,P){for(var G=-1,ee=e.length,ae=-1,fe=k.length,ye=-1,Le=l.length,Te=En(ee-fe,0),Ie=ke(Te+Le),ze=!P;++G<Te;)Ie[G]=e[G];for(var Ze=G;++ye<Le;)Ie[Ze+ye]=l[ye];for(;++ae<fe;)(ze||G<ee)&&(Ie[Ze+k[ae]]=e[G++]);return Ie}function ui(e,l){var k=-1,P=e.length;for(l||(l=ke(P));++k<P;)l[k]=e[k];return l}function gr(e,l,k,P){var G=!k;k||(k={});for(var ee=-1,ae=l.length;++ee<ae;){var fe=l[ee],ye=P?P(k[fe],e[fe],fe,k,e):f;ye===f&&(ye=e[fe]),G?fr(k,fe,ye):ps(k,fe,ye)}return k}function Sg(e,l){return gr(e,nl(e),l)}function _g(e,l){return gr(e,Hu(e),l)}function Qs(e,l){return function(k,P){var G=gt(k)?Ho:Gp,ee=l?l():{};return G(k,e,st(P,2),ee)}}function Ko(e){return xt(function(l,k){var P=-1,G=k.length,ee=G>1?k[G-1]:f,ae=G>2?k[2]:f;for(ee=e.length>3&&typeof ee=="function"?(G--,ee):f,ae&&ni(k[0],k[1],ae)&&(ee=G<3?f:ee,G=1),l=bt(l);++P<G;){var fe=k[P];fe&&e(l,fe,P,ee)}return l})}function Lu(e,l){return function(k,P){if(k==null)return k;if(!hi(k))return e(k,P);for(var G=k.length,ee=l?G:-1,ae=bt(k);(l?ee--:++ee<G)&&P(ae[ee],ee,ae)!==!1;);return k}}function Tu(e){return function(l,k,P){for(var G=-1,ee=bt(l),ae=P(l),fe=ae.length;fe--;){var ye=ae[e?fe:++G];if(k(ee[ye],ye,ee)===!1)break}return l}}function Ag(e,l,k){var P=l&d,G=ws(e);function ee(){var ae=this&&this!==yt&&this instanceof ee?G:e;return ae.apply(P?k:this,arguments)}return ee}function Eu(e){return function(l){l=Ht(l);var k=pe(l)?ct(l):f,P=k?k[0]:l.charAt(0),G=k?Xr(k,1).join(""):l.slice(1);return P[e]()+G}}function jo(e){return function(l){return O(Th(Lh(l).replace(Ar,"")),e,"")}}function ws(e){return function(){var l=arguments;switch(l.length){case 0:return new e;case 1:return new e(l[0]);case 2:return new e(l[0],l[1]);case 3:return new e(l[0],l[1],l[2]);case 4:return new e(l[0],l[1],l[2],l[3]);case 5:return new e(l[0],l[1],l[2],l[3],l[4]);case 6:return new e(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new e(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var k=Vo(e.prototype),P=e.apply(k,l);return ln(P)?P:k}}function Mg(e,l,k){var P=ws(e);function G(){for(var ee=arguments.length,ae=ke(ee),fe=ee,ye=Go(G);fe--;)ae[fe]=arguments[fe];var Le=ee<3&&ae[0]!==ye&&ae[ee-1]!==ye?[]:Be(ae,ye);if(ee-=Le.length,ee<k)return Nu(e,l,Xs,G.placeholder,f,ae,Le,f,f,k-ee);var Te=this&&this!==yt&&this instanceof G?P:e;return Wt(Te,this,ae)}return G}function Ru(e){return function(l,k,P){var G=bt(l);if(!hi(l)){var ee=st(k,3);l=Wn(l),k=function(fe){return ee(G[fe],fe,G)}}var ae=e(l,k,P);return ae>-1?G[ee?l[ae]:ae]:f}}function Iu(e){return Rr(function(l){var k=l.length,P=k,G=Di.prototype.thru;for(e&&l.reverse();P--;){var ee=l[P];if(typeof ee!="function")throw new Qt(_);if(G&&!ae&&na(ee)=="wrapper")var ae=new Di([],!0)}for(P=ae?P:k;++P<k;){ee=l[P];var fe=na(ee),ye=fe=="wrapper"?el(ee):f;ye&&rl(ye[0])&&ye[1]==(I|C|p|M)&&!ye[4].length&&ye[9]==1?ae=ae[na(ye[0])].apply(ae,ye[3]):ae=ee.length==1&&rl(ee)?ae[fe]():ae.thru(ee)}return function(){var Le=arguments,Te=Le[0];if(ae&&Le.length==1&>(Te))return ae.plant(Te).value();for(var Ie=0,ze=k?l[Ie].apply(this,Le):Te;++Ie<k;)ze=l[Ie].call(this,ze);return ze}})}function Xs(e,l,k,P,G,ee,ae,fe,ye,Le){var Te=l&I,Ie=l&d,ze=l&g,Ze=l&(C|y),lt=l&A,vt=ze?f:ws(e);function rt(){for(var _t=arguments.length,Tt=ke(_t),Si=_t;Si--;)Tt[Si]=arguments[Si];if(Ze)var ii=Go(rt),_i=tn(Tt,ii);if(P&&(Tt=Mu(Tt,P,G,Ze)),ee&&(Tt=$u(Tt,ee,ae,Ze)),_t-=_i,Ze&&_t<Le){var yn=Be(Tt,ii);return Nu(e,l,Xs,rt.placeholder,k,Tt,yn,fe,ye,Le-_t)}var tr=Ie?k:this,Nr=ze?tr[e]:e;return _t=Tt.length,fe?Tt=Gg(Tt,fe):lt&&_t>1&&Tt.reverse(),Te&&ye<_t&&(Tt.length=ye),this&&this!==yt&&this instanceof rt&&(Nr=vt||ws(Nr)),Nr.apply(tr,Tt)}return rt}function Ou(e,l){return function(k,P){return tg(k,e,l(P),{})}}function Js(e,l){return function(k,P){var G;if(k===f&&P===f)return l;if(k!==f&&(G=k),P!==f){if(G===f)return P;typeof k=="string"||typeof P=="string"?(k=ki(k),P=ki(P)):(k=wu(k),P=wu(P)),G=e(k,P)}return G}}function Za(e){return Rr(function(l){return l=w(l,Et(st())),xt(function(k){var P=this;return e(l,function(G){return Wt(G,P,k)})})})}function ea(e,l){l=l===f?" ":ki(l);var k=l.length;if(k<2)return k?Ua(l,e):l;var P=Ua(l,Ps(e/wt(l)));return pe(l)?Xr(ct(P),0,e).join(""):P.slice(0,e)}function $g(e,l,k,P){var G=l&d,ee=ws(e);function ae(){for(var fe=-1,ye=arguments.length,Le=-1,Te=P.length,Ie=ke(Te+ye),ze=this&&this!==yt&&this instanceof ae?ee:e;++Le<Te;)Ie[Le]=P[Le];for(;ye--;)Ie[Le++]=arguments[++fe];return Wt(ze,G?k:this,Ie)}return ae}function Du(e){return function(l,k,P){return P&&typeof P!="number"&&ni(l,k,P)&&(k=P=f),l=Dr(l),k===f?(k=l,l=0):k=Dr(k),P=P===f?l<k?1:-1:Dr(P),fg(l,k,P,e)}}function ta(e){return function(l,k){return typeof l=="string"&&typeof k=="string"||(l=Bi(l),k=Bi(k)),e(l,k)}}function Nu(e,l,k,P,G,ee,ae,fe,ye,Le){var Te=l&C,Ie=Te?ae:f,ze=Te?f:ae,Ze=Te?ee:f,lt=Te?f:ee;l|=Te?p:$,l&=~(Te?$:p),l&L||(l&=-4);var vt=[e,l,G,Ze,Ie,lt,ze,fe,ye,Le],rt=k.apply(f,vt);return rl(e)&&qu(rt,vt),rt.placeholder=P,Yu(rt,e,l)}function Qa(e){var l=Ot[e];return function(k,P){if(k=Bi(k),P=P==null?0:Zn(mt(P),292),P&&Yc(k)){var G=(Ht(k)+"e").split("e"),ee=l(G[0]+"e"+(+G[1]+P));return G=(Ht(ee)+"e").split("e"),+(G[0]+"e"+(+G[1]-P))}return l(k)}}var Lg=zo&&1/He(new zo([,-0]))[1]==U?function(e){return new zo(e)}:bl;function Fu(e){return function(l){var k=Qn(l);return k==tt?Oe(l):k==Jt?Ge(l):Kt(l,e(l))}}function Er(e,l,k,P,G,ee,ae,fe){var ye=l&g;if(!ye&&typeof e!="function")throw new Qt(_);var Le=P?P.length:0;if(Le||(l&=-97,P=G=f),ae=ae===f?ae:En(mt(ae),0),fe=fe===f?fe:mt(fe),Le-=G?G.length:0,l&$){var Te=P,Ie=G;P=G=f}var ze=ye?f:el(e),Ze=[e,l,k,P,G,Te,Ie,ee,ae,fe];if(ze&&Vg(Ze,ze),e=Ze[0],l=Ze[1],k=Ze[2],P=Ze[3],G=Ze[4],fe=Ze[9]=Ze[9]===f?ye?0:e.length:En(Ze[9]-Le,0),!fe&&l&(C|y)&&(l&=-25),!l||l==d)var lt=Ag(e,l,k);else l==C||l==y?lt=Mg(e,l,fe):(l==p||l==(d|p))&&!G.length?lt=$g(e,l,k,P):lt=Xs.apply(f,Ze);var vt=ze?vu:qu;return Yu(vt(lt,Ze),e,l)}function Wu(e,l,k,P){return e===f||er(e,$r[k])&&!Pt.call(P,k)?l:e}function Bu(e,l,k,P,G,ee){return ln(e)&&ln(l)&&(ee.set(l,e),qs(e,l,f,Bu,ee),ee.delete(l)),e}function Tg(e){return ks(e)?f:e}function Pu(e,l,k,P,G,ee){var ae=k&n,fe=e.length,ye=l.length;if(fe!=ye&&!(ae&&ye>fe))return!1;var Le=ee.get(e),Te=ee.get(l);if(Le&&Te)return Le==l&&Te==e;var Ie=-1,ze=!0,Ze=k&a?new bo:f;for(ee.set(e,l),ee.set(l,e);++Ie<fe;){var lt=e[Ie],vt=l[Ie];if(P)var rt=ae?P(vt,lt,Ie,l,e,ee):P(lt,vt,Ie,e,l,ee);if(rt!==f){if(rt)continue;ze=!1;break}if(Ze){if(!B(l,function(_t,Tt){if(!ot(Ze,Tt)&&(lt===_t||G(lt,_t,k,P,ee)))return Ze.push(Tt)})){ze=!1;break}}else if(!(lt===vt||G(lt,vt,k,P,ee))){ze=!1;break}}return ee.delete(e),ee.delete(l),ze}function Eg(e,l,k,P,G,ee,ae){switch(k){case Dn:if(e.byteLength!=l.byteLength||e.byteOffset!=l.byteOffset)return!1;e=e.buffer,l=l.buffer;case Cn:return!(e.byteLength!=l.byteLength||!ee(new Ns(e),new Ns(l)));case _e:case Ae:case Rt:return er(+e,+l);case Ue:return e.name==l.name&&e.message==l.message;case si:case Un:return e==l+"";case tt:var fe=Oe;case Jt:var ye=P&n;if(fe||(fe=He),e.size!=l.size&&!ye)return!1;var Le=ae.get(e);if(Le)return Le==l;P|=a,ae.set(e,l);var Te=Pu(fe(e),fe(l),P,G,ee,ae);return ae.delete(e),Te;case ut:if(fs)return fs.call(e)==fs.call(l)}return!1}function Rg(e,l,k,P,G,ee){var ae=k&n,fe=Xa(e),ye=fe.length,Le=Xa(l),Te=Le.length;if(ye!=Te&&!ae)return!1;for(var Ie=ye;Ie--;){var ze=fe[Ie];if(!(ae?ze in l:Pt.call(l,ze)))return!1}var Ze=ee.get(e),lt=ee.get(l);if(Ze&<)return Ze==l&<==e;var vt=!0;ee.set(e,l),ee.set(l,e);for(var rt=ae;++Ie<ye;){ze=fe[Ie];var _t=e[ze],Tt=l[ze];if(P)var Si=ae?P(Tt,_t,ze,l,e,ee):P(_t,Tt,ze,e,l,ee);if(!(Si===f?_t===Tt||G(_t,Tt,k,P,ee):Si)){vt=!1;break}rt||(rt=ze=="constructor")}if(vt&&!rt){var ii=e.constructor,_i=l.constructor;ii!=_i&&"constructor"in e&&"constructor"in l&&!(typeof ii=="function"&&ii instanceof ii&&typeof _i=="function"&&_i instanceof _i)&&(vt=!1)}return ee.delete(e),ee.delete(l),vt}function Rr(e){return sl(ju(e,f,th),e+"")}function Xa(e){return su(e,Wn,nl)}function Ja(e){return su(e,di,Hu)}var el=zs?function(e){return zs.get(e)}:bl;function na(e){for(var l=e.name+"",k=Uo[l],P=Pt.call(Uo,l)?k.length:0;P--;){var G=k[P],ee=G.func;if(ee==null||ee==e)return G.name}return l}function Go(e){var l=Pt.call(J,"placeholder")?J:e;return l.placeholder}function st(){var e=J.iteratee||yl;return e=e===yl?cu:e,arguments.length?e(arguments[0],arguments[1]):e}function ia(e,l){var k=e.__data__;return Pg(l)?k[typeof l=="string"?"string":"hash"]:k.map}function tl(e){for(var l=Wn(e),k=l.length;k--;){var P=l[k],G=e[P];l[k]=[P,G,Vu(G)]}return l}function Co(e,l){var k=oe(e,l);return lu(k)?k:f}function Ig(e){var l=Pt.call(e,yo),k=e[yo];try{e[yo]=f;var P=!0}catch{}var G=Os.call(e);return P&&(l?e[yo]=k:delete e[yo]),G}var nl=La?function(e){return e==null?[]:(e=bt(e),Bn(La(e),function(l){return Gc.call(e,l)}))}:xl,Hu=La?function(e){for(var l=[];e;)v(l,nl(e)),e=Fs(e);return l}:xl,Qn=ti;(Ta&&Qn(new Ta(new ArrayBuffer(1)))!=Dn||us&&Qn(new us)!=tt||Ea&&Qn(Ea.resolve())!=oi||zo&&Qn(new zo)!=Jt||hs&&Qn(new hs)!=Lt)&&(Qn=function(e){var l=ti(e),k=l==kt?e.constructor:f,P=k?So(k):"";if(P)switch(P){case gp:return Dn;case mp:return tt;case vp:return oi;case yp:return Jt;case wp:return Lt}return l});function Og(e,l,k){for(var P=-1,G=k.length;++P<G;){var ee=k[P],ae=ee.size;switch(ee.type){case"drop":e+=ae;break;case"dropRight":l-=ae;break;case"take":l=Zn(l,e+ae);break;case"takeRight":e=En(e,l-ae);break}}return{start:e,end:l}}function Dg(e){var l=e.match(ro);return l?l[1].split(Io):[]}function zu(e,l,k){l=Qr(l,e);for(var P=-1,G=l.length,ee=!1;++P<G;){var ae=Ji(l[P]);if(!(ee=e!=null&&k(e,ae)))break;e=e[ae]}return ee||++P!=G?ee:(G=e==null?0:e.length,!!G&&ua(G)&&Ir(ae,G)&&(gt(e)||_o(e)))}function Ng(e){var l=e.length,k=new e.constructor(l);return l&&typeof e[0]=="string"&&Pt.call(e,"index")&&(k.index=e.index,k.input=e.input),k}function Uu(e){return typeof e.constructor=="function"&&!bs(e)?Vo(Fs(e)):{}}function Fg(e,l,k){var P=e.constructor;switch(l){case Cn:return Ya(e);case _e:case Ae:return new P(+e);case Dn:return bg(e,k);case Vn:case on:case Sn:case Nn:case Ut:case _n:case vr:case zi:case gi:return _u(e,k);case tt:return new P;case Rt:case Un:return new P(e);case si:return xg(e);case Jt:return new P;case ut:return kg(e)}}function Wg(e,l){var k=l.length;if(!k)return e;var P=k-1;return l[P]=(k>1?"& ":"")+l[P],l=l.join(k>2?", ":" "),e.replace(Ki,`{
|
|
1451
|
+
/* [wrapped with `+l+`] */
|
|
1452
|
+
`)}function Bg(e){return gt(e)||_o(e)||!!(qc&&e&&e[qc])}function Ir(e,l){var k=typeof e;return l=l??q,!!l&&(k=="number"||k!="symbol"&&cn.test(e))&&e>-1&&e%1==0&&e<l}function ni(e,l,k){if(!ln(k))return!1;var P=typeof l;return(P=="number"?hi(k)&&Ir(l,k.length):P=="string"&&l in k)?er(k[l],e):!1}function il(e,l){if(gt(e))return!1;var k=typeof e;return k=="number"||k=="symbol"||k=="boolean"||e==null||Ci(e)?!0:pn.test(e)||!Vi.test(e)||l!=null&&e in bt(l)}function Pg(e){var l=typeof e;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?e!=="__proto__":e===null}function rl(e){var l=na(e),k=J[l];if(typeof k!="function"||!(l in Mt.prototype))return!1;if(e===k)return!0;var P=el(k);return!!P&&e===P[0]}function Hg(e){return!!Vc&&Vc in e}var zg=Rs?Or:kl;function bs(e){var l=e&&e.constructor,k=typeof l=="function"&&l.prototype||$r;return e===k}function Vu(e){return e===e&&!ln(e)}function Ku(e,l){return function(k){return k==null?!1:k[e]===l&&(l!==f||e in bt(k))}}function Ug(e){var l=la(e,function(P){return k.size===s&&k.clear(),P}),k=l.cache;return l}function Vg(e,l){var k=e[1],P=l[1],G=k|P,ee=G<(d|g|I),ae=P==I&&k==C||P==I&&k==M&&e[7].length<=l[8]||P==(I|M)&&l[7].length<=l[8]&&k==C;if(!(ee||ae))return e;P&d&&(e[2]=l[2],G|=k&d?0:L);var fe=l[3];if(fe){var ye=e[3];e[3]=ye?Mu(ye,fe,l[4]):fe,e[4]=ye?Be(e[3],o):l[4]}return fe=l[5],fe&&(ye=e[5],e[5]=ye?$u(ye,fe,l[6]):fe,e[6]=ye?Be(e[5],o):l[6]),fe=l[7],fe&&(e[7]=fe),P&I&&(e[8]=e[8]==null?l[8]:Zn(e[8],l[8])),e[9]==null&&(e[9]=l[9]),e[0]=l[0],e[1]=G,e}function Kg(e){var l=[];if(e!=null)for(var k in bt(e))l.push(k);return l}function jg(e){return Os.call(e)}function ju(e,l,k){return l=En(l===f?e.length-1:l,0),function(){for(var P=arguments,G=-1,ee=En(P.length-l,0),ae=ke(ee);++G<ee;)ae[G]=P[l+G];G=-1;for(var fe=ke(l+1);++G<l;)fe[G]=P[G];return fe[l]=k(ae),Wt(e,this,fe)}}function Gu(e,l){return l.length<2?e:ko(e,Fi(l,0,-1))}function Gg(e,l){for(var k=e.length,P=Zn(l.length,k),G=ui(e);P--;){var ee=l[P];e[P]=Ir(ee,k)?G[ee]:f}return e}function ol(e,l){if(!(l==="constructor"&&typeof e[l]=="function")&&l!="__proto__")return e[l]}var qu=Zu(vu),xs=lp||function(e,l){return yt.setTimeout(e,l)},sl=Zu(mg);function Yu(e,l,k){var P=l+"";return sl(e,Wg(P,qg(Dg(P),k)))}function Zu(e){var l=0,k=0;return function(){var P=dp(),G=x-(P-k);if(k=P,G>0){if(++l>=T)return arguments[0]}else l=0;return e.apply(f,arguments)}}function ra(e,l){var k=-1,P=e.length,G=P-1;for(l=l===f?P:l;++k<l;){var ee=za(k,G),ae=e[ee];e[ee]=e[k],e[k]=ae}return e.length=l,e}var Qu=Ug(function(e){var l=[];return e.charCodeAt(0)===46&&l.push(""),e.replace(ai,function(k,P,G,ee){l.push(G?ee.replace(ji,"$1"):P||k)}),l});function Ji(e){if(typeof e=="string"||Ci(e))return e;var l=e+"";return l=="0"&&1/e==-U?"-0":l}function So(e){if(e!=null){try{return Is.call(e)}catch{}try{return e+""}catch{}}return""}function qg(e,l){return Ln(ue,function(k){var P="_."+k[0];l&k[1]&&!li(e,P)&&e.push(P)}),e.sort()}function Xu(e){if(e instanceof Mt)return e.clone();var l=new Di(e.__wrapped__,e.__chain__);return l.__actions__=ui(e.__actions__),l.__index__=e.__index__,l.__values__=e.__values__,l}function Yg(e,l,k){(k?ni(e,l,k):l===f)?l=1:l=En(mt(l),0);var P=e==null?0:e.length;if(!P||l<1)return[];for(var G=0,ee=0,ae=ke(Ps(P/l));G<P;)ae[ee++]=Fi(e,G,G+=l);return ae}function Zg(e){for(var l=-1,k=e==null?0:e.length,P=0,G=[];++l<k;){var ee=e[l];ee&&(G[P++]=ee)}return G}function Qg(){var e=arguments.length;if(!e)return[];for(var l=ke(e-1),k=arguments[0],P=e;P--;)l[P-1]=arguments[P];return v(gt(k)?ui(k):[k],zn(l,1))}var Xg=xt(function(e,l){return vn(e)?gs(e,zn(l,1,vn,!0)):[]}),Jg=xt(function(e,l){var k=Wi(l);return vn(k)&&(k=f),vn(e)?gs(e,zn(l,1,vn,!0),st(k,2)):[]}),em=xt(function(e,l){var k=Wi(l);return vn(k)&&(k=f),vn(e)?gs(e,zn(l,1,vn,!0),f,k):[]});function tm(e,l,k){var P=e==null?0:e.length;return P?(l=k||l===f?1:mt(l),Fi(e,l<0?0:l,P)):[]}function nm(e,l,k){var P=e==null?0:e.length;return P?(l=k||l===f?1:mt(l),l=P-l,Fi(e,0,l<0?0:l)):[]}function im(e,l){return e&&e.length?Zs(e,st(l,3),!0,!0):[]}function rm(e,l){return e&&e.length?Zs(e,st(l,3),!0):[]}function om(e,l,k,P){var G=e==null?0:e.length;return G?(k&&typeof k!="number"&&ni(e,l,k)&&(k=0,P=G),Qp(e,l,k,P)):[]}function Ju(e,l,k){var P=e==null?0:e.length;if(!P)return-1;var G=k==null?0:mt(k);return G<0&&(G=En(P+G,0)),se(e,st(l,3),G)}function eh(e,l,k){var P=e==null?0:e.length;if(!P)return-1;var G=P-1;return k!==f&&(G=mt(k),G=k<0?En(P+G,0):Zn(G,P-1)),se(e,st(l,3),G,!0)}function th(e){var l=e==null?0:e.length;return l?zn(e,1):[]}function sm(e){var l=e==null?0:e.length;return l?zn(e,U):[]}function am(e,l){var k=e==null?0:e.length;return k?(l=l===f?1:mt(l),zn(e,l)):[]}function lm(e){for(var l=-1,k=e==null?0:e.length,P={};++l<k;){var G=e[l];fr(P,G[0],G[1])}return P}function nh(e){return e&&e.length?e[0]:f}function cm(e,l,k){var P=e==null?0:e.length;if(!P)return-1;var G=k==null?0:mt(k);return G<0&&(G=En(P+G,0)),ve(e,l,G)}function um(e){var l=e==null?0:e.length;return l?Fi(e,0,-1):[]}var hm=xt(function(e){var l=w(e,Ga);return l.length&&l[0]===e[0]?Fa(l):[]}),dm=xt(function(e){var l=Wi(e),k=w(e,Ga);return l===Wi(k)?l=f:k.pop(),k.length&&k[0]===e[0]?Fa(k,st(l,2)):[]}),fm=xt(function(e){var l=Wi(e),k=w(e,Ga);return l=typeof l=="function"?l:f,l&&k.pop(),k.length&&k[0]===e[0]?Fa(k,f,l):[]});function pm(e,l){return e==null?"":up.call(e,l)}function Wi(e){var l=e==null?0:e.length;return l?e[l-1]:f}function gm(e,l,k){var P=e==null?0:e.length;if(!P)return-1;var G=P;return k!==f&&(G=mt(k),G=G<0?En(P+G,0):Zn(G,P-1)),l===l?It(e,l,G):se(e,de,G,!0)}function mm(e,l){return e&&e.length?fu(e,mt(l)):f}var vm=xt(ih);function ih(e,l){return e&&e.length&&l&&l.length?Ha(e,l):e}function ym(e,l,k){return e&&e.length&&l&&l.length?Ha(e,l,st(k,2)):e}function wm(e,l,k){return e&&e.length&&l&&l.length?Ha(e,l,f,k):e}var bm=Rr(function(e,l){var k=e==null?0:e.length,P=Ia(e,l);return mu(e,w(l,function(G){return Ir(G,k)?+G:G}).sort(Au)),P});function xm(e,l){var k=[];if(!(e&&e.length))return k;var P=-1,G=[],ee=e.length;for(l=st(l,3);++P<ee;){var ae=e[P];l(ae,P,e)&&(k.push(ae),G.push(P))}return mu(e,G),k}function al(e){return e==null?e:pp.call(e)}function km(e,l,k){var P=e==null?0:e.length;return P?(k&&typeof k!="number"&&ni(e,l,k)?(l=0,k=P):(l=l==null?0:mt(l),k=k===f?P:mt(k)),Fi(e,l,k)):[]}function Cm(e,l){return Ys(e,l)}function Sm(e,l,k){return Va(e,l,st(k,2))}function _m(e,l){var k=e==null?0:e.length;if(k){var P=Ys(e,l);if(P<k&&er(e[P],l))return P}return-1}function Am(e,l){return Ys(e,l,!0)}function Mm(e,l,k){return Va(e,l,st(k,2),!0)}function $m(e,l){var k=e==null?0:e.length;if(k){var P=Ys(e,l,!0)-1;if(er(e[P],l))return P}return-1}function Lm(e){return e&&e.length?yu(e):[]}function Tm(e,l){return e&&e.length?yu(e,st(l,2)):[]}function Em(e){var l=e==null?0:e.length;return l?Fi(e,1,l):[]}function Rm(e,l,k){return e&&e.length?(l=k||l===f?1:mt(l),Fi(e,0,l<0?0:l)):[]}function Im(e,l,k){var P=e==null?0:e.length;return P?(l=k||l===f?1:mt(l),l=P-l,Fi(e,l<0?0:l,P)):[]}function Om(e,l){return e&&e.length?Zs(e,st(l,3),!1,!0):[]}function Dm(e,l){return e&&e.length?Zs(e,st(l,3)):[]}var Nm=xt(function(e){return Zr(zn(e,1,vn,!0))}),Fm=xt(function(e){var l=Wi(e);return vn(l)&&(l=f),Zr(zn(e,1,vn,!0),st(l,2))}),Wm=xt(function(e){var l=Wi(e);return l=typeof l=="function"?l:f,Zr(zn(e,1,vn,!0),f,l)});function Bm(e){return e&&e.length?Zr(e):[]}function Pm(e,l){return e&&e.length?Zr(e,st(l,2)):[]}function Hm(e,l){return l=typeof l=="function"?l:f,e&&e.length?Zr(e,f,l):[]}function ll(e){if(!(e&&e.length))return[];var l=0;return e=Bn(e,function(k){if(vn(k))return l=En(k.length,l),!0}),Ke(l,function(k){return w(e,Ee(k))})}function rh(e,l){if(!(e&&e.length))return[];var k=ll(e);return l==null?k:w(k,function(P){return Wt(l,f,P)})}var zm=xt(function(e,l){return vn(e)?gs(e,l):[]}),Um=xt(function(e){return ja(Bn(e,vn))}),Vm=xt(function(e){var l=Wi(e);return vn(l)&&(l=f),ja(Bn(e,vn),st(l,2))}),Km=xt(function(e){var l=Wi(e);return l=typeof l=="function"?l:f,ja(Bn(e,vn),f,l)}),jm=xt(ll);function Gm(e,l){return ku(e||[],l||[],ps)}function qm(e,l){return ku(e||[],l||[],ys)}var Ym=xt(function(e){var l=e.length,k=l>1?e[l-1]:f;return k=typeof k=="function"?(e.pop(),k):f,rh(e,k)});function oh(e){var l=J(e);return l.__chain__=!0,l}function Zm(e,l){return l(e),e}function oa(e,l){return l(e)}var Qm=Rr(function(e){var l=e.length,k=l?e[0]:0,P=this.__wrapped__,G=function(ee){return Ia(ee,e)};return l>1||this.__actions__.length||!(P instanceof Mt)||!Ir(k)?this.thru(G):(P=P.slice(k,+k+(l?1:0)),P.__actions__.push({func:oa,args:[G],thisArg:f}),new Di(P,this.__chain__).thru(function(ee){return l&&!ee.length&&ee.push(f),ee}))});function Xm(){return oh(this)}function Jm(){return new Di(this.value(),this.__chain__)}function ev(){this.__values__===f&&(this.__values__=wh(this.value()));var e=this.__index__>=this.__values__.length,l=e?f:this.__values__[this.__index__++];return{done:e,value:l}}function tv(){return this}function nv(e){for(var l,k=this;k instanceof Vs;){var P=Xu(k);P.__index__=0,P.__values__=f,l?G.__wrapped__=P:l=P;var G=P;k=k.__wrapped__}return G.__wrapped__=e,l}function iv(){var e=this.__wrapped__;if(e instanceof Mt){var l=e;return this.__actions__.length&&(l=new Mt(this)),l=l.reverse(),l.__actions__.push({func:oa,args:[al],thisArg:f}),new Di(l,this.__chain__)}return this.thru(al)}function rv(){return xu(this.__wrapped__,this.__actions__)}var ov=Qs(function(e,l,k){Pt.call(e,k)?++e[k]:fr(e,k,1)});function sv(e,l,k){var P=gt(e)?dr:Zp;return k&&ni(e,l,k)&&(l=f),P(e,st(l,3))}function av(e,l){var k=gt(e)?Bn:ru;return k(e,st(l,3))}var lv=Ru(Ju),cv=Ru(eh);function uv(e,l){return zn(sa(e,l),1)}function hv(e,l){return zn(sa(e,l),U)}function dv(e,l,k){return k=k===f?1:mt(k),zn(sa(e,l),k)}function sh(e,l){var k=gt(e)?Ln:Yr;return k(e,st(l,3))}function ah(e,l){var k=gt(e)?Yn:iu;return k(e,st(l,3))}var fv=Qs(function(e,l,k){Pt.call(e,k)?e[k].push(l):fr(e,k,[l])});function pv(e,l,k,P){e=hi(e)?e:Yo(e),k=k&&!P?mt(k):0;var G=e.length;return k<0&&(k=En(G+k,0)),ha(e)?k<=G&&e.indexOf(l,k)>-1:!!G&&ve(e,l,k)>-1}var gv=xt(function(e,l,k){var P=-1,G=typeof l=="function",ee=hi(e)?ke(e.length):[];return Yr(e,function(ae){ee[++P]=G?Wt(l,ae,k):ms(ae,l,k)}),ee}),mv=Qs(function(e,l,k){fr(e,k,l)});function sa(e,l){var k=gt(e)?w:uu;return k(e,st(l,3))}function vv(e,l,k,P){return e==null?[]:(gt(l)||(l=l==null?[]:[l]),k=P?f:k,gt(k)||(k=k==null?[]:[k]),pu(e,l,k))}var yv=Qs(function(e,l,k){e[k?0:1].push(l)},function(){return[[],[]]});function wv(e,l,k){var P=gt(e)?O:We,G=arguments.length<3;return P(e,st(l,4),k,G,Yr)}function bv(e,l,k){var P=gt(e)?N:We,G=arguments.length<3;return P(e,st(l,4),k,G,iu)}function xv(e,l){var k=gt(e)?Bn:ru;return k(e,ca(st(l,3)))}function kv(e){var l=gt(e)?Jc:pg;return l(e)}function Cv(e,l,k){(k?ni(e,l,k):l===f)?l=1:l=mt(l);var P=gt(e)?Kp:gg;return P(e,l)}function Sv(e){var l=gt(e)?jp:vg;return l(e)}function _v(e){if(e==null)return 0;if(hi(e))return ha(e)?wt(e):e.length;var l=Qn(e);return l==tt||l==Jt?e.size:Ba(e).length}function Av(e,l,k){var P=gt(e)?B:yg;return k&&ni(e,l,k)&&(l=f),P(e,st(l,3))}var Mv=xt(function(e,l){if(e==null)return[];var k=l.length;return k>1&&ni(e,l[0],l[1])?l=[]:k>2&&ni(l[0],l[1],l[2])&&(l=[l[0]]),pu(e,zn(l,1),[])}),aa=ap||function(){return yt.Date.now()};function $v(e,l){if(typeof l!="function")throw new Qt(_);return e=mt(e),function(){if(--e<1)return l.apply(this,arguments)}}function lh(e,l,k){return l=k?f:l,l=e&&l==null?e.length:l,Er(e,I,f,f,f,f,l)}function ch(e,l){var k;if(typeof l!="function")throw new Qt(_);return e=mt(e),function(){return--e>0&&(k=l.apply(this,arguments)),e<=1&&(l=f),k}}var cl=xt(function(e,l,k){var P=d;if(k.length){var G=Be(k,Go(cl));P|=p}return Er(e,P,l,k,G)}),uh=xt(function(e,l,k){var P=d|g;if(k.length){var G=Be(k,Go(uh));P|=p}return Er(l,P,e,k,G)});function hh(e,l,k){l=k?f:l;var P=Er(e,C,f,f,f,f,f,l);return P.placeholder=hh.placeholder,P}function dh(e,l,k){l=k?f:l;var P=Er(e,y,f,f,f,f,f,l);return P.placeholder=dh.placeholder,P}function fh(e,l,k){var P,G,ee,ae,fe,ye,Le=0,Te=!1,Ie=!1,ze=!0;if(typeof e!="function")throw new Qt(_);l=Bi(l)||0,ln(k)&&(Te=!!k.leading,Ie="maxWait"in k,ee=Ie?En(Bi(k.maxWait)||0,l):ee,ze="trailing"in k?!!k.trailing:ze);function Ze(yn){var tr=P,Nr=G;return P=G=f,Le=yn,ae=e.apply(Nr,tr),ae}function lt(yn){return Le=yn,fe=xs(_t,l),Te?Ze(yn):ae}function vt(yn){var tr=yn-ye,Nr=yn-Le,Ih=l-tr;return Ie?Zn(Ih,ee-Nr):Ih}function rt(yn){var tr=yn-ye,Nr=yn-Le;return ye===f||tr>=l||tr<0||Ie&&Nr>=ee}function _t(){var yn=aa();if(rt(yn))return Tt(yn);fe=xs(_t,vt(yn))}function Tt(yn){return fe=f,ze&&P?Ze(yn):(P=G=f,ae)}function Si(){fe!==f&&Cu(fe),Le=0,P=ye=G=fe=f}function ii(){return fe===f?ae:Tt(aa())}function _i(){var yn=aa(),tr=rt(yn);if(P=arguments,G=this,ye=yn,tr){if(fe===f)return lt(ye);if(Ie)return Cu(fe),fe=xs(_t,l),Ze(ye)}return fe===f&&(fe=xs(_t,l)),ae}return _i.cancel=Si,_i.flush=ii,_i}var Lv=xt(function(e,l){return nu(e,1,l)}),Tv=xt(function(e,l,k){return nu(e,Bi(l)||0,k)});function Ev(e){return Er(e,A)}function la(e,l){if(typeof e!="function"||l!=null&&typeof l!="function")throw new Qt(_);var k=function(){var P=arguments,G=l?l.apply(this,P):P[0],ee=k.cache;if(ee.has(G))return ee.get(G);var ae=e.apply(this,P);return k.cache=ee.set(G,ae)||ee,ae};return k.cache=new(la.Cache||Tr),k}la.Cache=Tr;function ca(e){if(typeof e!="function")throw new Qt(_);return function(){var l=arguments;switch(l.length){case 0:return!e.call(this);case 1:return!e.call(this,l[0]);case 2:return!e.call(this,l[0],l[1]);case 3:return!e.call(this,l[0],l[1],l[2])}return!e.apply(this,l)}}function Rv(e){return ch(2,e)}var Iv=wg(function(e,l){l=l.length==1&>(l[0])?w(l[0],Et(st())):w(zn(l,1),Et(st()));var k=l.length;return xt(function(P){for(var G=-1,ee=Zn(P.length,k);++G<ee;)P[G]=l[G].call(this,P[G]);return Wt(e,this,P)})}),ul=xt(function(e,l){var k=Be(l,Go(ul));return Er(e,p,f,l,k)}),ph=xt(function(e,l){var k=Be(l,Go(ph));return Er(e,$,f,l,k)}),Ov=Rr(function(e,l){return Er(e,M,f,f,f,l)});function Dv(e,l){if(typeof e!="function")throw new Qt(_);return l=l===f?l:mt(l),xt(e,l)}function Nv(e,l){if(typeof e!="function")throw new Qt(_);return l=l==null?0:En(mt(l),0),xt(function(k){var P=k[l],G=Xr(k,0,l);return P&&v(G,P),Wt(e,this,G)})}function Fv(e,l,k){var P=!0,G=!0;if(typeof e!="function")throw new Qt(_);return ln(k)&&(P="leading"in k?!!k.leading:P,G="trailing"in k?!!k.trailing:G),fh(e,l,{leading:P,maxWait:l,trailing:G})}function Wv(e){return lh(e,1)}function Bv(e,l){return ul(qa(l),e)}function Pv(){if(!arguments.length)return[];var e=arguments[0];return gt(e)?e:[e]}function Hv(e){return Ni(e,t)}function zv(e,l){return l=typeof l=="function"?l:f,Ni(e,t,l)}function Uv(e){return Ni(e,i|t)}function Vv(e,l){return l=typeof l=="function"?l:f,Ni(e,i|t,l)}function Kv(e,l){return l==null||tu(e,l,Wn(l))}function er(e,l){return e===l||e!==e&&l!==l}var jv=ta(Na),Gv=ta(function(e,l){return e>=l}),_o=au((function(){return arguments})())?au:function(e){return fn(e)&&Pt.call(e,"callee")&&!Gc.call(e,"callee")},gt=ke.isArray,qv=Gr?Et(Gr):ng;function hi(e){return e!=null&&ua(e.length)&&!Or(e)}function vn(e){return fn(e)&&hi(e)}function Yv(e){return e===!0||e===!1||fn(e)&&ti(e)==_e}var Jr=cp||kl,Zv=hn?Et(hn):ig;function Qv(e){return fn(e)&&e.nodeType===1&&!ks(e)}function Xv(e){if(e==null)return!0;if(hi(e)&&(gt(e)||typeof e=="string"||typeof e.splice=="function"||Jr(e)||qo(e)||_o(e)))return!e.length;var l=Qn(e);if(l==tt||l==Jt)return!e.size;if(bs(e))return!Ba(e).length;for(var k in e)if(Pt.call(e,k))return!1;return!0}function Jv(e,l){return vs(e,l)}function ey(e,l,k){k=typeof k=="function"?k:f;var P=k?k(e,l):f;return P===f?vs(e,l,f,k):!!P}function hl(e){if(!fn(e))return!1;var l=ti(e);return l==Ue||l==qe||typeof e.message=="string"&&typeof e.name=="string"&&!ks(e)}function ty(e){return typeof e=="number"&&Yc(e)}function Or(e){if(!ln(e))return!1;var l=ti(e);return l==nt||l==at||l==Se||l==kn}function gh(e){return typeof e=="number"&&e==mt(e)}function ua(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=q}function ln(e){var l=typeof e;return e!=null&&(l=="object"||l=="function")}function fn(e){return e!=null&&typeof e=="object"}var mh=bi?Et(bi):og;function ny(e,l){return e===l||Wa(e,l,tl(l))}function iy(e,l,k){return k=typeof k=="function"?k:f,Wa(e,l,tl(l),k)}function ry(e){return vh(e)&&e!=+e}function oy(e){if(zg(e))throw new et(R);return lu(e)}function sy(e){return e===null}function ay(e){return e==null}function vh(e){return typeof e=="number"||fn(e)&&ti(e)==Rt}function ks(e){if(!fn(e)||ti(e)!=kt)return!1;var l=Fs(e);if(l===null)return!0;var k=Pt.call(l,"constructor")&&l.constructor;return typeof k=="function"&&k instanceof k&&Is.call(k)==ip}var dl=xi?Et(xi):sg;function ly(e){return gh(e)&&e>=-q&&e<=q}var yh=Ii?Et(Ii):ag;function ha(e){return typeof e=="string"||!gt(e)&&fn(e)&&ti(e)==Un}function Ci(e){return typeof e=="symbol"||fn(e)&&ti(e)==ut}var qo=vo?Et(vo):lg;function cy(e){return e===f}function uy(e){return fn(e)&&Qn(e)==Lt}function hy(e){return fn(e)&&ti(e)==rn}var dy=ta(Pa),fy=ta(function(e,l){return e<=l});function wh(e){if(!e)return[];if(hi(e))return ha(e)?ct(e):ui(e);if(cs&&e[cs])return Me(e[cs]());var l=Qn(e),k=l==tt?Oe:l==Jt?He:Yo;return k(e)}function Dr(e){if(!e)return e===0?e:0;if(e=Bi(e),e===U||e===-U){var l=e<0?-1:1;return l*Q}return e===e?e:0}function mt(e){var l=Dr(e),k=l%1;return l===l?k?l-k:l:0}function bh(e){return e?xo(mt(e),0,ce):0}function Bi(e){if(typeof e=="number")return e;if(Ci(e))return te;if(ln(e)){var l=typeof e.valueOf=="function"?e.valueOf():e;e=ln(l)?l+"":l}if(typeof e!="string")return e===0?e:+e;e=ft(e);var k=jn.test(e);return k||Yt.test(e)?ht(e.slice(2),k?2:8):Do.test(e)?te:+e}function xh(e){return gr(e,di(e))}function py(e){return e?xo(mt(e),-q,q):e===0?e:0}function Ht(e){return e==null?"":ki(e)}var gy=Ko(function(e,l){if(bs(l)||hi(l)){gr(l,Wn(l),e);return}for(var k in l)Pt.call(l,k)&&ps(e,k,l[k])}),kh=Ko(function(e,l){gr(l,di(l),e)}),Ch=Ko(function(e,l,k,P){gr(l,di(l),e,P)}),fl=Ko(function(e,l,k,P){gr(l,Wn(l),e,P)}),my=Rr(Ia);function vy(e,l){var k=Vo(e);return l==null?k:eu(k,l)}var yy=xt(function(e,l){e=bt(e);var k=-1,P=l.length,G=P>2?l[2]:f;for(G&&ni(l[0],l[1],G)&&(P=1);++k<P;)for(var ee=l[k],ae=di(ee),fe=-1,ye=ae.length;++fe<ye;){var Le=ae[fe],Te=e[Le];(Te===f||er(Te,$r[Le])&&!Pt.call(e,Le))&&(e[Le]=ee[Le])}return e}),wy=xt(function(e){return e.push(f,Bu),Wt(Sh,f,e)});function by(e,l){return re(e,st(l,3),pr)}function xy(e,l){return re(e,st(l,3),Da)}function ky(e,l){return e==null?e:Oa(e,st(l,3),di)}function Cy(e,l){return e==null?e:ou(e,st(l,3),di)}function Sy(e,l){return e&&pr(e,st(l,3))}function _y(e,l){return e&&Da(e,st(l,3))}function Ay(e){return e==null?[]:Gs(e,Wn(e))}function My(e){return e==null?[]:Gs(e,di(e))}function pl(e,l,k){var P=e==null?f:ko(e,l);return P===f?k:P}function $y(e,l){return e!=null&&zu(e,l,Xp)}function gl(e,l){return e!=null&&zu(e,l,Jp)}var Ly=Ou(function(e,l,k){l!=null&&typeof l.toString!="function"&&(l=Os.call(l)),e[l]=k},vl(fi)),Ty=Ou(function(e,l,k){l!=null&&typeof l.toString!="function"&&(l=Os.call(l)),Pt.call(e,l)?e[l].push(k):e[l]=[k]},st),Ey=xt(ms);function Wn(e){return hi(e)?Xc(e):Ba(e)}function di(e){return hi(e)?Xc(e,!0):cg(e)}function Ry(e,l){var k={};return l=st(l,3),pr(e,function(P,G,ee){fr(k,l(P,G,ee),P)}),k}function Iy(e,l){var k={};return l=st(l,3),pr(e,function(P,G,ee){fr(k,G,l(P,G,ee))}),k}var Oy=Ko(function(e,l,k){qs(e,l,k)}),Sh=Ko(function(e,l,k,P){qs(e,l,k,P)}),Dy=Rr(function(e,l){var k={};if(e==null)return k;var P=!1;l=w(l,function(ee){return ee=Qr(ee,e),P||(P=ee.length>1),ee}),gr(e,Ja(e),k),P&&(k=Ni(k,i|r|t,Tg));for(var G=l.length;G--;)Ka(k,l[G]);return k});function Ny(e,l){return _h(e,ca(st(l)))}var Fy=Rr(function(e,l){return e==null?{}:hg(e,l)});function _h(e,l){if(e==null)return{};var k=w(Ja(e),function(P){return[P]});return l=st(l),gu(e,k,function(P,G){return l(P,G[0])})}function Wy(e,l,k){l=Qr(l,e);var P=-1,G=l.length;for(G||(G=1,e=f);++P<G;){var ee=e==null?f:e[Ji(l[P])];ee===f&&(P=G,ee=k),e=Or(ee)?ee.call(e):ee}return e}function By(e,l,k){return e==null?e:ys(e,l,k)}function Py(e,l,k,P){return P=typeof P=="function"?P:f,e==null?e:ys(e,l,k,P)}var Ah=Fu(Wn),Mh=Fu(di);function Hy(e,l,k){var P=gt(e),G=P||Jr(e)||qo(e);if(l=st(l,4),k==null){var ee=e&&e.constructor;G?k=P?new ee:[]:ln(e)?k=Or(ee)?Vo(Fs(e)):{}:k={}}return(G?Ln:pr)(e,function(ae,fe,ye){return l(k,ae,fe,ye)}),k}function zy(e,l){return e==null?!0:Ka(e,l)}function Uy(e,l,k){return e==null?e:bu(e,l,qa(k))}function Vy(e,l,k,P){return P=typeof P=="function"?P:f,e==null?e:bu(e,l,qa(k),P)}function Yo(e){return e==null?[]:St(e,Wn(e))}function Ky(e){return e==null?[]:St(e,di(e))}function jy(e,l,k){return k===f&&(k=l,l=f),k!==f&&(k=Bi(k),k=k===k?k:0),l!==f&&(l=Bi(l),l=l===l?l:0),xo(Bi(e),l,k)}function Gy(e,l,k){return l=Dr(l),k===f?(k=l,l=0):k=Dr(k),e=Bi(e),eg(e,l,k)}function qy(e,l,k){if(k&&typeof k!="boolean"&&ni(e,l,k)&&(l=k=f),k===f&&(typeof l=="boolean"?(k=l,l=f):typeof e=="boolean"&&(k=e,e=f)),e===f&&l===f?(e=0,l=1):(e=Dr(e),l===f?(l=e,e=0):l=Dr(l)),e>l){var P=e;e=l,l=P}if(k||e%1||l%1){var G=Zc();return Zn(e+G*(l-e+Zt("1e-"+((G+"").length-1))),l)}return za(e,l)}var Yy=jo(function(e,l,k){return l=l.toLowerCase(),e+(k?$h(l):l)});function $h(e){return ml(Ht(e).toLowerCase())}function Lh(e){return e=Ht(e),e&&e.replace(xr,K).replace(Zi,"")}function Zy(e,l,k){e=Ht(e),l=ki(l);var P=e.length;k=k===f?P:xo(mt(k),0,P);var G=k;return k-=l.length,k>=0&&e.slice(k,G)==l}function Qy(e){return e=Ht(e),e&&mi.test(e)?e.replace(br,Z):e}function Xy(e){return e=Ht(e),e&&gn.test(e)?e.replace(vi,"\\$&"):e}var Jy=jo(function(e,l,k){return e+(k?"-":"")+l.toLowerCase()}),ew=jo(function(e,l,k){return e+(k?" ":"")+l.toLowerCase()}),tw=Eu("toLowerCase");function nw(e,l,k){e=Ht(e),l=mt(l);var P=l?wt(e):0;if(!l||P>=l)return e;var G=(l-P)/2;return ea(Hs(G),k)+e+ea(Ps(G),k)}function iw(e,l,k){e=Ht(e),l=mt(l);var P=l?wt(e):0;return l&&P<l?e+ea(l-P,k):e}function rw(e,l,k){e=Ht(e),l=mt(l);var P=l?wt(e):0;return l&&P<l?ea(l-P,k)+e:e}function ow(e,l,k){return k||l==null?l=0:l&&(l=+l),fp(Ht(e).replace(Fn,""),l||0)}function sw(e,l,k){return(k?ni(e,l,k):l===f)?l=1:l=mt(l),Ua(Ht(e),l)}function aw(){var e=arguments,l=Ht(e[0]);return e.length<3?l:l.replace(e[1],e[2])}var lw=jo(function(e,l,k){return e+(k?"_":"")+l.toLowerCase()});function cw(e,l,k){return k&&typeof k!="number"&&ni(e,l,k)&&(l=k=f),k=k===f?ce:k>>>0,k?(e=Ht(e),e&&(typeof l=="string"||l!=null&&!dl(l))&&(l=ki(l),!l&&pe(e))?Xr(ct(e),0,k):e.split(l,k)):[]}var uw=jo(function(e,l,k){return e+(k?" ":"")+ml(l)});function hw(e,l,k){return e=Ht(e),k=k==null?0:xo(mt(k),0,e.length),l=ki(l),e.slice(k,k+l.length)==l}function dw(e,l,k){var P=J.templateSettings;k&&ni(e,l,k)&&(l=f),e=Ht(e),l=fl({},l,P,Wu);var G=fl({},l.imports,P.imports,Wu),ee=Wn(G),ae=St(G,ee);Ln(ee,function(rt){if(Oo.test(rt))throw new et(u)});var fe,ye,Le=0,Te=l.interpolate||An,Ie="__p += '",ze=ci((l.escape||An).source+"|"+Te.source+"|"+(Te===io?Li:An).source+"|"+(l.evaluate||An).source+"|$","g"),Ze="//# sourceURL="+(Pt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mo+"]")+`
|
|
1453
|
+
`;e.replace(ze,function(rt,_t,Tt,Si,ii,_i){return Tt||(Tt=Si),Ie+=e.slice(Le,_i).replace(kr,ie),_t&&(fe=!0,Ie+=`' +
|
|
1454
|
+
__e(`+_t+`) +
|
|
1455
|
+
'`),ii&&(ye=!0,Ie+=`';
|
|
1456
|
+
`+ii+`;
|
|
1457
|
+
__p += '`),Tt&&(Ie+=`' +
|
|
1458
|
+
((__t = (`+Tt+`)) == null ? '' : __t) +
|
|
1459
|
+
'`),Le=_i+rt.length,rt}),Ie+=`';
|
|
1460
|
+
`;var lt=Pt.call(l,"variable")&&l.variable;if(!lt)Ie=`with (obj) {
|
|
1461
|
+
`+Ie+`
|
|
1462
|
+
}
|
|
1463
|
+
`;else if(Oo.test(lt))throw new et(S);Ie=(ye?Ie.replace(Ui,""):Ie).replace(yr,"$1").replace(Kn,"$1;"),Ie="function("+(lt||"obj")+`) {
|
|
1464
|
+
`+(lt?"":`obj || (obj = {});
|
|
1465
|
+
`)+"var __t, __p = ''"+(fe?", __e = _.escape":"")+(ye?`, __j = Array.prototype.join;
|
|
1466
|
+
function print() { __p += __j.call(arguments, '') }
|
|
1467
|
+
`:`;
|
|
1468
|
+
`)+Ie+`return __p
|
|
1469
|
+
}`;var vt=Eh(function(){return pt(ee,Ze+"return "+Ie).apply(f,ae)});if(vt.source=Ie,hl(vt))throw vt;return vt}function fw(e){return Ht(e).toLowerCase()}function pw(e){return Ht(e).toUpperCase()}function gw(e,l,k){if(e=Ht(e),e&&(k||l===f))return ft(e);if(!e||!(l=ki(l)))return e;var P=ct(e),G=ct(l),ee=dn(P,G),ae=Tn(P,G)+1;return Xr(P,ee,ae).join("")}function mw(e,l,k){if(e=Ht(e),e&&(k||l===f))return e.slice(0,it(e)+1);if(!e||!(l=ki(l)))return e;var P=ct(e),G=Tn(P,ct(l))+1;return Xr(P,0,G).join("")}function vw(e,l,k){if(e=Ht(e),e&&(k||l===f))return e.replace(Fn,"");if(!e||!(l=ki(l)))return e;var P=ct(e),G=dn(P,ct(l));return Xr(P,G).join("")}function yw(e,l){var k=H,P=D;if(ln(l)){var G="separator"in l?l.separator:G;k="length"in l?mt(l.length):k,P="omission"in l?ki(l.omission):P}e=Ht(e);var ee=e.length;if(pe(e)){var ae=ct(e);ee=ae.length}if(k>=ee)return e;var fe=k-wt(P);if(fe<1)return P;var ye=ae?Xr(ae,0,fe).join(""):e.slice(0,fe);if(G===f)return ye+P;if(ae&&(fe+=ye.length-fe),dl(G)){if(e.slice(fe).search(G)){var Le,Te=ye;for(G.global||(G=ci(G.source,Ht(Ct.exec(G))+"g")),G.lastIndex=0;Le=G.exec(Te);)var Ie=Le.index;ye=ye.slice(0,Ie===f?fe:Ie)}}else if(e.indexOf(ki(G),fe)!=fe){var ze=ye.lastIndexOf(G);ze>-1&&(ye=ye.slice(0,ze))}return ye+P}function ww(e){return e=Ht(e),e&&ss.test(e)?e.replace(wr,Qe):e}var bw=jo(function(e,l,k){return e+(k?" ":"")+l.toUpperCase()}),ml=Eu("toUpperCase");function Th(e,l,k){return e=Ht(e),l=k?f:l,l===f?be(e)?bn(e):X(e):e.match(l)||[]}var Eh=xt(function(e,l){try{return Wt(e,f,l)}catch(k){return hl(k)?k:new et(k)}}),xw=Rr(function(e,l){return Ln(l,function(k){k=Ji(k),fr(e,k,cl(e[k],e))}),e});function kw(e){var l=e==null?0:e.length,k=st();return e=l?w(e,function(P){if(typeof P[1]!="function")throw new Qt(_);return[k(P[0]),P[1]]}):[],xt(function(P){for(var G=-1;++G<l;){var ee=e[G];if(Wt(ee[0],this,P))return Wt(ee[1],this,P)}})}function Cw(e){return Yp(Ni(e,i))}function vl(e){return function(){return e}}function Sw(e,l){return e==null||e!==e?l:e}var _w=Iu(),Aw=Iu(!0);function fi(e){return e}function yl(e){return cu(typeof e=="function"?e:Ni(e,i))}function Mw(e){return hu(Ni(e,i))}function $w(e,l){return du(e,Ni(l,i))}var Lw=xt(function(e,l){return function(k){return ms(k,e,l)}}),Tw=xt(function(e,l){return function(k){return ms(e,k,l)}});function wl(e,l,k){var P=Wn(l),G=Gs(l,P);k==null&&!(ln(l)&&(G.length||!P.length))&&(k=l,l=e,e=this,G=Gs(l,Wn(l)));var ee=!(ln(k)&&"chain"in k)||!!k.chain,ae=Or(e);return Ln(G,function(fe){var ye=l[fe];e[fe]=ye,ae&&(e.prototype[fe]=function(){var Le=this.__chain__;if(ee||Le){var Te=e(this.__wrapped__),Ie=Te.__actions__=ui(this.__actions__);return Ie.push({func:ye,args:arguments,thisArg:e}),Te.__chain__=Le,Te}return ye.apply(e,v([this.value()],arguments))})}),e}function Ew(){return yt._===this&&(yt._=rp),this}function bl(){}function Rw(e){return e=mt(e),xt(function(l){return fu(l,e)})}var Iw=Za(w),Ow=Za(dr),Dw=Za(B);function Rh(e){return il(e)?Ee(Ji(e)):dg(e)}function Nw(e){return function(l){return e==null?f:ko(e,l)}}var Fw=Du(),Ww=Du(!0);function xl(){return[]}function kl(){return!1}function Bw(){return{}}function Pw(){return""}function Hw(){return!0}function zw(e,l){if(e=mt(e),e<1||e>q)return[];var k=ce,P=Zn(e,ce);l=st(l),e-=ce;for(var G=Ke(P,l);++k<e;)l(k);return G}function Uw(e){return gt(e)?w(e,Ji):Ci(e)?[e]:ui(Qu(Ht(e)))}function Vw(e){var l=++np;return Ht(e)+l}var Kw=Js(function(e,l){return e+l},0),jw=Qa("ceil"),Gw=Js(function(e,l){return e/l},1),qw=Qa("floor");function Yw(e){return e&&e.length?js(e,fi,Na):f}function Zw(e,l){return e&&e.length?js(e,st(l,2),Na):f}function Qw(e){return we(e,fi)}function Xw(e,l){return we(e,st(l,2))}function Jw(e){return e&&e.length?js(e,fi,Pa):f}function e0(e,l){return e&&e.length?js(e,st(l,2),Pa):f}var t0=Js(function(e,l){return e*l},1),n0=Qa("round"),i0=Js(function(e,l){return e-l},0);function r0(e){return e&&e.length?Ye(e,fi):0}function o0(e,l){return e&&e.length?Ye(e,st(l,2)):0}return J.after=$v,J.ary=lh,J.assign=gy,J.assignIn=kh,J.assignInWith=Ch,J.assignWith=fl,J.at=my,J.before=ch,J.bind=cl,J.bindAll=xw,J.bindKey=uh,J.castArray=Pv,J.chain=oh,J.chunk=Yg,J.compact=Zg,J.concat=Qg,J.cond=kw,J.conforms=Cw,J.constant=vl,J.countBy=ov,J.create=vy,J.curry=hh,J.curryRight=dh,J.debounce=fh,J.defaults=yy,J.defaultsDeep=wy,J.defer=Lv,J.delay=Tv,J.difference=Xg,J.differenceBy=Jg,J.differenceWith=em,J.drop=tm,J.dropRight=nm,J.dropRightWhile=im,J.dropWhile=rm,J.fill=om,J.filter=av,J.flatMap=uv,J.flatMapDeep=hv,J.flatMapDepth=dv,J.flatten=th,J.flattenDeep=sm,J.flattenDepth=am,J.flip=Ev,J.flow=_w,J.flowRight=Aw,J.fromPairs=lm,J.functions=Ay,J.functionsIn=My,J.groupBy=fv,J.initial=um,J.intersection=hm,J.intersectionBy=dm,J.intersectionWith=fm,J.invert=Ly,J.invertBy=Ty,J.invokeMap=gv,J.iteratee=yl,J.keyBy=mv,J.keys=Wn,J.keysIn=di,J.map=sa,J.mapKeys=Ry,J.mapValues=Iy,J.matches=Mw,J.matchesProperty=$w,J.memoize=la,J.merge=Oy,J.mergeWith=Sh,J.method=Lw,J.methodOf=Tw,J.mixin=wl,J.negate=ca,J.nthArg=Rw,J.omit=Dy,J.omitBy=Ny,J.once=Rv,J.orderBy=vv,J.over=Iw,J.overArgs=Iv,J.overEvery=Ow,J.overSome=Dw,J.partial=ul,J.partialRight=ph,J.partition=yv,J.pick=Fy,J.pickBy=_h,J.property=Rh,J.propertyOf=Nw,J.pull=vm,J.pullAll=ih,J.pullAllBy=ym,J.pullAllWith=wm,J.pullAt=bm,J.range=Fw,J.rangeRight=Ww,J.rearg=Ov,J.reject=xv,J.remove=xm,J.rest=Dv,J.reverse=al,J.sampleSize=Cv,J.set=By,J.setWith=Py,J.shuffle=Sv,J.slice=km,J.sortBy=Mv,J.sortedUniq=Lm,J.sortedUniqBy=Tm,J.split=cw,J.spread=Nv,J.tail=Em,J.take=Rm,J.takeRight=Im,J.takeRightWhile=Om,J.takeWhile=Dm,J.tap=Zm,J.throttle=Fv,J.thru=oa,J.toArray=wh,J.toPairs=Ah,J.toPairsIn=Mh,J.toPath=Uw,J.toPlainObject=xh,J.transform=Hy,J.unary=Wv,J.union=Nm,J.unionBy=Fm,J.unionWith=Wm,J.uniq=Bm,J.uniqBy=Pm,J.uniqWith=Hm,J.unset=zy,J.unzip=ll,J.unzipWith=rh,J.update=Uy,J.updateWith=Vy,J.values=Yo,J.valuesIn=Ky,J.without=zm,J.words=Th,J.wrap=Bv,J.xor=Um,J.xorBy=Vm,J.xorWith=Km,J.zip=jm,J.zipObject=Gm,J.zipObjectDeep=qm,J.zipWith=Ym,J.entries=Ah,J.entriesIn=Mh,J.extend=kh,J.extendWith=Ch,wl(J,J),J.add=Kw,J.attempt=Eh,J.camelCase=Yy,J.capitalize=$h,J.ceil=jw,J.clamp=jy,J.clone=Hv,J.cloneDeep=Uv,J.cloneDeepWith=Vv,J.cloneWith=zv,J.conformsTo=Kv,J.deburr=Lh,J.defaultTo=Sw,J.divide=Gw,J.endsWith=Zy,J.eq=er,J.escape=Qy,J.escapeRegExp=Xy,J.every=sv,J.find=lv,J.findIndex=Ju,J.findKey=by,J.findLast=cv,J.findLastIndex=eh,J.findLastKey=xy,J.floor=qw,J.forEach=sh,J.forEachRight=ah,J.forIn=ky,J.forInRight=Cy,J.forOwn=Sy,J.forOwnRight=_y,J.get=pl,J.gt=jv,J.gte=Gv,J.has=$y,J.hasIn=gl,J.head=nh,J.identity=fi,J.includes=pv,J.indexOf=cm,J.inRange=Gy,J.invoke=Ey,J.isArguments=_o,J.isArray=gt,J.isArrayBuffer=qv,J.isArrayLike=hi,J.isArrayLikeObject=vn,J.isBoolean=Yv,J.isBuffer=Jr,J.isDate=Zv,J.isElement=Qv,J.isEmpty=Xv,J.isEqual=Jv,J.isEqualWith=ey,J.isError=hl,J.isFinite=ty,J.isFunction=Or,J.isInteger=gh,J.isLength=ua,J.isMap=mh,J.isMatch=ny,J.isMatchWith=iy,J.isNaN=ry,J.isNative=oy,J.isNil=ay,J.isNull=sy,J.isNumber=vh,J.isObject=ln,J.isObjectLike=fn,J.isPlainObject=ks,J.isRegExp=dl,J.isSafeInteger=ly,J.isSet=yh,J.isString=ha,J.isSymbol=Ci,J.isTypedArray=qo,J.isUndefined=cy,J.isWeakMap=uy,J.isWeakSet=hy,J.join=pm,J.kebabCase=Jy,J.last=Wi,J.lastIndexOf=gm,J.lowerCase=ew,J.lowerFirst=tw,J.lt=dy,J.lte=fy,J.max=Yw,J.maxBy=Zw,J.mean=Qw,J.meanBy=Xw,J.min=Jw,J.minBy=e0,J.stubArray=xl,J.stubFalse=kl,J.stubObject=Bw,J.stubString=Pw,J.stubTrue=Hw,J.multiply=t0,J.nth=mm,J.noConflict=Ew,J.noop=bl,J.now=aa,J.pad=nw,J.padEnd=iw,J.padStart=rw,J.parseInt=ow,J.random=qy,J.reduce=wv,J.reduceRight=bv,J.repeat=sw,J.replace=aw,J.result=Wy,J.round=n0,J.runInContext=ge,J.sample=kv,J.size=_v,J.snakeCase=lw,J.some=Av,J.sortedIndex=Cm,J.sortedIndexBy=Sm,J.sortedIndexOf=_m,J.sortedLastIndex=Am,J.sortedLastIndexBy=Mm,J.sortedLastIndexOf=$m,J.startCase=uw,J.startsWith=hw,J.subtract=i0,J.sum=r0,J.sumBy=o0,J.template=dw,J.times=zw,J.toFinite=Dr,J.toInteger=mt,J.toLength=bh,J.toLower=fw,J.toNumber=Bi,J.toSafeInteger=py,J.toString=Ht,J.toUpper=pw,J.trim=gw,J.trimEnd=mw,J.trimStart=vw,J.truncate=yw,J.unescape=ww,J.uniqueId=Vw,J.upperCase=bw,J.upperFirst=ml,J.each=sh,J.eachRight=ah,J.first=nh,wl(J,(function(){var e={};return pr(J,function(l,k){Pt.call(J.prototype,k)||(e[k]=l)}),e})(),{chain:!1}),J.VERSION=b,Ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){J[e].placeholder=J}),Ln(["drop","take"],function(e,l){Mt.prototype[e]=function(k){k=k===f?1:En(mt(k),0);var P=this.__filtered__&&!l?new Mt(this):this.clone();return P.__filtered__?P.__takeCount__=Zn(k,P.__takeCount__):P.__views__.push({size:Zn(k,ce),type:e+(P.__dir__<0?"Right":"")}),P},Mt.prototype[e+"Right"]=function(k){return this.reverse()[e](k).reverse()}}),Ln(["filter","map","takeWhile"],function(e,l){var k=l+1,P=k==m||k==W;Mt.prototype[e]=function(G){var ee=this.clone();return ee.__iteratees__.push({iteratee:st(G,3),type:k}),ee.__filtered__=ee.__filtered__||P,ee}}),Ln(["head","last"],function(e,l){var k="take"+(l?"Right":"");Mt.prototype[e]=function(){return this[k](1).value()[0]}}),Ln(["initial","tail"],function(e,l){var k="drop"+(l?"":"Right");Mt.prototype[e]=function(){return this.__filtered__?new Mt(this):this[k](1)}}),Mt.prototype.compact=function(){return this.filter(fi)},Mt.prototype.find=function(e){return this.filter(e).head()},Mt.prototype.findLast=function(e){return this.reverse().find(e)},Mt.prototype.invokeMap=xt(function(e,l){return typeof e=="function"?new Mt(this):this.map(function(k){return ms(k,e,l)})}),Mt.prototype.reject=function(e){return this.filter(ca(st(e)))},Mt.prototype.slice=function(e,l){e=mt(e);var k=this;return k.__filtered__&&(e>0||l<0)?new Mt(k):(e<0?k=k.takeRight(-e):e&&(k=k.drop(e)),l!==f&&(l=mt(l),k=l<0?k.dropRight(-l):k.take(l-e)),k)},Mt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Mt.prototype.toArray=function(){return this.take(ce)},pr(Mt.prototype,function(e,l){var k=/^(?:filter|find|map|reject)|While$/.test(l),P=/^(?:head|last)$/.test(l),G=J[P?"take"+(l=="last"?"Right":""):l],ee=P||/^find/.test(l);G&&(J.prototype[l]=function(){var ae=this.__wrapped__,fe=P?[1]:arguments,ye=ae instanceof Mt,Le=fe[0],Te=ye||gt(ae),Ie=function(_t){var Tt=G.apply(J,v([_t],fe));return P&&ze?Tt[0]:Tt};Te&&k&&typeof Le=="function"&&Le.length!=1&&(ye=Te=!1);var ze=this.__chain__,Ze=!!this.__actions__.length,lt=ee&&!ze,vt=ye&&!Ze;if(!ee&&Te){ae=vt?ae:new Mt(this);var rt=e.apply(ae,fe);return rt.__actions__.push({func:oa,args:[Ie],thisArg:f}),new Di(rt,ze)}return lt&&vt?e.apply(this,fe):(rt=this.thru(Ie),lt?P?rt.value()[0]:rt.value():rt)})}),Ln(["pop","push","shift","sort","splice","unshift"],function(e){var l=Oi[e],k=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",P=/^(?:pop|shift)$/.test(e);J.prototype[e]=function(){var G=arguments;if(P&&!this.__chain__){var ee=this.value();return l.apply(gt(ee)?ee:[],G)}return this[k](function(ae){return l.apply(gt(ae)?ae:[],G)})}}),pr(Mt.prototype,function(e,l){var k=J[l];if(k){var P=k.name+"";Pt.call(Uo,P)||(Uo[P]=[]),Uo[P].push({name:l,func:k})}}),Uo[Xs(f,g).name]=[{name:"wrapper",func:f}],Mt.prototype.clone=bp,Mt.prototype.reverse=xp,Mt.prototype.value=kp,J.prototype.at=Qm,J.prototype.chain=Xm,J.prototype.commit=Jm,J.prototype.next=ev,J.prototype.plant=nv,J.prototype.reverse=iv,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=rv,J.prototype.first=J.prototype.head,cs&&(J.prototype[cs]=tv),J}),Vt=Bt();wn?((wn.exports=Vt)._=Vt,qn._=Vt):yt._=Vt}).call(w0)})(_s,_s.exports)),_s.exports}var df=b0();const ff=wa(df),x0={mixins:[hf],props:{calculatePacketText:{type:Function,default:F=>`${F}`}},data:function(){return{history:[],historyPointer:-1,filterText:null,paused:!1,pausedAt:0,pauseOffset:0,pausedHistory:[],rows:1,textarea:null,displayText:"",rules:{required:F=>!!F||"Required.",min:F=>F>=1||"Minimum: 1",max:F=>Number.parseInt(F)<=this.currentConfig.history||`Maximum: ${this.currentConfig.history}`}}},computed:{allInstantSettings:function(){return`${this.currentConfig.showLineAddress}|${this.currentConfig.showTimestamp}|${this.currentConfig.showAscii}|${this.currentConfig.newestAtTop}|${this.pauseOffset}`},allDebouncedSettings:function(){return`${this.currentConfig.bytesPerLine}|${this.currentConfig.packetsToShow}|${this.filterText}`}},watch:{latestData:function(F){F.forEach(V=>{"buffer"in V&&(V.buffer=atob(V.buffer)),this.historyPointer=++this.historyPointer%this.currentConfig.history,Number.isNaN(this.historyPointer)&&(this.historyPointer=0),this.history[this.historyPointer]=V,this.paused||this.rebuildDisplayText()})},paused:function(F){F?(this.pausedAt=this.historyPointer,this.pausedHistory=this.history.slice()):(this.pauseOffset=0,this.rebuildDisplayText())},allInstantSettings:function(){this.rebuildDisplayText()},allDebouncedSettings:ff.debounce(function(){this.rebuildDisplayText()},300)},created:function(){const F={history:300,showTimestamp:!0,showAscii:!0,showLineAddress:!0,packetsToShow:1,bytesPerLine:16,newestAtTop:!0};this.currentConfig={...F,...this.currentConfig}},methods:{rebuildDisplayText:function(){let F=this.paused?this.pausedHistory:this.history;const V=this.paused?this.pausedAt:this.historyPointer;if(F=F.filter(z=>z).slice(V+1,this.currentConfig.history).concat(F.slice(0,V+1)).map(this.calculatePacketText).map(this.matchesSearch),this.paused){const z=Math.max(F.length+this.pauseOffset,1);F=F.slice(0,z)}const f=Math.max(this.currentConfig.packetsToShow,1);F=F.slice(-f),this.currentConfig.newestAtTop&&(F=F.reverse());let b=`
|
|
1470
|
+
`;this.filterText!==null&&(b+=`
|
|
1471
|
+
`),this.displayText=F.join(b),this.rows=this.displayText.split(`
|
|
1472
|
+
`).length},matchesSearch:function(F){return this.filterText===null?F:F.split(`
|
|
1473
|
+
`).filter(V=>V.toLowerCase().includes(this.filterText.toLowerCase())).join(`
|
|
1474
|
+
`)},download:function(){const F=new Blob([this.displayText],{type:"text/plain"}),V=document.createElement("a");let f=URL.createObjectURL(F);V.href=f,V.setAttribute("download",`${a0.format(new Date,"yyyy_MM_dd_HH_mm_ss")}.txt`),V.click(),window.URL.revokeObjectURL(f)},pause:function(){this.paused=!0},togglePlayPause:function(){this.paused=!this.paused},stepBackward:function(){this.pause(),this.pauseOffset--},stepForward:function(){this.pause(),this.pauseOffset++}}},k0={class:"pa-2"},C0={class:"text-area-container"},S0={class:"floating-buttons"};function _0(F,V,f,b,z,R){const _=je.resolveComponent("v-text-field"),S=je.resolveComponent("v-col"),u=je.resolveComponent("v-slider"),h=je.resolveComponent("v-row"),s=je.resolveComponent("v-textarea"),o=je.resolveComponent("v-btn"),i=je.resolveComponent("v-card-title"),r=je.resolveComponent("v-switch"),t=je.resolveComponent("v-radio"),n=je.resolveComponent("v-radio-group"),a=je.resolveComponent("v-card-text"),d=je.resolveComponent("v-card"),g=je.resolveComponent("v-menu");return je.openBlock(),je.createElementBlock("div",k0,[je.createVNode(h,{dense:"",class:"mb-2"},{default:je.withCtx(()=>[je.createVNode(S,{cols:"4"},{default:je.withCtx(()=>[je.createVNode(_,{modelValue:F.filterText,"onUpdate:modelValue":V[0]||(V[0]=L=>F.filterText=L),label:"Search",class:"search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"history-component-search"},null,8,["modelValue"])]),_:1}),je.createVNode(S,{cols:"8",class:"mt-1"},{default:je.withCtx(()=>[je.createVNode(u,{modelValue:F.pauseOffset,"onUpdate:modelValue":V[1]||(V[1]=L=>F.pauseOffset=L),"prepend-icon":"mdi-step-backward","append-icon":"mdi-step-forward",min:1-F.currentConfig.history,max:0,"hide-details":"",onMousedown:R.pause,"onClick:prepend":R.stepBackward,"onClick:append":R.stepForward},null,8,["modelValue","min","onMousedown","onClick:prepend","onClick:append"])]),_:1})]),_:1}),je.createVNode(h,{dense:"","no-gutters":""},{default:je.withCtx(()=>[je.createVNode(S,null,{default:je.withCtx(()=>[je.createElementVNode("div",C0,[je.createVNode(s,{"model-value":F.displayText,rows:F.rows,"no-resize":"",readonly:"",variant:"solo",flat:"","hide-details":"","data-test":"history-component-text-area"},null,8,["model-value","rows"]),je.createElementVNode("div",S0,[je.createVNode(g,{"close-on-content-click":!1,"min-width":700},{activator:je.withCtx(({props:L})=>[je.createVNode(o,je.mergeProps({class:"ml-2",color:"secondary"},L,{icon:"astro:settings",size:"small","aria-label":"Settings","data-test":"history-component-open-settings"}),null,16)]),default:je.withCtx(()=>[je.createVNode(d,null,{default:je.withCtx(()=>[je.createVNode(i,{"data-test":"display-settings-card"},{default:je.withCtx(()=>[...V[9]||(V[9]=[je.createTextVNode(" Display settings ",-1)])]),_:1}),je.createVNode(a,null,{default:je.withCtx(()=>[je.createVNode(h,null,{default:je.withCtx(()=>[je.createVNode(S,null,{default:je.withCtx(()=>[je.createVNode(r,{modelValue:F.currentConfig.showTimestamp,"onUpdate:modelValue":V[2]||(V[2]=L=>F.currentConfig.showTimestamp=L),label:"Show timestamp",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-timestamp"},null,8,["modelValue"]),F.hasRaw?(je.openBlock(),je.createBlock(r,{key:0,modelValue:F.currentConfig.showAscii,"onUpdate:modelValue":V[3]||(V[3]=L=>F.currentConfig.showAscii=L),label:"Show ASCII",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-ascii"},null,8,["modelValue"])):je.createCommentVNode("",!0),F.hasRaw?(je.openBlock(),je.createBlock(r,{key:1,modelValue:F.currentConfig.showLineAddress,"onUpdate:modelValue":V[4]||(V[4]=L=>F.currentConfig.showLineAddress=L),label:"Show line address",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-address"},null,8,["modelValue"])):je.createCommentVNode("",!0)]),_:1}),je.createVNode(S,null,{default:je.withCtx(()=>[je.createVNode(n,{modelValue:F.currentConfig.newestAtTop,"onUpdate:modelValue":V[5]||(V[5]=L=>F.currentConfig.newestAtTop=L),label:"Print newest to the"},{default:je.withCtx(()=>[je.createVNode(t,{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}),je.createVNode(t,{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"})]),_:1},8,["modelValue"])]),_:1}),je.createVNode(S,null,{default:je.withCtx(()=>[je.createVNode(_,{modelValue:F.currentConfig.history,"onUpdate:modelValue":V[6]||(V[6]=L=>F.currentConfig.history=L),label:"History Buffer",type:"number",min:"1","persistent-hint":"",rules:[F.rules.required,F.rules.min],"data-test":"history-component-settings-history"},null,8,["modelValue","rules"]),F.hasRaw?(je.openBlock(),je.createBlock(_,{key:0,modelValue:F.currentConfig.bytesPerLine,"onUpdate:modelValue":V[7]||(V[7]=L=>F.currentConfig.bytesPerLine=L),label:"Bytes per line",type:"number",min:"1",rules:[F.rules.required,F.rules.min],"data-test":"history-component-settings-num-bytes"},null,8,["modelValue","rules"])):je.createCommentVNode("",!0),je.createVNode(_,{modelValue:F.currentConfig.packetsToShow,"onUpdate:modelValue":V[8]||(V[8]=L=>F.currentConfig.packetsToShow=L),label:"Entries to show",type:"number",min:"1",hint:`Maximum: ${F.currentConfig.history}`,"persistent-hint":"",rules:[F.rules.required,F.rules.min,F.rules.max],"data-test":"history-component-settings-num-packets"},null,8,["modelValue","hint","rules"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),je.createVNode(o,{class:"ml-2",color:"secondary",icon:"mdi-file-download",size:"small","aria-label":"Download","data-test":"history-component-download",onClick:R.download},null,8,["onClick"]),je.createVNode(o,{class:je.normalizeClass(["ml-2",{blink:F.paused}]),color:"primary",icon:F.paused?"mdi-play":"mdi-pause",size:"large","aria-label":F.paused?"Play":"Pause","data-test":"history-component-play-pause",onClick:R.togglePlayPause},null,8,["class","icon","aria-label","onClick"])])])]),_:1})]),_:1})])}const A0=s0._export_sfc(x0,[["render",_0],["__scopeId","data-v-f489e1c6"]]);var Il={exports:{}},Kh;function M0(){return Kh||(Kh=1,(function(F,V){(function(){ace.require(["ace/mode/text"],function(f){F&&(F.exports=f)})})()})(Il)),Il.exports}M0();const $0=!0,On="u-",L0="uplot",T0=On+"hz",E0=On+"vt",R0=On+"title",I0=On+"wrap",O0=On+"under",D0=On+"over",N0=On+"axis",$o=On+"off",F0=On+"select",W0=On+"cursor-x",B0=On+"cursor-y",P0=On+"cursor-pt",H0=On+"legend",z0=On+"live",U0=On+"inline",V0=On+"series",K0=On+"marker",jh=On+"label",j0=On+"value",As="width",Ms="height",Cs="top",Gh="bottom",Zo="left",Ol="right",Lc="#000",qh=Lc+"0",Dl="mousemove",Yh="mousedown",Nl="mouseup",Zh="mouseenter",Qh="mouseleave",Xh="dblclick",G0="resize",q0="scroll",Jh="change",ma="dppxchange",Tc="--",is=typeof window<"u",wc=is?document:null,Xo=is?window:null,Y0=is?navigator:null;let Ft,da;function bc(){let F=devicePixelRatio;Ft!=F&&(Ft=F,da&&kc(Jh,da,bc),da=matchMedia(`(min-resolution: ${Ft-.001}dppx) and (max-resolution: ${Ft+.001}dppx)`),Lo(Jh,da,bc),Xo.dispatchEvent(new CustomEvent(ma)))}function Ai(F,V){if(V!=null){let f=F.classList;!f.contains(V)&&f.add(V)}}function xc(F,V){let f=F.classList;f.contains(V)&&f.remove(V)}function Xt(F,V,f){F.style[V]=f+"px"}function nr(F,V,f,b){let z=wc.createElement(F);return V!=null&&Ai(z,V),f?.insertBefore(z,b),z}function Pi(F,V){return nr("div",F,V)}const ed=new WeakMap;function mr(F,V,f,b,z){let R="translate("+V+"px,"+f+"px)",_=ed.get(F);R!=_&&(F.style.transform=R,ed.set(F,R),V<0||f<0||V>b||f>z?Ai(F,$o):xc(F,$o))}const td=new WeakMap;function nd(F,V,f){let b=V+f,z=td.get(F);b!=z&&(td.set(F,b),F.style.background=V,F.style.borderColor=f)}const id=new WeakMap;function rd(F,V,f,b){let z=V+""+f,R=id.get(F);z!=R&&(id.set(F,z),F.style.height=f+"px",F.style.width=V+"px",F.style.marginLeft=b?-V/2+"px":0,F.style.marginTop=b?-f/2+"px":0)}const Ec={passive:!0},Z0={...Ec,capture:!0};function Lo(F,V,f,b){V.addEventListener(F,f,b?Z0:Ec)}function kc(F,V,f,b){V.removeEventListener(F,f,Ec)}is&&bc();function ir(F,V,f,b){let z;f=f||0,b=b||V.length-1;let R=b<=2147483647;for(;b-f>1;)z=R?f+b>>1:Mi((f+b)/2),V[z]<F?f=z:b=z;return F-V[f]<=V[b]-F?f:b}function pf(F){return(f,b,z)=>{let R=-1,_=-1;for(let S=b;S<=z;S++)if(F(f[S])){R=S;break}for(let S=z;S>=b;S--)if(F(f[S])){_=S;break}return[R,_]}}const gf=F=>F!=null,mf=F=>F!=null&&F>0,ba=pf(gf),Q0=pf(mf);function X0(F,V,f,b=0,z=!1){let R=z?Q0:ba,_=z?mf:gf;[V,f]=R(F,V,f);let S=F[V],u=F[V];if(V>-1)if(b==1)S=F[V],u=F[f];else if(b==-1)S=F[f],u=F[V];else for(let h=V;h<=f;h++){let s=F[h];_(s)&&(s<S?S=s:s>u&&(u=s))}return[S??Gt,u??-Gt]}function xa(F,V,f,b){let z=ad(F),R=ad(V);F==V&&(z==-1?(F*=f,V/=f):(F/=f,V*=f));let _=f==10?Fr:vf,S=z==1?Mi:Hi,u=R==1?Hi:Mi,h=S(_(In(F))),s=u(_(In(V))),o=Jo(f,h),i=Jo(f,s);return f==10&&(h<0&&(o=qt(o,-h)),s<0&&(i=qt(i,-s))),b||f==2?(F=o*z,V=i*R):(F=xf(F,o),V=ka(V,i)),[F,V]}function Rc(F,V,f,b){let z=xa(F,V,f,b);return F==0&&(z[0]=0),V==0&&(z[1]=0),z}const Ic=.1,od={mode:3,pad:Ic},Ls={pad:0,soft:null,mode:0},J0={min:Ls,max:Ls};function va(F,V,f,b){return Ca(f)?sd(F,V,f):(Ls.pad=f,Ls.soft=b?0:null,Ls.mode=b?3:0,sd(F,V,J0))}function Dt(F,V){return F??V}function eb(F,V,f){for(V=Dt(V,0),f=Dt(f,F.length-1);V<=f;){if(F[V]!=null)return!0;V++}return!1}function sd(F,V,f){let b=f.min,z=f.max,R=Dt(b.pad,0),_=Dt(z.pad,0),S=Dt(b.hard,-Gt),u=Dt(z.hard,Gt),h=Dt(b.soft,Gt),s=Dt(z.soft,-Gt),o=Dt(b.mode,0),i=Dt(z.mode,0),r=V-F,t=Fr(r),n=ri(In(F),In(V)),a=Fr(n),d=In(a-t);(r<1e-24||d>10)&&(r=0,(F==0||V==0)&&(r=1e-24,o==2&&h!=Gt&&(R=0),i==2&&s!=-Gt&&(_=0)));let g=r||n||1e3,L=Fr(g),C=Jo(10,Mi(L)),y=g*(r==0?F==0?.1:1:R),p=qt(xf(F-y,C/10),24),$=F>=h&&(o==1||o==3&&p<=h||o==2&&p>=h)?h:Gt,I=ri(S,p<$&&F>=$?$:rr($,p)),M=g*(r==0?V==0?.1:1:_),A=qt(ka(V+M,C/10),24),H=V<=s&&(i==1||i==3&&A>=s||i==2&&A<=s)?s:-Gt,D=rr(u,A>H&&V<=H?H:ri(H,A));return I==D&&I==0&&(D=100),[I,D]}const tb=new Intl.NumberFormat(is?Y0.language:"en-US"),Oc=F=>tb.format(F),$i=Math,ga=$i.PI,In=$i.abs,Mi=$i.floor,Rn=$i.round,Hi=$i.ceil,rr=$i.min,ri=$i.max,Jo=$i.pow,ad=$i.sign,Fr=$i.log10,vf=$i.log2,nb=(F,V=1)=>$i.sinh(F)*V,Fl=(F,V=1)=>$i.asinh(F/V),Gt=1/0;function ld(F){return(Fr((F^F>>31)-(F>>31))|0)+1}function Cc(F,V,f){return rr(ri(F,V),f)}function yf(F){return typeof F=="function"}function $t(F){return yf(F)?F:()=>F}const ib=()=>{},wf=F=>F,bf=(F,V)=>V,rb=F=>null,cd=F=>!0,ud=(F,V)=>F==V,ob=/\.\d*?(?=9{6,}|0{6,})/gm,To=F=>{if(Cf(F)||no.has(F))return F;const V=`${F}`,f=V.match(ob);if(f==null)return F;let b=f[0].length-1;if(V.indexOf("e-")!=-1){let[z,R]=V.split("e");return+`${To(z)}e${R}`}return qt(F,b)};function Ao(F,V){return To(qt(To(F/V))*V)}function ka(F,V){return To(Hi(To(F/V))*V)}function xf(F,V){return To(Mi(To(F/V))*V)}function qt(F,V=0){if(Cf(F))return F;let f=10**V,b=F*f*(1+Number.EPSILON);return Rn(b)/f}const no=new Map;function kf(F){return((""+F).split(".")[1]||"").length}function Es(F,V,f,b){let z=[],R=b.map(kf);for(let _=V;_<f;_++){let S=In(_),u=qt(Jo(F,_),S);for(let h=0;h<b.length;h++){let s=F==10?+`${b[h]}e${_}`:b[h]*u,o=(_>=0?0:S)+(_>=R[h]?0:R[h]),i=F==10?s:qt(s,o);z.push(i),no.set(i,o)}}return z}const Ts={},Dc=[],es=[null,null],eo=Array.isArray,Cf=Number.isInteger,sb=F=>F===void 0;function hd(F){return typeof F=="string"}function Ca(F){let V=!1;if(F!=null){let f=F.constructor;V=f==null||f==Object}return V}function ab(F){return F!=null&&typeof F=="object"}const lb=Object.getPrototypeOf(Uint8Array),Sf="__proto__";function ts(F,V=Ca){let f;if(eo(F)){let b=F.find(z=>z!=null);if(eo(b)||V(b)){f=Array(F.length);for(let z=0;z<F.length;z++)f[z]=ts(F[z],V)}else f=F.slice()}else if(F instanceof lb)f=F.slice();else if(V(F)){f={};for(let b in F)b!=Sf&&(f[b]=ts(F[b],V))}else f=F;return f}function xn(F){let V=arguments;for(let f=1;f<V.length;f++){let b=V[f];for(let z in b)z!=Sf&&(Ca(F[z])?xn(F[z],ts(b[z])):F[z]=ts(b[z]))}return F}const cb=0,ub=1,hb=2;function db(F,V,f){for(let b=0,z,R=-1;b<V.length;b++){let _=V[b];if(_>R){for(z=_-1;z>=0&&F[z]==null;)F[z--]=null;for(z=_+1;z<f&&F[z]==null;)F[R=z++]=null}}}function fb(F,V){if(mb(F)){let _=F[0].slice();for(let S=1;S<F.length;S++)_.push(...F[S].slice(1));return vb(_[0])||(_=gb(_)),_}let f=new Set;for(let _=0;_<F.length;_++){let u=F[_][0],h=u.length;for(let s=0;s<h;s++)f.add(u[s])}let b=[Array.from(f).sort((_,S)=>_-S)],z=b[0].length,R=new Map;for(let _=0;_<z;_++)R.set(b[0][_],_);for(let _=0;_<F.length;_++){let S=F[_],u=S[0];for(let h=1;h<S.length;h++){let s=S[h],o=Array(z).fill(void 0),i=V?V[_][h]:ub,r=[];for(let t=0;t<s.length;t++){let n=s[t],a=R.get(u[t]);n===null?i!=cb&&(o[a]=n,i==hb&&r.push(a)):o[a]=n}db(o,r,z),b.push(o)}}return b}const pb=typeof queueMicrotask>"u"?F=>Promise.resolve().then(F):queueMicrotask;function gb(F){let V=F[0],f=V.length,b=Array(f);for(let R=0;R<b.length;R++)b[R]=R;b.sort((R,_)=>V[R]-V[_]);let z=[];for(let R=0;R<F.length;R++){let _=F[R],S=Array(f);for(let u=0;u<f;u++)S[u]=_[b[u]];z.push(S)}return z}function mb(F){let V=F[0][0],f=V.length;for(let b=1;b<F.length;b++){let z=F[b][0];if(z.length!=f)return!1;if(z!=V){for(let R=0;R<f;R++)if(z[R]!=V[R])return!1}}return!0}function vb(F,V=100){const f=F.length;if(f<=1)return!0;let b=0,z=f-1;for(;b<=z&&F[b]==null;)b++;for(;z>=b&&F[z]==null;)z--;if(z<=b)return!0;const R=ri(1,Mi((z-b+1)/V));for(let _=F[b],S=b+R;S<=z;S+=R){const u=F[S];if(u!=null){if(u<=_)return!1;_=u}}return!0}const _f=["January","February","March","April","May","June","July","August","September","October","November","December"],Af=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Mf(F){return F.slice(0,3)}const yb=Af.map(Mf),wb=_f.map(Mf),bb={MMMM:_f,MMM:wb,WWWW:Af,WWW:yb};function Ss(F){return(F<10?"0":"")+F}function xb(F){return(F<10?"00":F<100?"0":"")+F}const kb={YYYY:F=>F.getFullYear(),YY:F=>(F.getFullYear()+"").slice(2),MMMM:(F,V)=>V.MMMM[F.getMonth()],MMM:(F,V)=>V.MMM[F.getMonth()],MM:F=>Ss(F.getMonth()+1),M:F=>F.getMonth()+1,DD:F=>Ss(F.getDate()),D:F=>F.getDate(),WWWW:(F,V)=>V.WWWW[F.getDay()],WWW:(F,V)=>V.WWW[F.getDay()],HH:F=>Ss(F.getHours()),H:F=>F.getHours(),h:F=>{let V=F.getHours();return V==0?12:V>12?V-12:V},AA:F=>F.getHours()>=12?"PM":"AM",aa:F=>F.getHours()>=12?"pm":"am",a:F=>F.getHours()>=12?"p":"a",mm:F=>Ss(F.getMinutes()),m:F=>F.getMinutes(),ss:F=>Ss(F.getSeconds()),s:F=>F.getSeconds(),fff:F=>xb(F.getMilliseconds())};function Nc(F,V){V=V||bb;let f=[],b=/\{([a-z]+)\}|[^{]+/gi,z;for(;z=b.exec(F);)f.push(z[0][0]=="{"?kb[z[1]]:z[0]);return R=>{let _="";for(let S=0;S<f.length;S++)_+=typeof f[S]=="string"?f[S]:f[S](R,V);return _}}const Cb=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Sb(F,V){let f;return V=="UTC"||V=="Etc/UTC"?f=new Date(+F+F.getTimezoneOffset()*6e4):V==Cb?f=F:(f=new Date(F.toLocaleString("en-US",{timeZone:V})),f.setMilliseconds(F.getMilliseconds())),f}const $f=F=>F%1==0,ya=[1,2,2.5,5],_b=Es(10,-32,0,ya),Lf=Es(10,0,32,ya),Ab=Lf.filter($f),Mo=_b.concat(Lf),Fc=`
|
|
1475
|
+
`,Tf="{YYYY}",dd=Fc+Tf,Ef="{M}/{D}",$s=Fc+Ef,fa=$s+"/{YY}",Rf="{aa}",Mb="{h}:{mm}",Qo=Mb+Rf,fd=Fc+Qo,pd=":{ss}",zt=null;function If(F){let V=F*1e3,f=V*60,b=f*60,z=b*24,R=z*30,_=z*365,u=(F==1?Es(10,0,3,ya).filter($f):Es(10,-3,0,ya)).concat([V,V*5,V*10,V*15,V*30,f,f*5,f*10,f*15,f*30,b,b*2,b*3,b*4,b*6,b*8,b*12,z,z*2,z*3,z*4,z*5,z*6,z*7,z*8,z*9,z*10,z*15,R,R*2,R*3,R*4,R*6,_,_*2,_*5,_*10,_*25,_*50,_*100]);const h=[[_,Tf,zt,zt,zt,zt,zt,zt,1],[z*28,"{MMM}",dd,zt,zt,zt,zt,zt,1],[z,Ef,dd,zt,zt,zt,zt,zt,1],[b,"{h}"+Rf,fa,zt,$s,zt,zt,zt,1],[f,Qo,fa,zt,$s,zt,zt,zt,1],[V,pd,fa+" "+Qo,zt,$s+" "+Qo,zt,fd,zt,1],[F,pd+".{fff}",fa+" "+Qo,zt,$s+" "+Qo,zt,fd,zt,1]];function s(o){return(i,r,t,n,a,d)=>{let g=[],L=a>=_,C=a>=R&&a<_,y=o(t),p=qt(y*F,3),$=Wl(y.getFullYear(),L?0:y.getMonth(),C||L?1:y.getDate()),I=qt($*F,3);if(C||L){let M=C?a/R:0,A=L?a/_:0,H=p==I?p:qt(Wl($.getFullYear()+A,$.getMonth()+M,1)*F,3),D=new Date(Rn(H/F)),T=D.getFullYear(),x=D.getMonth();for(let m=0;H<=n;m++){let E=Wl(T+A*m,x+M*m,1),W=E-o(qt(E*F,3));H=qt((+E+W)*F,3),H<=n&&g.push(H)}}else{let M=a>=z?z:a,A=Mi(t)-Mi(p),H=I+A+ka(p-I,M);g.push(H);let D=o(H),T=D.getHours()+D.getMinutes()/f+D.getSeconds()/b,x=a/b,m=i.axes[r]._space,E=d/m;for(;H=qt(H+a,F==1?0:3),!(H>n);)if(x>1){let W=Mi(qt(T+x,6))%24,Q=o(H).getHours()-W;Q>1&&(Q=-1),H-=Q*b,T=(T+x)%24;let te=g[g.length-1];qt((H-te)/a,3)*E>=.7&&g.push(H)}else g.push(H)}return g}}return[u,h,s]}const[$b,Lb,Tb]=If(1),[Eb,Rb,Ib]=If(.001);Es(2,-53,53,[1]);function gd(F,V){return F.map(f=>f.map((b,z)=>z==0||z==8||b==null?b:V(z==1||f[8]==0?b:f[1]+b)))}function md(F,V){return(f,b,z,R,_)=>{let S=V.find(t=>_>=t[0])||V[V.length-1],u,h,s,o,i,r;return b.map(t=>{let n=F(t),a=n.getFullYear(),d=n.getMonth(),g=n.getDate(),L=n.getHours(),C=n.getMinutes(),y=n.getSeconds(),p=a!=u&&S[2]||d!=h&&S[3]||g!=s&&S[4]||L!=o&&S[5]||C!=i&&S[6]||y!=r&&S[7]||S[1];return u=a,h=d,s=g,o=L,i=C,r=y,p(n)})}}function Ob(F,V){let f=Nc(V);return(b,z,R,_,S)=>z.map(u=>f(F(u)))}function Wl(F,V,f){return new Date(F,V,f)}function vd(F,V){return V(F)}const Db="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function yd(F,V){return(f,b,z,R)=>R==null?Tc:V(F(b))}function Nb(F,V){let f=F.series[V];return f.width?f.stroke(F,V):f.points.width?f.points.stroke(F,V):null}function Fb(F,V){return F.series[V].fill(F,V)}const Wb={show:!0,live:!0,isolate:!1,mount:ib,markers:{show:!0,width:2,stroke:Nb,fill:Fb,dash:"solid"},idx:null,idxs:null,values:[]};function Bb(F,V){let f=F.cursor.points,b=Pi(),z=f.size(F,V);Xt(b,As,z),Xt(b,Ms,z);let R=z/-2;Xt(b,"marginLeft",R),Xt(b,"marginTop",R);let _=f.width(F,V,z);return _&&Xt(b,"borderWidth",_),b}function Pb(F,V){let f=F.series[V].points;return f._fill||f._stroke}function Hb(F,V){let f=F.series[V].points;return f._stroke||f._fill}function zb(F,V){return F.series[V].points.size}const Bl=[0,0];function Ub(F,V,f){return Bl[0]=V,Bl[1]=f,Bl}function pa(F,V,f,b=!0){return z=>{z.button==0&&(!b||z.target==V)&&f(z)}}function Pl(F,V,f,b=!0){return z=>{(!b||z.target==V)&&f(z)}}const Vb={show:!0,x:!0,y:!0,lock:!1,move:Ub,points:{one:!1,show:Bb,size:zb,width:0,stroke:Hb,fill:Pb},bind:{mousedown:pa,mouseup:pa,click:pa,dblclick:pa,mousemove:Pl,mouseleave:Pl,mouseenter:Pl},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(F,V)=>{V.stopPropagation(),V.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(F,V,f,b,z)=>b-z,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Of={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Wc=xn({},Of,{filter:bf}),Df=xn({},Wc,{size:10}),Nf=xn({},Of,{show:!1}),Bc='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Ff="bold "+Bc,Wf=1.5,wd={show:!0,scale:"x",stroke:Lc,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Ff,side:2,grid:Wc,ticks:Df,border:Nf,font:Bc,lineGap:Wf,rotate:0},Kb="Value",jb="Time",bd={show:!0,scale:"x",auto:!1,sorted:1,min:Gt,max:-Gt,idxs:[]};function Gb(F,V,f,b,z){return V.map(R=>R==null?"":Oc(R))}function qb(F,V,f,b,z,R,_){let S=[],u=no.get(z)||0;f=_?f:qt(ka(f,z),u);for(let h=f;h<=b;h=qt(h+z,u))S.push(Object.is(h,-0)?0:h);return S}function Sc(F,V,f,b,z,R,_){const S=[],u=F.scales[F.axes[V].scale].log,h=u==10?Fr:vf,s=Mi(h(f));z=Jo(u,s),u==10&&(z=Mo[ir(z,Mo)]);let o=f,i=z*u;u==10&&(i=Mo[ir(i,Mo)]);do S.push(o),o=o+z,u==10&&!no.has(o)&&(o=qt(o,no.get(z))),o>=i&&(z=o,i=z*u,u==10&&(i=Mo[ir(i,Mo)]));while(o<=b);return S}function Yb(F,V,f,b,z,R,_){let u=F.scales[F.axes[V].scale].asinh,h=b>u?Sc(F,V,ri(u,f),b,z):[u],s=b>=0&&f<=0?[0]:[];return(f<-u?Sc(F,V,ri(u,-b),-f,z):[u]).reverse().map(i=>-i).concat(s,h)}const Bf=/./,Zb=/[12357]/,Qb=/[125]/,xd=/1/,_c=(F,V,f,b)=>F.map((z,R)=>V==4&&z==0||R%b==0&&f.test(z.toExponential()[z<0?1:0])?z:null);function Xb(F,V,f,b,z){let R=F.axes[f],_=R.scale,S=F.scales[_],u=F.valToPos,h=R._space,s=u(10,_),o=u(9,_)-s>=h?Bf:u(7,_)-s>=h?Zb:u(5,_)-s>=h?Qb:xd;if(o==xd){let i=In(u(1,_)-s);if(i<h)return _c(V.slice().reverse(),S.distr,o,Hi(h/i)).reverse()}return _c(V,S.distr,o,1)}function Jb(F,V,f,b,z){let R=F.axes[f],_=R.scale,S=R._space,u=F.valToPos,h=In(u(1,_)-u(2,_));return h<S?_c(V.slice().reverse(),3,Bf,Hi(S/h)).reverse():V}function ex(F,V,f,b){return b==null?Tc:V==null?"":Oc(V)}const kd={show:!0,scale:"y",stroke:Lc,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Ff,side:3,grid:Wc,ticks:Df,border:Nf,font:Bc,lineGap:Wf,rotate:0};function tx(F,V){let f=3+(F||1)*2;return qt(f*V,3)}function nx(F,V){let{scale:f,idxs:b}=F.series[0],z=F._data[0],R=F.valToPos(z[b[0]],f,!0),_=F.valToPos(z[b[1]],f,!0),S=In(_-R),u=F.series[V],h=S/(u.points.space*Ft);return b[1]-b[0]<=h}const Cd={scale:null,auto:!0,sorted:0,min:Gt,max:-Gt},Pf=(F,V,f,b,z)=>z,Sd={show:!0,auto:!0,sorted:0,gaps:Pf,alpha:1,facets:[xn({},Cd,{scale:"x"}),xn({},Cd,{scale:"y"})]},_d={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Pf,alpha:1,points:{show:nx,filter:null},values:null,min:Gt,max:-Gt,idxs:[],path:null,clip:null};function ix(F,V,f,b,z){return f/10}const Hf={time:$0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},rx=xn({},Hf,{time:!1,ori:1}),Ad={};function zf(F,V){let f=Ad[F];return f||(f={key:F,plots:[],sub(b){f.plots.push(b)},unsub(b){f.plots=f.plots.filter(z=>z!=b)},pub(b,z,R,_,S,u,h){for(let s=0;s<f.plots.length;s++)f.plots[s]!=z&&f.plots[s].pub(b,z,R,_,S,u,h)}},F!=null&&(Ad[F]=f)),f}const ns=1,Ac=2;function Eo(F,V,f){const b=F.mode,z=F.series[V],R=b==2?F._data[V]:F._data,_=F.scales,S=F.bbox;let u=R[0],h=b==2?R[1]:R[V],s=b==2?_[z.facets[0].scale]:_[F.series[0].scale],o=b==2?_[z.facets[1].scale]:_[z.scale],i=S.left,r=S.top,t=S.width,n=S.height,a=F.valToPosH,d=F.valToPosV;return s.ori==0?f(z,u,h,s,o,a,d,i,r,t,n,_a,rs,Ma,Vf,jf):f(z,u,h,s,o,d,a,r,i,n,t,Aa,os,zc,Kf,Gf)}function Pc(F,V){let f=0,b=0,z=Dt(F.bands,Dc);for(let R=0;R<z.length;R++){let _=z[R];_.series[0]==V?f=_.dir:_.series[1]==V&&(_.dir==1?b|=1:b|=2)}return[f,b==1?-1:b==2?1:b==3?2:0]}function ox(F,V,f,b,z){let R=F.mode,_=F.series[V],S=R==2?_.facets[1].scale:_.scale,u=F.scales[S];return z==-1?u.min:z==1?u.max:u.distr==3?u.dir==1?u.min:u.max:0}function Wr(F,V,f,b,z,R){return Eo(F,V,(_,S,u,h,s,o,i,r,t,n,a)=>{let d=_.pxRound;const g=h.dir*(h.ori==0?1:-1),L=h.ori==0?rs:os;let C,y;g==1?(C=f,y=b):(C=b,y=f);let p=d(o(S[C],h,n,r)),$=d(i(u[C],s,a,t)),I=d(o(S[y],h,n,r)),M=d(i(R==1?s.max:s.min,s,a,t)),A=new Path2D(z);return L(A,I,M),L(A,p,M),L(A,p,$),A})}function Sa(F,V,f,b,z,R){let _=null;if(F.length>0){_=new Path2D;const S=V==0?Ma:zc;let u=f;for(let o=0;o<F.length;o++){let i=F[o];if(i[1]>i[0]){let r=i[0]-u;r>0&&S(_,u,b,r,b+R),u=i[1]}}let h=f+z-u,s=10;h>0&&S(_,u,b-s/2,h,b+R+s)}return _}function sx(F,V,f){let b=F[F.length-1];b&&b[0]==V?b[1]=f:F.push([V,f])}function Hc(F,V,f,b,z,R,_){let S=[],u=F.length;for(let h=z==1?f:b;h>=f&&h<=b;h+=z)if(V[h]===null){let o=h,i=h;if(z==1)for(;++h<=b&&V[h]===null;)i=h;else for(;--h>=f&&V[h]===null;)i=h;let r=R(F[o]),t=i==o?r:R(F[i]),n=o-z;r=_<=0&&n>=0&&n<u?R(F[n]):r;let d=i+z;t=_>=0&&d>=0&&d<u?R(F[d]):t,t>=r&&S.push([r,t])}return S}function Md(F){return F==0?wf:F==1?Rn:V=>Ao(V,F)}function Uf(F){let V=F==0?_a:Aa,f=F==0?(z,R,_,S,u,h)=>{z.arcTo(R,_,S,u,h)}:(z,R,_,S,u,h)=>{z.arcTo(_,R,u,S,h)},b=F==0?(z,R,_,S,u)=>{z.rect(R,_,S,u)}:(z,R,_,S,u)=>{z.rect(_,R,u,S)};return(z,R,_,S,u,h=0,s=0)=>{h==0&&s==0?b(z,R,_,S,u):(h=rr(h,S/2,u/2),s=rr(s,S/2,u/2),V(z,R+h,_),f(z,R+S,_,R+S,_+u,h),f(z,R+S,_+u,R,_+u,s),f(z,R,_+u,R,_,s),f(z,R,_,R+S,_,h),z.closePath())}}const _a=(F,V,f)=>{F.moveTo(V,f)},Aa=(F,V,f)=>{F.moveTo(f,V)},rs=(F,V,f)=>{F.lineTo(V,f)},os=(F,V,f)=>{F.lineTo(f,V)},Ma=Uf(0),zc=Uf(1),Vf=(F,V,f,b,z,R)=>{F.arc(V,f,b,z,R)},Kf=(F,V,f,b,z,R)=>{F.arc(f,V,b,z,R)},jf=(F,V,f,b,z,R,_)=>{F.bezierCurveTo(V,f,b,z,R,_)},Gf=(F,V,f,b,z,R,_)=>{F.bezierCurveTo(f,V,z,b,_,R)};function qf(F){return(V,f,b,z,R)=>Eo(V,f,(_,S,u,h,s,o,i,r,t,n,a)=>{let{pxRound:d,points:g}=_,L,C;h.ori==0?(L=_a,C=Vf):(L=Aa,C=Kf);const y=qt(g.width*Ft,3);let p=(g.size-g.width)/2*Ft,$=qt(p*2,3),I=new Path2D,M=new Path2D,{left:A,top:H,width:D,height:T}=V.bbox;Ma(M,A-$,H-$,D+$*2,T+$*2);const x=m=>{if(u[m]!=null){let E=d(o(S[m],h,n,r)),W=d(i(u[m],s,a,t));L(I,E+p,W),C(I,E,W,p,0,ga*2)}};if(R)R.forEach(x);else for(let m=b;m<=z;m++)x(m);return{stroke:y>0?I:null,fill:I,clip:M,flags:ns|Ac}})}function Yf(F){return(V,f,b,z,R,_)=>{b!=z&&(R!=b&&_!=b&&F(V,f,b),R!=z&&_!=z&&F(V,f,z),F(V,f,_))}}const ax=Yf(rs),lx=Yf(os);function Zf(F){const V=Dt(F?.alignGaps,0);return(f,b,z,R)=>Eo(f,b,(_,S,u,h,s,o,i,r,t,n,a)=>{[z,R]=ba(u,z,R);let d=_.pxRound,g=T=>d(o(T,h,n,r)),L=T=>d(i(T,s,a,t)),C,y;h.ori==0?(C=rs,y=ax):(C=os,y=lx);const p=h.dir*(h.ori==0?1:-1),$={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ns},I=$.stroke;let M=!1;if(R-z>=n*4){let T=ne=>f.posToVal(ne,h.key,!0),x=null,m=null,E,W,U,q=g(S[p==1?z:R]),Q=g(S[z]),te=g(S[R]),ce=T(p==1?Q+1:te-1);for(let ne=p==1?z:R;ne>=z&&ne<=R;ne+=p){let he=S[ne],le=(p==1?he<ce:he>ce)?q:g(he),me=u[ne];le==q?me!=null?(W=me,x==null?(C(I,le,L(W)),E=x=m=W):W<x?x=W:W>m&&(m=W)):me===null&&(M=!0):(x!=null&&y(I,q,L(x),L(m),L(E),L(W)),me!=null?(W=me,C(I,le,L(W)),x=m=E=W):(x=m=null,me===null&&(M=!0)),q=le,ce=T(q+p))}x!=null&&x!=m&&U!=q&&y(I,q,L(x),L(m),L(E),L(W))}else for(let T=p==1?z:R;T>=z&&T<=R;T+=p){let x=u[T];x===null?M=!0:x!=null&&C(I,g(S[T]),L(x))}let[H,D]=Pc(f,b);if(_.fill!=null||H!=0){let T=$.fill=new Path2D(I),x=_.fillTo(f,b,_.min,_.max,H),m=L(x),E=g(S[z]),W=g(S[R]);p==-1&&([W,E]=[E,W]),C(T,W,m),C(T,E,m)}if(!_.spanGaps){let T=[];M&&T.push(...Hc(S,u,z,R,p,g,V)),$.gaps=T=_.gaps(f,b,z,R,T),$.clip=Sa(T,h.ori,r,t,n,a)}return D!=0&&($.band=D==2?[Wr(f,b,z,R,I,-1),Wr(f,b,z,R,I,1)]:Wr(f,b,z,R,I,D)),$})}function cx(F){const V=Dt(F.align,1),f=Dt(F.ascDesc,!1),b=Dt(F.alignGaps,0),z=Dt(F.extend,!1);return(R,_,S,u)=>Eo(R,_,(h,s,o,i,r,t,n,a,d,g,L)=>{[S,u]=ba(o,S,u);let C=h.pxRound,{left:y,width:p}=R.bbox,$=Q=>C(t(Q,i,g,a)),I=Q=>C(n(Q,r,L,d)),M=i.ori==0?rs:os;const A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ns},H=A.stroke,D=i.dir*(i.ori==0?1:-1);let T=I(o[D==1?S:u]),x=$(s[D==1?S:u]),m=x,E=x;z&&V==-1&&(E=y,M(H,E,T)),M(H,x,T);for(let Q=D==1?S:u;Q>=S&&Q<=u;Q+=D){let te=o[Q];if(te==null)continue;let ce=$(s[Q]),ne=I(te);V==1?M(H,ce,T):M(H,m,ne),M(H,ce,ne),T=ne,m=ce}let W=m;z&&V==1&&(W=y+p,M(H,W,T));let[U,q]=Pc(R,_);if(h.fill!=null||U!=0){let Q=A.fill=new Path2D(H),te=h.fillTo(R,_,h.min,h.max,U),ce=I(te);M(Q,W,ce),M(Q,E,ce)}if(!h.spanGaps){let Q=[];Q.push(...Hc(s,o,S,u,D,$,b));let te=h.width*Ft/2,ce=f||V==1?te:-te,ne=f||V==-1?-te:te;Q.forEach(he=>{he[0]+=ce,he[1]+=ne}),A.gaps=Q=h.gaps(R,_,S,u,Q),A.clip=Sa(Q,i.ori,a,d,g,L)}return q!=0&&(A.band=q==2?[Wr(R,_,S,u,H,-1),Wr(R,_,S,u,H,1)]:Wr(R,_,S,u,H,q)),A})}function $d(F,V,f,b,z,R,_=Gt){if(F.length>1){let S=null;for(let u=0,h=1/0;u<F.length;u++)if(V[u]!==void 0){if(S!=null){let s=In(F[u]-F[S]);s<h&&(h=s,_=In(f(F[u],b,z,R)-f(F[S],b,z,R)))}S=u}}return _}function ux(F){F=F||Ts;const V=Dt(F.size,[.6,Gt,1]),f=F.align||0,b=F.gap||0;let z=F.radius;z=z==null?[0,0]:typeof z=="number"?[z,0]:z;const R=$t(z),_=1-V[0],S=Dt(V[1],Gt),u=Dt(V[2],1),h=Dt(F.disp,Ts),s=Dt(F.each,r=>{}),{fill:o,stroke:i}=h;return(r,t,n,a)=>Eo(r,t,(d,g,L,C,y,p,$,I,M,A,H)=>{let D=d.pxRound,T=f,x=b*Ft,m=S*Ft,E=u*Ft,W,U;C.ori==0?[W,U]=R(r,t):[U,W]=R(r,t);const q=C.dir*(C.ori==0?1:-1);let Q=C.ori==0?Ma:zc,te=C.ori==0?s:(Ve,Lt,rn,Cn,Dn,Vn,on)=>{s(Ve,Lt,rn,Dn,Cn,on,Vn)},ce=Dt(r.bands,Dc).find(Ve=>Ve.series[0]==t),ne=ce!=null?ce.dir:0,he=d.fillTo(r,t,d.min,d.max,ne),ue=D($(he,y,H,M)),le,me,Se,_e=A,Ae=D(d.width*Ft),qe=!1,Ue=null,nt=null,at=null,tt=null;o!=null&&(Ae==0||i!=null)&&(qe=!0,Ue=o.values(r,t,n,a),nt=new Map,new Set(Ue).forEach(Ve=>{Ve!=null&&nt.set(Ve,new Path2D)}),Ae>0&&(at=i.values(r,t,n,a),tt=new Map,new Set(at).forEach(Ve=>{Ve!=null&&tt.set(Ve,new Path2D)})));let{x0:Rt,size:pi}=h;if(Rt!=null&&pi!=null){T=1,g=Rt.values(r,t,n,a),Rt.unit==2&&(g=g.map(rn=>r.posToVal(I+rn*A,C.key,!0)));let Ve=pi.values(r,t,n,a);pi.unit==2?me=Ve[0]*A:me=p(Ve[0],C,A,I)-p(0,C,A,I),_e=$d(g,L,p,C,A,I,_e),Se=_e-me+x}else _e=$d(g,L,p,C,A,I,_e),Se=_e*_+x,me=_e-Se;Se<1&&(Se=0),Ae>=me/2&&(Ae=0),Se<5&&(D=wf);let kt=Se>0,oi=_e-Se-(kt?Ae:0);me=D(Cc(oi,E,m)),le=(T==0?me/2:T==q?0:me)-T*q*((T==0?x/2:0)+(kt?Ae/2:0));const kn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},si=qe?null:new Path2D;let Jt=null;if(ce!=null)Jt=r.data[ce.series[1]];else{let{y0:Ve,y1:Lt}=h;Ve!=null&&Lt!=null&&(L=Lt.values(r,t,n,a),Jt=Ve.values(r,t,n,a))}let Un=W*me,ut=U*me;for(let Ve=q==1?n:a;Ve>=n&&Ve<=a;Ve+=q){let Lt=L[Ve];if(Lt==null)continue;if(Jt!=null){let Ut=Jt[Ve]??0;if(Lt-Ut==0)continue;ue=$(Ut,y,H,M)}let rn=C.distr!=2||h!=null?g[Ve]:Ve,Cn=p(rn,C,A,I),Dn=$(Dt(Lt,he),y,H,M),Vn=D(Cn-le),on=D(ri(Dn,ue)),Sn=D(rr(Dn,ue)),Nn=on-Sn;if(Lt!=null){let Ut=Lt<0?ut:Un,_n=Lt<0?Un:ut;qe?(Ae>0&&at[Ve]!=null&&Q(tt.get(at[Ve]),Vn,Sn+Mi(Ae/2),me,ri(0,Nn-Ae),Ut,_n),Ue[Ve]!=null&&Q(nt.get(Ue[Ve]),Vn,Sn+Mi(Ae/2),me,ri(0,Nn-Ae),Ut,_n)):Q(si,Vn,Sn+Mi(Ae/2),me,ri(0,Nn-Ae),Ut,_n),te(r,t,Ve,Vn-Ae/2,Sn,me+Ae,Nn)}}return Ae>0?kn.stroke=qe?tt:si:qe||(kn._fill=d.width==0?d._fill:d._stroke??d._fill,kn.width=0),kn.fill=qe?nt:si,kn})}function hx(F,V){const f=Dt(V?.alignGaps,0);return(b,z,R,_)=>Eo(b,z,(S,u,h,s,o,i,r,t,n,a,d)=>{[R,_]=ba(h,R,_);let g=S.pxRound,L=W=>g(i(W,s,a,t)),C=W=>g(r(W,o,d,n)),y,p,$;s.ori==0?(y=_a,$=rs,p=jf):(y=Aa,$=os,p=Gf);const I=s.dir*(s.ori==0?1:-1);let M=L(u[I==1?R:_]),A=M,H=[],D=[];for(let W=I==1?R:_;W>=R&&W<=_;W+=I)if(h[W]!=null){let q=u[W],Q=L(q);H.push(A=Q),D.push(C(h[W]))}const T={stroke:F(H,D,y,$,p,g),fill:null,clip:null,band:null,gaps:null,flags:ns},x=T.stroke;let[m,E]=Pc(b,z);if(S.fill!=null||m!=0){let W=T.fill=new Path2D(x),U=S.fillTo(b,z,S.min,S.max,m),q=C(U);$(W,A,q),$(W,M,q)}if(!S.spanGaps){let W=[];W.push(...Hc(u,h,R,_,I,L,f)),T.gaps=W=S.gaps(b,z,R,_,W),T.clip=Sa(W,s.ori,t,n,a,d)}return E!=0&&(T.band=E==2?[Wr(b,z,R,_,x,-1),Wr(b,z,R,_,x,1)]:Wr(b,z,R,_,x,E)),T})}function dx(F){return hx(fx,F)}function fx(F,V,f,b,z,R){const _=F.length;if(_<2)return null;const S=new Path2D;if(f(S,F[0],V[0]),_==2)b(S,F[1],V[1]);else{let u=Array(_),h=Array(_-1),s=Array(_-1),o=Array(_-1);for(let i=0;i<_-1;i++)s[i]=V[i+1]-V[i],o[i]=F[i+1]-F[i],h[i]=s[i]/o[i];u[0]=h[0];for(let i=1;i<_-1;i++)h[i]===0||h[i-1]===0||h[i-1]>0!=h[i]>0?u[i]=0:(u[i]=3*(o[i-1]+o[i])/((2*o[i]+o[i-1])/h[i-1]+(o[i]+2*o[i-1])/h[i]),isFinite(u[i])||(u[i]=0));u[_-1]=h[_-2];for(let i=0;i<_-1;i++)z(S,F[i]+o[i]/3,V[i]+u[i]*o[i]/3,F[i+1]-o[i]/3,V[i+1]-u[i+1]*o[i]/3,F[i+1],V[i+1])}return S}const Mc=new Set;function Ld(){for(let F of Mc)F.syncRect(!0)}is&&(Lo(G0,Xo,Ld),Lo(q0,Xo,Ld,!0),Lo(ma,Xo,()=>{Xn.pxRatio=Ft}));const px=Zf(),gx=qf();function Td(F,V,f,b){return(b?[F[0],F[1]].concat(F.slice(2)):[F[0]].concat(F.slice(1))).map((R,_)=>$c(R,_,V,f))}function mx(F,V){return F.map((f,b)=>b==0?{}:xn({},V,f))}function $c(F,V,f,b){return xn({},V==0?f:b,F)}function Qf(F,V,f){return V==null?es:[V,f]}const vx=Qf;function yx(F,V,f){return V==null?es:va(V,f,Ic,!0)}function Xf(F,V,f,b){return V==null?es:xa(V,f,F.scales[b].log,!1)}const wx=Xf;function Jf(F,V,f,b){return V==null?es:Rc(V,f,F.scales[b].log,!1)}const bx=Jf;function xx(F,V,f,b,z){let R=ri(ld(F),ld(V)),_=V-F,S=ir(z/b*_,f);do{let u=f[S],h=b*u/_;if(h>=z&&R+(u<5?no.get(u):0)<=17)return[u,h]}while(++S<f.length);return[0,0]}function Ed(F){let V,f;return F=F.replace(/(\d+)px/,(b,z)=>(V=Rn((f=+z)*Ft))+"px"),[F,V,f]}function kx(F){F.show&&[F.font,F.labelFont].forEach(V=>{let f=qt(V[2]*Ft,1);V[0]=V[0].replace(/[0-9.]+px/,f+"px"),V[1]=f})}function Xn(F,V,f){const b={mode:Dt(F.mode,1)},z=b.mode;function R(K,Z,ie,oe){let pe=Z.valToPct(K);return oe+ie*(Z.dir==-1?1-pe:pe)}function _(K,Z,ie,oe){let pe=Z.valToPct(K);return oe+ie*(Z.dir==-1?pe:1-pe)}function S(K,Z,ie,oe){return Z.ori==0?R(K,Z,ie,oe):_(K,Z,ie,oe)}b.valToPosH=R,b.valToPosV=_;let u=!1;b.status=0;const h=b.root=Pi(L0);if(F.id!=null&&(h.id=F.id),Ai(h,F.class),F.title){let K=Pi(R0,h);K.textContent=F.title}const s=nr("canvas"),o=b.ctx=s.getContext("2d"),i=Pi(I0,h);Lo("click",i,K=>{K.target===t&&(Je!=Ti||At!=hr)&&un.click(b,K)},!0);const r=b.under=Pi(O0,i);i.appendChild(s);const t=b.over=Pi(D0,i);F=ts(F);const n=+Dt(F.pxAlign,1),a=Md(n);(F.plugins||[]).forEach(K=>{K.opts&&(F=K.opts(b,F)||F)});const d=F.ms||.001,g=b.series=z==1?Td(F.series||[],bd,_d,!1):mx(F.series||[null],Sd),L=b.axes=Td(F.axes||[],wd,kd,!0),C=b.scales={},y=b.bands=F.bands||[];y.forEach(K=>{K.fill=$t(K.fill||null),K.dir=Dt(K.dir,-1)});const p=z==2?g[1].facets[0].scale:g[0].scale,$={axes:Kr,series:ho},I=(F.drawOrder||["axes","series"]).map(K=>$[K]);function M(K){const Z=K.distr==3?ie=>Fr(ie>0?ie:K.clamp(b,ie,K.min,K.max,K.key)):K.distr==4?ie=>Fl(ie,K.asinh):K.distr==100?ie=>K.fwd(ie):ie=>ie;return ie=>{let oe=Z(ie),{_min:pe,_max:be}=K,Me=be-pe;return(oe-pe)/Me}}function A(K){let Z=C[K];if(Z==null){let ie=(F.scales||Ts)[K]||Ts;if(ie.from!=null){A(ie.from);let oe=xn({},C[ie.from],ie,{key:K});oe.valToPct=M(oe),C[K]=oe}else{Z=C[K]=xn({},K==p?Hf:rx,ie),Z.key=K;let oe=Z.time,pe=Z.range,be=eo(pe);if((K!=p||z==2&&!oe)&&(be&&(pe[0]==null||pe[1]==null)&&(pe={min:pe[0]==null?od:{mode:1,hard:pe[0],soft:pe[0]},max:pe[1]==null?od:{mode:1,hard:pe[1],soft:pe[1]}},be=!1),!be&&Ca(pe))){let Me=pe;pe=(Oe,Ne,Be)=>Ne==null?es:va(Ne,Be,Me)}Z.range=$t(pe||(oe?vx:K==p?Z.distr==3?wx:Z.distr==4?bx:Qf:Z.distr==3?Xf:Z.distr==4?Jf:yx)),Z.auto=$t(be?!1:Z.auto),Z.clamp=$t(Z.clamp||ix),Z._min=Z._max=null,Z.valToPct=M(Z)}}}A("x"),A("y"),z==1&&g.forEach(K=>{A(K.scale)}),L.forEach(K=>{A(K.scale)});for(let K in F.scales)A(K);const H=C[p],D=H.distr;let T,x;H.ori==0?(Ai(h,T0),T=R,x=_):(Ai(h,E0),T=_,x=R);const m={};for(let K in C){let Z=C[K];(Z.min!=null||Z.max!=null)&&(m[K]={min:Z.min,max:Z.max},Z.min=Z.max=null)}const E=F.tzDate||(K=>new Date(Rn(K/d))),W=F.fmtDate||Nc,U=d==1?Tb(E):Ib(E),q=md(E,gd(d==1?Lb:Rb,W)),Q=yd(E,vd(Db,W)),te=[],ce=b.legend=xn({},Wb,F.legend),ne=b.cursor=xn({},Vb,{drag:{y:z==2}},F.cursor),he=ce.show,ue=ne.show,le=ce.markers;ce.idxs=te,le.width=$t(le.width),le.dash=$t(le.dash),le.stroke=$t(le.stroke),le.fill=$t(le.fill);let me,Se,_e,Ae=[],qe=[],Ue,nt=!1,at={};if(ce.live){const K=g[1]?g[1].values:null;nt=K!=null,Ue=nt?K(b,1,0):{_:0};for(let Z in Ue)at[Z]=Tc}if(he)if(me=nr("table",H0,h),_e=nr("tbody",null,me),ce.mount(b,me),nt){Se=nr("thead",null,me,_e);let K=nr("tr",null,Se);nr("th",null,K);for(var tt in Ue)nr("th",jh,K).textContent=tt}else Ai(me,U0),ce.live&&Ai(me,z0);const Rt={show:!0},pi={show:!1};function kt(K,Z){if(Z==0&&(nt||!ce.live||z==2))return es;let ie=[],oe=nr("tr",V0,_e,_e.childNodes[Z]);Ai(oe,K.class),K.show||Ai(oe,$o);let pe=nr("th",null,oe);if(le.show){let Oe=Pi(K0,pe);if(Z>0){let Ne=le.width(b,Z);Ne&&(Oe.style.border=Ne+"px "+le.dash(b,Z)+" "+le.stroke(b,Z)),Oe.style.background=le.fill(b,Z)}}let be=Pi(jh,pe);K.label instanceof HTMLElement?be.appendChild(K.label):be.textContent=K.label,Z>0&&(le.show||(be.style.color=K.width>0?le.stroke(b,Z):le.fill(b,Z)),kn("click",pe,Oe=>{if(ne._lock)return;Vi(Oe);let Ne=g.indexOf(K);if((Oe.ctrlKey||Oe.metaKey)!=ce.isolate){let Be=g.some((He,Ge)=>Ge>0&&Ge!=Ne&&He.show);g.forEach((He,Ge)=>{Ge>0&&wn(Ge,Be?Ge==Ne?Rt:pi:Rt,!0,ft.setSeries)})}else wn(Ne,{show:!K.show},!0,ft.setSeries)},!1),vi&&kn(Zh,pe,Oe=>{ne._lock||(Vi(Oe),wn(g.indexOf(K),Ii,!0,ft.setSeries))},!1));for(var Me in Ue){let Oe=nr("td",j0,oe);Oe.textContent="--",ie.push(Oe)}return[oe,ie]}const oi=new Map;function kn(K,Z,ie,oe=!0){const pe=oi.get(Z)||{},be=ne.bind[K](b,Z,ie,oe);be&&(Lo(K,Z,pe[K]=be),oi.set(Z,pe))}function si(K,Z,ie){const oe=oi.get(Z)||{};for(let pe in oe)(K==null||pe==K)&&(kc(pe,Z,oe[pe]),delete oe[pe]);K==null&&oi.delete(Z)}let Jt=0,Un=0,ut=0,Ve=0,Lt=0,rn=0,Cn=Lt,Dn=rn,Vn=ut,on=Ve,Sn=0,Nn=0,Ut=0,_n=0;b.bbox={};let vr=!1,zi=!1,gi=!1,Ui=!1,yr=!1,Kn=!1;function wr(K,Z,ie){(ie||K!=b.width||Z!=b.height)&&br(K,Z),Yi(!1),gi=!0,zi=!0,ur()}function br(K,Z){b.width=Jt=ut=K,b.height=Un=Ve=Z,Lt=rn=0,Ro(),io();let ie=b.bbox;Sn=ie.left=Ao(Lt*Ft,.5),Nn=ie.top=Ao(rn*Ft,.5),Ut=ie.width=Ao(ut*Ft,.5),_n=ie.height=Ao(Ve*Ft,.5)}const ss=3;function mi(){let K=!1,Z=0;for(;!K;){Z++;let ie=Fo(Z),oe=Wo(Z);K=Z==ss||ie&&oe,K||(br(b.width,b.height),zi=!0)}}function as({width:K,height:Z}){wr(K,Z)}b.setSize=as;function Ro(){let K=!1,Z=!1,ie=!1,oe=!1;L.forEach((pe,be)=>{if(pe.show&&pe._show){let{side:Me,_size:Oe}=pe,Ne=Me%2,Be=pe.label!=null?pe.labelSize:0,He=Oe+Be;He>0&&(Ne?(ut-=He,Me==3?(Lt+=He,oe=!0):ie=!0):(Ve-=He,Me==0?(rn+=He,K=!0):Z=!0))}}),ji[0]=K,ji[1]=ie,ji[2]=Z,ji[3]=oe,ut-=jn[1]+jn[3],Lt+=jn[3],Ve-=jn[2]+jn[0],rn+=jn[0]}function io(){let K=Lt+ut,Z=rn+Ve,ie=Lt,oe=rn;function pe(be,Me){switch(be){case 1:return K+=Me,K-Me;case 2:return Z+=Me,Z-Me;case 3:return ie-=Me,ie+Me;case 0:return oe-=Me,oe+Me}}L.forEach((be,Me)=>{if(be.show&&be._show){let Oe=be.side;be._pos=pe(Oe,be._size),be.label!=null&&(be._lpos=pe(Oe,be.labelSize))}})}if(ne.dataIdx==null){let K=ne.hover,Z=K.skip=new Set(K.skip??[]);Z.add(void 0);let ie=K.prox=$t(K.prox),oe=K.bias??=0;ne.dataIdx=(pe,be,Me,Oe)=>{if(be==0)return Me;let Ne=Me,Be=ie(pe,be,Me,Oe)??Gt,He=Be>=0&&Be<Gt,Ge=H.ori==0?ut:Ve,dt=ne.left,It=V[0],wt=V[be];if(Z.has(wt[Me])){Ne=null;let ct=null,it=null,Qe;if(oe==0||oe==-1)for(Qe=Me;ct==null&&Qe-- >0;)Z.has(wt[Qe])||(ct=Qe);if(oe==0||oe==1)for(Qe=Me;it==null&&Qe++<wt.length;)Z.has(wt[Qe])||(it=Qe);if(ct!=null||it!=null)if(He){let jt=ct==null?-1/0:T(It[ct],H,Ge,0),nn=it==null?1/0:T(It[it],H,Ge,0),bn=dt-jt,Bt=nn-dt;bn<=Bt?bn<=Be&&(Ne=ct):Bt<=Be&&(Ne=it)}else Ne=it==null?ct:ct==null?it:Me-ct<=it-Me?ct:it}else He&&In(dt-T(It[Me],H,Ge,0))>Be&&(Ne=null);return Ne}}const Vi=K=>{ne.event=K};ne.idxs=te,ne._lock=!1;let pn=ne.points;pn.show=$t(pn.show),pn.size=$t(pn.size),pn.stroke=$t(pn.stroke),pn.width=$t(pn.width),pn.fill=$t(pn.fill);const ai=b.focus=xn({},F.focus||{alpha:.3},ne.focus),vi=ai.prox>=0,gn=vi&&pn.one;let Fn=[],or=[],Ki=[];function ro(K,Z){let ie=pn.show(b,Z);if(ie instanceof HTMLElement)return Ai(ie,P0),Ai(ie,K.class),mr(ie,-10,-10,ut,Ve),t.insertBefore(ie,Fn[Z]),ie}function Io(K,Z){if(z==1||Z>0){let ie=z==1&&C[K.scale].time,oe=K.value;K.value=ie?hd(oe)?yd(E,vd(oe,W)):oe||Q:oe||ex,K.label=K.label||(ie?jb:Kb)}if(gn||Z>0){K.width=K.width==null?1:K.width,K.paths=K.paths||px||rb,K.fillTo=$t(K.fillTo||ox),K.pxAlign=+Dt(K.pxAlign,n),K.pxRound=Md(K.pxAlign),K.stroke=$t(K.stroke||null),K.fill=$t(K.fill||null),K._stroke=K._fill=K._paths=K._focus=null;let ie=tx(ri(1,K.width),1),oe=K.points=xn({},{size:ie,width:ri(1,ie*.2),stroke:K.stroke,space:ie*2,paths:gx,_stroke:null,_fill:null},K.points);oe.show=$t(oe.show),oe.filter=$t(oe.filter),oe.fill=$t(oe.fill),oe.stroke=$t(oe.stroke),oe.paths=$t(oe.paths),oe.pxAlign=K.pxAlign}if(he){let ie=kt(K,Z);Ae.splice(Z,0,ie[0]),qe.splice(Z,0,ie[1]),ce.values.push(null)}if(ue){te.splice(Z,0,null);let ie=null;gn?Z==0&&(ie=ro(K,Z)):Z>0&&(ie=ro(K,Z)),Fn.splice(Z,0,ie),or.splice(Z,0,0),Ki.splice(Z,0,0)}Ke("addSeries",Z)}function ls(K,Z){Z=Z??g.length,K=z==1?$c(K,Z,bd,_d):$c(K,Z,{},Sd),g.splice(Z,0,K),Io(g[Z],Z)}b.addSeries=ls;function Oo(K){if(g.splice(K,1),he){ce.values.splice(K,1),qe.splice(K,1);let Z=Ae.splice(K,1)[0];si(null,Z.firstChild),Z.remove()}ue&&(te.splice(K,1),Fn.splice(K,1)[0].remove(),or.splice(K,1),Ki.splice(K,1)),Ke("delSeries",K)}b.delSeries=Oo;const ji=[!1,!1,!1,!1];function Li(K,Z){if(K._show=K.show,K.show){let ie=K.side%2,oe=C[K.scale];oe==null&&(K.scale=ie?g[1].scale:p,oe=C[K.scale]);let pe=oe.time;K.size=$t(K.size),K.space=$t(K.space),K.rotate=$t(K.rotate),eo(K.incrs)&&K.incrs.forEach(Me=>{!no.has(Me)&&no.set(Me,kf(Me))}),K.incrs=$t(K.incrs||(oe.distr==2?Ab:pe?d==1?$b:Eb:Mo)),K.splits=$t(K.splits||(pe&&oe.distr==1?U:oe.distr==3?Sc:oe.distr==4?Yb:qb)),K.stroke=$t(K.stroke),K.grid.stroke=$t(K.grid.stroke),K.ticks.stroke=$t(K.ticks.stroke),K.border.stroke=$t(K.border.stroke);let be=K.values;K.values=eo(be)&&!eo(be[0])?$t(be):pe?eo(be)?md(E,gd(be,W)):hd(be)?Ob(E,be):be||q:be||Gb,K.filter=$t(K.filter||(oe.distr>=3&&oe.log==10?Xb:oe.distr==3&&oe.log==2?Jb:bf)),K.font=Ed(K.font),K.labelFont=Ed(K.labelFont),K._size=K.size(b,null,Z,0),K._space=K._rotate=K._incrs=K._found=K._splits=K._values=null,K._size>0&&(ji[Z]=!0,K._el=Pi(N0,i))}}function Ct(K,Z,ie,oe){let[pe,be,Me,Oe]=ie,Ne=Z%2,Be=0;return Ne==0&&(Oe||be)&&(Be=Z==0&&!pe||Z==2&&!Me?Rn(wd.size/3):0),Ne==1&&(pe||Me)&&(Be=Z==1&&!be||Z==3&&!Oe?Rn(kd.size/2):0),Be}const Do=b.padding=(F.padding||[Ct,Ct,Ct,Ct]).map(K=>$t(Dt(K,Ct))),jn=b._padding=Do.map((K,Z)=>K(b,Z,ji,0));let mn,Yt=null,cn=null;const xr=z==1?g[0].idxs:null;let An=null,kr=!1;function Gi(K,Z){if(V=K??[],b.data=b._data=V,z==2){mn=0;for(let ie=1;ie<g.length;ie++)mn+=V[ie][0].length}else{V.length==0&&(b.data=b._data=V=[[]]),An=V[0],mn=An.length;let ie=V;if(D==2){ie=V.slice();let oe=ie[0]=Array(mn);for(let pe=0;pe<mn;pe++)oe[pe]=pe}b._data=V=ie}if(Yi(!0),Ke("setData"),D==2&&(gi=!0),Z!==!1){let ie=H;ie.auto(b,kr)?oo():qn(p,ie.min,ie.max),Ui=Ui||ne.left>=0,Kn=!0,ur()}}b.setData=Gi;function oo(){kr=!0;let K,Z;z==1&&(mn>0?(Yt=xr[0]=0,cn=xr[1]=mn-1,K=V[0][Yt],Z=V[0][cn],D==2?(K=Yt,Z=cn):K==Z&&(D==3?[K,Z]=xa(K,K,H.log,!1):D==4?[K,Z]=Rc(K,K,H.log,!1):H.time?Z=K+Rn(86400/d):[K,Z]=va(K,Z,Ic,!0))):(Yt=xr[0]=K=null,cn=xr[1]=Z=null)),qn(p,K,Z)}let sr,yi,Cr,Br,Jn,Pr,so,ao,lo,Mn;function co(K,Z,ie,oe,pe,be){K??=qh,ie??=Dc,oe??="butt",pe??=qh,be??="round",K!=sr&&(o.strokeStyle=sr=K),pe!=yi&&(o.fillStyle=yi=pe),Z!=Cr&&(o.lineWidth=Cr=Z),be!=Jn&&(o.lineJoin=Jn=be),oe!=Pr&&(o.lineCap=Pr=oe),ie!=Br&&o.setLineDash(Br=ie)}function Hr(K,Z,ie,oe){Z!=yi&&(o.fillStyle=yi=Z),K!=so&&(o.font=so=K),ie!=ao&&(o.textAlign=ao=ie),oe!=lo&&(o.textBaseline=lo=oe)}function ar(K,Z,ie,oe,pe=0){if(oe.length>0&&K.auto(b,kr)&&(Z==null||Z.min==null)){let be=Dt(Yt,0),Me=Dt(cn,oe.length-1),Oe=ie.min==null?X0(oe,be,Me,pe,K.distr==3):[ie.min,ie.max];K.min=rr(K.min,ie.min=Oe[0]),K.max=ri(K.max,ie.max=Oe[1])}}const uo={min:null,max:null};function zr(){for(let oe in C){let pe=C[oe];m[oe]==null&&(pe.min==null||m[p]!=null&&pe.auto(b,kr))&&(m[oe]=uo)}for(let oe in C){let pe=C[oe];m[oe]==null&&pe.from!=null&&m[pe.from]!=null&&(m[oe]=uo)}m[p]!=null&&Yi(!0);let K={};for(let oe in m){let pe=m[oe];if(pe!=null){let be=K[oe]=ts(C[oe],ab);if(pe.min!=null)xn(be,pe);else if(oe!=p||z==2)if(mn==0&&be.from==null){let Me=be.range(b,null,null,oe);be.min=Me[0],be.max=Me[1]}else be.min=Gt,be.max=-Gt}}if(mn>0){g.forEach((oe,pe)=>{if(z==1){let be=oe.scale,Me=m[be];if(Me==null)return;let Oe=K[be];if(pe==0){let Ne=Oe.range(b,Oe.min,Oe.max,be);Oe.min=Ne[0],Oe.max=Ne[1],Yt=ir(Oe.min,V[0]),cn=ir(Oe.max,V[0]),cn-Yt>1&&(V[0][Yt]<Oe.min&&Yt++,V[0][cn]>Oe.max&&cn--),oe.min=An[Yt],oe.max=An[cn]}else oe.show&&oe.auto&&ar(Oe,Me,oe,V[pe],oe.sorted);oe.idxs[0]=Yt,oe.idxs[1]=cn}else if(pe>0&&oe.show&&oe.auto){let[be,Me]=oe.facets,Oe=be.scale,Ne=Me.scale,[Be,He]=V[pe],Ge=K[Oe],dt=K[Ne];Ge!=null&&ar(Ge,m[Oe],be,Be,be.sorted),dt!=null&&ar(dt,m[Ne],Me,He,Me.sorted),oe.min=Me.min,oe.max=Me.max}});for(let oe in K){let pe=K[oe],be=m[oe];if(pe.from==null&&(be==null||be.min==null)){let Me=pe.range(b,pe.min==Gt?null:pe.min,pe.max==-Gt?null:pe.max,oe);pe.min=Me[0],pe.max=Me[1]}}}for(let oe in K){let pe=K[oe];if(pe.from!=null){let be=K[pe.from];if(be.min==null)pe.min=pe.max=null;else{let Me=pe.range(b,be.min,be.max,oe);pe.min=Me[0],pe.max=Me[1]}}}let Z={},ie=!1;for(let oe in K){let pe=K[oe],be=C[oe];if(be.min!=pe.min||be.max!=pe.max){be.min=pe.min,be.max=pe.max;let Me=be.distr;be._min=Me==3?Fr(be.min):Me==4?Fl(be.min,be.asinh):Me==100?be.fwd(be.min):be.min,be._max=Me==3?Fr(be.max):Me==4?Fl(be.max,be.asinh):Me==100?be.fwd(be.max):be.max,Z[oe]=ie=!0}}if(ie){g.forEach((oe,pe)=>{z==2?pe>0&&Z.y&&(oe._paths=null):Z[oe.scale]&&(oe._paths=null)});for(let oe in Z)gi=!0,Ke("setScale",oe);ue&&ne.left>=0&&(Ui=Kn=!0)}for(let oe in m)m[oe]=null}function Sr(K){let Z=Cc(Yt-1,0,mn-1),ie=Cc(cn+1,0,mn-1);for(;K[Z]==null&&Z>0;)Z--;for(;K[ie]==null&&ie<mn-1;)ie++;return[Z,ie]}function ho(){if(mn>0){let K=g.some(Z=>Z._focus)&&Mn!=ai.alpha;K&&(o.globalAlpha=Mn=ai.alpha),g.forEach((Z,ie)=>{if(ie>0&&Z.show&&(fo(ie,!1),fo(ie,!0),Z._paths==null)){let oe=Mn;Mn!=Z.alpha&&(o.globalAlpha=Mn=Z.alpha);let pe=z==2?[0,V[ie][0].length-1]:Sr(V[ie]);Z._paths=Z.paths(b,ie,pe[0],pe[1]),Mn!=oe&&(o.globalAlpha=Mn=oe)}}),g.forEach((Z,ie)=>{if(ie>0&&Z.show){let oe=Mn;Mn!=Z.alpha&&(o.globalAlpha=Mn=Z.alpha),Z._paths!=null&&Ur(ie,!1);{let pe=Z._paths!=null?Z._paths.gaps:null,be=Z.points.show(b,ie,Yt,cn,pe),Me=Z.points.filter(b,ie,be,pe);(be||Me)&&(Z.points._paths=Z.points.paths(b,ie,Yt,cn,Me),Ur(ie,!0))}Mn!=oe&&(o.globalAlpha=Mn=oe),Ke("drawSeries",ie)}}),K&&(o.globalAlpha=Mn=1)}}function fo(K,Z){let ie=Z?g[K].points:g[K];ie._stroke=ie.stroke(b,K),ie._fill=ie.fill(b,K)}function Ur(K,Z){let ie=Z?g[K].points:g[K],{stroke:oe,fill:pe,clip:be,flags:Me,_stroke:Oe=ie._stroke,_fill:Ne=ie._fill,_width:Be=ie.width}=ie._paths;Be=qt(Be*Ft,3);let He=null,Ge=Be%2/2;Z&&Ne==null&&(Ne=Be>0?"#fff":Oe);let dt=ie.pxAlign==1&&Ge>0;if(dt&&o.translate(Ge,Ge),!Z){let It=Sn-Be/2,wt=Nn-Be/2,ct=Ut+Be,it=_n+Be;He=new Path2D,He.rect(It,wt,ct,it)}Z?Vr(Oe,Be,ie.dash,ie.cap,Ne,oe,pe,Me,be):No(K,Oe,Be,ie.dash,ie.cap,Ne,oe,pe,Me,He,be),dt&&o.translate(-Ge,-Ge)}function No(K,Z,ie,oe,pe,be,Me,Oe,Ne,Be,He){let Ge=!1;Ne!=0&&y.forEach((dt,It)=>{if(dt.series[0]==K){let wt=g[dt.series[1]],ct=V[dt.series[1]],it=(wt._paths||Ts).band;eo(it)&&(it=dt.dir==1?it[0]:it[1]);let Qe,jt=null;wt.show&&it&&eb(ct,Yt,cn)?(jt=dt.fill(b,It)||be,Qe=wt._paths.clip):it=null,Vr(Z,ie,oe,pe,jt,Me,Oe,Ne,Be,He,Qe,it),Ge=!0}}),Ge||Vr(Z,ie,oe,pe,be,Me,Oe,Ne,Be,He)}const lr=ns|Ac;function Vr(K,Z,ie,oe,pe,be,Me,Oe,Ne,Be,He,Ge){co(K,Z,ie,oe,pe),(Ne||Be||Ge)&&(o.save(),Ne&&o.clip(Ne),Be&&o.clip(Be)),Ge?(Oe&lr)==lr?(o.clip(Ge),He&&o.clip(He),$n(pe,Me),qi(K,be,Z)):Oe&Ac?($n(pe,Me),o.clip(Ge),qi(K,be,Z)):Oe&ns&&(o.save(),o.clip(Ge),He&&o.clip(He),$n(pe,Me),o.restore(),qi(K,be,Z)):($n(pe,Me),qi(K,be,Z)),(Ne||Be||Ge)&&o.restore()}function qi(K,Z,ie){ie>0&&(Z instanceof Map?Z.forEach((oe,pe)=>{o.strokeStyle=sr=pe,o.stroke(oe)}):Z!=null&&K&&o.stroke(Z))}function $n(K,Z){Z instanceof Map?Z.forEach((ie,oe)=>{o.fillStyle=yi=oe,o.fill(ie)}):Z!=null&&K&&o.fill(Z)}function po(K,Z,ie,oe){let pe=L[K],be;if(oe<=0)be=[0,0];else{let Me=pe._space=pe.space(b,K,Z,ie,oe),Oe=pe._incrs=pe.incrs(b,K,Z,ie,oe,Me);be=xx(Z,ie,Oe,oe,Me)}return pe._found=be}function ei(K,Z,ie,oe,pe,be,Me,Oe,Ne,Be){let He=Me%2/2;n==1&&o.translate(He,He),co(Oe,Me,Ne,Be,Oe),o.beginPath();let Ge,dt,It,wt,ct=pe+(oe==0||oe==3?-be:be);ie==0?(dt=pe,wt=ct):(Ge=pe,It=ct);for(let it=0;it<K.length;it++)Z[it]!=null&&(ie==0?Ge=It=K[it]:dt=wt=K[it],o.moveTo(Ge,dt),o.lineTo(It,wt));o.stroke(),n==1&&o.translate(-He,-He)}function Fo(K){let Z=!0;return L.forEach((ie,oe)=>{if(!ie.show)return;let pe=C[ie.scale];if(pe.min==null){ie._show&&(Z=!1,ie._show=!1,Yi(!1));return}else ie._show||(Z=!1,ie._show=!0,Yi(!1));let be=ie.side,Me=be%2,{min:Oe,max:Ne}=pe,[Be,He]=po(oe,Oe,Ne,Me==0?ut:Ve);if(He==0)return;let Ge=pe.distr==2,dt=ie._splits=ie.splits(b,oe,Oe,Ne,Be,He,Ge),It=pe.distr==2?dt.map(Qe=>An[Qe]):dt,wt=pe.distr==2?An[dt[1]]-An[dt[0]]:Be,ct=ie._values=ie.values(b,ie.filter(b,It,oe,He,wt),oe,He,wt);ie._rotate=be==2?ie.rotate(b,ct,oe,He):0;let it=ie._size;ie._size=Hi(ie.size(b,ct,oe,K)),it!=null&&ie._size!=it&&(Z=!1)}),Z}function Wo(K){let Z=!0;return Do.forEach((ie,oe)=>{let pe=ie(b,oe,ji,K);pe!=jn[oe]&&(Z=!1),jn[oe]=pe}),Z}function Kr(){for(let K=0;K<L.length;K++){let Z=L[K];if(!Z.show||!Z._show)continue;let ie=Z.side,oe=ie%2,pe,be,Me=Z.stroke(b,K),Oe=ie==0||ie==3?-1:1,[Ne,Be]=Z._found;if(Z.label!=null){let Pn=Z.labelGap*Oe,Qt=Rn((Z._lpos+Pn)*Ft);Hr(Z.labelFont[0],Me,"center",ie==2?Cs:Gh),o.save(),oe==1?(pe=be=0,o.translate(Qt,Rn(Nn+_n/2)),o.rotate((ie==3?-ga:ga)/2)):(pe=Rn(Sn+Ut/2),be=Qt);let Oi=yf(Z.label)?Z.label(b,K,Ne,Be):Z.label;o.fillText(Oi,pe,be),o.restore()}if(Be==0)continue;let He=C[Z.scale],Ge=oe==0?Ut:_n,dt=oe==0?Sn:Nn,It=Z._splits,wt=He.distr==2?It.map(Pn=>An[Pn]):It,ct=He.distr==2?An[It[1]]-An[It[0]]:Ne,it=Z.ticks,Qe=Z.border,jt=it.show?it.size:0,nn=Rn(jt*Ft),bn=Rn((Z.alignTo==2?Z._size-jt-Z.gap:Z.gap)*Ft),Bt=Z._rotate*-ga/180,Vt=a(Z._pos*Ft),ge=(nn+bn)*Oe,Ce=Vt+ge;be=oe==0?Ce:0,pe=oe==1?Ce:0;let ke=Z.font[0],Pe=Z.align==1?Zo:Z.align==2?Ol:Bt>0?Zo:Bt<0?Ol:oe==0?"center":ie==3?Ol:Zo,et=Bt||oe==1?"middle":ie==2?Cs:Gh;Hr(ke,Me,Pe,et);let pt=Z.font[1]*Z.lineGap,Ot=It.map(Pn=>a(S(Pn,He,Ge,dt))),bt=Z._values;for(let Pn=0;Pn<bt.length;Pn++){let Qt=bt[Pn];if(Qt!=null){oe==0?pe=Ot[Pn]:be=Ot[Pn],Qt=""+Qt;let Oi=Qt.indexOf(`
|
|
1476
|
+
`)==-1?[Qt]:Qt.split(/\n/gm);for(let Hn=0;Hn<Oi.length;Hn++){let $r=Oi[Hn];Bt?(o.save(),o.translate(pe,be+Hn*pt),o.rotate(Bt),o.fillText($r,0,0),o.restore()):o.fillText($r,pe,be+Hn*pt)}}}it.show&&ei(Ot,it.filter(b,wt,K,Be,ct),oe,ie,Vt,nn,qt(it.width*Ft,3),it.stroke(b,K),it.dash,it.cap);let ci=Z.grid;ci.show&&ei(Ot,ci.filter(b,wt,K,Be,ct),oe,oe==0?2:1,oe==0?Nn:Sn,oe==0?_n:Ut,qt(ci.width*Ft,3),ci.stroke(b,K),ci.dash,ci.cap),Qe.show&&ei([Vt],[1],oe==0?1:0,oe==0?1:2,oe==1?Nn:Sn,oe==1?_n:Ut,qt(Qe.width*Ft,3),Qe.stroke(b,K),Qe.dash,Qe.cap)}Ke("drawAxes")}function Yi(K){g.forEach((Z,ie)=>{ie>0&&(Z._paths=null,K&&(z==1?(Z.min=null,Z.max=null):Z.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let _r=!1,jr=!1,cr=[];function Bo(){jr=!1;for(let K=0;K<cr.length;K++)Ke(...cr[K]);cr.length=0}function ur(){_r||(pb(go),_r=!0)}function De(K,Z=!1){_r=!0,jr=Z,K(b),go(),Z&&cr.length>0&&queueMicrotask(Bo)}b.batch=De;function go(){if(vr&&(zr(),vr=!1),gi&&(mi(),gi=!1),zi){if(Xt(r,Zo,Lt),Xt(r,Cs,rn),Xt(r,As,ut),Xt(r,Ms,Ve),Xt(t,Zo,Lt),Xt(t,Cs,rn),Xt(t,As,ut),Xt(t,Ms,Ve),Xt(i,As,Jt),Xt(i,Ms,Un),s.width=Rn(Jt*Ft),s.height=Rn(Un*Ft),L.forEach(({_el:K,_show:Z,_size:ie,_pos:oe,side:pe})=>{if(K!=null)if(Z){let be=pe===3||pe===0?ie:0,Me=pe%2==1;Xt(K,Me?"left":"top",oe-be),Xt(K,Me?"width":"height",ie),Xt(K,Me?"top":"left",Me?rn:Lt),Xt(K,Me?"height":"width",Me?Ve:ut),xc(K,$o)}else Ai(K,$o)}),sr=yi=Cr=Jn=Pr=so=ao=lo=Br=null,Mn=1,N(!0),Lt!=Cn||rn!=Dn||ut!=Vn||Ve!=on){Yi(!1);let K=ut/Vn,Z=Ve/on;if(ue&&!Ui&&ne.left>=0){ne.left*=K,ne.top*=Z,Zi&&mr(Zi,Rn(ne.left),0,ut,Ve),an&&mr(an,0,Rn(ne.top),ut,Ve);for(let ie=0;ie<Fn.length;ie++){let oe=Fn[ie];oe!=null&&(or[ie]*=K,Ki[ie]*=Z,mr(oe,Hi(or[ie]),Hi(Ki[ie]),ut,Ve))}}if(ht.show&&!yr&&ht.left>=0&&ht.width>0){ht.left*=K,ht.width*=K,ht.top*=Z,ht.height*=Z;for(let ie in Y)Xt(Gn,ie,ht[ie])}Cn=Lt,Dn=rn,Vn=ut,on=Ve}Ke("setSize"),zi=!1}Jt>0&&Un>0&&(o.clearRect(0,0,s.width,s.height),Ke("drawClear"),I.forEach(K=>K()),Ke("draw")),ht.show&&yr&&(Ri(ht),yr=!1),ue&&Ui&&(v(null,!0,!1),Ui=!1),ce.show&&ce.live&&Kn&&(c(),Kn=!1),u||(u=!0,b.status=1,Ke("ready")),kr=!1,_r=!1}b.redraw=(K,Z)=>{gi=Z||!1,K!==!1?qn(p,H.min,H.max):ur()};function Re(K,Z){let ie=C[K];if(ie.from==null){if(mn==0){let oe=ie.range(b,Z.min,Z.max,K);Z.min=oe[0],Z.max=oe[1]}if(Z.min>Z.max){let oe=Z.min;Z.min=Z.max,Z.max=oe}if(mn>1&&Z.min!=null&&Z.max!=null&&Z.max-Z.min<1e-16)return;K==p&&ie.distr==2&&mn>0&&(Z.min=ir(Z.min,V[0]),Z.max=ir(Z.max,V[0]),Z.min==Z.max&&Z.max++),m[K]=Z,vr=!0,ur()}}b.setScale=Re;let sn,Ar,Zi,an,Po,Mr,Ti,hr,mo,Nt,Je,At,Ei=!1;const un=ne.drag;let Fe=un.x,Zt=un.y;ue&&(ne.x&&(sn=Pi(W0,t)),ne.y&&(Ar=Pi(B0,t)),H.ori==0?(Zi=sn,an=Ar):(Zi=Ar,an=sn),Je=ne.left,At=ne.top);const ht=b.select=xn({show:!0,over:!0,left:0,width:0,top:0,height:0},F.select),Gn=ht.show?Pi(F0,ht.over?t:r):null;function Ri(K,Z){if(ht.show){for(let ie in K)ht[ie]=K[ie],ie in Y&&Xt(Gn,ie,K[ie]);Z!==!1&&Ke("setSelect")}}b.setSelect=Ri;function yt(K){if(g[K].show)he&&xc(Ae[K],$o);else if(he&&Ai(Ae[K],$o),ue){let ie=gn?Fn[0]:Fn[K];ie!=null&&mr(ie,-10,-10,ut,Ve)}}function qn(K,Z,ie){Re(K,{min:Z,max:ie})}function wn(K,Z,ie,oe){Z.focus!=null&&vo(K),Z.show!=null&&g.forEach((pe,be)=>{be>0&&(K==be||K==null)&&(pe.show=Z.show,yt(be),z==2?(qn(pe.facets[0].scale,null,null),qn(pe.facets[1].scale,null,null)):qn(pe.scale,null,null),ur())}),ie!==!1&&Ke("setSeries",K,Z),oe&&ot("setSeries",b,K,Z)}b.setSeries=wn;function Qi(K,Z){xn(y[K],Z)}function wi(K,Z){K.fill=$t(K.fill||null),K.dir=Dt(K.dir,-1),Z=Z??y.length,y.splice(Z,0,K)}function en(K){K==null?y.length=0:y.splice(K,1)}b.addBand=wi,b.setBand=Qi,b.delBand=en;function Gr(K,Z){g[K].alpha=Z,ue&&Fn[K]!=null&&(Fn[K].style.opacity=Z),he&&Ae[K]&&(Ae[K].style.opacity=Z)}let hn,bi,xi;const Ii={focus:!0};function vo(K){if(K!=xi){let Z=K==null,ie=ai.alpha!=1;g.forEach((oe,pe)=>{if(z==1||pe>0){let be=Z||pe==0||pe==K;oe._focus=Z?null:be,ie&&Gr(pe,be?1:ai.alpha)}}),xi=K,ie&&ur()}}he&&vi&&kn(Qh,me,K=>{ne._lock||(Vi(K),xi!=null&&wn(null,Ii,!0,ft.setSeries))});function Wt(K,Z,ie){let oe=C[Z];ie&&(K=K/Ft-(oe.ori==1?rn:Lt));let pe=ut;oe.ori==1&&(pe=Ve,K=pe-K),oe.dir==-1&&(K=pe-K);let be=oe._min,Me=oe._max,Oe=K/pe,Ne=be+(Me-be)*Oe,Be=oe.distr;return Be==3?Jo(10,Ne):Be==4?nb(Ne,oe.asinh):Be==100?oe.bwd(Ne):Ne}function Ho(K,Z){let ie=Wt(K,p,Z);return ir(ie,V[0],Yt,cn)}b.valToIdx=K=>ir(K,V[0]),b.posToIdx=Ho,b.posToVal=Wt,b.valToPos=(K,Z,ie)=>C[Z].ori==0?R(K,C[Z],ie?Ut:ut,ie?Sn:0):_(K,C[Z],ie?_n:Ve,ie?Nn:0),b.setCursor=(K,Z,ie)=>{Je=K.left,At=K.top,v(null,Z,ie)};function Ln(K,Z){Xt(Gn,Zo,ht.left=K),Xt(Gn,As,ht.width=Z)}function Yn(K,Z){Xt(Gn,Cs,ht.top=K),Xt(Gn,Ms,ht.height=Z)}let dr=H.ori==0?Ln:Yn,Bn=H.ori==1?Ln:Yn;function li(){if(he&&ce.live)for(let K=z==2?1:0;K<g.length;K++){if(K==0&&nt)continue;let Z=ce.values[K],ie=0;for(let oe in Z)qe[K][ie++].firstChild.nodeValue=Z[oe]}}function c(K,Z){if(K!=null&&(K.idxs?K.idxs.forEach((ie,oe)=>{te[oe]=ie}):sb(K.idx)||te.fill(K.idx),ce.idx=te[0]),he&&ce.live){for(let ie=0;ie<g.length;ie++)(ie>0||z==1&&!nt)&&w(ie,te[ie]);li()}Kn=!1,Z!==!1&&Ke("setLegend")}b.setLegend=c;function w(K,Z){let ie=g[K],oe=K==0&&D==2?An:V[K],pe;nt?pe=ie.values(b,K,Z)??at:(pe=ie.value(b,Z==null?null:oe[Z],K,Z),pe=pe==null?at:{_:pe}),ce.values[K]=pe}function v(K,Z,ie){mo=Je,Nt=At,[Je,At]=ne.move(b,Je,At),ne.left=Je,ne.top=At,ue&&(Zi&&mr(Zi,Rn(Je),0,ut,Ve),an&&mr(an,0,Rn(At),ut,Ve));let oe,pe=Yt>cn;hn=Gt,bi=null;let be=H.ori==0?ut:Ve,Me=H.ori==1?ut:Ve;if(Je<0||mn==0||pe){oe=ne.idx=null;for(let Oe=0;Oe<g.length;Oe++){let Ne=Fn[Oe];Ne!=null&&mr(Ne,-10,-10,ut,Ve)}vi&&wn(null,Ii,!0,K==null&&ft.setSeries),ce.live&&(te.fill(oe),Kn=!0)}else{let Oe,Ne,Be;z==1&&(Oe=H.ori==0?Je:At,Ne=Wt(Oe,p),oe=ne.idx=ir(Ne,V[0],Yt,cn),Be=T(V[0][oe],H,be,0));let He=-10,Ge=-10,dt=0,It=0,wt=!0,ct="",it="";for(let Qe=z==2?1:0;Qe<g.length;Qe++){let jt=g[Qe],nn=te[Qe],bn=nn==null?null:z==1?V[Qe][nn]:V[Qe][1][nn],Bt=ne.dataIdx(b,Qe,oe,Ne),Vt=Bt==null?null:z==1?V[Qe][Bt]:V[Qe][1][Bt];if(Kn=Kn||Vt!=bn||Bt!=nn,te[Qe]=Bt,Qe>0&&jt.show){let ge=Bt==null?-10:Bt==oe?Be:T(z==1?V[0][Bt]:V[Qe][0][Bt],H,be,0),Ce=Vt==null?-10:x(Vt,z==1?C[jt.scale]:C[jt.facets[1].scale],Me,0);if(vi&&Vt!=null){let ke=H.ori==1?Je:At,Pe=In(ai.dist(b,Qe,Bt,Ce,ke));if(Pe<hn){let et=ai.bias;if(et!=0){let pt=Wt(ke,jt.scale),Ot=Vt>=0?1:-1,bt=pt>=0?1:-1;bt==Ot&&(bt==1?et==1?Vt>=pt:Vt<=pt:et==1?Vt<=pt:Vt>=pt)&&(hn=Pe,bi=Qe)}else hn=Pe,bi=Qe}}if(Kn||gn){let ke,Pe;H.ori==0?(ke=ge,Pe=Ce):(ke=Ce,Pe=ge);let et,pt,Ot,bt,ci,Pn,Qt=!0,Oi=pn.bbox;if(Oi!=null){Qt=!1;let Hn=Oi(b,Qe);Ot=Hn.left,bt=Hn.top,et=Hn.width,pt=Hn.height}else Ot=ke,bt=Pe,et=pt=pn.size(b,Qe);if(Pn=pn.fill(b,Qe),ci=pn.stroke(b,Qe),gn)Qe==bi&&hn<=ai.prox&&(He=Ot,Ge=bt,dt=et,It=pt,wt=Qt,ct=Pn,it=ci);else{let Hn=Fn[Qe];Hn!=null&&(or[Qe]=Ot,Ki[Qe]=bt,rd(Hn,et,pt,Qt),nd(Hn,Pn,ci),mr(Hn,Hi(Ot),Hi(bt),ut,Ve))}}}}if(gn){let Qe=ai.prox,jt=xi==null?hn<=Qe:hn>Qe||bi!=xi;if(Kn||jt){let nn=Fn[0];nn!=null&&(or[0]=He,Ki[0]=Ge,rd(nn,dt,It,wt),nd(nn,ct,it),mr(nn,Hi(He),Hi(Ge),ut,Ve))}}}if(ht.show&&Ei)if(K!=null){let[Oe,Ne]=ft.scales,[Be,He]=ft.match,[Ge,dt]=K.cursor.sync.scales,It=K.cursor.drag;if(Fe=It._x,Zt=It._y,Fe||Zt){let{left:wt,top:ct,width:it,height:Qe}=K.select,jt=K.scales[Ge].ori,nn=K.posToVal,bn,Bt,Vt,ge,Ce,ke=Oe!=null&&Be(Oe,Ge),Pe=Ne!=null&&He(Ne,dt);ke&&Fe?(jt==0?(bn=wt,Bt=it):(bn=ct,Bt=Qe),Vt=C[Oe],ge=T(nn(bn,Ge),Vt,be,0),Ce=T(nn(bn+Bt,Ge),Vt,be,0),dr(rr(ge,Ce),In(Ce-ge))):dr(0,be),Pe&&Zt?(jt==1?(bn=wt,Bt=it):(bn=ct,Bt=Qe),Vt=C[Ne],ge=x(nn(bn,dt),Vt,Me,0),Ce=x(nn(bn+Bt,dt),Vt,Me,0),Bn(rr(ge,Ce),In(Ce-ge))):Bn(0,Me)}else X()}else{let Oe=In(mo-Po),Ne=In(Nt-Mr);if(H.ori==1){let dt=Oe;Oe=Ne,Ne=dt}Fe=un.x&&Oe>=un.dist,Zt=un.y&&Ne>=un.dist;let Be=un.uni;Be!=null?Fe&&Zt&&(Fe=Oe>=Be,Zt=Ne>=Be,!Fe&&!Zt&&(Ne>Oe?Zt=!0:Fe=!0)):un.x&&un.y&&(Fe||Zt)&&(Fe=Zt=!0);let He,Ge;Fe&&(H.ori==0?(He=Ti,Ge=Je):(He=hr,Ge=At),dr(rr(He,Ge),In(Ge-He)),Zt||Bn(0,Me)),Zt&&(H.ori==1?(He=Ti,Ge=Je):(He=hr,Ge=At),Bn(rr(He,Ge),In(Ge-He)),Fe||dr(0,be)),!Fe&&!Zt&&(dr(0,0),Bn(0,0))}if(un._x=Fe,un._y=Zt,K==null){if(ie){if(Et!=null){let[Oe,Ne]=ft.scales;ft.values[0]=Oe!=null?Wt(H.ori==0?Je:At,Oe):null,ft.values[1]=Ne!=null?Wt(H.ori==1?Je:At,Ne):null}ot(Dl,b,Je,At,ut,Ve,oe)}if(vi){let Oe=ie&&ft.setSeries,Ne=ai.prox;xi==null?hn<=Ne&&wn(bi,Ii,!0,Oe):hn>Ne?wn(null,Ii,!0,Oe):bi!=xi&&wn(bi,Ii,!0,Oe)}}Kn&&(ce.idx=oe,c()),Z!==!1&&Ke("setCursor")}let O=null;Object.defineProperty(b,"rect",{get(){return O==null&&N(!1),O}});function N(K=!1){K?O=null:(O=t.getBoundingClientRect(),Ke("syncRect",O))}function B(K,Z,ie,oe,pe,be,Me){ne._lock||Ei&&K!=null&&K.movementX==0&&K.movementY==0||(j(K,Z,ie,oe,pe,be,Me,!1,K!=null),K!=null?v(null,!0,!0):v(Z,!0,!1))}function j(K,Z,ie,oe,pe,be,Me,Oe,Ne){if(O==null&&N(!1),Vi(K),K!=null)ie=K.clientX-O.left,oe=K.clientY-O.top;else{if(ie<0||oe<0){Je=-10,At=-10;return}let[Be,He]=ft.scales,Ge=Z.cursor.sync,[dt,It]=Ge.values,[wt,ct]=Ge.scales,[it,Qe]=ft.match,jt=Z.axes[0].side%2==1,nn=H.ori==0?ut:Ve,bn=H.ori==1?ut:Ve,Bt=jt?be:pe,Vt=jt?pe:be,ge=jt?oe:ie,Ce=jt?ie:oe;if(wt!=null?ie=it(Be,wt)?S(dt,C[Be],nn,0):-10:ie=nn*(ge/Bt),ct!=null?oe=Qe(He,ct)?S(It,C[He],bn,0):-10:oe=bn*(Ce/Vt),H.ori==1){let ke=ie;ie=oe,oe=ke}}Ne&&(Z==null||Z.cursor.event.type==Dl)&&((ie<=1||ie>=ut-1)&&(ie=Ao(ie,ut)),(oe<=1||oe>=Ve-1)&&(oe=Ao(oe,Ve))),Oe?(Po=ie,Mr=oe,[Ti,hr]=ne.move(b,ie,oe)):(Je=ie,At=oe)}const Y={width:0,height:0,left:0,top:0};function X(){Ri(Y,!1)}let re,se,ve,xe;function de(K,Z,ie,oe,pe,be,Me){Ei=!0,Fe=Zt=un._x=un._y=!1,j(K,Z,ie,oe,pe,be,Me,!0,!1),K!=null&&(kn(Nl,wc,we,!1),ot(Yh,b,Ti,hr,ut,Ve,null));let{left:Oe,top:Ne,width:Be,height:He}=ht;re=Oe,se=Ne,ve=Be,xe=He}function we(K,Z,ie,oe,pe,be,Me){Ei=un._x=un._y=!1,j(K,Z,ie,oe,pe,be,Me,!1,!0);let{left:Oe,top:Ne,width:Be,height:He}=ht,Ge=Be>0||He>0,dt=re!=Oe||se!=Ne||ve!=Be||xe!=He;if(Ge&&dt&&Ri(ht),un.setScale&&Ge&&dt){let It=Oe,wt=Be,ct=Ne,it=He;if(H.ori==1&&(It=Ne,wt=He,ct=Oe,it=Be),Fe&&qn(p,Wt(It,p),Wt(It+wt,p)),Zt)for(let Qe in C){let jt=C[Qe];Qe!=p&&jt.from==null&&jt.min!=Gt&&qn(Qe,Wt(ct+it,Qe),Wt(ct,Qe))}X()}else ne.lock&&(ne._lock=!ne._lock,v(Z,!0,K!=null));K!=null&&(si(Nl,wc),ot(Nl,b,Je,At,ut,Ve,null))}function Ee(K,Z,ie,oe,pe,be,Me){if(ne._lock)return;Vi(K);let Oe=Ei;if(Ei){let Ne=!0,Be=!0,He=10,Ge,dt;H.ori==0?(Ge=Fe,dt=Zt):(Ge=Zt,dt=Fe),Ge&&dt&&(Ne=Je<=He||Je>=ut-He,Be=At<=He||At>=Ve-He),Ge&&Ne&&(Je=Je<Ti?0:ut),dt&&Be&&(At=At<hr?0:Ve),v(null,!0,!0),Ei=!1}Je=-10,At=-10,te.fill(null),v(null,!0,!0),Oe&&(Ei=Oe)}function $e(K,Z,ie,oe,pe,be,Me){ne._lock||(Vi(K),oo(),X(),K!=null&&ot(Xh,b,Je,At,ut,Ve,null))}function We(){L.forEach(kx),wr(b.width,b.height,!0)}Lo(ma,Xo,We);const Xe={};Xe.mousedown=de,Xe.mousemove=B,Xe.mouseup=we,Xe.dblclick=$e,Xe.setSeries=(K,Z,ie,oe)=>{let pe=ft.match[2];ie=pe(b,Z,ie),ie!=-1&&wn(ie,oe,!0,!1)},ue&&(kn(Yh,t,de),kn(Dl,t,B),kn(Zh,t,K=>{Vi(K),N(!1)}),kn(Qh,t,Ee),kn(Xh,t,$e),Mc.add(b),b.syncRect=N);const Ye=b.hooks=F.hooks||{};function Ke(K,Z,ie){jr?cr.push([K,Z,ie]):K in Ye&&Ye[K].forEach(oe=>{oe.call(null,b,Z,ie)})}(F.plugins||[]).forEach(K=>{for(let Z in K.hooks)Ye[Z]=(Ye[Z]||[]).concat(K.hooks[Z])});const Kt=(K,Z,ie)=>ie,ft=xn({key:null,setSeries:!1,filters:{pub:cd,sub:cd},scales:[p,g[1]?g[1].scale:null],match:[ud,ud,Kt],values:[null,null]},ne.sync);ft.match.length==2&&ft.match.push(Kt),ne.sync=ft;const Et=ft.key,St=zf(Et);function ot(K,Z,ie,oe,pe,be,Me){ft.filters.pub(K,Z,ie,oe,pe,be,Me)&&St.pub(K,Z,ie,oe,pe,be,Me)}St.sub(b);function dn(K,Z,ie,oe,pe,be,Me){ft.filters.sub(K,Z,ie,oe,pe,be,Me)&&Xe[K](null,Z,ie,oe,pe,be,Me)}b.pub=dn;function Tn(){St.unsub(b),Mc.delete(b),oi.clear(),kc(ma,Xo,We),h.remove(),me?.remove(),Ke("destroy")}b.destroy=Tn;function tn(){Ke("init",F,V),Gi(V||F.data,!1),m[p]?Re(p,m[p]):oo(),yr=ht.show&&(ht.width>0||ht.height>0),Ui=Kn=!0,wr(F.width,F.height)}return g.forEach(Io),L.forEach(Li),f?f instanceof HTMLElement?(f.appendChild(h),tn()):f(b,tn):tn(),b}Xn.assign=xn;Xn.fmtNum=Oc;Xn.rangeNum=va;Xn.rangeLog=xa;Xn.rangeAsinh=Rc;Xn.orient=Eo;Xn.pxRatio=Ft;Xn.join=fb;Xn.fmtDate=Nc,Xn.tzDate=Sb;Xn.sync=zf;{Xn.addGap=sx,Xn.clipGaps=Sa;let F=Xn.paths={points:qf};F.linear=Zf,F.stepped=cx,F.bars=ux,F.spline=dx}var Hl,Rd;function Cx(){return Rd||(Rd=1,Hl=function(F,V,f,b,z){var R,_;if(b===void 0)b=0;else if(b=b|0,b<0||b>=F.length)throw new RangeError("invalid lower bound");if(z===void 0)z=F.length-1;else if(z=z|0,z<b||z>=F.length)throw new RangeError("invalid upper bound");for(;b<=z;)if(R=b+(z-b>>>1),_=+f(F[R],V,R,F),_<0)b=R+1;else if(_>0)z=R-1;else return R;return~b}),Hl}var Sx=Cx();const _x=wa(Sx);var zl,Id;function Ax(){if(Id)return zl;Id=1;function F(V,f,b){var z=-1,R=V.length;f<0&&(f=-f>R?0:R+f),b=b>R?R:b,b<0&&(b+=R),R=f>b?0:b-f>>>0,f>>>=0;for(var _=Array(R);++z<R;)_[z]=V[z+f];return _}return zl=F,zl}var Ul,Od;function Mx(){if(Od)return Ul;Od=1;var F=Ax();function V(f,b,z){var R=f.length;return z=z===void 0?R:z,!b&&z>=R?f:F(f,b,z)}return Ul=V,Ul}var Vl,Dd;function ep(){if(Dd)return Vl;Dd=1;var F="\\ud800-\\udfff",V="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",b="\\u20d0-\\u20ff",z=V+f+b,R="\\ufe0e\\ufe0f",_="\\u200d",S=RegExp("["+_+F+z+R+"]");function u(h){return S.test(h)}return Vl=u,Vl}var Kl,Nd;function $x(){if(Nd)return Kl;Nd=1;function F(V){return V.split("")}return Kl=F,Kl}var jl,Fd;function Lx(){if(Fd)return jl;Fd=1;var F="\\ud800-\\udfff",V="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",b="\\u20d0-\\u20ff",z=V+f+b,R="\\ufe0e\\ufe0f",_="["+F+"]",S="["+z+"]",u="\\ud83c[\\udffb-\\udfff]",h="(?:"+S+"|"+u+")",s="[^"+F+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",r="\\u200d",t=h+"?",n="["+R+"]?",a="(?:"+r+"(?:"+[s,o,i].join("|")+")"+n+t+")*",d=n+t+a,g="(?:"+[s+S+"?",S,o,i,_].join("|")+")",L=RegExp(u+"(?="+u+")|"+g+d,"g");function C(y){return y.match(L)||[]}return jl=C,jl}var Gl,Wd;function Tx(){if(Wd)return Gl;Wd=1;var F=$x(),V=ep(),f=Lx();function b(z){return V(z)?f(z):F(z)}return Gl=b,Gl}var ql,Bd;function Ex(){if(Bd)return ql;Bd=1;var F=typeof to=="object"&&to&&to.Object===Object&&to;return ql=F,ql}var Yl,Pd;function Rx(){if(Pd)return Yl;Pd=1;var F=Ex(),V=typeof self=="object"&&self&&self.Object===Object&&self,f=F||V||Function("return this")();return Yl=f,Yl}var Zl,Hd;function Uc(){if(Hd)return Zl;Hd=1;var F=Rx(),V=F.Symbol;return Zl=V,Zl}var Ql,zd;function Ix(){if(zd)return Ql;zd=1;function F(V,f){for(var b=-1,z=V==null?0:V.length,R=Array(z);++b<z;)R[b]=f(V[b],b,V);return R}return Ql=F,Ql}var Xl,Ud;function Ox(){if(Ud)return Xl;Ud=1;var F=Array.isArray;return Xl=F,Xl}var Jl,Vd;function Dx(){if(Vd)return Jl;Vd=1;var F=Uc(),V=Object.prototype,f=V.hasOwnProperty,b=V.toString,z=F?F.toStringTag:void 0;function R(_){var S=f.call(_,z),u=_[z];try{_[z]=void 0;var h=!0}catch{}var s=b.call(_);return h&&(S?_[z]=u:delete _[z]),s}return Jl=R,Jl}var ec,Kd;function Nx(){if(Kd)return ec;Kd=1;var F=Object.prototype,V=F.toString;function f(b){return V.call(b)}return ec=f,ec}var tc,jd;function Fx(){if(jd)return tc;jd=1;var F=Uc(),V=Dx(),f=Nx(),b="[object Null]",z="[object Undefined]",R=F?F.toStringTag:void 0;function _(S){return S==null?S===void 0?z:b:R&&R in Object(S)?V(S):f(S)}return tc=_,tc}var nc,Gd;function Wx(){if(Gd)return nc;Gd=1;function F(V){return V!=null&&typeof V=="object"}return nc=F,nc}var ic,qd;function Bx(){if(qd)return ic;qd=1;var F=Fx(),V=Wx(),f="[object Symbol]";function b(z){return typeof z=="symbol"||V(z)&&F(z)==f}return ic=b,ic}var rc,Yd;function Px(){if(Yd)return rc;Yd=1;var F=Uc(),V=Ix(),f=Ox(),b=Bx(),z=F?F.prototype:void 0,R=z?z.toString:void 0;function _(S){if(typeof S=="string")return S;if(f(S))return V(S,_)+"";if(b(S))return R?R.call(S):"";var u=S+"";return u=="0"&&1/S==-1/0?"-0":u}return rc=_,rc}var oc,Zd;function $a(){if(Zd)return oc;Zd=1;var F=Px();function V(f){return f==null?"":F(f)}return oc=V,oc}var sc,Qd;function Hx(){if(Qd)return sc;Qd=1;var F=Mx(),V=ep(),f=Tx(),b=$a();function z(R){return function(_){_=b(_);var S=V(_)?f(_):void 0,u=S?S[0]:_.charAt(0),h=S?F(S,1).join(""):_.slice(1);return u[R]()+h}}return sc=z,sc}var ac,Xd;function tp(){if(Xd)return ac;Xd=1;var F=Hx(),V=F("toUpperCase");return ac=V,ac}var zx=tp();const Ux=wa(zx);var lc,Jd;function Vx(){if(Jd)return lc;Jd=1;var F=$a(),V=tp();function f(b){return V(F(b).toLowerCase())}return lc=f,lc}var cc,ef;function Kx(){if(ef)return cc;ef=1;function F(V,f,b,z){var R=-1,_=V==null?0:V.length;for(z&&_&&(b=V[++R]);++R<_;)b=f(b,V[R],R,V);return b}return cc=F,cc}var uc,tf;function jx(){if(tf)return uc;tf=1;function F(V){return function(f){return V?.[f]}}return uc=F,uc}var hc,nf;function Gx(){if(nf)return hc;nf=1;var F=jx(),V={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},f=F(V);return hc=f,hc}var dc,rf;function qx(){if(rf)return dc;rf=1;var F=Gx(),V=$a(),f=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,b="\\u0300-\\u036f",z="\\ufe20-\\ufe2f",R="\\u20d0-\\u20ff",_=b+z+R,S="["+_+"]",u=RegExp(S,"g");function h(s){return s=V(s),s&&s.replace(f,F).replace(u,"")}return dc=h,dc}var fc,of;function Yx(){if(of)return fc;of=1;var F=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function V(f){return f.match(F)||[]}return fc=V,fc}var pc,sf;function Zx(){if(sf)return pc;sf=1;var F=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function V(f){return F.test(f)}return pc=V,pc}var gc,af;function Qx(){if(af)return gc;af=1;var F="\\ud800-\\udfff",V="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",b="\\u20d0-\\u20ff",z=V+f+b,R="\\u2700-\\u27bf",_="a-z\\xdf-\\xf6\\xf8-\\xff",S="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",h="\\u2000-\\u206f",s=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\ufe0e\\ufe0f",r=S+u+h+s,t="['’]",n="["+r+"]",a="["+z+"]",d="\\d+",g="["+R+"]",L="["+_+"]",C="[^"+F+r+d+R+_+o+"]",y="\\ud83c[\\udffb-\\udfff]",p="(?:"+a+"|"+y+")",$="[^"+F+"]",I="(?:\\ud83c[\\udde6-\\uddff]){2}",M="[\\ud800-\\udbff][\\udc00-\\udfff]",A="["+o+"]",H="\\u200d",D="(?:"+L+"|"+C+")",T="(?:"+A+"|"+C+")",x="(?:"+t+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+t+"(?:D|LL|M|RE|S|T|VE))?",E=p+"?",W="["+i+"]?",U="(?:"+H+"(?:"+[$,I,M].join("|")+")"+W+E+")*",q="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",te=W+E+U,ce="(?:"+[g,I,M].join("|")+")"+te,ne=RegExp([A+"?"+L+"+"+x+"(?="+[n,A,"$"].join("|")+")",T+"+"+m+"(?="+[n,A+D,"$"].join("|")+")",A+"?"+D+"+"+x,A+"+"+m,Q,q,d,ce].join("|"),"g");function he(ue){return ue.match(ne)||[]}return gc=he,gc}var mc,lf;function Xx(){if(lf)return mc;lf=1;var F=Yx(),V=Zx(),f=$a(),b=Qx();function z(R,_,S){return R=f(R),_=S?void 0:_,_===void 0?V(R)?b(R):F(R):R.match(_)||[]}return mc=z,mc}var vc,cf;function Jx(){if(cf)return vc;cf=1;var F=Kx(),V=qx(),f=Xx(),b="['’]",z=RegExp(b,"g");function R(_){return function(S){return F(f(V(S).replace(z,"")),_,"")}}return vc=R,vc}var yc,uf;function e1(){if(uf)return yc;uf=1;var F=Vx(),V=Jx(),f=V(function(b,z,R){return z=z.toLowerCase(),b+(R?F(z):z)});return yc=f,yc}var t1=e1();const n1=wa(t1),i1=Object.assign({"./ArrayWidget.vue":()=>Promise.resolve().then(()=>require("./ArrayWidget-CQCphADm.cjs")),"./ArrayplotWidget.vue":()=>Promise.resolve().then(()=>require("./ArrayplotWidget-J0xWFYsb.cjs")),"./BlockWidget.vue":()=>Promise.resolve().then(()=>require("./BlockWidget-_HTXwzGu.cjs")),"./ButtonWidget.vue":()=>Promise.resolve().then(()=>require("./ButtonWidget-C_4jUjbD.cjs")),"./CanvasWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasWidget-98hvMkWl.cjs")),"./CanvasdotWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasdotWidget-6s1Kzzoj.cjs")),"./CanvasimageWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasimageWidget-Du_TULyr.cjs")),"./CanvasimagevalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasimagevalueWidget-DUiZEzwq.cjs")),"./CanvaslabelWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslabelWidget-C7K2dtNN.cjs")),"./CanvaslabelvalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslabelvalueWidget-BuayHPZu.cjs")),"./CanvaslineWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslineWidget-DaBwCmSV.cjs")),"./CanvaslinevalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslinevalueWidget-xSHdgNCO.cjs")),"./CheckbuttonWidget.vue":()=>Promise.resolve().then(()=>require("./CheckbuttonWidget-Bey7tHx-.cjs")),"./ComboboxWidget.vue":()=>Promise.resolve().then(()=>require("./ComboboxWidget-Mh6axKMv.cjs")),"./DateWidget.vue":()=>Promise.resolve().then(()=>require("./DateWidget-DUYYp-Yx.cjs")),"./DynamicWidget.vue":()=>Promise.resolve().then(()=>require("./DynamicWidget-BtJYTmVo.cjs")),"./FilechecksumWidget.vue":()=>Promise.resolve().then(()=>require("./FilechecksumWidget-ByVrYgzI.cjs")),"./FiledisplayWidget.vue":()=>Promise.resolve().then(()=>require("./FiledisplayWidget-hYmg981k.cjs")),"./FormatvalueWidget.vue":()=>Promise.resolve().then(()=>require("./FormatvalueWidget-7VD_kwxB.cjs")),"./HorizontalWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontalWidget-B9j7DG2Q.cjs")),"./HorizontalboxWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontalboxWidget-C3zHRO9h.cjs")),"./HorizontallineWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontallineWidget-GGNFIo1N.cjs")),"./IframeWidget.vue":()=>Promise.resolve().then(()=>require("./IframeWidget-lK6Cw1Pp.cjs")),"./ImageviewerWidget.vue":()=>Promise.resolve().then(()=>require("./ImageviewerWidget-CvbsaXCd.cjs")),"./LabelWidget.vue":()=>Promise.resolve().then(()=>require("./LabelWidget-BFWd6Vgh.cjs")),"./LabelledWidget.vue":()=>Promise.resolve().then(()=>require("./LabelledWidget-AZifUp-f.cjs")),"./LabelprogressbarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelprogressbarWidget-Bd2E9G7V.cjs")),"./LabelsparklineWidget.vue":()=>Promise.resolve().then(()=>require("./LabelsparklineWidget-__3CB0T-.cjs")),"./LabelvalueWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvalueWidget-B681T0uR.cjs")),"./LabelvaluedescWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluedescWidget-CiGIPdMG.cjs")),"./LabelvaluelimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluelimitsbarWidget-Cmb4kGcv.cjs")),"./LabelvaluelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluelimitscolumnWidget-BXdmh9So.cjs")),"./LabelvaluerangebarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluerangebarWidget-cavgscEk.cjs")),"./LedWidget.vue":()=>Promise.resolve().then(()=>require("./LedWidget-Dwrm6hTX.cjs")),"./LimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./LimitsbarWidget-vIP9AUk4.cjs")),"./LimitscolorWidget.vue":()=>Promise.resolve().then(()=>require("./LimitscolorWidget-CPuknJPk.cjs")),"./LimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./LimitscolumnWidget-r-nOETY5.cjs")),"./LinegraphWidget.vue":()=>Promise.resolve().then(()=>require("./LinegraphWidget-BMUI8q6Q.cjs")),"./MatrixbycolumnsWidget.vue":()=>Promise.resolve().then(()=>require("./MatrixbycolumnsWidget-BoNbbrEi.cjs")),"./ProgressbarWidget.vue":()=>Promise.resolve().then(()=>require("./ProgressbarWidget-cPr3o6Nv.cjs")),"./RadiobuttonWidget.vue":()=>Promise.resolve().then(()=>require("./RadiobuttonWidget-BQZkRFa-.cjs")),"./RadiogroupWidget.vue":()=>Promise.resolve().then(()=>require("./RadiogroupWidget-D2iIQ5RU.cjs")),"./RangebarWidget.vue":()=>Promise.resolve().then(()=>require("./RangebarWidget-DsphX-jB.cjs")),"./RollupWidget.vue":()=>Promise.resolve().then(()=>require("./RollupWidget-w-SF3f-X.cjs")),"./ScrollwindowWidget.vue":()=>Promise.resolve().then(()=>require("./ScrollwindowWidget-D1mtHFMa.cjs")),"./SignalWidget.vue":()=>Promise.resolve().then(()=>require("./SignalWidget-Cld2lVyc.cjs")),"./SpacerWidget.vue":()=>Promise.resolve().then(()=>require("./SpacerWidget-DV0-ZfEm.cjs")),"./SparklineWidget.vue":()=>Promise.resolve().then(()=>require("./SparklineWidget-B1RfTxEp.cjs")),"./TabbookWidget.vue":()=>Promise.resolve().then(()=>require("./TabbookWidget-CLpx5e5Q.cjs")),"./TextboxWidget.vue":()=>Promise.resolve().then(()=>require("./TextboxWidget-DuNmhz89.cjs")),"./TextfieldWidget.vue":()=>Promise.resolve().then(()=>require("./TextfieldWidget-BlW-rSVv.cjs")),"./TimeWidget.vue":()=>Promise.resolve().then(()=>require("./TimeWidget-BddmbQgt.cjs")),"./TitleWidget.vue":()=>Promise.resolve().then(()=>require("./TitleWidget-CPqwZKUx.cjs")),"./ValueWidget.vue":()=>Promise.resolve().then(()=>require("./ValueWidget-QWzoEFXc.cjs")),"./ValuelimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./ValuelimitsbarWidget-5AkAljK-.cjs")),"./ValuelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./ValuelimitscolumnWidget-zNx9i1v7.cjs")),"./ValuerangebarWidget.vue":()=>Promise.resolve().then(()=>require("./ValuerangebarWidget-EsdIz4oP.cjs")),"./VerticalWidget.vue":()=>Promise.resolve().then(()=>require("./VerticalWidget-DVskS6fx.cjs")),"./VerticalboxWidget.vue":()=>Promise.resolve().then(()=>require("./VerticalboxWidget-Bu4oHN2K.cjs"))}),r1=Object.entries(i1).reduce((F,[V,f])=>{V=V.split("/").pop();const b=Ux(n1(V.replace(/\.\w+$/,"")));return{...F,[b]:je.defineAsyncComponent(f)}},{}),o1={components:r1};exports.DataViewerComponent=hf;exports.DataViewerHistoryComponent=A0;exports.WidgetComponents=o1;exports._=ff;exports.aceExports=c0;exports.bs=_x;exports.lodashExports=df;exports.uPlot=Xn;
|
|
1477
|
+
//# sourceMappingURL=UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_c790a82f_lang-CTNR19Zt.cjs.map
|